/* Minification failed. Returning unminified contents.
(282,15-16): run-time error JS1010: Expected identifier: .
(282,15-16): run-time error JS1195: Expected expression: .
(283,5-9): run-time error JS1034: Unmatched 'else'; no 'if' defined: else
(14442,17-18): run-time error JS1005: Expected '(': {
(14443,5-6): run-time error JS1006: Expected ')': }
(14443,5-6): run-time error JS1008: Expected '{': }
(15733,15-16): run-time error JS1005: Expected '(': ;
(15733,15-16): run-time error JS1008: Expected '{': ;
(15741,18): run-time error JS1004: Expected ';'
(15783,27-45): run-time error JS1010: Expected identifier: 'DOMContentLoaded'
(15783,27-45): run-time error JS1326: Expected binding syntax: 'DOMContentLoaded'
(15783,27-45): run-time error JS1193: Expected ',' or ')': 'DOMContentLoaded'
(15783,27-45): run-time error JS1006: Expected ')': 'DOMContentLoaded'
(15783,27-45): run-time error JS1008: Expected '{': 'DOMContentLoaded'
(15783,45-46): run-time error JS1195: Expected expression: ,
(15786,2): run-time error JS1004: Expected ';'
(15786,2-3): run-time error JS1195: Expected expression: )
(15783,1-27): run-time error JS1301: End of file encountered before function is properly closed: document.addEventListener(
(15804,1): run-time error JS1107: Expecting more source characters
(15804,1): run-time error JS1009: Expected '}'
(14438,5-32): run-time error JS1301: End of file encountered before function is properly closed: function mouseEventsProxy()
(15804,1): run-time error JS1107: Expecting more source characters
(14341,18-29): run-time error JS1301: End of file encountered before function is properly closed: function ()
(15804,1): run-time error JS1107: Expecting more source characters
(15773,5-11): run-time error JS1300: Strict-mode does not allow assignment to undefined variables: render
(15767,5-18): run-time error JS1300: Strict-mode does not allow assignment to undefined variables: _setDismissed
(15761,5-18): run-time error JS1300: Strict-mode does not allow assignment to undefined variables: _createEvents
(15752,5-12): run-time error JS1300: Strict-mode does not allow assignment to undefined variables: _remove
(15739,5-15): run-time error JS1300: Strict-mode does not allow assignment to undefined variables: _bannerKey
(15737,5-8): run-time error JS1300: Strict-mode does not allow assignment to undefined variables: _id
 */
/* NUGET: BEGIN LICENSE TEXT
 *
 * Microsoft grants you the right to use these script files for the sole
 * purpose of either: (i) interacting through your browser with the Microsoft
 * website or online service, subject to the applicable licensing or use
 * terms; or (ii) using the files as included with a Microsoft product subject
 * to that product's license terms. Microsoft reserves all other rights to the
 * files not expressly granted by Microsoft, whether by implication, estoppel
 * or otherwise. Insofar as a script file is dual licensed under GPL,
 * Microsoft neither took the code under GPL nor distributes it thereunder but
 * under the terms set out in this paragraph. All notices and licenses
 * below are for informational purposes only.
 *
 * NUGET: END LICENSE TEXT */
/*
** Unobtrusive Ajax support library for jQuery
** Copyright (C) Microsoft Corporation. All rights reserved.
*/
(function(a){var b="unobtrusiveAjaxClick",d="unobtrusiveAjaxClickTarget",h="unobtrusiveValidation";function c(d,b){var a=window,c=(d||"").split(".");while(a&&c.length)a=a[c.shift()];if(typeof a==="function")return a;b.push(d);return Function.constructor.apply(null,b)}function e(a){return a==="GET"||a==="POST"}function g(b,a){!e(a)&&b.setRequestHeader("X-HTTP-Method-Override",a)}function i(c,b,e){var d;if(e.indexOf("application/x-javascript")!==-1)return;d=(c.getAttribute("data-ajax-mode")||"").toUpperCase();a(c.getAttribute("data-ajax-update")).each(function(f,c){var e;switch(d){case"BEFORE":e=c.firstChild;a("<div />").html(b).contents().each(function(){c.insertBefore(this,e)});break;case"AFTER":a("<div />").html(b).contents().each(function(){c.appendChild(this)});break;case"REPLACE-WITH":a(c).replaceWith(b);break;default:a(c).html(b)}})}function f(b,d){var j,k,f,h;j=b.getAttribute("data-ajax-confirm");if(j&&!window.confirm(j))return;k=a(b.getAttribute("data-ajax-loading"));h=parseInt(b.getAttribute("data-ajax-loading-duration"),10)||0;a.extend(d,{type:b.getAttribute("data-ajax-method")||undefined,url:b.getAttribute("data-ajax-url")||undefined,cache:!!b.getAttribute("data-ajax-cache"),beforeSend:function(d){var a;g(d,f);a=c(b.getAttribute("data-ajax-begin"),["xhr"]).apply(b,arguments);a!==false&&k.show(h);return a},complete:function(){k.hide(h);c(b.getAttribute("data-ajax-complete"),["xhr","status"]).apply(b,arguments)},success:function(a,e,d){i(b,a,d.getResponseHeader("Content-Type")||"text/html");c(b.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(b,arguments)},error:function(){c(b.getAttribute("data-ajax-failure"),["xhr","status","error"]).apply(b,arguments)}});d.data.push({name:"X-Requested-With",value:"XMLHttpRequest"});f=d.type.toUpperCase();if(!e(f)){d.type="POST";d.data.push({name:"X-HTTP-Method-Override",value:f})}a.ajax(d)}function j(c){var b=a(c).data(h);return!b||!b.validate||b.validate()}a(document).on("click","a[data-ajax=true]",function(a){a.preventDefault();f(this,{url:this.href,type:"GET",data:[]})});a(document).on("click","form[data-ajax=true] input[type=image]",function(c){var g=c.target.name,e=a(c.target),f=a(e.parents("form")[0]),d=e.offset();f.data(b,[{name:g+".x",value:Math.round(c.pageX-d.left)},{name:g+".y",value:Math.round(c.pageY-d.top)}]);setTimeout(function(){f.removeData(b)},0)});a(document).on("click","form[data-ajax=true] :submit",function(e){var g=e.currentTarget.name,f=a(e.target),c=a(f.parents("form")[0]);c.data(b,g?[{name:g,value:e.currentTarget.value}]:[]);c.data(d,f);setTimeout(function(){c.removeData(b);c.removeData(d)},0)});a(document).on("submit","form[data-ajax=true]",function(h){var e=a(this).data(b)||[],c=a(this).data(d),g=c&&c.hasClass("cancel");h.preventDefault();if(!g&&!j(this))return;f(this,{url:this.action,type:this.method||"GET",data:e.concat(a(this).serializeArray())})})})(jQuery);;
"use strict";

var url = document.location.href,
    hash = document.location.hash.substring(1);

if(url.indexOf("/Demo/") == -1 && hash) {
    var basePath = (Site.appPath || "/");
    if (hash.indexOf("search") !== 0) {
        document.location.href = basePath + "Demo/RedirectOld/" + hash + "/";
    } else {
        document.location.href = basePath + "Search/?text=" + hash.split("/")[1].replace(" ", "+") + "&category=WidgetsGallery";
    }
}
;
/*!
* DevExtreme (dx.all.js)
* Version: 21.2.4
* Build date: Mon Dec 06 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";!function(){var e={23908:function(e,t,n){t.convertTransitionTimingFuncToEasing=void 0,t.getEasing=function(e){return r[e]},t.setEasing=function(e){r=e};var i=n(35922),o=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,a={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},r={};t.convertTransitionTimingFuncToEasing=function(e){var t,n=(e=a[e]||e).match(o);n||(n=a[t="linear"].match(o)),n=n.slice(1,5);for(var s=0;s<n.length;s++)n[s]=parseFloat(n[s]);var l=t||"cubicbezier_"+n.join("_").replace(/\./g,"p");return(0,i.isFunction)(r[l])||(r[l]=function(e,t,i,o,a){return o*function(e,t,n,i){var o=3*e,a=3*(n-e)-o,r=1-o-a,s=3*t,l=3*(i-t)-s,u=1-s-l,d=function(e){return e*(o+e*(a+e*r))},c=function(e){return o+e*(2*a+3*e*r)};return function(e){return function(e){return e*(s+e*(l+e*u))}(function(e){for(var t,n=e,i=0;i<14&&(t=d(n)-e,!(Math.abs(t)<.001));)n-=t/c(n),i++;return n}(e))}}(n[0],n[1],n[2],n[3])(t/a)+i}),l}},90057:function(e,t,n){t.cancelAnimationFrame=function(){u(),l.apply(r,arguments)},t.requestAnimationFrame=function(){return u(),s.apply(r,arguments)};var i,o=n(58201),a=(i=n(39618))&&i.__esModule?i:{default:i},r=(0,o.hasWindow)()?(0,o.getWindow)():{},s=function(e){return setTimeout(e,16.666666666666668)},l=function(e){clearTimeout(e)},u=(0,a.default)((function(){var e=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame,t=r.cancelAnimationFrame||r.webkitCancelAnimationFrame||r.mozCancelAnimationFrame||r.oCancelAnimationFrame||r.msCancelAnimationFrame;if(e&&t&&(s=e,l=t),e&&!t){var n={};s=function(t){var i=e.call(r,(function(){try{if(i in n)return;t.apply(this,arguments)}finally{delete n[i]}}));return i},l=function(e){n[e]=!0}}}))},87209:function(e,t,n){t.default=void 0;var i=x(n(68374)),o=n(58201),a=x(n(55994)),r=x(n(17381)),s=n(6415),l=n(13306),u=n(35922),d=n(95479),c=n(31648),h=n(23908),f=n(90057),p=n(60137),g=x(n(49387)),m=n(29007),_=n(39611),v=n(62754),y=n(20576);function x(e){return e&&e.__esModule?e:{default:e}}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var w=(0,o.getWindow)(),C=(0,_.addNamespace)(m.removeEvent,"dxFX"),S=/^([+-])=(.*)/i,k="dxAnimData",D="dxAnimQueue",I={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):U(e,t.from);var n=this,i=new v.Deferred,o=t.cleanupWhen;t.transitionAnimation={deferred:i,finish:function(){n._finishTransition(e),o?(0,v.when)(i,o).always((function(){n._cleanup(e,t)})):n._cleanup(e,t),i.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done((function(){t.transitionAnimation.finish()})).fail((function(){i.rejectWith(e,[t,e])})),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,i=this,o=Date.now()+t.delay,r=new v.Deferred,s=new v.Deferred,l=new v.Deferred,u=(0,p.transitionEndEventName)()+".dxFX";t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(d),a.default.off(e,u),a.default.off(e,C)},a.default.one(e,u,(function(){Date.now()-o>=t.duration&&s.reject()})),a.default.off(e,C),a.default.on(e,C,(function(){i.stop(e,t),r.reject()}));var d=setTimeout((function(){n=setTimeout((function(){l.reject()}),t.duration+t.delay+Y._simulatedTransitionEndDelay),(0,v.when)(s,l).fail(function(){r.resolve()}.bind(this))}));return r.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&U(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():((0,u.isPlainObject)(t.to)&&(0,d.each)(t.to,(function(t){e.css(t,e.css(t))})),this._finishTransition(e),this._cleanup(e,t)))}},T={initAnimation:function(e,t){U(e,t.from)},animate:function(e,t){var n=new v.Deferred,i=this;return t?((0,d.each)(t.to,(function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))})),t.to.transform&&(t.from.transform=i._parseTransform(t.from.transform),t.to.transform=i._parseTransform(t.to.transform)),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:(0,h.convertTransitionTimingFuncToEasing)(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),(0,f.cancelAnimationFrame)(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)t.draw(this.currentValue);else{var n=(0,l.extend)({},this.currentValue);n.transform&&(n.transform=(0,d.map)(n.transform,(function(e,t){return"translate"===t?(0,c.getTranslateCss)(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0})).join(" ")),e.css(n)}}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout((function(){i._startAnimation(e,t)}),t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){a.default.off(e,C),a.default.on(e,C,(function(){t.frameAnimation&&(0,f.cancelAnimationFrame)(t.frameAnimation.animationFrameId)})),this._animationStep(e,t)},_parseTransform:function(e){var t={};return(0,d.each)(e.match(/\w+\d*\w*\([^)]*\)\s*/g),(function(e,n){var i=(0,c.parseTranslate)(n),o=n.match(/scale\((.+?)\)/),a=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),o&&o[1]&&(t.scale=parseFloat(o[1])),a&&a[1]&&(t[a[1]]=parseFloat(a[2]))})),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&((0,f.cancelAnimationFrame)(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)n.finish();else{n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var o=this;n.animationFrameId=(0,f.requestAnimationFrame)((function(){o._animationStep(e,t)}))}}},_calcStepValue:function(e,t){return function n(i,o){var a=Array.isArray(o)?[]:{};return(0,d.each)(o,(function(r,s){if("string"==typeof s&&!1===parseFloat(s,10))return!0;a[r]="object"===b(s)?n(i[r],s):function(n){var a=t/e.duration,r=t,s=1*i[n],l=o[n]-i[n],u=e.duration;return(0,h.getEasing)(e.easing)(a,r,s,l,u)}(r)})),a}(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return!1===t?e:t}},E={initAnimation:function(){},animate:function(){return(new v.Deferred).resolve().promise()},stop:y.noop,isSynchronous:!0},A=function(e,t,n,i){(0,d.each)(["from","to"],(function(){if(!n(e[this]))throw r.default.Error("E0010",t,this,i)}))},O=function(e,t){return A(e,t,(function(e){return(0,u.isPlainObject)(e)}),"a plain object")},P={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},M={validateConfig:function(e){O(e,"slide")},setup:function(e,t){var n=(0,c.locate)(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=(0,l.extend)({of:w},P[t.direction]),K(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),(0,c.clearCache)(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,void 0!==(i=this._getRelativeValue(n.top))?n.top=i+e.top:t.top=0,t.transform=(0,c.getTranslateCss)({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=S.exec(e)))return parseInt(t[1]+"1")*t[2]}},R={setup:function(e,t){var n,i,o=t.from,a=t.to,r="fadeOut"===t.type?1:0,s="fadeOut"===t.type?0:1,l=(0,u.isPlainObject)(o)?String(null!==(n=o.opacity)&&void 0!==n?n:r):String(o),d=(0,u.isPlainObject)(a)?String(null!==(i=a.opacity)&&void 0!==i?i:s):String(a);switch(t.skipElementInitialStyles||(l=e.css("opacity")),t.type){case"fadeIn":d=1;break;case"fadeOut":d=0}t.from={visibility:"visible",opacity:l},t.to={opacity:d}}},B={custom:{setup:function(){}},slide:M,slideIn:M,slideOut:M,fade:R,fadeIn:R,fadeOut:R,pop:{validateConfig:function(e){O(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,o="opacity"in n?n.opacity:e.css("opacity"),a="opacity"in i?i.opacity:1,r="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:o};var l=(0,c.getTranslate)(e);t.from.transform=this._getCssTransform(l,r),t.to={opacity:a},t.to.transform=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return(0,c.getTranslateCss)(e)+"scale("+t+")"}},css:{validateConfig:function(e){!function(e,t){A(e,"css",(function(e){return"string"==typeof e}),"a string")}(e)},setup:function(){}}},V={type:"custom",from:{},to:{},duration:400,start:y.noop,complete:y.noop,easing:"ease",delay:0},F={duration:400,easing:"ease",delay:0};function L(){var e=this,t=e.element,n=e.config;if(K(t,n.from),K(t,n.to),e.configurator.setup(t,n),t.data(k,e),Y.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=(0,s.getPublicElement)(t);n.start.apply(this,[i,n])}}var H=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done((function(){!function(e){var t=e.element,n=e.config;if(t.removeData(k),n.complete){var i=(0,s.getPublicElement)(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])}(e)})).fail((function(){e.deferred.rejectWith(this,[t,n])}))},N=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},z=(0,_.addNamespace)(m.removeEvent,"dxFXStartAnimation"),W=function(e,t){var n="css"===t.type?F:V,o=(0,l.extend)(!0,{},n,t),s=function(e){var t=B[e.type];if(!t)throw r.default.Error("E0011",e.type);return t}(o),d=function(e){e=e||{};var t={transition:(0,p.transition)()?I:T,frame:T,noAnimation:E},n=e.strategy||"transition";return"css"!==e.type||(0,p.transition)()||(n="noAnimation"),t[n]}(o),c={element:(0,i.default)(e),config:o,configurator:s,strategy:d,isSynchronous:d.isSynchronous,setup:L,start:H,stop:N,deferred:new v.Deferred};return(0,u.isFunction)(s.validateConfig)&&s.validateConfig(o),function(e){a.default.off(e.element,z),a.default.on(e.element,z,(function(){Y.stop(e.element)})),e.deferred.always((function(){a.default.off(e.element,z)}))}(c),c};function G(e){return e.data(D)||[]}var j=function(e){e.removeData(D)};function q(e){return!!e.data(k)}function $(e,t){if((t=G(e)).length){var n=t.shift();0===t.length&&j(e),function(e){return e.setup(),Y.off||e.isSynchronous?e.start():e.startTimeout=setTimeout((function(){e.start()})),e.deferred.promise()}(n).done((function(){q(e)||$(e)}))}}function K(e,t){if(t&&t.position){var n=(0,i.default)(w),o=0,a=0,r=g.default.calculate(e,t.position),s=e.offset(),u=e.position();u.top>s.top&&(a=n.scrollTop()),u.left>s.left&&(o=n.scrollLeft()),(0,l.extend)(t,{left:r.h.location-s.left+u.left-o,top:r.v.location-s.top+u.top-a}),delete t.position}}function U(e,t){(0,d.each)(t,(function(t,n){try{e.css(t,(0,u.isFunction)(n)?n():n)}catch(e){}}))}var Y={off:!1,animationTypes:B,animate:function(e,t){var n=(0,i.default)(e);if(!n.length)return(new v.Deferred).resolve().promise();var o=W(n,t);return function(e,t){var n=G(e);(function(e,t){e.data(D,t)})(e,n),n.push(t),q(e)||$(e,n)}(n,o),o.deferred.promise()},createAnimation:W,isAnimating:q,stop:function(e,t){var n=(0,i.default)(e),o=G(n);(0,d.each)(o,(function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0})),q(n)||$(n,o);var a=n.data(k);a&&a.stop(t),n.removeData(k),j(n)},_simulatedTransitionEndDelay:100},Z=Y;t.default=Z,e.exports=t.default,e.exports.default=t.default},49387:function(e,t,n){t.default=void 0;var i=n(58664),o=m(n(68374)),a=n(20576),r=n(95479),s=n(58201),l=m(n(73349)),u=n(35922),d=n(13306),c=n(37518),h=m(n(47810)),f=n(31648),p=n(60137),g=m(n(20530));function m(e){return e&&e.__esModule?e:{default:e}}var _,v=(0,s.getWindow)(),y=/left|right/,x=/top|bottom/,b=/fit|flip|none/,w=/scale\(.+?\)/,C=h.default.safari,S=function(e){var t={h:"center",v:"center"},n=(0,a.splitPair)(e);return n&&(0,r.each)(n,(function(){var e=String(this).toLowerCase();y.test(e)?t.h=e:x.test(e)&&(t.v=e)})),t},k=function(e){return(0,a.pairToObject)(e)},D=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},I=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},T=function(e,t){var n=0;return e.myLocation<t.min&&(n+=t.min-e.myLocation),e.myLocation>t.max&&(n+=e.myLocation-t.max),n},E=function(e,t,n){return t.myLocation<n.min?"h"===e?"left":"top":t.myLocation>n.max?"h"===e?"right":"bottom":"none"},A=function(e){e.myLocation=e.atLocation+D(e.atAlign)*e.atSize-D(e.myAlign)*e.mySize+e.offset},O={fit:function(e,t){var n=!1;e.myLocation>t.max&&(e.myLocation=t.max,n=!0),e.myLocation<t.min&&(e.myLocation=t.min,n=!0),e.fit=n},flip:function(e,t){if(e.flip=!1,("center"!==e.myAlign||"center"!==e.atAlign)&&(e.myLocation<t.min||e.myLocation>t.max)){var n=(0,d.extend)({},e,{myAlign:I(e.myAlign),atAlign:I(e.atAlign),offset:-e.offset});A(n),n.oversize=T(n,t),(n.myLocation>=t.min&&n.myLocation<=t.max||e.oversize>n.oversize)&&(e.myLocation=n.myLocation,e.oversize=n.oversize,e.flip=!0)}},flipfit:function(e,t){this.flip(e,t),this.fit(e,t)},none:function(e){e.oversize=0}},P=function(){var e=(0,o.default)("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo((0,o.default)("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),_=t},M={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},R=function(e,t){var n=(0,o.default)(e),r=n.offset(),s=(0,d.extend)(!0,{},M,{h:{location:r.left},v:{location:r.top}});if(!t)return s;var h=S(t.my),f=S(t.at),m=(0,o.default)(t.of).length&&t.of||v,y=k(t.offset),x=function(e){var t=(0,a.splitPair)(e),n=String(t&&t[0]).toLowerCase(),i=String(t&&t[1]).toLowerCase();return b.test(n)||(n="none"),b.test(i)||(i=n),{h:n,v:i}}(t.collision),w=t.boundary,D=k(t.boundaryOffset),I={mySize:(0,i.getOuterWidth)(n),myAlign:h.h,atAlign:f.h,offset:y.h,collision:x.h,boundaryOffset:D.h},R={mySize:(0,i.getOuterHeight)(n),myAlign:h.v,atAlign:f.v,offset:y.v,collision:x.v,boundaryOffset:D.v};if(m.preventDefault)I.atLocation=m.pageX,R.atLocation=m.pageY,I.atSize=0,R.atSize=0;else if(m=(0,o.default)(m),(0,u.isWindow)(m[0]))I.atLocation=m.scrollLeft(),R.atLocation=m.scrollTop(),"phone"===g.default.real().deviceType&&m[0].visualViewport?(I.atLocation=Math.max(I.atLocation,m[0].visualViewport.offsetLeft),R.atLocation=Math.max(R.atLocation,m[0].visualViewport.offsetTop),I.atSize=m[0].visualViewport.width,R.atSize=m[0].visualViewport.height):(I.atSize=m[0].innerWidth>m[0].outerWidth?m[0].innerWidth:(0,i.getWidth)(m),R.atSize=m[0].innerHeight>m[0].outerHeight||C?m[0].innerHeight:(0,i.getHeight)(m));else if(9===m[0].nodeType)I.atLocation=0,R.atLocation=0,I.atSize=(0,i.getWidth)(m),R.atSize=(0,i.getHeight)(m);else{var B=(0,c.getBoundingRect)(m.get(0)),F=V(m);I.atLocation=F.left,R.atLocation=F.top,I.atSize=Math.max(B.width,(0,i.getOuterWidth)(m)),R.atSize=Math.max(B.height,(0,i.getOuterHeight)(m))}A(I),A(R);var L=function(){var e=(0,o.default)(v),t=(0,i.getWidth)(e),n=(0,i.getHeight)(e),a=e.scrollLeft(),r=e.scrollTop(),s=l.default.getDocumentElement(),u=p.touch?s.clientWidth/t:1,d=p.touch?s.clientHeight/n:1;void 0===_&&P();var c=t,h=n;if(w){var f=(0,o.default)(w),g=f.offset();a=g.left,r=g.top,c=(0,i.getWidth)(f),h=(0,i.getHeight)(f)}return{h:{min:a+I.boundaryOffset,max:a+c/u-I.mySize-I.boundaryOffset},v:{min:r+R.boundaryOffset,max:r+h/d-R.mySize-R.boundaryOffset}}}();I.oversize=T(I,L.h),R.oversize=T(R,L.v),I.collisionSide=E("h",I,L.h),R.collisionSide=E("v",R,L.v),O[I.collision]&&O[I.collision](I,L.h),O[R.collision]&&O[R.collision](R,L.v);var H=function(e){return t.precise?e:Math.round(e)};return(0,d.extend)(!0,s,{h:{location:H(I.myLocation),oversize:H(I.oversize),fit:I.fit,flip:I.flip,collisionSide:I.collisionSide},v:{location:H(R.myLocation),oversize:H(R.oversize),fit:R.fit,flip:R.flip,collisionSide:R.collisionSide},precise:t.precise}),s},B=function(e,t,n,i,o){(0,u.isDefined)(e.style)&&!l.default.isNode(e.style)?e.style.transform=o?n.replace(t,""):n:e.setAttribute("style",o?i.replace(t,""):i)},V=function e(t){var n,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=a.get(0);if(!r)return t.offset();var s,l=(null===(n=r.getAttribute)||void 0===n?void 0:n.call(r,"style"))||"",u=null===(i=r.style)||void 0===i?void 0:i.transform,d=null===(o=l.match(w))||void 0===o?void 0:o[0];return d?(B(r,d,u,l,!0),s=e(t,a.parent()),B(r,d,u,l,!1)):s=e(t,a.parent()),s},F=function(e,t){var n=(0,o.default)(e);if(!t)return n.offset();(0,f.resetPosition)(n,!0);var i=V(n),a=t.h&&t.v?t:R(n,t),r=function(e){return t.precise?e:Math.round(e)};return(0,f.move)(n,{left:a.h.location-r(i.left),top:a.v.location-r(i.top)}),a};F.inverseAlign||(F.inverseAlign=I),F.normalizeAlign||(F.normalizeAlign=S);var L={calculateScrollbarWidth:P,calculate:R,setup:F,offset:function(e){return e=(0,o.default)(e).get(0),(0,u.isWindow)(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:(0,o.default)(e).offset()}};t.default=L,e.exports=t.default,e.exports.default=t.default},42814:function(e,t,n){t.presets=t.PresetCollection=void 0;var i=n(58664),o=n(44297),a=n(95479),r=n(13306),s=u(n(20530)),l=u(n(87209));function u(e){return e&&e.__esModule?e:{default:e}}var d={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c=o.Component.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return s.default.current().android||s.default.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(e){return"preset_"+e},_createAndroidSlideAnimationConfig:function(e,t){var n=this,o=function(e){return{type:"slide",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(n,a){var r=(0,i.getWidth)(n.parent())*t,s=a.direction,u=o(a);return u.to={left:0,opacity:1},u.from="forward"===s?{left:r,opacity:e}:"backward"===s?{left:-r,opacity:e}:{left:0,opacity:0},l.default.createAnimation(n,u)},leave:function(n,a){var r=(0,i.getWidth)(n.parent())*t,s=a.direction,u=o(a);return u.from={left:0,opacity:1},u.to="forward"===s?{left:-r,opacity:e}:"backward"===s?{left:r,opacity:e}:{left:0,opacity:0},l.default.createAnimation(n,u)}}},_createOpenDoorConfig:function(){var e=this,t=function(t){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===t.delay?e.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?e.option("defaultAnimationDuration"):t.duration}};return{enter:function(e,n){var i=n.direction,o=t(n);return o.delay="none"===i?o.delay:o.duration,o.from="dx-enter dx-opendoor-animation"+d[i],o.to="dx-enter-active",l.default.createAnimation(e,o)},leave:function(e,n){var i=n.direction,o=t(n);return o.from="dx-leave dx-opendoor-animation"+d[i],o.to="dx-leave-active",l.default.createAnimation(e,o)}}},_createWinPopConfig:function(){var e=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:e.option("defaultAnimationDuration")};return{enter:function(n,i){var o=t,a=i.direction;return o.delay="none"===a?e.option("defaultAnimationDelay"):e.option("defaultAnimationDuration")/2,o.from="dx-enter dx-win-pop-animation"+d[a],o.to="dx-enter-active",l.default.createAnimation(n,o)},leave:function(n,i){var o=t,a=i.direction;return o.delay=e.option("defaultAnimationDelay"),o.from="dx-leave dx-win-pop-animation"+d[a],o.to="dx-leave-active",l.default.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];(0,a.each)(this._registeredPresets,(function(i,o){e&&e!==o.name?n.push(o):t.option(t._getPresetOptionName(o.name),void 0)})),this._registeredPresets=n,this.applyChanges()},registerPreset:function(e,t){this._registeredPresets.push({name:e,config:t})},applyChanges:function(){var e=this,t=[];(0,a.each)(this._registeredPresets,(function(n,i){var o={device:i.config.device,options:{}};o.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(o)})),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return s.default.current().android||s.default.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!s.default.current().android&&!s.default.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!s.default.current().android&&!s.default.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return s.default.current().android||s.default.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});t.PresetCollection=c;var h=new c;t.presets=h},52431:function(e,t,n){t.TransitionExecutor=void 0;var i=h(n(68374)),o=h(n(38377)),a=n(13306),r=n(20576),s=n(35922),l=n(95479),u=h(n(87209)),d=n(42814),c=n(62754);function h(e){return e&&e.__esModule?e:{default:e}}var f={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},p="dx-animating",g=o.default.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,o){var a=this,r=[];n=n||{};var s=this._prepareElementAnimationConfig(t,n,o);return s&&e.each((function(){var e=a._createAnimation((0,i.default)(this),s,n);e&&(e.element.addClass(p),e.setup(),r.push(e))})),r},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var o=e;e=d.presets.getPreset(o)}if(e)if((0,s.isFunction)(e[n]))i=e[n];else{if(!(i=(0,a.extend)({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t)).type||"css"===i.type){var r="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+f[i.direction];i.type="css",i.from=(i.from||r)+l,i.to=i.to||r+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return(0,s.isPlainObject)(t)?i=u.default.createAnimation(e,t):(0,s.isFunction)(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].start()},_stopAnimations:function(e){for(var t=this._animations,n=0;n<t.length;n++)t[n].stop(e)},_clearAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].element.removeClass(p);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new c.Deferred,this._completePromise=this._completeDeferred.promise()},enter:function(e,t,n){var i=this._createAnimations(e,t,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(e,t,n){var i=this._createAnimations(e,t,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=(0,l.map)(this._animations,(function(e){var t=new c.Deferred;return e.deferred.always((function(){t.resolve()})),t.promise()}));e=c.when.apply(i.default,n).always((function(){t._completeDeferred.resolve(),t.reset()})),(0,r.executeAsync)((function(){t._startAnimations()}))}else t.reset(),e=(new c.Deferred).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=g},31648:function(e,t,n){t.resetPosition=t.parseTranslate=t.move=t.locate=t.getTranslateCss=t.getTranslate=t.clearCache=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(97906),r=n(35922),s="dxTranslator",l=/matrix(3d)?\((.+?)\)/,u=/translate(?:3d)?\((.+?)\)/;function d(e){return"string"===(0,r.type)(e)&&"%"===e[e.length-1]}function c(e,t){e.length&&(0,a.data)(e.get(0),s,t)}t.locate=function(e){e=(0,o.default)(e);var t=p(e);return{left:t.x,top:t.y}};var h=function(e){e.length&&(0,a.removeData)(e.get(0),s)};t.clearCache=h;var f=function(e){return e.x=e.x||0,e.y=e.y||0,"translate("+(d(e.x)?e.x:e.x+"px")+", "+(d(e.y)?e.y:e.y+"px")+")"};t.getTranslateCss=f;var p=function(e){var t=e.length?(0,a.data)(e.get(0),s):null;if(!t){var n=(e.css("transform")||f({x:0,y:0})).match(l),i=n&&n[1];n?(n=n[2].split(","),"3d"===i?n=n.slice(12,15):(n.push(0),n=n.slice(4,7))):n=[0,0,0],c(e,t={x:parseFloat(n[0]),y:parseFloat(n[1]),z:parseFloat(n[2])})}return t};t.getTranslate=p,t.move=function(e,t){e=(0,o.default)(e);var n,i=t.left,a=t.top;void 0===i?(n=p(e)).y=a||0:void 0===a?(n=p(e)).x=i||0:c(e,n={x:i||0,y:a||0,z:0}),e.css({transform:f(n)}),(d(i)||d(a))&&h(e)},t.resetPosition=function(e,t){var n;e=(0,o.default)(e);var i={left:0,top:0,transform:"none"};t&&(n=e.css("transition"),i.transition="none"),e.css(i),h(e),t&&(e.get(0).offsetHeight,e.css("transition",n))},t.parseTranslate=function(e){var t=e.match(u);if(t&&t[1])return t=t[1].split(","),{x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}}},16354:function(e,t,n){t.default=void 0,n(85866),n(66312);var i,o=(i=n(36991))&&i.__esModule?i:{default:i},a=n(80566),r=n(95683);o.default.integration={},o.default.integration.EventsStrategy=a.EventsStrategy,o.default.integration.Options=r.Options;var s=o.default;t.default=s,e.exports=t.default,e.exports.default=t.default},36991:function(e,t,n){var i=n(58201).getWindow(),o=i.DevExpress=i.DevExpress||{},a=o.errors=n(17381);if(o._DEVEXTREME_BUNDLE_INITIALIZED)throw a.Error("E0024");o._DEVEXTREME_BUNDLE_INITIALIZED=!0,o.clientExporter=n(78292),o.excelExporter=n(2994),o.pdfExporter=n(44194),o.VERSION=n(36739).version,o.Class=n(38377),o.DOMComponent=n(13046),o.Component=n(44297).Component,o.registerComponent=n(99393),o.devices=n(20530),o.Color=n(52752);var r=n(90057);o.utils={},o.utils.requestAnimationFrame=r.requestAnimationFrame,o.utils.cancelAnimationFrame=r.cancelAnimationFrame,o.utils.initMobileViewport=n(88185).p,o.utils.getTimeZones=n(88673).Z,o.utils.extendFromObject=n(13306).extendFromObject,o.utils.triggerShownEvent=n(80506).triggerShownEvent,o.utils.triggerHidingEvent=n(80506).triggerHidingEvent,o.utils.resetActiveElement=n(3532).resetActiveElement,o.utils.findBestMatches=n(20576).findBestMatches,o.createQueue=n(59504).create,o.utils.dom=n(3532),o.utils.common=n(20576),o.utils.date=n(91198),o.utils.browser=n(47810),o.utils.inflector=n(78008),o.utils.iterator=n(95479),o.utils.readyCallbacks=n(24311),o.utils.resizeCallbacks=n(55814),o.utils.console=n(30869),o.utils.string=n(68752),o.utils.support=n(60137),o.utils.ajax=n(37208),o.viewPort=n(77695).value,o.hideTopOverlay=n(60628),o.formatHelper=n(30343),o.config=n(80209),o.animationPresets=n(42814).presets,o.fx=n(87209),o.TransitionExecutor=n(52431).TransitionExecutor,o.AnimationPresetCollection=n(42814).PresetCollection,o.events=n(66365),o.events.click=n(95429),o.events.utils=n(39611),o.events.GestureEmitter=n(98621),o.localization=n(94484),o.templateRendered=n(81033).renderedCallbacks,o.setTemplateEngine=n(72987).setTemplateEngine,e.exports=o},86635:function(e,t,n){var i=n(36991),o=n(17381);e.exports=i.data=i.data||{},Object.defineProperty(i.data,"errorHandler",{get:function(){return n(18438).errorHandler},set:function(e){o.log("W0003","DevExpress.data","errorHandler","21.1","Use the 'setErrorHandler' method instead"),n(18438).setErrorHandler(e)}}),Object.defineProperty(i.data,"_errorHandler",{get:function(){return n(18438).handleError},set:function(e){o.log("W0003","DevExpress.data","_errorHandler","21.1","Use the 'setErrorHandler' method instead"),n(18438).setErrorHandler(e)}}),i.data.setErrorHandler=n(18438).setErrorHandler,i.data.DataSource=n(33546),i.data.query=n(96687),i.data.Store=n(67403),i.data.ArrayStore=n(26562),i.data.CustomStore=n(88036),i.data.LocalStore=n(82837),i.data.base64_encode=n(16454).base64_encode,i.data.applyChanges=n(36893),i.data.Guid=n(73176),i.data.utils={},i.data.utils.compileGetter=n(47617).compileGetter,i.data.utils.compileSetter=n(47617).compileSetter,i.EndpointSelector=n(8162),i.data.queryImpl=n(77549).queryImpl,i.data.queryAdapters=n(16135);var a=n(16454);i.data.utils.normalizeBinaryCriterion=a.normalizeBinaryCriterion,i.data.utils.normalizeSortingInfo=a.normalizeSortingInfo,i.data.utils.errorMessageFromXhr=a.errorMessageFromXhr,i.data.utils.aggregators=a.aggregators,i.data.utils.keysEqual=a.keysEqual,i.data.utils.isDisjunctiveOperator=a.isDisjunctiveOperator,i.data.utils.isConjunctiveOperator=a.isConjunctiveOperator,i.data.utils.processRequestResultLock=a.processRequestResultLock,i.data.utils.toComparable=n(47617).toComparable,i.data.utils.multiLevelGroup=n(99236).multiLevelGroup,i.data.utils.arrangeSortingInfo=n(99236).arrangeSortingInfo,i.data.utils.normalizeDataSourceOptions=n(9234).normalizeDataSourceOptions},72343:function(e,t,n){n(86635),DevExpress.data.ODataStore=n(341),DevExpress.data.ODataContext=n(47256),DevExpress.data.utils=DevExpress.data.utils||{},DevExpress.data.utils.odata={},DevExpress.data.utils.odata.keyConverters=n(77869).keyConverters,DevExpress.data.EdmLiteral=n(77869).EdmLiteral;var i=n(77869);DevExpress.data.utils.odata.serializePropName=i.serializePropName,DevExpress.data.utils.odata.serializeValue=i.serializeValue,DevExpress.data.utils.odata.serializeKey=i.serializeKey,DevExpress.data.utils.odata.sendRequest=i.sendRequest,DevExpress.data.queryAdapters=DevExpress.data.queryAdapters||{},DevExpress.data.queryAdapters.odata=n(54263).odata},56208:function(e,t,n){var i=u(n(36991)),o=u(n(49816)),a=u(n(45765)),r=u(n(4323)),s=u(n(41332)),l=u(n(98831));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=i.default.fileManagement=i.default.fileManagement||{},i.default.fileManagement.FileSystemError=o.default,i.default.fileManagement.FileSystemItem=a.default,i.default.fileManagement.ObjectFileSystemProvider=r.default,i.default.fileManagement.RemoteFileSystemProvider=s.default,i.default.fileManagement.CustomFileSystemProvider=l.default},85357:function(e,t,n){var i=n(36991);n(78475),n(71582),n(49281),n(74872),n(46949),n(908),n(60316),n(7239),n(95429),n(49166),n(85272),n(23174),n(11699),n(24028),n(93786),n(34309),n(91093),e.exports=i},94620:function(e,t,n){var i=n(85357).data=n(86635);i.odata=n(72343),e.exports=i},70527:function(e,t,n){var i,o=(i=n(85357))&&i.__esModule?i:{default:i},a=n(56208);o.default.fileManagement=a,e.exports=a},66312:function(e,t,n){var i=n(85357);n(94620);var o=i.viz=n(20802);o.currentTheme=n(86231).currentTheme,o.registerTheme=n(86231).registerTheme,o.exportFromMarkup=n(5259).exportFromMarkup,o.getMarkup=n(5259).getMarkup,o.exportWidgets=n(5259).exportWidgets,o.currentPalette=n(23696).currentPalette,o.getPalette=n(23696).getPalette,o.generateColors=n(23696).generateColors,o.registerPalette=n(23696).registerPalette,o.refreshTheme=n(86231).refreshTheme,o.dxChart=n(99511),o.dxPieChart=n(72111),o.dxPolarChart=n(80919),o.dxLinearGauge=n(99630),o.dxCircularGauge=n(39847),o.dxBarGauge=n(45888),o.dxRangeSelector=n(82879),o.dxVectorMap=n(81849),o.map={},o.map.sources={},o.map.projection=n(102).projection,o.dxSparkline=n(43759),o.dxBullet=n(88950),o.dxTreeMap=n(15584),o.dxFunnel=n(30187),o.dxSankey=n(34377),o.BaseWidget=n(59063),o.getTheme=n(86231).getTheme,o.findTheme=n(86231).getTheme,o.refreshAll=n(86231).refreshTheme,o.refreshPaths=n(34434).refreshPaths,o.gauges={__internals:{}},o._dashboard={},o._dashboard.Renderer=n(56453).Renderer,o._dashboard.SvgElement=n(56453).SvgElement,o._dashboard.patchFontOptions=n(19157).patchFontOptions,e.exports=o},85866:function(e,t,n){n(64178),n(2025)},50779:function(e,t,n){var i=n(85357);n(94620),n(70527);var o=i.ui=n(26864);o.themes=n(75811),o.setTemplateEngine=n(72987).setTemplateEngine,o.dialog=n(15029),o.notify=n(59958),o.repaintFloatingActionButton=n(81374),o.dxActionSheet=n(81476),o.dxAutocomplete=n(65418),o.dxBox=n(55551),o.dxButton=n(63008),o.dxDropDownButton=n(45231),o.dxButtonGroup=n(28236),o.dxCalendar=n(26559),o.dxCheckBox=n(18859),o.dxColorBox=n(4278),o.dxDateBox=n(29589),o.dxDrawer=n(45065),o.dxDeferRendering=n(28414),o.dxDropDownBox=n(36646),o.dxDropDownMenu=n(79561),o.dxFileUploader=n(53749),o.dxForm=n(17737),o.dxGallery=n(49433),o.dxHtmlEditor=n(9619),o.dxList=n(86e3),o.dxLoadIndicator=n(2492),o.dxLoadPanel=n(97218),o.dxLookup=n(55935),o.dxMap=n(64304),o.dxMultiView=n(86478),o.dxNavBar=n(65089),o.dxNumberBox=n(34171),o.dxOverlay=n(89799),o.dxPopover=n(22348),o.dxPopup=n(39114),o.dxProgressBar=n(28080),o.dxRadioGroup=n(14305),o.dxRangeSlider=n(36992),o.dxResizable=n(46743),o.dxResponsiveBox=n(21643),o.dxScrollView=n(4741),o.dxSelectBox=n(78665),o.dxSlider=n(97834),o.dxSpeedDialAction=n(17017),o.dxSwitch=n(31609),o.dxTabPanel=n(21807),o.dxTabs=n(13453),o.dxTagBox=n(31362),o.dxTextArea=n(51237),o.dxTextBox=n(29837),o.dxTileView=n(93094),o.dxToast=n(37748),o.dxToolbar=n(71042),o.dxTooltip=n(94920),o.dxTrackBar=n(39661),o.dxDraggable=n(42160),o.dxSortable=n(66843),i.validationEngine=n(90964),o.dxValidationSummary=n(97289),o.dxValidationGroup=n(4401),o.dxValidator=n(39562),n(52935),o.CollectionWidget=n(11050),o.dxDropDownEditor=n(44687),e.exports=o},64178:function(e,t,n){var i=n(50779);i.dxSlideOut=n(85643),i.dxSlideOutView=n(92719)},2025:function(e,t,n){var i=n(94620),o=n(50779);o.dxAccordion=n(76219),o.dxContextMenu=n(10042),o.dxDataGrid=n(1186),o.dxTreeList=n(82655),o.dxMenu=n(76995),o.dxPivotGrid=n(96089),o.dxPivotGridFieldChooser=n(32014),i.PivotGridDataSource=n(98713),i.XmlaStore=n(9170),o.dxScheduler=n(9508),o.dxTreeView=n(30254),o.dxFilterBuilder=n(20301),o.dxFileManager=n(87446),o.dxDiagram=n(52311),o.dxGantt=n(33465)},26864:function(e,t,n){n(36991),e.exports=DevExpress.ui={}},20802:function(e,t,n){n(36991),e.exports=DevExpress.viz=DevExpress.viz||{}},52752:function(e,t){t.default=void 0;var n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},i=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=s(t,n,i);return[o[0],o[1],o[2],1,[t,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=d(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],o=Math.round;function a(e){var t;this.baseColor=e,e&&(t=String(e).toLowerCase().replace(/ /g,""),t=function(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,o=i.length;n<o;++n)if(t=i[n].re.exec(e))return i[n].process(t);return null}(t=n[t]?"#"+n[t]:t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=r(t[0]),this.g=r(t[1]),this.b=r(t[2]),this.a=r(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=function(e,t,n){var i,o,a=Math.max(e,t,n),r=Math.min(e,t,n),s=a-r,l=a;if(o=0===a?0:1-r/a,a===r)i=0;else switch(a){case e:i=(t-n)/s*60,t<n&&(i+=360);break;case t:i=(n-e)/s*60+120;break;case n:i=(e-t)/s*60+240}return o*=100,l*=100/255,{h:Math.round(i),s:Math.round(o),v:Math.round(l)}}(this.r,this.g,this.b),t[5]?this.hsl={h:t[5][0],s:t[5][1],l:t[5][2]}:this.hsl=function(e,t,n){e=c(e,255),t=c(t,255),n=c(n,255);var i,a,r=Math.max(e,t,n),s=Math.min(e,t,n),l=r+s,u=l/2;if(r===s)i=a=0;else{var d=r-s;a=u>.5?d/(2-l):d/l,i=function(e,t,n,i){switch(Math.max(e,t,n)){case e:return(t-n)/i+(t<n?6:0);case t:return(n-e)/i+2;case n:return(e-t)/i+4}}(e,t,n,d),i/=6}return{h:o(360*i),s:o(100*a),l:o(100*u)}}(this.r,this.g,this.b)}function r(e,t,n){return t=t||0,n=n||255,e<0||isNaN(e)?t:e>n?n:e}function s(e,t,n){var i,o,a,r=(100-t)*n/100,s=e%60/60*(n-r),l=r+s,u=n-s;switch(Math.floor(e%360/60)){case 0:i=n,o=l,a=r;break;case 1:i=u,o=n,a=r;break;case 2:i=r,o=n,a=l;break;case 3:i=r,o=u,a=n;break;case 4:i=l,o=r,a=n;break;case 5:i=n,o=r,a=u}return[Math.round(2.55*i),Math.round(2.55*o),Math.round(2.55*a)]}function l(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function u(e,t,n){return(n=function(e){return e<0&&(e+=1),e>1&&(e-=1),e}(n))<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function d(e,t,n){var i,a,r;if(e=c(e,360),t=c(t,100),n=c(n,100),0===t)i=a=r=n;else{var s=n<.5?n*(1+t):n+t-n*t,d=2*n-s;i=u(d,s,l("r",e)),a=u(d,s,l("g",e)),r=u(d,s,l("b",e))}return[o(255*i),o(255*a),o(255*r)]}function c(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function h(e,t,n){return t=t||0,n=n||255,!(e%1!=0||e<t||e>n||"number"!=typeof e||isNaN(e))}a.prototype={constructor:a,highlight:function(e){return e=e||10,this.alter(e).toHex()},darken:function(e){return e=e||10,this.alter(-e).toHex()},alter:function(e){var t=new a;return t.r=r(this.r+e),t.g=r(this.g+e),t.b=r(this.b+e),t},blend:function(e,t){var n=e instanceof a?e:new a(e),i=new a;return i.r=r(o(this.r*(1-t)+n.r*t)),i.g=r(o(this.g*(1-t)+n.g*t)),i.b=r(o(this.b*(1-t)+n.b*t)),i},toHex:function(){return"#"+(16777216|this.r<<16|this.g<<8|this.b).toString(16).slice(1)},getPureColor:function(){return new a("rgb("+s(this.hsv.h,100,100).join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(h(e)&&h(t)&&h(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1,fromHSL:function(e){var t=new a,n=d(e.h,e.s,e.l);return t.r=n[0],t.g=n[1],t.b=n[2],t}};var f=a;t.default=f,e.exports=t.default,e.exports.default=t.default},62414:function(e,t,n){t.default=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(58201),r=n(35922),s=n(95479),l=function(){function e(e,t){t=t||{},this._action=e,this._context=t.context||(0,a.getWindow)(),this._beforeExecute=t.beforeExecute,this._afterExecute=t.afterExecute,this._component=t.component,this._validatingTargetName=t.validatingTargetName;var n=this._excludeValidators={};if(t.excludeValidators)for(var i=0;i<t.excludeValidators.length;i++)n[t.excludeValidators[i]]=!0}var t=e.prototype;return t.execute=function(){var e={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},t=this._beforeExecute,n=this._afterExecute,i=e.args[0]||{};if(this._validateAction(e)&&(null==t||t.call(this._context,e),!e.cancel)){var o=this._executeAction(e);if(!i.cancel)return null==n||n.call(this._context,e),o}},t._validateAction=function(t){var n=this._excludeValidators,i=e.executors;for(var o in i)if(!n[o]){var a,r=i[o];if(null===(a=r.validate)||void 0===a||a.call(r,t),t.cancel)return!1}return!0},t._executeAction=function(t){var n,i=e.executors;for(var o in i){var a,r=i[o];if(null===(a=r.execute)||void 0===a||a.call(r,t),t.handled){n=t.result;break}}return n},e.registerExecutor=function(t,n){(0,r.isPlainObject)(t)?(0,s.each)(t,e.registerExecutor):e.executors[t]=n},e.unregisterExecutor=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(0,s.each)(n,(function(){delete e.executors[this]}))},e}();t.default=l,l.executors={};var u=function(e){return function(t){if(t.args.length){var n=t.args[0],i=n[t.validatingTargetName]||n.element;i&&e((0,o.default)(i))&&(t.cancel=!0)}}};l.registerExecutor({disabled:{validate:u((function(e){return e.is(".dx-state-disabled, .dx-state-disabled *")}))},readOnly:{validate:u((function(e){return e.is(".dx-state-readonly, .dx-state-readonly *:not(.dx-state-independent)")}))},undefined:{execute:function(e){e.action||(e.result=void 0,e.handled=!0)}},func:{execute:function(e){(0,r.isFunction)(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}}),e.exports=t.default,e.exports.default=t.default},38377:function(e,t,n){t.default=void 0;var i,o,a=(i=n(17381))&&i.__esModule?i:{default:i},r=n(35922),s=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},l=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?s(o.parent.prototype,n,i):i;return o},u=function(){var e,t,n,i=this,o=Object.prototype.hasOwnProperty.bind(i),a=!o("_includedCtors")&&!o("_includedPostCtors");for(a&&(i._includedCtors=i._includedCtors.slice(0),i._includedPostCtors=i._includedPostCtors.slice(0)),n=0;n<arguments.length;n++)for(t in(e=arguments[n]).ctor&&i._includedCtors.push(e.ctor),e.postCtor&&i._includedPostCtors.push(e.postCtor),e)"ctor"!==t&&"postCtor"!==t&&"default"!==t&&(i.prototype[t]=e[t]);return i},d=function(e){if(!Object.prototype.hasOwnProperty.bind(this)("parent")&&this.parent){var t=Object.getPrototypeOf(this);return t===e||t.subclassOf(e)}return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},c=function(){throw a.default.Error("E0001")},h=(o=Object.prototype.hasOwnProperty,function(e,t){for(var n in e){if(!o.call(e,n))return;t[n]=e[n]}}),f=function(){};f.inherit=function(e){var t=function(){if(!this||(0,r.isWindow)(this)||"function"!=typeof this.constructor)throw a.default.Error("E0003");var e,t=this,n=t.ctor,i=t.constructor._includedCtors,o=t.constructor._includedPostCtors;for(e=0;e<i.length;e++)i[e].call(t);for(n&&n.apply(t,arguments),e=0;e<o.length;e++)o[e].call(t)};return t.prototype=function(e){var t=function(){};return t.prototype=e.prototype,new t}(this),h(this,t),t.inherit=this.inherit,t.abstract=c,t.redefine=l,t.include=u,t.subclassOf=d,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},f.abstract=c;var p=f;t.default=p,e.exports=t.default,e.exports.default=t.default},44297:function(e,t,n){t.Component=void 0;var i=_(n(80209)),o=n(13306),a=n(95683),r=n(45434),s=_(n(38377)),l=_(n(62414)),u=_(n(17381)),d=_(n(44504)),c=n(80566),h=n(9321),f=n(90889),p=n(35922),g=n(20576),m=n(47617);function _(e){return e&&e.__esModule?e:{default:e}}var v=function(e){return e.charAt(2).toLowerCase()+e.substr(3)},y=s.default.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(e){this._options.applyRules(e)},_convertRulesToOptions:function(e){return(0,r.convertRulesToOptions)(e)},_isInitialOptionValue:function(e){return this._options.isInitial(e)},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e._optionChangedCallbacks,n=e._disposingCallbacks;this.NAME=(0,h.name)(this.constructor),this._eventsStrategy=c.EventsStrategy.create(this,e.eventsStrategy),this._updateLockCount=0,this._optionChangedCallbacks=t||(0,d.default)(),this._disposingCallbacks=n||(0,d.default)(),this.postponedOperations=new f.PostponedOperations,this._createOptions(e)},_createOptions:function(e){var t=this;this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=new a.Options(this._getDefaultOptions(),this._getDefaultOptions(),this._getOptionsByReference(),this._getDeprecatedOptions()),this._options.onChanging((function(e,n,i){return t._initialized&&t._optionChanging(e,n,i)})),this._options.onDeprecated((function(e,n){return t._logDeprecatedOptionWarning(e,n)})),this._options.onChanged((function(e,n,i){return t._notifyOptionChanged(e,n,i)})),this._options.onStartChange((function(){return t.beginUpdate()})),this._options.onEndChange((function(){return t.endUpdate()})),this._options.addRules(this._defaultOptionsRules()),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._initOptions(e)}finally{this.endUpdate()}},_initOptions:function(e){this.option(e)},_init:function(){var e=this;this._createOptionChangedAction(),this.on("disposing",(function(t){e._disposingCallbacks.fireWith(e,[t])}))},_logDeprecatedOptionWarning:function(e,t){var n=t.message||"Use the '".concat(t.alias,"' option instead");u.default.log("W0001",this.NAME,e,t.since,n)},_logDeprecatedComponentWarning:function(e,t){u.default.log("W0000",this.NAME,e,"Use the '".concat(t,"' widget instead"))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged:function(e){switch(e.name){case"onDisposing":case"onInitialized":case"defaultOptionsRules":break;case"onOptionChanged":this._createOptionChangedAction()}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._eventsStrategy.dispose(),this._options.dispose(),this._disposed=!0},_lockUpdate:function(){this._updateLockCount++},_unlockUpdate:function(){this._updateLockCount=Math.max(this._updateLockCount-1,0)},_isUpdateAllowed:function(){return 0===this._updateLockCount},_isInitializingRequired:function(){return!this._initializing&&!this._initialized},_commitUpdate:function(){this.postponedOperations.callPostponedOperations(),this._isInitializingRequired()&&this._initializeComponent()},_initializeComponent:function(){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._lockUpdate(),this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._unlockUpdate(),this._initialized=!0}},instance:function(){return this},beginUpdate:function(){this._lockUpdate()},endUpdate:function(){this._unlockUpdate(),this._isUpdateAllowed()&&this._commitUpdate()},_optionChanging:g.noop,_notifyOptionChanged:function(e,t,n){if(this._initialized)for(var i=[e].concat(this._options.getAliasesByName(e)),a=0;a<i.length;a++){var r=i[a],s={name:(0,m.getPathParts)(r)[0],fullName:r,value:t,previousValue:n};0!==r.indexOf("_",0)&&(this._optionChangedCallbacks.fireWith(this,[(0,o.extend)(this._defaultActionArgs(),s)]),this._optionChangedAction((0,o.extend)({},s))),this._disposed||this._cancelOptionChange===r||this._optionChanged(s)}},initialOption:function(e){return this._options.initial(e)},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(e,t){var n,i=this;return function(a){return(0,p.isDefined)(a)||(a={}),(0,p.isPlainObject)(a)||(a={actionValue:a}),(n=n||new l.default(e,(0,o.extend)(t,i._defaultActionConfig()))).execute.call(n,(0,o.extend)(a,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,o,a,r=this,s=function(){if(!o){if(t=t||{},"string"!=typeof e)throw u.default.Error("E0008");0===e.indexOf("on")&&(o=v(e)),a=r.option()[e]}if(n||a||t.beforeExecute||t.afterExecute||r._eventsStrategy.hasEvent(o)){if(!n){var s=t.beforeExecute;t.beforeExecute=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s&&s.apply(r,t),r._eventsStrategy.fireEvent(o,t[0].args)},n=r._createAction(a,t)}for(var l=arguments.length,d=new Array(l),c=0;c<l;c++)d[c]=arguments[c];if((0,i.default)().wrapActionsBeforeExecute){var h=r.option("beforeActionExecute")||g.noop,f=h(r,n,t)||n;return f.apply(r,d)}return n.apply(r,d)}};return(0,i.default)().wrapActionsBeforeExecute?s:(this.option("onActionCreated")||g.noop)(this,s,t)||s},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},hasActionSubscription:function(e){return!!this._options.silent(e)||this._eventsStrategy.hasEvent(v(e))},isOptionDeprecated:function(e){return this._options.isDeprecated(e)},_setOptionWithoutOptionChange:function(e,t){this._cancelOptionChange=e,this.option(e,t),this._cancelOptionChange=!1},_getOptionValue:function(e,t){var n=this.option(e);return(0,p.isFunction)(n)?n.bind(t)():n},option:function(){var e;return(e=this._options).option.apply(e,arguments)},resetOption:function(e){this.beginUpdate(),this._options.reset(e),this.endUpdate()}});t.Component=y},99393:function(e,t,n){t.default=void 0;var i=s(n(68374)),o=s(n(5554)),a=s(n(17381)),r=n(9321);function s(e){return e&&e.__esModule?e:{default:e}}o.default.add((function(e,t){i.default.fn[e]=function(n){var i,o="string"==typeof n;if(o){var r=n,s=[].slice.call(arguments).slice(1);this.each((function(){var n=t.getInstance(this);if(!n)throw a.default.Error("E0009",e);var o=n[r].apply(n,s);void 0===i&&(i=o)}))}else this.each((function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)})),i=this;return i}}));t.default=function(e,t,n){n?t[e]=n:n=t,(0,r.name)(n,e),o.default.fire(e,n)},e.exports=t.default,e.exports.default=t.default},5554:function(e,t,n){var i;t.default=void 0;var o=new(((i=n(83358))&&i.__esModule?i:{default:i}).default);t.default=o,e.exports=t.default,e.exports.default=t.default},80209:function(e,t,n){t.default=void 0;var i,o=n(13306),a=(i=n(17381))&&i.__esModule?i:{default:i},r={rtlEnabled:!1,defaultCurrency:"USD",oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",label:"",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,shading:!1,direction:"auto"},optionsParser:function(e){"{"!==e.trim().charAt(0)&&(e="{"+e+"}");try{return new Function("return "+e)()}catch(t){throw a.default.Error("E3018",t,e)}}},s=["decimalSeparator","thousandsSeparator"],l=function(){if(!arguments.length)return r;var e=arguments.length<=0?void 0:arguments[0];s.forEach((function(t){if(e[t]){var n="Now, the ".concat(t," is selected based on the specified locale.");a.default.log("W0003","config",t,"19.2",n)}})),(0,o.extend)(r,e)};"undefined"!=typeof DevExpress&&DevExpress.config&&l(DevExpress.config);var u=l;t.default=u,e.exports=t.default,e.exports.default=t.default},20530:function(e,t,n){t.default=void 0;var i=n(58664),o=_(n(68374)),a=n(58201),r=n(13306),s=n(35922),l=n(95479),u=_(n(17381)),d=_(n(44504)),c=_(n(24311)),h=_(n(55814)),f=n(80566),p=n(36613),g=n(77695),m=_(n(80209));function _(e){return e&&e.__esModule?e:{default:e}}var v=(0,a.getNavigator)(),y=(0,a.getWindow)(),x={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},b={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},w={generic: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),o=/((intel|ppc) mac os x)/.test(e.toLowerCase());if(t||n||i||o)return{deviceType:t?"phone":n?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:o}},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===y.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]||0,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"}}}},C=new(function(){function e(e){this._window=(null==e?void 0:e.window)||y,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new f.EventsStrategy(this),this.changed=(0,d.default)(),(0,a.hasWindow)()&&(c.default.add(this._recalculateOrientation.bind(this)),h.default.add(this._recalculateOrientation.bind(this)))}var t=e.prototype;return t.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},t.real=function(e){return(0,r.extend)({},this._realDevice)},t.orientation=function(){return this._currentOrientation},t.isForced=function(){return this._forced},t.isRippleEmulator=function(){return!!this._window.tinyHippos},t._getCssClasses=function(e){var t=[],n=this._realDevice;return(e=e||this.current()).deviceType&&(t.push("dx-device-".concat(e.deviceType)),"desktop"!==e.deviceType&&t.push("dx-device-mobile")),t.push("dx-device-".concat(n.platform)),n.version&&n.version.length&&t.push("dx-device-".concat(n.platform,"-").concat(n.version[0])),this.isSimulator()&&t.push("dx-simulator"),(0,m.default)().rtlEnabled&&t.push("dx-rtl"),t},t.attachCssClasses=function(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),(0,o.default)(e).addClass(this._deviceClasses)},t.detachCssClasses=function(e){(0,o.default)(e).removeClass(this._deviceClasses)},t.isSimulator=function(){try{return this._isSimulator||(0,a.hasWindow)()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(e){return!1}},t.forceSimulator=function(){this._isSimulator=!0},t._getDevice=function(e){if("genericPhone"===e&&(e={deviceType:"phone",platform:"generic",generic:!0}),(0,s.isPlainObject)(e))return this._fromConfig(e);var t;if(e){if(!(t=x[e]))throw u.default.Error("E0005")}else t=v.userAgent;return this._fromUA(t)},t._getDeviceOrNameFromWindowScope=function(){var e;return(0,a.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},t._getDeviceNameFromSessionStorage=function(){var e=(0,p.sessionStorage)();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},t._fromConfig=function(e){var t=(0,r.extend)({},b,this._currentDevice,e),n={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,generic:"generic"===t.platform};return(0,r.extend)(t,n)},t._fromUA=function(e){var t;return(0,l.each)(w,(function(n,i){return!(t=i(e))})),t?this._fromConfig(t):b},t._changeOrientation=function(){var e=(0,o.default)(this._window),t=(0,i.getHeight)(e)>(0,i.getWidth)(e)?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:t}]))},t._recalculateOrientation=function(){var e=(0,i.getWidth)(this._window);this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())},t.on=function(e,t){return this._eventsStrategy.on(e,t),this},t.off=function(e,t){return this._eventsStrategy.off(e,t),this},e}()),S=(0,g.value)();S&&C.attachCssClasses(S),g.changeCallback.add((function(e,t){C.detachCssClasses(t),C.attachCssClasses(e)}));var k=C;t.default=k,e.exports=t.default,e.exports.default=t.default},73349:function(e,t,n){t.default=void 0;var i,o=(i=n(20476))&&i.__esModule?i:{default:i},a=n(20576);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){var n=this;return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var i=e.document||e.ownerDocument;if(!i)return!1;for(var o=n.querySelectorAll(i,t),a=0;a<o.length;a++)if(o[a]===e)return!0}).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 e&&"object"===r(e)&&"nodeType"in e&&"nodeName"in e},isElementNode:function(e){return e&&1===e.nodeType},isTextNode:function(e){return e&&3===e.nodeType},isDocument:function(e){return e&&9===e.nodeType},removeElement:function(e){var t=e&&e.parentNode;t&&t.removeChild(e)},insertElement:function(e,t,n){e&&t&&e!==t&&(n?e.insertBefore(t,n):e.appendChild(t))},getAttribute:function(e,t){return e.getAttribute(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},removeAttribute:function(e,t){e.removeAttribute(t)},setProperty:function(e,t,n){e[t]=n},setText:function(e,t){e&&(e.textContent=t)},setClass:function(e,t,n){1===e.nodeType&&t&&(n?e.classList.add(t):e.classList.remove(t))},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.noop},elementsFromPoint:function(e,t){return this._document.elementsFromPoint(e,t)}},l=(0,o.default)(s);t.default=l,e.exports=t.default,e.exports.default=t.default},13046:function(e,t,n){t.default=void 0;var i=y(n(68374)),o=y(n(80209)),a=y(n(17381)),r=y(n(55814)),s=n(44297),l=n(14192),u=n(9321),d=n(97906),c=n(95479),h=n(13306),f=n(6415),p=n(20576),g=n(89386),m=n(35922),_=n(58201),v=n(72918);function y(e){return e&&e.__esModule?e:{default:e}}var x=s.Component.abstract,b=s.Component.inherit({_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{width:void 0,height:void 0,rtlEnabled:(0,o.default)().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}},this._useTemplates()?l.TemplateManager.createDefaultOptions():{})},ctor:function(e,t){this._customClass=null,this._createElement(e),(0,u.attachInstanceToElement)(this._$element,this,this._dispose),this.callBase(t)},_createElement:function(e){this._$element=(0,i.default)(e)},_getSynchronizableOptionsForCreateComponent:function(){return["rtlEnabled","disabled","templatesRenderAsynchronously"]},_checkFunctionValueDeprecation:function(e){var t=this;this.option("_ignoreFunctionValueDeprecation")||e.forEach((function(e){(0,m.isFunction)(t.option(e))&&a.default.log("W0017",e)}))},_visibilityChanged:x,_dimensionChanged:x,_init:function(){this.callBase(),this._checkFunctionValueDeprecation(["width","height","maxHeight","maxWidth","minHeight","minWidth","popupHeight","popupWidth"]),this._attachWindowResizeCallback(),this._initTemplateManager()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){return!(this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),e))&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);r.default.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==x},_renderComponent:function(){this._initMarkup(),(0,_.hasWindow)()&&this._render()},_initMarkup:function(){var e=(this.option()||{}).rtlEnabled;this._renderElementAttributes(),this._toggleRTLDirection(e),this._renderVisibilityChange(),this._renderDimensions()},_render:function(){this._attachVisibilityChangeHandlers()},_renderElementAttributes:function(){var e=(this.option()||{}).elementAttr,t=(0,h.extend)({},e),n=t.class;delete t.class,this.$element().attr(t).removeClass(this._customClass).addClass(n),this._customClass=n},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass("dx-visibility-change-handler")},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t);this._isCssUpdateRequired(t,i,n)&&e.css({width:null===n?"":n,height:null===i?"":i})},_isCssUpdateRequired:function(e,t,n){return!!((0,m.isDefined)(n)||(0,m.isDefined)(t)||e.style.width||e.style.height)},_attachDimensionChangeHandlers:function(){var e=this,t=this.$element(),n="".concat(this.NAME,"VisibilityChange");v.resize.off(t,{namespace:n}),v.resize.on(t,(function(){return e._dimensionChanged()}),{namespace:n})},_attachVisibilityChangeHandlers:function(){var e=this;if(this._isVisibilityChangeSupported()){var t=this.$element(),n="".concat(this.NAME,"VisibilityChange");this._isHidden=!this._isVisible(),v.visibility.off(t,{namespace:n}),v.visibility.on(t,(function(){return e._checkVisibilityChanged("shown")}),(function(){return e._checkVisibilityChanged("hiding")}),{namespace:n})}},_isVisible:function(){return this.$element().is(":visible")},_checkVisibilityChanged:function(e){this._isVisible()&&("hiding"!==e||this._isHidden?"shown"===e&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0)):(this._visibilityChanged(!1),this._isHidden=!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==x&&(0,_.hasWindow)()},_clean:p.noop,_modelByElement:function(){var e=this.option().modelByElement,t=this.$element();return e?e(t):void 0},_invalidate:function(){if(this._isUpdateAllowed())throw a.default.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._renderComponent()},_dispose:function(){this._templateManager&&this._templateManager.dispose(),this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&r.default.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.$element().toggleClass("dx-rtl",e)},_createComponent:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(0,p.grep)(this._getSynchronizableOptionsForCreateComponent(),(function(e){return!(e in o)})),r=this.option(),s=r.integrationOptions,l=this.option(),u=l.nestedComponentOptions;u=u||p.noop;var d=(0,h.extend)({integrationOptions:s},u(this));a.forEach((function(e){return d[e]=n.option(e)})),this._extendConfig(o,d);var c=void 0;if((0,m.isString)(t)){var f=(0,i.default)(e)[t](o);c=f[t]("instance")}else e&&((c=t.getInstance(e))?c.option(o):c=new t(e,o));if(c){var _=function(e){var t=e.name,n=e.value;(0,g.inArray)(t,a)>=0&&c.option(t,n)};this.on("optionChanged",_),c.on("disposing",(function(){return n.off("optionChanged",_)}))}return c},_extendConfig:function(e,t){(0,c.each)(t,(function(t,n){!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=n)}))},_defaultActionConfig:function(){var e=this.$element(),t=this._modelByElement(e);return(0,h.extend)(this.callBase(),{context:t})},_defaultActionArgs:function(){var e=this.$element(),t=this._modelByElement(e),n=this.element();return(0,h.extend)(this.callBase(),{element:n,model:t})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(e)}},_removeAttributes:function(e){for(var t=e.attributes,n=t.length-1;n>=0;n--){var i=t[n];if(i){var o=i.name;o.indexOf("aria-")&&-1===o.indexOf("dx-")&&"role"!==o&&"style"!==o&&"tabindex"!==o||e.removeAttribute(o)}}},_removeClasses:function(e){e.className=e.className.split(" ").filter((function(e){return 0!==e.lastIndexOf("dx-",0)})).join(" ")},_updateDOMComponent:function(e){e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate:function(){var e=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(e)},$element:function(){return this._$element},element:function(){var e=this.$element();return(0,f.getPublicElement)(e)},dispose:function(){var e=this.$element().get(0);(0,d.cleanDataRecursive)(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)},resetOption:function(e){if(this.callBase(e),"width"===e||"height"===e){var t=this.initialOption(e);!(0,m.isDefined)(t)&&this.$element().css(e,"")}},_getAnonymousTemplateName:function(){},_initTemplateManager:function(){if(!this._templateManager&&this._useTemplates()){var e=this.option().integrationOptions,t=(void 0===e?{}:e).createTemplate;this._templateManager=new l.TemplateManager(t,this._getAnonymousTemplateName()),this._initTemplates()}},_initTemplates:function(){var e=this,t=this._templateManager.extractTemplates(this.$element()),n=t.templates,i=t.anonymousTemplateMeta,o=this.option("integrationOptions.templates.".concat(i.name));n.forEach((function(t){var n=t.name,i=t.template;e._options.silent("integrationOptions.templates.".concat(n),i)})),i.name&&!o&&(this._options.silent("integrationOptions.templates.".concat(i.name),i.template),this._options.silent("_hasAnonymousTemplateContent",!0))},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){var t=this.option("integrationOptions.templates"),n=this.option("templatesRenderAsynchronously"),i=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(e,t,{isAsyncTemplate:n,skipTemplates:i},this)},_saveTemplate:function(e,t){this._setOptionWithoutOptionChange("integrationOptions.templates."+e,this._templateManager._createTemplate(t))},_useTemplates:function(){return!0}});b.getInstance=function(e){return(0,u.getInstanceByElement)((0,i.default)(e),this)},b.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)};var w=b;t.default=w,e.exports=t.default,e.exports.default=t.default},6415:function(e,t){t.getPublicElement=function(e){return n(e)},t.setPublicElementWrapper=function(e){n=e};var n=function(e){return e&&e.get(0)}},97906:function(e,t,n){t.afterCleanData=function(e){h=e},t.beforeCleanData=function(e){c=e},t.cleanData=function(e){return l.cleanData.call(this,e)},t.cleanDataRecursive=function(e,t){if(o.default.isElementNode(e)){var n=e.getElementsByTagName("*");l.cleanData(n),t&&l.cleanData([e])}},t.data=function(){return l.data.apply(this,arguments)},t.getDataStrategy=function(){return l},t.removeData=function(e,t){return l.removeData.call(this,e,t)},t.strategyChanging=t.setDataStrategy=void 0;var i=s(n(10126)),o=s(n(73349)),a=s(n(55994)),r=s(n(83358));function s(e){return e&&e.__esModule?e:{default:e}}var l,u=new i.default,d=new r.default;t.strategyChanging=d;var c=function(){},h=function(){},f=function(e){d.fire(e);var t=(l=e).cleanData;l.cleanData=function(e){c(e);var n=t.call(this,e);return h(e),n}};t.setDataStrategy=f,f({data:function(){var e=arguments[0],t=arguments[1],n=arguments[2];if(e){var i=u.get(e);return i||(i={},u.set(e,i)),void 0===t?i:2===arguments.length?i[t]:(i[t]=n,n)}},removeData:function(e,t){if(e)if(void 0===t)u.delete(e);else{var n=u.get(e);n&&delete n[t]}},cleanData:function(e){for(var t=0;t<e.length;t++)a.default.off(e[t]),u.delete(e[t])}})},17381:function(e,t,n){var i;t.default=void 0;var o=(0,((i=n(95640))&&i.__esModule?i:{default:i}).default)({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",E0103:"validationCallback of an asynchronous rule should return a jQuery or a native promise",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' field of the 'onCustomItemCreating' function's parameter should contain a custom item or Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v{2}. {3}.',W0017:'Setting the "{0}" property with a function is deprecated since v21.2',W0018:'Setting the "position" property with a function is deprecated since v21.2'});t.default=o,e.exports=t.default,e.exports.default=t.default},80566:function(e,t,n){t.EventsStrategy=void 0;var i,o=(i=n(44504))&&i.__esModule?i:{default:i},a=n(95479),r=n(35922),s=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._events={},this._owner=e,this._options=t}e.create=function(t,n){return n?(0,r.isFunction)(n)?n(t):n:new e(t)};var t=e.prototype;return t.hasEvent=function(e){var t=this._events[e];return!!t&&t.has()},t.fireEvent=function(e,t){var n=this._events[e];return n&&n.fireWith(this._owner,t),this._owner},t.on=function(e,t){var n=this;if((0,r.isPlainObject)(e))(0,a.each)(e,(function(e,t){n.on(e,t)}));else{var i=this._events[e];i||(i=(0,o.default)({syncStrategy:this._options.syncStrategy}),this._events[e]=i),(i.originalAdd||i.add).call(i,t)}},t.off=function(e,t){var n=this._events[e];n&&((0,r.isFunction)(t)?n.remove(t):n.empty())},t.dispose=function(){(0,a.each)(this._events,(function(e,t){t.empty()}))},e}();t.EventsStrategy=s},73176:function(e,t,n){var i;t.default=void 0;var o=((i=n(38377))&&i.__esModule?i:{default:i}).default.inherit({ctor:function(e){e&&(e=String(e)),this._value=this._normalize(e||this._generate())},_normalize:function(e){for(e=e.replace(/[^a-f0-9]/gi,"").toLowerCase();e.length<32;)e+="0";return[e.substr(0,8),e.substr(8,4),e.substr(12,4),e.substr(16,4),e.substr(20,12)].join("-")},_generate:function(){for(var e="",t=0;t<32;t++)e+=Math.round(15*Math.random()).toString(16);return e},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});t.default=o,e.exports=t.default,e.exports.default=t.default},83448:function(e,t,n){t.default=void 0;var i,o=n(58201),a=(i=n(20476))&&i.__esModule?i:{default:i},r=(0,o.getWindow)(),s={getXhr:function(){return new r.XMLHttpRequest}},l=(0,a.default)(s);t.default=l,e.exports=t.default,e.exports.default=t.default},15334:function(e,t,n){t.default=void 0;var i=n(55285),o=n(44105),a=n(87456),r=u(n(73349)),s=n(97906),l=u(n(20476));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(e){var t=e.parentNode;t&&((0,s.cleanDataRecursive)(e),t.$V=e.$V,(0,i.render)(null,t),t.appendChild(e),e.innerHTML="",delete t.$V),delete e.$V},c=(0,l.default)({createElement:function(e,t){return(0,a.createElement)(e,t)},remove:d,onAfterRender:function(){o.InfernoEffectHost.callEffects()},onPreRender:function(){o.InfernoEffectHost.lock()},render:function(e,t,n,s){if(s)(0,i.render)((0,a.createElement)(e,t),n);else{var l=n.parentNode,u=null==n?void 0:n.nextSibling,c=r.default.createElement("div");c.appendChild(n);var h=r.default.createDocumentFragment().appendChild(c);!!n.$V&&d(n),(0,o.hydrate)((0,a.createElement)(e,t),h),n.$V=h.$V,l&&l.insertBefore(n,u)}}});t.default=c,e.exports=t.default,e.exports.default=t.default},83358:function(e,t,n){t.default=void 0;var i,o=n(95479),a=(i=n(44504))&&i.__esModule?i:{default:i},r=function(){function e(){this.memory=[],this.callbacks=(0,a.default)()}var t=e.prototype;return t.add=function(e){(0,o.each)(this.memory,(function(t,n){return e.apply(e,n)})),this.callbacks.add(e)},t.remove=function(e){this.callbacks.remove(e)},t.fire=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.memory.push(t),this.callbacks.fire.apply(this.callbacks,t)},e}();t.default=r,e.exports=t.default,e.exports.default=t.default},95683:function(e,t,n){t.Options=void 0;var i=n(35922),o=n(20576),a=n(9030),r=n(47617),s=n(45434),l=n(13306);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var c=function(){function e(e,t,n,i){var o=this;this._deprecatedCallback,this._startChangeCallback,this._endChangeCallback,this._default=t,this._deprecated=i,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new a.OptionManager(e,n),this._optionManager.onRelevantNamesPrepared((function(e,t,n,i){return o._setRelevantNames(e,t,n,i)})),this._cachedOptions={},this._rules=[]}var t,n,c=e.prototype;return c._initDeprecatedNames=function(){for(var e in this._deprecated)this._deprecatedNames.push(e)},c._getByRules=function(e){return e=Array.isArray(e)?this._rules.concat(e):this._rules,(0,s.convertRulesToOptions)(e)},c._notifyDeprecated=function(e){var t=this._deprecated[e];t&&this._deprecatedCallback(e,t)},c._setRelevantNames=function(e,t,n,i){if(t){var o=this._normalizeName(t,i);o&&o!==t&&(this._setField(e,o,n),this._clearField(e,t))}},c._setField=function(e,t,n){var i="",o=null;do{i=i?".".concat(i):"",i=(0,s.getFieldName)(t)+i,o=(t=(0,s.getParentName)(t))?this._optionManager.get(e,t,!1):e}while(!o);o[i]=n},c._clearField=function(e,t){delete e[t];var n=(0,s.getParentName)(t),i=n?this._optionManager.get(e,n,!1):e;i&&delete i[(0,s.getFieldName)(t)]},c._normalizeName=function(e,t){if(this._deprecatedNames.length&&e)for(var n=0;n<this._deprecatedNames.length;n++)if(this._deprecatedNames[n]===e){var i=this._deprecated[e];if(i)return!t&&this._notifyDeprecated(e),i.alias||e}return e},c.addRules=function(e){this._rules=e.concat(this._rules)},c.applyRules=function(e){var t=this._getByRules(e);this.silent(t)},c.dispose=function(){this._deprecatedCallback=o.noop,this._startChangeCallback=o.noop,this._endChangeCallback=o.noop,this._optionManager.dispose()},c.onChanging=function(e){this._optionManager.onChanging(e)},c.onChanged=function(e){this._optionManager.onChanged(e)},c.onDeprecated=function(e){this._deprecatedCallback=e},c.onStartChange=function(e){this._startChangeCallback=e},c.onEndChange=function(e){this._endChangeCallback=e},c.isInitial=function(e){var t=this.silent(e),n=this.initial(e);return(0,i.isFunction)(t)&&(0,i.isFunction)(n)?t.toString()===n.toString():(0,o.equalByValue)(t,n)},c.initial=function(e){return(0,s.getNestedOptionValue)(this._initial,e)},c.option=function(e,t){var n=arguments.length<2&&"object"!==(0,i.type)(e);if(n)return this._optionManager.get(void 0,this._normalizeName(e));this._startChangeCallback();try{this._optionManager.set(e,t)}finally{this._endChangeCallback()}},c.silent=function(e,t){var n=arguments.length<2&&"object"!==(0,i.type)(e);if(n)return this._optionManager.get(void 0,e,void 0,!0);this._optionManager.set(e,t,void 0,!0)},c.reset=function(e){var t=this;if(e){var n=(0,r.getPathParts)(e).reduce((function(e,n){return e?e[n]:t.initial(n)}),null),o=(0,i.isObject)(n)?u({},n):n;this._optionManager.set(e,o,!1)}},c.getAliasesByName=function(e){var t=this;return Object.keys(this._deprecated).filter((function(n){return e===t._deprecated[n].alias}))},c.isDeprecated=function(e){return Object.prototype.hasOwnProperty.call(this._deprecated,e)},c.cache=function(e,t){var n=arguments.length<2;if(n)return this._cachedOptions[e];this._cachedOptions[e]=(0,l.extend)(this._cachedOptions[e],t)},t=e,(n=[{key:"_initial",get:function(){if(!this._initialOptions){var e=this._getByRules(this.silent("defaultOptionsRules"));this._initialOptions=this._default,this._optionManager._setByReference(this._initialOptions,e)}return this._initialOptions},set:function(e){this._initialOptions=e}}])&&d(t.prototype,n),e}();t.Options=c},9030:function(e,t,n){t.OptionManager=void 0;var i=n(47617),o=n(20576),a=n(49036),r=n(13306),s=n(35922),l=n(45434),u={},d={},c=function(){function e(e,t){this._options=e,this._optionsByReference=t,this._changingCallback,this._changedCallback,this._namePreparedCallbacks}var t=e.prototype;return t._setByReference=function(e,t){for(var n in(0,r.extend)(!0,e,t),this._optionsByReference)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t._setPreparedValue=function(e,t,n,o){var r=this.get(this._options,e,!1);if(!(0,a.equals)(r,t)){var l=(0,i.getPathParts)(e);!o&&this._changingCallback(e,r,t),d[e]=d[e]||(0,i.compileSetter)(e),d[e](this._options,t,{functionsAsIs:!0,merge:(0,s.isDefined)(n)?n:!this._optionsByReference[e],unwrapObservables:l.length>1&&!!this._optionsByReference[l[0]]}),!o&&this._changedCallback(e,t,r)}},t._prepareRelevantNames=function(e,t,n,i){if((0,s.isPlainObject)(n))for(var o in n)this._prepareRelevantNames(e,"".concat(t,".").concat(o),n[o]);this._namePreparedCallbacks(e,t,n,i)},t.get=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._options,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return u[t]=u[t]||(0,i.compileGetter)(t),u[t](e,{functionsAsIs:!0,unwrapObservables:n})},t.set=function(e,t,n,i){for(var o in e=(0,l.normalizeOptions)(e,t))this._prepareRelevantNames(e,o,e[o],i);for(var a in e)this._setPreparedValue(a,e[a],n,i)},t.onRelevantNamesPrepared=function(e){this._namePreparedCallbacks=e},t.onChanging=function(e){this._changingCallback=e},t.onChanged=function(e){this._changedCallback=e},t.dispose=function(){this._changingCallback=o.noop,this._changedCallback=o.noop},e}();t.OptionManager=c},45434:function(e,t,n){t.normalizeOptions=t.getParentName=t.getNestedOptionValue=t.getFieldName=t.deviceMatch=t.createDefaultOptionRules=t.convertRulesToOptions=void 0;var i,o=(i=n(20530))&&i.__esModule?i:{default:i},a=n(35922),r=n(20576),s=n(13306),l=n(47617),u={};t.convertRulesToOptions=function(e){var t=o.default.current();return e.reduce((function(e,n){var i=n.device,o=n.options,r=i||{};return((0,a.isFunction)(r)?r(t):d(t,r))&&(0,s.extend)(!0,e,o),e}),{})},t.normalizeOptions=function(e,t){return"string"!=typeof e?e:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t)};var d=function(e,t){return(0,a.isEmptyObject)(t)||(0,r.findBestMatches)(e,[t]).length>0};t.deviceMatch=d,t.getFieldName=function(e){return e.substr(e.lastIndexOf(".")+1)},t.getParentName=function(e){return e.substr(0,e.lastIndexOf("."))},t.getNestedOptionValue=function(e,t){return u[t]=u[t]||(0,l.compileGetter)(t),u[t](e,{functionsAsIs:!0})},t.createDefaultOptionRules=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e}},27050:function(e,t,n){t.default=void 0;var i=n(58201),o=(0,i.hasWindow)()?(0,i.getWindow)().Number:Number;o.isFinite=o.isFinite||function(e){return"number"==typeof e&&isFinite(e)};var a=o;t.default=a,e.exports=t.default,e.exports.default=t.default},48136:function(e,t,n){t.default=void 0;var i=n(62754),o=n(58201),a=(0,o.hasWindow)()?(0,o.getWindow)().Promise:Promise;a||((a=function(e){var t=new i.Deferred;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()}).resolve=function(e){return(new i.Deferred).resolve(e).promise()},a.reject=function(e){return(new i.Deferred).reject(e).promise()},a.all=function(e){return i.when.apply(this,e).then((function(){return[].slice.call(arguments)}))});var r=a;t.default=r,e.exports=t.default,e.exports.default=t.default},10126:function(e,t,n){t.default=void 0;var i=n(89386),o=n(58201),a=(0,o.hasWindow)()?(0,o.getWindow)().WeakMap:WeakMap;a||(a=function(){var e=[],t=[];this.set=function(n,o){var a=(0,i.inArray)(n,e);-1===a?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=(0,i.inArray)(n,e);if(-1!==o)return t[o]},this.has=function(t){return-1!==(0,i.inArray)(t,e)},this.delete=function(n){var o=(0,i.inArray)(n,e);-1!==o&&(e.splice(o,1),t.splice(o,1))}});var r=a;t.default=r,e.exports=t.default,e.exports.default=t.default},90889:function(e,t,n){t.PostponedOperations=void 0;var i=n(62754),o=n(35922);function a(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s=function(){function e(){this._postponedOperations={}}var t=e.prototype;return t.add=function(e,t,n){if(e in this._postponedOperations)n&&this._postponedOperations[e].promises.push(n);else{var o=new i.Deferred;this._postponedOperations[e]={fn:t,completePromise:o,promises:n?[n]:[]}}return this._postponedOperations[e].completePromise.promise()},t.callPostponedOperations=function(){for(var e in this._postponedOperations){var t=this._postponedOperations[e];(0,o.isDefined)(t)&&(t.promises&&t.promises.length?i.when.apply(void 0,a(t.promises)).done(t.fn).then(t.completePromise.resolve):t.fn().done(t.completePromise.resolve))}this._postponedOperations={}},e}();t.PostponedOperations=s},68374:function(e,t,n){var i;t.default=void 0;var o=((i=n(82981))&&i.__esModule?i:{default:i}).default.get();t.default=o,e.exports=t.default,e.exports.default=t.default},82981:function(e,t,n){t.default=void 0;var i,o,a=n(97906),r=(i=n(73349))&&i.__esModule?i:{default:i},s=n(58201),l=n(35922),u=n(80968),d=n(58664),c=n(61371),h=(0,s.getWindow)(),f=function(e,t){return e?"string"==typeof e?"body"===e?(this[0]=t?t.body:r.default.getBody(),this.length=1,this):(t=t||r.default.getDocument(),"<"===e[0]?(this[0]=r.default.createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,r.default.querySelectorAll(t,e)),this)):r.default.isNode(e)||(0,l.isWindow)(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):o(e.toArray?e.toArray():[e]):(this.length=0,this)};(o=function(e,t){return new f(e,t)}).fn={dxRenderer:!0},f.prototype=o.fn;var p=function(e,t){for(var n=0;n<this.length;n++){var i=o(this[n]);i[e].apply(i,t)}return this},g=function(e,t,n){null!=n?r.default.setAttribute(e,t,n):r.default.removeAttribute(e,t)};f.prototype.show=function(){return this.toggle(!0)},f.prototype.hide=function(){return this.toggle(!1)},f.prototype.toggle=function(e){return this[0]&&this.toggleClass("dx-state-invisible",!e),this},f.prototype.attr=function(e,t){if(this.length>1&&arguments.length>1)return p.call(this,"attr",arguments);if(!this[0])return(0,l.isObject)(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"==typeof e&&1===arguments.length){var n=this[0].getAttribute(e);return null==n?void 0:n}if((0,l.isPlainObject)(e))for(var i in e)this.attr(i,e[i]);else g(this[0],e,t);return this},f.prototype.removeAttr=function(e){return this[0]&&r.default.removeAttribute(this[0],e),this},f.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if((0,l.isPlainObject)(e))for(var n in e)this.prop(n,e[n]);else r.default.setProperty(this[0],e,t);return this},f.prototype.addClass=function(e){return this.toggleClass(e,!0)},f.prototype.removeClass=function(e){return this.toggleClass(e,!1)},f.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n<t.length;n++)if(this[0].classList){if(this[0].classList.contains(t[n]))return!0}else if((((0,l.isString)(this[0].className)?this[0].className:r.default.getAttribute(this[0],"class"))||"").split(" ").indexOf(t[n])>=0)return!0;return!1},f.prototype.toggleClass=function(e,t){if(this.length>1)return p.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i<n.length;i++)r.default.setClass(this[0],n[i],t);return this},f.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!(0,c.isTablePart)(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append((0,c.parseHTML)(e))):this[0].innerHTML};var m=function(e,t){if(this[0]&&e){"string"==typeof e?e=(0,c.parseHTML)(e):e.nodeType?e=[e]:(0,l.isNumeric)(e)&&(e=[r.default.createTextNode(e)]);for(var n=0;n<e.length;n++){var i=e[n],o=this[0];"TABLE"===o.tagName&&"TR"===i.tagName&&o.tBodies&&o.tBodies.length&&(o=o.tBodies[0]),r.default.insertElement(o,i.nodeType?i:i[0],t)}}},_=function(e,t){if(this[0]&&this[0].style&&!(null===t||"number"==typeof t&&isNaN(t))){e=(0,u.styleProp)(e);for(var n=0;n<this.length;n++)this[n].style[e]=(0,u.normalizeStyleProp)(e,t)}};f.prototype.css=function(e,t){if((0,l.isString)(e)){if(2!==arguments.length){if(!this[0])return;e=(0,u.styleProp)(e);var n=h.getComputedStyle(this[0])[e]||this[0].style[e];return(0,l.isNumeric)(n)?n.toString():n}_.call(this,e,t)}else if((0,l.isPlainObject)(e))for(var i in e)_.call(this,i,e[i]);return this},f.prototype.prepend=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.prepend(arguments[t]);return this}return m.apply(this,[e,this[0].firstChild]),this},f.prototype.append=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.append(arguments[t]);return this}return m.apply(this,[e]),this},f.prototype.prependTo=function(e){if(this.length>1){for(var t=this.length-1;t>=0;t--)o(this[t]).prependTo(e);return this}return(e=o(e))[0]&&r.default.insertElement(e[0],this[0],e[0].firstChild),this},f.prototype.appendTo=function(e){return this.length>1?p.call(this,"appendTo",arguments):(r.default.insertElement(o(e)[0],this[0]),this)},f.prototype.insertBefore=function(e){return e&&e[0]&&r.default.insertElement(e[0].parentNode,this[0],e[0]),this},f.prototype.insertAfter=function(e){return e&&e[0]&&r.default.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},f.prototype.before=function(e){return this[0]&&r.default.insertElement(this[0].parentNode,e[0],this[0]),this},f.prototype.after=function(e){return this[0]&&r.default.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},f.prototype.wrap=function(e){if(this[0]){var t=o(e);t.insertBefore(this),t.append(this)}return this},f.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},f.prototype.replaceWith=function(e){if(e&&e[0])return e.is(this)?this:(e.insertBefore(this),this.remove(),e)},f.prototype.remove=function(){return this.length>1?p.call(this,"remove",arguments):((0,a.cleanDataRecursive)(this[0],!0),r.default.removeElement(this[0]),this)},f.prototype.detach=function(){return this.length>1?p.call(this,"detach",arguments):(r.default.removeElement(this[0]),this)},f.prototype.empty=function(){return this.length>1?p.call(this,"empty",arguments):((0,a.cleanDataRecursive)(this[0]),r.default.setText(this[0],""),this)},f.prototype.clone=function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t].cloneNode(!0));return o(e)},f.prototype.text=function(e){if(!arguments.length){for(var t="",n=0;n<this.length;n++)t+=this[n]&&this[n].textContent||"";return t}var i=(0,l.isFunction)(e)?e():e;return(0,a.cleanDataRecursive)(this[0],!1),r.default.setText(this[0],(0,l.isDefined)(i)?i:""),this},f.prototype.val=function(e){return 1===arguments.length?this.prop("value",(0,l.isDefined)(e)?e:""):this.prop("value")},f.prototype.contents=function(){if(!this[0])return o();var e=[];return e.push.apply(e,this[0].childNodes),o(e)},f.prototype.find=function(e){var t=o();if(!e)return t;var n,i=[];if("string"==typeof e)for(e=e.trim(),n=0;n<this.length;n++){var a=this[n];if(r.default.isElementNode(a)){var s=a.getAttribute("id"),l=s||"dx-query-children";s||g(a,"id",l);var u=(l="[id='"+l+"'] ")+e.replace(/([^\\])(,)/g,"$1, "+l);i.push.apply(i,r.default.querySelectorAll(a,u)),g(a,"id",s)}else r.default.isDocument(a)&&i.push.apply(i,r.default.querySelectorAll(a,e))}else for(n=0;n<this.length;n++)e=r.default.isNode(e)?e:e[0],this[n]!==e&&this[n].contains(e)&&i.push(e);return t.add(i)};var v=function(e,t){return!t.nodeType||!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)};f.prototype.filter=function(e){if(!e)return o();if(":visible"===e)return this.filter(v);if(":hidden"===e)return this.filter((function(e,t){return!v(0,t)}));for(var t=[],n=0;n<this.length;n++){var i=this[n];if(r.default.isElementNode(i)&&"string"===(0,l.type)(e))r.default.elementMatches(i,e)&&t.push(i);else if(r.default.isNode(e)||(0,l.isWindow)(e))e===i&&t.push(i);else if((0,l.isFunction)(e))e.call(i,n,i)&&t.push(i);else for(var a=0;a<e.length;a++)e[a]===i&&t.push(i)}return o(t)},f.prototype.not=function(e){for(var t=[],n=this.filter(e).toArray(),i=0;i<this.length;i++)-1===n.indexOf(this[i])&&t.push(this[i]);return o(t)},f.prototype.is=function(e){return!!this.filter(e).length},f.prototype.children=function(e){for(var t=[],n=0;n<this.length;n++)for(var i=this[n]?this[n].childNodes:[],a=0;a<i.length;a++)r.default.isElementNode(i[a])&&t.push(i[a]);return t=o(t),e?t.filter(e):t},f.prototype.siblings=function(){var e=this[0];if(!e||!e.parentNode)return o();for(var t=[],n=e.parentNode.childNodes||[],i=0;i<n.length;i++){var a=n[i];r.default.isElementNode(a)&&a!==e&&t.push(a)}return o(t)},f.prototype.each=function(e){for(var t=0;t<this.length&&!1!==e.call(this[t],t,this[t]);t++);},f.prototype.index=function(e){return e?(e=o(e),this.toArray().indexOf(e[0])):this.parent().children().index(this)},f.prototype.get=function(e){return this[e<0?this.length+e:e]},f.prototype.eq=function(e){return e=e<0?this.length+e:e,o(this[e])},f.prototype.first=function(){return this.eq(0)},f.prototype.last=function(){return this.eq(-1)},f.prototype.parent=function(e){if(!this[0])return o();var t=o(this[0].parentNode);return!e||t.is(e)?t:o()},f.prototype.parents=function(e){for(var t=[],n=this.parent();n&&n[0]&&!r.default.isDocument(n[0]);)r.default.isElementNode(n[0])&&(e&&!n.is(e)||t.push(n.get(0))),n=n.parent();return o(t)},f.prototype.closest=function(e){if(this.is(e))return this;for(var t=this.parent();t&&t.length;){if(t.is(e))return t;t=t.parent()}return o()},f.prototype.next=function(e){if(!this[0])return o();var t=o(this[0].nextSibling);if(!arguments.length)return t;for(;t&&t.length;){if(t.is(e))return t;t=t.next()}return o()},f.prototype.prev=function(){return this[0]?o(this[0].previousSibling):o()},f.prototype.add=function(e){for(var t=o(e),n=this.toArray(),i=0;i<t.length;i++){var a=t[i];-1===n.indexOf(a)&&n.push(a)}return o(n)};var y=[];f.prototype.splice=function(){return o(y.splice.apply(this,arguments))},f.prototype.slice=function(){return o(y.slice.apply(this,arguments))},f.prototype.toArray=function(){return y.slice.call(this)},f.prototype.offset=function(){if(this[0])return(0,d.getOffset)(this[0])},f.prototype.offsetParent=function(){if(!this[0])return o();for(var e=o(this[0].offsetParent);e[0]&&"static"===e.css("position");)e=o(e[0].offsetParent);return e[0]?e:o(r.default.getDocumentElement())},f.prototype.position=function(){if(this[0]){var e,t=parseFloat(this.css("marginTop")),n=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return{top:(e=this[0].getBoundingClientRect()).top-t,left:e.left-n};e=this.offset();var i=this.offsetParent(),o={top:0,left:0};return"HTML"!==i[0].nodeName&&(o=i.offset()),o={top:o.top+parseFloat(i.css("borderTopWidth")),left:o.left+parseFloat(i.css("borderLeftWidth"))},{top:e.top-o.top-t,left:e.left-o.left-n}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(e,t){e.scrollTo(t,e.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(e,t){e.scrollTo(e.pageXOffset,t)}}].forEach((function(e){var t=e.name;f.prototype[t]=function(n){if(this[0]){var i=(0,d.getWindowByElement)(this[0]);return void 0===n?i?i[e.offsetProp]:this[0][t]:(i?e.scrollWindow(i,n):this[0][t]=n,this)}}})),f.prototype.data=function(e,t){if(this[0])return arguments.length<2?a.data.call(o,this[0],e):(a.data.call(o,this[0],e,t),this)},f.prototype.removeData=function(e){return this[0]&&(0,a.removeData)(this[0],e),this};var x=function(){return o.apply(this,arguments)};Object.defineProperty(x,"fn",{enumerable:!0,configurable:!0,get:function(){return o.fn},set:function(e){o.fn=e}});var b={set:function(e){o=e},get:function(){return x}};t.default=b,e.exports=t.default,e.exports.default=t.default},91784:function(e,t,n){t.default=void 0;var i=n(20576),o=n(58201),a=(0,o.getWindow)(),r={observe:i.noop,unobserve:i.noop,disconnect:i.noop},s=new(function(){function e(){var e=this;if(!(0,o.hasWindow)()||!a.ResizeObserver)return r;this._callbacksMap=new Map,this._observer=new a.ResizeObserver((function(t){t.forEach((function(t){var n;null===(n=e._callbacksMap.get(t.target))||void 0===n||n(t)}))}))}var t=e.prototype;return t.observe=function(e,t){this._callbacksMap.set(e,t),this._observer.observe(e)},t.unobserve=function(e){this._callbacksMap.delete(e),this._observer.unobserve(e)},t.disconnect=function(){this._callbacksMap.clear(),this._observer.disconnect()},e}());t.default=s,e.exports=t.default,e.exports.default=t.default},14192:function(e,t,n){t.TemplateManager=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(35922),r=n(20576),s=n(13306),l=n(68494),u=n(10688),d=n(69697);function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var h=new l.FunctionTemplate((function(e){var t=e.model,n=e.parent,i=t.widget;if(!i)return(0,o.default)();var a=(0,o.default)("<div>"),r=t.options||{};return n?n._createComponent(a,i,r):a[i](r),a})),f=function(){function e(e,t){this._tempTemplates=[],this._defaultTemplates={},this._anonymousTemplateName=t||"template",this._createElement=e||d.defaultCreateElement,this._createTemplateIfNeeded=this._createTemplateIfNeeded.bind(this)}e.createDefaultOptions=function(){return{integrationOptions:{watchMethod:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.skipImmediate||t(e()),r.noop},templates:{"dx-polymorph-widget":h},useDeferUpdateForTemplates:!0}}};var t,n,i=e.prototype;return i.addDefaultTemplates=function(e){this._defaultTemplates=(0,s.extend)({},this._defaultTemplates,e)},i.dispose=function(){this._tempTemplates.forEach((function(e){e.template.dispose&&e.template.dispose()})),this._tempTemplates=[]},i.extractTemplates=function(e){return{templates:this._extractTemplates(e),anonymousTemplateMeta:this._extractAnonymousTemplate(e)}},i._extractTemplates=function(e){var t=this,n=(0,d.findTemplates)(e,"dxTemplate"),i=(0,d.suitableTemplatesByName)(n);return n.forEach((function(e){var t=e.element,n=e.options.name;t===i[n]?(0,o.default)(t).addClass("dx-template-wrapper").detach():(0,o.default)(t).remove()})),Object.keys(i).map((function(e){return{name:e,template:t._createTemplate(i[e])}}))},i._extractAnonymousTemplate=function(e){var t=e.contents().detach();return t.filter((function(e,t){var n=3===t.nodeType,i=(0,o.default)(t).text().trim().length<1;return!(n&&i)})).length>0?{template:this._createTemplate(t),name:this._anonymousTemplateName}:{}},i._createTemplateIfNeeded=function(e){var t=this._tempTemplates.filter((function(t){return t.source===(0,d.templateKey)(e)}))[0];if(t)return t.template;var n=this._createTemplate(e);return this._tempTemplates.push({template:n,source:(0,d.templateKey)(e)}),n},i._createTemplate=function(e){return this._createElement((0,d.validateTemplateSource)(e))},i.getTemplate=function(e,t,n,i){var r=this,s=n.isAsyncTemplate,c=n.skipTemplates;return(0,a.isFunction)(e)?new l.FunctionTemplate((function(n){var h=e.apply(i,(0,d.getNormalizedTemplateArgs)(n));if(!(0,a.isDefined)(h))return new u.EmptyTemplate;var f=!1,p=(0,d.acquireTemplate)(h,(function(e){return e.nodeType||(0,a.isRenderer)(e)&&!(0,o.default)(e).is("script")?new l.FunctionTemplate((function(){return e})):(f=!0,r._createTemplate(e))}),t,s,c,r._defaultTemplates),g=p.render(n);return f&&p.dispose&&p.dispose(),g})):(0,d.acquireTemplate)(e,this._createTemplateIfNeeded,t,s,c,this._defaultTemplates)},t=e,(n=[{key:"anonymousTemplateName",get:function(){return this._anonymousTemplateName}}])&&c(t.prototype,n),e}();t.TemplateManager=f},93280:function(e,t,n){t.BindableTemplate=void 0;var i=l(n(68374)),o=n(81033),a=l(n(55994)),r=n(29007),s=n(35922);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function o(t,n,i,o){var a;return(a=e.call(this)||this)._render=t,a._fields=n,a._fieldsMap=o||{},a._watchMethod=i,a}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n),o.prototype._renderCore=function(e){var t=this,n=(0,i.default)(e.container),o=function(e,t,n,i,o){var a,r=function(e,t,n){return t((function(){return e}),n)}(e,t,(function(e){a&&a(),(0,s.isPrimitive)(e)?o(e):a=function(e,t,n,i,o){var a={},r=n.slice(),s=n.map((function(n){var s=i[n];return t(s?function(){return s(e)}:function(){return e[n]},(function(e){if(a[n]=e,r.length){var t=r.indexOf(n);t>=0&&r.splice(t,1)}r.length||o(a)}))}));return function(){s.forEach((function(e){return e()}))}}(e,t,n,i,o)}));return function(){a&&a(),r&&r()}}(e.model,this._watchMethod,this._fields,this._fieldsMap,(function(i){n.empty(),t._render(n,i,e.model)}));return a.default.on(n,r.removeEvent,o),n.contents()},o}(o.TemplateBase);t.BindableTemplate=d},91627:function(e,t,n){function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.ChildDefaultTemplate=void 0;var o=function(e){var t,n;function o(t){var n;return(n=e.call(this)||this).name=t,n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),o}(n(81033).TemplateBase);t.ChildDefaultTemplate=o},10688:function(e,t,n){t.EmptyTemplate=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i};function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var r=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n),i.prototype._renderCore=function(){return(0,o.default)()},i}(n(81033).TemplateBase);t.EmptyTemplate=r},68494:function(e,t,n){t.FunctionTemplate=void 0;var i=n(81033),o=n(3532);function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var r=function(e){var t,n;function i(t){var n;return(n=e.call(this)||this)._render=t,n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n),i.prototype._renderCore=function(e){return(0,o.normalizeTemplateElement)(this._render(e))},i}(i.TemplateBase);t.FunctionTemplate=r},9545:function(e,t,n){t.Template=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(81033),r=n(3532),s=n(72987);function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n(32468),(0,s.registerTemplateEngine)("default",{compile:function(e){return(0,r.normalizeTemplateElement)(e)},render:function(e,t,n){return e.clone()}}),(0,s.setTemplateEngine)("default");var u=function(e){var t,n;function i(t){var n;return(n=e.call(this)||this)._element=t,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var a=i.prototype;return a._renderCore=function(e){var t=e.transclude;return t||this._compiledTemplate||(this._compiledTemplate=(0,s.getCurrentTemplateEngine)().compile(this._element)),(0,o.default)("<div>").append(t?this._element:(0,s.getCurrentTemplateEngine)().render(this._compiledTemplate,e.model,e.index)).contents()},a.source=function(){return(0,o.default)(this._element).clone()},i}(a.TemplateBase);t.Template=u},81033:function(e,t,n){t.renderedCallbacks=t.TemplateBase=void 0;var i=u(n(68374)),o=u(n(73349)),a=u(n(44504)),r=n(3532),s=n(80506),l=u(n(17381));function u(e){return e&&e.__esModule?e:{default:e}}var d=(0,a.default)({syncStrategy:!0});t.renderedCallbacks=d;var c=function(){function e(){}var t=e.prototype;return t.render=function(e){var t=(e=e||{}).onRendered;delete e.onRendered;var n=this._renderCore(e);return this._ensureResultInContainer(n,e.container),d.fire(n,e.container),t&&t(),n},t._ensureResultInContainer=function(e,t){if(t){var n=(0,i.default)(t),a=(0,r.contains)(n.get(0),e.get(0));n.append(e),a||o.default.getBody().contains(n.get(0))&&(0,s.triggerShownEvent)(e)}},t._renderCore=function(){throw l.default.Error("E0001")},e}();t.TemplateBase=c},72987:function(e,t,n){t.getCurrentTemplateEngine=function(){return o},t.registerTemplateEngine=function(e,t){s[e]=t},t.setTemplateEngine=function(e){if((0,a.isString)(e)){if(!(o=s[e]))throw r.default.Error("E0020",e)}else o=e};var i,o,a=n(35922),r=(i=n(17381))&&i.__esModule?i:{default:i},s={}},32468:function(e,t,n){var i=n(3532),o=n(72987);(0,o.registerTemplateEngine)("jquery-tmpl",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return jQuery.tmpl(e,t)}}),(0,o.registerTemplateEngine)("jsrender",{compile:function(e){return(jQuery||jsrender).templates((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,o.registerTemplateEngine)("mustache",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return Mustache.render(e,t)}}),(0,o.registerTemplateEngine)("hogan",{compile:function(e){return Hogan.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,o.registerTemplateEngine)("underscore",{compile:function(e){return _.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,o.registerTemplateEngine)("handlebars",{compile:function(e){return Handlebars.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,o.registerTemplateEngine)("doT",{compile:function(e){return doT.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}})},37208:function(e,t,n){t.default=void 0;var i=n(62754),o=c(n(73349)),a=c(n(83448)),r=n(58201),s=n(13306),l=n(35922),u=c(n(48136)),d=c(n(20476));function c(e){return e&&e.__esModule?e:{default:e}}var h=(0,r.getWindow)(),f="success",p="error",g=function(e){var t=o.default.createElement("script");for(var n in e)t[n]=e[n];return t},m=function(e){e.parentNode.removeChild(e)},_=function(e){return o.default.getHead().appendChild(e)},v=function(e){var t=g({text:e});_(t),m(t)};function y(e){return(e.method||"GET").toUpperCase()}var x=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||function(e){var t;return e.data&&!e.upload&&"GET"!==y(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t}(e),t.Accept=t.Accept||function(e){var t=e.dataType||"*",n="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:n,script:n};return(0,s.extendFromObject)(i,e.accepts,!0),i[t]?i[t]+("*"!==t?", */*; q=0.01":""):i["*"]}(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t},b=(0,d.default)({sendRequest:function(e){var t,n=a.default.getXhr(),s=new i.Deferred,d=s.promise(),c=!(0,l.isDefined)(e.async)||e.async,b=e.dataType,w=e.timeout||0;e.crossDomain=function(e){if(!(0,r.hasWindow)())return!0;var t=!1,n=o.default.createElement("a"),i=o.default.createElement("a");n.href=h.location.href;try{i.href=e,i.href=i.href,t=n.protocol+"//"+n.host!=i.protocol+"//"+i.host}catch(e){t=!0}return t}(e.url);var C="jsonp"===b||"script"===b;void 0===e.cache&&(e.cache=!C);var S=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),n=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,i=e.jsonp||"callback";return e.data=e.data||{},e.data[i]=n,n}}(e),k=x(e),D=function(e,t){var n=e.data,i="string"==typeof n,o=e.url||h.location.href;return i||e.cache||((n=n||{})._=Date.now()),n&&!e.upload&&(i||(n=function(e){var t=[];for(var n in e){var i=e[n];void 0!==i&&(null===i&&(i=""),"function"==typeof i&&(i=i()),t.push(encodeURIComponent(n)+"="+encodeURIComponent(i)))}return t.join("&")}(n)),"GET"===y(e)?(""!==n&&(o+=(o.indexOf("?")>-1?"&":"?")+n),n=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(n=n.replace(/%20/g,"+"))),{url:o,parameters:n}}(e,k),I=D.url,T=D.parameters;if(S&&(h[S]=function(e){s.resolve(e,f,n)}),e.crossDomain&&C)return function(e){var t=g({src:e});return new u.default((function(e,n){var i={load:e,error:n},a=function(e){i[e.type](),m(t)};for(var r in i)o.default.listen(t,r,a);_(t)}))}(I).then((function(){"jsonp"!==b&&s.resolve(null,f,n)}),(function(){s.reject(n,p)})),d;if(e.crossDomain&&!("withCredentials"in n))return s.reject(n,p),d;if(n.open(y(e),I,c,e.username,e.password),c&&(n.timeout=w,t=function(e,t){return e&&setTimeout((function(){t.customStatus="timeout",t.abort()}),e)}(w,n)),n.onreadystatechange=function(e){var i;4===n.readyState&&(clearTimeout(t),200<=(i=n.status)&&i<300?function(e){return 204!==e}(n.status)?function(e,t,n){var i=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText}(t);switch(n){case"jsonp":v(i);break;case"script":v(i),e.resolve(i,f,t);break;case"json":try{e.resolve(JSON.parse(i),f,t)}catch(n){e.reject(t,"parsererror",n)}break;default:e.resolve(i,f,t)}}(s,n,b):s.resolve(null,"nocontent",n):s.reject(n,n.customStatus||p))},e.upload&&(n.upload.onprogress=e.upload.onprogress,n.upload.onloadstart=e.upload.onloadstart,n.upload.onabort=e.upload.onabort),e.xhrFields)for(var E in e.xhrFields)n[E]=e.xhrFields[E];for(var A in"arraybuffer"===e.responseType&&(n.responseType=e.responseType),k)Object.prototype.hasOwnProperty.call(k,A)&&(0,l.isDefined)(k[A])&&n.setRequestHeader(A,k[A]);return e.beforeSend&&e.beforeSend(n),n.send(T),d.abort=function(){n.abort()},d}});t.default=b,e.exports=t.default,e.exports.default=t.default},89386:function(e,t,n){t.wrapToArray=t.uniqueValues=t.removeDuplicates=t.normalizeIndexes=t.merge=t.isEmpty=t.intersection=t.inArray=t.groupBy=t.find=void 0;var i,o=n(35922),a=n(95479),r=n(48013),s=(i=n(80209))&&i.__esModule?i:{default:i};function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.isEmpty=function(e){return Array.isArray(e)&&!e.length},t.wrapToArray=function(e){return Array.isArray(e)?e:[e]};var c=function(e,t){return t?(Array.isArray(t)?t:t.toArray()).indexOf(e):-1};t.inArray=c,t.intersection=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return(0,a.each)(e,(function(e,i){-1!==c(i,t)&&n.push(i)})),n},t.uniqueValues=function(e){return u(new Set(e))},t.removeDuplicates=function(e,t){if(!Array.isArray(e)||0===e.length)return[];var n=e.slice();return Array.isArray(t)&&0!==t.length?((0,a.each)(t,(function(e,t){var i=c(t,n);n.splice(i,1)})),n):n},t.normalizeIndexes=function(e,t,n,i){var l={},u=0,d=(0,s.default)().useLegacyVisibleIndex;return(0,a.each)(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})),d||(0,a.each)(e,(function(){if(!(0,o.isDefined)(this[t])&&(!i||i(this))){for(;l[u];)u++;l[u]=[this],u++}})),u=0,(0,r.orderEach)(l,(function(e,n){(0,a.each)(n,(function(){e>=0&&(this[t]=u++)}))})),d&&(0,a.each)(e,(function(){(0,o.isDefined)(this[t])||i&&!i(this)||(this[t]=u++)})),u},t.merge=function(e,t){for(var n=0;n<t.length;n++)e[e.length]=t[n];return e},t.find=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]},t.groupBy=function(e,t){return e.reduce((function(e,n){return l({},e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t(n),[].concat(u(e[t(n)]||[]),[n])))}),{})}},34671:function(e,t,n){t.isKeysEqual=t.findChanges=void 0;var i=n(35922),o=function(e,t){var n=t(e);if((0,i.isObject)(n))try{return JSON.stringify(n)}catch(e){return n}return n},a=function(e,t,n,i){return t[n[o(e,i)]]};t.isKeysEqual=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},t.findChanges=function(e,t,n,i){var r={},s={},l=0,u=0,d=[];e.forEach((function(e,t){var i=o(e,n);r[i]=t})),t.forEach((function(e,t){var i=o(e,n);s[i]=t}));for(var c=Math.max(e.length,t.length),h=0;h<c+l;h++){var f=t[h],p=h-l+u,g=e[p];if(!f||g&&!a(g,t,s,n))g&&(d.push({type:"remove",key:n(g),index:h,oldItem:g}),u++,h--);else{var m=o(f,n),_=r[m],v=e[_];if(v){if(_!==p)return;i(v,f)||d.push({type:"update",data:f,key:n(f),index:h,oldItem:v})}else l++,d.push({type:"insert",data:f,index:h})}}return d}},47810:function(e,t,n){t.default=void 0;var i=n(13306),o=(0,n(58201).getNavigator)(),a=/(webkit)[ /]([\w.]+)/,r=/(mozilla)(?:.*? rv:([\w.]+))/,s=function(e){e=e.toLowerCase();var t={},n=a.exec(e)||e.indexOf("compatible")<0&&r.exec(e)||[],i=n[1],o=n[2];return"webkit"===i&&(t.webkit=!0,e.indexOf("chrome")>=0||e.indexOf("crios")>=0?(i="chrome",o=(o=/(?:chrome|crios)\/(\d+\.\d+)/.exec(e))&&o[1]):e.indexOf("fxios")>=0?(i="mozilla",o=(o=/fxios\/(\d+\.\d+)/.exec(e))&&o[1]):e.indexOf("safari")>=0&&/version|phantomjs/.test(e)?(i="safari",o=(o=/(?:version|phantomjs)\/([0-9.]+)/.exec(e))&&o[1]):(i="unknown",o=(o=/applewebkit\/([0-9.]+)/.exec(e))&&o[1])),i&&(t[i]=!0,t.version=o),t},l=(0,i.extend)({_fromUA:s},s(o.userAgent));t.default=l,e.exports=t.default,e.exports.default=t.default},39618:function(e,t){t.default=void 0;t.default=function(e){var t,n=function(){return t=e.apply(this,arguments),n=function(){return t},t};return function(){return n.apply(this,arguments)}},e.exports=t.default,e.exports.default=t.default},44504:function(e,t){t.default=void 0;var n=function(e){this._options=e||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};n.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&&(!1!==i[n[a]].apply(e,t)||!o);n[a]++);n.pop()},n.prototype.add=function(e){return"function"!=typeof e||this._options.unique&&this.has(e)||this._list.push(e),this},n.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},n.prototype.has=function(e){var t=this._list;return e?t.indexOf(e)>-1:!!t.length},n.prototype.empty=function(e){return this._list=[],this},n.prototype.fireWith=function(e,t){var n=this._queue;if(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},n.prototype.fire=function(){this.fireWith(this,arguments)},n.prototype.fired=function(){return this._fired};t.default=function(e){return new n(e)},e.exports=t.default,e.exports.default=t.default},20576:function(e,t,n){t.splitPair=t.pairToObject=t.normalizeKey=t.noop=t.grep=t.getKeyHash=t.findBestMatches=t.executeAsync=t.escapeRegExp=t.equalByValue=t.ensureDefined=t.denormalizeKey=t.deferUpdater=t.deferUpdate=t.deferRenderer=t.deferRender=t.asyncNoop=t.applyServerDecimalSeparator=void 0;var i=u(n(80209)),o=u(n(73176)),a=n(62754),r=n(47617),s=n(95479),l=n(35922);function u(e){return e&&e.__esModule?e:{default:e}}t.ensureDefined=function(e,t){return(0,l.isDefined)(e)?e:t},t.executeAsync=function(e,t){var n=new a.Deferred,i=t||this,o={promise:n.promise(),abort:function(){clearTimeout(s),n.rejectWith(i)}},r=function(){var t=e.call(i);t&&t.done&&(0,l.isFunction)(t.done)?t.done((function(){n.resolveWith(i)})):n.resolveWith(i)},s=(arguments[2]||setTimeout)(r,"number"==typeof t?t:0);return o};var d,c=[],h=[],f=[],p=function(e,t,n){if(d&&d!==e)return c.push(t),h.push(e),n=n||new a.Deferred,f.push(n),n;var i=d,o=f.length;d=e;var r=t();return r||(f.length>o?r=a.when.apply(this,f.slice(o)):n&&n.resolve()),d=i,n&&r&&r.done&&r.done(n.resolve).fail(n.reject),!d&&c.length&&("render"===h.shift()?g:m)(c.shift(),f.shift()),r||(0,a.when)()},g=function(e,t){return p("render",e,t)};t.deferRender=g;var m=function(e,t){return p("update",e,t)};t.deferUpdate=m,t.deferRenderer=function(e){return function(){var t=this;return p("render",(function(){return e.call(t)}))}},t.deferUpdater=function(e){return function(){var t=this;return p("update",(function(){return e.call(t)}))}},t.findBestMatches=function(e,t,n){var i=[],o=0;return(0,s.each)(t,(function(t,a){var r=0,l=n?n(a):a;(0,s.each)(e,(function(e,t){var n=l[e];if(void 0!==n){if(!_(n,t))return r=-1,!1;r++}})),r<o||(r>o&&(i.length=0,o=r),i.push(a))})),i};var _=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return(0,s.each)(e,(function(e,i){if(i!==t[e])return n=!0,!1})),!n}return e===t},v=function(e){var t,n;switch((0,l.type)(e)){case"string":return e.split(/\s+/,2);case"object":return[null!==(t=e.x)&&void 0!==t?t:e.h,null!==(n=e.y)&&void 0!==n?n:e.v];case"number":return[e];case"array":return e;default:return null}};t.splitPair=v,t.normalizeKey=function(e){var t=(0,l.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,s.each)(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.pairToObject=function(e,t){var n=v(e),i=t?parseFloat(n&&n[0]):parseInt(n&&n[0],10),o=t?parseFloat(n&&n[1]):parseInt(n&&n[1],10);return isFinite(i)||(i=0),isFinite(o)||(o=i),{h:i,v:o}},t.getKeyHash=function(e){if(e instanceof o.default)return e.toString();if((0,l.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=(0,i.default)().serverDecimalSeparator;return(0,l.isDefined)(e)&&(e=e.toString().replace(".",t)),e},t.noop=function(){},t.asyncNoop=function(){return(new a.Deferred).resolve().promise()},t.grep=function(e,t,n){for(var i=[],o=!n,a=0;a<e.length;a++)!!t(e[a],a)===o&&i.push(e[a]);return i};var y=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!b(e[i],t[i],n+1))return!1;return!0},x=function(e,t,n,i){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&!b(e[o],t[o],n+1,i))return!1;for(var a in t)if(!(a in e))return!1;return!0},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=(0,r.toComparable)(e,!0),t=(0,r.toComparable)(t,!0);var o=i?e===t:e==t;return!!(o||n>=3)||((0,l.isObject)(e)&&(0,l.isObject)(t)?x(e,t,n,i):!(!Array.isArray(e)||!Array.isArray(t))&&y(e,t,n))};t.equalByValue=b},49036:function(e,t,n){t.equals=void 0;var i,o=(i=n(73349))&&i.__esModule?i:{default:i},a=n(47617),r=n(35922);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.equals=function(e,t){return e=(0,a.toComparable)(e,!0),t=(0,a.toComparable)(t,!0),e&&t&&(0,r.isRenderer)(e)&&(0,r.isRenderer)(t)?t.is(e):!(e==e||t==t)||(0===e&&0===t?function(e,t){return 1/e==1/t}(e,t):!(null!==e&&"object"===s(e)&&!o.default.isElementNode(e))&&e===t)}},30869:function(e,t,n){t.logger=t.debug=void 0;var i=n(35922),o=function(){},a=function(e){return"undefined"!=typeof console&&(0,i.isFunction)(console[e])?console[e].bind(console):o},r={info:a("info"),warn:a("warn"),error:a("error")};t.logger=r;var s=function(){function e(e,t){if(!e)throw new Error(t)}return{assert:e,assertParam:function(t,n){e(null!=t,n)}}}();t.debug=s},47617:function(e,t,n){t.toComparable=t.getPathParts=t.compileSetter=t.compileGetter=void 0;var i=u(n(17381)),o=u(n(38377)),a=n(48013),r=n(35922),s=n(95479),l=u(n(26974));function u(e){return e&&e.__esModule?e:{default:e}}var d=l.default.unwrap,c=l.default.isWrapped,h=l.default.assign,f=function(e){return(t=e,t.replace(/\[/g,".").replace(/\]/g,"")).split(".");var t};t.getPathParts=f;var p=function(e,t,n,o){if("this"===t)throw new i.default.Error("E4016");var a=e[t];o.unwrapObservables&&c(a)?h(a,n):e[t]=n},g=function(e){return(e=e||{}).unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e};function m(e,t){return t.unwrapObservables?d(e):e}var _=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){var t=f(e);return function(e,n){for(var i=(n=g(n)).functionsAsIs,o=("defaultValue"in n),a=m(e,n),s=0;s<t.length;s++){if(!a){if(null==a&&o)return n.defaultValue;break}var l=t[s];if(o&&(0,r.isObject)(a)&&!(l in a))return n.defaultValue;var u=m(a[l],n);!i&&(0,r.isFunction)(u)&&(u=u.call(a)),a=u}return a}}return Array.isArray(e)?v(e):(0,r.isFunction)(e)?e:void 0};function v(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(0,s.each)(t,(function(t){var o=this(e,n);if(void 0!==o){for(var a=i||(i={}),r=t.split("."),s=r.length-1,l=0;l<s;l++){var u=r[l];u in a||(a[u]={}),a=a[u]}a[r[s]]=o}})),i}}t.compileGetter=_;var y=function(e,t,n,i){if((0,r.isDefined)(n))return n;var o={};return p(e,t,o,i),o};t.compileSetter=function(e){var t=(e=f(e||"this")).length-1;return function(n,i,o){var s=m(n,o=g(o));e.forEach((function(e,n){var l=function(e,t,n){return n=n||{},m("this"===t?e:e[t],n)}(s,e,o),u=!o.functionsAsIs&&(0,r.isFunction)(l)&&!c(l);n===t?o.merge&&(0,r.isPlainObject)(i)&&(!(0,r.isDefined)(l)||(0,r.isPlainObject)(l))?(l=y(s,e,l,o),(0,a.deepExtendArraySafe)(l,i,!1,!0)):u?s[e](i):p(s,e,i,o):(l=y(s,e,l,o),u&&(l=l.call(s)),s=l)}))}},t.toComparable=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof o.default&&e.valueOf?e.valueOf():t||"string"!=typeof e?e:e.toLowerCase()}},91198:function(e,t,n){t.default=void 0;var i=n(35922),o=n(60810),a=n(95479),r=n(78008);function s(e,t,n){return(s=l()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&u(o,n.prototype),o}).apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=["millisecond","second","minute","hour","day","week","month","quarter","year"],c=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}},h=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/c(i)))>0&&(a[i+"s"]=n,e-=f(i,n));return a};function f(e,t){return c(e)*t}function p(e){var t,n=-1;return(0,i.isString)(e)?e:(0,i.isObject)(e)?((0,a.each)(e,(function(e,i){for(t=0;t<d.length;t++)i&&(e===d[t]+"s"||e===d[t])&&n<t&&(n=t)})),d[n]):""}var g={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},m=function(e){return Math.floor(e/3)},_=function(e){return 3*m(e)};function v(e,t,n,i){e=new Date(e.getTime());var o,a,r=new Date(e.getTime()),s=p(t);switch(s){case"second":e=new Date(1e3*Math.floor(r.getTime()/1e3));break;case"minute":e=new Date(6e4*Math.floor(r.getTime()/6e4));break;case"hour":e=new Date(36e5*Math.floor(r.getTime()/36e5));break;case"year":e.setMonth(0);case"month":e.setDate(1);case"day":e.setHours(0,0,0,0);break;case"week":(e=T(e,i||0)).setHours(0,0,0,0);break;case"quarter":o=_(e.getMonth()),a=e.getMonth(),e.setDate(1),e.setHours(0,0,0,0),a!==o&&e.setMonth(o)}return n&&"hour"!==s&&"minute"!==s&&"second"!==s&&A(r,e),e}function y(e){return v(e,"day")}function x(e,t,n){var o=new Date(e.getTime()),a=(0,i.isString)(t)?C(t.toLowerCase()):(0,i.isNumeric)(t)?h(t):t;return a.years&&o.setFullYear(o.getFullYear()+a.years*n),a.quarters&&o.setMonth(o.getMonth()+3*a.quarters*n),a.months&&o.setMonth(o.getMonth()+a.months*n),a.weeks&&o.setDate(o.getDate()+7*a.weeks*n),a.days&&o.setDate(o.getDate()+a.days*n),a.hours&&o.setTime(o.getTime()+36e5*a.hours*n),a.minutes&&o.setTime(o.getTime()+6e4*a.minutes*n),a.seconds&&o.setTime(o.getTime()+1e3*a.seconds*n),a.milliseconds&&o.setTime(o.getTime()+a.milliseconds*n),o}var b=function(e,t,n){var a=n?-1:1;return(0,i.isDate)(e)?x(e,t,a):(0,o.adjust)(e+t*a,t)};function w(e){return P(e.getFullYear(),e.getMonth()+1,0).getDate()}function C(e){var t={};switch(e){case"year":t.years=1;break;case"month":t.months=1;break;case"quarter":t.months=3;break;case"week":t.weeks=1;break;case"day":t.days=1;break;case"hour":t.hours=1;break;case"minute":t.minutes=1;break;case"second":t.seconds=1;break;case"millisecond":t.milliseconds=1}return t}function S(e,t){return k(e,t)&&e.getMonth()===t.getMonth()}function k(e,t){return e&&t&&e.getFullYear()===t.getFullYear()}function D(e){return e&&e.getFullYear()-e.getFullYear()%100}function I(e){return e&&e.getFullYear()-e.getFullYear()%10}function T(e,t){var n=(e.getDay()-t+7)%7,i=new Date(e);return i.setDate(e.getDate()-n),i}function E(e,t,n){var o=e;return(0,i.isDefined)(e)?((0,i.isDefined)(t)&&e<t&&(o=t),(0,i.isDefined)(n)&&e>n&&(o=n),o):e}function A(e,t){if((0,i.isDefined)(e)){var n=t.getHours()-e.getHours();if(0!==n){var o=1===n||-23===n?-1:1,a=new Date(t.getTime()+36e5*o);(o>0||a.getDate()===t.getDate())&&t.setTime(a.getTime())}}}function O(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3}var P=function(e){var t=s(Date,Array.prototype.slice.call(arguments));return t.setFullYear(e),t},M={dateUnitIntervals:d,convertMillisecondsToDateUnits:h,dateToMilliseconds:function(e){var t=0;return(0,i.isObject)(e)&&(0,a.each)(e,(function(e,n){t+=f(e.substr(0,e.length-1),n)})),(0,i.isString)(e)&&(t=f(e,1)),t},getNextDateUnit:function(e,t){switch(p(e)){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":case"year":return"year";default:return 0}},convertDateUnitToMilliseconds:f,getDateUnitInterval:p,getDateFormatByTickInterval:function(e){return g[p(e)]||""},getDatesDifferences:function(e,t){var n=0,i={year:e.getFullYear()!==t.getFullYear(),month:e.getMonth()!==t.getMonth(),day:e.getDate()!==t.getDate(),hour:e.getHours()!==t.getHours(),minute:e.getMinutes()!==t.getMinutes(),second:e.getSeconds()!==t.getSeconds(),millisecond:e.getMilliseconds()!==t.getMilliseconds()};return(0,a.each)(i,(function(e,t){t&&n++})),0===n&&0!==O(e,t)&&(i.hour=!0,n++),i.count=n,i},correctDateWithUnitBeginning:v,trimTime:y,setToDayEnd:function(e){var t=y(e);return t.setDate(t.getDate()+1),new Date(t.getTime()-1)},roundDateByStartDayHour:function(e,t){var n=this.dateTimeFromDecimal(t),i=new Date(e);return(e.getHours()===n.hours&&e.getMinutes()<n.minutes||e.getHours()<n.hours)&&i.setHours(n.hours,n.minutes,0,0),i},dateTimeFromDecimal:function(e){return{hours:Math.floor(e),minutes:e%1*60}},addDateInterval:x,addInterval:b,getSequenceByInterval:function(e,t,n){var o,a=[];for(a.push((0,i.isDate)(e)?new Date(e.getTime()):e),o=e;o<t;)o=b(o,n),a.push(o);return a},getDateIntervalByString:C,sameDate:function(e,t){return S(e,t)&&e.getDate()===t.getDate()},sameMonthAndYear:S,sameMonth:S,sameYear:k,sameDecade:function(e,t){if((0,i.isDefined)(e)&&(0,i.isDefined)(t)){var n=e.getFullYear()-e.getFullYear()%10,o=t.getFullYear()-t.getFullYear()%10;return e&&t&&n===o}},sameCentury:function(e,t){if((0,i.isDefined)(e)&&(0,i.isDefined)(t)){var n=e.getFullYear()-e.getFullYear()%100,o=t.getFullYear()-t.getFullYear()%100;return e&&t&&n===o}},getDifferenceInMonth:function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},getDifferenceInMonthForCells:function(e){var t=1;return"decade"===e&&(t=12),"century"===e&&(t=120),t},getFirstYearInDecade:I,getFirstDecadeInCentury:D,getShortDateFormat:function(){return"yyyy/MM/dd"},getViewFirstCellDate:function(e,t){return"month"===e?P(t.getFullYear(),t.getMonth(),1):"year"===e?P(t.getFullYear(),0,t.getDate()):"decade"===e?P(I(t),t.getMonth(),t.getDate()):"century"===e?P(D(t),t.getMonth(),t.getDate()):void 0},getViewLastCellDate:function(e,t){return"month"===e?P(t.getFullYear(),t.getMonth(),w(t)):"year"===e?P(t.getFullYear(),11,t.getDate()):"decade"===e?P(I(t)+9,t.getMonth(),t.getDate()):"century"===e?P(D(t)+90,t.getMonth(),t.getDate()):void 0},getViewDown:function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},getViewUp:function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},getLastMonthDay:w,getLastMonthDate:function(e){if((0,i.isDefined)(e))return P(e.getFullYear(),e.getMonth()+1,0)},getFirstMonthDate:function(e){if((0,i.isDefined)(e))return P(e.getFullYear(),e.getMonth(),1)},getFirstWeekDate:T,normalizeDateByWeek:function(e,t){var n=M.getDatesInterval(e,t,"day"),i=new Date(e);return n>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},getQuarter:m,getFirstQuarterMonth:_,dateInRange:function(e,t,n,i){return"date"===i&&(t=t&&M.correctDateWithUnitBeginning(t,"day"),n=n&&M.correctDateWithUnitBeginning(n,"day"),e=e&&M.correctDateWithUnitBeginning(e,"day")),E(e,t,n)===e},intervalsOverlap:function(e){var t=e.firstMin,n=e.firstMax,i=e.secondMin,o=e.secondMax;return t<=i&&i<=n||t>i&&t<o||t<o&&n>o},roundToHour:function(e){var t=new Date(e.getTime());return t.setHours(t.getHours()+1),t.setMinutes(0),t},normalizeDate:E,getViewMinBoundaryDate:function(e,t){var n=P(t.getFullYear(),t.getMonth(),1);return"month"===e||(n.setMonth(0),"year"===e||("decade"===e&&n.setFullYear(I(t)),"century"===e&&n.setFullYear(D(t)))),n},getViewMaxBoundaryDate:function(e,t){var n=new Date(t);return n.setDate(w(t)),"month"===e||(n.setMonth(11),n.setDate(w(n)),"year"===e||("decade"===e&&n.setFullYear(I(t)+9),"century"===e&&n.setFullYear(D(t)+99))),n},fixTimezoneGap:A,getTimezonesDifference:O,makeDate:function(e){return new Date(e)},getDatesInterval:function(e,t,n){var i=t.getTime()-e.getTime(),o=c(n)||1;return Math.floor(i/o)},getDatesOfInterval:function(e,t,n){for(var i=[],o=new Date(e.getTime());o<t;)i.push(new Date(o.getTime())),o=this.addInterval(o,n);return i},createDateWithFullYear:P,sameView:function(e,t,n){return M[(0,r.camelize)("same "+e)](t,n)}},R=M;t.default=R,e.exports=t.default,e.exports.default=t.default},69434:function(e,t,n){t.default=void 0;var i=s(n(80209)),o=n(40594),a=s(n(15564)),r=n(35922);function s(e){return e&&e.__esModule?e:{default:e}}var l="number",u="yyyy/MM/dd",d=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,c=/^(\d{2}):(\d{2})(:(\d{2}))?$/,h=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],f=/^(\d{4})\/(\d{2})\/(\d{2})$/,p=function(e,t){var n;return(0,r.isString)(e)&&!t&&(n=function(e){var t=e.match(d);if(!t)return(t=e.match(c))?new Date(0,0,0,g(t[1]),g(t[2]),g(t[4])):void 0;var n=g(t[1]),i=--t[3],o=t[5],a=0,r=0,s=function(e){return n<100&&e.setFullYear(n),e};a=g(t[14]),r=g(t[16]),"-"===t[13]&&(a=-a,r=-r);var l,u=g(t[6])-a,h=g(t[8])-r,f=g(t[10]),p=g(l=(l=t[11])||"")*Math.pow(10,3-l.length);return t[12]?s(new Date(Date.UTC(n,i,o,u,h,f,p))):s(new Date(n,i,o,u,h,f,p))}(e)),n||function(e){var t=m(e)===u,n=!(0,r.isDate)(e)&&Date.parse(e);if(!n&&t){var i=e.match(f);if(i){var o=new Date(g(i[1]),g(i[2]),g(i[3]));return o.setFullYear(g(i[1])),o.setMonth(g(i[2])-1),o.setDate(g(i[3])),o}}return(0,r.isNumeric)(n)?new Date(n):e}(e)};function g(e){return+e||0}var m=function(e){return"number"==typeof e?l:(0,r.isString)(e)?((0,i.default)().forceIsoDateParsing&&(t=function(e,t){var n=e.match(d),i="";if(!n)return(n=e.match(c))?n[3]?"HH:mm:ss":"HH:mm":void 0;for(var o=1;o<h.length;o++)n[o]&&(i+=h[o]||n[o]);return"Z"===n[12]&&(i+="'Z'"),n[14]&&(n[15]?i+="xxx":n[16]?i+="xx":i+="x"),i}(e)),t||(e.indexOf(":")>=0?"yyyy/MM/dd HH:mm:ss":u)):e?null:void 0;var t},_={dateParser:p,deserializeDate:function(e){return"number"==typeof e?new Date(e):p(e,!(0,i.default)().forceIsoDateParsing)},serializeDate:function(e,t){return t?(0,r.isDate)(e)?t===l?e&&e.valueOf?e.valueOf():null:(0,o.getFormatter)(t,a.default)(e):null:e},getDateSerializationFormat:m};t.default=_,e.exports=t.default,e.exports.default=t.default},62754:function(e,t,n){t.Deferred=function(){return new l},t.fromPromise=u,t.setStrategy=function(e){l=e.Deferred,d=e.when},t.when=function(){return d.apply(this,arguments)};var i,o=n(35922),a=n(13306),r=(i=n(44504))&&i.__esModule?i:{default:i},s=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],l=function(){var e=this;this._state="pending",this._promise={},s.forEach(function(t){var n=t.method;this[n+"Callbacks"]=new r.default,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 l;return["done","fail"].forEach(function(i){var a="done"===i?e:t;this[i]((function(){if(a){var e=a&&a.apply(this,arguments);(0,o.isDeferred)(e)?e.done(n.resolve).fail(n.reject):(0,o.isPromise)(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,(0,o.isDefined)(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?(0,a.extend)(t,e._promise):e._promise},this._promise.promise(this)};function u(e,t){if((0,o.isDeferred)(e))return e;if((0,o.isPromise)(e)){var n=new l;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 l).resolveWith(t,[e])}s.forEach((function(e){var t=e.method,n=e.state;l.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}}));var d=function(){if(1===arguments.length)return u(arguments[0]);for(var e=[].slice.call(arguments),t=[],n=0,i=new l,a=function(o){return function(a){t[o]=this,e[o]=arguments.length>1?[].slice.call(arguments):a,++n===e.length&&i.resolveWith(t,e)}},r=0;r<e.length;r++)(0,o.isDeferred)(e[r])?e[r].promise().done(a(r)).fail(i.reject):n++;return n===e.length&&i.resolveWith(t,e),i.promise()}},20476:function(e,t,n){t.default=function(e){var t=s.default.inherit(e),n=t,i=new n(e),l={},u=function(t,n){(0,r.each)(t,(function(t){(0,a.isFunction)(i[t])?!n&&e[t]||(e[t]=function(){return i[t].apply(e,arguments)}):(n&&(l[t]=e[t]),e[t]=i[t])}))};return u(e,!0),e.inject=function(e){n=n.inherit(e),i=new n,u(e)},e.resetInjection=function(){(0,o.extend)(e,l),n=t,i=new t},e};var i,o=n(13306),a=n(35922),r=n(95479),s=(i=n(38377))&&i.__esModule?i:{default:i};e.exports=t.default,e.exports.default=t.default},3532:function(e,t,n){t.resetActiveElement=t.replaceWith=t.normalizeTemplateElement=t.insertBefore=t.extractTemplateMarkup=t.createTextElementHiddenCopy=t.contains=t.closestCommonParent=t.clipboardText=t.clearSelection=void 0;var i=s(n(73349)),o=s(n(68374)),a=n(95479),r=n(35922);function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,n(58201).getWindow)();t.resetActiveElement=function(){var e,t=i.default.getActiveElement();t&&t!==i.default.getBody()&&(null===(e=t.blur)||void 0===e||e.call(t))},t.clearSelection=function(){var e=l.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},t.closestCommonParent=function(e,t){var n=(0,o.default)(e),i=(0,o.default)(t);if(n[0]===i[0])return n[0];for(var a=n.parents(),r=i.parents(),s=-Math.min(a.length,r.length);s<0;s++)if(a.get(s)===r.get(s))return a.get(s)},t.extractTemplateMarkup=function(e){var t=(e=(0,o.default)(e)).length&&e.filter((function(){var e=(0,o.default)(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0}));return t.length?t.eq(0).html():(e=(0,o.default)("<div>").append(e)).html()},t.normalizeTemplateElement=function e(t){var n=(0,r.isDefined)(t)&&(t.nodeType||(0,r.isRenderer)(t))?(0,o.default)(t):(0,o.default)("<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.clipboardText=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||l.clipboardData;if(!t)return n&&n.getData("Text");n&&n.setData("Text",t)},t.contains=function e(t,n){return!!n&&(i.default.isTextNode(n)&&(n=n.parentNode),i.default.isDocument(t)?t.documentElement.contains(n):(0,r.isWindow)(t)?e(t.document,n):t.contains?t.contains(n):!!(n.compareDocumentPosition(t)&n.DOCUMENT_POSITION_CONTAINS))},t.createTextElementHiddenCopy=function(e,t,n){var i=l.getComputedStyle((0,o.default)(e).get(0)),a=n&&n.includePaddings;return(0,o.default)("<div>").text(t).css({fontStyle:i.fontStyle,fontVariant:i.fontVariant,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFamily:i.fontFamily,letterSpacing:i.letterSpacing,border:i.border,paddingTop:a?i.paddingTop:"",paddingRight:a?i.paddingRight:"",paddingBottom:a?i.paddingBottom:"",paddingLeft:a?i.paddingLeft:"",visibility:"hidden",whiteSpace:"pre",position:"absolute",float:"left"})};var u=function(e,t){return t&&i.default.insertElement(e.parentNode,t,e),e};t.insertBefore=u,t.replaceWith=function(e,t){if(t&&t[0])return t.is(e)?e:((0,a.each)(t,(function(t,n){u(e[0],n)})),e.remove(),t)}},95640:function(e,t,n){t.default=function(e,t){var n={ERROR_MESSAGES:(0,i.extend)(t,e),Error:function(){return d([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),o.logger[t]("log"===t?e:s([].slice.call(arguments)))}};function s(e){var t=e[0];return u(t,l(t,e=e.slice(1)))}function l(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),a.format.apply(this,t).replace(/\.*\s*?$/,"")}function u(e,t){return a.format.apply(this,["{0} - {1}. See:\n{2}",e,t,c(e)])}function d(e){var t=e[0],n=l(t,e=e.slice(1)),o=c(t),a=u(t,n);return(0,i.extend)(new Error(a),{__id:t,__details:n,url:o})}function c(e){return r+e}return n};var i=n(13306),o=n(30869),a=n(68752),r="http://js.devexpress.com/error/"+n(36739).version.split(".").slice(0,2).join("_")+"/";e.exports=t.default,e.exports.default=t.default},13306:function(e,t,n){t.extendFromObject=t.extend=void 0;var i=n(35922);t.extendFromObject=function(e,t,n){for(var i in e=e||{},t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];i in e&&!n||(e[i]=o)}return e},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 a=arguments[n];if(null!=a)for(var r in a){var s=t[r],l=a[r],u=!1,d=void 0;"__proto__"!==r&&"constructor"!==r&&t!==l&&(o&&l&&((0,i.isPlainObject)(l)||(u=Array.isArray(l)))?(d=u?s&&Array.isArray(s)?s:[]:s&&(0,i.isPlainObject)(s)?s:{},t[r]=e(o,d,l)):void 0!==l&&(t[r]=l))}}return t}},61371:function(e,t,n){t.parseHTML=t.isTablePart=void 0;var i,o=n(89386),a=(i=n(73349))&&i.__esModule?i:{default:i},r=/<([a-z][^/\0>\x20\t\r\n\f]+)/i,s={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};s.tbody=s.colgroup=s.caption=s.tfoot=s.thead,s.th=s.td,t.parseHTML=function(e){if("string"!=typeof e)return null;var t=a.default.createDocumentFragment().appendChild(a.default.createElement("div")),n=r.exec(e),i=n&&n[1].toLowerCase(),l=s[i]||s.default;t.innerHTML=l.startTags+e+l.endTags;for(var u=0;u<l.tagsCount;u++)t=t.lastChild;return(0,o.merge)([],t.childNodes)},t.isTablePart=function(e){var t=r.exec(e);return t&&t[1]in s}},44899:function(e,t,n){t.getImageSourceType=t.getImageContainer=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a="dx-icon",r=function(e){return!(!e||"string"!=typeof e)&&(/^\s*<svg[^>]*>(.|\r?\n)*?<\/svg>\s*$/i.test(e)?"svg":/data:.*base64|\.|[^<\s]\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(e)&&"fontIcon")};t.getImageSourceType=r,t.getImageContainer=function(e){switch(r(e)){case"image":return(0,o.default)("<img>").attr("src",e).addClass(a);case"fontIcon":return(0,o.default)("<i>").addClass("".concat(a," ").concat(e));case"dxIcon":return(0,o.default)("<i>").addClass("".concat(a," ").concat(a,"-").concat(e));case"svg":return(0,o.default)("<i>").addClass("".concat(a," ").concat("dx-svg-icon")).append(e);default:return null}}},78008:function(e,t,n){t.underscore=t.titleize=t.humanize=t.dasherize=t.captionize=t.camelize=void 0;var i=n(95479),o=function(e){return null==e?"":String(e)},a=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},r=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return(0,i.map)(r(e),(function(e){return e.toLowerCase()})).join("-")};t.dasherize=s,t.underscore=function(e){return s(e).replace(/-/g,"_")},t.camelize=function(e,t){return(0,i.map)(r(e),(function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e})).join("")},t.humanize=function(e){return a(s(e).replace(/-/g," "))},t.titleize=function(e){return(0,i.map)(r(e),(function(e){return a(e.toLowerCase())})).join(" ")};var l=["0","1","2","3","4","5","6","7","8","9"];t.captionize=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t<e.length;t++)a=(n=e.charAt(t))===n.toUpperCase()&&"-"!==n&&")"!==n&&"/"!==n||n in l,"_"===n||"."===n?(n=" ",a=!0):0===t?(n=n.toUpperCase(),a=!0):!o&&a&&i.length>0&&i.push(" "),i.push(n),o=a;return i.join("")}},95479:function(e,t){t.reverseEach=t.map=t.each=void 0,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--);}},88933:function(e,t,n){t.default=void 0;var i,o=(i=n(17381))&&i.__esModule?i:{default:i};t.default=function(){var e={},t=function(t){return e[t]||0};return{obtain:function(n){e[n]=t(n)+1},release:function(n){var i=t(n);if(i<1)throw o.default.Error("E0014");1===i?delete e[n]:e[n]=i-1},locked:function(e){return t(e)>0}}},e.exports=t.default,e.exports.default=t.default},60810:function(e,t,n){t.adjust=function(e,t){var n,r=a(t||0)+2,s=e.toString().split("."),l=e,u=Math.abs(e),d=(0,i.isExponential)(e),c=u>1?10:0;return 1===s.length?e:(d||((0,i.isExponential)(t)&&(r=s[0].length+o(t)),e=(e=u)-Math.floor(e)+c),r="0.000300"!==3e-4.toPrecision(3)&&o(e)>6||r>7?15:7,d||(n=parseFloat(e.toPrecision(r)).toString().split("."))[0]!==c.toString()?parseFloat(l.toPrecision(r)):parseFloat(s[0]+"."+n[1]))},t.fitIntoRange=void 0,t.getExponent=o,t.getExponentLength=function(e){var t,n=e.toString();return(null===(t=n.split(".")[1])||void 0===t?void 0:t.length)||parseInt(n.split("e-")[1])||0},t.getPrecision=a,t.getRemainderByDivision=function(e,t,n){if(t===parseInt(t))return e%t;var i=s(e/t,n);return(i-parseInt(i))*t},t.getRoot=r,t.inRange=void 0,t.roundFloatPart=s,t.sign=void 0,t.solveCubicEquation=function(e,t,n,i){var o=1e-8;if(Math.abs(e)<o){if(e=t,t=n,n=i,Math.abs(e)<o)return e=t,t=n,Math.abs(e)<o?[]:[-t/e];var a=t*t-4*e*n;return Math.abs(a)<o?[-t/(2*e)]:a>0?[(-t+Math.sqrt(a))/(2*e),(-t-Math.sqrt(a))/(2*e)]:[]}var s,l,u=(3*e*n-t*t)/(3*e*e),d=(2*t*t*t-9*e*t*n+27*e*e*i)/(27*e*e*e);if(Math.abs(u)<o)s=[r(-d,3)];else if(Math.abs(d)<o)s=[0].concat(u<0?[Math.sqrt(-u),-Math.sqrt(-u)]:[]);else{var c=d*d/4+u*u*u/27;if(Math.abs(c)<o)s=[-1.5*d/u,3*d/u];else if(c>0)s=[(l=r(-d/2-Math.sqrt(c),3))-u/(3*l)];else{l=2*Math.sqrt(-u/3);var h=Math.acos(3*d/u/l)/3,f=2*Math.PI/3;s=[l*Math.cos(h),l*Math.cos(h-f),l*Math.cos(h-2*f)]}}for(var p=0;p<s.length;p++)s[p]-=t/(3*e);return s},t.trunc=function(e){return Math.trunc?Math.trunc(e):e>0?Math.floor(e):Math.ceil(e)};var i=n(35922);function o(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function a(e){var t=e.toString();if(t.indexOf(".")<0)return 0;var n=t.split("."),i=n[1].indexOf("e");return i>=0?i:n[1].length}function r(e,t){if(e<0&&t%2!=1)return NaN;var n=Math.pow(Math.abs(e),1/t);return t%2==1&&e<0?-n:n}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return parseFloat(e.toFixed(t))}t.sign=function(e){return 0===e?0:e/Math.abs(e)},t.fitIntoRange=function(e,t,n){var i=!t&&0!==t,o=!n&&0!==n;return i&&(t=o?e:Math.min(e,n)),o&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},t.inRange=function(e,t,n){return e>=t&&e<=n}},48013:function(e,t,n){t.orderEach=t.deepExtendArraySafe=t.clone=void 0;var i,o=n(35922),a=(i=n(26974))&&i.__esModule?i:{default:i},r=function(){function e(){}return function(t){return e.prototype=t,new e}}();t.clone=r,t.orderEach=function(e,t){var n,i,a=[];for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.push(n);for(a.sort((function(e,t){var n=(0,o.isNumeric)(e),i=(0,o.isNumeric)(t);return n&&i?e-t:n&&!i?-1:!n&&i?1:e<t?-1:e>t?1:0})),i=0;i<a.length;i++)t(n=a[i],e[n])};var s=function(e,t,n,i){!i&&a.default.isWrapped(e[t])?a.default.assign(e[t],n):e[t]=n};t.deepExtendArraySafe=function e(t,n,i,a){var r,l;for(var u in n)r=t[u],l=n[u],"__proto__"!==u&&"constructor"!==u&&t!==l&&((0,o.isPlainObject)(l)&&(l=e((i?(0,o.isObject)(r):(0,o.isPlainObject)(r))?r:{},l,i,a)),void 0!==l&&r!==l&&s(t,u,l,a));return t}},37518:function(e,t,n){t.getDefaultAlignment=t.getBoundingRect=void 0;var i,o=(i=n(80209))&&i.__esModule?i:{default:i},a=n(35922);t.getDefaultAlignment=function(e){return(null!=e?e:(0,o.default)().rtlEnabled)?"right":"left"},t.getBoundingRect=function(e){return(0,a.isWindow)(e)?{width:e.outerWidth,height:e.outerHeight}:e.getBoundingClientRect()}},9321:function(e,t,n){t.attachInstanceToElement=function(e,t,n){var a=(0,i.data)(e.get(0)),r=c(t.constructor);a[r]=t,n&&o.default.one(e,s.removeEvent,(function(){n.call(t)})),a.dxComponents||(a.dxComponents=[]),a.dxComponents.push(r)},t.getInstanceByElement=function(e,t){var n=c(t);return(0,i.data)(e.get(0),n)},t.name=void 0;var i=n(97906),o=l(n(55994)),a=l(n(10126)),r=n(35922),s=n(29007);function l(e){return e&&e.__esModule?e:{default:e}}var u=new a.default,d=0,c=function(e,t){if(!(0,r.isDefined)(t)){if(!u.has(e)){var n="dxPrivateComponent"+d++;return u.set(e,n),n}return u.get(e)}u.set(e,t)};t.name=c},59504:function(e,t,n){t.create=r,t.enqueue=void 0;var i,o=(i=n(17381))&&i.__esModule?i:{default:i},a=n(62754);function r(e){var t=[],n=!1;function i(){for(;t.length;){n=!0;var e=t.shift()();if(void 0!==e){if(e.then)return void(0,a.when)(e).always(i);throw o.default.Error("E0015")}}n=!1}return{add:function(o,a){e?(t[0]&&a&&a(t[0]),t=[o]):t.push(o),n||i()},busy:function(){return n}}}var s=r().add;t.enqueue=s},24311:function(e,t,n){t.default=void 0;var i=s(n(73349)),o=s(n(20476)),a=n(58201),r=s(n(39618));function s(e){return e&&e.__esModule?e:{default:e}}var l=[],u=(0,r.default)((function(){var e=i.default.listen(i.default.getDocument(),"DOMContentLoaded",(function(){d.fire(),e()}))})),d={add:function(e){var t=(0,a.hasWindow)();t&&"loading"!==i.default.getReadyState()?e():(l.push(e),t&&u())},fire:function(){l.forEach((function(e){return e()})),l=[]}},c=(0,o.default)(d);t.default=c,e.exports=t.default,e.exports.default=t.default},55814:function(e,t,n){t.default=void 0;var i=n(58201),o=l(n(73349)),a=l(n(44504)),r=l(n(24311)),s=l(n(39618));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){var e,t=(0,a.default)(),n=t.add,l=t.remove;if(!(0,i.hasWindow)())return t;var u,d=function(){var e=(0,i.getWindow)();return{width:e.innerWidth,height:e.innerHeight}},c=function(){var n,i=d();i.width===e.width&&i.height===e.height||(i.width===e.width&&(n="height"),i.height===e.height&&(n="width"),e=i,t.fire(n))},h=(0,s.default)((function(){e=d()}));return t.add=function(){var e=n.apply(t,arguments);return h(),r.default.add((function(){!u&&t.has()&&(u=o.default.listen((0,i.getWindow)(),"resize",c))})),e},t.remove=function(){var e=l.apply(t,arguments);return!t.has()&&u&&(u(),u=void 0),e},t}();t.default=u,e.exports=t.default,e.exports.default=t.default},11071:function(e,t,n){t.default=void 0;var i=o(n(73349));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,o(n(39618)).default)((function(){var e=i.default.getDocument();e.body.insertAdjacentHTML("beforeend","<div style='direction: rtl;\n       position: absolute; left: 0; top: -1; overflow: hidden; width: 1px;\n       height: 1px;'><div style='width: 2px; height: 1px;'></div></div>");var t=e.body.lastElementChild,n=t.scrollLeft>0;t.scrollLeft=-1;var o=t.scrollLeft<0,a={decreasing:o||n,positive:!o};return e.body.removeChild(t),a}));t.default=a,e.exports=t.default,e.exports.default=t.default},49601:function(e,t,n){t.SelectionFilterCreator=void 0;var i=n(20576),o=n(35922);t.SelectionFilterCreator=function(e,t){var n;this.getLocalFilter=function(e,t,n,o){return t=void 0===t?i.equalByValue:t,a.bind(this,t,e,n,o)},this.getExpr=function(n){var i;if(n)return e.forEach((function(e,a){var s;i=i||[],a>0&&i.push(t?"and":"or"),s=(0,o.isString)(n)?r(n,e):function(e,n){for(var i=[],o=0,a=e.length;o<a;o++){var s=e[o],l=r(s,n&&n[s]);if(!l)break;o>0&&i.push(t?"or":"and"),i.push(l)}return i}(n,e),i.push(s)})),i&&1===i.length&&(i=i[0]),i},this.getCombinedFilter=function(e,n){var i=this.getExpr(e),o=i;return t&&n&&(i?((o=[]).push(i),o.push(n)):o=n),o};function a(a,r,s,l,u){var d,c,h=r(u);if(!s&&(d=(0,i.getKeyHash)(h),!(0,o.isObject)(d)))return function(t,o){if(!n){n={};for(var a=function(e,t,n){return Array.isArray(n)?e.map((function(e){return t(e)})):e}(e,t,o),r=0;r<a.length;r++)n[(0,i.getKeyHash)(a[r])]=!0}return n}(r,l)[d]?!t:!!t;for(c=0;c<e.length;c++)if(a(e[c],h))return!t;return!!t}function r(e,n){if(void 0!==n)return[e,t?"<>":"=",n]}}},58664:function(e,t,n){t.setWidth=t.setOuterWidth=t.setOuterHeight=t.setInnerWidth=t.setInnerHeight=t.setHeight=t.parseHeight=t.implementationsMap=t.getWindowByElement=t.getWidth=t.getVisibleHeight=t.getVerticalOffsets=t.getSize=t.getOuterWidth=t.getOuterHeight=t.getOffset=t.getInnerWidth=t.getInnerHeight=t.getHeight=t.getElementBoxParams=t.addOffsetToMinHeight=t.addOffsetToMaxHeight=void 0;var i,o=n(58201),a=(i=n(73349))&&i.__esModule?i:{default:i},r=n(35922),s=(0,o.getWindow)(),l=["auto","none","inherit","initial"],u=function(e,t){var n=0;return t.forEach((function(t){n+=parseFloat(e[t])||0})),n},d=function(e,t){var n="width"===e?"Left":"Top",i="width"===e?"Right":"Bottom";return{padding:u(t,["padding"+n,"padding"+i]),border:u(t,["border"+n+"Width","border"+i+"Width"]),margin:u(t,["margin"+n,"margin"+i])}};t.getElementBoxParams=d;var c=function(e){var t,n=(null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||s;return n.getComputedStyle&&n.getComputedStyle(e)},h=function(e,t,n,i){var o;return(null==t?void 0:t[n])||(null===(o=e.style)||void 0===o?void 0:o[n])||i},f={content:0,padding:1,border:2,margin:3,"content-box":0,"border-box":2},p={width:["left","right"],height:["top","bottom"]};function g(e,t,n,i){var o=function(e,t,n){return parseFloat(h(e,t,n,"0"))||0},a="border"===n?"-width":"";return o(e,i,"".concat(n,"-").concat(p[t][0]).concat(a))+o(e,i,"".concat(n,"-").concat(p[t][1]).concat(a))}var m=function(e,t,n){var i="width"===t?"offsetWidth":"offsetHeight",o=c(e),a=h(e,o,t);""!==a&&"auto"!==a||(a=e[i]),a=parseFloat(a)||0;var r=h(e,o,"boxSizing","content-box"),s=f[n||r],l=f[r];if(void 0===s||void 0===l)throw new Error;if(l===s)return a;var u=Math.sign(s-l),d=!1,p=!1,m=!1,_=!1;1===u&&(s+=1,l+=1);for(var v=l;v!==s;v+=u)switch(v){case f.content:break;case f.padding:d=u*g(e,t,"padding",o);break;case f.border:p=u*g(e,t,"border",o);break;case f.margin:m=u*g(e,t,"margin",o)}if(d||p){var y=(!1===d?u*g(e,t,"padding",o):d)+(!1===p?u*g(e,t,"border",o):p);_=u*Math.max(0,Math.floor(e[i]-a-u*y))||0}return a+m+d+p+_};t.getSize=m;var _=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*function(e){return(0,r.isWindow)(e)?e.innerHeight:e.offsetHeight}(t)/100:isNaN(e)||(e=parseInt(e)),e};t.parseHeight=_;var v=function(e,t,n){return e?l.indexOf(e)>-1?t?null:e:((0,r.isString)(e)&&(e=_(e,n)),(0,r.isNumeric)(e)?Math.max(0,e+t):"calc("+e+(t<0?" - ":" ")+Math.abs(t)+"px)"):null};t.addOffsetToMaxHeight=function(e,t,n){var i=v(e,t,n);return null!==i?i:"none"},t.addOffsetToMinHeight=function(e,t,n){var i=v(e,t,n);return null!==i?i:0},t.getVerticalOffsets=function(e,t){if(!e)return 0;var n=d("height",s.getComputedStyle(e));return n.padding+n.border+(t?n.margin:0)},t.getVisibleHeight=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0};var y={getWidth:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["width"].concat(t))},setWidth:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["width"].concat(t))},getHeight:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["height"].concat(t))},setHeight:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["height"].concat(t))},getOuterWidth:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["outerWidth"].concat(t))},setOuterWidth:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["outerWidth"].concat(t))},getOuterHeight:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["outerHeight"].concat(t))},setOuterHeight:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["outerHeight"].concat(t))},getInnerWidth:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["innerWidth"].concat(t))},setInnerWidth:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["innerWidth"].concat(t))},getInnerHeight:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["innerHeight"].concat(t))},setInnerHeight:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["innerHeight"].concat(t))}};function x(e,t,n){return 2===arguments.length?b(t,e):b(t,e,n)}t.implementationsMap=y,t.getWidth=function(e){return y.getWidth(e)},t.setWidth=function(e,t){return y.setWidth(e,t)},t.getHeight=function(e){return y.getHeight(e)},t.setHeight=function(e,t){return y.setHeight(e,t)},t.getOuterWidth=function(e,t){return y.getOuterWidth(e,t||!1)},t.setOuterWidth=function(e,t){return y.setOuterWidth(e,t)},t.getOuterHeight=function(e,t){return y.getOuterHeight(e,t||!1)},t.setOuterHeight=function(e,t){return y.setOuterHeight(e,t)},t.getInnerWidth=function(e){return y.getInnerWidth(e)},t.setInnerWidth=function(e,t){return y.setInnerWidth(e,t)},t.getInnerHeight=function(e){return y.getInnerHeight(e)},t.setInnerHeight=function(e,t){return y.setInnerHeight(e,t)};var b=function e(t,n,i){var o=n.toLowerCase().indexOf("width")>=0?"Width":"Height",s=o.toLowerCase(),l=0===n.indexOf("outer"),u=0===n.indexOf("inner"),h=2===arguments.length||"boolean"==typeof i;if((0,r.isRenderer)(t)){if(t.length>1&&!h){for(var f=0;f<t.length;f++)e(t[f],n,i);return}t=t[0]}if(t){if((0,r.isWindow)(t))return l?t["inner"+o]:a.default.getDocumentElement()["client"+o];if(a.default.isDocument(t)){var p=a.default.getDocumentElement(),g=a.default.getBody();return Math.max(g["scroll"+o],g["offset"+o],p["scroll"+o],p["offset"+o],p["client"+o])}if(h){var _="content";return l&&(_=i?"margin":"border"),u&&(_="padding"),m(t,s,_)}if((0,r.isNumeric)(i)){var v=c(t),y=d(s,v),x="border-box"===v.boxSizing;i=Number(i),l?i-=x?0:y.border+y.padding:u?i+=x?y.border:-y.padding:x&&(i+=y.border+y.padding)}return i+=(0,r.isNumeric)(i)?"px":"",a.default.setStyle(t,s,i),null}},w=function(e){return(0,r.isWindow)(e)?e:e.defaultView};t.getWindowByElement=w,t.getOffset=function(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),n=w(e.ownerDocument),i=e.ownerDocument.documentElement;return{top:t.top+n.pageYOffset-i.clientTop,left:t.left+n.pageXOffset-i.clientLeft}}},36613:function(e,t,n){t.sessionStorage=void 0;var i=(0,n(58201).getWindow)();t.sessionStorage=function(){var e;try{e=i.sessionStorage}catch(e){}return e}},68752:function(e,t,n){t.encodeHtml=void 0,t.format=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return(0,i.isFunction)(e)?e.apply(void 0,n):(n.forEach((function(t,n){(0,i.isString)(t)&&(t=t.replace(/\$/g,"$$$$"));var o=new RegExp("\\{"+n+"\\}","gm");e=e.replace(o,t)})),e)},t.replaceAll=t.quadToObject=t.isEmpty=void 0;var i=n(35922);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a,r=(a=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")],function(e){return String(e).replace(a[0],"&amp;").replace(a[1],"&quot;").replace(a[2],"&#39;").replace(a[3],"&lt;").replace(a[4],"&gt;")});t.encodeHtml=r,t.quadToObject=function(e){var t=function(e){switch(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}}(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),a=parseInt(t&&t[2],10),r=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(a)||(a=n),isFinite(r)||(r=i),{top:i,right:a,bottom:r,left:n}};t.replaceAll=function(e,t,n){return e.replace(new RegExp("("+(t+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")+")","gi"),n)};var s,l=(s=/\s/g,function(e){return!e||!e.replace(s,"")});t.isEmpty=l},2146:function(e,t){t.stubComponent=function(e){return function(){function t(){throw new Error("Module '".concat(e,"' not found"))}return t.getInstance=function(){},t}()}},80968:function(e,t,n){t.stylePropPrefix=t.styleProp=t.setWidth=t.setHeight=t.parsePixelValue=t.normalizeStyleProp=void 0;var i=n(78008),o=s(n(39618)),a=n(35922),r=s(n(73349));function s(e){return e&&e.__esModule?e:{default:e}}var l=["","Webkit","Moz","O","Ms"],u={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},d=(0,o.default)((function(){return r.default.createElement("dx").style}));t.styleProp=function(e){if(e in d())return e;var t=e;e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=1;n<l.length;n++){var i=l[n].toLowerCase()+e;if(i in d())return i}return t},t.stylePropPrefix=function(e){return function(e,t){var n;e=(0,i.camelize)(e,!0);for(var o=0,a=l.length;o<a;o++){var r=l[o],s=r+e;if(void 0===(n=t((0,i.camelize)(s),r))&&(n=t(s,r)),void 0!==n)break}return n||""}(e,(function(e,t){if(e in d())return u[t]}))};var c=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"];t.parsePixelValue=function(e){return(0,a.isNumeric)(e)?e:(0,a.isString)(e)?Number(e.replace("px","")):NaN},t.normalizeStyleProp=function(e,t){return(0,a.isNumeric)(t)&&-1===c.indexOf(e)&&(t+="px"),t};var h=function(e,t,n){if(e){n=(0,a.isNumeric)(n)?n+="px":n;for(var i=0;i<e.length;++i)e[i].style[t]=n}};t.setWidth=function(e,t){h(e,"width",t)},t.setHeight=function(e,t){h(e,"height",t)}},60137:function(e,t,n){t.pointerEvents=t.nativeScrolling=t.inputType=t.animation=void 0,Object.defineProperty(t,"styleProp",{enumerable:!0,get:function(){return l.styleProp}}),Object.defineProperty(t,"stylePropPrefix",{enumerable:!0,get:function(){return l.stylePropPrefix}}),t.transitionEndEventName=t.transition=t.touchEvents=t.touch=t.supportProp=void 0;var i=n(89386),o=u(n(73349)),a=u(n(39618)),r=n(58201),s=u(n(20530)),l=n(80968);function u(e){return e&&e.__esModule?e:{default:e}}var d=(0,r.getNavigator)().maxTouchPoints,c={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},h=function(e){return!!(0,l.styleProp)(e)};t.supportProp=h,t.inputType=function(e){if("text"===e)return!0;var t=o.default.createElement("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}};var f=function(e,t){return(e("ontouchstart")||!!t)&&!e("callPhantom")}(r.hasProperty,d);t.touchEvents=f;var p=(0,r.hasProperty)("PointerEvent");t.pointerEvents=p;var g=f||p&&!!d;t.touch=g;var m=(0,a.default)((function(){return h("transition")}));t.transition=m;var _=(0,a.default)((function(){return c[(0,l.styleProp)("transition")]}));t.transitionEndEventName=_;var v=(0,a.default)((function(){return h("animation")}));t.animation=v;var y,x,b,w,C=(x=(y=s.default.real()).platform,b=y.version,w=y.mac,!(b&&b[0]<4&&"android"===x)&&(0,i.inArray)(x,["ios","android"])>-1||w);t.nativeScrolling=C},19155:function(e,t,n){t.HIDDEN_FOR_EXPORT=void 0,t.getSvgElement=function(e){return i.default.isNode(e)?e:(new s.DOMParser).parseFromString(e,"image/svg+xml").childNodes[0]},t.getSvgMarkup=function(e,t){return function(e){var t=!0;return-1===e.indexOf("xmlns:xlink")&&(e=e.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),(e=e.replace(/xmlns="[\s\S]*?"/gi,(function(e){return t?(t=!1,e):""}))).replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}(function(e,t){var n=i.default.createElement("div"),o=e.cloneNode(!0);return t&&(0,a.default)(o).css("backgroundColor",t),n.appendChild(o),n.innerHTML}(e,t).replace(/&quot;/gi,"&#34;").replace(/&amp;/gi,"&#38;").replace(/&apos;/gi,"&#39;").replace(/&lt;/gi,"&#60;").replace(/&gt;/gi,"&#62;").replace(/&nbsp;/gi,"&#160;").replace(/&shy;/gi,"&#173;"))};var i=r(n(73349)),o=n(58201),a=r(n(68374));function r(e){return e&&e.__esModule?e:{default:e}}var s=(0,o.getWindow)();t.HIDDEN_FOR_EXPORT="hidden-for-export"},69697:function(e,t,n){t.validateTemplateSource=t.templateKey=t.suitableTemplatesByName=t.getNormalizedTemplateArgs=t.findTemplates=t.defaultCreateElement=t.addOneRenderedCall=t.acquireTemplate=t.acquireIntegrationTemplate=void 0;var i=m(n(80209)),o=m(n(20530)),a=m(n(17381)),r=m(n(68374)),s=n(91627),l=n(10688),u=n(9545),d=n(81033),c=n(89386),h=n(20576),f=n(3532),p=n(13306),g=n(35922);function m(e){return e&&e.__esModule?e:{default:e}}t.findTemplates=function(e,t){var n="data-options",o=(0,r.default)(e).contents().filter("[".concat(n,'*="').concat(t,'"]'));return[].slice.call(o).map((function(e){var o=(0,r.default)(e).attr(n)||"";return{element:e,options:(0,i.default)().optionsParser(o)[t]}})).filter((function(e){return!!e.options}))},t.suitableTemplatesByName=function(e){var t=(0,c.groupBy)(e,(function(e){return e.options.name}));if(t[void 0])throw a.default.Error("E0023");var n={};return Object.keys(t).forEach((function(e){var i,a=null===(i=(0,h.findBestMatches)(o.default.current(),t[e],(function(e){return e.options}))[0])||void 0===i?void 0:i.element;a&&(n[e]=a)})),n};var _=function(e){var t=e.render.bind(e);return(0,p.extend)({},e,{render:function(e){var n=t(e);return e&&e.onRendered&&e.onRendered(),n}})};t.addOneRenderedCall=_,t.getNormalizedTemplateArgs=function(e){var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},t.validateTemplateSource=function(e){return"string"==typeof e?(0,f.normalizeTemplateElement)(e):e},t.templateKey=function(e){return(0,g.isRenderer)(e)&&e[0]||e},t.defaultCreateElement=function(e){return new u.Template(e)};var v=function(e,t,n,i){var o=null;return i&&-1!==i.indexOf(e)||!(o=t[e])||o instanceof d.TemplateBase||n||(o=_(o)),o};t.acquireIntegrationTemplate=v,t.acquireTemplate=function(e,t,n,i,o,a){return null==e?new l.EmptyTemplate:e instanceof s.ChildDefaultTemplate?a[e.name]:e instanceof d.TemplateBase?e:(0,g.isFunction)(e.render)&&!(0,g.isRenderer)(e)?i?e:_(e):e.nodeType||(0,g.isRenderer)(e)?t((0,r.default)(e)):v(e,n,i,o)||a[e]||t(e)}},35922:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.type=t.isWindow=t.isString=t.isRenderer=t.isPromise=t.isPrimitive=t.isPlainObject=t.isObject=t.isNumeric=t.isFunction=t.isExponential=t.isEvent=t.isEmptyObject=t.isDefined=t.isDeferred=t.isDate=t.isBoolean=void 0;var i={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},o=function(e){var t=Object.prototype.toString.call(e);return"object"===n(e)?i[t]||"object":n(e)};t.type=o,t.isBoolean=function(e){return"boolean"==typeof e},t.isExponential=function(e){return r(e)&&-1!==e.toString().indexOf("e")},t.isDate=function(e){return"date"===o(e)},t.isDefined=function(e){return null!=e};var a=function(e){return"function"==typeof e};t.isFunction=a,t.isString=function(e){return"string"==typeof e};var r=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))};t.isNumeric=r,t.isObject=function(e){return"object"===o(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(o(e))},t.isWindow=function(e){return null!=e&&e===e.window},t.isRenderer=function(e){return!(!e||!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.isEvent=function(e){return!(!e||!e.preventDefault)}},26974:function(e,t,n){t.default=void 0;var i,o=n(30869),a=(0,((i=n(20476))&&i.__esModule?i:{default:i}).default)({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(){o.logger.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}});t.default=a,e.exports=t.default,e.exports.default=t.default},58020:function(e,t){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var o=Math.max(e.length,t.length);isFinite(n)&&(o=Math.min(o,n));for(var a=0;a<o;a++){var r=parseInt(e[a]||0,10),s=parseInt(t[a]||0,10);if(r<s)return-1;if(r>s)return 1}return 0}},77695:function(e,t,n){t.changeCallback=void 0,t.originalViewPort=function(){return d},t.value=void 0;var i=r(n(68374)),o=r(n(24311)),a=r(n(44504));function r(e){return e&&e.__esModule?e:{default:e}}var s=o.default.add,l=(0,a.default)();t.changeCallback=l;var u,d=(0,i.default)(),c=function(e){if(!arguments.length)return u;var t=(0,i.default)(e);d=t;var n=!!t.length,o=c();u=n?t:(0,i.default)("body"),l.fire(n?c():(0,i.default)(),o)};t.value=c,s((function(){c(".dx-viewport")}))},58201:function(e,t,n){t.setWindow=t.hasWindow=t.hasProperty=t.getWindow=t.getNavigator=t.getCurrentScreenFactor=t.defaultScreenFactorFunc=void 0;var i,o=(i=n(73349))&&i.__esModule?i:{default:i},a="undefined"!=typeof window,r=function(){return a};t.hasWindow=r;var s=r()?window:void 0;s||((s={}).window=s),t.getWindow=function(){return s},t.setWindow=function(e,t){a=void 0===t?"undefined"!=typeof window&&window===e:t,s=e},t.hasProperty=function(e){return r()&&e in s};var l=function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"};t.defaultScreenFactorFunc=l,t.getCurrentScreenFactor=function(e){return(e||l)(o.default.getDocumentElement().clientWidth)},t.getNavigator=function(){return r()?s.navigator:{userAgent:""}}},36739:function(e,t){t.version=void 0,t.version="21.2.4"},67403:function(e,t,n){t.default=void 0;var i=h(n(38377)),o=n(80566),a=n(95479),r=n(18438),s=n(16454),l=n(47617),u=h(n(99236)),d=n(62754),c=n(20576);function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var p,g=i.default.abstract,m=u.default.queryByOptions,_={},v=i.default.inherit({ctor:function(e){var t=this;e=e||{},this._eventsStrategy=new o.EventsStrategy(this),(0,a.each)(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],(function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])})),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=(0,l.compileGetter)(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw r.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this._eventsStrategy.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done((function(n){t._eventsStrategy.fireEvent("loaded",[n,e])}))},_loadImpl:function(e){return m(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new d.Deferred;return e.done((function(){var e=this,n=arguments;s.processRequestResultLock.promise().done((function(){t.resolveWith(e,n)}))})).fail((function(){t.rejectWith(this,arguments)})),t},createQuery:g,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return m(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:g,insert:function(e){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done((function(e,n){t._eventsStrategy.fireEvent("inserted",[e,n]),t._eventsStrategy.fireEvent("modified")})))},_insertImpl:g,update:function(e,t){var n=this;return n._eventsStrategy.fireEvent("modifying"),n._eventsStrategy.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done((function(){n._eventsStrategy.fireEvent("updated",[e,t]),n._eventsStrategy.fireEvent("modified")})))},_updateImpl:g,push:function(e){var t=this,n={changes:e,waitFor:[]};this._eventsStrategy.fireEvent("beforePush",[n]),d.when.apply(void 0,function(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n.waitFor)).done((function(){t._pushImpl(e),t._eventsStrategy.fireEvent("push",[e])}))},_pushImpl:c.noop,remove:function(e){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done((function(e){t._eventsStrategy.fireEvent("removed",[e]),t._eventsStrategy.fireEvent("modified")})))},_removeImpl:g,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(r.handleError)},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this}});v.create=function(e,t){if(!(e in _))throw r.errors.Error("E4020",e);return new _[e](t)},v.registerClass=function(e,t){return t&&(_[t]=e),e},v.inherit=(p=v.inherit,function(e,t){var n=p.apply(this,[e]);return v.registerClass(n,t),n});var y=v;t.default=y,e.exports=t.default,e.exports.default=t.default},36893:function(e,t,n){t.default=void 0;var i=n(60637).applyChanges;t.default=i,e.exports=t.default,e.exports.default=t.default},35042:function(e,t,n){t.default=void 0;var i,o=(i=n(38377))&&i.__esModule?i:{default:i},a=n(35922),r=n(95479),s=n(47617),l=n(62754),u=n(18438),d=n(16454),c=o.default.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=c.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),f=c.inherit({ctor:function(e){this.iter=e},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),p=f.inherit({ctor:function(e,t){this.callBase(e),this.index=-1,this.mapper=t},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var e=this.callBase();return e&&this.index++,e}}),g=function(e,t){return e=(0,s.toComparable)(e),t=(0,s.toComparable)(t),null===e&&null!==t?-1:null!==e&&null===t||void 0===e&&void 0!==t?1:void 0!==e&&void 0===t||e<t?-1:e>t?1:0},m=c.inherit({ctor:function(e,t,n,i){e instanceof p||(e=new p(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new m(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||((0,r.each)(e.rules,(function(){this.getter=(0,s.compileGetter)(this.getter)})),e.sortedIter=new p(new h(this.iter.toArray().sort((function(t,n){return e._compare(t,n)}))),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if((e=e.value)===(t=t.value))return n-i;for(var o=0,a=this.rules.length;o<a;o++){var r=this.rules[o],s=r.getter(e),l=r.getter(t),u=(r.compare||g)(s,l);if(u)return r.desc?-u:u}return n-i}}),_=function(){var e=function(e){return(0,a.isDefined)(e)?e.toString():""};function t(e,t,n){return function(i){i=(0,s.toComparable)(e(i));var o=function(e){return""===e||0===e||!1===e}(t)?i===t:i==t;return n&&(o=!o),o}}return function(n){return(0,a.isFunction)(n)?n:(0,d.isGroupCriterion)(n)?function(e){var t=[],n=!1,i=!1;return(0,r.each)(e,(function(){if(Array.isArray(this)||(0,a.isFunction)(this)){if(t.length>1&&n!==i)throw new u.errors.Error("E4019");t.push(_(this)),n=i,i=!0}else i=(0,d.isConjunctiveOperator)(this)})),function(e){for(var i=n,o=0;o<t.length;o++)if(t[o](e)!==n){i=!n;break}return i}}(n):(0,d.isUnaryOperation)(n)?function(e){var t=e[0],n=_(e[1]);if("!"===t)return function(e){return!n(e)};throw u.errors.Error("E4003",t)}(n):function(n){n=(0,d.normalizeBinaryCriterion)(n);var i=(0,s.compileGetter)(n[0]),o=n[1],a=n[2];switch(a=(0,s.toComparable)(a),o.toLowerCase()){case"=":return t(i,a);case"<>":return t(i,a,!0);case">":return function(e){return(0,s.toComparable)(i(e))>a};case"<":return function(e){return(0,s.toComparable)(i(e))<a};case">=":return function(e){return(0,s.toComparable)(i(e))>=a};case"<=":return function(e){return(0,s.toComparable)(i(e))<=a};case"startswith":return function(t){return 0===(0,s.toComparable)(e(i(t))).indexOf(a)};case"endswith":return function(t){var n=(0,s.toComparable)(e(i(t))),o=e(a);if(n.length<o.length)return!1;var r=n.lastIndexOf(a);return-1!==r&&r===n.length-a.length};case"contains":return function(t){return(0,s.toComparable)(e(i(t))).indexOf(a)>-1};case"notcontains":return function(t){return-1===(0,s.toComparable)(e(i(t))).indexOf(a)}}throw u.errors.Error("E4003",o)}(n)}}(),v=f.inherit({ctor:function(e,t){this.callBase(e),this.criteria=_(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),y=c.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],n=this.iter,i=(0,s.compileGetter)(this.getter);for(n.reset();n.next();){var o=n.current(),a=i(o);a in e?e[a].push(o):(e[a]=[o],t.push(a))}this.groupedIter=new h((0,r.map)(t,(function(t){return{key:t,items:e[t]}})))}}}),x=f.inherit({ctor:function(e,t){this.callBase(e),this.getter=(0,s.compileGetter)(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),b=f.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}});t.default=function e(t,n){n=n||{},t instanceof c||(t=new h(t));var i=function(e){var t=n.errorHandler;t&&t(e),(0,u.handleError)(e)},o=function(e){var n=(new l.Deferred).fail(i),o=e.step,a=e.finalize;try{t.reset();for(var r=("seed"in e?e.seed:t.next()?t.current():NaN);t.next();)r=o(r,t.current());n.resolve(a?a(r):r)}catch(e){n.reject(e)}return n.promise()},r=function(e){return o(d.aggregators[e])},f=function(e){return(0,a.isFunction)(e)||Array.isArray(e)||(e=[].slice.call(arguments)),g(new x(t,e))},p=function(e){return f((0,s.compileGetter)(e))};function g(t){return e(t,n)}return{toArray:function(){return t.toArray()},enumerate:function(){var e=(new l.Deferred).fail(i);try{e.resolve(t.toArray())}catch(t){e.reject(t)}return e.promise()},sortBy:function(e,n,i){return g(new m(t,e,n,i))},thenBy:function(e,n,i){if(t instanceof m)return g(t.thenBy(e,n,i));throw u.errors.Error("E4004")},filter:function(e){return Array.isArray(e)||(e=[].slice.call(arguments)),g(new v(t,e))},slice:function(e,n){return void 0===n&&(n=Number.MAX_VALUE),g(new b(t,e,n))},select:f,groupBy:function(e){return g(new y(t,e))},aggregate:function(e,t,n){return o(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:n})},count:function(){if(t.countable()){var e=(new l.Deferred).fail(i);try{e.resolve(t.count())}catch(t){e.reject(t)}return e.promise()}return r("count")},sum:function(e){return e?p(e).sum():r("sum")},min:function(e){return e?p(e).min():r("min")},max:function(e){return e?p(e).max():r("max")},avg:function(e){return e?p(e).avg():r("avg")}}},e.exports=t.default,e.exports.default=t.default},26562:function(e,t,n){t.default=void 0;var i=n(16454),o=l(n(96687)),a=n(18438),r=l(n(67403)),s=n(60637);function l(e){return e&&e.__esModule?e:{default:e}}var u=r.default.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw a.errors.Error("E4006");this._array=t||[]},createQuery:function(){return(0,o.default)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=(0,s.indexByKey)(this,this._array,e);return-1===t?(0,i.rejectedPromise)(a.errors.Error("E4009")):(0,i.trivialPromise)(this._array[t])},_insertImpl:function(e){return(0,s.insert)(this,this._array,e)},_pushImpl:function(e){(0,s.applyBatch)({keyInfo:this,data:this._array,changes:e})},_updateImpl:function(e,t){return(0,s.update)(this,this._array,e,t)},_removeImpl:function(e){return(0,s.remove)(this,this._array,e)},clear:function(){this._eventsStrategy.fireEvent("modifying"),this._array=[],this._eventsStrategy.fireEvent("modified")}},"array");t.default=u,e.exports=t.default,e.exports.default=t.default},60637:function(e,t,n){t.applyBatch=_,t.applyChanges=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.keyExpr,o=void 0===i?"id":i,a=n.immutable,r=void 0===a||a,s=(0,u.compileGetter)(o),l={key:function(){return o},keyOf:function(e){return s(e)}};return _({keyInfo:l,data:e,changes:t,immutable:r,disableCache:!0,logError:!0})},t.createObjectWithChanges=m,t.indexByKey=w,t.insert=x,t.remove=b,t.update=y;var i=n(35922),o=c(n(80209)),a=c(n(73176)),r=n(13306),s=n(18438),l=n(48013),u=n(47617),d=n(16454);function c(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t,n,i){return i?function e(t,n,i,o){var a;if(o){for(var r=0;r<n.length;r++)if(a=e(t,n[r].items||n[r].collapsedItems||[]||[],i,o-1))return a}else if(w(t,n,i)>=0)return n}(e,t,n,i)||[]:t}function g(e,t,n){e._dataByKeyMap&&(e._dataByKeyMap[JSON.stringify(t)]=n,e._dataByKeyMapLength+=n?1:-1)}function m(e,t){var n=function e(t){var n=t?Object.create(Object.getPrototypeOf(t)):{},o=(0,r.extendFromObject)({},t);for(var a in o){var s=o[a];(0,i.isObject)(s)&&!(0,i.isPlainObject)(s)&&(o[a]=e(s))}return(0,l.deepExtendArraySafe)(n,o,!0,!0),n}(e);return(0,l.deepExtendArraySafe)(n,t,!0,!0)}function _(e){var t=e.keyInfo,n=e.data,o=e.changes,a=e.groupCount,r=e.useInsertIndex,s=e.immutable,l=e.disableCache,u=e.logError,d=!0===s?function(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n):n;return o.forEach((function(e){var n="insert"===e.type?d:p(t,d,e.key,a);switch(!l&&function(e,t){if(e.key()&&(!t._dataByKeyMap||t._dataByKeyMapLength!==t.length)){for(var n={},i=t.length,o=0;o<i;o++)n[JSON.stringify(e.keyOf(t[o]))]=t[o];t._dataByKeyMap=n,t._dataByKeyMapLength=i}}(t,n),e.type){case"update":y(t,n,e.key,e.data,!0,s,u);break;case"insert":x(t,n,e.data,r&&(0,i.isDefined)(e.index)?e.index:-1,!0,u);break;case"remove":b(t,n,e.key,!0,u)}})),d}function v(e,t,n){return e?t&&s.errors.log(n):(0,d.rejectedPromise)(s.errors.Error(n))}function y(e,t,n,a,r,s,u){var c,h=e.key();if(h){if(function(e,t){for(var n="string"==typeof t?t.split():t.slice();n.length;)if(n.shift()in e)return!0;return!1}(a,h)&&!(0,d.keysEqual)(h,n,e.keyOf(a)))return v(r,u,"E4017");if(!(c=function(e,t){if(e._dataByKeyMap)return e._dataByKeyMap[JSON.stringify(t)]}(t,n))){var f=w(e,t,n);if(f<0)return v(r,u,"E4009");if(c=t[f],!0===s&&(0,i.isDefined)(c)){var p=m(c,a);return t[f]=p,!r&&(0,d.trivialPromise)(p,n)}}}else c=n;if((0,l.deepExtendArraySafe)(c,a,!0),!r)return(0,o.default)().useLegacyStoreResult?(0,d.trivialPromise)(n,a):(0,d.trivialPromise)(c,n)}function x(e,t,n,l,u,c){var f,p=e.key(),m=(0,i.isPlainObject)(n)?(0,r.extend)({},n):n;if(p){if(void 0===(f=e.keyOf(m))||"object"===h(f)&&(0,i.isEmptyObject)(f)){if(Array.isArray(p))throw s.errors.Error("E4007");f=m[p]=String(new a.default)}else if(void 0!==t[w(e,t,f)])return v(u,c,"E4008")}else f=m;if(l>=0?t.splice(l,0,m):t.push(m),g(t,f,m),!u)return(0,d.trivialPromise)((0,o.default)().useLegacyStoreResult?n:m,f)}function b(e,t,n,i,o){var a=w(e,t,n);return a>-1&&(t.splice(a,1),g(t,n,null)),i?a<0?v(i,o,"E4009"):void 0:(0,d.trivialPromise)(n)}function w(e,t,n){var i=e.key();if(!function(e,t){return!e._dataByKeyMap||e._dataByKeyMap[JSON.stringify(t)]}(t,n))return-1;for(var o=0,a=t.length;o<a;o++)if((0,d.keysEqual)(i,e.keyOf(t[o]),n))return o;return-1}},88036:function(e,t,n){t.default=void 0;var i=f(n(68374)),o=n(16454),a=n(60637),r=n(35922),s=f(n(80209)),l=n(18438),u=f(n(67403)),d=f(n(35042)),c=f(n(99236)),h=n(62754);function f(e){return e&&e.__esModule?e:{default:e}}var p="load";function g(e){return e&&(0,r.isFunction)(e.then)}function m(e){return(new h.Deferred).resolve(e).promise()}function _(e,t){if(!(0,r.isFunction)(t))throw l.errors.Error("E4011",e)}function v(e){throw l.errors.Error("E4012",e)}function y(e){function t(e){var t=e[0],n=e[1];return t&&t.getResponseHeader?(0,o.errorMessageFromXhr)(t,n):null}return function(n){var i;(i=n instanceof Error?n:new Error(t(arguments)||n&&String(n)||"Unknown error")).message!==o.XHR_ERROR_UNLOAD&&e.reject(i)}}function x(e,t){var n,i=e._loadFunc;return _(p,i),n=i.apply(e,[t]),Array.isArray(n)?n=m(n):null==n?n=m([]):g(n)||v(p),(0,h.fromPromise)(n)}function b(e,t,n,i){if(t.__rawData)i(t.__rawData);else{var o=t.__rawDataPromise||x(t,n);t._cacheRawData&&(t.__rawDataPromise=o),o.always((function(){delete t.__rawDataPromise})).done((function(e){t._cacheRawData&&(t.__rawData=e),i(e)})).fail(y(e))}}function w(e,t,n,o){var a={};"userData"in(n=n||{})&&(a.userData=n.userData),b(e,t,a,(function(a){var r,s,l,u,f=(0,d.default)(a,{errorHandler:t._errorHandler}),p=[];o||((r=c.default.queryByOptions(f,n))===f?l=a.slice(0):p.push(r.enumerate().done((function(e){l=e})))),(n.requireTotalCount||o)&&((s=c.default.queryByOptions(f,n,!0))===f?u=a.length:p.push(s.count().done((function(e){u=e})))),h.when.apply(i.default,p).done((function(){o?e.resolve(u):n.requireTotalCount?e.resolve(l,{totalCount:u}):e.resolve(l)})).fail((function(t){e.reject(t)}))}))}var C=u.default.inherit({ctor:function(e){e=e||{},this.callBase(e),this._useDefaultSearch=!!e.useDefaultSearch||"raw"===e.loadMode,this._loadMode=e.loadMode,this._cacheRawData=!1!==e.cacheRawData,this._loadFunc=e.load,this._totalCountFunc=e.totalCount,this._byKeyFunc=e.byKey,this._insertFunc=e.insert,this._updateFunc=e.update,this._removeFunc=e.remove},createQuery:function(){throw l.errors.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(e){var t=new h.Deferred;return"raw"!==this._loadMode||this._totalCountFunc?(function(e,t){var n,i=e._totalCountFunc;if(!(0,r.isFunction)(i))throw l.errors.Error("E4021");return g(n=i.apply(e,[t]))||(n=Number(n),isFinite(n)||v("totalCount"),n=m(n)),(0,h.fromPromise)(n)}(this,e).done((function(e){t.resolve(Number(e))})).fail(y(t)),t=this._addFailHandlers(t)):w(t,this,e,!0),t.promise()},_pushImpl:function(e){this.__rawData&&(0,a.applyBatch)({keyInfo:this,data:this.__rawData,changes:e})},_loadImpl:function(e){var t=new h.Deferred;return"raw"===this._loadMode?w(t,this,e,!1):(x(this,e).done((function(e,n){t.resolve(e,n)})).fail(y(t)),t=this._addFailHandlers(t)),t.promise()},_byKeyImpl:function(e,t){var n=new h.Deferred;return this._byKeyViaLoad()?(this._requireKey(),function(e,t,n){b(e,t,{},(function(i){for(var a,r=t.key(),s=0,u=i.length;s<u;s++)if(a=i[s],(0,o.keysEqual)(r,t.keyOf(i[s]),n))return void e.resolve(a);e.reject(l.errors.Error("E4009"))}))}(n,this,e)):function(e,t,n){var i,o=e._byKeyFunc;return _("byKey",o),g(i=o.apply(e,[t,n]))||(i=m(i)),(0,h.fromPromise)(i)}(this,e,t).done((function(e){n.resolve(e)})).fail(y(n)),n.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(e){var t,n=this,i=n._insertFunc,o=new h.Deferred;return _("insert",i),g(t=i.apply(n,[e]))||(t=m(t)),(0,h.fromPromise)(t).done((function(t){(0,s.default)().useLegacyStoreResult?o.resolve(e,t):o.resolve(t||e,n.keyOf(t))})).fail(y(o)),o.promise()},_updateImpl:function(e,t){var n,i=this._updateFunc,o=new h.Deferred;return _("update",i),g(n=i.apply(this,[e,t]))||(n=m(n)),(0,h.fromPromise)(n).done((function(n){(0,s.default)().useLegacyStoreResult?o.resolve(e,t):o.resolve(n||t,e)})).fail(y(o)),o.promise()},_removeImpl:function(e){var t,n=this._removeFunc,i=new h.Deferred;return _("remove",n),g(t=n.apply(this,[e]))||(t=m()),(0,h.fromPromise)(t).done((function(){i.resolve(e)})).fail(y(i)),i.promise()}});t.default=C,e.exports=t.default,e.exports.default=t.default},33546:function(e,t,n){t.default=void 0;var i=n(85273).DataSource;t.default=i,e.exports=t.default,e.exports.default=t.default},85273:function(e,t,n){t.DataSource=void 0;var i=v(n(38377)),o=n(13306),a=n(20576),r=n(95479),s=n(35922),l=n(16454),u=n(60637),d=v(n(88036)),c=n(80566),h=n(18438),f=n(89386),p=n(59504),g=n(62754),m=v(n(88665)),_=n(9234);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var x=i.default.inherit({ctor:function(e){var t,n=this;if(e=(0,_.normalizeDataSourceOptions)(e),this._eventsStrategy=new c.EventsStrategy(this,{syncStrategy:!0}),this._store=e.store,this._changedTime=0,0!==e.pushAggregationTimeout){var i,o,a=void 0===e.pushAggregationTimeout?function(){return 5*n._changedTime}:e.pushAggregationTimeout,s=(0,l.throttleChanges)((function(e){i.resolve(),g.when.apply(void 0,function(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o)).done((function(){return n._onPush(e)})),o=void 0,i=void 0}),a);this._onPushHandler=function(e){n._aggregationTimeoutId=s(e.changes),i||(i=new g.Deferred),o=e.waitFor,e.waitFor.push(i.promise())},this._store.on("beforePush",this._onPushHandler)}else this._onPushHandler=function(e){return n._onPush(e)},this._store.on("push",this._onPushHandler);this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,this._reshapeOnPush=null!==(t=e.reshapeOnPush)&&void 0!==t&&t,(0,r.each)(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],(function(t,i){i in e&&n.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])})),this._operationManager=new m.default,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,(0,s.isDefined)(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){var e;this._store.off("beforePush",this._onPushHandler),this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),delete this._store,delete this._items,null===(e=this._delayedLoadTask)||void 0===e||e.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(e){var t={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),(0,r.each)(n,(function(){t[this]=e[this]})),t},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(e){if(!(0,s.isNumeric)(e))return this._pageIndex;this._pageIndex=e,this._isLastPage=!this._paginate},paginate:function(e){if(!(0,s.isBoolean)(e))return this._paginate;this._paginate!==e&&(this._paginate=e,this.pageIndex(0))},pageSize:function(e){if(!(0,s.isNumeric)(e))return this._pageSize;this._pageSize=e},isLastPage:function(){return this._isLastPage},generateStoreLoadOptionAccessor:function(e){var t=this;return function(n){var i=(0,_.normalizeStoreLoadOptionAccessorArguments)(n);if(void 0===i)return t._storeLoadOptions[e];t._storeLoadOptions[e]=i}},sort:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.generateStoreLoadOptionAccessor("sort")(t)},filter:function(){var e=(0,_.normalizeStoreLoadOptionAccessorArguments)(arguments);if(void 0===e)return this._storeLoadOptions.filter;this._storeLoadOptions.filter=e,this.pageIndex(0)},group:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.generateStoreLoadOptionAccessor("group")(t)},select:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.generateStoreLoadOptionAccessor("select")(t)},requireTotalCount:function(e){if(!(0,s.isBoolean)(e))return this._storeLoadOptions.requireTotalCount;this._storeLoadOptions.requireTotalCount=e},searchValue:function(e){if(arguments.length<1)return this._searchValue;this._searchValue=e,this.pageIndex(0)},searchOperation:function(e){if(!(0,s.isString)(e))return this._searchOperation;this._searchOperation=e,this.pageIndex(0)},searchExpr:function(e){var t=arguments.length;if(0===t)return this._searchExpr;t>1&&(e=[].slice.call(arguments)),this._searchExpr=e,this.pageIndex(0)},store:function(){return this._store},key:function(){var e;return null===(e=this._store)||void 0===e?void 0:e.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return(0,p.create)()},_changeLoadingCount:function(e){var t=this.isLoading();this._loadingCount+=e;var n=this.isLoading();t^n&&this._eventsStrategy.fireEvent("loadingChanged",[n])},_scheduleLoadCallbacks:function(e){var t=this;this.beginLoading(),e.always((function(){t.endLoading()}))},_scheduleFailCallbacks:function(e){var t=this;e.fail((function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];n[0]!==_.CANCELED_TOKEN&&t._eventsStrategy.fireEvent("loadError",n)}))},_fireChanged:function(e){var t=new Date;this._eventsStrategy.fireEvent("changed",e),this._changedTime=new Date-t},_scheduleChangedCallbacks:function(e){var t=this;e.done((function(){return t._fireChanged()}))},loadSingle:function(e,t){var n=this,i=new g.Deferred,o=this.key(),a=this._store,r=this._createStoreLoadOptions(),l=function(e){!(0,s.isDefined)(e)||(0,f.isEmpty)(e)?i.reject(new h.errors.Error("E4009")):(Array.isArray(e)||(e=[e]),i.resolve(n._applyMapFunction(e)[0]))};this._scheduleFailCallbacks(i),arguments.length<2&&(t=e,e=o),delete r.skip,delete r.group,delete r.refresh,delete r.pageIndex,delete r.searchString;var u=function(){return a instanceof d.default&&!a._byKeyViaLoad()};return(e===o||u()?a.byKey(t,r):(r.take=1,r.filter=r.filter?[r.filter,[e,t]]:[e,t],a.load(r))).fail(i.reject).done(l),i.promise()},load:function(){var e=this,t=new g.Deferred,n=function(){if(!e._disposed&&(0,_.isPending)(t))return e._loadFromStore(i,t)};this._scheduleLoadCallbacks(t),this._scheduleFailCallbacks(t),this._scheduleChangedCallbacks(t);var i=this._createLoadOperation(t);return this._eventsStrategy.fireEvent("customizeStoreLoadOptions",[i]),this._loadQueue.add((function(){return"number"==typeof i.delay?e._delayedLoadTask=(0,a.executeAsync)(n,i.delay):n(),t.promise()})),t.promise({operationId:i.operationId})},_onPush:function(e){var t=this;if(this._reshapeOnPush)this.load();else{this._eventsStrategy.fireEvent("changing",[{changes:e}]);var n=this.group(),i=this.items(),o=0,a=this.paginate()||n?e.filter((function(e){return"update"===e.type})):e;n&&(o=Array.isArray(n)?n.length:1),this._mapFunc&&a.forEach((function(e){"insert"===e.type&&(e.data=t._mapFunc(e.data))})),(0,u.applyBatch)({keyInfo:this.store(),data:i,changes:a,groupCount:o,useInsertIndex:!0}),this._fireChanged([{changes:e}])}},_createLoadOperation:function(e){var t=this,n=this._operationManager.add(e),i=this._createStoreLoadOptions();return e.always((function(){return t._operationManager.remove(n)})),{operationId:n,storeLoadOptions:i}},reload:function(){var e=this.store();return e instanceof d.default&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return this._operationManager.cancel(e)},cancelAll:function(){return this._operationManager.cancelAll()},_addSearchOptions:function(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var e=(0,o.extend)({},this._storeLoadOptions);return this._addSearchOptions(e),this._paginate&&this._pageSize&&(e.skip=this._pageIndex*this._pageSize,e.take=this._pageSize),e.userData=this._userData,e},_addSearchFilter:function(e){var t=this._searchValue,n=this._searchOperation,i=this._searchExpr,o=[];t&&(i||(i="this"),Array.isArray(i)||(i=[i]),(0,r.each)(i,(function(e,i){o.length&&o.push("or"),o.push([i,n,t])})),e.filter?e.filter=[o,e.filter]:e.filter=o)},_loadFromStore:function(e,t){var n=this,i=function(i,a){if(!n._disposed&&(0,_.isPending)(t)){var r=(0,o.extend)((0,_.normalizeLoadResult)(i,a),e);n._eventsStrategy.fireEvent("customizeLoadResult",[r]),(0,g.when)(r.data).done((function(e){r.data=e,n._processStoreLoadResult(r,t)})).fail(t.reject)}};return e.data?(new g.Deferred).resolve(e.data).done(i):this.store().load(e.storeLoadOptions).done(i).fail(t.reject)},_processStoreLoadResult:function(e,t){var n=this,i=e.data,o=e.extra,a=e.storeLoadOptions,r=function(){return n._isLoaded=!0,n._totalCount=isFinite(o.totalCount)?o.totalCount:-1,t.resolve(i,o)};this._disposed||(i=this._applyPostProcessFunction(this._applyMapFunction(i)),(0,s.isPlainObject)(o)||(o={}),this._items=i,(!i.length||!this._paginate||this._pageSize&&i.length<this._pageSize)&&(this._isLastPage=!0),a.requireTotalCount&&!isFinite(o.totalCount)?n.store().totalCount(a).done((function(e){o.totalCount=e,r()})).fail(t.reject):r())},_applyMapFunction:function(e){return this._mapFunc?(0,_.mapDataRespectingGrouping)(e,this._mapFunc,this.group()):e},_applyPostProcessFunction:function(e){return this._postProcessFunc?this._postProcessFunc(e):e},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this}});t.DataSource=x},88665:function(e,t,n){t.default=void 0;var i=n(9234),o=function(){function e(){this._counter=-1,this._deferreds={}}var t=e.prototype;return t.add=function(e){return this._counter++,this._deferreds[this._counter]=e,this._counter},t.remove=function(e){return delete this._deferreds[e]},t.cancel=function(e){return e in this._deferreds&&(this._deferreds[e].reject(i.CANCELED_TOKEN),!0)},t.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--},e}();t.default=o,e.exports=t.default,e.exports.default=t.default},9234:function(e,t,n){t.normalizeStoreLoadOptionAccessorArguments=t.normalizeLoadResult=t.normalizeDataSourceOptions=t.mapDataRespectingGrouping=t.isPending=t.CANCELED_TOKEN=void 0;var i=h(n(37208)),o=h(n(67403)),a=h(n(26562)),r=n(95479),s=h(n(88036)),l=n(13306),u=n(35922),d=n(16454),c=["items"];function h(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}t.CANCELED_TOKEN="canceled",t.isPending=function(e){return"pending"===e.state()},t.normalizeStoreLoadOptionAccessorArguments=function(e){switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)};var p=function(e,t,n){return(0,r.map)(e,(function(e){return e.items,f({},function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c),{items:g(e.items,t-1,n)})}))},g=function(e,t,n){return Array.isArray(e)?t?p(e,t,n):(0,r.map)(e,n):e};t.mapDataRespectingGrouping=function(e,t,n){var i=n?(0,d.normalizeSortingInfo)(n).length:0;return g(e,i,t)},t.normalizeLoadResult=function(e,t){var n;return null!==(n=e)&&void 0!==n&&n.data&&(t=e,e=e.data),Array.isArray(e)||(e=[e]),{data:e,extra:t}};var m=function(e,t){return new s.default({load:function(){return i.default.sendRequest({url:e,dataType:"json"})},loadMode:null==t?void 0:t.fromUrlLoadMode})};t.normalizeDataSourceOptions=function(e,t){var n,i,d;return"string"==typeof e&&(e={paginate:!1,store:m(e,t)}),void 0===e&&(e=[]),void 0===(e=Array.isArray(e)||e instanceof o.default?{store:e}:(0,l.extend)({},e)).store&&(e.store=[]),n=e.store,"load"in e?n=function(e){var t={};return(0,r.each)(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],(function(){t[this]=e[this],delete e[this]})),new s.default(t)}(e):Array.isArray(n)?n=new a.default(n):(0,u.isPlainObject)(n)&&(d=(i=(0,l.extend)({},n)).type,delete i.type,n=o.default.create(d,i)),e.store=n,e}},8162:function(e,t,n){t.default=void 0;var i,o,a,r=(i=n(17381))&&i.__esModule?i:{default:i},s=(0,n(58201).getWindow)(),l=function(e){var t;this.config=e,o="ms-appx:"===s.location.protocol,t=s.location.hostname,a=/^(localhost$|127\.)/i.test(t)};l.prototype={urlFor:function(e){var t=this.config[e];if(!t)throw r.default.Error("E0006");return t.production&&(o&&!Debug.debuggerEnabled||!o&&!a)?t.production:t.local}};var u=l;t.default=u,e.exports=t.default,e.exports.default=t.default},18438:function(e,t,n){t.setErrorHandler=t.handleError=t.errors=t.errorHandler=void 0;var i=a(n(95640)),o=a(n(17381));function a(e){return e&&e.__esModule?e:{default:e}}var r=(0,i.default)(o.default.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",E4024:"String function {0} cannot be used with the data field {1} of type {2}.",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"});t.errors=r;var s=null;t.errorHandler=s,t.handleError=function(e){var t;null===(t=s)||void 0===t||t(e)},t.setErrorHandler=function(e){return t.errorHandler=s=e}},82837:function(e,t,n){t.default=void 0;var i=u(n(55994)),o=u(n(73349)),a=n(58201),r=u(n(38377)),s=n(18438),l=u(n(26562));function u(e){return e&&e.__esModule?e:{default:e}}var d=(0,a.getWindow)(),c=r.default.abstract,h={dom:r.default.inherit({ctor:function(e,t){this._store=e,this._dirty=!!t.data,this.save();var n=this._immediate=t.immediate,a=Math.max(100,t.flushInterval||1e4);if(!n){var r=this.save.bind(this);setInterval(r,a),i.default.on(d,"beforeunload",r),d.cordova&&o.default.listen(o.default.getDocument(),"pause",r,!1)}},notifyChanged:function(){this._dirty=!0,this._immediate&&this.save()},load:function(){this._store._array=this._loadImpl(),this._dirty=!1},save:function(){this._dirty&&(this._saveImpl(this._store._array),this._dirty=!1)},_loadImpl:c,_saveImpl:c}).inherit({ctor:function(e,t){var n=t.name;if(!n)throw s.errors.Error("E4013");this._key="dx-data-localStore-"+n,this.callBase(e,t)},_loadImpl:function(){var e=d.localStorage.getItem(this._key);return e?JSON.parse(e):[]},_saveImpl:function(e){e.length?d.localStorage.setItem(this._key,JSON.stringify(e)):d.localStorage.removeItem(this._key)}})},f=l.default.inherit({ctor:function(e){e="string"==typeof e?{name:e}:e||{},this.callBase(e),this._backend=new h[e.backend||"dom"](this,e),this._backend.load()},clear:function(){this.callBase(),this._backend.notifyChanged()},_insertImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))},_updateImpl:function(e,t){var n=this._backend;return this.callBase(e,t).done(n.notifyChanged.bind(n))},_removeImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))}},"local");t.default=f,e.exports=t.default,e.exports.default=t.default},47256:function(e,t,n){t.default=void 0;var i=h(n(38377)),o=n(13306),a=n(35922),r=n(95479),s=n(18438),l=h(n(341)),u=h(n(63081)),d=n(77869),c=n(62754);function h(e){return e&&e.__esModule?e:{default:e}}n(54263);var f=i.default.inherit({ctor:function(e){var t=this;this._requestDispatcher=new u.default(e),this._errorHandler=e.errorHandler,(0,r.each)(e.entities||[],(function(n,i){t[n]=new l.default((0,o.extend)({},e,{url:"".concat(t._requestDispatcher.url,"/").concat(encodeURIComponent(i.name||n))},i))}))},get:function(e,t){return this.invoke(e,t,"GET")},invoke:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"POST";n=n.toLowerCase();var i,o=new c.Deferred,r="".concat(this._requestDispatcher.url,"/").concat(encodeURIComponent(e));return 4===this.version()&&("get"===n?(r=(0,d.formatFunctionInvocationUrl)(r,(0,d.escapeServiceOperationParams)(t,this.version())),t=null):"post"===n&&(i=t,t=null)),(0,c.when)(this._requestDispatcher.sendRequest(r,n,(0,d.escapeServiceOperationParams)(t,this.version()),i)).done((function(t){(0,a.isPlainObject)(t)&&e in t&&(t=t[e]),o.resolve(t)})).fail(this._errorHandler).fail(s.handleError).fail(o.reject),o.promise()},objectLink:function(e,t){var n=this[e];if(!n)throw s.errors.Error("E4015",e);return(0,a.isDefined)(t)?{__metadata:{uri:n._byKeyUrl(t)}}:null},version:function(){return this._requestDispatcher.version}});t.default=f,e.exports=t.default,e.exports.default=t.default},54263:function(e,t,n){t.odata=void 0;var i=n(35922),o=n(95479),a=c(n(80209)),r=n(13306),s=c(n(16135)),l=n(77869),u=n(18438),d=n(16454);function c(e){return e&&e.__esModule?e:{default:e}}var h,f,p,g,m,_,v,y,x,b,w,C,S=["contains","notcontains","startswith","endswith"],k=(m=function(e,t){return function(n,i){var o=[e,"("];return f&&(n=-1===n.indexOf("tolower(")?"tolower(".concat(n,")"):n,i=i.toLowerCase()),t?o.push(i,",",n):o.push(n,",",i),o.push(")"),o.join("")}},_={"=":(g=function(e){return function(t,n){return"".concat(t," ").concat(e," ").concat(n)}})("eq"),"<>":g("ne"),">":g("gt"),">=":g("ge"),"<":g("lt"),"<=":g("le"),startswith:m("startswith"),endswith:m("endswith")},v=(0,r.extend)({},_,{contains:m("substringof",!0),notcontains:m("not substringof",!0)}),y=(0,r.extend)({},_,{contains:m("contains"),notcontains:m("not contains")}),x=function(e){var t,n,i=(e=(0,d.normalizeBinaryCriterion)(e))[1],o=e[0],a=p&&p[o];if(a&&(n=i,S.some((function(e){return e===n})))&&"String"!==a)throw new u.errors.Error("E4024",i,o,a);var r=(4===h?y:v)[i.toLowerCase()];if(!r)throw u.errors.Error("E4003",i);var s=e[2];return null!==(t=p)&&void 0!==t&&t[o]&&(s=(0,l.convertPrimitiveValue)(p[o],s)),r((0,l.serializePropName)(o),(0,l.serializeValue)(s,h))},b=function(e){var t=e[0],n=C(e[1]);if("!"===t)return"not (".concat(n,")");throw u.errors.Error("E4003",t)},w=function(e){var t,n,i=[];return(0,o.each)(e,(function(e,o){if(Array.isArray(o)){if(i.length>1&&t!==n)throw new u.errors.Error("E4019");i.push("(".concat(C(o),")")),t=n,n="and"}else n=(0,d.isConjunctiveOperator)(this)?"and":"or"})),i.join(" ".concat(t," "))},C=function(e){return Array.isArray(e[0])?w(e):(0,d.isUnaryOperation)(e)?b(e):x(e)},function(e,t,n,i){return p=n,f=null!=i?i:(0,a.default)().oDataFilterToLower,h=t,C(e)}),D=function(e){var t,n,o,a,s=[],u=[],d=e.expand,c=e.version||2,h=function(){return n||void 0!==o},f=function e(t){for(var n=0;n<t.length;n++){if((0,i.isFunction)(t[n]))return!0;if(Array.isArray(t[n])&&e(t[n]))return!0}return!1},p=function(){var i={};if(a||(s.length&&(i.$orderby=s.join(",")),n&&(i.$skip=n),void 0!==o&&(i.$top=o),i.$select=(0,l.generateSelect)(c,t)||void 0,i.$expand=(0,l.generateExpand)(c,d,t)||void 0),u.length){var r=u.length<2?u[0]:u,h=null==e?void 0:e.fieldTypes,f=null==e?void 0:e.filterToLower;i.$filter=k(r,c,h,f)}return a&&(i.$top=0),(e.requireTotalCount||a)&&(4!==c?i.$inlinecount="allpages":i.$count="true"),i};return{optimize:function(e){for(var t=-1,n=0;n<e.length;n++)if("select"===e[n].name){t=n;break}if(!(t<0)&&(0,i.isFunction)(e[t].args[0])){var o=e[1+t];o&&"slice"===o.name&&(e[1+t]=e[t],e[t]=o)}},exec:function(t){return(0,l.sendRequest)(c,{url:t,params:(0,r.extend)(p(),null==e?void 0:e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:a,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes,isPaged:isFinite(o)})},multiSort:function(e){var t;if(h())return!1;for(var n=0;n<e.length;n++){var i=e[n][0],o=!!e[n][1],a=void 0;if("string"!=typeof i)return!1;a=(0,l.serializePropName)(i),o&&(a+=" desc"),(t=t||[]).push(a)}s=t},slice:function(e,t){if(h())return!1;n=e,o=t},filter:function(e){return!h()&&(Array.isArray(e)||(e=[].slice.call(arguments)),!f(e)&&(u.length&&u.push("and"),void u.push(e)))},select:function(e){if(t||(0,i.isFunction)(e))return!1;Array.isArray(e)||(e=[].slice.call(arguments)),t=e},count:function(){return a=!0}}};s.default.odata=D;var I=D;t.odata=I},63081:function(e,t,n){t.default=void 0;var i=n(77869);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(54263);var a=function(){function e(e){e=e||{},this._url=String(e.url).replace(/\/+$/,""),this._beforeSend=e.beforeSend,this._jsonp=e.jsonp,this._version=e.version||2,this._withCredentials=e.withCredentials,this._deserializeDates=e.deserializeDates,this._filterToLower=e.filterToLower}var t,n;return e.prototype.sendRequest=function(e,t,n,o){return(0,i.sendRequest)(this.version,{url:e,method:t,params:n||{},payload:o},{beforeSend:this._beforeSend,jsonp:this._jsonp,withCredentials:this._withCredentials,deserializeDates:this._deserializeDates})},t=e,(n=[{key:"version",get:function(){return this._version}},{key:"beforeSend",get:function(){return this._beforeSend}},{key:"url",get:function(){return this._url}},{key:"jsonp",get:function(){return this._jsonp}},{key:"filterToLower",get:function(){return this._filterToLower}}])&&o(t.prototype,n),e}();t.default=a,e.exports=t.default,e.exports.default=t.default},341:function(e,t,n){t.default=void 0;var i=n(35922),o=c(n(80209)),a=n(77869),r=n(18438),s=c(n(96687)),l=c(n(67403)),u=c(n(63081)),d=n(62754);function c(e){return e&&e.__esModule?e:{default:e}}n(54263);var h=l.default.inherit({ctor:function(e){this.callBase(e),this._requestDispatcher=new u.default(e);var t=this.key(),n=e.fieldTypes,i=e.keyType;if(i){var o="string"==typeof i;t||(t=o?"5d46402c-7899-4ea9-bd81-8b73c47c7683":Object.keys(i),this._legacyAnonymousKey=t),o&&(i=function(e,t){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t)}(t,i)),n=function(e,t){var n={};for(var i in e)n[i]=e[i];for(var o in t)o in n?n[o]!==t[o]&&r.errors.log("W4001",o):n[o]=t[o];return n}(n,i)}this._fieldTypes=n||{},2===this.version()?this._updateMethod="MERGE":this._updateMethod="PATCH"},_customLoadOptions:function(){return["expand","customQueryParams"]},_byKeyImpl:function(e,t){var n={};return t&&(n.$expand=(0,a.generateExpand)(this.version(),t.expand,t.select)||void 0,n.$select=(0,a.generateSelect)(this.version(),t.select)||void 0),this._requestDispatcher.sendRequest(this._byKeyUrl(e),"GET",n)},createQuery:function(e){var t,n,o={adapter:"odata",beforeSend:this._requestDispatcher.beforeSend,errorHandler:this._errorHandler,jsonp:this._requestDispatcher.jsonp,version:this._requestDispatcher.version,withCredentials:this._requestDispatcher._withCredentials,expand:null==e?void 0:e.expand,requireTotalCount:null==e?void 0:e.requireTotalCount,deserializeDates:this._requestDispatcher._deserializeDates,fieldTypes:this._fieldTypes};if(n=null!==(t=null==e?void 0:e.urlOverride)&&void 0!==t?t:this._requestDispatcher.url,(0,i.isDefined)(this._requestDispatcher.filterToLower)&&(o.filterToLower=this._requestDispatcher.filterToLower),null!=e&&e.customQueryParams){var r=(0,a.escapeServiceOperationParams)(null==e?void 0:e.customQueryParams,this.version());4===this.version()?n=(0,a.formatFunctionInvocationUrl)(n,r):o.params=r}return(0,s.default)(n,o)},_insertImpl:function(e){var t=this;this._requireKey();var n=new d.Deferred;return(0,d.when)(this._requestDispatcher.sendRequest(this._requestDispatcher.url,"POST",null,e)).done((function(i){return n.resolve(i&&!(0,o.default)().useLegacyStoreResult?i:e,t.keyOf(i))})).fail(n.reject),n.promise()},_updateImpl:function(e,t){var n=new d.Deferred;return(0,d.when)(this._requestDispatcher.sendRequest(this._byKeyUrl(e),this._updateMethod,null,t)).done((function(i){return(0,o.default)().useLegacyStoreResult?n.resolve(e,t):n.resolve(i||t,e)})).fail(n.reject),n.promise()},_removeImpl:function(e){var t=new d.Deferred;return(0,d.when)(this._requestDispatcher.sendRequest(this._byKeyUrl(e),"DELETE")).done((function(){return t.resolve(e)})).fail(t.reject),t.promise()},_convertKey:function(e){var t=e,n=this._fieldTypes,i=this.key()||this._legacyAnonymousKey;if(Array.isArray(i)){t={};for(var o=0;o<i.length;o++){var r=i[o];t[r]=(0,a.convertPrimitiveValue)(n[r],e[r])}}else n[i]&&(t=(0,a.convertPrimitiveValue)(n[i],e));return t},_byKeyUrl:function(e){var t=this._requestDispatcher.url,n=this._convertKey(e);return"".concat(t,"(").concat(encodeURIComponent((0,a.serializeKey)(n,this.version())),")")},version:function(){return this._requestDispatcher.version}},"odata");t.default=h,e.exports=t.default,e.exports.default=t.default},77869:function(e,t,n){t.serializeValue=t.serializePropName=t.serializeKey=t.sendRequest=t.keyConverters=t.generateSelect=t.generateExpand=t.formatFunctionInvocationUrl=t.escapeServiceOperationParams=t.convertPrimitiveValue=t.EdmLiteral=void 0;var i=p(n(38377)),o=n(13306),a=n(35922),r=n(95479),s=p(n(37208)),l=p(n(73176)),u=n(20576),d=n(62754),c=n(18438),h=n(16454),f=n(68752);function p(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var m=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,_=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,v=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,y="application/json;odata=verbose",x=function(e){return"string"===(0,a.type)(e)?e.split():e},b=function(e){return/\./.test(e)},w=function(e,t,n){for(e=String(e);e.length<t;)e=n?"".concat(e,"0"):"0".concat(e);return e},C=function(e,t,n){var i=[],o=function(e){return w(e,2)};return i.push(e.getFullYear()),i.push("-"),i.push(o(e.getMonth()+1)),i.push("-"),i.push(o(e.getDate())),t&&e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1||(i.push("T"),i.push(o(e.getHours())),i.push(":"),i.push(o(e.getMinutes())),i.push(":"),i.push(o(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(w(e.getMilliseconds(),3))),n||i.push("Z")),i.join("")},S=function(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),o=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);if(t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(o)&&o.length){t.setHours(Number(o[1])),t.setMinutes(Number(o[2])),t.setSeconds(Number(o[3]));var a=(o[4]||"").slice(0,3);a=w(a,3,!0),t.setMilliseconds(Number(a))}return t},k=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")};t.sendRequest=function e(t,n,i){var a=i.deserializeDates,r=i.fieldTypes,l=i.countOnly,u=i.isPaged,f=new d.Deferred,p=function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=function(t){return JSON.stringify(t,(function(t,n){if(!(this[t]instanceof Date))return n;switch(n=C(this[t]),e){case 2:return n.substr(0,n.length-1);case 3:case 4:return n;default:throw c.errors.Error("E4002")}}))};t=(0,o.extend)({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t),null===(n=i.beforeSend)||void 0===n||n.call(i,t);var r=t,s=r.async,l=r.timeout,u=r.headers,d=t,h=d.url,f=d.method,p=i.jsonp,g=i.withCredentials,m="get"===(f=(f||"get").toLowerCase()),_=m&&p,v=(0,o.extend)({},t.params),x=m?v:a(t.payload),b=!m&&k(v),w=!m&&y;return b&&(h+=(h.indexOf("?")>-1?"&":"?")+b),_&&(x.$format="json"),{url:h,data:x,dataType:_?"jsonp":"json",jsonp:_&&"$callback",method:f,async:s,timeout:l,headers:u,contentType:w,accepts:{json:[y,"text/plain"].join()},xhrFields:{withCredentials:g}}}(t,n,i);return s.default.sendRequest(p).always((function(n,o){var s=D(n,o,{deserializeDates:a,fieldTypes:r},p),d=s.error,g=s.data,m=s.count,_=s.nextUrl;if(d)d.message!==h.XHR_ERROR_UNLOAD&&f.reject(d);else if(l)isFinite(m)?f.resolve(m):f.reject(new c.errors.Error("E4018"));else if(_&&!u)/^(?:[a-z]+:)?\/\//i.test(_)||(_=function(e,t){var n,i,o,a=(i=e,o=i.indexOf("?"),o>-1?i.substr(0,o):i).split("/"),r=t.split("/");for(a.pop();r.length;)".."===(n=r.shift())?a.pop():a.push(n);return a.join("/")}(p.url,_)),e(t,{url:_},i).fail(f.reject).done((function(e){return f.resolve(g.concat(e))}));else{var v=isFinite(m)?{totalCount:m}:void 0;f.resolve(g,v)}})),f.promise()};var D=function(e,t,n,i){var r=function(e,t,n){var i,a,r,s;if("nocontent"===t)return null;var l="Unknown error",u=e,d=200,c={requestOptions:n};if("success"!==t){var f=e.status,p=e.responseText;d=f,l=(0,h.errorMessageFromXhr)(e,t);try{u=JSON.parse(p)}catch(e){}}var g=(null===(i=u)||void 0===i?void 0:i.then)||(null===(a=u)||void 0===a?void 0:a.error)||(null===(r=u)||void 0===r?void 0:r["odata.error"])||(null===(s=u)||void 0===s?void 0:s["@odata.error"]);if(g){l=function(e){var t,n,i=e;"message"in e&&(t=(null===(n=e.message)||void 0===n?void 0:n.value)||e.message);for(;(i=i.innererror||i.internalexception)&&(t=i.message,!i.internalexception||-1!==t.indexOf("inner exception")););return t}(g)||l,c.errorDetails=g,200===d&&(d=500);var m=Number(g.code);isFinite(m)&&m>=400&&(d=m)}return d>=400||0===d?(c.httpStatus=d,(0,o.extend)(Error(l),c)):null}(e,t,i);if(r)return{error:r};if(!(0,a.isPlainObject)(e))return{data:e};var s="d"in e&&(Array.isArray(e.d)||(0,a.isObject)(e.d))?I(e,t):T(e,t);return A(s,n),s},I=function(e){var t,n=e.d;return(0,a.isDefined)(n)?{data:null!==(t=n.results)&&void 0!==t?t:n,nextUrl:n.__next,count:parseInt(n.__count,10)}:{error:Error("Malformed or unsupported JSON response received")}},T=function(e){var t;return{data:null!==(t=e.value)&&void 0!==t?t:e,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},E=i.default.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}});t.EdmLiteral=E;var A=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.each)(t,(function(i,o){if(null!==o&&"object"===g(o))"results"in o&&(t[i]=o.results),e(t[i],n);else if("string"==typeof o){var a=n.fieldTypes,r=n.deserializeDates;if((!a||"String"!==a[i])&&m.test(o)&&(t[i]=new l.default(o)),!1!==r)if(o.match(_)){var s=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(s.valueOf()+60*s.getTimezoneOffset()*1e3)}else v.test(o)&&(t[i]=new Date(S(t[i]).valueOf()))}}))},O=function(e){return e instanceof E?e.valueOf():e.replace(/\./g,"/")};t.serializePropName=O;var P=function(e){return e instanceof Date?"datetime'".concat(C(e,!0,!0),"'"):e instanceof l.default?"guid'".concat(e,"'"):e instanceof E?e.valueOf():"string"==typeof e?function(e){return"'".concat(e.replace(/'/g,"''"),"'")}(e):String(e)},M=function(e,t){switch(t){case 2:case 3:return P(e);case 4:return function e(t){return t instanceof Date?C(t,!1,!1):t instanceof l.default?t.valueOf():Array.isArray(t)?"[".concat(t.map((function(t){return e(t)})).join(","),"]"):P(t)}(e);default:throw c.errors.Error("E4002")}};t.serializeValue=M,t.serializeKey=function(e,t){if((0,a.isPlainObject)(e)){var n=[];return(0,r.each)(e,(function(e,i){return n.push("".concat(O(e),"=").concat(M(i,t)))})),n.join()}return M(e,t)};var R={String:function(e){return"".concat(e)},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof E?e:new E("".concat(e,"L"))},Guid:function(e){return e instanceof l.default?e:new l.default(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof E?e:new E(e+"f")},Decimal:function(e){return e instanceof E?e:new E(e+"m")}};t.keyConverters=R,t.convertPrimitiveValue=function(e,t){if(null===t)return null;var n=R[e];if(!n)throw c.errors.Error("E4014",e);return n(t)},t.generateSelect=function(e,t){if(t)return e<4?O(t.join()):(0,u.grep)(t,b,!0).join()};var B=function(e){var t=[];return(0,r.each)(e,(function(e,n){return t.push("".concat(e).concat(function e(t){var n="",i=[],o=[];return(0,r.each)(t,(function(t,n){Array.isArray(n)&&[].push.apply(i,n),(0,a.isPlainObject)(n)&&o.push("".concat(t).concat(e(n)))})),(i.length||o.length)&&(n+="(",i.length&&(n+="$select=".concat((0,r.map)(i,O).join())),o.length&&(i.length&&(n+=";"),n+="$expand=".concat((0,r.map)(o,O).join())),n+=")"),n}(n)))})),t.join()},V=function(e,t,n){return(0,r.each)(e,(function(e,i){return function e(t,n,i){var o=i(n,t.shift(),t);!1!==o&&e(t,o,i)}(i.split("."),t,n)}))};t.generateExpand=function(e,t,n){return e<4?function(e,t){var n={};return e&&(0,r.each)(x(e),(function(){n[O(this)]=1})),t&&(0,r.each)(x(t),(function(){var e=this.split(".");e.length<2||(e.pop(),n[O(e.join("."))]=1)})),(0,r.map)(n,(function(e,t){return t})).join()}(t,n):function(e,t){var n={};if(e||t)return e&&V(x(e),n,(function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]})),t&&V((0,u.grep)(x(t),b),n,(function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)})),B(n)}(t,n)},t.formatFunctionInvocationUrl=function(e,t){return(0,f.format)("{0}({1})",e,(0,r.map)(t||{},(function(e,t){return(0,f.format)("{0}={1}",t,e)})).join(","))},t.escapeServiceOperationParams=function(e,t){if(!e)return e;var n={};return(0,r.each)(e,(function(e,i){n[e]=M(i,t)})),n}},96687:function(e,t,n){t.default=void 0;var i=n(77549);t.default=function(){var e=Array.isArray(arguments[0])?"array":"remote";return i.queryImpl[e].apply(this,arguments)},e.exports=t.default,e.exports.default=t.default},16135:function(e,t){t.default=void 0,t.default={},e.exports=t.default,e.exports.default=t.default},77549:function(e,t,n){t.queryImpl=void 0;var i=a(n(35042)),o=a(n(41428));function a(e){return e&&e.__esModule?e:{default:e}}var r={array:i.default,remote:o.default};t.queryImpl=r},41428:function(e,t,n){t.default=void 0;var i=u(n(16135)),o=n(18438),a=n(95479),r=n(35922),s=n(62754),l=u(n(35042));function u(e){return e&&e.__esModule?e:{default:e}}t.default=function e(t,n,u){u=u||[],n=n||{};var d=function(e,t){return{name:e,args:t}},c=function(e){var c,h,f,p,g,m,_,v=new s.Deferred,y=function(e){var t=n.errorHandler;t&&t(e),(0,o.handleError)(e),v.reject(e)};function x(e){switch(e.name){case"sortBy":return g=[e.args],!0;case"thenBy":if(!g)throw o.errors.Error("E4004");return g.push(e.args),!0}return!1}try{c=n.adapter,(0,r.isFunction)(c)||(c=i.default[c]),h=c(n),f=[].concat(u).concat(e);var b=h.optimize;for(b&&b(f);f.length;){if(!x(p=f[0])){if(g){f.unshift(d("multiSort",[g])),g=null;continue}if("enumerate"!==String(p.name)&&(!h[p.name]||!1===h[p.name].apply(h,p.args)))break}f.shift()}m=f[0],_=[],m&&"multiSort"===m.name&&(f.shift(),(0,a.each)(m.args[0],(function(){_.push(d(_.length?"thenBy":"sortBy",this))}))),f=_.concat(f),h.exec(t).done((function(e,t){if(f.length){var i=(0,l.default)(e,{errorHandler:n.errorHandler});(0,a.each)(f,(function(){i=i[this.name].apply(i,this.args)})),i.done(v.resolve).fail(v.reject)}else v.resolve(e,t)})).fail(y)}catch(e){y(e)}return v.promise()},h={};return(0,a.each)(["sortBy","thenBy","filter","slice","select","groupBy"],(function(){var i=String(this);h[i]=function(){return e(t,n,u.concat(d(i,arguments)))}})),(0,a.each)(["count","min","max","sum","avg","aggregate","enumerate"],(function(){var e=String(this);h[e]=function(){return c.call(this,d(e,arguments))}})),h},e.exports=t.default,e.exports.default=t.default},99236:function(e,t,n){t.default=void 0;var i,o=n(20576),a=n(13306),r=n(95479),s=(i=n(35042))&&i.__esModule?i:{default:i},l=n(16454);function u(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(e=e.select((function(e){return(0,a.extend)({},e,{items:u((0,s.default)(e.items),t.slice(1)).toArray()})}))),e}function d(e,t){var n=[];return(0,r.each)(e,(function(e,i){(0,o.grep)(t,(function(e){return i.selector===e.selector})).length<1&&n.push(i)})),n.concat(t)}var c={multiLevelGroup:u,arrangeSortingInfo:d,queryByOptions:function(e,t,n){var i=(t=t||{}).filter;if(i&&(e=e.filter(i)),n)return e;var o=t.sort,a=t.select,s=t.group,c=t.skip,h=t.take;return s&&((s=(0,l.normalizeSortingInfo)(s)).keepInitialKeyOrder=!!t.group.keepInitialKeyOrder),(o||s)&&(o=(0,l.normalizeSortingInfo)(o||[]),s&&!s.keepInitialKeyOrder&&(o=d(s,o)),(0,r.each)(o,(function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)}))),a&&(e=e.select(a)),s&&(e=u(e,s)),(h||c)&&(e=e.slice(c||0,h)),e}};t.default=c,e.exports=t.default,e.exports.default=t.default},16454:function(e,t,n){t.errorMessageFromXhr=t.base64_encode=t.aggregators=t.XHR_ERROR_UNLOAD=void 0,t.isConjunctiveOperator=function(e){return/^(and|&&|&)$/i.test(e)},t.isDisjunctiveOperator=function(e){return/^(or|\|\||\|)$/i.test(e)},t.rejectedPromise=t.processRequestResultLock=t.normalizeSortingInfo=t.normalizeBinaryCriterion=t.keysEqual=t.isUnaryOperation=t.isGroupCriterion=void 0,t.throttleChanges=function(e,t){var n=[],o=function(e,t){var n,o;return function(){var a=this;return o=arguments,n||(n=setTimeout((function(){n=void 0,o&&e.call(a,o)}),(0,i.isFunction)(t)?t():t)),n}}((function(){e.call(this,n),n=[]}),t);return function(e){var t,i;return Array.isArray(e)&&(t=n).push.apply(t,function(e){if(Array.isArray(e))return c(e)}(i=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o.call(this,n)}},t.trivialPromise=void 0;var i=n(35922),o=d(n(73349)),a=d(n(24311)),r=n(58201),s=n(95479),l=n(62754),u=n(20576);function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var h=a.default.add,f="DEVEXTREME_XHR_ERROR_UNLOAD";t.XHR_ERROR_UNLOAD=f,t.normalizeBinaryCriterion=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},t.normalizeSortingInfo=function(e){return Array.isArray(e)||(e=[e]),(0,s.map)(e,(function(e){var t={selector:(0,i.isFunction)(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t}))};var p,g,m=(g={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},h((function(){var e=(0,r.getWindow)();o.default.listen(e,"beforeunload",(function(){p=!0}))})),function(e,t){return p?f:e.status<400?function(e){return g[e]||e}(t):e.statusText});t.errorMessageFromXhr=m;var _={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,t){return e+t}},min:{step:function(e,t){return t<e?t:e}},max:{step:function(e,t){return t>e?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}};t.aggregators=_;var v,y,x=(y=0,{obtain:function(){0===y&&(v=new l.Deferred),y++},release:function(){--y<1&&v.resolve()},promise:function(){return(0===y?(new l.Deferred).resolve():v).promise()},reset:function(){y=0,v&&v.resolve()}});t.processRequestResultLock=x,t.keysEqual=function(e,t,n){if(Array.isArray(e)){for(var i,o=(0,s.map)(t,(function(e,t){return t})),a=0;a<o.length;a++)if(i=o[a],!(0,u.equalByValue)(t[i],n[i],0,!1))return!1;return!0}return(0,u.equalByValue)(t,n,0,!1)},t.base64_encode=function(e){Array.isArray(e)||(e=function(e){var t,n,i=[];for(n=0;n<e.length;n++)(t=e.charCodeAt(n))<128?i.push(t):t<2048?i.push(192+(t>>6),128+(63&t)):t<65536?i.push(224+(t>>12),128+(t>>6&63),128+(63&t)):t<2097152&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(63&t));return i}(String(e)));var t="";function n(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)}for(var i=0;i<e.length;i+=3){var o=e[i],a=e[i+1],r=e[i+2];t+=(0,s.map)([o>>2,(3&o)<<4|a>>4,isNaN(a)?64:(15&a)<<2|r>>6,isNaN(r)?64:63&r],n).join("")}return t},t.isUnaryOperation=function(e){return"!"===e[0]&&Array.isArray(e[1])},t.isGroupCriterion=function(e){var t,n=e[0],o=e[1];return!!Array.isArray(n)||!(!(0,i.isFunction)(n)||!Array.isArray(o)&&!(0,i.isFunction)(o)&&"and"!==(t=o)&&"or"!==t)},t.trivialPromise=function(){var e=new l.Deferred;return e.resolve.apply(e,arguments).promise()},t.rejectedPromise=function(){var e=new l.Deferred;return e.reject.apply(e,arguments).promise()}},53305:function(e,t,n){t.default=void 0;var i=n(85273),o=n(13306),a=n(9234),r={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n="_getSpecificDataSourceOption"in this?this._getSpecificDataSourceOption():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i.DataSource?(this._isSharedDataSource=!0,this._dataSource=n):(e="_dataSourceOptions"in this?this._dataSourceOptions():{},t=this._dataSourceType?this._dataSourceType():i.DataSource,n=(0,a.normalizeDataSourceOptions)(n,{fromUrlLoadMode:"_dataSourceFromUrlLoadMode"in this&&this._dataSourceFromUrlLoadMode()}),this._dataSource=new t((0,o.extend)(!0,{},e,n))),"_normalizeDataSource"in this&&(this._dataSource=this._normalizeDataSource(this._dataSource)),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){"_dataSourceChangedHandler"in this&&this._addDataSourceChangeHandler(),"_dataSourceLoadErrorHandler"in this&&this._addDataSourceLoadErrorHandler(),"_dataSourceLoadingChangedHandler"in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(e){this._ready&&this._ready(!e)}.bind(this))},_addDataSourceChangeHandler:function(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=function(t){this._dataSourceChangedHandler(e.items(),t)}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this._dataSourceLoadErrorHandler.bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this._dataSourceLoadingChangedHandler.bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load()}},_loadSingle:function(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};t.default=r,e.exports=t.default,e.exports.default=t.default},95429:function(e,t,n){t.name=void 0;var i=g(n(68374)),o=g(n(55994)),a=g(n(20530)),r=g(n(73349)),s=n(3532),l=n(90057),u=n(39611),d=n(27575),c=g(n(93786)),h=g(n(31391)),f=g(n(82495)),p=n(58020);function g(e){return e&&e.__esModule?e:{default:e}}var m="dxclick";t.name=m;var _=Math.abs,v=function(e){return(0,i.default)(e).is("input, textarea, select, button ,:focus, :focus *")},y={requestAnimationFrame:l.requestAnimationFrame,cancelAnimationFrame:l.cancelAnimationFrame},x=h.default.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable((0,i.default)(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=(0,u.eventData)(e)},end:function(e){this._eventOutOfElement(e,this.getElement().get(0))||e.type===c.default.cancel?this._cancel(e):(v(e.target)||this._blurPrevented||(0,s.resetActiveElement)(),this._accept(e),this._clickAnimationFrame=y.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this)))},_eventOutOfElement:function(e,t){var n=e.target,i=!(0,s.contains)(t,n)&&t!==n,o=(0,u.eventDelta)((0,u.eventData)(e),this._startEventData),a=_(o.x)>10||_(o.y)>10;return i||a},_fireClickEvent:function(e){this._fireEvent(m,e,{target:(0,s.closestCommonParent)(this._startTarget,e.target)})},dispose:function(){y.cancelAnimationFrame(this._clickAnimationFrame)}}),b=a.default.real(),w=b.generic||b.ios&&(0,p.compare)(b.version,[9,3])>=0||b.android&&(0,p.compare)(b.version,[5])>=0;!function(){var e=function(e){return w||(0,i.default)(e).closest(".dx-native-click").length},t=null,n=null;function a(){n=null}var r=function(i){var o=i.originalEvent,r=n===o||o&&o.DXCLICK_FIRED;(!i.which||1===i.which)&&!t&&e(i.target)&&!r&&(o&&(o.DXCLICK_FIRED=!0),(0,d.unsubscribeNodesDisposing)(n,a),n=o,(0,d.subscribeNodesDisposing)(n,a),(0,u.fireEvent)({type:m,originalEvent:i}))};x=x.inherit({_makeElementClickable:function(t){e(t)||this.callBase(t),o.default.on(t,"click",r)},configure:function(e){this.callBase(e),e.useNative&&this.getElement().addClass("dx-native-click")},start:function(n){t=null,e(n.target)||this.callBase(n)},end:function(t){e(t.target)||this.callBase(t)},cancel:function(){t=!0},dispose:function(){this.callBase(),o.default.off(this.getElement(),"click",r)}})}(),function(){if(!a.default.real().generic){var e=null,t=!1,n="NATIVE_CLICK_FIXER",l=r.default.getDocument();o.default.subscribeGlobal(l,(0,u.addNamespace)(c.default.down,n),(function(n){e=n.target,t=n.isDefaultPrevented()})),o.default.subscribeGlobal(l,(0,u.addNamespace)("click",n),(function(n){var o=(0,i.default)(n.target);t||!e||o.is(e)||(0,i.default)(e).is("label")||!v(o)||(0,s.resetActiveElement)(),e=null,t=!1}))}}(),(0,f.default)({emitter:x,bubble:!0,events:[m]})},49166:function(e,t,n){t.name=void 0;var i=c(n(68374)),o=c(n(55994)),a=n(60137),r=c(n(20530)),s=c(n(38377)),l=c(n(85788)),u=n(39611),d=c(n(11699));function c(e){return e&&e.__esModule?e:{default:e}}var h="dxContexMenu",f=(0,u.addNamespace)("contextmenu",h),p=(0,u.addNamespace)(d.default.name,h),g="dxcontextmenu",m=s.default.inherit({setup:function(e){var t=(0,i.default)(e);o.default.on(t,f,this._contextMenuHandler.bind(this)),(a.touch||r.default.isSimulator())&&o.default.on(t,p,this._holdHandler.bind(this))},_holdHandler:function(e){(0,u.isMouseEvent)(e)&&!r.default.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return(0,u.fireEvent)({type:g,originalEvent:e})},teardown:function(e){o.default.off(e,".dxContexMenu")}});(0,l.default)(g,new m),t.name="dxcontextmenu"},91633:function(e,t,n){t.lock=t.inactive=t.active=void 0;var i=c(n(38377)),o=n(20576),a=n(3532),r=c(n(20530)),s=n(39611),l=c(n(93786)),u=c(n(31391)),d=c(n(82495));function c(e){return e&&e.__esModule?e:{default:e}}var h="dxactive";t.active=h;var f="dxinactive";t.inactive=f;var p,g=i.default.inherit({ctor:function(e,t){this._timeout=e,this._fire=t},start:function(){var e=this;this._schedule((function(){e.force()}))},_schedule:function(e){this.stop(),this._timer=setTimeout(e,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),m=u.default.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new g(0,o.noop),this._inactive=new g(0,o.noop)},configure:function(e,t){switch(t){case h:e.activeTimeout=e.timeout;break;case f:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(p){var t=(0,a.contains)(this.getElement().get(0),p.getElement().get(0)),n=!p._active.fired();if(t&&n)return void this._cancel();p._inactive.force()}p=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,n=this._getEmitterTarget(e),i=(0,s.isMouseEvent)(e),a=r.default.isSimulator()||!i,l=(0,o.ensureDefined)(this.activeTimeout,30),u=(0,o.ensureDefined)(this.inactiveTimeout,400);this._active=new g(a?l:0,(function(){t._fireEvent(h,e,{target:n})})),this._inactive=new g(a?u:0,(function(){t._fireEvent(f,e,{target:n}),p=null}))},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==l.default.up;t?this._active.stop():this._active.force(),this._inactive.start(),t&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),p===this&&(p=null),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),p=null,this._cancel(),this._inactive.force.bind(this._inactive)}});m.lock=function(e){var t=p?p.lockInactive():o.noop;e.done(t)},(0,d.default)({emitter:m,events:[h,f]});var _=m.lock;t.lock=_},31391:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=n(20576),a=u(n(38377)),r=u(n(44504)),s=n(13306),l=n(39611);function u(e){return e&&e.__esModule?e:{default:e}}var d=a.default.inherit({ctor:function(e){this._$element=(0,i.default)(e),this._cancelCallback=(0,r.default)(),this._acceptCallback=(0,r.default)()},getElement:function(){return this._$element},validate:function(e){return!(0,l.isDxMouseWheelEvent)(e)},validatePointers:function(e){return 1===(0,l.hasTouches)(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){(0,s.extend)(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o.noop,move:o.noop,end:o.noop,cancel:o.noop,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,n){var i=(0,s.extend)({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},n);return(t=(0,l.fireEvent)(i)).cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?(0,i.default)(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o.noop});t.default=d,e.exports=t.default,e.exports.default=t.default},82495:function(e,t,n){t.default=void 0;var i=m(n(68374)),o=m(n(24311)),a=m(n(73349)),r=m(n(55994)),s=n(97906),l=m(n(38377)),u=n(13306),d=n(89386),c=n(95479),h=m(n(85788)),f=n(39611),p=m(n(93786)),g=n(765);function m(e){return e&&e.__esModule?e:{default:e}}var _="dxEventManager",v="dxEmitter",y=new(l.default.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){o.default.add(function(){var e=a.default.getDocument();r.default.subscribeGlobal(e,(0,f.addNamespace)(p.default.down,_),this._pointerDownHandler.bind(this)),r.default.subscribeGlobal(e,(0,f.addNamespace)(p.default.move,_),this._pointerMoveHandler.bind(this)),r.default.subscribeGlobal(e,(0,f.addNamespace)([p.default.up,p.default.cancel].join(" "),_),this._pointerUpHandler.bind(this)),r.default.subscribeGlobal(e,(0,f.addNamespace)(g.name,_),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(e){for(var t=this._activeEmitters||[],n=0;t.length>n;){var i=t[n];if(!1===e(i))break;t[n]===i&&n++}},_applyToEmitters:function(e,t){this._eachEmitter((function(n){n[e].call(n,t)}))},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){(0,f.isMouseEvent)(e)&&e.which>1||this._updateEmitters(e)},_updateEmitters:function(e){this._isSetChanged(e)&&(this._cleanEmitters(e),this._fetchEmitters(e))},_isSetChanged:function(e){var t=this._closestEmitter(e),n=this._emittersSet||[],i=t.length!==n.length;return(0,c.each)(t,(function(e,t){return!(i=i||n[e]!==t)})),this._emittersSet=t,i},_closestEmitter:function(e){var t=this,n=[],o=(0,i.default)(e.target);function a(i,o){o&&o.validatePointers(e)&&o.validate(e)&&(o.addCancelCallback(t._proxiedCancelHandler),o.addAcceptCallback(t._proxiedAcceptHandler),n.push(o))}for(;o.length;){var r=(0,s.data)(o.get(0),v)||[];(0,c.each)(r,a),o=o.parent()}return n},_acceptHandler:function(e,t){var n=this;this._eachEmitter((function(i){i!==e&&n._cancelEmitter(i,t)}))},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=(0,d.inArray)(e,n);i>-1&&n.splice(i,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){this._allowInterruptionByMouseWheel()&&(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMouseWheel:function(){var e=!0;return this._eachEmitter((function(t){return e=t.allowInterruptionByMouseWheel()&&e})),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter((function(n){if(n.gesture){var i=n.getDirection(e);return"horizontal"!==i&&!e.shiftKey||"vertical"!==i&&e.shiftKey?(t=n,!1):void 0}})),t){var n=t.getDirection(e),i="both"===n&&!e.shiftKey||"vertical"===n;e[i?"pageY":"pageX"]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter((function(n){t=t||n.getElement().is(e)})),t}})),x="dxEmitterSubscription";t.default=function(e){var t=e.emitter,n=e.events[0],i=e.events;(0,c.each)(i,(function(o,a){(0,h.default)(a,{noBubble:!e.bubble,setup:function(e){var i=(0,s.data)(e,x)||{},o=(0,s.data)(e,v)||{},r=o[n]||new t(e);i[a]=!0,o[n]=r,(0,s.data)(e,v,o),(0,s.data)(e,x,i)},add:function(e,t){(0,s.data)(e,v)[n].configure((0,u.extend)({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=(0,s.data)(e,x),o=(0,s.data)(e,v),r=o[n];delete t[a];var l=!0;(0,c.each)(i,(function(e,n){return l=l&&!t[n]})),l&&(y.isActive(e)&&y.resetEmitter(r),r&&r.dispose(),delete o[n])}})}))},e.exports=t.default,e.exports.default=t.default},85788:function(e,t,n){t.default=void 0;var i,o=n(95479),a=(i=n(94553))&&i.__esModule?i:{default:i},r=function(e,t){var n={};"noBubble"in t&&(n.noBubble=t.noBubble),"bindType"in t&&(n.bindType=t.bindType),"delegateType"in t&&(n.delegateType=t.delegateType),(0,o.each)(["setup","teardown","add","remove","trigger","handle","_default","dispose"],(function(e,i){t[i]&&(n[i]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[i].apply(t,e)})})),a.default.fire(e,n)};r.callbacks=a.default;var s=r;t.default=s,e.exports=t.default,e.exports.default=t.default},94553:function(e,t,n){var i;t.default=void 0;var o=new(((i=n(83358))&&i.__esModule?i:{default:i}).default);t.default=o,e.exports=t.default,e.exports.default=t.default},55994:function(e,t,n){t.default=void 0;var i=p(n(94553)),o=n(13306),a=p(n(73349)),r=n(58201),s=p(n(20476)),l=n(35922),u=p(n(44504)),d=p(n(17381)),c=p(n(10126)),h=p(n(2418)),f=p(n(39618));function p(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var _=(0,r.getWindow)(),v="dxEmptyEventType",y={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},x={focusin:"focus",focusout:"blur"},b=["blur","focus","load"],w=["touchmove","wheel","mousewheel","touchstart"];function C(e,t){return!(0,l.isWindow)(e)&&"#document"!==e.nodeName&&a.default.elementMatches(e,t)}var S,k,D,I=new c.default,T=0,E=(k={},i.default.add((function(e,t){k[e]=t})),{getField:function(e,t){return k[e]&&k[e][t]},callMethod:function(e,t,n,i){return k[e]&&k[e][t]&&k[e][t].apply(n,i)}}),A=(0,s.default)({on:P(F(H((function(e,t,n,i,o){B(e,t).addHandler(o,n,i)})))),one:P(F((function(e,t,n,i,o){A.on(e,t,n,i,(function i(){A.off(e,t,n,i),o.apply(this,arguments)}))}))),off:P((D=H((function(e,t,n,i){B(e,t).removeHandler(i,n)})),function(e,t,n,i){"function"==typeof n&&(i=n,n=void 0),D(e,t,n,i)})),trigger:P(L((function(e,t,n){var i=t.type,a=B(e,t.type);if(E.callMethod(i,"trigger",e,[t,n]),a.callHandlers(t,n),!E.getField(i,"noBubble")&&!t.isPropagationStopped()&&-1===b.indexOf(i)){var r=[];!function e(t){var n=t.parentNode;n&&(r.push(n),e(n))}(e),r.push(_);for(var s=0;r[s]&&!t.isPropagationStopped();)B(r[s],t.type).callHandlers((0,o.extend)(t,{currentTarget:r[s]}),n),s++}(e.nodeType||(0,l.isWindow)(e))&&(E.callMethod(i,"_default",e,[t,n]),function(e,t){var n=x[e]||e;(function(e,t){return"click"===e&&"a"===t.localName})(e,t)||(0,l.isFunction)(t[n])&&(S=e,t[n](),S=void 0)}(i,e))}))),triggerHandler:P(L((function(e,t,n){B(e,t.type).callHandlers(t,n)})))});function O(e,t){var n=e[0];if(n)if(a.default.isNode(n)||(0,l.isWindow)(n))t.apply(A,e);else{if((0,l.isString)(n)||!("length"in n))throw d.default.Error("E0025");var i=Array.prototype.slice.call(e,0);Array.prototype.forEach.call(n,(function(e){i[0]=e,O(i,t)}))}}function P(e){return function(){O(arguments,e)}}var M=(0,f.default)((function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});_.addEventListener("test",null,t)}catch(e){}return e})),R=function e(t,n){return(0,l.isWindow)(t)?e(t.document,n):t.contains?t.contains(n):!!(n.compareDocumentPosition(t)&n.DOCUMENT_POSITION_CONTAINS)};function B(e,t){var n=I.get(e),i=(t=t||"").split("."),o=i.slice(1),r=!!i[0];t=i[0]||v,n||(n={},I.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var s=n[t];return{addHandler:function(n,i,l){var u=function(i,o){var a,r,s=[i],u=i.currentTarget,d=i.relatedTarget;t in y&&(a=d&&u&&(d===u||R(u,d))),void 0!==o&&s.push(o),E.callMethod(t,"handle",e,[i,l]),a||(r=n.apply(u,s)),!1===r&&(i.preventDefault(),i.stopPropagation())},d={handler:n,wrappedHandler:function(t,n){if(!S||t.type!==S)if(t.data=l,t.delegateTarget=e,i)for(var o=t.target;o&&o!==e;)C(o,i)&&(t.currentTarget=o,u(t,n)),o=o.parentNode;else t.currentTarget=t.delegateTarget||t.target,u(t,n)},selector:i,type:t,data:l,namespace:o.join("."),namespaces:o,guid:++T};s.handleObjects.push(d);var c,h,f=1===s.handleObjects.length&&r;f&&(f=!E.callMethod(t,"setup",e,[l,o,n])),f&&(s.nativeHandler=(h=t,function(e,t){var n=B(this,h);e=A.Event(e),n.callHandlers(e,t)}),M()&&w.indexOf(t)>-1&&(c={passive:!1}),s.removeListener=a.default.listen(e,y[t]||t,s.nativeHandler,c)),E.callMethod(t,"add",e,[d])},removeHandler:function(i,a){var s=function(t){var r,s=n[t];s.handleObjects.length?(s.handleObjects=s.handleObjects.filter((function(n){var s=o.length&&!V(n.namespaces,o)||i&&n.handler!==i||a&&n.selector!==a;return s||(r=n.handler,E.callMethod(t,"remove",e,[n])),s})),!s.handleObjects.length&&t!==v&&(E.callMethod(t,"teardown",e,[o,r]),s.nativeHandler&&s.removeListener(),delete n[t])):delete n[t]};if(r)s(t);else for(var l in n)s(l);0===Object.keys(n).length&&I.delete(e)},callHandlers:function(e,t){var i=!1,a=function(n){i||o.length&&!V(n.namespaces,o)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};s.handleObjects.forEach(a),o.length&&n.dxEmptyEventType&&n.dxEmptyEventType.handleObjects.forEach(a)}}}function V(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])<0)return!1;return!0}function F(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)}}function L(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 A.Event?n:A.Event(n),i)}}function H(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"===g(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)}}function N(e){return function(e){return null==e.which&&0===e.type.indexOf("key")}(e)?null!=e.charCode?e.charCode:e.keyCode:function(e){return!e.which&&void 0!==e.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(e.type)}(e)?{1:1,2:3,3:1,4:2}[e.button]:e.which}function z(e){e&&(A.Event=e,A.Event.prototype=e.prototype)}function W(e,t,n){Object.defineProperty(n||A.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})}})}z(function(e){return A.Event=function(t,n){if(!(this instanceof A.Event))return new A.Event(t,n);t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),e.call(this,t,n)},m(A.Event.prototype,{_propagationStopped:!1,_immediatePropagationStopped:!1,_defaultPrevented:!1,isPropagationStopped:function(){return!!(this._propagationStopped||this.originalEvent&&this.originalEvent.propagationStopped)},stopPropagation:function(){this._propagationStopped=!0,this.originalEvent&&this.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return this._immediatePropagationStopped},stopImmediatePropagation:function(){this.stopPropagation(),this._immediatePropagationStopped=!0,this.originalEvent&&this.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(this._defaultPrevented||this.originalEvent&&this.originalEvent.defaultPrevented)},preventDefault:function(){this._defaultPrevented=!0,this.originalEvent&&this.originalEvent.preventDefault()}}),A.Event}((function(e,t){var n;e instanceof A.Event||(0,r.hasWindow)()&&e instanceof _.Event||(null===(n=e.view)||void 0===n?void 0:n.Event)&&e instanceof e.view.Event?(this.originalEvent=e,this.type=e.type,this.currentTarget=void 0,Object.prototype.hasOwnProperty.call(e,"isTrusted")&&(this.isTrusted=e.isTrusted),this.timeStamp=e.timeStamp||Date.now()):m(this,e),W("which",N,this),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),m(this,t),this.guid=++T}))),["target","relatedTarget","delegateTarget","altKey","bubbles","cancelable","changedTouches","ctrlKey","detail","eventPhase","metaKey","shiftKey","view","char","code","charCode","key","keyCode","button","buttons","offsetX","offsetY","pointerId","pointerType","targetTouches","toElement","touches"].forEach((function(e){return W(e,(function(t){return t[e]}))})),(0,h.default)(W);var G=(0,u.default)(),j=(0,u.default)();A.set=function(e){G.fire(),A.inject(e),z(e.Event),j.fire()},A.subscribeGlobal=function(){O(arguments,F((function(){var e=arguments;A.on.apply(this,e),G.add((function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),A.off.apply(this,t)})),j.add((function(){A.on.apply(this,e)}))})))},A.forcePassiveFalseEventNames=w,A.passiveEventHandlersSupported=M;var q=A;t.default=q,e.exports=t.default,e.exports.default=t.default},2418:function(e,t){t.default=function(e){n.forEach((function(t){e(t,(function(e){return function(e,t){if(t[e]&&!t.touches||!t.touches)return t[e];var n=t.touches.length?t.touches:t.changedTouches;return n.length?n[0][e]:void 0}(t,e)}))}),this)};var n=["pageX","pageY","screenX","screenY","clientX","clientY"];e.exports=t.default,e.exports.default=t.default},51661:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=l(n(55994)),a=l(n(38377)),r=n(89386),s=n(39611);function l(e){return e&&e.__esModule?e:{default:e}}var u="compositionstart",d="KeyboardProcessor",c=function(e){return{keyName:(0,s.normalizeKeyName)(e),key:e.key,code:e.code,ctrl:e.ctrlKey,location:e.location,metaKey:e.metaKey,shift:e.shiftKey,alt:e.altKey,which:e.which,originalEvent:e}},h=a.default.inherit({_keydown:(0,s.addNamespace)("keydown",d),_compositionStart:(0,s.addNamespace)(u,d),_compositionEnd:(0,s.addNamespace)("compositionend",d),ctor:function(e){var t=this;(e=e||{}).element&&(this._element=(0,i.default)(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._element&&(this._processFunction=function(e){var n=t._focusTarget&&t._focusTarget!==e.target&&(0,r.inArray)(e.target,(0,i.default)(t._focusTarget))<0,o=t._isComposingJustFinished&&229===e.which||t._isComposing||n;t._isComposingJustFinished=!1,o||t.process(e)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),o.default.on(this._element,this._keydown,this._processFunction),o.default.on(this._element,this._compositionStart,this._toggleProcessingWithContext),o.default.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(o.default.off(this._element,this._keydown,this._processFunction),o.default.off(this._element,this._compositionStart,this._toggleProcessingWithContext),o.default.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0},process:function(e){this._handler(c(e))},toggleProcessing:function(e){var t=e.type;this._isComposing=t===u,this._isComposingJustFinished=!this._isComposing}});h.createKeyDownOptions=c;var f=h;t.default=f,e.exports=t.default,e.exports.default=t.default},765:function(e,t,n){t.name=void 0;var i=s(n(68374)),o=s(n(55994)),a=s(n(85788)),r=n(39611);function s(e){return e&&e.__esModule?e:{default:e}}var l="dxmousewheel";t.name=l;var u="dxWheel",d={setup:function(e){var t=(0,i.default)(e);o.default.on(t,(0,r.addNamespace)("wheel",u),d._wheelHandler.bind(d))},teardown:function(e){o.default.off(e,".".concat(u))},_wheelHandler:function(e){var t=e.originalEvent,n=t.deltaMode,i=t.deltaY,o=t.deltaX,a=t.deltaZ;(0,r.fireEvent)({type:l,originalEvent:e,delta:this._normalizeDelta(i,n),deltaX:o,deltaY:i,deltaZ:a,deltaMode:n,pointerType:"mouse"}),e.stopPropagation()},_normalizeDelta:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return 0===t?-e:-30*e}};(0,a.default)(l,d)},85272:function(e,t,n){t.name=void 0;var i=d(n(55994)),o=n(3532),a=d(n(73349)),r=d(n(38377)),s=d(n(85788)),l=n(95429),u=n(39611);function d(e){return e&&e.__esModule?e:{default:e}}var c="dxdblclick";t.name=c;var h=(0,u.addNamespace)(l.name,"dxDblClick"),f=r.default.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-300},add:function(){this._handlerCount<=0&&i.default.on(a.default.getDocument(),h,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now(),n=t-this._lastClickTimeStamp;!(n<0)&&n<300?((0,u.fireEvent)({type:c,target:(0,o.closestCommonParent)(this._firstClickTarget,e.target),originalEvent:e}),this._forgetLastClick()):(this._firstClickTarget=e.target,this._lastClickTimeStamp=t)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),i.default.off(a.default.getDocument(),h))}});(0,s.default)(c,new f)},23174:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.start=t.move=t.leave=t.enter=t.end=t.drop=void 0;var o=f(n(68374)),a=n(97906),r=n(89386),s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(95479)),l=n(3532),u=f(n(85788)),d=n(39611),c=f(n(98621)),h=f(n(82495));function f(e){return e&&e.__esModule?e:{default:e}}var p="dxdragstart";t.start=p;var g="dxdrag";t.move=g;var m="dxdragend";t.end=m;var _="dxdragenter";t.enter=_;var v="dxdragleave";t.leave=v;var y="dxdrop";t.drop=y;var x="dxDragEventsCount",b=[],w=[],C=[],S={setup:function(e,t){-1!==(0,r.inArray)(e,b)||(b.push(e),w.push([]),C.push(t||{}))},add:function(e,t){var n=(0,r.inArray)(e,b);this.updateEventsCounter(e,t.type,1);var i=t.selector;-1===(0,r.inArray)(i,w[n])&&w[n].push(i)},updateEventsCounter:function(e,t,n){if([_,v,y].indexOf(t)>-1){var i=(0,a.data)(e,x)||0;(0,a.data)(e,x,Math.max(0,i+n))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){if(!(0,a.data)(e,x)){var t=(0,r.inArray)(e,b);b.splice(t,1),w.splice(t,1),C.splice(t,1),(0,a.removeData)(e,x)}}};(0,u.default)(_,S),(0,u.default)(v,S),(0,u.default)(y,S);var k=c.default.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(p,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var t=(0,r.wrapToArray)(e.targetElements||(null===e.targetElements?[]:b));this._dropTargets=s.map(t,(function(e){return(0,o.default)(e).get(0)}))},_move:function(e){var t=(0,d.eventData)(e),n=this._calculateOffset(t);e=this._fireEvent(g,e,{offset:n}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){if("vertical"!==this.direction){var t=e.x-this._startEventData.x;return this._fitOffset(t,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(e){if("horizontal"!==this.direction){var t=e.y-this._startEventData.y;return this._fitOffset(t,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(e,t,n){return null!=t&&(e=Math.max(e,-t)),null!=n&&(e=Math.min(e,n)),e},_processDropTargets:function(e){var t=this._findDropTarget(e);t===this._currentDropTarget||(this._fireDropTargetEvent(e,v),this._currentDropTarget=t,this._fireDropTargetEvent(e,_))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var n={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};(0,d.fireEvent)(n)}},_findDropTarget:function(e){var t,n=this;return s.each(b,(function(i,a){if(n._checkDropTargetActive(a)){var l,u,d,c,h=(0,o.default)(a);s.each((l=h,u=(0,r.inArray)(l.get(0),b),d=w[u].filter((function(e){return e})),c=l.find(d.join(", ")),-1!==(0,r.inArray)(void 0,w[u])&&(c=c.add(l)),c),(function(i,a){var s=(0,o.default)(a);n._checkDropTarget(function(e){var t=(0,r.inArray)(e.get(0),b);return C[t]}(h),s,(0,o.default)(t),e)&&(t=a)}))}})),t},_checkDropTargetActive:function(e){var t=!1;return s.each(this._dropTargets,(function(n,i){return!(t=t||i===e||(0,l.contains)(i,e))})),t},_checkDropTarget:function(e,t,n,i){if(t.get(0)===(0,o.default)(i.target).get(0))return!1;var a,r,s=(r=t,(a=e).itemPositionFunc?a.itemPositionFunc(r):r.offset());if(i.pageX<s.left)return!1;if(i.pageY<s.top)return!1;var l=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.get(0).getBoundingClientRect().width,height:t.get(0).getBoundingClientRect().height}}(e,t);return!(i.pageX>s.left+l.width)&&!(i.pageY>s.top+l.height)&&(!n.length||!n.closest(t).length)&&!(e.checkDropTarget&&!e.checkDropTarget(t,i))&&t},_end:function(e){var t=(0,d.eventData)(e);this._fireEvent(m,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,y),delete this._currentDropTarget}});(0,h.default)({emitter:k,events:[p,g,m]})},98621:function(e,t,n){t.default=void 0;var i=g(n(68374)),o=g(n(55994)),a=g(n(20530)),r=n(80968),s=g(n(39618)),l=n(3532),u=g(n(24311)),d=n(60810),c=n(20576),h=n(35922),f=n(39611),p=g(n(31391));function g(e){return e&&e.__esModule?e:{default:e}}var m=u.default.add,_=Math.abs,v=10,y=(0,s.default)((function(){var e="desktop"===a.default.real().deviceType;if(!(0,r.styleProp)("pointer-events")||!e)return c.noop;var t=(0,i.default)("<div>").addClass("dx-gesture-cover").css("pointerEvents","none");return o.default.subscribeGlobal(t,"dxmousewheel",(function(e){e.preventDefault()})),m((function(){t.appendTo("body")})),function(e,n){t.css("pointerEvents",e?"all":"none"),e&&t.css("cursor",n)}})),x=p.default.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return 2!==this._stage},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=0},start:function(e){e._needSkipEvent||(0,f.needSkipEvent)(e)?this._cancel(e):(this._startEvent=(0,f.createEvent)(e),this._startEventData=(0,f.eventData)(e),this._stage=1,this._init(e),this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),180))},move:function(e){if(1===this._stage&&this._directionConfirmed(e)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),0===this._stage)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=(0,f.eventDelta)(this._startEventData,(0,f.eventData)(e)),i=_(n.x),o=_(n.y),a=this._validateMove(t,i,o),r=this._validateMove(t,o,i),s=this.getDirection(e);return"both"===s&&(a||r)||"horizontal"===s&&a||"vertical"===s&&r||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||(0,f.isDxMouseWheelEvent)(e)?0:v},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=(0,f.eventDelta)(this._startEventData,(0,f.eventData)(e));this._startEvent.pageX+=(0,d.sign)(n.x)*t,this._startEvent.pageY+=(0,d.sign)(n.y)*t},_resetActiveElement:function(){"ios"===a.default.real().platform&&this.getElement().find(":focus").length&&(0,l.resetActiveElement)()},_toggleGestureCover:function(e){this._toggleGestureCoverImpl(e)},_toggleGestureCoverImpl:function(e){2===this._stage&&function(e,t){y()(e,t)}(e,this.getElement().css("cursor"))},_clearSelection:function(e){(0,f.isDxMouseWheelEvent)(e)||(0,f.isTouchEvent)(e)||(0,l.clearSelection)()},end:function(e){this._toggleGestureCover(!1),2===this._stage?this._end(e):1===this._stage&&this._stop(e),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:c.noop,_start:c.noop,_move:c.noop,_stop:c.noop,_end:c.noop});x.initialTouchBoundary=v,x.touchBoundary=function(e){if(!(0,h.isDefined)(e))return v;v=e};var b=x;t.default=b,e.exports=t.default,e.exports.default=t.default},37334:function(e,t,n){t.default=void 0;var i=c(n(55994)),o=c(n(38377)),a=n(39611),r=c(n(98621)),s=c(n(82495)),l=n(90057),u=c(n(20530)),d=n(58020);function c(e){return e&&e.__esModule?e:{default:e}}var h,f,p,g=o.default.abstract,m=u.default.real(),_="scroll",v="dxscrollinit",y="dxscrollstart",x="dxscroll",b="dxscrollend",w="dxscrollstop",C="dxscrollcancel",S=o.default.inherit((h=(0,a.addNamespace)(_,"dxScrollEmitter"),{ctor:function(e){var t=this;this._element=e,this._locked=!1,this._proxiedScroll=function(e){t._disposed||t._scroll(e)},i.default.on(this._element,h,this._proxiedScroll)},_scroll:g,check:function(e,t){this._locked&&t()},dispose:function(){this._disposed=!0,i.default.off(this._element,h,this._proxiedScroll)}})),k=S.inherit({ctor:function(e,t){this.callBase(e),this._timeout=t},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){var e=this;this._timer=setTimeout((function(){e._clearTimer()}),this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}),D=k.inherit({ctor:function(e){this.callBase(e,400),this._lastWheelDirection=null},check:function(e,t){this._checkDirectionChanged(e),this.callBase(e,t)},_checkDirectionChanged:function(e){if((0,a.isDxMouseWheelEvent)(e)){var t=e.shiftKey||!1,n=null!==this._lastWheelDirection&&t!==this._lastWheelDirection;this._lastWheelDirection=t,this._locked=this._locked&&!n}else this._lastWheelDirection=null}}),I=k.inherit({ctor:function(e){this.callBase(e,400)}});f=m.ios&&(0,d.compare)(m.version,[8])>=0,p=m.android&&(0,d.compare)(m.version,[5])>=0,(f||p)&&(I=S.inherit({_scroll:function(){this._locked=!0;var e=this;(0,l.cancelAnimationFrame)(this._scrollFrame),this._scrollFrame=(0,l.requestAnimationFrame)((function(){e._locked=!1}))},check:function(e,t){(0,l.cancelAnimationFrame)(this._scrollFrame),(0,l.cancelAnimationFrame)(this._checkFrame);var n=this,i=this.callBase;this._checkFrame=(0,l.requestAnimationFrame)((function(){i.call(n,e,t),n._locked=!1}))},dispose:function(){this.callBase(),(0,l.cancelAnimationFrame)(this._scrollFrame),(0,l.cancelAnimationFrame)(this._checkFrame)}}));var T,E=r.default.inherit((T=Math.round(1e3/60),{ctor:function(e){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new I(e),this._wheelLocker=new D(e)},validate:function(){return!0},configure:function(e){e.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new I(e.scrollTarget),this._wheelLocker=new D(e.scrollTarget)),this.callBase(e)},_init:function(e){this._wheelLocker.check(e,function(){(0,a.isDxMouseWheelEvent)(e)&&this._accept(e)}.bind(this)),this._pointerLocker.check(e,function(){var t=this.isNative&&(0,a.isMouseEvent)(e);(0,a.isDxMouseWheelEvent)(e)||t||this._accept(e)}.bind(this)),this._fireEvent(v,e),this._prevEventData=(0,a.eventData)(e)},move:function(e){this.callBase.apply(this,arguments),e.isScrollingEvent=this.isNative||e.isScrollingEvent},_start:function(e){this._savedEventData=(0,a.eventData)(e),this._fireEvent(y,e),this._prevEventData=(0,a.eventData)(e)},_move:function(e){var t=(0,a.eventData)(e);this._fireEvent(x,e,{delta:(0,a.eventDelta)(this._prevEventData,t)}),(0,a.eventDelta)(this._savedEventData,t).time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=(0,a.eventData)(e)},_end:function(e){var t=(0,a.eventDelta)(this._prevEventData,(0,a.eventData)(e)),n={x:0,y:0};if(!(0,a.isDxMouseWheelEvent)(e)&&t.time<100){var i=(0,a.eventDelta)(this._savedEventData,this._prevEventData),o=T/i.time;n={x:i.x*o,y:i.y*o}}this._fireEvent(b,e,{velocity:n})},_stop:function(e){this._fireEvent(w,e)},cancel:function(e){this.callBase.apply(this,arguments),this._fireEvent(C,e)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}));(0,s.default)({emitter:E,events:[v,y,x,b,w,C]});var A={init:v,start:y,move:x,end:b,stop:w,cancel:C,scroll:_};t.default=A,e.exports=t.default,e.exports.default=t.default},66894:function(e,t,n){t.default=void 0;var i=n(34309),o=d(n(55994)),a=d(n(13046)),r=n(95479),s=n(39611),l=n(13306),u=n(9321);function d(e){return e&&e.__esModule?e:{default:e}}var c={onStart:i.start,onUpdated:i.swipe,onEnd:i.end,onCancel:"dxswipecancel"},h=a.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass("dx-swipeable"),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),(0,r.each)(c,function(t,n){var i=this._createActionByOption(t,{context:this});n=(0,s.addNamespace)(n,e),o.default.on(this.$element(),n,this._eventData,(function(e){return i({event:e})}))}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){o.default.off(this.$element(),".dxSwipeable")},_optionChanged:function(e){switch(e.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(e)}},_useTemplates:function(){return!1}});(0,u.name)(h,"dxSwipeable");var f=h;t.default=f,e.exports=t.default,e.exports.default=t.default},11699:function(e,t,n){t.default=void 0;var i=n(39611),o=r(n(31391)),a=r(n(82495));function r(e){return e&&e.__esModule?e:{default:e}}var s=Math.abs,l="dxhold",u=o.default.inherit({start:function(e){this._startEventData=(0,i.eventData)(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:750;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(l,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=(0,i.eventDelta)(this._startEventData,(0,i.eventData)(e));return s(t.x)>5||s(t.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});(0,a.default)({emitter:u,bubble:!0,events:[l]});var d={name:l};t.default=d,e.exports=t.default,e.exports.default=t.default},24028:function(e,t,n){t.start=t.end=void 0;var i=d(n(55994)),o=n(97906),a=d(n(38377)),r=d(n(20530)),s=d(n(85788)),l=n(39611),u=d(n(93786));function d(e){return e&&e.__esModule?e:{default:e}}var c="dxHoverStart",h="dxhoverstart";t.start=h;var f=(0,l.addNamespace)(u.default.enter,c),p="dxHoverEnd",g="dxhoverend";t.end=g;var m=(0,l.addNamespace)(u.default.leave,p),_=a.default.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){(0,o.data)(e,this._handlerArrayKeyPath,{})},add:function(e,t){var n=this,a=function(e){n._handler(e)};i.default.on(e,this._originalEventName,t.selector,a),(0,o.data)(e,this._handlerArrayKeyPath)[t.guid]=a},_handler:function(e){(0,l.isTouchEvent)(e)||r.default.isSimulator()||(0,l.fireEvent)({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var n=(0,o.data)(e,this._handlerArrayKeyPath)[t.guid];i.default.off(e,this._originalEventName,t.selector,n)},teardown:function(e){(0,o.removeData)(e,this._handlerArrayKeyPath)}}),v=_.inherit({ctor:function(){this._eventNamespace=c,this._eventName=h,this._originalEventName=f,this.callBase()},_handler:function(e){(e.pointers||[]).length||this.callBase(e)}}),y=_.inherit({ctor:function(){this._eventNamespace=p,this._eventName=g,this._originalEventName=m,this.callBase()}});(0,s.default)(h,new v),(0,s.default)(g,new y)},66365:function(e,t,n){t.triggerHandler=t.trigger=t.one=t.on=t.off=t.Event=void 0;var i,o=(i=n(55994))&&i.__esModule?i:{default:i},a=o.default.on;t.on=a;var r=o.default.one;t.one=r;var s=o.default.off;t.off=s;var l=o.default.trigger;t.trigger=l;var u=o.default.triggerHandler;t.triggerHandler=u;var d=o.default.Event;t.Event=d},93786:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(60137)),a=n(95479),r=c(n(20530)),s=c(n(85788)),l=c(n(69120)),u=c(n(66509)),d=c(n(87720));function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e,t){var n=t.tablet,i=t.phone;return!e.touch||n||i?e.touch?l.default:u.default:d.default}(o,r.default.real());(0,a.each)(h.map,(function(e,t){(0,s.default)(e,new h(e,t))}));t.default={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"},e.exports=t.default,e.exports.default=t.default},88136:function(e,t,n){t.default=void 0;var i=l(n(55994)),o=l(n(47810)),a=l(n(73349)),r=l(n(38377)),s=n(39611);function l(e){return e&&e.__esModule?e:{default:e}}var u=r.default.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=(0,s.addNamespace)(t,"dxPointerEvents"),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||(0,s.eventSource)(e),originalEvent:e,delegateTarget:t,timeStamp:o.default.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return(0,s.fireEvent)(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:a.default.getDocument(),this._setSelector(t);var n=this;i.default.on(e,this._originalEvents,this._getSelector(),(function(e){n._handler(e)}))}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:a.default.getDocument(),".dxPointerEvents"!==this._originalEvents&&i.default.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:a.default.getDocument(),i.default.off(e,this._originalEvents)}});t.default=u,e.exports=t.default,e.exports.default=t.default},66509:function(e,t,n){t.default=void 0;var i=n(13306),o=r(n(88136)),a=r(n(25544));function r(e){return e&&e.__esModule?e:{default:e}}var s,l={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},u=function(e){return e.pointerId=1,{pointers:s.pointers(),pointerId:1}},d=!1,c=function(){d||(s=new a.default(l,(function(){return!0})),d=!0)},h=o.default.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(e){return this.callBase((0,i.extend)(u(e.originalEvent),e))}});h.map=l,h.normalize=u,h.activate=c,h.resetObserver=function(){s.reset()};var f=h;t.default=f,e.exports=t.default,e.exports.default=t.default},87720:function(e,t,n){t.default=void 0;var i=n(13306),o=l(n(88136)),a=l(n(66509)),r=l(n(69120)),s=n(39611);function l(e){return e&&e.__esModule?e:{default:e}}var u=!1,d=function(){u||(a.default.activate(),u=!0)},c=o.default.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),d()},_handler:function(e){var t=(0,s.isMouseEvent)(e);if(t||(this._skipNextEvents=!0),!t||!this._mouseLocked){if(!t||!this._skipNextEvents)return this.callBase(e);this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var n=this;this._unlockMouseTimer=setTimeout((function(){n._mouseLocked=!1}),this.EVENT_LOCK_TIMEOUT)}},_fireEvent:function(e){var t=(0,s.isMouseEvent)(e.originalEvent)?a.default.normalize:r.default.normalize;return this.callBase((0,i.extend)(t(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});c.map={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},c.resetObserver=a.default.resetObserver;var h=c;t.default=h,e.exports=t.default,e.exports.default=t.default},25544:function(e,t,n){t.default=void 0;var i=n(95479),o=r(n(24311)),a=r(n(73349));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t){o.default.add((function(){e.split(" ").forEach((function(e){a.default.listen(a.default.getDocument(),e,t,!0)}))}))};t.default=function(e,t,n){n=n||function(){};var o=[],a=function(e){var n=-1;return(0,i.each)(o,(function(i,o){return!t(e,o)||(n=i,!1)})),n},r=function(e){var t=a(e);t>-1&&o.splice(t,1)};s(e.dxpointerdown,(function(e){-1===a(e)&&(n(e),o.push(e))})),s(e.dxpointermove,(function(e){o[a(e)]=e})),s(e.dxpointerup,r),s(e.dxpointercancel,r),this.pointers=function(){return o},this.reset=function(){o=[]}},e.exports=t.default,e.exports.default=t.default},69120:function(e,t,n){t.default=void 0;var i=s(n(20530)),o=n(13306),a=n(95479),r=s(n(88136));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t=[];return(0,a.each)(e.touches,(function(e,n){t.push((0,o.extend)({pointerId:n.identifier},n))})),{pointers:t,pointerId:e.changedTouches[0].identifier}},u=function(e){return"ios"===i.default.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)},d=r.default.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(e){if(u(this._eventName)){var t=e.changedTouches[0];if(this._pointerId===t.identifier&&0!==this._pointerId)return;this._pointerId=t.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(e){return this.callBase((0,o.extend)(l(e.originalEvent),e))}});d.map={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},d.normalize=l;var c=d;t.default=c,e.exports=t.default,e.exports.default=t.default},29007:function(e,t,n){t.removeEvent=void 0;var i=s(n(68374)),o=n(97906),a=s(n(55994)),r=s(n(85788));function s(e){return e&&e.__esModule?e:{default:e}}var l="dxremove";t.removeEvent=l;var u="dxRemoveEvent";(0,o.beforeCleanData)((function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=(0,i.default)(e[t]);n.prop(u)&&(n[0].dxRemoveEvent=null,a.default.triggerHandler(n,l))}})),(0,r.default)(l,{noBubble:!0,setup:function(e){(0,i.default)(e).prop(u,!0)}})},72918:function(e,t,n){t.visibility=t.resize=t.keyboard=t.hover=t.focus=t.dxClick=t.click=t.active=void 0;var i=s(n(73349)),o=s(n(55994)),a=s(n(51661)),r=n(39611);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return t?(0,r.addNamespace)(e,t):e}function u(e,t){return"function"==typeof e?e(t):e.execute(t)}var d={on:function(e,t,n,i){var a=i.selector,r=i.showTimeout,s=i.hideTimeout,d=i.namespace;o.default.on(e,l("dxactive",d),a,{timeout:r},(function(e){return u(t,{event:e,element:e.currentTarget})})),o.default.on(e,l("dxinactive",d),a,{timeout:s},(function(e){return u(n,{event:e,element:e.currentTarget})}))},off:function(e,t){var n=t.namespace,i=t.selector;o.default.off(e,l("dxactive",n),i),o.default.off(e,l("dxinactive",n),i)}};t.active=d;var c={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.namespace;o.default.on(e,l("dxresize",i),t)},off:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;o.default.off(e,l("dxresize",n))}};t.resize=c;var h={on:function(e,t,n,i){var a=i.selector,r=i.namespace;o.default.on(e,l("dxhoverend",r),a,(function(e){return n(e)})),o.default.on(e,l("dxhoverstart",r),a,(function(e){return u(t,{element:e.target,event:e})}))},off:function(e,t){var n=t.selector,i=t.namespace;o.default.off(e,l("dxhoverstart",i),n),o.default.off(e,l("dxhoverend",i),n)}};t.hover=h;var f={on:function(e,t,n,i){var a=i.namespace;o.default.on(e,l("dxhiding",a),n),o.default.on(e,l("dxshown",a),t)},off:function(e,t){var n=t.namespace;o.default.off(e,l("dxhiding",n)),o.default.off(e,l("dxshown",n))}};t.visibility=f;var p={on:function(e,t,n,a){var r=a.namespace,s=a.isFocusable;o.default.on(e,l("focusin",r),t),o.default.on(e,l("focusout",r),n),i.default.hasDocumentProperty("onbeforeactivate")&&o.default.on(e,l("beforeactivate",r),(function(e){return s(null,e.target)||e.preventDefault()}))},off:function(e,t){var n=t.namespace;o.default.off(e,l("focusin",n)),o.default.off(e,l("focusout",n)),i.default.hasDocumentProperty("onbeforeactivate")&&o.default.off(e,l("beforeactivate",n))},trigger:function(e){return o.default.trigger(e,"focus")}};t.focus=p;var g={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.namespace;o.default.on(e,l("dxclick",i),t)},off:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;o.default.off(e,l("dxclick",n))}};t.dxClick=g;var m={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.namespace;o.default.on(e,l("click",i),t)},off:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;o.default.off(e,l("click",n))}};t.click=m;var _=0,v={},y={on:function(e,t,n){var i="keyboardProcessorId".concat(_++);return v[i]=new a.default({element:e,focusTarget:t,handler:n}),i},off:function(e){e&&v[e]&&(v[e].dispose(),delete v[e])},_getProcessor:function(e){return v[e]}};t.keyboard=y},34309:function(e,t,n){t.swipe=t.start=t.end=void 0;var i=n(58664),o=n(39611),a=s(n(98621)),r=s(n(82495));function s(e){return e&&e.__esModule?e:{default:e}}var l="dxswipestart";t.start=l;var u="dxswipe";t.swipe=u;var d="dxswipeend";t.end=d;var c={horizontal:{defaultItemSizeFunc:function(){return(0,i.getWidth)(this.getElement())},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){return((0,o.eventData)(e).x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=(0,o.eventData)(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},vertical:{defaultItemSizeFunc:function(){return(0,i.getHeight)(this.getElement())},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){return((0,o.eventData)(e).y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=(0,o.eventData)(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}}},h=a.default.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return c[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=(0,o.eventData)(e)},_start:function(e){this._savedEventData=(0,o.eventData)(e),(e=this._fireEvent(l,e)).cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=(0,o.eventData)(e),i=t.calcOffsetRatio.call(this,e);i=this._fitOffset(i,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(u,e,{offset:i}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),o=n,a=this._calcTargetOffset(n,i);o=this._fitOffset(o,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(d,e,{offset:o,targetOffset:a})},_fitOffset:function(e,t){var n=this._getStrategy().getBounds.call(this);return e<-n[0]?t?(-2*n[0]+e)/3:-n[0]:e>n[1]?t?(2*n[1]+e)/3:n[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});(0,r.default)({emitter:h,events:[l,u,d]})},91093:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.zoomstart=t.zoomend=t.zoom=t.translatestart=t.translateend=t.translate=t.transformstart=t.transformend=t.transform=t.rotatestart=t.rotateend=t.rotate=t.pinchstart=t.pinchend=t.pinch=void 0;var o=n(60810),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(95479)),r=n(39611),s=u(n(31391)),l=u(n(82495));function u(e){return e&&e.__esModule?e:{default:e}}var d="dx",c="start",h="",f="end",p=[],g=function(e,t){p.push({name:e,args:t})};g("transform",{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),g("translate",{translation:!0,deltaTranslation:!0}),g("pinch",{scale:!0,deltaScale:!0}),g("rotate",{rotation:!0,deltaRotation:!0});var m=function(e){var t,n,i=e.pointers;return t=i[0],{x:(n=i[1]).pageX-t.pageX,y:-n.pageY+t.pageY,centerX:.5*(n.pageX+t.pageX),centerY:.5*(n.pageY+t.pageY)}},_=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},v=function(e,t){return _(e)/_(t)},y=function(e,t){var n=e.x*t.x+e.y*t.y,i=_(e)*_(t);return 0===i?0:(0,o.sign)(e.x*t.y-t.x*e.y)*Math.acos((0,o.fitIntoRange)(n/i,-1,1))},x=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},b=s.default.inherit({validatePointers:function(e){return(0,r.hasTouches)(e)>1},start:function(e){this._accept(e);var t=m(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(c,e)},move:function(e){var t=m(e),n=this._getEventArgs(t);this._fireEventAliases(h,e,n),this._prevVector=t},end:function(e){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(f,e,t)},_getEventArgs:function(e){return{scale:v(e,this._startVector),deltaScale:v(e,this._prevVector),rotation:y(e,this._startVector),deltaRotation:y(e,this._prevVector),translation:x(e,this._startVector),deltaTranslation:x(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},a.each(p,function(i,o){var r={};a.each(o.args,(function(e){e in n&&(r[e]=n[e])})),this._fireEvent(d+o.name+e,t,r)}.bind(this))}}),w=p.reduce((function(e,t){return[c,h,f].forEach((function(n){e.push(d+t.name+n)})),e}),[]);(0,l.default)({emitter:b,events:w});var C={};a.each(w,(function(e,t){C[t.substring(d.length)]=t}));var S=C.transformstart,k=C.transform,D=C.transformend,I=C.translatestart,T=C.translate,E=C.translateend,A=C.zoomstart,O=C.zoom,P=C.zoomend,M=C.pinchstart,R=C.pinch,B=C.pinchend,V=C.rotatestart,F=C.rotate,L=C.rotateend;t.rotateend=L,t.rotate=F,t.rotatestart=V,t.pinchend=B,t.pinch=R,t.pinchstart=M,t.zoomend=P,t.zoom=O,t.zoomstart=A,t.translateend=E,t.translate=T,t.translatestart=I,t.transformend=D,t.transform=k,t.transformstart=S},19141:function(e,t,n){t.default=void 0;var i,o=(i=n(17381))&&i.__esModule?i:{default:i};t.default=function e(t,n){if(!n)throw o.default.Error("E0017");return Array.isArray(t)?t.map((function(t){return e(t,n)})).join(" "):-1!==t.indexOf(" ")?e(t.split(/\s+/g),n):"".concat(t,".").concat(n)},e.exports=t.default,e.exports.default=t.default},27575:function(e,t,n){t.unsubscribeNodesDisposing=t.subscribeNodesDisposing=void 0;var i,o=(i=n(55994))&&i.__esModule?i:{default:i},a=n(29007);function r(e){return e&&[e.target,e.delegateTarget,e.relatedTarget,e.currentTarget].filter((function(e){return!!e}))}t.subscribeNodesDisposing=function(e,t){o.default.one(r(e),a.removeEvent,t)},t.unsubscribeNodesDisposing=function(e,t){o.default.off(r(e),a.removeEvent,t)}},39611:function(e,t,n){t.stopEventsSkipping=t.setEventFixMethod=t.normalizeKeyName=t.needSkipEvent=t.isTouchEvent=t.isPointerEvent=t.isMouseEvent=t.isKeyboardEvent=t.isFakeClickEvent=t.isDxMouseWheelEvent=t.isCommandKeyPressed=t.hasTouches=t.getChar=t.forceSkipEvents=t.fireEvent=t.eventSource=t.eventDelta=t.eventData=t.createEvent=t.addNamespace=void 0;var i=u(n(68374)),o=u(n(19141)),a=u(n(55994)),r=n(95479),s=n(13306),l=n(31421);function u(e){return e&&e.__esModule?e:{default:e}}var d={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift"},c={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},h={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i},f=function(e){return e},p=function(e){return"dx"===m(e)},g=function(e){return"touch"===m(e)},m=function(e){var t=e.type,n="other";return(0,r.each)(h,(function(e){if(this.test(t))return n=e,!1})),n};t.eventSource=m;var _=function(e){return"pointer"===m(e)};t.isPointerEvent=_;var v=function(e){return function(e){return"mouse"===m(e)}(e)||(_(e)||p(e))&&"mouse"===e.pointerType};t.isMouseEvent=v;var y=function(e){return e&&"dxmousewheel"===e.type};t.isDxMouseWheelEvent=y;var x=function(e){return g(e)||(_(e)||p(e))&&"touch"===e.pointerType};t.isTouchEvent=x,t.isKeyboardEvent=function(e){return"keyboard"===m(e)},t.isFakeClickEvent=function(e){var t=e.screenX,n=e.offsetX,i=e.pageX;return 0===t&&!n&&0===i},t.eventData=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},t.eventDelta=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},t.hasTouches=function(e){var t=e.originalEvent,n=e.pointers;return g(e)?(t.touches||[]).length:p(e)?(n||[]).length:0};var b=!1;t.forceSkipEvents=function(){return b=!0},t.stopEventsSkipping=function(){return b=!1},t.needSkipEvent=function(e){if(b)return!0;var t=e.target,n=(0,i.default)(t),o=n.is(".dx-dropdownlist-popup-wrapper *, .dx-dropdownlist-popup-wrapper"),a=(null==t?void 0:t.isContentEditable)||(null==t?void 0:t.hasAttribute("contenteditable")),r=n.is("input, textarea, select")||a;return!(!n.is(".dx-skip-gesture-event *, .dx-skip-gesture-event")||o)||(y(e)?!(n.is("textarea")&&n.hasClass("dx-texteditor-input")||a)&&n.is("input[type='number'], textarea, select")&&n.is(":focus"):v(e)?r||e.which>1:x(e)?r&&(0,l.focused)(n):void 0)},t.setEventFixMethod=function(e){return f=e};var w=function(e,t){var n=function(e){return f(a.default.Event(e,e),e)}(e);return t&&(0,s.extend)(n,t),n};t.createEvent=w,t.fireEvent=function(e){var t=e.originalEvent,n=e.delegateTarget,i=w(t,e);return a.default.trigger(n||i.target,i),i},t.normalizeKeyName=function(e){var t=e.key,n=e.which,i=!!t;if(t=i?t:n)return i?d[t.toLowerCase()]||t:c[t]||String.fromCharCode(t)},t.getChar=function(e){var t=e.key,n=e.which;return t||String.fromCharCode(n)};var C=o.default;t.addNamespace=C,t.isCommandKeyPressed=function(e){var t=e.ctrlKey,n=e.metaKey;return t||n}},80506:function(e,t,n){t.triggerShownEvent=t.triggerResizeEvent=t.triggerHidingEvent=void 0;var i=a(n(68374)),o=a(n(55994));function a(e){return e&&e.__esModule?e:{default:e}}var r=function(e){var t=".dx-visibility-change-handler";return function(n){for(var a=(0,i.default)(n||"body"),r=a.filter(t).add(a.find(t)),s=0;s<r.length;s++)o.default.triggerHandler(r[s],e)}},s=r("dxshown");t.triggerShownEvent=s;var l=r("dxhiding");t.triggerHidingEvent=l;var u=r("dxresize");t.triggerResizeEvent=u},2994:function(e,t,n){Object.defineProperty(t,"exportDataGrid",{enumerable:!0,get:function(){return i.exportDataGrid}}),Object.defineProperty(t,"exportPivotGrid",{enumerable:!0,get:function(){return o.exportPivotGrid}});var i=n(8572),o=n(77328)},78292:function(e,t,n){t.excel=void 0,t.export=function(e,t,n){if(!e)return(new u.Deferred).resolve();var i=t.exportingAction,a=t.exportedAction,r=t.fileSavingAction,s={fileName:t.fileName,format:t.format,cancel:!1};return(0,l.isFunction)(i)&&i(s),s.cancel?(new u.Deferred).resolve():n(e,t).then((function(e){(0,l.isFunction)(a)&&a(),(0,l.isFunction)(r)&&(s.data=e,r(s)),s.cancel||o.fileSaver.saveAs(s.fileName,t.format,e,t.proxyUrl,t.forceProxy)}))},Object.defineProperty(t,"fileSaver",{enumerable:!0,get:function(){return o.fileSaver}}),t.svg=t.pdf=t.image=void 0;var i,o=n(48351),a=n(13571),r=n(12173),s=n(37596),l=n(35922),u=n(62754),d=(i=n(45401))&&i.__esModule?i:{default:i},c=n(30855),h={creator:a.ExcelCreator,getData:a.getData,formatConverter:d.default};t.excel=h;var f={creator:r.imageCreator,getData:r.getData,testFormats:r.testFormats};t.image=f;var p={getData:c.getData};t.pdf=p;var g={creator:s.svgCreator,getData:s.getData};t.svg=g},5332:function(e,t,n){t.ExportLoadPanel=void 0;var i=u(n(68374)),o=n(13306),a=u(n(28109)),r=n(35922),s=u(n(97218)),l=u(n(13615));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(e,t,n,o){this._$targetElement=t,this._$container=n,this._loadPanel=e._createComponent((0,i.default)("<div>").addClass("dx-export-loadpanel").appendTo(this._$container),s.default,this.getOptions(o))}var t=e.prototype;return t.getDefaultOptions=function(){return{animation:null,shading:!1,height:90,width:200,container:this._$container}},t.getOptions=function(e){return(0,r.isDefined)(e.text)?e.message=e.text:e.message=a.default.format("dxDataGrid-exporting"),(0,o.extend)(this.getDefaultOptions(),e)},t.show=function(){this._loadPanel.option("position",l.default.calculateLoadPanelPosition(this._$targetElement)),this._loadPanel.show()},t.dispose=function(){(0,i.default)(this._loadPanel.element()).remove(),delete this._loadPanel},e}();t.ExportLoadPanel=d},56985:function(e,t,n){t.default=void 0;var i,o=n(35922),a=(i=n(95320))&&i.__esModule?i:{default:i},r={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={vertical:e.vertical,wrapText:e.wrapText,horizontal:e.horizontal},r.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.horizontal&&(t.horizontal=e.horizontal),void 0!==e.vertical&&(t.vertical=e.vertical),void 0!==e.wrapText&&(t.wrapText=e.wrapText)),t},areEqual:function(e,t){return r.isEmpty(e)&&r.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.vertical===t.vertical&&e.wrapText===t.wrapText&&e.horizontal===t.horizontal},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.vertical)&&!(0,o.isDefined)(e.wrapText)&&!(0,o.isDefined)(e.horizontal)},toXml:function(e){return a.default.toXml("alignment",{vertical:e.vertical,wrapText:(0,o.isDefined)(e.wrapText)?Number(e.wrapText):void 0,horizontal:e.horizontal})}},s=r;t.default=s,e.exports=t.default,e.exports.default=t.default},2159:function(e,t,n){t.default=void 0;var i=n(35922),o=l(n(95320)),a=l(n(56985)),r=l(n(8808)),s=l(n(50394));function l(e){return e&&e.__esModule?e:{default:e}}var u={tryCreateTag:function(e,t){var n=null;if((0,i.isDefined)(e)){var o;o="number"==typeof e.numberFormat?e.numberFormat:t.registerNumberFormat(e.numberFormat);var s=e.fill;(0,i.isDefined)(s)||(s=r.default.tryCreateFillFromSimpleFormat(e)),n={numberFormatId:o,alignment:a.default.tryCreateTag(e.alignment),fontId:t.registerFont(e.font),fillId:t.registerFill(s)},u.isEmpty(n)&&(n=null)}return n},copy:function(e){var t;return null===e?t=null:(0,i.isDefined)(e)&&(t={},void 0!==e.numberFormat&&(t.numberFormat=e.numberFormat),void 0!==e.fill?t.fill=r.default.copy(e.fill):r.default.copySimpleFormat(e,t),void 0!==e.alignment&&(t.alignment=a.default.copy(e.alignment)),void 0!==e.font&&(t.font=s.default.copy(e.font))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,i.isDefined)(e)&&(0,i.isDefined)(t)&&e.fontId===t.fontId&&e.numberFormatId===t.numberFormatId&&e.fillId===t.fillId&&a.default.areEqual(e.alignment,t.alignment)},isEmpty:function(e){return!(0,i.isDefined)(e)||!(0,i.isDefined)(e.fontId)&&!(0,i.isDefined)(e.numberFormatId)&&!(0,i.isDefined)(e.fillId)&&a.default.isEmpty(e.alignment)},toXml:function(e){var t,n=a.default.isEmpty(e.alignment);return(0,i.isDefined)(e.numberFormatId)&&(t=e.numberFormatId>0?1:0),o.default.toXml("xf",{xfId:0,applyAlignment:n?null:1,fontId:e.fontId,applyNumberFormat:t,fillId:e.fillId,numFmtId:e.numberFormatId},n?null:a.default.toXml(e.alignment))}},d=u;t.default=d,e.exports=t.default,e.exports.default=t.default},21879:function(e,t,n){t.default=void 0;var i,o=n(35922),a=(i=n(95320))&&i.__esModule?i:{default:i},r={_tryConvertColor:function(e){if("string"!=typeof e)return e;var t;if(e.length>0&&"#"===e[0]){var n=e.substr(1,e.length);t=6===n.length?"FF"+n:8===n.length?n[6]+n[7]+n.substr(0,6):n}else t=e;return t},tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t="string"==typeof e?{rgb:this._tryConvertColor(e)}:{rgb:this._tryConvertColor(e.rgb),theme:e.theme},r.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&("string"==typeof e?t=e:(t={},void 0!==e.rgb&&(t.rgb=e.rgb),void 0!==e.theme&&(t.theme=e.theme))),t},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.rgb)&&!(0,o.isDefined)(e.theme)},areEqual:function(e,t){return r.isEmpty(e)&&r.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.rgb===t.rgb&&e.theme===t.theme},toXml:function(e,t){return a.default.toXml(e,{rgb:t.rgb,theme:t.theme})}},s=r;t.default=s,e.exports=t.default,e.exports.default=t.default},50587:function(e,t,n){t.default=void 0;var i=n(35922),o=u(n(95320)),a=u(n(2159)),r=u(n(8808)),s=u(n(50394)),l=u(n(10794));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(){this._cellFormatTags=[],this._fillTags=[],this._fontTags=[],this._numberFormatTags=[],this._fillTags.push(r.default.tryCreateTag({patternFill:{patternType:"none"}}))}var t=e.prototype;return t.registerCellFormat=function(e){var t,n=a.default.tryCreateTag(e,{registerFill:this.registerFill.bind(this),registerFont:this.registerFont.bind(this),registerNumberFormat:this.registerNumberFormat.bind(this)});if((0,i.isDefined)(n)){for(var o=0;o<this._cellFormatTags.length;o++)if(a.default.areEqual(this._cellFormatTags[o],n)){t=o;break}void 0===t&&(t=this._cellFormatTags.push(n)-1)}return t},e.copyCellFormat=function(e){return a.default.copy(e)},t.generateCellFormatsXml=function(){var e=this._cellFormatTags.map((function(e){return a.default.toXml(e)}));return o.default.toXml("cellXfs",{count:e.length},e.join(""))},t.registerFill=function(e){var t,n=r.default.tryCreateTag(e);if((0,i.isDefined)(n)){for(var o=0;o<this._fillTags.length;o++)if(r.default.areEqual(this._fillTags[o],n)){t=o;break}void 0===t&&(this._fillTags.length<2&&this._fillTags.push(r.default.tryCreateTag({patternFill:{patternType:"Gray125"}})),t=this._fillTags.push(n)-1)}return t},t.generateFillsXml=function(){var e=this._fillTags.map((function(e){return r.default.toXml(e)}));return o.default.toXml("fills",{count:e.length},e.join(""))},t.registerFont=function(e){var t,n=s.default.tryCreateTag(e);if((0,i.isDefined)(n)){for(var o=0;o<this._fontTags.length;o++)if(s.default.areEqual(this._fontTags[o],n)){t=o;break}void 0===t&&(t=this._fontTags.push(n)-1)}return t},t.generateFontsXml=function(){var e=this._fontTags.map((function(e){return s.default.toXml(e)}));return o.default.toXml("fonts",{count:e.length},e.join(""))},t._convertNumberFormatIndexToId=function(e){return 165+e},t.registerNumberFormat=function(e){var t,n=l.default.tryCreateTag(e);if((0,i.isDefined)(n)){for(var o=0;o<this._numberFormatTags.length;o++)if(l.default.areEqual(this._numberFormatTags[o],n)){t=this._numberFormatTags[o][l.default.ID_PROPERTY_NAME];break}void 0===t&&(n[l.default.ID_PROPERTY_NAME]=this._convertNumberFormatIndexToId(this._numberFormatTags.length),t=n[l.default.ID_PROPERTY_NAME],this._numberFormatTags.push(n))}return t},t.generateNumberFormatsXml=function(){if(this._numberFormatTags.length>0){var e=this._numberFormatTags.map((function(e){return l.default.toXml(e)}));return o.default.toXml("numFmts",{count:e.length},e.join(""))}return""},e}();t.default=d,e.exports=t.default,e.exports.default=t.default},8808:function(e,t,n){t.default=void 0;var i=n(35922),o=r(n(95320)),a=r(n(40027));function r(e){return e&&e.__esModule?e:{default:e}}var s={tryCreateTag:function(e){var t=null;return(0,i.isDefined)(e)&&(t={patternFill:a.default.tryCreateTag(e.patternFill)},s.isEmpty(t)&&(t=null)),t},tryCreateFillFromSimpleFormat:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.backgroundColor,n=e.fillPatternType,o=e.fillPatternColor;return!(0,i.isDefined)(t)||(0,i.isDefined)(n)&&(0,i.isDefined)(o)?(0,i.isDefined)(n)&&(0,i.isDefined)(o)?{patternFill:{patternType:n,foregroundColor:{rgb:o},backgroundColor:{rgb:t}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:t}}}},copySimpleFormat:function(e,t){void 0!==e.backgroundColor&&(t.backgroundColor=e.backgroundColor),void 0!==e.fillPatternType&&(t.fillPatternType=e.fillPatternType),void 0!==e.fillPatternColor&&(t.fillPatternColor=e.fillPatternColor)},copy:function(e){var t=null;return(0,i.isDefined)(e)&&(t={},void 0!==e.patternFill&&(t.patternFill=a.default.copy(e.patternFill))),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,i.isDefined)(e)&&(0,i.isDefined)(t)&&a.default.areEqual(e.patternFill,t.patternFill)},isEmpty:function(e){return!(0,i.isDefined)(e)||a.default.isEmpty(e.patternFill)},toXml:function(e){return o.default.toXml("fill",{},a.default.toXml(e.patternFill))}},l=s;t.default=l,e.exports=t.default,e.exports.default=t.default},50394:function(e,t,n){t.default=void 0;var i=n(35922),o=r(n(95320)),a=r(n(21879));function r(e){return e&&e.__esModule?e:{default:e}}var s={tryCreateTag:function(e){var t=null;return(0,i.isDefined)(e)&&(t={size:e.size,name:e.name,family:e.family,scheme:e.scheme,bold:e.bold,italic:e.italic,underline:e.underline,color:a.default.tryCreateTag(e.color)},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,i.isDefined)(e)&&(t={},void 0!==e.size&&(t.size=e.size),void 0!==e.name&&(t.name=e.name),void 0!==e.family&&(t.family=e.family),void 0!==e.scheme&&(t.scheme=e.scheme),void 0!==e.bold&&(t.bold=e.bold),void 0!==e.italic&&(t.italic=e.italic),void 0!==e.underline&&(t.underline=e.underline),void 0!==e.color&&(t.color=a.default.copy(e.color))),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,i.isDefined)(e)&&(0,i.isDefined)(t)&&e.size===t.size&&e.name===t.name&&e.family===t.family&&e.scheme===t.scheme&&(e.bold===t.bold||!e.bold==!t.bold)&&(e.italic===t.italic||!e.italic==!t.italic)&&e.underline===t.underline&&a.default.areEqual(e.color,t.color)},isEmpty:function(e){return!(0,i.isDefined)(e)||!(0,i.isDefined)(e.size)&&!(0,i.isDefined)(e.name)&&!(0,i.isDefined)(e.family)&&!(0,i.isDefined)(e.scheme)&&(!(0,i.isDefined)(e.bold)||!e.bold)&&(!(0,i.isDefined)(e.italic)||!e.italic)&&!(0,i.isDefined)(e.underline)&&a.default.isEmpty(e.color)},toXml:function(e){var t=[(0,i.isDefined)(e.bold)&&e.bold?o.default.toXml("b",{}):"",(0,i.isDefined)(e.size)?o.default.toXml("sz",{val:e.size}):"",(0,i.isDefined)(e.color)?a.default.toXml("color",e.color):"",(0,i.isDefined)(e.name)?o.default.toXml("name",{val:e.name}):"",(0,i.isDefined)(e.family)?o.default.toXml("family",{val:e.family}):"",(0,i.isDefined)(e.scheme)?o.default.toXml("scheme",{val:e.scheme}):"",(0,i.isDefined)(e.italic)&&e.italic?o.default.toXml("i",{}):"",(0,i.isDefined)(e.underline)?o.default.toXml("u",{val:e.underline}):""].join("");return o.default.toXml("font",{},t)}},l=s;t.default=l,e.exports=t.default,e.exports.default=t.default},10794:function(e,t,n){t.default=void 0;var i,o=n(35922),a=(i=n(95320))&&i.__esModule?i:{default:i},r={ID_PROPERTY_NAME:"id",tryCreateTag:function(e){var t=null;return"string"==typeof e&&(t={formatCode:e},r.isEmpty(t)&&(t=null)),t},areEqual:function(e,t){return r.isEmpty(e)&&r.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.formatCode===t.formatCode},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.formatCode)||""===e.formatCode},toXml:function(e){return a.default.toXml("numFmt",{numFmtId:e[r.ID_PROPERTY_NAME],formatCode:e.formatCode})}},s=r;t.default=s,e.exports=t.default,e.exports.default=t.default},40027:function(e,t,n){t.default=void 0;var i=n(35922),o=r(n(95320)),a=r(n(21879));function r(e){return e&&e.__esModule?e:{default:e}}var s={tryCreateTag:function(e){var t=null;return(0,i.isDefined)(e)&&(t={patternType:e.patternType,backgroundColor:a.default.tryCreateTag(e.backgroundColor),foregroundColor:a.default.tryCreateTag(e.foregroundColor)},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,i.isDefined)(e)&&(t={},void 0!==e.patternType&&(t.patternType=e.patternType),void 0!==e.backgroundColor&&(t.backgroundColor=a.default.copy(e.backgroundColor)),void 0!==e.foregroundColor&&(t.foregroundColor=a.default.copy(e.foregroundColor))),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,i.isDefined)(e)&&(0,i.isDefined)(t)&&e.patternType===t.patternType&&a.default.areEqual(e.backgroundColor,t.backgroundColor)&&a.default.areEqual(e.foregroundColor,t.foregroundColor)},isEmpty:function(e){return!(0,i.isDefined)(e)||!(0,i.isDefined)(e.patternType)},toXml:function(e){var t=[(0,i.isDefined)(e.foregroundColor)?a.default.toXml("fgColor",e.foregroundColor):"",(0,i.isDefined)(e.backgroundColor)?a.default.toXml("bgColor",e.backgroundColor):""].join("");return o.default.toXml("patternFill",{patternType:e.patternType},t)}},l=s;t.default=l,e.exports=t.default,e.exports.default=t.default},95320:function(e,t,n){t.default=void 0;var i=n(35922),o={toXml:function(e,t,n){var o=["<",e];for(var a in t){var r=t[a];(0,i.isDefined)(r)&&o.push(" ",a,'="',r,'"')}return(0,i.isDefined)(n)&&""!==n?o.push(">",n,"</",e,">"):o.push(" />"),o.join("")}};t.default=o,e.exports=t.default,e.exports.default=t.default},13571:function(e,t,n){t.ExcelCreator=void 0,t.getData=function(e,t){var n=new S(e,t);return n._checkZipState(),n.ready().then((function(){return n.getData((0,a.isFunction)((0,o.getWindow)().Blob))}))};var i=p(n(38377)),o=n(58201),a=n(35922),r=n(13306),s=p(n(96688)),l=n(68752),u=p(n(97405)),d=n(48351),c=p(n(45401)),h=p(n(50587)),f=n(62754);function p(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var m='<?xml version="1.0" encoding="utf-8"?>',_="http://schemas.openxmlformats.org",v="xl",y="sharedStrings.xml",x="styles.xml",b={boolean:"b",date:"d",number:"n",string:"s"},w=Date.UTC(1899,11,30),C={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},S=i.default.inherit({_getXMLTag:function(e,t,n){var i,o,r="<"+e,s=t.length;for(i=0;i<s;i++)void 0!==(o=t[i]).value&&(r=r+" "+o.name+'="'+o.value+'"');return(0,a.isDefined)(n)?r+">"+n+"</"+e+">":r+" />"},_convertToExcelCellRef:function(e,t){for(var n,i,o="";!i;)n=65+(t>=26?t%26:Math.ceil(t)),o=String.fromCharCode(n)+o,t>=26?t=Math.floor(t/26)-1:i=!0;return o+(e+1)},_convertToExcelCellRefAndTrackMaxIndex:function(e,t){return this._maxRowIndex<Number(e)&&(this._maxRowIndex=Number(e)),this._maxColumnIndex<Number(t)&&(this._maxColumnIndex=Number(t)),this._convertToExcelCellRef(e,t)},_getDataType:function(e){return b[e]||b.string},_tryGetExcelCellDataType:function(e){if((0,a.isDefined)(e)){if("number"==typeof e)return isFinite(e)?b.number:b.string;if((0,a.isString)(e))return b.string;if((0,a.isDate)(e))return b.number;if((0,a.isBoolean)(e))return b.boolean}},_formatObjectConverter:function(e,t){var n={format:e,precision:e&&e.precision,dataType:t};return(0,a.isObject)(e)?(0,r.extend)(n,e,{format:e.formatter||e.type,currency:e.currency}):n},_tryConvertToExcelNumberFormat:function(e,t){var n=this._formatObjectConverter(e,t);e=n.format;var i=n.currency;return t=n.dataType,(0,a.isDefined)(e)&&"date"===t&&(e=C[e&&e.type||e]||e),c.default.convertFormat(e,n.precision,t,i)},_appendString:function(e){if((0,a.isDefined)(e)&&(e=String(e)).length)return e=(0,l.encodeHtml)(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_tryGetExcelDateValue:function(e){var t;if((0,a.isDate)(e))return(t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-w)/864e5))<60&&t--,t+(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400},_prepareValue:function(e,t){var n,i=this._dataProvider,o=(i.getCellData(e,t)||{}).cellSourceData,r=(i.getCellData(e,t)||{}).value,s=this._getDataType(i.getCellType(e,t));switch(s!==b.date||(0,a.isDate)(r)||(s=b.string),s){case b.string:n=r,r=this._appendString(r);break;case b.date:n=r,r=this._tryGetExcelDateValue(r),s=b.number}return{value:r,type:s,sourceValue:n,cellSourceData:o}},_callCustomizeExcelCell:function(e){var t=e.dataProvider,n=e.value,i=e.style,o=e.sourceData,r=h.default.copyCellFormat(i),s={value:n,numberFormat:r.numberFormat,clearStyle:function(){this.horizontalAlignment=null,this.verticalAlignment=null,this.wrapTextEnabled=null,this.font=null,this.numberFormat=null}};(0,a.isDefined)(r)&&((0,a.isDefined)(r.alignment)&&(s.horizontalAlignment=r.alignment.horizontal,s.verticalAlignment=r.alignment.vertical,s.wrapTextEnabled=r.alignment.wrapText),s.backgroundColor=r.backgroundColor,s.fillPatternType=r.fillPatternType,s.fillPatternColor=r.fillPatternColor,s.font=r.font),t.customizeExcelCell(s,o);var l=r||{};return l.font=s.font,l.alignment=l.alignment||{},l.alignment.horizontal=s.horizontalAlignment,l.alignment.vertical=s.verticalAlignment,l.alignment.wrapText=s.wrapTextEnabled,l.backgroundColor=s.backgroundColor,l.fillPatternType=s.fillPatternType,l.fillPatternColor=s.fillPatternColor,l.numberFormat=s.numberFormat,{value:s.value,style:l}},_getDataArray:function(){var e,t,n,i,o,r=this,s=[],l=r._dataProvider,u=l.getRowsCount(),d=l.getColumns();for(e=0;e<u;e++){for(n=[],o=d.length,t=0;t!==o;t++){i=r._prepareValue(e,t);var c=l.getStyleId(e,t),h=this._styleArrayIndexToCellStyleIdMap[c];if(l.hasCustomizeExcelCell&&l.hasCustomizeExcelCell()){var f=i.sourceValue||i.value,p=this._callCustomizeExcelCell({dataProvider:l,value:f,style:r._styleArray[c],sourceData:i.cellSourceData});if(p.value!==f){if(g(p.value)!==g(f)||"number"==typeof p.value&&!isFinite(p.value)){var m=this._tryGetExcelCellDataType(p.value);(0,a.isDefined)(m)&&(i.type=m)}switch(i.type){case b.string:i.value=this._appendString(p.value);break;case b.date:i.value=p.value;break;case b.number:var _=p.value,v=this._tryGetExcelDateValue(_);(0,a.isDefined)(v)&&(_=v),i.value=_;break;default:i.value=p.value}}h=this._excelFile.registerCellFormat(p.style)}n.push({style:h,value:i.value,type:i.type})}!r._needSheetPr&&l.getGroupLevel(e)>0&&(r._needSheetPr=!0),s.push(n)}return s},_calculateWidth:function(e){return(!(e=parseInt(e,10))||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/7*100+.5)/100)},_prepareStyleData:function(){var e=this,t=this,n=t._dataProvider.getStyles();t._dataProvider.getColumns().forEach((function(e){t._colsArray.push(t._calculateWidth(e.width))}));var i=[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!1},{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!0}];this._excelFile.registerFont(i[0]),this._excelFile.registerFont(i[1]),n.forEach((function(e){var n=t._tryConvertToExcelNumberFormat(e.format,e.dataType);(0,a.isDefined)(n)||(n=0),t._styleArray.push({font:i[Number(!!e.bold)],numberFormat:n,alignment:{vertical:"top",wrapText:!!e.wrapText,horizontal:e.alignment||"left"}})})),t._styleArrayIndexToCellStyleIdMap=t._styleArray.map((function(t){return e._excelFile.registerCellFormat(t)}))},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:_+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:_+"/officeDocument/2006/relationships/"+t},{name:"Target",value:n}])},_getWorkbookContent:function(){return m+this._getXMLTag("workbook",[{name:"xmlns:r",value:_+"/officeDocument/2006/relationships"},{name:"xmlns",value:_+"/spreadsheetml/2006/main"}],'<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>')},_getContentTypesContent:function(){return m+'<Types xmlns="'+_+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var e=this,t=e._zip.folder(v),n="";n+=this._excelFile.generateNumberFormatsXml(),n+=this._excelFile.generateFontsXml(),n+=this._excelFile.generateFillsXml(),n+='<borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',n+=this._excelFile.generateCellFormatsXml(),n+=e._getXMLTag("cellStyles",[{name:"count",value:1}],e._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),n=m+e._getXMLTag("styleSheet",[{name:"xmlns",value:_+"/spreadsheetml/2006/main"}],n),t.file(x,n),e._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(v),n=this._stringArray.length,i=m;for(e=0;e<n;e++)this._stringArray[e]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[e]));i+=this._getXMLTag("sst",[{name:"xmlns",value:_+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(y,i),this._stringArray=[]},_getPaneXML:function(){var e=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],t=this._dataProvider.getFrozenArea();return t.x||t.y?(t.x&&e.push({name:"xSplit",value:t.x}),t.y&&e.push({name:"ySplit",value:t.y}),e.push({name:"topLeftCell",value:this._convertToExcelCellRefAndTrackMaxIndex(t.y,t.x)}),this._getXMLTag("pane",e)):""},_getAutoFilterXML:function(e){return this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+e+'" />':""},_getIgnoredErrorsXML:function(e){return this._options.ignoreErrors?'<ignoredErrors><ignoredError sqref="A1:'+e+'" numberStoredAsText="1" /></ignoredErrors>':""},_generateWorksheetXML:function(){var e,t,n,i,o,r=[],s=this._cellsArray.length,l=this._colsArray.length,u="1:"+l,d=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,c=['<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">'];for(c.push(this._needSheetPr?'<sheetPr><outlinePr summaryBelow="0"/></sheetPr>':"<sheetPr/>"),c.push('<dimension ref="A1:C1"/>'),c.push("<sheetViews><sheetView "),c.push(this._rtlEnabled?'rightToLeft="1" ':""),c.push('tabSelected="1" workbookViewId="0">'),c.push(this._getPaneXML()),c.push("</sheetView></sheetViews>"),c.push('<sheetFormatPr defaultRowHeight="15"'),c.push(' outlineLevelRow="'+(this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0)+'"'),c.push(' x14ac:dyDescent="0.25"/>'),e=0;e<l;e++)this._colsArray[e]=this._getXMLTag("col",[{name:"width",value:this._colsArray[e]},{name:"min",value:Number(e)+1},{name:"max",value:Number(e)+1},{name:"customWidth",value:1}]);for(c.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<s;t++){for(i=[],o=this._cellsArray[t].length,e=0;e<o;e++)t=Number(t),n=this._cellsArray[t][e],i.push(this._getXMLTag("c",[{name:"r",value:this._convertToExcelCellRefAndTrackMaxIndex(t,e)},{name:"s",value:n.style},{name:"t",value:n.type}],(0,a.isDefined)(n.value)?this._getXMLTag("v",[],n.value):null));r.push(this._getXMLTag("row",[{name:"r",value:Number(t)+1},{name:"spans",value:u},{name:"outlineLevel",value:t>=d?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,r.length>1e4&&(c.push(r.join("")),r=[])}c.push(r.join("")),r=[];var h=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex);c.push("</sheetData>"+this._getAutoFilterXML(h)+this._generateMergingXML()+this._getIgnoredErrorsXML(h)+"</worksheet>"),this._zip.folder(v).folder("worksheets").file("sheet1.xml",c.join("")),this._colsArray=[],this._cellsArray=[],c=[]},_generateMergingXML:function(){var e,t,n,i,o,r=(0,a.isDefined)(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),s=this._dataProvider.getColumns().length,l=[],u=[],d="";for(i=0;i<r;i++)for(n=0;n!==s;n++)if(!(0,a.isDefined)(l[i])||!(0,a.isDefined)(l[i][n])){var c=this._dataProvider.getCellMerging(i,n);if(c.colspan||c.rowspan)for(u.push({start:this._convertToExcelCellRefAndTrackMaxIndex(i,n),end:this._convertToExcelCellRefAndTrackMaxIndex(i+(c.rowspan||0),n+(c.colspan||0))}),e=i;e<=i+c.rowspan;e++)for(t=n;t<=n+c.colspan;t++)(0,a.isDefined)(l[e])||(l[e]=[]),l[e][t]=!0}var h=u.length;for(o=0;o<h;o++)d+=this._getXMLTag("mergeCell",[{name:"ref",value:u[o].start+":"+u[o].end}]);return d.length?this._getXMLTag("mergeCells",[{name:"count",value:h}],d):""},_generateCommonXML:function(){var e=m+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/workbook.xml")),t=this._zip.folder(v),n=m;this._zip.folder("_rels").file(".rels",e);var i=this._createXMLRelationship(1,"worksheet","worksheets/sheet1.xml")+this._createXMLRelationship(2,"styles",x)+this._createXMLRelationship(3,"sharedStrings",y);n+=this._createXMLRelationships(i),t.folder("_rels").file("workbook.xml.rels",n),t.file("workbook.xml",this._getWorkbookContent()),this._zip.file("[Content_Types].xml",this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(e,t){this._rtlEnabled=t&&!!t.rtlEnabled,this._options=t,this._maxRowIndex=0,this._maxColumnIndex=0,this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._needSheetPr=!1,this._dataProvider=e,this._excelFile=new h.default,(0,a.isDefined)(S.JSZip)?this._zip=new S.JSZip:this._zip=null},_checkZipState:function(){if(!this._zip)throw s.default.Error("E1041","JSZip")},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:d.MIME_TYPES.EXCEL},n=new f.Deferred;return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(t).then(n.resolve):n.resolve(this._zip.generate(t)),n}});t.ExcelCreator=S,S.JSZip=u.default},45401:function(e,t,n){t.default=void 0;var i=n(68752),o=u(n(18016)),a=u(n(91500)),r=n(35922),s=n(59937),l=n(9821);function u(e){return e&&e.__esModule?e:{default:e}}n(89740);var d={thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},c=/a+/g,h=/E/g,f=/dE+/g,p=/L/g,g=/h/g,m=/./g,_={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""},_hasArabicDigits:function(e){for(var t,n=0;n<e.length;n++)if((t=e.charCodeAt(n))>=1632&&t<1642)return!0;return!1},_convertDateFormatToOpenXml:function(e){return e.split("/").join("\\/").split("'").map((function(e,t){return t%2==0?e.replace(c,"AM/PM").replace(f,"d").replace(h,"d").replace(p,"M").replace(g,"H").split("[").join("\\[").split("]").join("\\]"):e?e.replace(m,"\\$&"):"'"})).join("")},_convertDateFormat:function(e){var t=(a.default.format(new Date(2009,8,8,6,5,4),e)||"").toString(),n=(0,s.getFormat)((function(t){return a.default.format(t,e)}));return n&&(n=this._convertDateFormatToOpenXml(n),n=this._getLanguageInfo(t)+n),n},_getLanguageInfo:function(e){var t=(0,l.getLanguageId)(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var a,r;return(r="currency"===e?o.default.getOpenXmlCurrencyFormat(n):d[e.toLowerCase()])&&(a=(0,i.format)(r,this._applyPrecision(e,t))),a},convertFormat:function(e,t,n,i){if((0,r.isDefined)(e)){if("date"===n)return _._convertDateFormat(e);if((0,r.isString)(e)&&d[e.toLowerCase()])return _._convertNumberFormat(e,t,i)}}},v=_;t.default=v,e.exports=t.default,e.exports.default=t.default},11385:function(e,t,n){t.Export=void 0;var i=n(35922),o=n(38526),a=n(31980),r=n(13306),s=n(5332),l=n(58201),u={getFullOptions:function(e){var t=(0,r.extend)({},e);if(!(0,i.isDefined)(t.worksheet)||!(0,i.isObject)(t.worksheet))throw Error('The "worksheet" field must contain an object.');if((0,i.isDefined)(t.topLeftCell)){if((0,i.isString)(t.topLeftCell)){var n=t.worksheet.getCell(t.topLeftCell),o=n.row,a=n.col;t.topLeftCell={row:o,column:a}}}else t.topLeftCell={row:1,column:1};return(0,i.isDefined)(t.keepColumnWidths)||(t.keepColumnWidths=!0),(0,i.isDefined)(t.loadPanel)||(t.loadPanel={}),(0,i.isDefined)(t.loadPanel.enabled)||(t.loadPanel.enabled=!0),t},convertDateForExcelJS:function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},setNumberFormat:function(e,t){e.numFmt=t},getCellStyles:function(e){var t=this,n=e.getStyles();return n.forEach((function(e){var n=t.tryConvertToExcelNumberFormat(e.format,e.dataType);(0,i.isDefined)(n)&&(n=n.replace(/&quot;/g,'"')),e.numberFormat=n})),n},tryConvertToExcelNumberFormat:function(e,t){var n=o.ExportFormat.formatObjectConverter(e,t),i=n.currency;return e=n.format,t=n.dataType,o.ExportFormat.convertFormat(e,n.precision,t,i)},setAlignment:function(e,t,n){e.alignment=e.alignment||{},(0,i.isDefined)(t)&&(e.alignment.wrapText=t),(0,i.isDefined)(n)&&(e.alignment.horizontal=n),e.alignment.vertical="top"},setColumnsWidth:function(e,t,n){if((0,i.isDefined)(t))for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a&&isFinite(a)&&(e.getColumn(n+o).width=Math.min(255,Math.floor(a/7*100)/100))}},export:function(e,t){var n,i,o=this,u=e.customizeCell,d=e.component,c=e.worksheet,h=e.topLeftCell,f=e.autoFilterEnabled,p=e.keepColumnWidths,g=e.selectedRowsOnly,m=e.loadPanel,_=e.mergeRowFieldValues,v=e.mergeColumnFieldValues,y=((null===(n=d._getInternalInstance)||void 0===n?void 0:n.call(d))||d).option("loadPanel").enabled;if(d.option("loadPanel.enabled",!1),m.enabled&&(0,l.hasWindow)()){var x=t._getLoadPanelTargetElement(d),b=t._getLoadPanelContainer(d);(i=new s.ExportLoadPanel(d,x,b,m)).show()}var w=!!d.option("wordWrapEnabled");c.properties.outlineProperties={summaryBelow:!1,summaryRight:!1};var C={from:{row:h.row,column:h.column},to:{row:h.row,column:h.column}},S=d.getDataProvider(g);return new Promise((function(e){S.ready().done((function(){var n=S.getColumns(),i=S.getRowsCount();p&&o.setColumnsWidth(c,S.getColumnsWidths(),C.from.column);for(var s=new a.MergedRangesManager(S,t,_,v),l=o.getCellStyles(S),h=0;h<i;h++){var g=c.getRow(C.from.row+h);t._trySetOutlineLevel(S,g,h),o.exportRow(S,t,s,h,n.length,g,C.from.column,u,w,l),h>=1&&C.to.row++}s.applyMergedRages(c),C.to.column+=n.length>0?n.length-1:0;var m=c.views[0]||{};d.option("rtlEnabled")&&(m.rightToLeft=!0),t._isFrozenZone(S)&&(-1===Object.keys(m).indexOf("state")&&(0,r.extend)(m,t._getWorksheetFrozenState(S,C)),t._trySetAutoFilter(S,c,C,f)),Object.keys(m).length>0&&(c.views=[m]),e(C)})).always((function(){d.option("loadPanel.enabled",y),m.enabled&&(0,l.hasWindow)()&&i.dispose()}))}))},exportRow:function(e,t,n,o,a,r,s,l,u,d){for(var c=0;c<a;c++){var h=e.getCellData(o,c,!0),f=r.getCell(s+c);n.updateMergedRanges(f,o,c);var p=n.findMergedCellInfo(o,c);if((0,i.isDefined)(p)&&f!==p.masterCell)f.style=p.masterCell.style,f.value=p.masterCell.value;else if((0,i.isDate)(h.value)?f.value=this.convertDateForExcelJS(h.value):f.value=h.value,(0,i.isDefined)(f.value)){var g=d[e.getStyleId(o,c)],m=g.bold,_=g.alignment,v=g.numberFormat;(0,i.isDefined)(v)?this.setNumberFormat(f,v):(0,i.isString)(f.value)&&/^[@=+-]/.test(f.value)&&this.setNumberFormat(f,"@"),t._trySetFont(f,m),this.setAlignment(f,u,_)}(0,i.isFunction)(l)&&l(t._getCustomizeCellOptions(f,h.cellSourceData))}}};t.Export=u},8572:function(e,t,n){t.exportDataGrid=function(e){return a.Export.export(function(e){if(!(0,o.isDefined)(e)||!(0,o.isObject)(e))throw Error('The "exportDataGrid" method requires a configuration object.');if(!(0,o.isDefined)(e.component)||!(0,o.isObject)(e.component)||"dxDataGrid"!==e.component.NAME)throw Error('The "component" field must contain a DataGrid instance.');return(0,o.isDefined)(e.selectedRowsOnly)||(e.selectedRowsOnly=!1),(0,o.isDefined)(e.autoFilterEnabled)||(e.autoFilterEnabled=!1),a.Export.getFullOptions(e)}(e),s)};var i,o=n(35922),a=n(11385),r=(i=n(17381))&&i.__esModule?i:{default:i},s={_trySetAutoFilter:function(e,t,n,i){if(i&&!(0,o.isDefined)(t.autoFilter)&&e.getRowsCount()>0){var a={from:{row:n.from.row+e.getHeaderRowCount()-1,column:n.from.column},to:n.to};t.autoFilter=a}},_trySetFont:function(e,t){(0,o.isDefined)(t)&&(e.font=e.font||{},e.font.bold=t)},_getWorksheetFrozenState:function(e,t){return{state:"frozen",ySplit:t.from.row+e.getFrozenArea().y-1}},_trySetOutlineLevel:function(e,t,n){n>=e.getHeaderRowCount()&&(t.outlineLevel=e.getGroupLevel(n))},_getCustomizeCellOptions:function(e,t){var n={excelCell:e,gridCell:t};return Object.defineProperty(n,"cell",{get:function(){return r.default.log("W0003","CustomizeCell handler argument","cell","20.1","Use the 'excelCell' field instead"),e}}),n},_isFrozenZone:function(e){return e.getHeaderRowCount()>0},_isHeaderCell:function(e,t){return t<e.getHeaderRowCount()},_allowToMergeRange:function(){return!0},_getLoadPanelTargetElement:function(e){return e.getView("rowsView").element()},_getLoadPanelContainer:function(e){return e.getView("rowsView").element().parent()}}},38526:function(e,t,n){t.ExportFormat=void 0;var i=n(68752),o=d(n(18016)),a=d(n(91500)),r=n(35922),s=n(59937),l=n(9821),u=n(13306);function d(e){return e&&e.__esModule?e:{default:e}}n(89740);var c={thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},h=/a+/g,f=/E/g,p=/dE+/g,g=/L/g,m=/h/g,_=/./g;function v(e){var t=(a.default.format(new Date(2009,8,8,6,5,4),e)||"").toString(),n=(0,s.getFormat)((function(t){return a.default.format(t,e)}));return n&&(n=function(e){return e.split("/").join("\\/").split("'").map((function(e,t){return t%2==0?e.replace(h,"AM/PM").replace(p,"d").replace(f,"d").replace(g,"M").replace(m,"H").split("[").join("\\[").split("]").join("\\]"):e?e.replace(_,"\\$&"):"'"})).join("")}(n),n=function(e){var t=(0,l.getLanguageId)(),n=t?t.toString(16):"",i="";if(function(e){for(var t,n=0;n<e.length;n++)if((t=e.charCodeAt(n))>=1632&&t<1642)return!0;return!1}(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i}(t)+n),n}var y={formatObjectConverter:function(e,t){var n={format:e,precision:e&&e.precision,dataType:t};return(0,r.isObject)(e)?(0,u.extend)(n,e,{format:e.formatter||e.type,currency:e.currency}):n},convertFormat:function(e,t,n,a){if((0,r.isDefined)(e)){if("date"===n)return v(e);if((0,r.isString)(e)&&c[e.toLowerCase()])return function(e,t,n){var a,r;return(r="currency"===e?o.default.getOpenXmlCurrencyFormat(n):c[e.toLowerCase()])&&(a=(0,i.format)(r,function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""}(e,t))),a}(e,t,a)}}};t.ExportFormat=y},31980:function(e,t){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}t.MergedRangesManager=void 0;var i=function(){function e(e,t,n,i){this.mergedCells=[],this.mergedRanges=[],this.dataProvider=e,this.helpers=t,this.mergeRowFieldValues=n,this.mergeColumnFieldValues=i}var t=e.prototype;return t.updateMergedRanges=function(e,t,i){if(this.helpers._isHeaderCell(this.dataProvider,t,i)&&!this.isCellInMergedRanges(t,i)){var o=this.dataProvider.getCellMerging(t,i),a=o.rowspan,r=o.colspan;if(r||a){var s=this.helpers._allowToMergeRange(this.dataProvider,t,i,a,r,this.mergeRowFieldValues,this.mergeColumnFieldValues);this.updateMergedCells(e,t,i,a,r,s),s&&this.mergedRanges.push(n({masterCell:e},{rowspan:a,colspan:r}))}}},t.isCellInMergedRanges=function(e,t){return this.mergedCells[e]&&this.mergedCells[e][t]},t.findMergedCellInfo=function(e,t){if(this.helpers._isHeaderCell(this.dataProvider,e,t)&&this.isCellInMergedRanges(e,t))return this.mergedCells[e][t]},t.updateMergedCells=function(e,t,n,i,o,a){for(var r=t;r<=t+i;r++)for(var s=n;s<=n+o;s++)this.mergedCells[r]||(this.mergedCells[r]=[]),this.mergedCells[r][s]={masterCell:e,unmerged:!a}},t.applyMergedRages=function(e){this.mergedRanges.forEach((function(t){var n=t.masterCell.fullAddress.row,i=t.masterCell.fullAddress.col,o=n+t.rowspan,a=i+t.colspan;e.mergeCells(n,i,o,a)}))},e}();t.MergedRangesManager=i},77328:function(e,t,n){t.exportPivotGrid=function(e){return o.Export.export(function(e){if(!(0,i.isDefined)(e)||!(0,i.isObject)(e))throw Error('The "exportPivotGrid" method requires a configuration object.');if(!(0,i.isDefined)(e.component)||!(0,i.isObject)(e.component)||"dxPivotGrid"!==e.component.NAME)throw Error('The "component" field must contain a PivotGrid instance.');return(0,i.isDefined)(e.mergeRowFieldValues)||(e.mergeRowFieldValues=!0),(0,i.isDefined)(e.mergeColumnFieldValues)||(e.mergeColumnFieldValues=!0),o.Export.getFullOptions(e)}(e),r)};var i=n(35922),o=n(11385),a=n(20576),r={_getWorksheetFrozenState:function(e,t){return{state:"frozen",xSplit:t.from.column+e.getFrozenArea().x-1,ySplit:t.from.row+e.getFrozenArea().y-1}},_getCustomizeCellOptions:function(e,t){return{excelCell:e,pivotCell:t}},_isFrozenZone:function(){return!0},_isHeaderCell:function(e,t,n){return t<e.getColumnAreaRowCount()||n<e.getRowAreaColCount()},_allowToMergeRange:function(e,t,n,i,o,a,r){return!(e.isColumnAreaCell(t,n)&&!r&&o||e.isRowAreaCell(t,n)&&!a&&i)},_getLoadPanelTargetElement:function(e){return e._dataArea.groupElement()},_getLoadPanelContainer:function(e){return e.$element()},_trySetAutoFilter:a.noop,_trySetFont:a.noop,_trySetOutlineLevel:a.noop}},48351:function(e,t,n){t.fileSaver=t.MIME_TYPES=void 0;var i=d(n(68374)),o=d(n(73349)),a=n(58201),r=d(n(55994)),s=d(n(96688)),l=n(35922),u=n(30869);function d(e){return e&&e.__esModule?e:{default:e}}var c=(0,a.getWindow)(),h=(0,a.getNavigator)(),f={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},p={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};t.MIME_TYPES=p;var g={_revokeObjectURLTimeout:3e4,_getDataUri:function(e,t){var n=this._getMimeType(e);return"data:".concat(n,";base64,").concat(t)},_getMimeType:function(e){return p[e]||"application/octet-stream"},_linkDownloader:function(e,t){var n=o.default.createElement("a");return n.download=e,n.href=t,n.target="_blank",n},_formDownloader:function(e,t,n,a){var s={method:"post",action:e,enctype:"multipart/form-data"},l=(0,i.default)("<form>").css({display:"none"}).attr(s);function u(e,t){for(var n in t)e.setAttribute(n,t[n]);return e}l.append(u(o.default.createElement("input"),{type:"hidden",name:"fileName",value:t})),l.append(u(o.default.createElement("input"),{type:"hidden",name:"contentType",value:n})),l.append(u(o.default.createElement("input"),{type:"hidden",name:"data",value:a})),l.appendTo("body"),r.default.trigger(l,"submit"),r.default.trigger(l,"submit")&&l.remove()},_saveByProxy:function(e,t,n,i){var o=this._getMimeType(n);return this._formDownloader(e,t,o,i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary;var o=f[n];if(o){var a=this._getMimeType(n);i.fileTypeChoices.insert(a,["."+o])}i.suggestedFileName=t,i.pickSaveFileAsync().then((function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then((function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then((function(){t.flushAsync().done((function(){n.close(),t.close()}))}))}))}))},_click:function(e){try{e.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}catch(n){var t=o.default.getDocument().createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,c,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}},_saveBlobAs:function(e,t,n){var i=this;if(this._blobSaved=!1,(0,l.isDefined)(h.msSaveOrOpenBlob))h.msSaveOrOpenBlob(n,e),this._blobSaved=!0;else if((0,l.isDefined)(c.WinJS))this._winJSBlobSave(n,e,t),this._blobSaved=!0;else{var o=c.URL||c.webkitURL||c.mozURL||c.msURL||c.oURL;if((0,l.isDefined)(o)){var a=o.createObjectURL(n),r=this._linkDownloader(e,a);setTimeout((function(){o.revokeObjectURL(a),i._objectUrlRevoked=!0}),this._revokeObjectURLTimeout),this._click(r)}else u.logger.warn("window.URL || window.webkitURL || window.mozURL || window.msURL || window.oURL is not defined")}},saveAs:function(e,t,n,i,o){var a=f[t];if(a&&(e+="."+a),(0,l.isDefined)(i)&&s.default.log("W0001","Export","proxyURL","19.2","This option is no longer required"),o)this._saveByProxy(i,e,t,n);else if((0,l.isFunction)(c.Blob))this._saveBlobAs(e,t,n);else if((0,l.isDefined)(i)&&!(0,l.isDefined)(h.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{(0,l.isDefined)(h.userAgent.match(/iPad/i))||s.default.log("E1034");var r=this._linkDownloader(e,this._getDataUri(t,n));this._click(r)}}};t.fileSaver=g},12173:function(e,t,n){t.calcScaledInfo=W,t.getData=function(e,t){return z.getData(e,t)},t.imageCreator=void 0,t.testFormats=function(e){var t=z._createCanvas(100,100,0);return e.reduce((function(e,n){var i=("image/"+n).toLowerCase();return-1!==t.toDataURL(i).indexOf(i)?e.supported.push(n):e.unsupported.push(n),e}),{supported:[],unsupported:[]})};var i=p(n(68374)),o=p(n(52752)),a=n(35922),r=n(19155),s=n(95479),l=n(13306),u=p(n(73349)),d=n(3532),c=n(58201),h=n(78008),f=n(62754);function p(e){return e&&e.__esModule?e:{default:e}}var g,m=(0,c.getWindow)(),_=Math,v=_.PI,y=_.min,x=_.abs,b=_.sqrt,w=_.pow,C=_.atan2,S=_.cos,k=_.sin,D=Number;function I(e,t,n,i,o,a,r,s){var l=(e+n)/2,u=(t+i)/2,d=C(t-i,e-n),c=a?1:-1;d+=v/180*90*(r?1:-1);var h=b(w(n-e,2)+w(i-t,2))/2,f=b(x(w(o,2)-w(h,2))),p=l+c*(f*S(d)),g=u+c*(f*k(d)),m=C(t-g,e-p),_=C(i-g,n-p);s.arc(p,g,o,m,_,!r)}function T(e,t){var n,i=g(e.attributes||{}),o=(0,l.extend)({},i,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===i["text-anchor"]?"center":i["text-anchor"]}),r=i.transform;return r&&((n=r.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.translateX=D(n[0]),o.translateY=n[1]?D(n[1]):0),(n=r.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/))&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.rotationAngle=D(n[0]),o.rotationX=n[1]&&D(n[1]),o.rotationY=n[2]&&D(n[2])),(n=r.match(/scale\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.scaleX=D(n[0]),n.length>1?o.scaleY=D(n[1]):o.scaleY=o.scaleX)),function(e,t,n){var i,o=e.style||{};for(i in o)""!==o[i]&&(t[(0,h.camelize)(i)]=o[i]);n&&u.default.isElementNode(e)&&(o=m.getComputedStyle(e),["fill","stroke","stroke-width","font-family","font-size","font-style","font-weight"].forEach((function(e){e in o&&""!==o[e]&&(t[(0,h.camelize)(e)]=o[e])})),["opacity","fill-opacity","stroke-opacity"].forEach((function(e){e in o&&""!==o[e]&&"1"!==o[e]&&(t[e]=D(o[e]))}))),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=(0,a.isDefined)(t.opacity)?t.opacity:t.globalAlpha}(e,o,t),o}function E(e){var t=e&&e.match(/url\(.*#(.*?)["']?\)/i);return t&&t[1]}function A(e,t){var n=[];t.fontSize=t.fontSize||"10px",t.fontFamily=t.fontFamily||"sans-serif",t.fill=t.fill||"#000",t.fontStyle&&n.push(t.fontStyle),t.fontWeight&&n.push(t.fontWeight),n.push(t.fontSize),n.push(t.fontFamily),e.font=n.join(" "),e.textAlign=t.textAlign,e.fillStyle=t.fill,e.globalAlpha=t.globalAlpha}function O(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("tspan"===t[n].tagName)return!0;return!1}function P(e,t,n,i){var o=e.tagName,a="text"===o||"tspan"===o||void 0===o,s="image"===o,u=(0,l.extend)({},n,T(e,i.rootAppended));if("hidden"!==u.visibility&&!u[r.HIDDEN_FOR_EXPORT]){var d;switch(t.save(),!s&&R(t,u),B(t,u,i),function(e){e.strokeOpacity=void 0!==e["stroke-opacity"]?e["stroke-opacity"]:1,e.fillOpacity=void 0!==e["fill-opacity"]?e["fill-opacity"]:1,void 0!==e.opacity&&(e.strokeOpacity*=e.opacity,e.fillOpacity*=e.opacity)}(u),t.beginPath(),e.tagName){case void 0:!function(e,t,n){A(e,t),M(e,t,n),t.text&&e.fillText(t.text,t.x||0,t.y||0),L(e,t,!0),function(e,t,n){if(t.textDecoration&&"none"!==t.textDecoration){var i=t.x,o=e.measureText(t.text).width,a=parseInt(t.fontSize,10),r=.05*a<1?1:.05*a,s=t.y;switch(t.textDecoration){case"line-through":s-=a/3+r/2;break;case"overline":s-=a-r;break;case"underline":s+=r}e.rect(i,s,o,r),H(e,t,n),L(e,t)}}(e,t,n)}(t,u,i);break;case"text":case"tspan":!function e(t,n,i,o){for(var a,r=[],s=0,u=0;u<t.length;u++){var d=t[u];if(void 0===d.tagName)P(d,n,i,o);else if("tspan"===d.tagName||"text"===d.tagName){var c=T(d,o.rootAppended),h=(0,l.extend)({},i,c);if("tspan"===d.tagName&&O(d)){e(d.childNodes,n,h,o);continue}h.textAlign="start",a&&void 0===c.x||(a={elements:[],options:[],widths:[],offsets:[]},r.push(a)),void 0!==c.y&&(s=0),void 0!==c.dy&&(s+=parseFloat(c.dy)),a.elements.push(d),a.options.push(h),a.offsets.push(s),A(n,h),a.widths.push(n.measureText(h.text).width)}}r.forEach((function(t){var a=t.widths.reduce((function(e,t){return e+t}),0),r=0,s=0;"center"===i.textAlign&&(r=a/2),"end"===i.textAlign&&(r=a),t.options.forEach((function(e,n){var i=t.widths[n];e.x=e.x-r+s,e.y+=t.offsets[n],s+=i})),t.elements.forEach((function(i,a){e(i.childNodes,n,t.options[a],o)}))}))}(e.childNodes,t,u,i);break;case"image":d=function(e,t,n){var i=new f.Deferred,o=new m.Image;return o.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,R(e,t),B(e,t,n),e.drawImage(o,t.x,t.y,t.width,t.height),e.restore(),i.resolve()},o.onerror=function(){i.resolve()},o.setAttribute("crossOrigin","anonymous"),o.src=t.href||t["xlink:href"],i}(t,u,i);break;case"path":!function(e,t){var n,i,o,a=t.replace(/,/g," ").split(/([A-Z])/i).filter((function(e){return""!==e.trim()})),r=0;do{switch(n=(a[r+1]||"").trim().split(" "),a[r]){case"M":e.moveTo(D(n[0]),D(n[1])),r+=2;break;case"L":for(var s=0;s<n.length/2;s++)e.lineTo(D(n[2*s]),D(n[2*s+1]));r+=2;break;case"C":e.bezierCurveTo(D(n[0]),D(n[1]),D(n[2]),D(n[3]),D(n[4]),D(n[5])),r+=2;break;case"a":o=(i=a[r-1].trim().split(" ")).length-1,I(D(i[o-1]),D(i[o]),D(i[o-1])+D(n[5]),D(i[o])+D(n[6]),D(n[0]),D(n[3]),D(n[4]),e),r+=2;break;case"A":o=(i=a[r-1].trim().split(" ")).length-1,I(D(i[o-1]),D(i[o]),D(n[5]),D(n[6]),D(n[0]),D(n[3]),D(n[4]),e),r+=2;break;case"Z":e.closePath(),r+=1;break;default:r++}}while(r<a.length)}(t,u.d);break;case"rect":!function(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,r=t.rx;r?(r=y(r,o/2,a/2),e.save(),e.translate(n,i),e.moveTo(o/2,0),e.arcTo(o,0,o,a,r),e.arcTo(o,a,0,a,r),e.arcTo(0,a,0,0,r),e.arcTo(0,0,r,0,r),e.lineTo(o/2,0),e.restore()):e.rect(n,i,o,a)}(t,u),t.closePath();break;case"circle":t.arc(u.cx,u.cy,u.r,0,2*v,1)}return a||(M(t,u,i),H(t,u,i),L(t,u)),function(e,t,n,i){var o=n.gradients;if(0!==o.length){var a=E(t.fill);if(a&&o[a]){var r=i.getBBox(),s=e.createLinearGradient(r.x,0,r.x+r.width,0);o[a].forEach((function(e){var t=parseInt(e.offset.replace(/%/,""));s.addColorStop(t/100,e.stopColor)})),e.globalAlpha=t.opacity,e.fillStyle=s,e.fill()}}}(t,u,i,e),t.restore(),d}}function M(e,t,n){var i,o=E(t.filter);o&&((i=n.filters[o])||(i={offsetX:0,offsetY:0,blur:0,color:"#000"}),e.shadowOffsetX=i.offsetX,e.shadowOffsetY=i.offsetY,e.shadowColor=i.color,e.shadowBlur=i.blur)}function R(e,t){e.translate(t.translateX||0,t.translateY||0),t.translateX=void 0,t.translateY=void 0,t.rotationAngle&&(e.translate(t.rotationX||0,t.rotationY||0),e.rotate(t.rotationAngle*v/180),e.translate(-(t.rotationX||0),-(t.rotationY||0)),t.rotationAngle=void 0,t.rotationX=void 0,t.rotationY=void 0),isFinite(t.scaleX)&&(e.scale(t.scaleX,t.scaleY),t.scaleX=void 0,t.scaleY=void 0)}function B(e,t,n){t["clip-path"]&&(P(n.clipPaths[E(t["clip-path"])],e,{},n),e.clip(),t["clip-path"]=void 0)}function V(e){var t,n,i={};return(0,s.each)(e.childNodes,(function(e,a){var r=a.attributes;if(r.result)switch(r.result.value){case"gaussianBlurResult":i.blur=D(r.stdDeviation.value);break;case"offsetResult":i.offsetX=D(r.dx.value),i.offsetY=D(r.dy.value);break;case"floodResult":t=r["flood-color"]?r["flood-color"].value:"#000",n=r["flood-opacity"]?r["flood-opacity"].value:1,i.color=function(e,t){var n=new o.default(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}(t,n)}})),i}function F(e,t,n,i){return function e(t,n){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new f.Deferred,o=0;o<t.length;o++){var r=n(t[o]);if((0,a.isPromise)(r)){r.then((function(){e(Array.prototype.slice.call(t,o+1),n,i)}));break}}return o===t.length&&i.resolve(),i}(e,(function(e){switch(e.tagName&&e.tagName.toLowerCase()){case"g":case"svg":var o=(0,l.extend)({},n,T(e,i.rootAppended));t.save(),R(t,o),B(t,o,i);var r=function(){t.restore()},u=F(e.childNodes,t,o,i);return(0,a.isPromise)(u)?u.then(r):r(),u;case"defs":return F(e.childNodes,t,{},i);case"clippath":i.clipPaths[e.attributes.id.textContent]=e.childNodes[0];break;case"pattern":i.patterns[e.attributes.id.textContent]=e;break;case"filter":i.filters[e.id]=V(e);break;case"lineargradient":i.gradients[e.attributes.id.textContent]=function(e){var t=[];return(0,s.each)(e.childNodes,(function(e,n){var i=n.attributes;t.push({offset:i.offset.value,stopColor:i["stop-color"].value})})),t}(e);break;default:return P(e,t,n,i)}}))}function L(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(function(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&(n=(0,s.map)(n,(function(e){return D(e)})),e.setLineDash(n))}(e,t),e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],e.globalAlpha=t.strokeOpacity,e.strokeStyle=i,n?e.strokeText(t.text,t.x,t.y):e.stroke(),e.globalAlpha=1)}function H(e,t,n){var i=t.fill;if(i&&"none"!==i){if(-1===i.search(/url/))e.fillStyle=i;else{var o=n.patterns[E(i)];if(!o)return;e.fillStyle=function(e,t,n){var i=T(t,n.rootAppended),o=z._createCanvas(i.width,i.height,0),a=o.getContext("2d");return F(t.childNodes,a,i,n),e.createPattern(o,"repeat")}(e,o,n)}e.globalAlpha=t.fillOpacity,e.fill(),e.globalAlpha=1}}function N(e,t,n){return F(e.childNodes,t.getContext("2d"),{},{clipPaths:{},patterns:{},filters:{},gradients:{},rootAppended:n})}g=function(e){var t,n={};return(0,s.each)(e,(function(e,i){t=i.textContent,isFinite(t)&&(t=D(t)),n[i.name.toLowerCase()]=t})),n};var z={getImageData:function(e,t){var n="image/"+t.format;return(0,a.isFunction)(t.__parseAttributesFn)&&(g=t.__parseAttributesFn),function(e,t){var n=t.width,i=t.height,o=t.backgroundColor,a=t.margin,s=t.svgToCanvas,l=void 0===s?N:s,c=W(n,i),h=z._createCanvas(c.width,c.height,a),p=h.getContext("2d");p.setTransform(c.pixelRatio,0,0,c.pixelRatio,0,0);var g,m=(0,r.getSvgElement)(e),_=u.default.isElementNode(e);return p.translate(a,a),u.default.getBody().appendChild(h),_||((g=function(){var e=u.default.createElement("div");return e.style.left="-9999px",e.style.position="absolute",e}()).appendChild(m),u.default.getBody().appendChild(g)),m.attributes.direction&&(h.dir=m.attributes.direction.textContent),function(e,t,n,i,o){e.fillStyle=i||"#ffffff",e.fillRect(-o,-o,t+2*o,n+2*o)}(p,n,i,o,a),(0,f.fromPromise)(l(m,h,_&&(0,d.contains)(u.default.getBody(),e))).then((function(){return h})).always((function(){g&&u.default.getBody().removeChild(g),u.default.getBody().removeChild(h)}))}(e,t).then((function(e){return function(e,t){var n=e.toDataURL(t,1);return m.atob(n.substring(("data:"+t+";base64,").length))}(e,n)}))},getData:function(e,t){var n=this;return z.getImageData(e,t).then((function(e){var i="image/"+t.format;return(0,a.isFunction)(m.Blob)&&!t.forceProxy?n._getBlob(e,i):n._getBase64(e)}))},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return new m.Blob([i.buffer],{type:t})},_getBase64:function(e){return m.btoa(e)},_createCanvas:function(e,t,n){var o=(0,i.default)("<canvas>")[0];return o.width=e+2*n,o.height=t+2*n,o.hidden=!0,o}};function W(e,t){var n=m.devicePixelRatio||1;return{pixelRatio:n,width:e*n,height:t*n}}t.imageCreator=z},39458:function(e,t,n){t.Export=void 0;var i=n(35922),o=n(13306),a=d(n(91500)),r=d(n(18016)),s=d(n(28109)),l=n(5332),u=n(58201);function d(e){return e&&e.__esModule?e:{default:e}}var c={getFullOptions:function(e){var t=(0,o.extend)({},e);if(!(0,i.isDefined)(t.jsPDFDocument)||!(0,i.isObject)(t.jsPDFDocument))throw Error('The "jsPDFDocument" field must contain a jsPDF instance.');if(!(0,i.isDefined)(t.jsPDFDocument.autoTable)||!(0,i.isFunction)(t.jsPDFDocument.autoTable))throw Error('The "exportDataGrid" method requires a autoTable plugin for jsPDF object.');if((0,i.isDefined)(t.keepColumnWidths)||(t.keepColumnWidths=!0),(0,i.isDefined)(t.autoTableOptions)){if(!(0,i.isObject)(t.autoTableOptions))throw Error('The "autoTableOptions" option must be of object type.');t.autoTableOptions=(0,o.extend)(!0,{},this._getDefaultAutoTableOptions(),t.autoTableOptions)}else t.autoTableOptions=this._getDefaultAutoTableOptions();return(0,i.isDefined)(t.loadPanel)||(t.loadPanel={}),(0,i.isDefined)(t.loadPanel.enabled)||(t.loadPanel.enabled=!0),(0,i.isDefined)(t.loadPanel.text)||(t.loadPanel.text=s.default.format("dxDataGrid-exporting")),t},_getDefaultAutoTableOptions:function(){return{theme:"plain",tableLineColor:149,tableLineWidth:.1,styles:{textColor:51,lineColor:149,lineWidth:0},columnStyles:{},headStyles:{fontStyle:"normal",textColor:149,lineWidth:.1},bodyStyles:{lineWidth:.1},head:[],body:[]}},export:function(e){var t,n,o=this,a=e.jsPDFDocument,r=e.autoTableOptions,s=e.component,d=e.customizeCell,c=e.keepColumnWidths,h=e.selectedRowsOnly,f=e.loadPanel,p=((null===(t=s._getInternalInstance)||void 0===t?void 0:t.call(s))||s).option("loadPanel").enabled;if(s.option("loadPanel.enabled",!1),f.enabled&&(0,u.hasWindow)()){var g=s.getView("rowsView");(n=new l.ExportLoadPanel(s,g.element(),g.element().parent(),f)).show()}var m=s.getDataProvider(h),_=!!s.option("wordWrapEnabled");return new Promise((function(e){m.ready().done((function(){var t=m.getColumns(),n=m.getStyles(),s=m.getRowsCount(),l=m.getHeaderRowCount(),u=[];if(c){var h=o._tryGetPdfColumnWidths(r.tableWidth,m.getColumnsWidths());(0,i.isDefined)(h)&&(0,i.isDefined)(r.columnStyles)&&o._setColumnWidths(r.columnStyles,h)}for(var f=0;f<s;f++){for(var p=[],g=0;g<t.length;g++){var v=m.getCellData(f,g,!0),y=v.value,x=v.cellSourceData,b=n[m.getStyleId(f,g)],w={content:o._getFormattedValue(y,b.format),styles:o._getPDFCellStyles(x.rowType,t[g].alignment,b,_)};if("header"===x.rowType){var C=o._tryGetMergeRange(f,g,u,m);C&&C.rowSpan>0&&(w.rowSpan=C.rowSpan+1),C&&C.colSpan>0&&(w.colSpan=C.colSpan+1),(!u[f]||!u[f][g]||w.rowSpan>1||w.colSpan>1)&&((0,i.isFunction)(d)&&d({gridCell:x,pdfCell:w}),p.push(w))}else if("group"!==x.rowType||(0,i.isDefined)(w.content)||1!==p.length){var S;w.content=null!==(S=w.content)&&void 0!==S?S:"",(0,i.isFunction)(d)&&d({gridCell:x,pdfCell:w}),p.push(w)}else{var k;p[0].colSpan=null!==(k=p[0].colSpan)&&void 0!==k?k:1,p[0].colSpan++}}f<l?r.head.push(p):r.body.push(p)}a.autoTable(r),e()})).always((function(){s.option("loadPanel.enabled",p),f.enabled&&(0,u.hasWindow)()&&n.dispose()}))}))},_getFormattedValue:function(e,t){if((0,i.isDefined)(t)){if((0,i.isDate)(e))return a.default.format(e,t);if((0,i.isNumeric)(e))return r.default.format(e,t)}return e},_getPDFCellStyles:function(e,t,n,i){var o=n.alignment,a=n.bold,r="header"===e?t:o,s={};return r&&(s.halign=r),a&&"header"!==e&&(s.fontStyle="bold"),i&&(s.cellWidth="wrap"),s},_tryGetMergeRange:function(e,t,n,i){if(!n[e]||!n[e][t]){var o=i.getCellMerging(e,t),a=o.colspan,r=o.rowspan;if(a||r){for(var s=e;s<=e+r;s++)for(var l=t;l<=t+a;l++)n[s]||(n[s]=[]),n[s][l]=!0;return{rowSpan:r,colSpan:a}}}},_tryGetPdfColumnWidths:function(e,t){if((0,i.isNumeric)(e)&&(0,i.isDefined)(t)){var n=t.reduce((function(e,t){return e+t}),0);return t.map((function(t){return e*t/n}))}},_setColumnWidths:function(e,t){t.forEach((function(t,n){e[n]=e[n]||{},e[n].cellWidth=t}))}};t.Export=c},654:function(e,t,n){t.exportDataGrid=function(e){return o.Export.export(function(e){if(!(0,i.isDefined)(e)||!(0,i.isObject)(e))throw Error('The "exportDataGrid" method requires a configuration object.');if(!(0,i.isDefined)(e.component)||!(0,i.isObject)(e.component)||"dxDataGrid"!==e.component.NAME)throw Error('The "component" field must contain a DataGrid instance.');return(0,i.isDefined)(e.selectedRowsOnly)||(e.selectedRowsOnly=!1),o.Export.getFullOptions(e)}(e))};var i=n(35922),o=n(39458)},29982:function(e,t){t.exportGantt=function(e){var t=e.component;return null==t?void 0:t.exportToPdf(e)}},30855:function(e,t,n){t.getData=function(e,t){return a.imageCreator.getImageData(e,(0,s.extend)({},t,{format:"JPEG"})).then((function(e){var n=function(e,t,n){var o=2*(t.margin||0),r=(0,a.calcScaledInfo)(t.width,t.height),s=r.width,l=r.height;l+=o;var _,v,y,x=(.75*(s+=o)).toFixed(2),b=(.75*l).toFixed(2),w=u.replace("_width_",x).replace("_height_",b),C=d.replace("_width_",x).replace("_height_",b),S=c.replace("_date_",n).replace("_version_",i.version),k=w+C+S+(h.replace("_width_",s).replace("_height_",l).replace("_length_",e.length)+e+f);return k+(_=w.length,v=C.length,y=S.length,g.replace("_main_",m(_+"",10)).replace("_info_",m(_+v+"",10)).replace("_image_",m(_+v+y+"",10)))+p.replace("_length_",k.length)}(e,t,new Date);return(0,r.isFunction)(l.Blob)?function(e){for(var t=0,n=new Uint8Array(e.length);t<e.length;t++)n[t]=e.charCodeAt(t);return new l.Blob([n.buffer],{type:"application/pdf"})}(n):function(e){return l.btoa(e)}(n)}))};var i=n(36739),o=n(58201),a=n(12173),r=n(35922),s=n(13306),l=(0,o.getWindow)(),u="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n",d="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n",c="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n",h="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n",f="\r\nendstream\r\nendobj\r\n",p="trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF",g="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",m=function e(t,n){return t.length<n?e("0"+t,n):t}},37596:function(e,t,n){t.getData=function(e,t){return h.getData(e,t)},t.svgCreator=void 0;var i=d(n(68374)),o=d(n(37208)),a=n(58201),r=n(35922),s=n(95479),l=n(19155),u=n(62754);function d(e){return e&&e.__esModule?e:{default:e}}var c=(0,a.getWindow)(),h={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){o.default.sendRequest({url:e,method:"GET",responseType:"arraybuffer"}).done(t).fail((function(){t(!1)}))},_loadImages:function(){var e=this;(0,s.each)(e._imageArray,(function(t){var n=new u.Deferred;e._imageDeferreds.push(n),e._getBinaryFile(t,(function(i){if(!i)return delete e._imageArray[t],void n.resolve();var o,a="",r=new Uint8Array(i),s=r.byteLength;for(o=0;o<s;o++)a+=String.fromCharCode(r[o]);e._imageArray[t]="data:image/png;base64,"+c.btoa(a),n.resolve()}))}))},_parseImages:function(e){var t,n=this;"image"===e.tagName&&(t=(0,i.default)(e).attr("href")||(0,i.default)(e).attr("xlink:href"),n._imageArray[t]||(n._imageArray[t]="")),(0,s.each)(e.childNodes,(function(e,t){n._parseImages(t)}))},_prepareImages:function(e){return this._parseImages(e),this._loadImages(),u.when.apply(i.default,this._imageDeferreds)},getData:function(e,t){var n,o=this,a=(0,l.getSvgElement)(e),u=(0,i.default)(a);return u.find("[".concat(l.HIDDEN_FOR_EXPORT,"]")).remove(),n='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'+(0,l.getSvgMarkup)(u.get(0),t.backgroundColor),o._prepareImages(a).then((function(){return(0,s.each)(o._imageArray,(function(e,t){var i="href=['|\"]".concat(e,"['|\"]");n=n.replace(new RegExp(i,"gi"),'href="'.concat(t,'"'))})),(0,r.isFunction)(c.Blob)?o._getBlob(n):o._getBase64(n)}))},_getBlob:function(e){return new c.Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return c.btoa(e)}};t.svgCreator=h},98831:function(e,t,n){t.default=void 0;var i,o=n(20576),a=n(35922),r=n(47617);function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function i(t){var n;return t=(0,o.ensureDefined)(t,{}),(n=e.call(this,t)||this)._hasSubDirsGetter=(0,r.compileGetter)(t.hasSubDirectoriesExpr||"hasSubDirectories"),n._getItemsFunction=n._ensureFunction(t.getItems,(function(){return[]})),n._renameItemFunction=n._ensureFunction(t.renameItem),n._createDirectoryFunction=n._ensureFunction(t.createDirectory),n._deleteItemFunction=n._ensureFunction(t.deleteItem),n._moveItemFunction=n._ensureFunction(t.moveItem),n._copyItemFunction=n._ensureFunction(t.copyItem),n._uploadFileChunkFunction=n._ensureFunction(t.uploadFileChunk),n._abortFileUploadFunction=n._ensureFunction(t.abortFileUpload),n._downloadItemsFunction=n._ensureFunction(t.downloadItems),n._getItemsContentFunction=n._ensureFunction(t.getItemsContent),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var l=i.prototype;return l.getItems=function(e){var t=this,n=e.getFullPathInfo();return this._executeActionAsDeferred((function(){return t._getItemsFunction(e)}),!0).then((function(e){return t._convertDataObjectsToFileItems(e,n)}))},l.renameItem=function(e,t){var n=this;return this._executeActionAsDeferred((function(){return n._renameItemFunction(e,t)}))},l.createDirectory=function(e,t){var n=this;return this._executeActionAsDeferred((function(){return n._createDirectoryFunction(e,t)}))},l.deleteItems=function(e){var t=this;return e.map((function(e){return t._executeActionAsDeferred((function(){return t._deleteItemFunction(e)}))}))},l.moveItems=function(e,t){var n=this;return e.map((function(e){return n._executeActionAsDeferred((function(){return n._moveItemFunction(e,t)}))}))},l.copyItems=function(e,t){var n=this;return e.map((function(e){return n._executeActionAsDeferred((function(){return n._copyItemFunction(e,t)}))}))},l.uploadFileChunk=function(e,t,n){var i=this;return this._executeActionAsDeferred((function(){return i._uploadFileChunkFunction(e,t,n)}))},l.abortFileUpload=function(e,t,n){var i=this;return this._executeActionAsDeferred((function(){return i._abortFileUploadFunction(e,t,n)}))},l.downloadItems=function(e){return this._downloadItemsFunction(e)},l.getItemsContent=function(e){var t=this;return this._executeActionAsDeferred((function(){return t._getItemsContentFunction(e)}))},l._hasSubDirs=function(e){var t=this._hasSubDirsGetter(e);return"boolean"!=typeof t||t},l._getKeyExpr=function(e){return e.keyExpr||"key"},l._ensureFunction=function(e,t){return t=t||o.noop,(0,a.isFunction)(e)?e:t},i}(((i=n(19073))&&i.__esModule?i:{default:i}).default);t.default=l,e.exports=t.default,e.exports.default=t.default},49816:function(e,t){t.default=void 0;t.default=function(e,t,n){this.errorCode=e,this.fileSystemItem=t,this.errorText=n},e.exports=t.default,e.exports.default=t.default},41011:function(e,t){t.default=void 0;t.default={NoAccess:0,FileExists:1,FileNotFound:2,DirectoryExists:3,DirectoryNotFound:4,WrongFileExtension:5,MaxFileSizeExceeded:6,InvalidSymbols:7,Other:32767},e.exports=t.default,e.exports.default=t.default},45765:function(e,t,n){t.default=void 0;var i=n(35922),o=n(73173);function a(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s=function(){function e(){var e=(0,i.isString)(arguments[0])?this._publicCtor:this._internalCtor;e.apply(this,arguments)}var t=e.prototype;return t._internalCtor=function(e,t,n,i){this.name=t||"",this.pathInfo=e&&a(e)||[],this.parentPath=this._getPathByPathInfo(this.pathInfo),this.relativeName=(0,o.pathCombine)(this.parentPath,t),this.key=i||this._getPathByPathInfo(this.getFullPathInfo(),!0),this.path=(0,o.pathCombine)(this.parentPath,t),this.pathKeys=this.pathInfo.map((function(e){return e.key})),this.isRoot()||this.pathKeys.push(this.key),this._initialize(n)},t._publicCtor=function(e,t,n){this.path=e||"",this.pathKeys=n||[];for(var i=[],a=(0,o.getPathParts)(e,!0),r=0;r<a.length-1;r++){var s=a[r],l={key:this.pathKeys[r]||s,name:(0,o.getName)(s)};i.push(l)}this.pathInfo=i,this.relativeName=e,this.name=(0,o.getName)(e),this.key=this.pathKeys.length?this.pathKeys[this.pathKeys.length-1]:e,this.parentPath=a.length>1?a[a.length-2]:"",this._initialize(t)},t._initialize=function(e){this.isDirectory=!!e,this.size=0,this.dateModified=new Date,this.thumbnail="",this.tooltipText=""},t.getFullPathInfo=function(){var e=a(this.pathInfo);return this.isRoot()||e.push({key:this.key,name:this.name}),e},t.isRoot=function(){return""===this.path},t.getFileExtension=function(){return this.isDirectory?"":(0,o.getFileExtension)(this.name)},t.equals=function(e){return e&&this.key===e.key},t.createClone=function(){var t=new e(this.pathInfo,this.name,this.isDirectory,this.key);return t.key=this.key,t.size=this.size,t.dateModified=this.dateModified,t.thumbnail=this.thumbnail,t.tooltipText=this.tooltipText,t.hasSubDirectories=this.hasSubDirectories,t.dataItem=this.dataItem,t},t._getPathByPathInfo=function(e,t){return e.map((function(e){return t?(0,o.getEscapedFileName)(e.name):e.name})).join(o.PATH_SEPARATOR)},e}();t.default=s,e.exports=t.default,e.exports.default=t.default},4323:function(e,t,n){t.default=void 0;var i=n(89386),o=n(20576),a=n(47617),r=v(n(73176)),s=n(35922),l=n(18438),u=n(62754),d=n(58201),c=n(48351),h=v(n(96688)),f=v(n(97405)),p=v(n(19073)),g=v(n(49816)),m=v(n(41011)),_=n(73173);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var x=(0,d.getWindow)(),b=function(e){var t,n;function d(t){var n;t=(0,o.ensureDefined)(t,{}),n=e.call(this,t)||this;var i=t.data;if(i&&!Array.isArray(i))throw l.errors.Error("E4006");var r=t.itemsExpr||"items";n._subFileItemsGetter=(0,a.compileGetter)(r),n._subFileItemsSetter=n._getSetter(r);var s=t.contentExpr||"content";n._contentGetter=(0,a.compileGetter)(s),n._contentSetter=n._getSetter(s);var u=n._getNameExpr(t);n._nameSetter=n._getSetter(u);var d=n._getIsDirExpr(t);n._getIsDirSetter=n._getSetter(d);var c=n._getKeyExpr(t);n._keySetter=n._getSetter(c);var h=n._getSizeExpr(t);n._sizeSetter=n._getSetter(h);var f=n._getDateModifiedExpr(t);return n._dateModifiedSetter=n._getSetter(f),n._data=i||[],n}n=e,(t=d).prototype=Object.create(n.prototype),t.prototype.constructor=t,y(t,n);var p=d.prototype;return p.getItems=function(e){var t=this;return this._executeActionAsDeferred((function(){return t._getItems(e)}),!0)},p.renameItem=function(e,t){var n=this;return this._executeActionAsDeferred((function(){return n._renameItemCore(e,t)}))},p._renameItemCore=function(e,t){if(e){var n=this._findDataObject(e);this._nameSetter(n,t),e.name=t,e.key=this._ensureDataObjectKey(n)}},p.createDirectory=function(e,t){var n=this;return this._executeActionAsDeferred((function(){n._validateDirectoryExists(e),n._createDataObject(e,t,!0)}))},p.deleteItems=function(e){var t=this;return e.map((function(e){return t._executeActionAsDeferred((function(){return t._deleteItem(e)}))}))},p.moveItems=function(e,t){var n=this,i=this._findDataObject(t),o=this._getDirectoryDataItems(i);return e.map((function(e){return n._executeActionAsDeferred((function(){n._checkAbilityToMoveOrCopyItem(e,t);var i=n._findDataObject(e);n._deleteItem(e),o.push(i)}))}))},p.copyItems=function(e,t){var n=this,i=this._findDataObject(t),o=this._getDirectoryDataItems(i);return e.map((function(e){return n._executeActionAsDeferred((function(){n._checkAbilityToMoveOrCopyItem(e,t);var i=n._findDataObject(e),a=n._createCopy(i);o.push(a)}))}))},p.uploadFileChunk=function(e,t,n){var i=this;if(t.chunkIndex>0)return t.customData.deferred;this._validateDirectoryExists(n);var o=t.customData.deferred=new u.Deferred,a=this._createFileReader();return a.readAsDataURL(e),a.onload=function(){var t=a.result.split(",")[1],r=i._createDataObject(n,e.name,!1);i._sizeSetter(r,e.size),i._dateModifiedSetter(r,e.lastModifiedDate),i._contentSetter(r,t),o.resolve()},a.onerror=function(e){return o.reject(e)},o},p.downloadItems=function(e){1===e.length?this._downloadSingleFile(e[0]):this._downloadMultipleFiles(e)},p._downloadSingleFile=function(e){for(var t=this._getFileContent(e),n=x.atob(t),i=new ArrayBuffer(n.length),o=new Uint8Array(i),a=0;a<n.length;a++)o[a]=n.charCodeAt(a);var r=new x.Blob([i],{type:"application/octet-stream"});c.fileSaver.saveAs(e.name,null,r)},p._downloadMultipleFiles=function(e){var t=this,n=new(function(){if(!f.default)throw h.default.Error("E1041","JSZip");return f.default}());e.forEach((function(e){return n.file(e.name,t._getFileContent(e),{base64:!0})}));var i={type:"blob",compression:"DEFLATE",mimeType:"application/zip"},o=new u.Deferred;n.generateAsync?n.generateAsync(i).then(o.resolve):o.resolve(n.generate(i)),o.done((function(e){return c.fileSaver.saveAs("files.zip",null,e)}))},p._getFileContent=function(e){var t=this._findDataObject(e);return this._contentGetter(t)||""},p._validateDirectoryExists=function(e){if(!this._isFileItemExists(e)||this._isDirGetter(e.fileItem))throw new g.default(m.default.DirectoryNotFound,e)},p._checkAbilityToMoveOrCopyItem=function(e,t){var n=this,i=this._findDataObject(e),o=this._getKeyFromDataObject(i,e.parentPath),a=t.getFullPathInfo(),r="";a.forEach((function(t){if(r=(0,_.pathCombine)(r,t.name),n._getDataObjectKey(t.key,r)===o)throw new g.default(m.default.Other,e)}))},p._createDataObject=function(e,t,n){var i={};this._nameSetter(i,t),this._getIsDirSetter(i,n),this._keySetter(i,String(new r.default));var o=this._findDataObject(e);return this._getDirectoryDataItems(o).push(i),i},p._createCopy=function(e){var t=this,n={};this._nameSetter(n,this._nameGetter(e)),this._getIsDirSetter(n,this._isDirGetter(e));var i=this._subFileItemsGetter(e);if(Array.isArray(i)){var o=[];i.forEach((function(e){var n=t._createCopy(e);o.push(n)})),this._subFileItemsSetter(n,o)}return n},p._deleteItem=function(e){var t=this._findDataObject(e),n=this._findFileItemObj(e.pathInfo),i=this._getDirectoryDataItems(n),o=i.indexOf(t);i.splice(o,1)},p._getDirectoryDataItems=function(e){if(!e)return this._data;var t=this._subFileItemsGetter(e);return Array.isArray(t)||(t=[],this._subFileItemsSetter(e,t)),t},p._getItems=function(e){this._validateDirectoryExists(e);var t=e.getFullPathInfo(),n=t&&t.length>0?t[t.length-1].key:null,i=this._data;if(n){var o=this._findFileItemObj(t);i=o&&this._subFileItemsGetter(o)||[]}return this._ensureKeysForDuplicateNameItems(i),this._convertDataObjectsToFileItems(i,t)},p._ensureKeysForDuplicateNameItems=function(e){var t=this,n={};e.forEach((function(e){var i=t._nameGetter(e);n[i]?t._ensureDataObjectKey(e):n[i]=!0}))},p._findDataObject=function(e){if(e.isRoot())return null;var t=this._findFileItemObj(e.getFullPathInfo());if(!t){var n=e.isDirectory?m.default.DirectoryNotFound:m.default.FileNotFound;throw new g.default(n,e)}return t},p._findFileItemObj=function(e){var t=this;Array.isArray(e)||(e=[]);for(var n="",o=null,a=this._data,r=function(r){(o=(0,i.find)(a,(function(i){var o=t._isDirGetter(i)||r===e.length-1;return t._getKeyFromDataObject(i,n)===e[r].key&&t._nameGetter(i)===e[r].name&&o})))&&(n=(0,_.pathCombine)(n,t._nameGetter(o)),a=t._subFileItemsGetter(o))},s=0;s<e.length&&(0===s||o);s++)r(s);return o},p._getKeyFromDataObject=function(e,t){var n=this._keyGetter(e),i=(0,_.pathCombine)(t,this._nameGetter(e));return this._getDataObjectKey(n,i)},p._getDataObjectKey=function(e,t){return e||t},p._ensureDataObjectKey=function(e){var t=this._keyGetter(e);return t||(t=String(new r.default),this._keySetter(e,t)),t},p._hasSubDirs=function(e){var t=(0,o.ensureDefined)(this._subFileItemsGetter(e),[]);if(!Array.isArray(t))return!0;for(var n=0;n<t.length;n++)if(!0===this._isDirGetter(t[n]))return!0;return!1},p._getSetter=function(e){return(0,s.isFunction)(e)?e:(0,a.compileSetter)(e)},p._isFileItemExists=function(e){return e.isDirectory&&e.isRoot()||!!this._findFileItemObj(e.getFullPathInfo())},p._createFileReader=function(){return new x.FileReader},d}(p.default);t.default=b,e.exports=t.default,e.exports.default=t.default},19073:function(e,t,n){t.default=void 0;var i=n(47617),o=n(20576),a=d(n(69434)),r=n(95479),s=n(35922),l=n(62754),u=d(n(45765));function d(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e){e=(0,o.ensureDefined)(e,{}),this._keyGetter=(0,i.compileGetter)(this._getKeyExpr(e)),this._nameGetter=(0,i.compileGetter)(this._getNameExpr(e)),this._isDirGetter=(0,i.compileGetter)(this._getIsDirExpr(e)),this._sizeGetter=(0,i.compileGetter)(this._getSizeExpr(e)),this._dateModifiedGetter=(0,i.compileGetter)(this._getDateModifiedExpr(e)),this._thumbnailGetter=(0,i.compileGetter)(e.thumbnailExpr||"thumbnail")}var t=e.prototype;return t.getItems=function(e){return[]},t.renameItem=function(e,t){},t.createDirectory=function(e,t){},t.deleteItems=function(e){},t.moveItems=function(e,t){},t.copyItems=function(e,t){},t.uploadFileChunk=function(e,t,n){},t.abortFileUpload=function(e,t,n){},t.downloadItems=function(e){},t.getItemsContent=function(e){},t.getFileUploadChunkSize=function(){return 2e5},t._convertDataObjectsToFileItems=function(e,t){var n=this,i=[];return(0,r.each)(e,(function(e,o){var a=n._createFileItem(o,t);i.push(a)})),i},t._createFileItem=function(e,t){var n=this._keyGetter(e),i=new u.default(t,this._nameGetter(e),!!this._isDirGetter(e),n);return i.size=this._sizeGetter(e),void 0===i.size&&(i.size=0),i.dateModified=a.default.deserializeDate(this._dateModifiedGetter(e)),void 0===i.dateModified&&(i.dateModified=new Date),i.isDirectory&&(i.hasSubDirectories=this._hasSubDirs(e)),n||(i.key=i.relativeName),i.thumbnail=this._thumbnailGetter(e)||"",i.dataItem=e,i},t._hasSubDirs=function(e){return!0},t._getKeyExpr=function(e){return e.keyExpr||this._defaultKeyExpr},t._defaultKeyExpr=function(e){if(2!==arguments.length)return Object.prototype.hasOwnProperty.call(e,"__KEY__")?e.__KEY__:null;e.__KEY__=arguments[1]},t._getNameExpr=function(e){return e.nameExpr||"name"},t._getIsDirExpr=function(e){return e.isDirectoryExpr||"isDirectory"},t._getSizeExpr=function(e){return e.sizeExpr||"size"},t._getDateModifiedExpr=function(e){return e.dateModifiedExpr||"dateModified"},t._executeActionAsDeferred=function(e,t){var n=new l.Deferred;try{var i=e();(0,s.isPromise)(i)?(0,l.fromPromise)(i).done((function(e){return n.resolve(t&&e||void 0)})).fail((function(e){return n.reject(e)})):n.resolve(t&&i||void 0)}catch(e){return n.reject(e)}return n.promise()},e}();t.default=c,e.exports=t.default,e.exports.default=t.default},41332:function(e,t,n){t.default=void 0;var i=p(n(68374)),o=p(n(37208)),a=n(20576),r=p(n(73176)),s=n(58201),l=n(95479),u=n(62754),d=p(n(55994)),c=p(n(19073)),h=n(47617),f=n(35922);function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _=(0,s.getWindow)(),v="GetDirContents",y="POST",x=function(e){var t,n;function s(t){var n;return t=(0,a.ensureDefined)(t,{}),(n=e.call(this,t)||this)._endpointUrl=t.endpointUrl,n._beforeAjaxSend=t.beforeAjaxSend,n._beforeSubmit=t.beforeSubmit,n._requestHeaders=t.requestHeaders,n._hasSubDirsGetter=(0,h.compileGetter)(t.hasSubDirectoriesExpr||"hasSubDirectories"),n}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,m(t,n);var c=s.prototype;return c.getItems=function(e){var t=this,n=e.getFullPathInfo();return this._executeRequest(v,{pathInfo:n}).then((function(e){return t._convertDataObjectsToFileItems(e.result,n)}))},c.renameItem=function(e,t){return this._executeRequest("Rename",{pathInfo:e.getFullPathInfo(),isDirectory:e.isDirectory,name:t})},c.createDirectory=function(e,t){return this._executeRequest("CreateDir",{pathInfo:e.getFullPathInfo(),name:t})},c.deleteItems=function(e){var t=this;return e.map((function(e){return t._executeRequest("Remove",{pathInfo:e.getFullPathInfo(),isDirectory:e.isDirectory})}))},c.moveItems=function(e,t){var n=this;return e.map((function(e){return n._executeRequest("Move",{sourcePathInfo:e.getFullPathInfo(),sourceIsDirectory:e.isDirectory,destinationPathInfo:t.getFullPathInfo()})}))},c.copyItems=function(e,t){var n=this;return e.map((function(e){return n._executeRequest("Copy",{sourcePathInfo:e.getFullPathInfo(),sourceIsDirectory:e.isDirectory,destinationPathInfo:t.getFullPathInfo()})}))},c.uploadFileChunk=function(e,t,n){var i;0===t.chunkIndex&&(t.customData.uploadId=new r.default);var s={destinationPathInfo:n.getFullPathInfo(),chunkMetadata:JSON.stringify({UploadId:t.customData.uploadId,FileName:e.name,Index:t.chunkIndex,TotalCount:t.chunkCount,FileSize:e.size})},l={url:this._endpointUrl,headers:this._requestHeaders||{},method:y,dataType:"json",data:(i={},g(i,"chunk",t.chunkBlob),g(i,"arguments",JSON.stringify(s)),g(i,"command","UploadChunk"),i),upload:{onprogress:a.noop,onloadstart:a.noop,onabort:a.noop},xhrFields:{},cache:!1},d=new u.Deferred;return this._beforeSendInternal(l),o.default.sendRequest(l).done((function(e){!e.success&&d.reject(e)||d.resolve()})).fail(d.reject),d.promise()},c.abortFileUpload=function(e,t,n){return this._executeRequest("AbortUpload",{uploadId:t.customData.uploadId})},c.downloadItems=function(e){var t=this._getDownloadArgs(e),n=(0,i.default)("<form>").css({display:"none"}).attr({method:y,action:t.url}),o={command:t.command,arguments:t.arguments};this._beforeSubmitInternal(o),this._appendFormDataInputsToForm(o,n),n.appendTo("body"),d.default.trigger(n,"submit"),setTimeout((function(){return n.remove()}))},c.getItemsContent=function(e){var t=this._getDownloadArgs(e),n={url:t.url,headers:this._requestHeaders||{},method:y,responseType:"arraybuffer",data:{command:t.command,arguments:t.arguments},upload:{onprogress:a.noop,onloadstart:a.noop,onabort:a.noop},xhrFields:{},cache:!1};return this._beforeSendInternal(n),o.default.sendRequest(n)},c._getDownloadArgs=function(e){var t={pathInfoList:e.map((function(e){return e.getFullPathInfo()}))},n=JSON.stringify(t);return{url:this._endpointUrl,arguments:n,command:"Download"}},c._getItemsIds=function(e){return e.map((function(e){return e.relativeName}))},c._executeRequest=function(e,t){var n=e===v?"GET":y,i=new u.Deferred,a={url:this._getEndpointUrl(e,t),headers:this._requestHeaders||{},method:n,dataType:"json",data:{},xhrFields:{},cache:!1};return this._beforeSendInternal(a),o.default.sendRequest(a).then((function(e){!e.success&&i.reject(e)||i.resolve(e)}),(function(e){return i.reject(e)})),i.promise()},c._beforeSubmitInternal=function(e){(0,f.isFunction)(this._beforeSubmit)&&this._beforeSubmit({formData:e})},c._beforeSendInternal=function(e){if((0,f.isFunction)(this._beforeAjaxSend)){var t={headers:e.headers,formData:e.data,xhrFields:e.xhrFields};this._beforeAjaxSend(t),e.headers=t.headers,e.data=t.formData,e.xhrFields=t.xhrFields}(0,f.isEmptyObject)(e.data)?delete e.data:(e.responseType||e.upload)&&(e.data=this._createFormData(e.data))},c._createFormData=function(e){var t=new _.FormData;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(0,f.isDefined)(e[n])&&t.append(n,e[n]);return t},c._appendFormDataInputsToForm=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(0,f.isDefined)(e[n])&&(0,i.default)("<input>").attr({type:"hidden",name:n,value:e[n]}).appendTo(t)},c._getEndpointUrl=function(e,t){var n=this._getQueryString({command:e,arguments:JSON.stringify(t)}),i=this._endpointUrl&&this._endpointUrl.indexOf("?")>0?"&":"?";return this._endpointUrl+i+n},c._getQueryString=function(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++){var o=n[i],a=e[o];if(void 0!==a)if(null===a&&(a=""),Array.isArray(a))this._processQueryStringArrayParam(o,a,t);else{var r=this._getQueryStringPair(o,a);t.push(r)}}return t.join("&")},c._processQueryStringArrayParam=function(e,t,n){var i=this;(0,l.each)(t,(function(t,o){var a=i._getQueryStringPair(e,o);n.push(a)}))},c._getQueryStringPair=function(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(t)},c._hasSubDirs=function(e){var t=this._hasSubDirsGetter(e);return"boolean"!=typeof t||t},c._getKeyExpr=function(e){return e.keyExpr||"key"},s}(c.default);t.default=x,e.exports=t.default,e.exports.default=t.default},73173:function(e,t,n){t.pathCombine=t.getPathParts=t.getParentPath=t.getName=t.getFileExtension=t.getEscapedFileName=t.PATH_SEPARATOR=void 0;var i=n(95479),o="/";t.PATH_SEPARATOR=o,t.getFileExtension=function(e){var t=e.lastIndexOf(".");return-1!==t?e.substr(t):""},t.getName=function(e){var t=e.lastIndexOf(o);return-1!==t?e.substr(t+o.length):e},t.getParentPath=function(e){var t=e.lastIndexOf(o);return-1!==t?e.substr(0,t):""},t.getPathParts=function(e,t){if(!e||"/"===e)return[];for(var n=[],i="",s=0;s<e.length;s++){var l=e.charAt(s);if(l===o){var u=e.charAt(s+1);u!==o&&(i&&(n.push(i),i=""),l=u),s++}i+=l}if(i&&n.push(i),t)for(var d=0;d<n.length;d++)n[d]=r(0===d?"":n[d-1],a(n[d]));return n};var a=function(e){return e.replace(/\//g,"//")};t.getEscapedFileName=a;var r=function(){var e="";return(0,i.each)(arguments,(function(t,n){n&&(e&&(e+=o),e+=n)})),e};t.pathCombine=r},30343:function(e,t,n){t.default=void 0;var i=n(35922),o=l(n(91198)),a=l(n(18016)),r=l(n(91500)),s=l(n(20476));function l(e){return e&&e.__esModule?e:{default:e}}n(89740);var u=(0,s.default)({format:function(e,t){var n=(0,i.isString)(t)&&""!==t||(0,i.isPlainObject)(t)||(0,i.isFunction)(t),o=(0,i.isNumeric)(e)||(0,i.isDate)(e);return n&&o?(0,i.isFunction)(t)?t(e):((0,i.isString)(t)&&(t={type:t}),(0,i.isNumeric)(e)?a.default.format(e,t):(0,i.isDate)(e)?r.default.format(e,t):void 0):(0,i.isDefined)(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map((function(e){return r.default.format(t,e)})).join(" ")}:e},getDateFormatByDifferences:function(e,t){var n=[],i=t&&e.millisecond&&!(e.year||e.month||e.day);return i?n.push((function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"})):e.millisecond&&n.push("millisecond"),(e.hour||e.minute||!i&&e.second)&&n.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day?t&&"month"===t?"monthandyear":(n.unshift("shortdate"),this._normalizeFormat(n)):e.year&&e.month?"monthandyear":e.year&&e.quarter?"quarterandyear":e.year?"year":e.quarter?"quarter":e.month&&e.day?(t?n.unshift((function(e){return r.default.getMonthNames("abbreviated")[e.getMonth()]+" "+r.default.format(e,"day")})):n.unshift("monthandday"),this._normalizeFormat(n)):e.month?"month":e.day?(t?n.unshift("day"):n.unshift((function(e){return r.default.format(e,"dayofweek")+", "+r.default.format(e,"day")})),this._normalizeFormat(n)):this._normalizeFormat(n)},getDateFormatByTicks:function(e){var t,n,i;if(e.length>1)for(t=o.default.getDatesDifferences(e[0],e[1]),i=1;i<e.length-1;i++)n=o.default.getDatesDifferences(e[i],e[i+1]),t.count<n.count&&(t=n);else t={year:!0,month:!0,day:!0,hour:e[0].getHours()>0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return this.getDateFormatByDifferences(t)},getDateFormatByTickInterval:function(e,t,n){var a,r=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}};n=(0,i.isString)(n)?n.toLowerCase():n;var s,l,u,d=o.default.getDatesDifferences(e,t);return e!==t&&(s=d,l=e>t?t:e,!(u=e>t?e:t).getMilliseconds()&&u.getSeconds()?u.getSeconds()-l.getSeconds()==1&&(s.millisecond=!0,s.second=!1):!u.getSeconds()&&u.getMinutes()?u.getMinutes()-l.getMinutes()==1&&(s.second=!0,s.minute=!1):!u.getMinutes()&&u.getHours()?u.getHours()-l.getHours()==1&&(s.minute=!0,s.hour=!1):!u.getHours()&&u.getDate()>1?u.getDate()-l.getDate()==1&&(s.hour=!0,s.day=!1):1===u.getDate()&&u.getMonth()?u.getMonth()-l.getMonth()==1&&(s.day=!0,s.month=!1):!u.getMonth()&&u.getFullYear()&&u.getFullYear()-l.getFullYear()==1&&(s.month=!0,s.year=!1)),r(d,o.default.getDateUnitInterval(d),!0),r(d,a=o.default.getDateUnitInterval(n||"second"),!1),d[{week:"day"}[a]||a]=!0,this.getDateFormatByDifferences(d)}});t.default=u,e.exports=t.default,e.exports.default=t.default},71582:function(e,t,n){n(78475),n(38971),n(12993),n(11579),n(21298)},21298:function(e,t,n){var i=o(n(62414));function o(e){return e&&e.__esModule?e:{default:e}}o(n(62387)).default&&i.default.registerExecutor({ngExpression:{execute:function(e){"string"==typeof e.action&&e.context.$eval(e.action)}}})},38971:function(e,t,n){var i=w(n(68374)),o=w(n(62387)),a=w(n(55994)),r=w(n(80209)),s=w(n(5554)),l=w(n(38377)),u=w(n(44504)),d=n(35922),c=n(95479),h=n(89386),f=w(n(88933)),p=w(n(96452)),g=n(76165),m=w(n(69155)),_=w(n(11050)),v=n(47617),y=n(13306),x=n(49036),b=n(78008);function w(e){return e&&e.__esModule?e:{default:e}}function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var S=["rendering"],k="value";if(o.default){var D=function(e,t){return t.$root.$$phase?e(t):t.$apply((function(){return e(t)}))},I=l.default.inherit({ctor:function(e){this._componentDisposing=(0,u.default)(),this._optionChangedCallbacks=(0,u.default)(),this._ngLocker=new f.default,this._scope=e.scope,this._$element=e.$element,this._$templates=e.$templates,this._componentClass=e.componentClass,this._parse=e.parse,this._compile=e.compile,this._itemAlias=e.itemAlias,this._transcludeFn=e.transcludeFn,this._digestCallbacks=e.dxDigestCallbacks,this._normalizeOptions(e.ngOptions),this._initComponentBindings(),this._initComponent(this._scope),e.ngOptions||this._addOptionsStringWatcher(e.ngOptionsString)},_addOptionsStringWatcher:function(e){var t=this,n=this._scope.$watch(e,(function(e){e&&(n(),t._normalizeOptions(e),t._initComponentBindings(),t._component.option(t._evalOptions(t._scope)))}));this._componentDisposing.add(n)},_normalizeOptions:function(e){var t=this;this._ngOptions=(0,y.extendFromObject)({},e),e&&(!Object.prototype.hasOwnProperty.call(e,"bindingOptions")&&e.bindingOptions&&(this._ngOptions.bindingOptions=e.bindingOptions),e.bindingOptions&&(0,c.each)(e.bindingOptions,(function(e,n){"string"===(0,d.type)(n)&&(t._ngOptions.bindingOptions[e]={dataPath:n})})))},_initComponent:function(e){this._component=new this._componentClass(this._$element,this._evalOptions(e)),this._component._isHidden=!0,this._handleDigestPhase()},_handleDigestPhase:function(){var e=this,t=function(){e._component.beginUpdate()},n=function(){e._component.endUpdate()};this._digestCallbacks.begin.add(t),this._digestCallbacks.end.add(n),this._componentDisposing.add((function(){e._digestCallbacks.begin.remove(t),e._digestCallbacks.end.remove(n)}))},_initComponentBindings:function(){var e=this,t={};this._ngOptions.bindingOptions&&((0,c.each)(this._ngOptions.bindingOptions,(function(n,i){var o,a,r=n.search(/\[|\./),s=r>-1?n.substring(0,r):n,l=i.dataPath,u=!0,d=!1;void 0!==i.deep&&(d=u=!!i.deep),t[s]||(t[s]={}),t[s][n]=l,function t(){var i=Array.isArray(e._scope.$eval(l))&&!d?"$watchCollection":"$watch";o!==i&&(a&&a(),a=e._scope[i](l,(function(i,o){e._ngLocker.locked(n)||(e._ngLocker.obtain(n),e._component.option(n,i),t(),(0,x.equals)(o,i)&&e._ngLocker.locked(n)&&e._ngLocker.release(n))}),u),o=i)}(),e._componentDisposing.add(a)})),this._optionChangedCallbacks.add((function(n){var i=n.name,o=n.fullName,a=n.component;if(e._ngLocker.locked(o))e._ngLocker.release(o);else if(t&&t[i]){var r=e._scope.$root.$$phase,s=function(){e._ngLocker.obtain(o)};r?e._digestCallbacks.begin.add(s):s(),D((function(){(0,c.each)(t[i],(function(t,i){if(e._optionsAreLinked(o,t)){var r=a.option(t);e._parse(i).assign(e._scope,r);var s=e._parse(i)(e._scope);s!==r&&n.component.option(t,s)}}))}),e._scope);var l=function t(){e._ngLocker.locked(o)&&e._ngLocker.release(o),e._digestCallbacks.begin.remove(s),e._digestCallbacks.end.remove(t)};r?e._digestCallbacks.end.addPrioritized(l):l()}})))},_optionsAreNested:function(e,t){var n=e[t.length];return 0===e.indexOf(t)&&("."===n||"["===n)},_optionsAreLinked:function(e,t){return e===t||(e.length>t.length?this._optionsAreNested(e,t):this._optionsAreNested(t,e))},_compilerByTemplate:function(e){var t=this,n=this._getScopeItemsPath();return function(o){var r=(0,i.default)(e).clone(),s=o.model&&o.model.constructor===t._scope.$root.constructor?o.model:o.noModel?t._scope:t._createScopeWithData(o);n&&t._synchronizeScopes(s,n,o.index),r.appendTo(o.container),o.noModel||a.default.on(r,"$destroy",(function(){!s.$parent||s.$destroy()}));var l=t._compile(r,t._transcludeFn);return t._applyAsync((function(e){l(e,null,{parentBoundTranscludeFn:t._transcludeFn})}),s),r}},_applyAsync:function(e,t){var n=this;if(e(t),!t.$root.$$phase&&!this._renderingTimer){var i=function(){clearTimeout(n._renderingTimer)};this._renderingTimer=setTimeout((function(){t.$apply(),n._renderingTimer=null,n._componentDisposing.remove(i)})),this._componentDisposing.add(i)}},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(_.default)&&this._ngOptions.bindingOptions&&this._ngOptions.bindingOptions.items)return this._ngOptions.bindingOptions.items.dataPath},_createScopeWithData:function(e){var t=this._scope.$new();return this._itemAlias&&(t[this._itemAlias]=e.model),(0,d.isDefined)(e.index)&&(t.$index=e.index),t},_synchronizeScopes:function(e,t,n){this._itemAlias&&"object"!==C(e[this._itemAlias])&&this._synchronizeScopeField({parentScope:this._scope,childScope:e,fieldPath:this._itemAlias,parentPrefix:t,itemIndex:n})},_synchronizeScopeField:function(e){var t=e.parentScope,n=e.childScope,i=e.fieldPath,o=e.parentPrefix,a=e.itemIndex,r=i===this._itemAlias?"":"."+i,s=void 0!==a,l=[o];if(s){if(!(0,d.isNumeric)(a))return;l.push("[",a,"]")}l.push(r);var u=l.join(""),c=t.$watch(u,(function(e,t){e!==t&&(0,v.compileSetter)(i)(n,e)})),h=n.$watch(i,(function(e,n){if(e!==n){if(s&&!(0,v.compileGetter)(o)(t)[a])return void h();(0,v.compileSetter)(u)(t,e)}}));this._componentDisposing.add([c,h])},_evalOptions:function(e){var t=this,n=(0,y.extendFromObject)({},this._ngOptions);return delete n.bindingOptions,this._ngOptions.bindingOptions&&(0,c.each)(this._ngOptions.bindingOptions,(function(t,i){n[t]=e.$eval(i.dataPath)})),n._optionChangedCallbacks=this._optionChangedCallbacks,n._disposingCallbacks=this._componentDisposing,n.onActionCreated=function(t,n,i){return i&&(0,h.inArray)(i.category,S)>-1?n:function(){var t=this,i=arguments;return e&&e.$root&&!e.$root.$$phase?D((function(){return n.apply(t,i)}),e):n.apply(this,i)}},n.beforeActionExecute=n.onActionCreated,n.nestedComponentOptions=function(e){return{templatesRenderAsynchronously:e.option("templatesRenderAsynchronously"),forceApplyBindings:e.option("forceApplyBindings"),modelByElement:e.option("modelByElement"),onActionCreated:e.option("onActionCreated"),beforeActionExecute:e.option("beforeActionExecute"),nestedComponentOptions:e.option("nestedComponentOptions")}},n.templatesRenderAsynchronously=!0,(0,r.default)().wrapActionsBeforeExecute&&(n.forceApplyBindings=function(){D((function(){}),e)}),n.integrationOptions={createTemplate:function(e){return new g.NgTemplate(e,t._compilerByTemplate.bind(t))},watchMethod:function(n,i,o){var a,s=(o=o||{}).skipImmediate,l=e.$watch((function(){var e=n();return e instanceof Date&&(e=e.valueOf()),e}),(function(e){var t=a===e;!s&&(!t||t&&o.deep)&&i(e),s=!1}),o.deep);return s||(a=n(),i(a)),(0,r.default)().wrapActionsBeforeExecute&&t._applyAsync((function(){}),e),l},templates:{"dx-polymorph-widget":{render:function(e){var n=e.model.widget;if(n){var o=(0,i.default)("<div>").attr((0,b.dasherize)(n),"options").get(0),a=t._scope.$new();a.options=e.model.options,e.container.append(o),t._compile(o)(a)}}}}},n.modelByElement=function(){return e},n}});I=I.inherit({ctor:function(e){this._componentName=e.componentName,this._ngModel=e.ngModel,this._ngModelController=e.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return p.default.isEditor(this._componentClass.prototype)&&this._ngModel},_initComponentBindings:function(){this.callBase.apply(this,arguments),this._initNgModelBinding()},_initNgModelBinding:function(){var e=this;if(this._isNgModelRequired()){var t=this._scope.$watch(this._ngModel,(function(t,n){e._ngLocker.locked(k)||t!==n&&e._component.option(k,t)}));this._optionChangedCallbacks.add((function(t){e._ngLocker.obtain(k);try{if(t.name!==k)return;e._ngModelController.$setViewValue(t.value)}finally{e._ngLocker.locked(k)&&e._ngLocker.release(k)}})),this._componentDisposing.add(t)}},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var e=this.callBase.apply(this,arguments);return e.value=this._parse(this._ngModel)(this._scope),e}});var T={},E=function(e){var t="dxValidator"!==e?1:10;m.default.directive(e,["$compile","$parse","dxDigestCallbacks",function(n,i,o){return{restrict:"A",require:"^?ngModel",priority:t,compile:function(t){var a=T[e],r=(a.prototype._useTemplates?a.prototype._useTemplates():function e(t,n){if(!Object.prototype.hasOwnProperty.bind(t)("parent")&&t.parent){var i=Object.getPrototypeOf(t);return i.prototype[n]?function(){return i.prototype[n]()}:e(i,n)}var o=t.parent.prototype[n];return o?function(){return o()}:o&&t.parent.subclassOf?e(t.parent,n):function(){}}(a,"_useTemplates")())?t.contents().detach():null;return function(t,s,l,u,d){s.append(r),D((function(){new I({componentClass:a,componentName:e,compile:n,parse:i,$element:s,scope:t,ngOptionsString:l[e],ngOptions:l[e]?t.$eval(l[e]):{},ngModel:l.ngModel,ngModelController:u,transcludeFn:d,itemAlias:l.dxItemAlias,dxDigestCallbacks:o})}),t)}}}}])};s.default.add((function(e,t){T[e]||E(e),T[e]=t}))}},11579:function(e,t,n){var i=a(n(44504)),o=a(n(69155));function a(e){return e&&e.__esModule?e:{default:e}}a(n(62387)).default&&o.default.service("dxDigestCallbacks",["$rootScope",function(e){var t=(0,i.default)(),n=(0,i.default)(),o=(0,i.default)(),a=!1;return e.$watch((function(){a||(a=!0,t.fire(),e.$$postDigest((function(){a=!1,n.fire(),o.fire()})))})),{begin:{add:function(e){a&&e(),t.add(e)},remove:t.remove.bind(t)},end:{add:o.add.bind(o),addPrioritized:n.add.bind(n),remove:o.remove.bind(o)}}}])},12993:function(e,t,n){var i=r(n(94553)),o=r(n(55994)),a=r(n(69155));function r(e){return e&&e.__esModule?e:{default:e}}r(n(62387)).default&&i.default.add((function(e){var t=e.slice(0,2)+e.charAt(2).toUpperCase()+e.slice(3);a.default.directive(t,["$parse",function(n){return function(i,a,r){var s,l=r[t].trim(),u={};"{"===l.charAt(0)?(u=i.$eval(l),s=n(u.execute)):s=n(r[t]),o.default.on(a,e,u,(function(e){i.$apply((function(){s(i,{$event:e})}))}))}}])}))},69155:function(e,t,n){t.default=void 0;var i,o=(i=n(62387))&&i.__esModule?i:{default:i},a={};o.default&&(a=o.default.module("dx",[]));var r=a;t.default=r,e.exports=t.default,e.exports.default=t.default},76165:function(e,t,n){t.NgTemplate=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(81033),r=n(35922),s=n(3532);function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function i(t,n){var i;return(i=e.call(this)||this)._element=t,i._compiledTemplate=n((0,s.normalizeTemplateElement)(i._element)),i}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var a=i.prototype;return a._renderCore=function(e){var t=this._compiledTemplate;return(0,r.isFunction)(t)?t(e):t},a.source=function(){return(0,o.default)(this._element).clone()},i}(a.TemplateBase);t.NgTemplate=u},78475:function(e,t,n){var i=s(n(96073)),o=n(58020),a=s(n(95640)),r=s(n(72722));function s(e){return e&&e.__esModule?e:{default:e}}if(n(17394),n(59228),n(66809),n(32185),n(711),n(27387),n(95063),n(63200),n(87481),n(30829),(0,r.default)()&&(0,o.compare)(i.default.fn.jquery,[1,10])<0)throw a.default.Error("E0012")},30829:function(e,t,n){var i=a(n(96073)),o=a(n(37208));function a(e){return e&&e.__esModule?e:{default:e}}(0,a(n(72722)).default)()&&o.default.inject({sendRequest:function(e){return e.responseType||e.upload?this.callBase.apply(this,[e]):i.default.ajax(e)}})},87481:function(e,t,n){var i=r(n(96073)),o=r(n(5554)),a=r(n(17381));function r(e){return e&&e.__esModule?e:{default:e}}i.default&&o.default.add((function(e,t){i.default.fn[e]=function(n){var i,o="string"==typeof n;if(o){var r=n,s=[].slice.call(arguments).slice(1);this.each((function(){var n=t.getInstance(this);if(!n)throw a.default.Error("E0009",e);var o=n[r].apply(n,s);void 0===i&&(i=o)}))}else this.each((function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)})),i=this;return i}}))},66809:function(e,t,n){var i=r(n(96073)),o=n(62754),a=n(58020);function r(e){return e&&e.__esModule?e:{default:e}}if((0,r(n(72722)).default)()){var s=i.default.Deferred,l={Deferred:s};l.when=(0,a.compare)(i.default.fn.jquery,[3])<0?i.default.when:function(e){return 0===arguments.length?(new s).resolve():1===arguments.length?e&&e.then?e:(new s).resolve(e):i.default.when.apply(i.default,arguments)},(0,o.setStrategy)(l)}},27387:function(e,t,n){var i,o=(i=n(96073))&&i.__esModule?i:{default:i},a=n(23908);o.default&&(0,a.setEasing)(o.default.easing)},63200:function(e,t,n){var i,o=n(6415);(0,((i=n(72722))&&i.__esModule?i:{default:i}).default)()&&(0,o.setPublicElementWrapper)((function(e){return e}))},95063:function(e,t,n){var i=a(n(96073)),o=n(97906);function a(e){return e&&e.__esModule?e:{default:e}}(0,a(n(72722)).default)()&&(0,o.setDataStrategy)(i.default)},711:function(e,t,n){var i=l(n(96073)),o=l(n(55994)),a=l(n(72722)),r=l(n(94553)),s=l(n(73349));function l(e){return e&&e.__esModule?e:{default:e}}(0,a.default)()&&(r.default.add((function(e,t){i.default.event.special[e]=t})),o.default.passiveEventHandlersSupported()&&o.default.forcePassiveFalseEventNames.forEach((function(e){i.default.event.special[e]={setup:function(t,n,i){s.default.listen(this,e,i,{passive:!1})}}})),o.default.set({on:function(e){(0,i.default)(e).on.apply((0,i.default)(e),Array.prototype.slice.call(arguments,1))},one:function(e){(0,i.default)(e).one.apply((0,i.default)(e),Array.prototype.slice.call(arguments,1))},off:function(e){(0,i.default)(e).off.apply((0,i.default)(e),Array.prototype.slice.call(arguments,1))},trigger:function(e){(0,i.default)(e).trigger.apply((0,i.default)(e),Array.prototype.slice.call(arguments,1))},triggerHandler:function(e){(0,i.default)(e).triggerHandler.apply((0,i.default)(e),Array.prototype.slice.call(arguments,1))},Event:i.default.Event}))},32185:function(e,t,n){var i=r(n(96073)),o=n(89729),a=r(n(24311));function r(e){return e&&e.__esModule?e:{default:e}}if(i.default&&!o.themeReadyCallback.fired()){var s=i.default.holdReady||i.default.fn.holdReady;s(!0),o.themeReadyCallback.add((function(){a.default.add((function(){s(!1)}))}))}},59228:function(e,t,n){var i=c(n(96073)),o=c(n(72722)),a=n(58020),r=n(95479),s=n(35922),l=n(39611),u=c(n(85788)),d=c(n(2418));function c(e){return e&&e.__esModule?e:{default:e}}if((0,o.default)())if((0,a.compare)(i.default.fn.jquery,[3])<0){var h={2:"touch",3:"pen",4:"mouse"};(0,r.each)(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],(function(){i.default.event.fixHooks[this]={filter:function(e,t){var n=t.pointerType;return(0,s.isNumeric)(n)&&(e.pointerType=h[n]),e},props:i.default.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}})),(0,r.each)(["touchstart","touchmove","touchend","touchcancel"],(function(){i.default.event.fixHooks[this]={filter:function(e,t){return(0,d.default)((function(n,i){e[n]=i(t)})),e},props:i.default.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","originalTarget","charCode","prevValue"])}})),i.default.event.fixHooks.wheel=i.default.event.mouseHooks;var f={props:i.default.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};u.default.callbacks.add((function(e){i.default.event.fixHooks[e]=f})),(0,l.setEventFixMethod)((function(e,t){for(var n=i.default.event.fixHooks[t.type]||i.default.event.mouseHooks,o=n.props?i.default.event.props.concat(n.props):i.default.event.props,a=o.length;a--;){var r=o[a];e[r]=t[r]}return n.filter?n.filter(e,t):e}))}else(0,d.default)((function(e,t){i.default.event.addProp(e,t)}))},17394:function(e,t,n){var i=a(n(96073)),o=a(n(82981));function a(e){return e&&e.__esModule?e:{default:e}}(0,a(n(72722)).default)()&&o.default.set(i.default)},72722:function(e,t,n){t.default=function(){return i.default&&(0,o.default)().useJQuery};var i=a(n(96073)),o=a(n(80209));function a(e){return e&&e.__esModule?e:{default:e}}var r=(0,o.default)().useJQuery;i.default&&!1!==r&&(0,o.default)({useJQuery:!0}),e.exports=t.default,e.exports.default=t.default},49281:function(e,t,n){var i=r(n(76130)),o=r(n(17381)),a=n(58020);function r(e){return e&&e.__esModule?e:{default:e}}if(n(89135),n(70883),n(89620),n(24935),n(74942),n(27521),n(61823),i.default&&(0,a.compare)(i.default.version,[2,3])<0)throw o.default.Error("E0013")},27521:function(e,t,n){var i,o=n(97906),a=(i=n(76130))&&i.__esModule?i:{default:i},r=n(58020);if(a.default){var s=a.default.utils.domNodeDisposal.cleanExternalData;(0,o.afterCleanData)((function(e){var t;for(t=0;t<e.length;t++)e[t].cleanedByJquery=!0;for(t=0;t<e.length;t++)e[t].cleanedByKo||a.default.cleanNode(e[t]),delete e[t].cleanedByKo;for(t=0;t<e.length;t++)delete e[t].cleanedByJquery})),a.default.utils.domNodeDisposal.cleanExternalData=function(e){e.cleanedByKo=!0,e.cleanedByJquery||(0,o.cleanData)([e])},o.strategyChanging.add((function(e){e.fn&&(0,r.compare)(e.fn.jquery,[2,0])<0&&((0,o.afterCleanData)((function(){})),a.default.utils.domNodeDisposal.cleanExternalData=s)}))}},61823:function(e,t,n){var i,o=(i=n(76130))&&i.__esModule?i:{default:i},a=n(58020),r=n(97906);o.default&&r.strategyChanging.add((function(e){e.fn&&(0,a.compare)(e.fn.jquery,[2,0])<0&&function(e){var t=function(e,t){var n=function(){o.default.cleanNode(this)};t?e.each(n):e.find("*").each(n)},n=e.fn.empty;e.fn.empty=function(){return t(this,!1),n.apply(this,arguments)};var i=e.fn.remove;e.fn.remove=function(e,n){if(!n){var o=this;e&&(o=o.filter(e)),t(o,!0)}return i.call(this,e,n)};var a=e.fn.html;e.fn.html=function(e){return"string"==typeof e&&t(this,!1),a.apply(this,arguments)};var r=e.fn.replaceWith;e.fn.replaceWith=function(){var e=r.apply(this,arguments);return this.parent().length||t(this,!0),e}}(e)}))},89135:function(e,t,n){var i=_(n(68374)),o=_(n(76130)),a=_(n(44504)),r=n(35922),s=_(n(5554)),l=_(n(14390)),u=_(n(59063)),d=_(n(27135)),c=_(n(42160)),h=n(1129),f=_(n(96452)),p=_(n(88933)),g=n(45994),m=_(n(80209));function _(e){return e&&e.__esModule?e:{default:e}}if(o.default){var v="dxKoLocks",y=[];s.default.add((function(e,t){!function(e,t){f.default.isEditor(t.prototype)&&y.push(e),o.default.bindingHandlers[e]={init:function(e,n){var s,f,_=(0,i.default)(e),y=(0,a.default)(),x={},b=(0,m.default)().knockout,w=b&&b.isBindingPropertyPredicateName,C={onInitializing:function(t){var i=this;x=this._getOptionsByReference(),o.default.computed((function(){var e,a=o.default.unwrap(n());s&&s.beginUpdate(),f=w&&a&&a[w],I(a),s?s.endUpdate():null==a||null===(e=a.onInitializing)||void 0===e||e.call(i,t)}),null,{disposeWhenNodeIsRemoved:e}),s=this},modelByElement:function(e){if(e.length){var t=(0,g.getClosestNodeWithContext)(e.get(0));return o.default.dataFor(t)}},nestedComponentOptions:function(e){return{modelByElement:e.option("modelByElement"),nestedComponentOptions:e.option("nestedComponentOptions")}},_optionChangedCallbacks:y,integrationOptions:{watchMethod:function(e,t,n){var i=(n=n||{}).skipImmediate,a=o.default.computed((function(){var n=o.default.unwrap(e());i||t(n),i=!1}));return function(){a.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=o.default.utils.unwrapObservable(e.model.widget);if(t){var n=(0,i.default)("<div>").attr("data-bind",t+": options").get(0);(0,i.default)(e.container).append(n),o.default.applyBindings(e.model,n)}}}},createTemplate:function(e){return new h.KoTemplate(e)}}},S={},k=function(e,t,n){var i=_.data(v),a=n?o.default.unwrap(t):t;if(o.default.isWriteableObservable(t)&&(S[e]=t),s){if(i.locked(e))return;i.obtain(e);try{o.default.ignoreDependencies?o.default.ignoreDependencies(s.option,s,[e,a]):s.option(e,a)}finally{i.release(e)}}else C[e]=a},D=function(t,n,i){var a;i!==w&&(!f||f(i,n,t)?(o.default.computed((function(){var e=t[n];k(i,e,!0),a=o.default.unwrap(e)}),null,{disposeWhenNodeIsRemoved:e}),(0,r.isPlainObject)(a)&&(x[i]||I(a,i))):k(i,t[n],!1))};function I(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&D(e,n,t?[t,n].join("."):n)}return y.add((function(e){var t=e.fullName,n=e.value;if(t in S){var i=this._$element.data(v);if(!i.locked(t)){i.obtain(t);try{S[t](n)}finally{i.release(t)}}}})),_.data("dxKoCreation",!0).data(v,new p.default),new t(_,C),C=null,{controlsDescendantBindings:t.subclassOf(l.default)||t.subclassOf(u.default)||t.subclassOf(d.default)||s instanceof c.default}}},"dxValidator"===e&&(o.default.bindingHandlers.dxValidator.after=y)}(e,t)}))}},89620:function(e,t,n){var i,o=(i=n(76130))&&i.__esModule?i:{default:i},a=n(44899);o.default&&(o.default.bindingHandlers.dxControlsDescendantBindings={init:function(e,t){return{controlsDescendantBindings:o.default.unwrap(t())}}},o.default.bindingHandlers.dxIcon={init:function(e,t){var n=o.default.utils.unwrapObservable(t())||{},i=(0,a.getImageContainer)(n);o.default.virtualElements.emptyNode(e),i&&o.default.virtualElements.prepend(e,i.get(0))},update:function(e,t){var n=o.default.utils.unwrapObservable(t())||{},i=(0,a.getImageContainer)(n);o.default.virtualElements.emptyNode(e),i&&o.default.virtualElements.prepend(e,i.get(0))}},o.default.virtualElements.allowedBindings.dxIcon=!0)},70883:function(e,t,n){var i=u(n(68374)),o=u(n(55994)),a=u(n(76130)),r=n(35922),s=u(n(94553)),l=n(39611);function u(e){return e&&e.__esModule?e:{default:e}}a.default&&s.default.add((function(e){var t=(0,l.addNamespace)(e,e+"Binding");a.default.bindingHandlers[e]={update:function(e,n,s,l){var u=(0,i.default)(e),d=a.default.utils.unwrapObservable(n()),c=d.execute?d.execute:d;o.default.off(u,t),o.default.on(u,t,(0,r.isPlainObject)(d)?d:{},(function(e){c.call(l,l,e)}))}}}))},1129:function(e,t,n){t.KoTemplate=void 0;var i=d(n(68374)),o=d(n(73349)),a=d(n(76130)),r=n(35922),s=n(81033),l=n(3532),u=n(45994);function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){var t,n;function s(t){var n;return(n=e.call(this)||this)._element=t,n._template=(0,i.default)("<div>").append((0,l.normalizeTemplateElement)(t)),n._registerKoTemplate(),n}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var d=s.prototype;return d._registerKoTemplate=function(){var e=this._template.get(0);new a.default.templateSources.anonymousTemplate(e).nodes(e)},d._prepareDataForContainer=function(e,t){if(t&&t.length){var n=(0,u.getClosestNodeWithContext)(t.get(0)),i=a.default.contextFor(n);if(e=void 0!==e?e:a.default.dataFor(n)||{},i)return e===i.$data?i:i.createChildContext(e)}return function(e){var t=o.default.createElement("div");a.default.applyBindingsToNode(t,null,e);var n=a.default.contextFor(t);return a.default.cleanNode(t),n}(e).createChildContext(e)},d._renderCore=function(e){var t=this._prepareDataForContainer(e.model,(0,i.default)(e.container));(0,r.isDefined)(e.index)&&(t.$index=e.index);var n,o=(0,i.default)("<div>").appendTo(e.container);return a.default.renderTemplate(this._template.get(0),t,{afterRender:function(e){n=(0,i.default)(e)}},o.get(0),"replaceNode"),n},d.source=function(){return(0,i.default)(this._element).clone()},d.dispose=function(){this._template.remove()},s}(s.TemplateBase);t.KoTemplate=h},45994:function(e,t,n){t.getClosestNodeWithContext=void 0;var i,o=(i=n(76130))&&i.__esModule?i:{default:i};t.getClosestNodeWithContext=function e(t){return!o.default.contextFor(t)&&t.parentNode?e(t.parentNode):t}},24935:function(e,t,n){var i=n(95479),o=n(13306),a=c(n(38377)),r=n(80566),s=c(n(90964)),l=n(62754),u=c(n(73176)),d=c(n(76130));function c(e){return e&&e.__esModule?e:{default:e}}if(d.default){var h="valid",f="pending",p=a.default.inherit({ctor:function(e,t){var n=this,a=t.name,s=t.validationRules;this.target=e,this.name=a,this.isValid=d.default.observable(!0),this.validationError=d.default.observable(),this.validationErrors=d.default.observable(),this.validationStatus=d.default.observable(h),this._eventsStrategy=new r.EventsStrategy(this),this.validationRules=(0,i.map)(s,(function(e,t){return(0,o.extend)({},e,{validator:n,index:t})})),this._validationInfo={result:null,deferred:null}},_updateValidationResult:function(e){if(this._validationInfo.result&&this._validationInfo.result.id===e.id)for(var t in e)"id"!==t&&"complete"!==t&&(this._validationInfo.result[t]=e[t]);else{var n=this._validationInfo.deferred&&this._validationInfo.result.complete;this._validationInfo.result=(0,o.extend)({},e,{complete:n})}},validate:function(){var e=this,t=this._validationInfo&&this._validationInfo.result,n=this.target();if(t&&t.status===f&&t.value===n)return(0,o.extend)({},t);var i=s.default.validate(n,this.validationRules,this.name);return i.id=(new u.default).toString(),this._applyValidationResult(i),i.complete&&i.complete.then((function(t){t.id===e._validationInfo.result.id&&e._applyValidationResult(t)})),(0,o.extend)({},this._validationInfo.result)},reset:function(){this.target(null);var e={id:null,isValid:!0,brokenRule:null,pendingRules:null,status:h,complete:null};return this._applyValidationResult(e),e},_applyValidationResult:function(e){if(e.validator=this,this._updateValidationResult(e),this.target.dxValidator.isValid(this._validationInfo.result.isValid),this.target.dxValidator.validationError(this._validationInfo.result.brokenRule),this.target.dxValidator.validationErrors(this._validationInfo.result.brokenRules),this.target.dxValidator.validationStatus(this._validationInfo.result.status),e.status===f)return this._validationInfo.deferred||(this._validationInfo.deferred=new l.Deferred,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this._eventsStrategy.fireEvent("validating",[this._validationInfo.result]);e.status!==f&&(this._eventsStrategy.fireEvent("validated",[e]),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(e),this._validationInfo.deferred=null))},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this}});d.default.extenders.dxValidator=function(e,t){return e.dxValidator=new p(e,t),e.subscribe(e.dxValidator.validate.bind(e.dxValidator)),e},s.default.registerModelForValidation=function(e){(0,i.each)(e,(function(t,n){d.default.isObservable(n)&&n.dxValidator&&s.default.registerValidatorInGroup(e,n.dxValidator)}))},s.default.unregisterModelForValidation=function(e){(0,i.each)(e,(function(t,n){d.default.isObservable(n)&&n.dxValidator&&s.default.removeRegisteredValidator(e,n.dxValidator)}))},s.default.validateModel=s.default.validateGroup}},74942:function(e,t,n){var i=a(n(76130)),o=a(n(26974));function a(e){return e&&e.__esModule?e:{default:e}}i.default&&o.default.inject({isWrapped:i.default.isObservable,isWritableWrapped:i.default.isWritableObservable,wrap:i.default.observable,unwrap:function(e){return i.default.isObservable(e)?i.default.utils.unwrapObservable(e):this.callBase(e)},assign:function(e,t){i.default.isObservable(e)?e(t):this.callBase(e,t)}})},94484:function(e,t,n){Object.defineProperty(t,"date",{enumerable:!0,get:function(){return r.default}}),t.disableIntl=function(){"intl"===a.default.engine()&&a.default.resetInjection(),"intl"===r.default.engine()&&r.default.resetInjection()},t.locale=t.loadMessages=t.formatNumber=t.formatMessage=t.formatDate=void 0,Object.defineProperty(t,"message",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"number",{enumerable:!0,get:function(){return a.default}}),t.parseNumber=t.parseDate=void 0;var i=s(n(91331)),o=s(n(28109)),a=s(n(18016)),r=s(n(91500));function s(e){return e&&e.__esModule?e:{default:e}}n(89740);var l=i.default.locale.bind(i.default);t.locale=l;var u=o.default.load.bind(o.default);t.loadMessages=u;var d=o.default.format.bind(o.default);t.formatMessage=d;var c=a.default.format.bind(a.default);t.formatNumber=c;var h=a.default.parse.bind(a.default);t.parseNumber=h;var f=r.default.format.bind(r.default);t.formatDate=f;var p=r.default.parse.bind(r.default);t.parseDate=p},71868:function(e,t){t.default=void 0,t.default={af:"\xa4#,##0.00;(\xa4#,##0.00)","af-NA":"\xa4#,##0.00;(\xa4#,##0.00)",agq:"#,##0.00\xa4",ak:"\xa4#,##0.00",am:"\xa4#,##0.00;(\xa4#,##0.00)",ar:"\xa4#,##0.00;(\xa4#,##0.00)","ar-AE":"\xa4#,##0.00;(\xa4#,##0.00)","ar-BH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DZ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EG":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-ER":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IL":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IQ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-JO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KW":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LB":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MR":"\xa4#,##0.00;(\xa4#,##0.00)","ar-OM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-PS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-QA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TN":"\xa4#,##0.00;(\xa4#,##0.00)","ar-YE":"\xa4#,##0.00;(\xa4#,##0.00)",as:"\xa4\xa0#,##,##0.00",asa:"#,##0.00\xa0\xa4",ast:"#,##0.00\xa0\xa4",az:"#,##0.00\xa0\xa4","az-Cyrl":"#,##0.00\xa0\xa4","az-Latn":"#,##0.00\xa0\xa4",bas:"#,##0.00\xa0\xa4",be:"#,##0.00\xa0\xa4","be-tarask":"#,##0.00\xa0\xa4",bem:"\xa4#,##0.00;(\xa4#,##0.00)",bez:"#,##0.00\xa4",bg:"0.00\xa0\xa4;(0.00\xa0\xa4)",bm:"\xa4#,##0.00;(\xa4#,##0.00)",bn:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","bn-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",bo:"\xa4\xa0#,##0.00","bo-IN":"\xa4\xa0#,##0.00",br:"#,##0.00\xa0\xa4",brx:"\xa4\xa0#,##,##0.00",bs:"#,##0.00\xa0\xa4","bs-Cyrl":"#,##0.00\xa0\xa4","bs-Latn":"#,##0.00\xa0\xa4",ca:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-AD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-ES-valencia":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-FR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-IT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ccp:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","ccp-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",ce:"#,##0.00\xa0\xa4",ceb:"\xa4#,##0.00;(\xa4#,##0.00)",cgg:"\xa4#,##0.00",chr:"\xa4#,##0.00;(\xa4#,##0.00)",ckb:"\xa4\xa0#,##0.00","ckb-IR":"\xa4\xa0#,##0.00",cs:"#,##0.00\xa0\xa4",cy:"\xa4#,##0.00;(\xa4#,##0.00)",da:"#,##0.00\xa0\xa4","da-GL":"#,##0.00\xa0\xa4",dav:"\xa4#,##0.00;(\xa4#,##0.00)",de:"#,##0.00\xa0\xa4","de-AT":"#,##0.00\xa0\xa4","de-BE":"#,##0.00\xa0\xa4","de-CH":"#,##0.00\xa0\xa4","de-IT":"#,##0.00\xa0\xa4","de-LI":"#,##0.00\xa0\xa4","de-LU":"#,##0.00\xa0\xa4",dje:"#,##0.00\xa4",doi:"\xa4#,##0.00",dsb:"#,##0.00\xa0\xa4",dua:"#,##0.00\xa0\xa4",dyo:"#,##0.00\xa0\xa4",dz:"\xa4#,##,##0.00",ebu:"\xa4#,##0.00;(\xa4#,##0.00)",ee:"\xa4#,##0.00;(\xa4#,##0.00)","ee-TG":"\xa4#,##0.00;(\xa4#,##0.00)",el:"#,##0.00\xa0\xa4","el-CY":"#,##0.00\xa0\xa4",en:"\xa4#,##0.00;(\xa4#,##0.00)","en-001":"\xa4#,##0.00;(\xa4#,##0.00)","en-150":"#,##0.00\xa0\xa4","en-AE":"\xa4#,##0.00;(\xa4#,##0.00)","en-AG":"\xa4#,##0.00;(\xa4#,##0.00)","en-AI":"\xa4#,##0.00;(\xa4#,##0.00)","en-AS":"\xa4#,##0.00;(\xa4#,##0.00)","en-AT":"\xa4\xa0#,##0.00","en-AU":"\xa4#,##0.00;(\xa4#,##0.00)","en-BB":"\xa4#,##0.00;(\xa4#,##0.00)","en-BE":"#,##0.00\xa0\xa4","en-BI":"\xa4#,##0.00;(\xa4#,##0.00)","en-BM":"\xa4#,##0.00;(\xa4#,##0.00)","en-BS":"\xa4#,##0.00;(\xa4#,##0.00)","en-BW":"\xa4#,##0.00;(\xa4#,##0.00)","en-BZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-CA":"\xa4#,##0.00;(\xa4#,##0.00)","en-CC":"\xa4#,##0.00;(\xa4#,##0.00)","en-CH":"\xa4\xa0#,##0.00;\xa4-#,##0.00","en-CK":"\xa4#,##0.00;(\xa4#,##0.00)","en-CM":"\xa4#,##0.00;(\xa4#,##0.00)","en-CX":"\xa4#,##0.00;(\xa4#,##0.00)","en-CY":"\xa4#,##0.00;(\xa4#,##0.00)","en-DE":"#,##0.00\xa0\xa4","en-DG":"\xa4#,##0.00;(\xa4#,##0.00)","en-DK":"#,##0.00\xa0\xa4","en-DM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ER":"\xa4#,##0.00;(\xa4#,##0.00)","en-FI":"#,##0.00\xa0\xa4","en-FJ":"\xa4#,##0.00;(\xa4#,##0.00)","en-FK":"\xa4#,##0.00;(\xa4#,##0.00)","en-FM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GB":"\xa4#,##0.00;(\xa4#,##0.00)","en-GD":"\xa4#,##0.00;(\xa4#,##0.00)","en-GG":"\xa4#,##0.00;(\xa4#,##0.00)","en-GH":"\xa4#,##0.00;(\xa4#,##0.00)","en-GI":"\xa4#,##0.00;(\xa4#,##0.00)","en-GM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GU":"\xa4#,##0.00;(\xa4#,##0.00)","en-GY":"\xa4#,##0.00;(\xa4#,##0.00)","en-HK":"\xa4#,##0.00;(\xa4#,##0.00)","en-IE":"\xa4#,##0.00;(\xa4#,##0.00)","en-IL":"\xa4#,##0.00;(\xa4#,##0.00)","en-IM":"\xa4#,##0.00;(\xa4#,##0.00)","en-IN":"\xa4#,##0.00;(\xa4#,##0.00)","en-IO":"\xa4#,##0.00;(\xa4#,##0.00)","en-JE":"\xa4#,##0.00;(\xa4#,##0.00)","en-JM":"\xa4#,##0.00;(\xa4#,##0.00)","en-KE":"\xa4#,##0.00;(\xa4#,##0.00)","en-KI":"\xa4#,##0.00;(\xa4#,##0.00)","en-KN":"\xa4#,##0.00;(\xa4#,##0.00)","en-KY":"\xa4#,##0.00;(\xa4#,##0.00)","en-LC":"\xa4#,##0.00;(\xa4#,##0.00)","en-LR":"\xa4#,##0.00;(\xa4#,##0.00)","en-LS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MG":"\xa4#,##0.00;(\xa4#,##0.00)","en-MH":"\xa4#,##0.00;(\xa4#,##0.00)","en-MO":"\xa4#,##0.00;(\xa4#,##0.00)","en-MP":"\xa4#,##0.00;(\xa4#,##0.00)","en-MS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MT":"\xa4#,##0.00;(\xa4#,##0.00)","en-MU":"\xa4#,##0.00;(\xa4#,##0.00)","en-MW":"\xa4#,##0.00;(\xa4#,##0.00)","en-MY":"\xa4#,##0.00;(\xa4#,##0.00)","en-NA":"\xa4#,##0.00;(\xa4#,##0.00)","en-NF":"\xa4#,##0.00;(\xa4#,##0.00)","en-NG":"\xa4#,##0.00;(\xa4#,##0.00)","en-NL":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","en-NR":"\xa4#,##0.00;(\xa4#,##0.00)","en-NU":"\xa4#,##0.00;(\xa4#,##0.00)","en-NZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-PG":"\xa4#,##0.00;(\xa4#,##0.00)","en-PH":"\xa4#,##0.00;(\xa4#,##0.00)","en-PK":"\xa4#,##0.00;(\xa4#,##0.00)","en-PN":"\xa4#,##0.00;(\xa4#,##0.00)","en-PR":"\xa4#,##0.00;(\xa4#,##0.00)","en-PW":"\xa4#,##0.00;(\xa4#,##0.00)","en-RW":"\xa4#,##0.00;(\xa4#,##0.00)","en-SB":"\xa4#,##0.00;(\xa4#,##0.00)","en-SC":"\xa4#,##0.00;(\xa4#,##0.00)","en-SD":"\xa4#,##0.00;(\xa4#,##0.00)","en-SE":"#,##0.00\xa0\xa4","en-SG":"\xa4#,##0.00;(\xa4#,##0.00)","en-SH":"\xa4#,##0.00;(\xa4#,##0.00)","en-SI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","en-SL":"\xa4#,##0.00;(\xa4#,##0.00)","en-SS":"\xa4#,##0.00;(\xa4#,##0.00)","en-SX":"\xa4#,##0.00;(\xa4#,##0.00)","en-SZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-TC":"\xa4#,##0.00;(\xa4#,##0.00)","en-TK":"\xa4#,##0.00;(\xa4#,##0.00)","en-TO":"\xa4#,##0.00;(\xa4#,##0.00)","en-TT":"\xa4#,##0.00;(\xa4#,##0.00)","en-TV":"\xa4#,##0.00;(\xa4#,##0.00)","en-TZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-UG":"\xa4#,##0.00;(\xa4#,##0.00)","en-UM":"\xa4#,##0.00;(\xa4#,##0.00)","en-VC":"\xa4#,##0.00;(\xa4#,##0.00)","en-VG":"\xa4#,##0.00;(\xa4#,##0.00)","en-VI":"\xa4#,##0.00;(\xa4#,##0.00)","en-VU":"\xa4#,##0.00;(\xa4#,##0.00)","en-WS":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZA":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZW":"\xa4#,##0.00;(\xa4#,##0.00)",eo:"\xa4\xa0#,##0.00",es:"#,##0.00\xa0\xa4","es-419":"\xa4#,##0.00","es-AR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-BO":"\xa4#,##0.00","es-BR":"\xa4#,##0.00","es-BZ":"\xa4#,##0.00","es-CL":"\xa4#,##0.00","es-CO":"\xa4#,##0.00","es-CR":"\xa4#,##0.00","es-CU":"\xa4#,##0.00","es-DO":"\xa4#,##0.00;(\xa4#,##0.00)","es-EA":"#,##0.00\xa0\xa4","es-EC":"\xa4#,##0.00","es-GQ":"#,##0.00\xa0\xa4","es-GT":"\xa4#,##0.00","es-HN":"\xa4#,##0.00","es-IC":"#,##0.00\xa0\xa4","es-MX":"\xa4#,##0.00","es-NI":"\xa4#,##0.00","es-PA":"\xa4#,##0.00","es-PE":"\xa4#,##0.00","es-PH":"#,##0.00\xa0\xa4","es-PR":"\xa4#,##0.00","es-PY":"\xa4#,##0.00","es-SV":"\xa4#,##0.00","es-US":"\xa4#,##0.00","es-UY":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-VE":"\xa4#,##0.00",et:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",eu:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ewo:"#,##0.00\xa0\xa4",fa:"\u200e\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)","fa-AF":"\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)",ff:"#,##0.00\xa0\xa4","ff-Adlm":"\xa4\xa0#,##0.00","ff-Adlm-BF":"\xa4\xa0#,##0.00","ff-Adlm-CM":"\xa4\xa0#,##0.00","ff-Adlm-GH":"\xa4\xa0#,##0.00","ff-Adlm-GM":"\xa4\xa0#,##0.00","ff-Adlm-GW":"\xa4\xa0#,##0.00","ff-Adlm-LR":"\xa4\xa0#,##0.00","ff-Adlm-MR":"\xa4\xa0#,##0.00","ff-Adlm-NE":"\xa4\xa0#,##0.00","ff-Adlm-NG":"\xa4\xa0#,##0.00","ff-Adlm-SL":"\xa4\xa0#,##0.00","ff-Adlm-SN":"\xa4\xa0#,##0.00","ff-Latn":"#,##0.00\xa0\xa4","ff-Latn-BF":"#,##0.00\xa0\xa4","ff-Latn-CM":"#,##0.00\xa0\xa4","ff-Latn-GH":"#,##0.00\xa0\xa4","ff-Latn-GM":"#,##0.00\xa0\xa4","ff-Latn-GN":"#,##0.00\xa0\xa4","ff-Latn-GW":"#,##0.00\xa0\xa4","ff-Latn-LR":"#,##0.00\xa0\xa4","ff-Latn-MR":"#,##0.00\xa0\xa4","ff-Latn-NE":"#,##0.00\xa0\xa4","ff-Latn-NG":"#,##0.00\xa0\xa4","ff-Latn-SL":"#,##0.00\xa0\xa4",fi:"#,##0.00\xa0\xa4",fil:"\xa4#,##0.00;(\xa4#,##0.00)",fo:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fo-DK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GP":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-HT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-KM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-ML":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SY":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-VU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-WF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-YT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fur:"\xa4\xa0#,##0.00",fy:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",ga:"\xa4#,##0.00;(\xa4#,##0.00)","ga-GB":"\xa4#,##0.00;(\xa4#,##0.00)",gd:"\xa4#,##0.00;(\xa4#,##0.00)",gl:"#,##0.00\xa0\xa4",gsw:"#,##0.00\xa0\xa4","gsw-FR":"#,##0.00\xa0\xa4","gsw-LI":"#,##0.00\xa0\xa4",gu:"\xa4#,##,##0.00;(\xa4#,##,##0.00)",guz:"\xa4#,##0.00;(\xa4#,##0.00)",gv:"\xa4#,##0.00",ha:"\xa4\xa0#,##0.00","ha-GH":"\xa4\xa0#,##0.00","ha-NE":"\xa4\xa0#,##0.00",haw:"\xa4#,##0.00;(\xa4#,##0.00)",he:"#,##0.00\xa0\xa4",hi:"\xa4#,##,##0.00",hr:"#,##0.00\xa0\xa4","hr-BA":"#,##0.00\xa0\xa4",hsb:"#,##0.00\xa0\xa4",hu:"#,##0.00\xa0\xa4",hy:"#,##0.00\xa0\xa4",ia:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",id:"\xa4#,##0.00",ig:"\xa4#,##0.00;(\xa4#,##0.00)",ii:"\xa4\xa0#,##0.00",is:"#,##0.00\xa0\xa4",it:"#,##0.00\xa0\xa4","it-CH":"#,##0.00\xa0\xa4","it-SM":"#,##0.00\xa0\xa4","it-VA":"#,##0.00\xa0\xa4",ja:"\xa4#,##0.00;(\xa4#,##0.00)",jgo:"\xa4\xa0#,##0.00",jmc:"\xa4#,##0.00",jv:"\xa4\xa0#,##0.00",ka:"#,##0.00\xa0\xa4",kab:"#,##0.00\xa4",kam:"\xa4#,##0.00;(\xa4#,##0.00)",kde:"\xa4#,##0.00;(\xa4#,##0.00)",kea:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kgp:"\xa4\xa0#,##0.00",khq:"#,##0.00\xa4",ki:"\xa4#,##0.00;(\xa4#,##0.00)",kk:"#,##0.00\xa0\xa4",kkj:"\xa4\xa0#,##0.00",kl:"\xa4#,##0.00;\xa4-#,##0.00",kln:"\xa4#,##0.00;(\xa4#,##0.00)",km:"#,##0.00\xa4;(#,##0.00\xa4)",kn:"\xa4#,##0.00;(\xa4#,##0.00)",ko:"\xa4#,##0.00;(\xa4#,##0.00)","ko-KP":"\xa4#,##0.00;(\xa4#,##0.00)",kok:"\xa4#,##0.00;(\xa4#,##0.00)",ks:"\xa4\xa0#,##,##0.00","ks-Arab":"\xa4\xa0#,##,##0.00",ksb:"#,##0.00\xa4",ksf:"#,##0.00\xa0\xa4",ksh:"#,##0.00\xa0\xa4",ku:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kw:"\xa4#,##0.00",ky:"#,##0.00\xa0\xa4",lag:"\xa4\xa0#,##0.00",lb:"#,##0.00\xa0\xa4",lg:"#,##0.00\xa4",lkt:"\xa4\xa0#,##0.00",ln:"#,##0.00\xa0\xa4","ln-AO":"#,##0.00\xa0\xa4","ln-CF":"#,##0.00\xa0\xa4","ln-CG":"#,##0.00\xa0\xa4",lo:"\xa4#,##0.00;\xa4-#,##0.00",lrc:"\xa4\xa0#,##0.00","lrc-IQ":"\xa4\xa0#,##0.00",lt:"#,##0.00\xa0\xa4",lu:"#,##0.00\xa4",luo:"#,##0.00\xa4",luy:"\xa4#,##0.00;\xa4-\xa0#,##0.00",lv:"#,##0.00\xa0\xa4",mai:"\xa4\xa0#,##0.00",mas:"\xa4#,##0.00;(\xa4#,##0.00)","mas-TZ":"\xa4#,##0.00;(\xa4#,##0.00)",mer:"\xa4#,##0.00;(\xa4#,##0.00)",mfe:"\xa4\xa0#,##0.00",mg:"\xa4#,##0.00",mgh:"\xa4\xa0#,##0.00",mgo:"\xa4\xa0#,##0.00",mi:"\xa4\xa0#,##0.00",mk:"#,##0.00\xa0\xa4",ml:"\xa4#,##0.00;(\xa4#,##0.00)",mn:"\xa4\xa0#,##0.00",mni:"\xa4\xa0#,##0.00","mni-Beng":"\xa4\xa0#,##0.00",mr:"\xa4#,##0.00;(\xa4#,##0.00)",ms:"\xa4#,##0.00;(\xa4#,##0.00)","ms-BN":"\xa4#,##0.00;(\xa4#,##0.00)","ms-ID":"\xa4#,##0.00","ms-SG":"\xa4#,##0.00;(\xa4#,##0.00)",mt:"\xa4#,##0.00",mua:"\xa4#,##0.00;(\xa4#,##0.00)",my:"\xa4\xa0#,##0.00",mzn:"\xa4\xa0#,##0.00",naq:"\xa4#,##0.00",nb:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nb-SJ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nd:"\xa4#,##0.00;(\xa4#,##0.00)",nds:"\xa4\xa0#,##0.00","nds-NL":"\xa4\xa0#,##0.00",ne:"\xa4\xa0#,##,##0.00","ne-IN":"\xa4\xa0#,##,##0.00",nl:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-AW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BE":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BQ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-CW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SX":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nmg:"#,##0.00\xa0\xa4",nn:"#,##0.00\xa0\xa4",nnh:"\xa4\xa0#,##0.00",no:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nus:"\xa4#,##0.00;(\xa4#,##0.00)",nyn:"\xa4#,##0.00",om:"\xa4#,##0.00","om-KE":"\xa4#,##0.00",or:"\xa4#,##0.00;(\xa4#,##0.00)",os:"\xa4\xa0#,##0.00","os-RU":"\xa4\xa0#,##0.00",pa:"\xa4\xa0#,##0.00","pa-Arab":"\xa4\xa0#,##0.00","pa-Guru":"\xa4\xa0#,##0.00",pcm:"\xa4#,##0.00",pl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ps:"\xa4#,##0.00;(\xa4#,##0.00)","ps-PK":"\xa4#,##0.00;(\xa4#,##0.00)",pt:"\xa4\xa0#,##0.00","pt-AO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CV":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-PT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-ST":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-TL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",qu:"\xa4\xa0#,##0.00","qu-BO":"\xa4\xa0#,##0.00","qu-EC":"\xa4\xa0#,##0.00",rm:"#,##0.00\xa0\xa4",rn:"#,##0.00\xa4",ro:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ro-MD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",rof:"\xa4#,##0.00",ru:"#,##0.00\xa0\xa4","ru-BY":"#,##0.00\xa0\xa4","ru-KG":"#,##0.00\xa0\xa4","ru-KZ":"#,##0.00\xa0\xa4","ru-MD":"#,##0.00\xa0\xa4","ru-UA":"#,##0.00\xa0\xa4",rw:"\xa4\xa0#,##0.00",rwk:"#,##0.00\xa4",sa:"\xa4\xa0#,##0.00",sah:"#,##0.00\xa0\xa4",saq:"\xa4#,##0.00;(\xa4#,##0.00)",sat:"\xa4\xa0#,##0.00","sat-Olck":"\xa4\xa0#,##0.00",sbp:"#,##0.00\xa4",sc:"#,##0.00\xa0\xa4",sd:"\xa4\xa0#,##0.00","sd-Arab":"\xa4\xa0#,##0.00","sd-Deva":"\xa4\xa0#,##0.00",se:"#,##0.00\xa0\xa4","se-FI":"#,##0.00\xa0\xa4","se-SE":"#,##0.00\xa0\xa4",seh:"#,##0.00\xa4",ses:"#,##0.00\xa4",sg:"\xa4#,##0.00;\xa4-#,##0.00",shi:"#,##0.00\xa4","shi-Latn":"#,##0.00\xa4","shi-Tfng":"#,##0.00\xa4",si:"\xa4#,##0.00;(\xa4#,##0.00)",sk:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",smn:"#,##0.00\xa0\xa4",sn:"\xa4#,##0.00;(\xa4#,##0.00)",so:"\xa4#,##0.00;(\xa4#,##0.00)","so-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","so-ET":"\xa4#,##0.00;(\xa4#,##0.00)","so-KE":"\xa4#,##0.00;(\xa4#,##0.00)",sq:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-MK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",su:"\xa4#,##0.00","su-Latn":"\xa4#,##0.00",sv:"#,##0.00\xa0\xa4","sv-AX":"#,##0.00\xa0\xa4","sv-FI":"#,##0.00\xa0\xa4",sw:"\xa4\xa0#,##0.00","sw-CD":"\xa4\xa0#,##0.00","sw-KE":"\xa4\xa0#,##0.00","sw-UG":"\xa4\xa0#,##0.00",ta:"\xa4#,##0.00;(\xa4#,##0.00)","ta-LK":"\xa4#,##0.00;(\xa4#,##0.00)","ta-MY":"\xa4#,##0.00;(\xa4#,##0.00)","ta-SG":"\xa4#,##0.00;(\xa4#,##0.00)",te:"\xa4#,##0.00;(\xa4#,##0.00)",teo:"\xa4#,##0.00;(\xa4#,##0.00)","teo-KE":"\xa4#,##0.00;(\xa4#,##0.00)",tg:"#,##0.00\xa0\xa4",th:"\xa4#,##0.00;(\xa4#,##0.00)",ti:"\xa4#,##0.00","ti-ER":"\xa4#,##0.00",tk:"#,##0.00\xa0\xa4",to:"\xa4\xa0#,##0.00",tr:"\xa4#,##0.00;(\xa4#,##0.00)","tr-CY":"\xa4#,##0.00;(\xa4#,##0.00)",tt:"#,##0.00\xa0\xa4",twq:"#,##0.00\xa4",tzm:"#,##0.00\xa0\xa4",ug:"\xa4#,##0.00;(\xa4#,##0.00)",uk:"#,##0.00\xa0\xa4",und:"\xa4\xa0#,##0.00",ur:"\xa4#,##0.00;(\xa4#,##0.00)","ur-IN":"\xa4#,##0.00;(\xa4#,##0.00)",uz:"#,##0.00\xa0\xa4","uz-Arab":"\xa4\xa0#,##0.00","uz-Cyrl":"#,##0.00\xa0\xa4","uz-Latn":"#,##0.00\xa0\xa4",vai:"\xa4#,##0.00;(\xa4#,##0.00)","vai-Latn":"\xa4#,##0.00;(\xa4#,##0.00)","vai-Vaii":"\xa4#,##0.00;(\xa4#,##0.00)",vi:"#,##0.00\xa0\xa4",vun:"\xa4#,##0.00",wae:"\xa4\xa0#,##0.00",wo:"\xa4\xa0#,##0.00",xh:"\xa4#,##0.00",xog:"#,##0.00\xa0\xa4",yav:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",yi:"\xa4\xa0#,##0.00",yo:"\xa4#,##0.00;(\xa4#,##0.00)","yo-BJ":"\xa4#,##0.00;(\xa4#,##0.00)",yrl:"\xa4\xa0#,##0.00","yrl-CO":"\xa4\xa0#,##0.00","yrl-VE":"\xa4\xa0#,##0.00",yue:"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hant":"\xa4#,##0.00;(\xa4#,##0.00)",zgh:"#,##0.00\xa4",zh:"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-MO":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-SG":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-MO":"\xa4#,##0.00;(\xa4#,##0.00)",zu:"\xa4#,##0.00;(\xa4#,##0.00)"},e.exports=t.default,e.exports.default=t.default},92286:function(e,t){t.default=void 0,t.default={"af-NA":1,agq:1,ak:1,ar:6,"ar-EH":1,"ar-ER":1,"ar-KM":1,"ar-LB":1,"ar-MA":1,"ar-MR":1,"ar-PS":1,"ar-SO":1,"ar-SS":1,"ar-TD":1,"ar-TN":1,asa:1,ast:1,az:1,"az-Cyrl":1,bas:1,be:1,bem:1,bez:1,bg:1,bm:1,br:1,bs:1,"bs-Cyrl":1,ca:1,ce:1,cgg:1,ckb:6,cs:1,cy:1,da:1,de:1,dje:1,dsb:1,dua:1,dyo:1,ee:1,el:1,"en-001":1,"en-AE":6,"en-BI":1,"en-MP":1,"en-SD":6,eo:1,es:1,et:1,eu:1,ewo:1,fa:6,ff:1,"ff-Adlm":1,fi:1,fo:1,fr:1,"fr-DJ":6,"fr-DZ":6,"fr-SY":6,fur:1,fy:1,ga:1,gd:1,gl:1,gsw:1,gv:1,ha:1,hr:1,hsb:1,hu:1,hy:1,ia:1,ig:1,is:1,it:1,jgo:1,jmc:1,ka:1,kab:6,kde:1,kea:1,khq:1,kk:1,kkj:1,kl:1,"ko-KP":1,ksb:1,ksf:1,ksh:1,ku:1,kw:1,ky:1,lag:1,lb:1,lg:1,ln:1,lrc:6,lt:1,lu:1,lv:1,"mas-TZ":1,mfe:1,mg:1,mgo:1,mi:1,mk:1,mn:1,ms:1,mua:1,mzn:6,naq:1,nds:1,nl:1,nmg:1,nnh:1,no:1,nus:1,nyn:1,os:1,pcm:1,pl:1,ps:6,"pt-AO":1,"pt-CH":1,"pt-CV":1,"pt-GQ":1,"pt-GW":1,"pt-LU":1,"pt-ST":1,"pt-TL":1,"qu-BO":1,"qu-EC":1,rm:1,rn:1,ro:1,rof:1,ru:1,rw:1,rwk:1,sah:1,sbp:1,sc:1,se:1,ses:1,sg:1,shi:1,"shi-Latn":1,si:1,sk:1,sl:1,smn:1,so:1,"so-DJ":6,sq:1,sr:1,"sr-Latn":1,sv:1,sw:1,"ta-LK":1,"ta-MY":1,teo:1,tg:1,"ti-ER":1,tk:1,to:1,tr:1,tt:1,twq:1,tzm:1,uk:1,uz:1,"uz-Arab":6,"uz-Cyrl":1,vai:1,"vai-Latn":1,vi:1,vun:1,wae:1,wo:1,xog:1,yav:1,yi:1,yo:1,zgh:1},e.exports=t.default,e.exports.default=t.default},73806:function(e,t){t.default=void 0,t.default={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","hi-Latn":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"},e.exports=t.default,e.exports.default=t.default},91331:function(e,t,n){t.default=void 0;var i=r(n(20476)),o=r(n(73806)),a=r(n(49198));function r(e){return e&&e.__esModule?e:{default:e}}var s,l="en",u=(0,i.default)({locale:(s=l,function(e){if(!e)return s;s=e}),getValueByClosestLocale:function(e){for(var t,n=this.locale(),i=e(n);!i&&!t;)(n=(0,a.default)(o.default,n))?i=e(n):t=!0;return void 0===i&&n!==l?e(l):i}});t.default=u,e.exports=t.default,e.exports.default=t.default},89740:function(e,t,n){t.default=void 0;var i=n(13306),o={_formatNumberCore:function(e,t,n){if("currency"===t){n.precision=n.precision||0;var o=this.format(e,(0,i.extend)({},n,{type:"fixedpoint"})),a=this.getCurrencySymbol().symbol.replace(/\$/g,"$$$$");return o.replace(/^(\D*)(\d.*)/,"$1"+a+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}};t.default=o,e.exports=t.default,e.exports.default=t.default},91500:function(e,t,n){t.default=void 0;var i=m(n(20476)),o=n(35922),a=n(95479),r=n(89386),s=m(n(17381)),l=n(40594),u=n(59937),d=n(2892),c=m(n(15564)),h=m(n(92286)),f=m(n(91331)),p=m(n(18016)),g=m(n(13024));function m(e){return e&&e.__esModule?e:{default:e}}var _="undefined"!=typeof Intl,v={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},y={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},x=(0,i.default)({engine:function(){return"base"},_getPatternByFormat:function(e){return v[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return-1!==this._expandPattern(e).indexOf("MMMM")},formatUsesDayName:function(e){return-1!==this._expandPattern(e).indexOf("EEEE")},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return(0,a.each)(t.split(/\W+/),(function(e,t){(0,a.each)(y,(function(e,i){(0,r.inArray)(t,i)>-1&&n.push(e)}))})),n},getMonthNames:function(e){return c.default.getMonthNames(e)},getDayNames:function(e){return c.default.getDayNames(e)},getQuarterNames:function(e){return c.default.getQuarterNames(e)},getPeriodNames:function(e){return c.default.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),o=this.format(n,e),a=0;a<i.length;a++)if(i[a]!==o[a])return!isNaN(parseInt(i[a]))},format:function(e,t){if(e){if(!t)return e;var n;if("function"==typeof t)n=t;else if(t.formatter)n=t.formatter;else if(t=t.type||t,(0,o.isString)(t))return t=v[t.toLowerCase()]||t,p.default.convertDigits((0,l.getFormatter)(t,this)(e));if(n)return n(e)}},parse:function(e,t){var n,i,o=this;if(e){if(!t)return this.parse(e,"shortdate");if(t.parser)return t.parser(e);if("string"!=typeof t||v[t.toLowerCase()]){i=function(e){var n=o.format(e,t);return p.default.convertDigits(n,!0)};try{n=(0,u.getFormat)(i)}catch(e){}}else n=t;if(n)return e=p.default.convertDigits(e,!0),(0,d.getParser)(n,this)(e);s.default.log("W0012");var a=new Date(e);if(a&&!isNaN(a.getTime()))return a}},firstDayOfWeekIndex:function(){var e=f.default.getValueByClosestLocale((function(e){return h.default[e]}));return void 0===e?0:e}});_&&x.inject(g.default);var b=x;t.default=b,e.exports=t.default,e.exports.default=t.default},15564:function(e,t,n){t.default=void 0;var i=n(95479),o=["January","February","March","April","May","June","July","August","September","October","November","December"],a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r=["AM","PM"],s=["Q1","Q2","Q3","Q4"],l=function(e,t){var n={abbreviated:3,short:2,narrow:1};return(0,i.map)(e,(function(e){return e.substr(0,n[t])}))},u={getMonthNames:function(e){return l(o,e)},getDayNames:function(e){return l(a,e)},getQuarterNames:function(e){return s},getPeriodNames:function(e){return r}};t.default=u,e.exports=t.default,e.exports.default=t.default},18121:function(e,t){t.defaultMessages=void 0,t.defaultMessages={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-async":"Value is invalid","validation-async-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadAbortedMessage":"Upload cancelled","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxNumberBox-noDataText":"No data","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-exporting":"Exporting...","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaAdaptiveCollapse":"Hide additional data","dxDataGrid-ariaAdaptiveExpand":"Display additional data","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in the data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-ariaToolbar":"Data grid toolbar","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-ariaSearchInGrid":"Search in the tree list","dxTreeList-ariaToolbar":"Tree list toolbar","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPager-pageSizesAllText":"All","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceMinutely":"Every minute","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-dialogInsertTableRowsField":"Rows","dxHtmlEditor-dialogInsertTableColumnsField":"Columns","dxHtmlEditor-dialogInsertTableCaption":"Insert Table","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxHtmlEditor-background":"Background Color","dxHtmlEditor-bold":"Bold","dxHtmlEditor-color":"Font Color","dxHtmlEditor-font":"Font","dxHtmlEditor-italic":"Italic","dxHtmlEditor-link":"Add Link","dxHtmlEditor-image":"Add Image","dxHtmlEditor-size":"Size","dxHtmlEditor-strike":"Strikethrough","dxHtmlEditor-subscript":"Subscript","dxHtmlEditor-superscript":"Superscript","dxHtmlEditor-underline":"Underline","dxHtmlEditor-blockquote":"Blockquote","dxHtmlEditor-header":"Header","dxHtmlEditor-increaseIndent":"Increase Indent","dxHtmlEditor-decreaseIndent":"Decrease Indent","dxHtmlEditor-orderedList":"Ordered List","dxHtmlEditor-bulletList":"Bullet List","dxHtmlEditor-alignLeft":"Align Left","dxHtmlEditor-alignCenter":"Align Center","dxHtmlEditor-alignRight":"Align Right","dxHtmlEditor-alignJustify":"Align Justify","dxHtmlEditor-codeBlock":"Code Block","dxHtmlEditor-variable":"Add Variable","dxHtmlEditor-undo":"Undo","dxHtmlEditor-redo":"Redo","dxHtmlEditor-clear":"Clear Formatting","dxHtmlEditor-insertTable":"Insert Table","dxHtmlEditor-insertHeaderRow":"Insert Header Row","dxHtmlEditor-insertRowAbove":"Insert Row Above","dxHtmlEditor-insertRowBelow":"Insert Row Below","dxHtmlEditor-insertColumnLeft":"Insert Column Left","dxHtmlEditor-insertColumnRight":"Insert Column Right","dxHtmlEditor-deleteColumn":"Delete Column","dxHtmlEditor-deleteRow":"Delete Row","dxHtmlEditor-deleteTable":"Delete Table","dxHtmlEditor-cellProperties":"Cell Properties","dxHtmlEditor-tableProperties":"Table Properties","dxHtmlEditor-insert":"Insert","dxHtmlEditor-delete":"Delete","dxHtmlEditor-border":"Border","dxHtmlEditor-style":"Style","dxHtmlEditor-width":"Width","dxHtmlEditor-height":"Height","dxHtmlEditor-borderColor":"Color","dxHtmlEditor-tableBackground":"Background","dxHtmlEditor-dimensions":"Dimensions","dxHtmlEditor-alignment":"Alignment","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertical","dxHtmlEditor-paddingVertical":"Vertical Padding","dxHtmlEditor-paddingHorizontal":"Horizontal Padding","dxHtmlEditor-pixels":"Pixels","dxHtmlEditor-list":"List","dxHtmlEditor-ordered":"Ordered","dxHtmlEditor-bullet":"Bullet","dxHtmlEditor-align":"Align","dxHtmlEditor-center":"Center","dxHtmlEditor-left":"Left","dxHtmlEditor-right":"Right","dxHtmlEditor-indent":"Indent","dxHtmlEditor-justify":"Justify","dxFileManager-newDirectoryName":"Untitled directory","dxFileManager-rootDirectoryName":"Files","dxFileManager-errorNoAccess":"Access Denied. Operation could not be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found.","dxFileManager-errorDirectoryNotFoundFormat":"Directory '{0}' not found.","dxFileManager-errorWrongFileExtension":"File extension is not allowed.","dxFileManager-errorMaxFileSizeExceeded":"File size exceeds the maximum allowed size.","dxFileManager-errorInvalidSymbols":"This name contains invalid characters.","dxFileManager-errorDefault":"Unspecified error.","dxFileManager-errorDirectoryOpenFailed":"The directory cannot be opened","dxFileManager-commandCreate":"New directory","dxFileManager-commandRename":"Rename","dxFileManager-commandMove":"Move to","dxFileManager-commandCopy":"Copy to","dxFileManager-commandDelete":"Delete","dxFileManager-commandDownload":"Download","dxFileManager-commandUpload":"Upload files","dxFileManager-commandRefresh":"Refresh","dxFileManager-commandThumbnails":"Thumbnails View","dxFileManager-commandDetails":"Details View","dxFileManager-commandClearSelection":"Clear selection","dxFileManager-commandShowNavPane":"Toggle navigation pane","dxFileManager-dialogDirectoryChooserMoveTitle":"Move to","dxFileManager-dialogDirectoryChooserMoveButtonText":"Move","dxFileManager-dialogDirectoryChooserCopyTitle":"Copy to","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copy","dxFileManager-dialogRenameItemTitle":"Rename","dxFileManager-dialogRenameItemButtonText":"Save","dxFileManager-dialogCreateDirectoryTitle":"New directory","dxFileManager-dialogCreateDirectoryButtonText":"Create","dxFileManager-dialogDeleteItemTitle":"Delete","dxFileManager-dialogDeleteItemButtonText":"Delete","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Are you sure you want to delete {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Are you sure you want to delete {0} items?","dxFileManager-dialogButtonCancel":"Cancel","dxFileManager-editingCreateSingleItemProcessingMessage":"Creating a directory inside {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Created a directory inside {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Directory was not created","dxFileManager-editingCreateCommonErrorMessage":"Directory was not created","dxFileManager-editingRenameSingleItemProcessingMessage":"Renaming an item inside {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Renamed an item inside {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item was not renamed","dxFileManager-editingRenameCommonErrorMessage":"Item was not renamed","dxFileManager-editingDeleteSingleItemProcessingMessage":"Deleting an item from {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Deleting {0} items from {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Deleted an item from {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"Deleted {0} items from {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item was not deleted","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items were not deleted","dxFileManager-editingDeleteCommonErrorMessage":"Some items were not deleted","dxFileManager-editingMoveSingleItemProcessingMessage":"Moving an item to {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Moving {0} items to {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Moved an item to {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"Moved {0} items to {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item was not moved","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items were not moved","dxFileManager-editingMoveCommonErrorMessage":"Some items were not moved","dxFileManager-editingCopySingleItemProcessingMessage":"Copying an item to {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Copying {0} items to {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Copied an item to {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"Copied {0} items to {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item was not copied","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items were not copied","dxFileManager-editingCopyCommonErrorMessage":"Some items were not copied","dxFileManager-editingUploadSingleItemProcessingMessage":"Uploading an item to {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Uploading {0} items to {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Uploaded an item to {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"Uploaded {0} items to {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item was not uploaded","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items were not uploaded","dxFileManager-editingUploadCanceledMessage":"Canceled","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Date Modified","dxFileManager-listDetailsColumnCaptionFileSize":"File Size","dxFileManager-listThumbnailsTooltipTextSize":"Size","dxFileManager-listThumbnailsTooltipTextDateModified":"Date Modified","dxFileManager-notificationProgressPanelTitle":"Progress","dxFileManager-notificationProgressPanelEmptyListText":"No operations","dxFileManager-notificationProgressPanelOperationCanceled":"Canceled","dxDiagram-categoryGeneral":"General","dxDiagram-categoryFlowchart":"Flowchart","dxDiagram-categoryOrgChart":"Org Chart","dxDiagram-categoryContainers":"Containers","dxDiagram-categoryCustom":"Custom","dxDiagram-commandExportToSvg":"Export to SVG","dxDiagram-commandExportToPng":"Export to PNG","dxDiagram-commandExportToJpg":"Export to JPEG","dxDiagram-commandUndo":"Undo","dxDiagram-commandRedo":"Redo","dxDiagram-commandFontName":"Font Name","dxDiagram-commandFontSize":"Font Size","dxDiagram-commandBold":"Bold","dxDiagram-commandItalic":"Italic","dxDiagram-commandUnderline":"Underline","dxDiagram-commandTextColor":"Font Color","dxDiagram-commandLineColor":"Line Color","dxDiagram-commandLineWidth":"Line Width","dxDiagram-commandLineStyle":"Line Style","dxDiagram-commandLineStyleSolid":"Solid","dxDiagram-commandLineStyleDotted":"Dotted","dxDiagram-commandLineStyleDashed":"Dashed","dxDiagram-commandFillColor":"Fill Color","dxDiagram-commandAlignLeft":"Align Left","dxDiagram-commandAlignCenter":"Align Center","dxDiagram-commandAlignRight":"Align Right","dxDiagram-commandConnectorLineType":"Connector Line Type","dxDiagram-commandConnectorLineStraight":"Straight","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"Connector Line Start","dxDiagram-commandConnectorLineEnd":"Connector Line End","dxDiagram-commandConnectorLineNone":"None","dxDiagram-commandConnectorLineArrow":"Arrow","dxDiagram-commandFullscreen":"Full Screen","dxDiagram-commandUnits":"Units","dxDiagram-commandPageSize":"Page Size","dxDiagram-commandPageOrientation":"Page Orientation","dxDiagram-commandPageOrientationLandscape":"Landscape","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Page Color","dxDiagram-commandShowGrid":"Show Grid","dxDiagram-commandSnapToGrid":"Snap to Grid","dxDiagram-commandGridSize":"Grid Size","dxDiagram-commandZoomLevel":"Zoom Level","dxDiagram-commandAutoZoom":"Auto Zoom","dxDiagram-commandFitToContent":"Fit to Content","dxDiagram-commandFitToWidth":"Fit to Width","dxDiagram-commandAutoZoomByContent":"Auto Zoom by Content","dxDiagram-commandAutoZoomByWidth":"Auto Zoom by Width","dxDiagram-commandSimpleView":"Simple View","dxDiagram-commandCut":"Cut","dxDiagram-commandCopy":"Copy","dxDiagram-commandPaste":"Paste","dxDiagram-commandSelectAll":"Select All","dxDiagram-commandDelete":"Delete","dxDiagram-commandBringToFront":"Bring to Front","dxDiagram-commandSendToBack":"Send to Back","dxDiagram-commandLock":"Lock","dxDiagram-commandUnlock":"Unlock","dxDiagram-commandInsertShapeImage":"Insert Image...","dxDiagram-commandEditShapeImage":"Change Image...","dxDiagram-commandDeleteShapeImage":"Delete Image","dxDiagram-commandLayoutLeftToRight":"Left-to-right","dxDiagram-commandLayoutRightToLeft":"Right-to-left","dxDiagram-commandLayoutTopToBottom":"Top-to-bottom","dxDiagram-commandLayoutBottomToTop":"Bottom-to-top","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Cancel","dxDiagram-dialogInsertShapeImageTitle":"Insert Image","dxDiagram-dialogEditShapeImageTitle":"Change Image","dxDiagram-dialogEditShapeImageSelectButton":"Select image","dxDiagram-dialogEditShapeImageLabelText":"or drop file here","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Properties","dxDiagram-uiSettings":"Settings","dxDiagram-uiShowToolbox":"Show Toolbox","dxDiagram-uiSearch":"Search","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Tree","dxDiagram-uiLayoutLayered":"Layered","dxDiagram-uiDiagram":"Diagram","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Object","dxDiagram-uiConnector":"Connector","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Cross","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamond","dxDiagram-shapeHeart":"Heart","dxDiagram-shapePentagon":"Pentagon","dxDiagram-shapeHexagon":"Hexagon","dxDiagram-shapeOctagon":"Octagon","dxDiagram-shapeStar":"Star","dxDiagram-shapeArrowLeft":"Left Arrow","dxDiagram-shapeArrowUp":"Up Arrow","dxDiagram-shapeArrowRight":"Right Arrow","dxDiagram-shapeArrowDown":"Down Arrow","dxDiagram-shapeArrowUpDown":"Up Down Arrow","dxDiagram-shapeArrowLeftRight":"Left Right Arrow","dxDiagram-shapeProcess":"Process","dxDiagram-shapeDecision":"Decision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Predefined Process","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Multiple Documents","dxDiagram-shapeManualInput":"Manual Input","dxDiagram-shapePreparation":"Preparation","dxDiagram-shapeData":"Data","dxDiagram-shapeDatabase":"Database","dxDiagram-shapeHardDisk":"Hard Disk","dxDiagram-shapeInternalStorage":"Internal Storage","dxDiagram-shapePaperTape":"Paper Tape","dxDiagram-shapeManualOperation":"Manual Operation","dxDiagram-shapeDelay":"Delay","dxDiagram-shapeStoredData":"Stored Data","dxDiagram-shapeDisplay":"Display","dxDiagram-shapeMerge":"Merge","dxDiagram-shapeConnector":"Connector","dxDiagram-shapeOr":"Or","dxDiagram-shapeSummingJunction":"Summing Junction","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertical Container","dxDiagram-shapeHorizontalContainer":"Horizontal Container","dxDiagram-shapeCardDefaultText":"Person's Name","dxDiagram-shapeCardWithImageOnLeft":"Card with Image on the Left","dxDiagram-shapeCardWithImageOnTop":"Card with Image on the Top","dxDiagram-shapeCardWithImageOnRight":"Card with Image on the Right","dxGantt-dialogTitle":"Title","dxGantt-dialogStartTitle":"Start","dxGantt-dialogEndTitle":"End","dxGantt-dialogProgressTitle":"Progress","dxGantt-dialogResourcesTitle":"Resources","dxGantt-dialogResourceManagerTitle":"Resource Manager","dxGantt-dialogTaskDetailsTitle":"Task Details","dxGantt-dialogEditResourceListHint":"Edit Resource List","dxGantt-dialogEditNoResources":"No resources","dxGantt-dialogButtonAdd":"Add","dxGantt-contextMenuNewTask":"New Task","dxGantt-contextMenuNewSubtask":"New Subtask","dxGantt-contextMenuDeleteTask":"Delete Task","dxGantt-contextMenuDeleteDependency":"Delete Dependency","dxGantt-dialogTaskDeleteConfirmation":"Deleting a task also deletes all its dependencies and subtasks. Are you sure you want to delete this task?","dxGantt-dialogDependencyDeleteConfirmation":"Are you sure you want to delete the dependency from the task?","dxGantt-dialogResourcesDeleteConfirmation":"Deleting a resource also deletes it from tasks to which this resource is assigned. Are you sure you want to delete these resources? Resources: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. How would you like to proceed?","dxGantt-dialogCancelOperationMessage":"Cancel the operation","dxGantt-dialogDeleteDependencyMessage":"Delete the dependency","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Move the task and keep the dependency","dxGantt-undo":"Undo","dxGantt-redo":"Redo","dxGantt-expandAll":"Expand All","dxGantt-collapseAll":"Collapse All","dxGantt-addNewTask":"Add New Task","dxGantt-deleteSelectedTask":"Delete Selected Task","dxGantt-zoomIn":"Zoom In","dxGantt-zoomOut":"Zoom Out","dxGantt-fullScreen":"Full Screen","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Sort Ascending","dxGantt-sortingDescendingText":"Sort Descending","dxGantt-sortingClearText":"Clear Sorting","dxGantt-showResources":"Show Resources","dxGantt-showDependencies":"Show Dependencies","dxGantt-dialogStartDateValidation":"Start date must be after {0}","dxGantt-dialogEndDateValidation":"End date must be after {0}"}}},74872:function(e,t,n){var i=a(n(71272)),o=a(n(91331));function a(e){return e&&e.__esModule?e:{default:e}}i.default&&i.default.load&&(i.default.locale()||(i.default.load({supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11965 $"},likelySubtags:{en:"en-Latn-US",de:"de-Latn-DE",ru:"ru-Cyrl-RU",ja:"ja-Jpan-JP"}}}),i.default.locale("en")),o.default.inject({locale:function(e){if(!e)return i.default.locale().locale;i.default.locale(e)}}))},7239:function(e,t,n){var i=s(n(44592));n(74872),n(908),n(89740),n(71272);var o=s(n(71272)),a=s(n(80209)),r=s(n(18016));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if(o.default&&o.default.formatCurrency){"en"===o.default.locale().locale&&(o.default.load({main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{currencies:{USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}}}}}},{supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},currencyData:{fractions:{DEFAULT:{_rounding:"0",_digits:"2"}}}}}),o.default.locale("en"));var u={},d=function(e,t){var n,i;return i="object"===l(t)?o.default.locale().locale+":"+e+":"+JSON.stringify(t):o.default.locale().locale+":"+e+":"+t,(n=u[i])||(n=u[i]=o.default.currencyFormatter(e,t)),n},c={_formatNumberCore:function(e,t,n){if("currency"===t){var i=n&&n.currency||(0,a.default)().defaultCurrency;return d(i,this._normalizeFormatConfig(t,n,e))(e)}return this.callBase.apply(this,arguments)},_normalizeFormatConfig:function(e,t,n){var i=this.callBase(e,t,n);return"currency"===e&&(i.style="accounting"),i},format:function(e,t){if("number"!=typeof e)return e;if(t=this._normalizeFormat(t)){if("default"===t.currency&&(t.currency=(0,a.default)().defaultCurrency),"currency"===t.type)return this._formatNumber(e,this._parseNumberFormatString("currency"),t);if(!t.type&&t.currency)return d(t.currency,t)(e)}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(e){return e||(e=(0,a.default)().defaultCurrency),o.default.cldr.main("numbers/currencies/"+e)},getOpenXmlCurrencyFormat:function(e){var t=this.getCurrencySymbol(e).symbol,n=o.default.cldr.main("numbers/currencyFormats-numberSystem-latn").accounting;return(0,i.default)(t,n)}};r.default.inject(c)}},60316:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(74872),n(908),n(71272);var o=u(n(71272)),a=u(n(91500)),r=n(35922),s=n(89386),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(95479));function u(e){return e&&e.__esModule?e:{default:e}}var d=["skeleton","date","time","datetime","raw"],c=/[\u200E\u200F]/g;if(o.default&&o.default.formatDate){"en"===o.default.locale().locale&&(o.default.load({supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},weekData:{minDays:{"001":"1",US:"1",DE:"4"},firstDay:{"001":"mon",DE:"mon",RU:"mon",JP:"sun",US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}},{supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},timeData:{"001":{_allowed:"H h",_preferred:"H"},DE:{_allowed:"H",_preferred:"H"},JP:{_allowed:"H K h",_preferred:"H"},RU:{_allowed:"H",_preferred:"H"},US:{_allowed:"H h",_preferred:"h"}}}},{main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{format:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},quarters:{format:{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}},"stand-alone":{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},appendItems:{Day:"{0} ({2}: {1})","Day-Of-Week":"{0} {1}",Era:"{0} {1}",Hour:"{0} ({2}: {1})",Minute:"{0} ({2}: {1})",Month:"{0} ({2}: {1})",Quarter:"{0} ({2}: {1})",Second:"{0} ({2}: {1})",Timezone:"{0} {1}",Week:"{0} ({2}: {1})",Year:"{0} {1}"},intervalFormats:{intervalFormatFallback:"{0} \u2013 {1}",d:{d:"d \u2013 d"},h:{a:"h a \u2013 h a",h:"h \u2013 h a"},H:{H:"HH \u2013 HH"},hm:{a:"h:mm a \u2013 h:mm a",h:"h:mm \u2013 h:mm a",m:"h:mm \u2013 h:mm a"},Hm:{H:"HH:mm \u2013 HH:mm",m:"HH:mm \u2013 HH:mm"},hmv:{a:"h:mm a \u2013 h:mm a v",h:"h:mm \u2013 h:mm a v",m:"h:mm \u2013 h:mm a v"},Hmv:{H:"HH:mm \u2013 HH:mm v",m:"HH:mm \u2013 HH:mm v"},hv:{a:"h a \u2013 h a v",h:"h \u2013 h a v"},Hv:{H:"HH \u2013 HH v"},M:{M:"M \u2013 M"},Md:{d:"M/d \u2013 M/d",M:"M/d \u2013 M/d"},MEd:{d:"E, M/d \u2013 E, M/d",M:"E, M/d \u2013 E, M/d"},MMM:{M:"MMM \u2013 MMM"},MMMd:{d:"MMM d \u2013 d",M:"MMM d \u2013 MMM d"},MMMEd:{d:"E, MMM d \u2013 E, MMM d",M:"E, MMM d \u2013 E, MMM d"},y:{y:"y \u2013 y"},yM:{M:"M/y \u2013 M/y",y:"M/y \u2013 M/y"},yMd:{d:"M/d/y \u2013 M/d/y",M:"M/d/y \u2013 M/d/y",y:"M/d/y \u2013 M/d/y"},yMEd:{d:"E, M/d/y \u2013 E, M/d/y",M:"E, M/d/y \u2013 E, M/d/y",y:"E, M/d/y \u2013 E, M/d/y"},yMMM:{M:"MMM \u2013 MMM y",y:"MMM y \u2013 MMM y"},yMMMd:{d:"MMM d \u2013 d, y",M:"MMM d \u2013 MMM d, y",y:"MMM d, y \u2013 MMM d, y"},yMMMEd:{d:"E, MMM d \u2013 E, MMM d, y",M:"E, MMM d \u2013 E, MMM d, y",y:"E, MMM d, y \u2013 E, MMM d, y"},yMMMM:{M:"MMMM \u2013 MMMM y",y:"MMMM y \u2013 MMMM y"}}}}}}}}}),o.default.locale("en"));var h={},f={shortdate:{path:"dateTimeFormats/availableFormats/yMd"},shorttime:{path:"timeFormats/short"},longdate:{path:"dateFormats/full"},longtime:{path:"timeFormats/medium"},monthandday:{path:"dateTimeFormats/availableFormats/MMMMd"},monthandyear:{path:"dateTimeFormats/availableFormats/yMMMM"},quarterandyear:{path:"dateTimeFormats/availableFormats/yQQQ"},day:{path:"dateTimeFormats/availableFormats/d"},year:{path:"dateTimeFormats/availableFormats/y"},shortdateshorttime:{path:"dateTimeFormats/short",parts:["shorttime","shortdate"]},longdatelongtime:{path:"dateTimeFormats/medium",parts:["longtime","longdate"]},month:{pattern:"LLLL"},shortyear:{pattern:"yy"},dayofweek:{pattern:"EEEE"},quarter:{pattern:"QQQ"},millisecond:{pattern:"SSS"},hour:{pattern:"HH"},minute:{pattern:"mm"},second:{pattern:"ss"}},p={engine:function(){return"globalize"},_getPatternByFormat:function(e){var t=this,n=e.toLowerCase(),i=f[n];if("datetime-local"===n)return"yyyy-MM-ddTHH':'mm':'ss";if(i){var o=i.path&&t._getFormatStringByPath(i.path)||i.pattern;return i.parts&&l.each(i.parts,(function(e,n){o=o.replace("{"+e+"}",t._getPatternByFormat(n))})),o}},_getFormatStringByPath:function(e){return o.default.locale().main("dates/calendars/gregorian/"+e)},getPeriodNames:function(){var e=o.default.locale().main("dates/calendars/gregorian/dayPeriods/stand-alone/wide");return[e.am,e.pm]},getMonthNames:function(e,t){var n=o.default.locale().main("dates/calendars/gregorian/months/"+("format"===t?t:"stand-alone")+"/"+(e||"wide"));return l.map(n,(function(e){return e}))},getDayNames:function(e){var t=o.default.locale().main("dates/calendars/gregorian/days/stand-alone/"+(e||"wide"));return l.map(t,(function(e){return e}))},getTimeSeparator:function(){return o.default.locale().main("numbers/symbols-numberSystem-latn/timeSeparator")},removeRtlMarks:function(e){return e.replace(c,"")},format:function(e,t){if(e){if(!t)return e;var n,i;if("function"==typeof t)return t(e);if(t.formatter)return t.formatter(e);if("string"==typeof(t=t.type||t))i=o.default.locale().locale+":"+t,(n=h[i])||(t={raw:this._getPatternByFormat(t)||t},n=h[i]=o.default.dateFormatter(t));else{if(!this._isAcceptableFormat(t))return;n=o.default.dateFormatter(t)}return this.removeRtlMarks(n(e))}},parse:function(e,t){if(e){if(!t||"function"==typeof t||(0,r.isObject)(t)&&!this._isAcceptableFormat(t)){if(t){var n=this.callBase(e,t);if(n)return n}return o.default.parseDate(e)}return t.parser?t.parser(e):("string"==typeof t&&(t={raw:this._getPatternByFormat(t)||t}),o.default.parseDate(e,t)||this.callBase(e,t))}},_isAcceptableFormat:function(e){if(e.parser)return!0;for(var t=0;t<d.length;t++)if(Object.prototype.hasOwnProperty.call(e,d[t]))return!0},firstDayOfWeekIndex:function(){var e=o.default.locale().supplemental.weekData.firstDay();return(0,s.inArray)(e,this._getDayKeys())},_getDayKeys:function(){var e=o.default.locale().main("dates/calendars/gregorian/days/format/short");return l.map(e,(function(e,t){return t}))}};a.default.resetInjection(),a.default.inject(p)}},46949:function(e,t,n){n(74872);var i=r(n(71272)),o=r(n(28109)),a=r(n(91331));function r(e){return e&&e.__esModule?e:{default:e}}if(n(71272),i.default&&i.default.formatMessage){var s=i.default.loadMessages;i.default.loadMessages=function(e){o.default.load(e)};var l={engine:function(){return"globalize"},ctor:function(){this.load(this._dictionary)},load:function(e){this.callBase(e),s(e)},getMessagesByLocales:function(){return i.default.cldr.get("globalize-messages")},getFormatter:function(e,t){var n=t||a.default.locale(),i=this._getFormatterBase(e,t);return i||(i=this._formatterByGlobalize(e,t)),i||"en"===n||(i=this.getFormatter(e,"en")),i},_formatterByGlobalize:function(e,t){var n,o=t&&t!==a.default.locale()?new i.default(t):i.default;return this._messageLoaded(e,t)&&(n=o.messageFormatter(e)),n},_messageLoaded:function(e,t){return!!(t?new i.default(t).cldr:i.default.locale()).get(["globalize-messages/{bundle}",e])},_loadSingle:function(e,t,n){var i={};i[n]={},i[n][e]=t,this.load(i)}};o.default.inject(l)}},908:function(e,t,n){n(74872);var i=r(n(71272)),o=r(n(18016)),a=r(n(17381));function r(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if(n(71272),i.default&&i.default.formatNumber){"en"===i.default.locale().locale&&(i.default.load({main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{defaultNumberingSystem:"latn",otherNumberingSystems:{native:"latn"},minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###",long:{decimalFormat:{"1000-count-one":"0 thousand","1000-count-other":"0 thousand","10000-count-one":"00 thousand","10000-count-other":"00 thousand","100000-count-one":"000 thousand","100000-count-other":"000 thousand","1000000-count-one":"0 million","1000000-count-other":"0 million","10000000-count-one":"00 million","10000000-count-other":"00 million","100000000-count-one":"000 million","100000000-count-other":"000 million","1000000000-count-one":"0 billion","1000000000-count-other":"0 billion","10000000000-count-one":"00 billion","10000000000-count-other":"00 billion","100000000000-count-one":"000 billion","100000000000-count-other":"000 billion","1000000000000-count-one":"0 trillion","1000000000000-count-other":"0 trillion","10000000000000-count-one":"00 trillion","10000000000000-count-other":"00 trillion","100000000000000-count-one":"000 trillion","100000000000000-count-other":"000 trillion"}},short:{decimalFormat:{"1000-count-one":"0K","1000-count-other":"0K","10000-count-one":"00K","10000-count-other":"00K","100000-count-one":"000K","100000-count-other":"000K","1000000-count-one":"0M","1000000-count-other":"0M","10000000-count-one":"00M","10000000-count-other":"00M","100000000-count-one":"000M","100000000-count-other":"000M","1000000000-count-one":"0B","1000000000-count-other":"0B","10000000000-count-one":"00B","10000000000-count-other":"00B","100000000000-count-one":"000B","100000000000-count-other":"000B","1000000000000-count-one":"0T","1000000000000-count-other":"0T","10000000000000-count-one":"00T","10000000000000-count-other":"00T","100000000000000-count-one":"000T","100000000000000-count-other":"000T"}}},"scientificFormats-numberSystem-latn":{standard:"#E0"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{currencySpacing:{beforeCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"},afterCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"}},standard:"\xa4#,##0.00",accounting:"\xa4#,##0.00;(\xa4#,##0.00)",short:{standard:{"1000-count-one":"\xa40K","1000-count-other":"\xa40K","10000-count-one":"\xa400K","10000-count-other":"\xa400K","100000-count-one":"\xa4000K","100000-count-other":"\xa4000K","1000000-count-one":"\xa40M","1000000-count-other":"\xa40M","10000000-count-one":"\xa400M","10000000-count-other":"\xa400M","100000000-count-one":"\xa4000M","100000000-count-other":"\xa4000M","1000000000-count-one":"\xa40B","1000000000-count-other":"\xa40B","10000000000-count-one":"\xa400B","10000000000-count-other":"\xa400B","100000000000-count-one":"\xa4000B","100000000000-count-other":"\xa4000B","1000000000000-count-one":"\xa40T","1000000000000-count-other":"\xa40T","10000000000000-count-one":"\xa400T","10000000000000-count-other":"\xa400T","100000000000000-count-one":"\xa4000T","100000000000000-count-other":"\xa4000T"}},"unitPattern-count-one":"{0} {1}","unitPattern-count-other":"{0} {1}"},"miscPatterns-numberSystem-latn":{atLeast:"{0}+",range:"{0}\u2013{1}"}}}}}),i.default.locale("en"));var l={},u=function(e){var t,n;return n="object"===s(e)?i.default.locale().locale+":"+JSON.stringify(e):i.default.locale().locale+":"+e,(t=l[n])||(t=l[n]=i.default.numberFormatter(e)),t},d={engine:function(){return"globalize"},_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):u(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i;return i="decimal"===e?{minimumIntegerDigits:t.precision||1,useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:20,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e&&(i.style="percent"),i},_getPrecisionConfig:function(e){return null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t))&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):u(t)(e)},parse:function(e,t){if(e){if(t&&(t.parser||"string"==typeof t))return this.callBase.apply(this,arguments);t&&a.default.log("W0011");var n=i.default.parseNumber(e);return isNaN(n)&&(n=this.callBase.apply(this,arguments)),n}}};o.default.resetInjection(),o.default.inject(d)}},13024:function(e,t,n){t.default=void 0;var i,o=n(13306),a=(i=n(91331))&&i.__esModule?i:{default:i};function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=/[\u200E\u200F]/g,l=function(e){return function(t){if(!e.timeZoneName){var n=t.getFullYear(),i=String(n).length<3,a=i?n+400:n,r=new Date(Date.UTC(a,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()));return i&&r.setFullYear(n),d(r,(0,o.extend)({timeZone:"UTC"},e))}return d(t,e)}},u={};function d(e,t){return function(e){var t=a.default.locale()+"/"+JSON.stringify(e);return u[t]||(u[t]=new Intl.DateTimeFormat(a.default.locale(),e).format),u[t]}(t)(e).replace(s,"")}var c,h=function(e){return new Intl.NumberFormat(a.default.locale()).format(e)},f=(c={},function(e){if(!(e in c)){if("0"===h(0))return c[e]=!1,!1;c[e]={};for(var t=0;t<10;++t)c[e][h(t)]=t}return c[e]}),p=function(e){var t=f(a.default.locale());return t?e.split("").map((function(e){return e in t?String(t[e]):e})).join(""):e},g=function(e){return e.replace(/(\D)0+(\d)/g,"$1$2")},m=function(e){return e.replace("d\u2019","de ")},_={day:{day:"numeric"},dayofweek:{weekday:"long"},longdate:{weekday:"long",year:"numeric",month:"long",day:"numeric"},longdatelongtime:{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},longtime:{hour:"numeric",minute:"numeric",second:"numeric"},month:{month:"long"},monthandday:{month:"long",day:"numeric"},monthandyear:{year:"numeric",month:"long"},shortdate:{},shorttime:{hour:"numeric",minute:"numeric"},shortyear:{year:"2-digit"},year:{year:"numeric"}};Object.defineProperty(_,"shortdateshorttime",{get:function(){var e=Intl.DateTimeFormat(a.default.locale()).resolvedOptions();return{year:e.year,month:e.month,day:e.day,hour:"numeric",minute:"numeric"}}});var v=function(e){return"string"==typeof e&&_[e.toLowerCase()]},y={standalone:function(e,t){var n=new Date(1999,e,13,1);return l({month:t})(n)},format:function(e,t){var n=new Date(0,e,13,1),i=m(l({day:"numeric",month:t})(n)).split(" ").filter((function(e){return e.indexOf("13")<0}));return 1===i.length?i[0]:2===i.length?i[0].length>i[1].length?i[0]:i[1]:y.standalone(e,t)}},x={engine:function(){return"intl"},getMonthNames:function(e,t){var n={wide:"long",abbreviated:"short",narrow:"narrow"}[e||"wide"];return t="format"===t?t:"standalone",Array.apply(null,new Array(12)).map((function(e,i){return y[t](i,n)}))},getDayNames:function(e){return function(e){return Array.apply(null,new Array(7)).map((function(t,n){return l({weekday:e})(new Date(0,0,n))}))}({wide:"long",abbreviated:"short",short:"narrow",narrow:"narrow"}[e||"wide"])},getPeriodNames:function(){var e=l({hour:"numeric",hour12:!0});return[1,13].map((function(t){var n=h(1),i=e(new Date(0,0,1,t)).split(n);return 2!==i.length?"":(i[0].length>i[1].length?i[0]:i[1]).trim()}))},format:function(e,t){if(e){if(!t)return e;"function"==typeof t||t.formatter||(t=t.type||t);var n=v(t);if(n)return l(n)(e);var i=r(t);return t.formatter||"function"===i||"string"===i?this.callBase.apply(this,arguments):l(t)(e)}},parse:function(e,t){var n,i=this;return t&&!t.parser&&"string"==typeof e&&(e=m(e),n=function(e){return m(i.format(e,t))}),this.callBase(e,n||t)},_parseDateBySimpleFormat:function(e,t){var n=this;e=p(e);var i=this.getFormatParts(t),o=e.split(/\D+/).filter((function(e){return e.length>0}));if(i.length===o.length){var a=this._generateDateArgs(i,o),r=function(i){var o,r,s=function(e,t){var n=t?12:0;return new Date(e.year,e.month,e.day,(e.hours+n)%24,e.minutes,e.seconds)}(a,i);if(o=p(n.format(s,t)),r=e,g(o)===g(r))return s};return r(!1)||r(!0)}},_generateDateArgs:function(e,t){var n=new Date,i={year:n.getFullYear(),month:n.getMonth(),day:n.getDate(),hours:0,minutes:0,seconds:0};return e.forEach((function(e,n){var o=t[n],a=parseInt(o,10);"month"===e&&(a-=1),i[e]=a})),i},formatUsesMonthName:function(e){return"object"!==r(e)||e.type||e.format?this.callBase.apply(this,arguments):"long"===e.month},formatUsesDayName:function(e){return"object"!==r(e)||e.type||e.format?this.callBase.apply(this,arguments):"long"===e.weekday},getTimeSeparator:function(){return p(d(new Date(2001,1,1,11,11),{hour:"numeric",minute:"numeric",hour12:!1})).replace(/\d/g,"")},getFormatParts:function(e){if("string"==typeof e)return this.callBase(e);var t=(0,o.extend)({},_[e.toLowerCase()]),n=new Date(2001,2,4,5,6,7),i=l(t)(n);return i=p(i),[{name:"year",value:1},{name:"month",value:3},{name:"day",value:4},{name:"hours",value:5},{name:"minutes",value:6},{name:"seconds",value:7}].map((function(e){return{name:e.name,index:i.indexOf(e.value)}})).filter((function(e){return e.index>-1})).sort((function(e,t){return e.index-t.index})).map((function(e){return e.name}))}};t.default=x,e.exports=t.default,e.exports.default=t.default},38702:function(e,t,n){t.default=void 0;var i=s(n(80209)),o=s(n(91331)),a=s(n(44592)),r=s(n(71868));function s(e){return e&&e.__esModule?e:{default:e}}var l=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,u={},d=function(e){var t=o.default.locale()+"/"+JSON.stringify(e);return u[t]||(u[t]=new Intl.NumberFormat(o.default.locale(),e).format),u[t]},c={engine:function(){return"intl"},_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):d(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var o;return o="decimal"===e?{minimumIntegerDigits:t.precision||void 0,useGrouping:!1,maximumFractionDigits:String(n).length,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e?o.style="percent":"currency"===e&&(o.style="currency",o.currency=t.currency||(0,i.default)().defaultCurrency),o},_getPrecisionConfig:function(e){return null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:("default"===(t=this._normalizeFormat(t)).currency&&(t.currency=(0,i.default)().defaultCurrency),t&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):d(t)(e))},_getCurrencySymbolInfo:function(e){var t=function(e){return new Intl.NumberFormat(o.default.locale(),{style:"currency",currency:e})}(e);return this._extractCurrencySymbolInfo(t.format(0))},_extractCurrencySymbolInfo:function(e){var t=l.exec(e)||[];return{position:t[1]?"before":"after",symbol:t[1]||t[4]||"",delimiter:t[2]||t[3]||""}},getCurrencySymbol:function(e){return e||(e=(0,i.default)().defaultCurrency),{symbol:this._getCurrencySymbolInfo(e).symbol}},getOpenXmlCurrencyFormat:function(e){var t=e||(0,i.default)().defaultCurrency,n=this._getCurrencySymbolInfo(t).symbol,s=o.default.getValueByClosestLocale((function(e){return r.default[e]}));return(0,a.default)(n,s)}};t.default=c,e.exports=t.default,e.exports.default=t.default},9821:function(e,t,n){t.getLanguageId=function(){return a[o.default.locale()]};var i,o=(i=n(91331))&&i.__esModule?i:{default:i},a={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848}},59937:function(e,t,n){t.getFormat=void 0;var i,o=(i=n(18016))&&i.__esModule?i:{default:i},a=" .,:;/\\<>()-[]\u060c",r=function(e){var t=e&&o.default.convertDigits(e,!1).charCodeAt(0),n=o.default.convertDigits("0",!1).charCodeAt(0);return n<=t&&t<n+10},s=function(e,t,n,i){var o=e[n],s=e[n+1];if(!i){if("."===o||" "===o&&". m."===e.slice(n-1,n+3))return!0;if("-"===o&&!r(s))return!0}var l=i&&t.some((function(t){return e[n]!==t[n]}));return a.indexOf(o)<0&&i===r(o)&&(!i||l)},l=function(e,t){if(!r(e[t]))for(;t>0&&!r(e[t-1])&&("."===e[t-1]||a.indexOf(e[t-1])<0);)t--;return t},u=function(e,t){return Array.isArray(e)?e.map((function(e){return(t(e)||"").toString()})):(t(e)||"").toString()},d=/[a-zA-Z]/g;t.getFormat=function(e){var t=[],n=u(new Date(2009,8,8,6,5,4),e),i=n.split("").map((function(e,t){return t})),o=n,a={},c=[{date:new Date(2009,8,8,6,5,4,111),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(o)return c.forEach((function(d){var c=function(e,t,n,i){var o=0,a=[],u=function(t){return e[o]!==t[o]&&(void 0===i||r(e[o])===i)};for(Array.isArray(t)||(t=[t]),o=0;o<e.length;o++)if(n.indexOf(o)<0&&t.filter(u).length){o=l(e,o);do{if(i=r(e[o]),!a.length&&!i&&r(t[0][o]))break;a.push(o),n.unshift(o),o++}while(e[o]&&s(e,t,o,i));break}return 1!==a.length||"0"!==e[n[0]-1]&&"\u0660"!==e[n[0]-1]||n.unshift(n[0]-1),a}(n,u(d.date,e),t,d.isDigit),h="M"!==d.pattern||a.d?d.pattern:"L";o=function(e,t,n,i){var o,a,s;if(!r(e[t[0]]||"0")){for(var l=Math.max(t.length<=3?3:4,n.length);t.length>l;){for(s=i[a=t.pop()],i[a]=-1,o=a+1;o<i.length;o++)i[o]--;e=e.substr(0,s)+e.substr(s+1)}for(s=(a=t[t.length-1]+1)<i.length?i[a]:a;t.length<l;){for(t.push(t[t.length-1]+1),o=a;o<i.length;o++)i[o]++;e=e.substr(0,s)+" "+e.substr(s)}}return e=function(e,t,n,i){var o=t[0],a=o<i.length?i[o]:o;return t.forEach((function(t,i){e=e.substr(0,a+i)+(n.length>1?n[i]:n)+e.substr(a+i+1)})),1===t.length&&(e=(e=e.replace("0"+n,n+n)).replace("\u0660"+n,n+n)),e}(e,t,n,i)}(o,c,h,i),a[h]=c.length})),o=function(e,t,n,i){var o=t.split("").map((function(e,t){return n.indexOf(t)<0&&(e.match(d)||"'"===e)?i[t]:-1}));return e.split("").map((function(e,t){var n=e,i=o.indexOf(t)>=0,a=t>0&&o.indexOf(t-1)>=0,r=o.indexOf(t+1)>=0;return i&&(a||(n="'"+n),r||(n+="'")),n})).join("")}(o,n,t,i),t.length?o:void 0}},40594:function(e,t){function n(e,t){for(;e.length<t;)e="0"+e;return e}t.getFormatter=void 0;var i={3:"abbreviated",4:"wide",5:"narrow"},o={y:function(e,t,i){var o=e[i?"getUTCFullYear":"getFullYear"]();return 2===t&&(o%=100),n(o.toString(),t)},M:function(e,t,o,a){var r=e[o?"getUTCMonth":"getMonth"](),s=i[t];return s?a.getMonthNames(s,"format")[r]:n((r+1).toString(),Math.min(t,2))},L:function(e,t,o,a){var r=e[o?"getUTCMonth":"getMonth"](),s=i[t];return s?a.getMonthNames(s,"standalone")[r]:n((r+1).toString(),Math.min(t,2))},Q:function(e,t,o,a){var r=e[o?"getUTCMonth":"getMonth"](),s=Math.floor(r/3),l=i[t];return l?a.getQuarterNames(l)[s]:n((s+1).toString(),Math.min(t,2))},E:function(e,t,n,o){var a=e[n?"getUTCDay":"getDay"](),r=i[t<3?3:t];return o.getDayNames(r)[a]},a:function(e,t,n,o){var a=e[n?"getUTCHours":"getHours"]()<12?0:1,r=i[t];return o.getPeriodNames(r)[a]},d:function(e,t,i){return n(e[i?"getUTCDate":"getDate"]().toString(),Math.min(t,2))},H:function(e,t,i){return n(e[i?"getUTCHours":"getHours"]().toString(),Math.min(t,2))},h:function(e,t,i){return n((e[i?"getUTCHours":"getHours"]()%12||12).toString(),Math.min(t,2))},m:function(e,t,i){return n(e[i?"getUTCMinutes":"getMinutes"]().toString(),Math.min(t,2))},s:function(e,t,i){return n(e[i?"getUTCSeconds":"getSeconds"]().toString(),Math.min(t,2))},S:function(e,t,i){return n(e[i?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,t)},x:function(e,t,i){var o=i?0:e.getTimezoneOffset(),a=o>0?"-":"+",r=Math.abs(o),s=r%60,l=n(Math.floor(r/60).toString(),2),u=n(s.toString(),2);return a+l+(t>=3?":":"")+(t>1||s?u:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":o.x(e,t,n)},Z:function(e,t,n){return o.X(e,t>=5?3:2,n)}};t.getFormatter=function(e,t){return function(n){var i,a,r,s,l=0,u=!1,d="";if(!n)return null;if(!e)return n;var c="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(i=0;i<e.length;i++)r=e[i],a=o[r],l++,(s=r===e[i+1])||(a&&!u&&(d+=a(n,l,c,t)),l=0),"'"!==r||s?!u&&a||(d+=r):u=!u,"'"===r&&s&&i++;return d}}},2892:function(e,t,n){t.isPossibleForParsingFormat=t.getRegExpInfo=t.getPatternSetters=t.getParser=void 0;var i=n(20576),o=n(30869),a={3:"abbreviated",4:"wide",5:"narrow"},r=function(e,t){return e>2?Object.keys(a).map((function(e){return["format","standalone"].map((function(n){return t.getMonthNames(a[e],n).join("|")})).join("|")})).join("|"):2===e?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},s={":":function(e,t){var n=e>1?"{".concat(e,"}"):"",o=(0,i.escapeRegExp)(t.getTimeSeparator());return":"!==o&&(o="".concat(o,"|:")),"".concat(o).concat(n)},y:function(e){return 2===e?"[0-9]{".concat(e,"}"):"[0-9]+?"},M:r,L:r,Q:function(e,t){return e>2?t.getQuarterNames(a[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(a[e<3?3:e],"format").join("|")},d:function(e){return 2===e?"3[01]|[12][0-9]|0?[1-9]":"0??[1-9]|[12][0-9]|3[01]"},H:function(e){return 2===e?"2[0-3]|1[0-9]|0?[0-9]":"0??[0-9]|1[0-9]|2[0-3]"},h:function(e){return 2===e?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},m:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},s:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,".concat(e,"}")},w:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"}},l=Number,u=function(e,t){return e.map((function(e){return e.toLowerCase()})).indexOf(t.toLowerCase())},d=function(e,t,n){return t>2?["format","standalone"].map((function(t){return Object.keys(a).map((function(i){var o=n.getMonthNames(a[i],t);return u(o,e)}))})).reduce((function(e,t){return e.concat(t)})).filter((function(e){return e>=0}))[0]:l(e)-1},c={y:function(e,t){var n=l(e);return 2===t?n<30?2e3+n:1900+n:n},M:d,L:d,Q:function(e,t,n){return t>2?n.getQuarterNames(a[t],"format").indexOf(e):l(e)-1},E:function(e,t,n){var i=n.getDayNames(a[t<3?3:t],"format");return u(i,e)},a:function(e,t,n){var i=n.getPeriodNames(a[t<3?3:t],"format");return u(i,e)},d:l,H:l,h:l,m:l,s:l,S:function(e,t){for(t=Math.max(t,3),e=e.slice(0,3);t<3;)e+="0",t++;return l(e)}},h=["y","M","d","h","m","s","S"],f={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t,n){var i=e.getHours(),o=n.h;void 0!==o&&o!==i&&i--,t||12!==i?t&&12!==i&&(i+=12):i=0,e.setHours(i)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},p=function(e,t){var n=e[t];if(!n)return 0;var i=0;do{t++,i++}while(e[t]===n);return i},g=function(e,t){for(var n="",i=0;i<t;i++)n+=e;return n},m=function(e,t){for(var n,a="",r="",l=[],u=function(){r&&(l.push("'".concat(r,"'")),a+="".concat((0,i.escapeRegExp)(r),")"),r="")},d=0;d<e.length;d++){var c=e[d],h=s[c];if("'"!==c||(n=!n,"'"===e[d-1]))if(h&&!n){var f=p(e,d),m=g(c,f);u(),l.push(m),a+="(".concat(h(f,t),")"),d+=f-1}else r||(a+="("),r+=c}return u(),v(l)||o.logger.warn("The following format may be parsed incorrectly: ".concat(e,".")),{patterns:l,regexp:new RegExp("^".concat(a,"$"),"i")}};t.getRegExpInfo=m;var _=["d","H","h","m","s","w","M","L","Q"],v=function(e){var t=function(e){if(!e)return!1;var t=e[0];return["y","S"].includes(t)||_.includes(t)&&e.length<3},n=!0,i=0;return e.every((function(e,o,a){return t(e)&&(function(e){return"S"!==e[0]&&2!==e.length}(e)&&(n=++i<2),t(a[o+1])||(i=0)),n}))};t.isPossibleForParsingFormat=v,t.getPatternSetters=function(){return f},t.getParser=function(e,t){var n=m(e,t);return function(e){var i,o=n.regexp.exec(e);if(o){var a=new Date,r=new Date(a.getFullYear(),0,1),s=n.patterns.map((function(e){return"'"===e[0]?"":"H"===e[0]?"h":e[0]})),l=(i=s.map((function(e){return h.indexOf(e)})),Math.max.apply(Math,i)),u=function(e){var t=e.filter((function(e){return h.indexOf(e)<0}));return h.concat(t)}(s),d={};return u.forEach((function(e,i){if(e&&!(i<h.length&&i>l)){var u=s.indexOf(e);if(u>=0){var p=n.patterns[u],g=o[u+1];!function(e,t,n,i,o){var a=t[0],r=f[a],s=c[a];if(r&&s){var l=s(n,t.length,i);o[t]=l,e[r]?e[r](l):r(e,l,o)}}(r,p,g,t,d)}else!function(e,t,n){var i=f[t],o=n["g"+i.substr(1)]();e[i](o)}(r,e,a)}})),r}return null}}},70629:function(e,t,n){t.getFormat=function(e){var t=".",n=e(1).indexOf("100")>=0;t=f(t,e,n,!0);var i=p(t=f(t,e,n,!1),e,n,!1),o=p(t,e,n,!0);return o==="-"+i?i:i+";"+o},t.getFormatter=function(e,t){return t=t||a,function(n){if("number"!=typeof n||isNaN(n))return"";var a=n>0||1/n==1/0,s=function(e){var t=e.split(";");return 1===t.length&&t.push("-"+t[0]),t}(e)[a?0:1];(function(e){return-1!==e.indexOf("%")&&!e.match(/'[^']*%[^']*'/g)})(s)&&(n*=100),a||(n=-n);var h,f=function(e){for(var t=!1,n=0;n<e.length;n++)if("'"===e[n]&&(t=!t),"."===e[n]&&!t)return n;return e.length}(s),p=[s.substr(0,f),s.substr(f+1)],g=u(p[1]),m=g+l(p[1]),_=u(p[0]),v=l(p[0])||t.unlimitedIntegerDigits?void 0:_,y=Math.floor(n).toString().length,x=(0,i.fitIntoRange)(m,0,15-y),b=(h=p[0],h.split(",").slice(1).map((function(e){return e.split("").filter((function(e){return"#"===e||"0"===e})).length}))).reverse(),w=(0,o.toFixed)(n,x<0?0:x).split("."),C=d(r(w[0]),_,v),S=d(w[1],g,m);C=function(e,t,n){if(!t.length)return e;for(var i=[],o=0;e;){var a=t[o];if(!a)break;i.push(e.slice(0,a)),e=e.slice(a),o<t.length-1&&o++}return i.join(n)}(C,b,t.thousandsSeparator);var k=r(c(r(p[0]),C)),D=m?c(p[1],S):"";return k+(D.match(/\d/)?t.decimalSeparator:"")+D}};var i=n(60810),o=n(97360),a={thousandsSeparator:",",decimalSeparator:"."};function r(e){return e.toString().split("").reverse().join("")}function s(e){return e.replace(/'.+'/g,"")}function l(e){if(!e)return 0;var t=s(e);return t.length-t.replace(/[#]/g,"").length}function u(e){if(!e)return 0;var t=s(e);return t.length-t.replace(/[0]/g,"").length}function d(e,t,n){if(!e)return"";for(e.length>n&&(e=e.substr(0,n));e.length>t&&"0"===e.slice(-1);)e=e.substr(0,e.length-1);for(;e.length<t;)e+="0";return e}function c(e,t){return e.split("'").map((function(e,n){var i=n%2;return!e&&i?"'":i?e:e.replace(/[,#0]+/,t)})).join("")}function h(e,t,n){var i=(t?.01:1)*parseFloat(e)||0;return n?-i:i}function f(e,t,n,i){var o,a,r,s=e;do{r&&(o=a.length===r.length?"0":"1",e=i?o+e:e+o),a=r||t(h(s,n)),r=t(h(s=i?"1"+s:s+"1",n))}while(a!==r&&(i?a.length===r.length:a.length<=r.length));if(i&&r.length>a.length){var l=-1===t(12345).indexOf("12345");do{e="1"+e}while(l&&h(e,n)<1e5)}return e}function p(e,t,n,i){var o=t(h(e,n,i)),a=e.split("."),r=t(h(a[0]+".3"+a[1].slice(1),n,i)).indexOf("3")-1;return o=o.replace(/(\d)\D(\d)/g,"$1,$2"),r>=0&&(o=o.slice(0,r)+"."+o.slice(r+1)),o=o.replace(/1+/,"1").replace(/1/g,"#"),n||(o=o.replace("%","'%'")),o}},28109:function(e,t,n){t.default=void 0;var i=c(n(68374)),o=c(n(20476)),a=n(13306),r=n(95479),s=n(68752),l=n(78008),u=c(n(91331)),d=n(18121);function c(e){return e&&e.__esModule?e:{default:e}}var h=(0,a.extend)(!0,{},d.defaultMessages),f={},p=(0,o.default)({engine:function(){return"base"},_dictionary:h,load:function(e){(0,a.extend)(!0,this._dictionary,e)},_localizablePrefix:"@",setup:function(e){this._localizablePrefix=e},localizeString:function(e){var t=this,n=new RegExp("(^|[^a-zA-Z_0-9"+t._localizablePrefix+"-]+)("+t._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),i=t._localizablePrefix+t._localizablePrefix;return e.replace(n,(function(e,n,o,a){var r,s=t._localizablePrefix+a;return o!==i&&(r=t.format(a)),r||(f[a]=(0,l.humanize)(a)),n+(r||s)}))},localizeNode:function(e){var t=this;(0,i.default)(e).each((function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):(0,i.default)(n).is("iframe")||((0,r.each)(n.attributes||[],(function(e,n){if("string"==typeof n.value){var i=t.localizeString(n.value);n.value!==i&&(n.value=i)}})),(0,i.default)(n).contents().each((function(e,n){t.localizeNode(n)}))))}))},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?f:(0,a.extend)({},f,this.getMessagesByLocales()[u.default.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=this,i=u.default.getValueByClosestLocale((function(t){return function(e,t){return e[t]||{}}(n._dictionary,t)[e]}));if(i)return function(){var e=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return e.unshift(i),s.format.apply(this,e)}},format:function(e){var t=this.getFormatter(e),n=Array.prototype.slice.call(arguments,1);return t&&t.apply(this,n)||""}});t.default=p,e.exports=t.default,e.exports.default=t.default},18016:function(e,t,n){t.default=void 0;var i=p(n(20476)),o=n(89386),a=n(20576),r=n(95479),s=n(35922),l=n(70629),u=p(n(80209)),d=p(n(17381)),c=n(97360),h=p(n(89740)),f=p(n(38702));function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var m="undefined"!=typeof Intl,_=["currency","fixedpoint","exponential","percent","decimal"],v={1:"K",2:"M",3:"B",4:"T"},y={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},x=(0,i.default)({engine:function(){return"base"},numericFormats:_,defaultLargeNumberFormatPostfixes:v,_parseNumberFormatString:function(e){var t={};if(e&&"string"==typeof e){var n=e.toLowerCase().split(" ");return(0,r.each)(n,(function(e,n){(0,o.inArray)(n,_)>-1?t.formatType=n:n in y&&(t.power=y[n])})),t.power&&!t.formatType&&(t.formatType="fixedpoint"),t.formatType?t:void 0}},_calculateNumberPower:function(e,t,n,i){var o=Math.abs(e),a=0;if(o>1)for(;o&&o>=t&&(void 0===i||a<i);)a++,o/=t;else if(o>0&&o<1)for(;o<1&&(void 0===n||a>n);)a--,o*=t;return a},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,4)),t.power&&(e=this._getNumberByPower(e,t.power,1e3));var i=this.defaultLargeNumberFormatPostfixes[t.power]||"",o=this._formatNumberCore(e,t.formatType,n);return o.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n=this._calculateNumberPower(e,10),i=this._getNumberByPower(e,n,10);void 0===t.precision&&(t.precision=1),i.toFixed(t.precision||0)>=10&&(n++,i/=10);var o=(n>=0?"+":"")+n.toString();return this._formatNumberCore(i,"fixedpoint",t)+"E"+o},_addZeroes:function(e,t){for(var n=Math.pow(10,t),i=e<0?"-":"",o=(e=(Math.abs(e)*n>>>0)/n).toString();o.length<t;)o="0"+o;return i+o},_addGroupSeparators:function(e){var t=e.toString().split(".");return t[0].replace(/\B(?=(\d{3})+(?!\d))/g,(0,u.default)().thousandsSeparator)+(t[1]?(0,u.default)().decimalSeparator+t[1]:"")},_formatNumberCore:function(e,t,n){return"exponential"===t?this._formatNumberExponential(e,n):("decimal"!==t&&null!==n.precision&&(n.precision=n.precision||0),"percent"===t&&(e*=100),void 0!==n.precision&&(e="decimal"===t?this._addZeroes(e,n.precision):null===n.precision?e.toPrecision():(0,c.toFixed)(e,n.precision)),e="decimal"!==t?this._addGroupSeparators(e):e.toString().replace(".",(0,u.default)().decimalSeparator),"percent"===t&&(e+="%"),e)},_normalizeFormat:function(e){return e?("function"==typeof e||(0,s.isPlainObject)(e)||(e={type:e}),e):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e4,"fixedPoint")[2]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(e,t){var n=this.format(90,"decimal");if("string"!=typeof e||"0"===n[1])return e;var i=t?n[1]:"0",o=t?"0":n[1],a=t?n[0]:"9",r=new RegExp("["+i+"-"+a+"]","g");return e.replace(r,(function(e){return String.fromCharCode(e.charCodeAt(0)+(o.charCodeAt(0)-i.charCodeAt(0)))}))},getNegativeEtalonRegExp:function(e){var t=this._getSeparators(),n=new RegExp("[0-9"+(0,a.escapeRegExp)(t.decimalSeparator+t.thousandsSeparator)+"]+","g"),i=this.format(-1,e).replace(n,"1");return["\\","(",")","[","]","*","+","$","^","?","|","{","}"].forEach((function(e){i=i.replace(e,"\\".concat(e))})),i=(i=i.replace(" ","\\s")).replace("1",".+"),new RegExp(i,"g")},getSign:function(e,t){if("-"===e.replace(/[^0-9-]/g,"").charAt(0))return-1;if(!t)return 1;var n=this.getNegativeEtalonRegExp(t);return e.match(n)?-1:1},format:function(e,t){if("number"!=typeof e)return e;if("number"==typeof t)return e;if("function"==typeof(t=t&&t.formatter||t))return t(e);(t=this._normalizeFormat(t)).type||(t.type="decimal");var n=this._parseNumberFormatString(t.type);if(!n){var i=this._getSeparators();return i.unlimitedIntegerDigits=t.unlimitedIntegerDigits,this.convertDigits((0,l.getFormatter)(t.type,i)(e))}return this._formatNumber(e,n,t)},parse:function(e,t){if(e){if(t&&t.parser)return t.parser(e);e=this.convertDigits(e,!0),t&&"string"!=typeof t&&d.default.log("W0011");var n=this.getDecimalSeparator(),i=new RegExp("[^0-9"+(0,a.escapeRegExp)(n)+"]","g"),r=e.replace(i,"").replace(n,".").replace(/\.$/g,"");if("."===r||""===r)return null;if(this._calcSignificantDigits(r)>15)return NaN;var s=+r*this.getSign(e,t);t=this._normalizeFormat(t);var l=this._parseNumberFormatString(t.type),u=null==l?void 0:l.power;if(u){if("auto"===u){var c=e.match(/\d(K|M|B|T)/);c&&(u=(0,o.find)(Object.keys(v),(function(e){return v[e]===c[1]})))}s*=Math.pow(10,3*u)}return"percent"===(null==l?void 0:l.formatType)&&(s/=100),s}},_calcSignificantDigits:function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.split("."),2),n=t[0],i=t[1],o=function(e){for(var t=-1,n=0;n<e.length;n++)if("0"!==e[n]){t=n;break}return t>-1?e.length-t:0},a=0;return n&&(a+=o(n.split(""))),i&&(a+=o(i.split("").reverse())),a}});x.inject(h.default),m&&x.inject(f.default);var b=x;t.default=b,e.exports=t.default,e.exports.default=t.default},44592:function(e,t){t.default=void 0,t.default=function(e,t){if(t){var n=e;if("string"==typeof e){n="";for(var i=0;i<e.length;i++)"$"!==e[i]&&(n+="\\"),n+=e[i]}for(var o={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':"&quot;","\\\xa4":n},a=t.split(";"),r=0;r<a.length;r++)for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(a[r]=a[r].replace(new RegExp(s,"g"),o[s]));return 2===a.length?a[0]+"_);"+a[1]:a[0]}},e.exports=t.default,e.exports.default=t.default},49198:function(e,t){t.default=void 0,t.default=function(e,t){var n=e[t];return n?"root"!==n&&n:t.substr(0,t.lastIndexOf("-"))},e.exports=t.default,e.exports.default=t.default},97360:function(e,t,n){t.toFixed=function(e,t){var n=t||0,i=n>0?o.apply(void 0,arguments):e;return i.toFixed(n)};var i=n(60810);function o(e,t){var n=Math.pow(10,t);return function(e){return(0,i.sign)(e)*Math.round(Math.abs(e))}(e*(10*n)/10)/n}},4928:function(e,t,n){t.hideCallback=void 0;var i,o=n(89386),a=(i=[],{add:function(e){-1===(0,o.inArray)(e,i)&&i.push(e)},remove:function(e){var t=(0,o.inArray)(e,i);-1!==t&&i.splice(t,1)},fire:function(){var e=i.pop(),t=!!e;return t&&e(),t},hasCallback:function(){return i.length>0}});t.hideCallback=a},60628:function(e,t,n){t.default=function(){return i.hideCallback.fire()};var i=n(4928);e.exports=t.default,e.exports.default=t.default},88185:function(e,t,n){t.p=void 0;var i=n(58664),o=f(n(68374)),a=f(n(73349)),r=n(58201),s=f(n(55994)),l=n(13306),u=f(n(55814)),d=n(60137),c=n(80968),h=f(n(20530));function f(e){return e&&e.__esModule?e:{default:e}}var p=(0,r.getWindow)();t.p=function(e){e=(0,l.extend)({},e);var t=h.default.real(),n=e.allowZoom,r=e.allowPan,f="allowSelection"in e?e.allowSelection:"generic"===t.platform,g="meta[name=viewport]";(0,o.default)(g).length||(0,o.default)("<meta>").attr("name","viewport").appendTo("head");var m=["width=device-width"],_=[];n?_.push("pinch-zoom"):m.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),r&&_.push("pan-x","pan-y"),r||n?(0,o.default)("html").css("msOverflowStyle","-ms-autohiding-scrollbar"):(0,o.default)("html, body").css({msContentZooming:"none",msUserSelect:"none",overflow:"hidden"}),!f&&(0,d.supportProp)("userSelect")&&(0,o.default)(".dx-viewport").css((0,c.styleProp)("userSelect"),"none"),(0,o.default)(g).attr("content",m.join()),(0,o.default)("html").css("msTouchAction",_.join(" ")||"none"),t=h.default.real(),d.touch&&(s.default.off(a.default.getDocument(),".dxInitMobileViewport"),s.default.on(a.default.getDocument(),"dxpointermove.dxInitMobileViewport",(function(e){var t=e.pointers.length,i="touch"===e.pointerType,o=!n&&t>1,a=!r&&1===t&&!e.isScrollingEvent;i&&(o||a)&&e.preventDefault()}))),t.ios&&("file:"===a.default.getLocation().protocol||u.default.add((function(){var e=(0,i.getWidth)(p);(0,i.setWidth)((0,o.default)("body"),e)}))),t.android&&u.default.add((function(){setTimeout((function(){var e=a.default.getActiveElement();e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(!1)}))}))}},44194:function(e,t,n){Object.defineProperty(t,"exportDataGrid",{enumerable:!0,get:function(){return i.exportDataGrid}}),Object.defineProperty(t,"exportGantt",{enumerable:!0,get:function(){return o.exportGantt}});var i=n(654),o=n(29982)},49697:function(e,t,n){t.ConfigContext=void 0;var i=(0,n(44105).createContext)(void 0);t.ConfigContext=i},66042:function(e,t,n){t.viewFunction=t.ConfigProviderProps=t.ConfigProvider=void 0;var i=n(44105),o=["children","rtlEnabled"];function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){return e.props.children};t.viewFunction=l;var u={};t.ConfigProviderProps=u;var d=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n.__getterCache={},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var u,d,c=i.prototype;return c.getChildContext=function(){return a({},this.context,{ConfigContext:this.config})},c.componentWillUpdate=function(e,t,n){this.props.rtlEnabled!==e.rtlEnabled&&(this.__getterCache.config=void 0)},c.render=function(){var e=this.props;return l({props:a({},e),config:this.config,restAttributes:this.restAttributes})},u=i,(d=[{key:"config",get:function(){return void 0!==this.__getterCache.config?this.__getterCache.config:this.__getterCache.config={rtlEnabled:this.props.rtlEnabled}}},{key:"restAttributes",get:function(){var e=this.props;return e.children,e.rtlEnabled,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,o)}}])&&r(u.prototype,d),i}(i.BaseInfernoComponent);t.ConfigProvider=d,d.defaultProps=u},8668:function(e,t,n){t.default=void 0;var i=r(n(90964)),o=r(n(27135)),a=n(44899);function r(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var r,d,c=o.prototype;return c.getDefaultTemplateNames=function(){return["content"]},c.getSupportedKeyNames=function(){return["space","enter"]},c.getProps=function(){var t=this,n=e.prototype.getProps.call(this);return n.onClick=function(e){var n=e.event;t._clickAction({event:n,validationGroup:t._validationGroupConfig})},"svg"===(0,a.getImageSourceType)(n.icon)&&(n.iconTemplate=this._createTemplateComponent((function(){return n.icon}))),n},c._toggleActiveState=function(e,t){var n=this.viewRef;t?n.activate():n.deactivate()},c._getSubmitAction=function(){var e=this,t=!0,n="valid";return this._createAction((function(i){var o=i.event,a=i.submitInput;if(t){var r=e._validationGroupConfig;if(void 0!==r&&""!==r){var s=r.validate(),l=s.complete,u=s.status;n=u,"pending"===u&&(t=!1,e.option("disabled",!0),l.then((function(){t=!0,e.option("disabled",!1),"valid"===(n=u)&&a.click()})))}}"valid"!==n&&o.preventDefault(),o.stopPropagation()}))},c._init=function(){e.prototype._init.call(this),this._addAction("onSubmit",this._getSubmitAction()),this._clickAction=this._createClickAction()},c._initMarkup=function(){e.prototype._initMarkup.call(this);var t=this.$element().find(".dx-button-content"),n=t.children().filter(".dx-template-wrapper"),i=t.children().filter(".dx-button-submit-input");n.length&&(n.addClass("dx-button-content"),n.append(i),t.replaceWith(n))},c._patchOptionValues=function(t){return e.prototype._patchOptionValues.call(this,s({},t,{templateData:t._templateData}))},c._findGroup=function(){var e=this.$element(),t=this.option("validationGroup");return void 0!==t&&""!==t?t:i.default.findGroup(e,this._modelByElement(e))},c._createClickAction=function(){return this._createActionByOption("onClick",{excludeValidators:["readOnly"]})},c._optionChanged=function(t){"onClick"===t.name&&(this._clickAction=this._createClickAction()),e.prototype._optionChanged.call(this,t)},r=o,(d=[{key:"_validationGroupConfig",get:function(){return i.default.getGroupConfig(this._findGroup())}},{key:"_templatesInfo",get:function(){return{template:"content"}}}])&&l(r.prototype,d),o}(o.default);t.default=d,e.exports=t.default,e.exports.default=t.default},27135:function(e,t,n){t.default=void 0;var i=n(55285),o=p(n(51661)),a=p(n(15334)),r=p(n(68374)),s=p(n(73349)),l=p(n(13046)),u=n(13306),d=n(6415),c=n(35922),h=n(93407),f=n(36583);function p(e){return e&&e.__esModule?e:{default:e}}function g(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function b(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var C=function(e,t){return function(n){Object.prototype.hasOwnProperty.call(e,n)&&void 0===e[n]&&(e[n]=t(n))}},S=function(e){var t,n;function l(t,n){var i;return(i=e.call(this,t,n)||this)._shouldRaiseContentReady=!1,i.validateKeyDownHandler(),i}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,w(t,n);var p,y,x=l.prototype;return x.validateKeyDownHandler=function(){var e=this.getSupportedKeyNames().length>0,t="function"==typeof this._viewComponent.prototype.keyDown;if(e&&!t)throw Error("Component's declaration must have 'keyDown' method.")},x._checkContentReadyOption=function(e){var t=this._getContentReadyOptions().reduce((function(e,t){return e[t]=!0,e}),{});return this._checkContentReadyOption=function(e){return!!t[e]},this._checkContentReadyOption(e)},x._getContentReadyOptions=function(){return["rtlEnabled"]},x._fireContentReady=function(){this._actionsMap.onContentReady({})},x._getDefaultOptions=function(){var t=this;return(0,u.extend)(!0,e.prototype._getDefaultOptions.call(this),this._viewComponent.defaultProps,this._propsInfo.twoWay.reduce((function(e,n){var i,o=v(n,3),a=o[0],r=o[1],s=o[2];return _({},e,(m(i={},a,t._viewComponent.defaultProps[r]),m(i,s,(function(e){return t.option(a,e)})),i))}),{}),this._propsInfo.templates.reduce((function(e,t){return _({},e,m({},t,null))}),{}))},x._initMarkup=function(){var e=this.getProps();this._renderWrapper(e)},x._renderWrapper=function(e){var t=this.$element()[0];this._isNodeReplaced||a.default.onPreRender(),a.default.render(this._viewComponent,e,t,this._isNodeReplaced),this._isNodeReplaced||(this._isNodeReplaced=!0,a.default.onAfterRender(),this._shouldRaiseContentReady=!0),this._shouldRaiseContentReady&&(this._fireContentReady(),this._shouldRaiseContentReady=!1)},x._silent=function(e,t){this._options.silent(e,t)},x._render=function(){},x._removeWidget=function(){a.default.remove(this.$element()[0])},x._dispose=function(){this._removeWidget(),e.prototype._dispose.call(this)},x._getAdditionalActionConfigs=function(){return{onContentReady:{excludeValidators:["disabled","readOnly"]}}},x._getAdditionalProps=function(){return[]},x._patchOptionValues=function(e){var t=this,n=this._propsInfo,i=n.allowNull,o=n.elements,a=n.props,r=n.twoWay,s=this._viewComponent.defaultProps,l=e.children,u=e.onKeyboardHandled,d={ref:e.ref,children:l,onKeyDown:u?function(e,t){u(t)}:void 0};return[].concat(g(a),g(this._getAdditionalProps())).forEach((function(t){Object.prototype.hasOwnProperty.call(e,t)&&(d[t]=e[t])})),i.forEach(C(d,(function(){return null}))),Object.keys(s).forEach(C(d,(function(e){return s[e]}))),r.forEach((function(e){var t=v(e,2),n=t[0],i=t[1];C(d,(function(){return s[i]}))(n)})),o.forEach((function(e){if(e in d){var n=d[e];(0,c.isRenderer)(n)&&(d[e]=t._patchElementParam(n))}})),d},x.getSupportedKeyNames=function(){return[]},x.prepareStyleProp=function(e){return"string"==typeof e.style?_({},e,{style:{},cssText:e.style}):e},x.getProps=function(){var e,t,n=this,i=this.option().elementAttr,o=this._patchOptionValues(_({},this._props,{ref:this._viewRef,children:this._extractDefaultSlot(),aria:this._aria}));return this._propsInfo.templates.forEach((function(e){o[e]=n._componentTemplates[e]})),this.prepareStyleProp(_({},o,this.elementAttr,i,{className:[].concat(g((null!==(e=this.elementAttr.class)&&void 0!==e?e:"").split(" ")),g((null!==(t=null==i?void 0:i.class)&&void 0!==t?t:"").split(" "))).filter((function(e,t,n){return e&&n.indexOf(e)===t})).join(" ").trim(),class:""},this._actionsMap))},x._getActionConfigs=function(){return{}},x._getActionConfigsFull=function(){return _({},this._getActionConfigs(),this._getAdditionalActionConfigs())},x.getDefaultTemplates=function(){var e=Object.values(this._templatesInfo),t={};return e.forEach((function(e){t[e]="dx-renovation-template-mock"})),t},x._optionsWithDefaultTemplates=function(e){var t=Object.entries(this._templatesInfo).reduce((function(t,n){var i,o=v(n,2),a=o[0],r=o[1];return _({},t,m({},a,null!==(i=e[a])&&void 0!==i?i:r))}),{});return _({},e,t)},x._init=function(){var t,n=this;e.prototype._init.call(this),this.customKeyHandlers={},null===(t=this._templateManager)||void 0===t||t.addDefaultTemplates(this.getDefaultTemplates()),this._props=this._optionsWithDefaultTemplates(this.option()),this._actionsMap={},this._aria={},this._componentTemplates={},this._propsInfo.templates.forEach((function(e){n._componentTemplates[e]=n._createTemplateComponent(n._props[e])})),Object.keys(this._getActionConfigsFull()).forEach((function(e){return n._addAction(e)})),this._viewRef=(0,i.createRef)(),this.defaultKeyHandlers=this._createDefaultKeyHandlers()},x._createDefaultKeyHandlers=function(){var e=this,t={};return this.getSupportedKeyNames().forEach((function(n){t[n]=function(t){return e.viewRef.keyDown(o.default.createKeyDownOptions(t))}})),t},x._addAction=function(e,t){var n=t;if(!n){var i=this._createActionByOption(e,this._getActionConfigsFull()[e]);n=function(e){return Object.keys(e).forEach((function(t){(0,c.isDefined)(e[t])&&s.default.isNode(e[t])&&(e[t]=(0,d.getPublicElement)((0,r.default)(e[t])))})),i(e)}}this._actionsMap[e]=n},x._optionChanged=function(t){var n=t.fullName,i=t.name,o=t.value;(0,f.updatePropsImmutable)(this._props,this.option(),i,n),this._propsInfo.templates.includes(i)&&(this._componentTemplates[i]=this._createTemplateComponent(o)),i&&this._getActionConfigsFull()[i]&&this._addAction(i),this._shouldRaiseContentReady=this._shouldRaiseContentReady||this._checkContentReadyOption(n),e.prototype._optionChanged.call(this,t),this._invalidate()},x._extractDefaultSlot=function(){return this.option("_hasAnonymousTemplateContent")?a.default.createElement(h.TemplateWrapper,{template:this._getTemplate(this._templateManager.anonymousTemplateName),transclude:!0}):null},x._createTemplateComponent=function(e){if(e){var t=this._getTemplate(e);if(!(0,c.isString)(t)||"dx-renovation-template-mock"!==t)return function(e){return a.default.createElement(h.TemplateWrapper,{template:t,model:e})}}},x._wrapKeyDownHandler=function(e){var t=this;return function(n){var i=n.keyName,o=n.originalEvent,a=n.which,r=t.customKeyHandlers,s=r[i]||r[a];return void 0===s||s.bind(t)(o,n)?null==e?void 0:e(o,n):(o.cancel=!0,o)}},x._toPublicElement=function(e){return(0,d.getPublicElement)((0,r.default)(e))},x._patchElementParam=function(e){try{var t=(0,r.default)(e),n=null==t?void 0:t.get(0);return null!=n&&n.nodeType?n:e}catch(t){return e}},x.repaint=function(){this._isNodeReplaced=!1,this._shouldRaiseContentReady=!0,this._removeWidget(),this._refresh()},x._supportedKeys=function(){return _({},this.defaultKeyHandlers,this.customKeyHandlers)},x.registerKeyHandler=function(e,t){this.customKeyHandlers[e]=t},x.setAria=function(e,t){this._aria[e]=t,this._initMarkup()},p=l,(y=[{key:"_propsInfo",get:function(){return{allowNull:[],twoWay:[],elements:[],templates:[],props:[]}}},{key:"viewRef",get:function(){var e;return null===(e=this._viewRef)||void 0===e?void 0:e.current}},{key:"elementAttr",get:function(){var e=this;if(!this._elementAttr){var t=this.$element()[0].attributes,n=Array.from(t).filter((function(n){var i;return!e._propsInfo.templates.includes(n.name)&&(null===(i=t[n.name])||void 0===i?void 0:i.specified)})).reduce((function(e,t){var n=t.name,i=t.value,o=e;return o[n]=i,o}),{});this._elementAttr=n,this._storedClasses=this.$element()[0].getAttribute("class")||""}for(var i=this.$element()[0].style,o={},a=0;a<i.length;a+=1)o[i[a]]=i.getPropertyValue(i[a]);return this._elementAttr.style=o,this._elementAttr.class=this._storedClasses,this._elementAttr}},{key:"_templatesInfo",get:function(){return{}}}])&&b(p.prototype,y),l}(l.default);t.default=S,S.IS_RENOVATED_WIDGET=!1,S.IS_RENOVATED_WIDGET=!0,e.exports=t.default,e.exports.default=t.default},93407:function(e,t,n){t.TemplateWrapper=void 0;var i=n(44105),o=n(55285),a=n(33502),r=n(3532),s=f(n(68374)),l=f(n(73349)),u=n(6415),d=n(2561),c=f(n(27050)),h=n(35922);function f(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){var t,n;function f(t){var n;return(n=e.call(this,t)||this).renderTemplate=n.renderTemplate.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n=e,(t=f).prototype=Object.create(n.prototype),t.prototype.constructor=t,g(t,n);var m=f.prototype;return m.renderTemplate=function(){var e,t=(0,o.findDOMfromVNode)(this.$LI,!0),n=t.parentNode,i=(0,s.default)(n),a=i.contents(),h=null!==(e=this.props.model)&&void 0!==e?e:{data:{}},f=h.data,g=h.index;f&&Object.keys(f).forEach((function(e){f[e]&&l.default.isNode(f[e])&&(f[e]=(0,u.getPublicElement)((0,s.default)(f[e])))}));var m=(0,s.default)(this.props.template.render(p({container:(0,u.getPublicElement)(i),transclude:this.props.transclude},this.props.transclude?{}:{model:f},!this.props.transclude&&c.default.isFinite(g)?{index:g}:{})));return(0,r.replaceWith)((0,s.default)(t),m),function(){(0,d.removeDifferentElements)(a,i.contents()),n.appendChild(t)}},m.shouldComponentUpdate=function(e){var t=this.props,n=t.model,i=t.template,o=e.model;if(i!==e.template)return!0;if((0,h.isDefined)(n)&&(0,h.isDefined)(o)){var r=n.data,s=n.index,l=o.data;return s!==o.index||!(0,a.shallowEquals)(r,l)}return!(n===o)},m.createEffects=function(){return[new i.InfernoEffect(this.renderTemplate,[this.props.template,this.props.model])]},m.updateEffects=function(){this._effects[0].update([this.props.template,this.props.model])},m.componentWillUnmount=function(){},m.render=function(){return null},f}(i.InfernoComponent);t.TemplateWrapper=m},74046:function(e,t,n){var i;function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.default=void 0;var a=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var a=i.prototype;return a._useTemplates=function(){return!1},a.getSupportedKeyNames=function(){return["space"]},a.getProps=function(){var t=e.prototype.getProps.call(this);return null!==t.value&&(t.value=Boolean(t.value)),t},i}(((i=n(88667))&&i.__esModule?i:{default:i}).default);t.default=a,e.exports=t.default,e.exports.default=t.default},88667:function(e,t,n){t.default=void 0;var i=n(35922),o=c(n(27135)),a=c(n(90964)),r=n(13306),s=c(n(68374)),l=n(97906),u=c(n(44504)),d=c(n(96452));function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f="dx-invalid-message-auto",p="dx-validation-target",g=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var d=o.prototype;return d.getProps=function(){var t=this,n=e.prototype.getProps.call(this);return n.onFocusIn=function(){if("auto"===t.option("validationMessageMode")){var e=(0,s.default)(".dx-invalid-message.dx-overlay-wrapper");null==e||e.removeClass(f),t.showValidationMessageTimeout&&clearTimeout(t.showValidationMessageTimeout),t.showValidationMessageTimeout=setTimeout((function(){null==e||e.addClass(f)}),150)}},n.saveValueChangeEvent=function(e){t._valueChangeEventInstance=e},n},d._createElement=function(t){e.prototype._createElement.call(this,t),this.showValidationMessageTimeout=void 0,this.validationRequest=(0,u.default)(),(0,l.data)(this.$element()[0],p,this)},d._init=function(){e.prototype._init.call(this),this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},d._initOptions=function(t){e.prototype._initOptions.call(this,t),this.option(a.default.initValidationOptions(t))},d._getDefaultOptions=function(){return(0,r.extend)(e.prototype._getDefaultOptions.call(this),{validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})},d._bindInnerWidgetOptions=function(e,t){var n=this,i=(0,r.extend)({},e.option()),o=function(){return n._silent(t,i)};o(),e.on("optionChanged",o)},d._raiseValidation=function(e,t){var n=!(0,i.isDefined)(e)&&!(0,i.isDefined)(t);e===t||n||this.validationRequest.fire({value:e,editor:this})},d._raiseValueChangeAction=function(e,t){var n;null===(n=this._valueChangeAction)||void 0===n||n.call(this,{element:this.$element(),previousValue:t,value:e,event:this._valueChangeEventInstance}),this._valueChangeEventInstance=void 0},d._optionChanged=function(t){var n=t.name,i=t.previousValue,o=t.value;switch(n&&void 0!==this._getActionConfigs()[n]&&this._addAction(n),n){case"value":this._raiseValidation(o,i),this._raiseValueChangeAction(o,i);break;case"onValueChanged":this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]});break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(a.default.synchronizeValidationOptions(t,this.option()))}e.prototype._optionChanged.call(this,t)},d.reset=function(){var e=this._getDefaultOptions().value;this.option({value:e})},d._dispose=function(){e.prototype._dispose.call(this),(0,l.data)(this.element(),p,null),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout)},o}(o.default);t.default=g;var m=d.default.isEditor,_=function(e){return m(e)||e instanceof g};g.isEditor=_,d.default.isEditor=_,e.exports=t.default,e.exports.default=t.default},97827:function(e,t,n){var i;function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.GridPagerWrapper=void 0;var a=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n),i.prototype._optionChanged=function(t){switch(t.name){case"pageIndex":var n=this.option("pageIndexChanged");n&&n(t.value);break;case"pageSize":var i=this.option("pageSizeChanged");i&&i(t.value)}e.prototype._optionChanged.call(this,t)},i}(((i=n(27135))&&i.__esModule?i:{default:i}).default);t.GridPagerWrapper=a},15281:function(e,t,n){var i;function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.DateTable=void 0;var r=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n),i.prototype._setOptionsByReference=function(){e.prototype._setOptionsByReference.call(this),this._optionsByReference=o({},this._optionsByReference,{dataCellTemplate:!0})},i}(((i=n(27135))&&i.__esModule?i:{default:i}).default);t.DateTable=r},55095:function(e,t,n){var i;function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.GroupPanelWrapper=void 0;var r=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n),i.prototype._setOptionsByReference=function(){e.prototype._setOptionsByReference.call(this),this._optionsByReference=o({},this._optionsByReference,{resourceCellTemplate:!0})},i}(((i=n(27135))&&i.__esModule?i:{default:i}).default);t.GroupPanelWrapper=r},86214:function(e,t,n){var i;function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.HeaderPanel=void 0;var r=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n),i.prototype._setOptionsByReference=function(){e.prototype._setOptionsByReference.call(this),this._optionsByReference=o({},this._optionsByReference,{dateHeaderData:!0,resourceCellTemplate:!0,dateCellTemplate:!0,timeCellTemplate:!0})},i}(((i=n(27135))&&i.__esModule?i:{default:i}).default);t.HeaderPanel=r},99503:function(e,t,n){var i;function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.TimePanel=void 0;var r=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n),i.prototype._setOptionsByReference=function(){e.prototype._setOptionsByReference.call(this),this._optionsByReference=o({},this._optionsByReference,{timeCellTemplate:!0})},i}(((i=n(27135))&&i.__esModule?i:{default:i}).default);t.TimePanel=r},36583:function(e,t,n){t.updatePropsImmutable=function(e,t,n,a){var r=t[n],s=e[n],u=e;(0,i.isPlainObject)(r)||n!==a&&Array.isArray(r)?u[n]=l(r,s,(0,o.getPathParts)(a).slice(1)):u[n]=r};var i=n(35922),o=n(47617);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e){return Array.isArray(e)?function(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e):a({},e)}function l(e,t,n){var o=n.length>0&&t&&e!==t?s(t):s(e),a=n[0];return n.length>1?o[a]=l(e[a],null==t?void 0:t[a],n.slice(1)):a&&((0,i.isPlainObject)(e[a])?o[a]=s(e[a]):o[a]=e[a]),o}},2561:function(e,t,n){t.removeDifferentElements=void 0;var i=n(95479);t.removeDifferentElements=function(e,t){(0,i.each)(t,(function(t,n){var o=!1;(0,i.each)(e,(function(e,t){n===t&&(o=!0)})),!o&&n.parentNode&&n.parentNode.removeChild(n)}))}},83151:function(e,t,n){t.default=void 0;var i=r(n(99393)),o=r(n(8668)),a=n(36729);function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var o,r,u=i.prototype;return u.getProps=function(){var t=e.prototype.getProps.call(this);return t.onKeyDown=this._wrapKeyDownHandler(t.onKeyDown),t},u.focus=function(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.focus.apply(e,arguments)},u.activate=function(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.activate.apply(e,arguments)},u.deactivate=function(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.deactivate.apply(e,arguments)},u._getActionConfigs=function(){return{onClick:{excludeValidators:["readOnly"]},onSubmit:{}}},o=i,(r=[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:["onSubmit"],templates:["template","iconTemplate"],props:["activeStateEnabled","hoverStateEnabled","icon","iconPosition","onClick","onSubmit","pressed","stylingMode","template","iconTemplate","text","type","useInkRipple","useSubmitBehavior","templateData","className","accessKey","disabled","focusStateEnabled","height","hint","onKeyDown","rtlEnabled","tabIndex","visible","width"]}}},{key:"_viewComponent",get:function(){return a.Button}}])&&s(o.prototype,r),i}(o.default);t.default=u,(0,i.default)("dxButton",u),u.defaultOptions=a.defaultOptions,e.exports=t.default,e.exports.default=t.default},36729:function(e,t,n){t.defaultOptionRules=t.ButtonProps=t.Button=void 0,t.defaultOptions=function(e){T.push(e),I.defaultProps=Object.create(Object.prototype,x(Object.getOwnPropertyDescriptors(I.defaultProps),Object.getOwnPropertyDescriptors((0,r.convertRulesToOptions)(k)),Object.getOwnPropertyDescriptors((0,r.convertRulesToOptions)(T))))},t.viewFunction=void 0;var i,o=n(55285),a=n(44105),r=n(45434),s=(i=n(20530))&&i.__esModule?i:{default:i},l=n(75811),u=n(72918),d=n(86237),c=n(44899),h=n(92272),f=n(84507),p=n(73687),g=n(31651),m=["accessKey","activeStateEnabled","children","className","disabled","focusStateEnabled","height","hint","hoverStateEnabled","icon","iconPosition","iconTemplate","onClick","onKeyDown","onSubmit","pressed","rtlEnabled","stylingMode","tabIndex","template","templateData","text","type","useInkRipple","useSubmitBehavior","visible","width"];function _(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=["outlined","text","contained"],C=function(e){var t=e.props,n=t.children,i=t.iconPosition,a=t.iconTemplate,r=t.template,s=t.text,l=!e.props.template&&!n&&""!==s,u="left"===i,d=!e.props.template&&!n&&(e.iconSource||e.props.iconTemplate)&&(0,o.createComponentVNode)(2,h.Icon,{source:e.iconSource,position:i,iconTemplate:a});return(0,o.normalizeProps)((0,o.createComponentVNode)(2,p.Widget,x({accessKey:e.props.accessKey,activeStateEnabled:e.props.activeStateEnabled,aria:e.aria,className:e.props.className,classes:e.cssClasses,disabled:e.props.disabled,focusStateEnabled:e.props.focusStateEnabled,height:e.props.height,hint:e.props.hint,hoverStateEnabled:e.props.hoverStateEnabled,onActive:e.onActive,onClick:e.onWidgetClick,onInactive:e.onInactive,onKeyDown:e.keyDown,rtlEnabled:e.props.rtlEnabled,tabIndex:e.props.tabIndex,visible:e.props.visible,width:e.props.width},e.restAttributes,{children:(0,o.createVNode)(1,"div","dx-button-content",[e.props.template&&r({data:e.buttonTemplateData}),!e.props.template&&n,u&&d,l&&(0,o.createVNode)(1,"span","dx-button-text",s,0),!u&&d,e.props.useSubmitBehavior&&(0,o.createVNode)(64,"input","dx-button-submit-input",null,1,{type:"submit",tabIndex:-1},null,e.submitInputRef),e.props.useInkRipple&&(0,o.createComponentVNode)(2,f.InkRipple,{config:e.inkRippleConfig},null,e.inkRippleRef)],0,null,null,e.contentRef)}),null,e.widgetRef))};t.viewFunction=C;var S=Object.create(Object.prototype,x(Object.getOwnPropertyDescriptors(g.BaseWidgetProps),Object.getOwnPropertyDescriptors(Object.defineProperties({activeStateEnabled:!0,hoverStateEnabled:!0,icon:"",iconPosition:"left",stylingMode:"contained",text:"",type:"normal",useInkRipple:!1,useSubmitBehavior:!1},{templateData:{get:function(){return{}},configurable:!0,enumerable:!0}}))));t.ButtonProps=S;var k=(0,r.createDefaultOptionRules)([{device:function(){return"desktop"===s.default.real().deviceType&&!s.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,l.isMaterial)((0,l.current)())},options:{useInkRipple:!0}}]);t.defaultOptionRules=k;var D=function(e){return e&&(e.defaultProps?function(t){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,e,x({},t)))}:e)},I=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n.contentRef=(0,o.createRef)(),n.inkRippleRef=(0,o.createRef)(),n.submitInputRef=(0,o.createRef)(),n.widgetRef=(0,o.createRef)(),n.__getterCache={},n.focus=n.focus.bind(v(n)),n.activate=n.activate.bind(v(n)),n.deactivate=n.deactivate.bind(v(n)),n.submitEffect=n.submitEffect.bind(v(n)),n.onActive=n.onActive.bind(v(n)),n.onInactive=n.onInactive.bind(v(n)),n.onWidgetClick=n.onWidgetClick.bind(v(n)),n.keyDown=n.keyDown.bind(v(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,y(t,n);var r,s,l=i.prototype;return l.createEffects=function(){return[new a.InfernoEffect(this.submitEffect,[this.props.onSubmit,this.props.useSubmitBehavior]),(0,a.createReRenderEffect)()]},l.updateEffects=function(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.onSubmit,this.props.useSubmitBehavior])},l.submitEffect=function(){var e=this,t="UIFeedback",n=this.props,i=n.onSubmit;if(n.useSubmitBehavior&&i)return u.click.on(this.submitInputRef.current,(function(t){return i({event:t,submitInput:e.submitInputRef.current})}),{namespace:t}),function(){return u.click.off(e.submitInputRef.current,{namespace:t})}},l.onActive=function(e){this.props.useInkRipple&&this.inkRippleRef.current.showWave({element:this.contentRef.current,event:e})},l.onInactive=function(e){this.props.useInkRipple&&this.inkRippleRef.current.hideWave({element:this.contentRef.current,event:e})},l.onWidgetClick=function(e){var t=this.props,n=t.onClick,i=t.useSubmitBehavior;null==n||n({event:e}),i&&this.submitInputRef.current.click()},l.keyDown=function(e){var t=this.props.onKeyDown,n=e.keyName,i=e.originalEvent,o=e.which,a=null==t?void 0:t(e);if(null!=a&&a.cancel)return a;"space"!==n&&"space"!==o&&"enter"!==n&&"enter"!==o||(i.preventDefault(),this.onWidgetClick(i))},l.focus=function(){this.widgetRef.current.focus()},l.activate=function(){this.widgetRef.current.activate()},l.deactivate=function(){this.widgetRef.current.deactivate()},l.componentWillUpdate=function(t,n,i){e.prototype.componentWillUpdate.call(this),this.props.icon===t.icon&&this.props.text===t.text&&this.props.type===t.type||(this.__getterCache.inkRippleConfig=void 0)},l.render=function(){var e=this.props;return C({props:x({},e,{template:D(e.template),iconTemplate:D(e.iconTemplate)}),contentRef:this.contentRef,submitInputRef:this.submitInputRef,inkRippleRef:this.inkRippleRef,widgetRef:this.widgetRef,onActive:this.onActive,onInactive:this.onInactive,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,aria:this.aria,cssClasses:this.cssClasses,iconSource:this.iconSource,inkRippleConfig:this.inkRippleConfig,buttonTemplateData:this.buttonTemplateData,restAttributes:this.restAttributes})},r=i,(s=[{key:"aria",get:function(){var e=this.props,t=e.icon,n=e.text,i=(null!=n?n:"")||t;return!n&&t&&"image"===(0,c.getImageSourceType)(t)&&(i=t.includes("base64")?"Base64":t.replace(/.+\/([^.]+)\..+$/,"$1")),x({role:"button"},i?{label:i}:{})}},{key:"cssClasses",get:function(){return n=(e=this.props).icon,i=e.iconPosition,o=e.stylingMode,a=e.text,r=e.type,s=o&&w.includes(o),b(t={"dx-button":!0},"dx-button-mode-".concat(s?o:"contained"),!0),b(t,"dx-button-".concat(null!=r?r:"normal"),!0),b(t,"dx-button-has-text",!!a),b(t,"dx-button-has-icon",!!n),b(t,"dx-button-icon-right","left"!==i),l=t,(0,d.combineClasses)(l);var e,t,n,i,o,a,r,s,l}},{key:"iconSource",get:function(){var e=this.props,t=e.icon,n=e.type;return t||"back"===n?(null!=t?t:"")||"back":""}},{key:"inkRippleConfig",get:function(){var e,t,n,i;return void 0!==this.__getterCache.inkRippleConfig?this.__getterCache.inkRippleConfig:this.__getterCache.inkRippleConfig=(t=(e=this.props).icon,n=e.text,i=e.type,!n&&t||"back"===i?{isCentered:!0,useHoldAnimation:!1,waveSizeCoefficient:1}:{})}},{key:"buttonTemplateData",get:function(){var e=this.props,t=e.icon,n=e.templateData;return x({icon:t,text:e.text},n)}},{key:"restAttributes",get:function(){var e=this.props;return e.accessKey,e.activeStateEnabled,e.children,e.className,e.disabled,e.focusStateEnabled,e.height,e.hint,e.hoverStateEnabled,e.icon,e.iconPosition,e.iconTemplate,e.onClick,e.onKeyDown,e.onSubmit,e.pressed,e.rtlEnabled,e.stylingMode,e.tabIndex,e.template,e.templateData,e.text,e.type,e.useInkRipple,e.useSubmitBehavior,e.visible,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,m)}}])&&_(r.prototype,s),i}(a.InfernoWrapperComponent);t.Button=I,I.defaultProps=Object.create(Object.prototype,x(Object.getOwnPropertyDescriptors(S),Object.getOwnPropertyDescriptors(x({},(0,r.convertRulesToOptions)(k)))));var T=[]},31651:function(e,t){t.BaseWidgetProps=void 0,t.BaseWidgetProps={className:"",activeStateEnabled:!1,disabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,rtlEnabled:!1,tabIndex:0,visible:!0}},96886:function(e,t,n){t.viewFunction=t.DomComponentWrapperProps=t.DomComponentWrapper=void 0;var i=n(55285),o=n(44105),a=n(49697),r=n(28240),s=["valueChange"],l=["componentProps","componentType","rootElementRef","templateNames"];function u(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var p=function(e){var t=e.props.componentProps.className,n=e.restAttributes,o=e.widgetRef;return(0,i.normalizeProps)((0,i.createVNode)(1,"div",t,null,1,f({},n),null,o))};t.viewFunction=p;var g={};t.DomComponentWrapperProps=g;var m=function(e){var t,n;function g(t){var n;return(n=e.call(this,t)||this).state={},n.widgetRef=(0,i.createRef)(),n.getInstance=n.getInstance.bind(c(n)),n.setupWidget=n.setupWidget.bind(c(n)),n.setRootElementRef=n.setRootElementRef.bind(c(n)),n.updateWidget=n.updateWidget.bind(c(n)),n}n=e,(t=g).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var m,_,v=g.prototype;return v.createEffects=function(){return[new o.InfernoEffect(this.setupWidget,[]),new o.InfernoEffect(this.setRootElementRef,[]),new o.InfernoEffect(this.updateWidget,[this.props.componentProps,this.config,this.props.templateNames])]},v.updateEffects=function(){var e;null===(e=this._effects[2])||void 0===e||e.update([this.props.componentProps,this.config,this.props.templateNames])},v.setupWidget=function(){var e=this,t=new this.props.componentType(this.widgetRef.current,this.properties);return this.instance=t,function(){t.dispose(),e.instance=null}},v.setRootElementRef=function(){var e=this.props.rootElementRef;e&&(e.current=this.widgetRef.current)},v.updateWidget=function(){var e=this.getInstance();if(e){var t=(0,r.getUpdatedOptions)(this.prevProps||{},this.properties);t.length&&(e.beginUpdate(),t.forEach((function(t){var n=t.path,i=t.value;e.option(n,i)})),e.endUpdate()),this.prevProps=this.properties}},v.getInstance=function(){return this.instance},v.render=function(){var e=this.props;return p({props:f({},e),widgetRef:this.widgetRef,config:this.config,properties:this.properties,restAttributes:this.restAttributes})},m=g,(_=[{key:"config",get:function(){return"ConfigContext"in this.context?this.context.ConfigContext:a.ConfigContext}},{key:"properties",get:function(){var e,t=this,n=this.props.componentProps,i=n.valueChange,a=u(n,s),r=f({rtlEnabled:!(null===(e=this.config)||void 0===e||!e.rtlEnabled)},a);return i&&(r.onValueChanged=function(e){var t=e.value;return i(t)}),this.props.templateNames.forEach((function(e){(0,o.hasTemplate)(e,r,t)&&(r[e]=function(n,i,a){(0,o.renderTemplate)(t.props.componentProps[e],{item:n,index:i,container:a},t)})})),r}},{key:"restAttributes",get:function(){var e=this.props;return e.componentProps,e.componentType,e.rootElementRef,e.templateNames,u(e,l)}}])&&d(m.prototype,_),g}(o.InfernoComponent);t.DomComponentWrapper=m,m.defaultProps=g},92272:function(e,t,n){t.viewFunction=t.IconProps=t.Icon=void 0;var i=n(55285),o=n(44105),a=n(44899),r=n(86237),s=["iconTemplate","position","source"];function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var h=function(e){var t=e.iconClassName,n=e.props,o=n.iconTemplate,a=n.source,r=e.sourceType;return(0,i.createFragment)(["dxIcon"===r&&(0,i.createVNode)(1,"i",t),"fontIcon"===r&&(0,i.createVNode)(1,"i",t),"image"===r&&(0,i.createVNode)(1,"img",t,null,1,{alt:"",src:a}),o&&(0,i.createVNode)(1,"i",t,o({}),0)],0)};t.viewFunction=h;var f={position:"left",source:""};t.IconProps=f;var p=function(e){var t,n,o,f;function p(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=p).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n),p.prototype.render=function(){var e,t=this.props;return h({props:c({},t,{iconTemplate:(e=t.iconTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,c({},t)))}:e))}),sourceType:this.sourceType,cssClass:this.cssClass,iconClassName:this.iconClassName,restAttributes:this.restAttributes})},o=p,(f=[{key:"sourceType",get:function(){return(0,a.getImageSourceType)(this.props.source)}},{key:"cssClass",get:function(){return"left"!==this.props.position?"dx-icon-right":""}},{key:"iconClassName",get:function(){var e=l({"dx-icon":!0},this.cssClass,!!this.cssClass),t=this.props.source;return"dxIcon"===this.sourceType?(0,r.combineClasses)(c({},e,l({},"dx-icon-".concat(t),!0))):"fontIcon"===this.sourceType?(0,r.combineClasses)(c({},e,l({},String(t),!!t))):"image"===this.sourceType?(0,r.combineClasses)(e):"svg"===this.sourceType?(0,r.combineClasses)(c({},e,{"dx-svg-icon":!0})):""}},{key:"restAttributes",get:function(){var e=this.props;return e.iconTemplate,e.position,e.source,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s)}}])&&u(o.prototype,f),p}(o.BaseInfernoComponent);t.Icon=p,p.defaultProps=f},84507:function(e,t,n){t.viewFunction=t.InkRippleProps=t.InkRipple=void 0;var i=n(55285),o=n(44105),a=n(72672),r=["config"];function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var c=function(e){return(0,i.normalizeProps)((0,i.createVNode)(1,"div","dx-inkripple",null,1,d({},e.restAttributes)))};t.viewFunction=c;var h=Object.defineProperties({},{config:{get:function(){return{}},configurable:!0,enumerable:!0}});t.InkRippleProps=h;var f=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n.__getterCache={},n.hideWave=n.hideWave.bind(l(n)),n.showWave=n.showWave.bind(l(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var o,h,f=i.prototype;return f.hideWave=function(e){(0,a.hideWave)(this.getConfig,e)},f.showWave=function(e){(0,a.showWave)(this.getConfig,e)},f.componentWillUpdate=function(e,t,n){this.props.config!==e.config&&(this.__getterCache.getConfig=void 0)},f.render=function(){var e=this.props;return c({props:d({},e),getConfig:this.getConfig,restAttributes:this.restAttributes})},o=i,(h=[{key:"getConfig",get:function(){var e;return void 0!==this.__getterCache.getConfig?this.__getterCache.getConfig:this.__getterCache.getConfig=(e=this.props.config,(0,a.initConfig)(e))}},{key:"restAttributes",get:function(){var e=this.props;return e.config,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,r)}}])&&s(o.prototype,h),i}(o.BaseInfernoComponent);t.InkRipple=f,f.defaultProps=h},28240:function(e,t,n){t.getUpdatedOptions=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;return p(e,t,"",n)};var i=n(35922);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function a(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s=["dataSource","selectedRowKeys"],l={integrationOptions:!0};function u(e,t,n){return{path:e,value:t,previousValue:n}}function d(e,t,n,r,s,d){if(!l[r]){var c=(0,i.type)(t),f=(0,i.type)(n);if(t!==n)if(c!==f)e.push(u(r,n,t));else if("object"===c)if((0,i.isPlainObject)(n)){var p=h(t,n,s,d);e.push.apply(e,a(p.map((function(e){return o({},e,{path:"".concat(r,".").concat(e.path)})}))))}else e.push(u(r,n,t));else if("array"===c)if(d.some((function(e){return s.includes(e)}))&&t!==n)e.push(u(r,n,t));else if(t.length!==n.length)e.push(u(r,n,t));else{var g=h(t,n,s,d);[].push.apply(e,g.map((function(e){return o({},e,{path:"".concat(r).concat(e.path)})})))}else e.push(u(r,n,t))}}var c=function(e){return function(t,n,i,o){var a=[],r=Array.isArray(t)?function(e){d(a,t[e],n[e],"[".concat(e,"]"),"".concat(i,".").concat(e),o)}:function(e){d(a,t[e],n[e],e,"".concat(i,".").concat(e),o)};return e(t).forEach(r),Object.keys(n).filter((function(e){return!Object.prototype.hasOwnProperty.call(t,e)&&t[e]!==n[e]})).forEach((function(e){a.push({path:e,value:n[e],previousValue:t[e]})})),a}},h=c((function(e){return Object.keys(e)})),f={key:!0,ref:!0,children:!0,style:!0},p=c((function(e){return Object.keys(e).filter((function(e){return!f[e]}))}))},73687:function(e,t,n){t.viewFunction=t.WidgetProps=t.Widget=void 0;var i=n(55285),o=n(44105);n(95429),n(24028);var a=n(35922),r=n(72918),s=n(86237),l=n(13306),u=n(31421),d=n(80968),c=n(31651),h=n(49697),f=n(66042),p=n(8374),g=y(n(55814)),m=y(n(17381)),_=y(n(73349)),v=["_feedbackHideTimeout","_feedbackShowTimeout","accessKey","activeStateEnabled","activeStateUnit","addWidgetClass","aria","children","className","classes","cssText","disabled","focusStateEnabled","height","hint","hoverStateEnabled","name","onActive","onClick","onDimensionChanged","onFocusIn","onFocusOut","onHoverEnd","onHoverStart","onInactive","onKeyDown","onRootElementRendered","onVisibilityChange","rootElementRef","rtlEnabled","tabIndex","visible","width"];function y(e){return e&&e.__esModule?e:{default:e}}function x(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var k=function(e){var t=(0,i.normalizeProps)((0,i.createVNode)(1,"div",e.cssClasses,e.props.children,0,S({},e.attributes,{tabIndex:e.tabIndex,title:e.props.hint,hidden:!e.props.visible,style:(0,o.normalizeStyles)(e.styles)}),null,e.widgetElementRef));return e.shouldRenderConfigProvider?(0,i.createComponentVNode)(2,f.ConfigProvider,{rtlEnabled:e.rtlEnabled,children:t}):t};t.viewFunction=k;var D=Object.create(Object.prototype,S(Object.getOwnPropertyDescriptors(c.BaseWidgetProps),Object.getOwnPropertyDescriptors(Object.defineProperties({_feedbackHideTimeout:400,_feedbackShowTimeout:30,cssText:"",classes:"",name:"",addWidgetClass:!0},{aria:{get:function(){return{}},configurable:!0,enumerable:!0}}))));t.WidgetProps=D;var I=function(e){var t,n;function c(t){var n;return(n=e.call(this,t)||this).widgetElementRef=(0,i.createRef)(),n.state={active:!1,focused:!1,hovered:!1},n.setRootElementRef=n.setRootElementRef.bind(b(n)),n.activeEffect=n.activeEffect.bind(b(n)),n.clickEffect=n.clickEffect.bind(b(n)),n.focus=n.focus.bind(b(n)),n.blur=n.blur.bind(b(n)),n.activate=n.activate.bind(b(n)),n.deactivate=n.deactivate.bind(b(n)),n.focusEffect=n.focusEffect.bind(b(n)),n.hoverEffect=n.hoverEffect.bind(b(n)),n.keyboardEffect=n.keyboardEffect.bind(b(n)),n.resizeEffect=n.resizeEffect.bind(b(n)),n.windowResizeEffect=n.windowResizeEffect.bind(b(n)),n.visibilityEffect=n.visibilityEffect.bind(b(n)),n.checkDeprecation=n.checkDeprecation.bind(b(n)),n.applyCssTextEffect=n.applyCssTextEffect.bind(b(n)),n}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,w(t,n);var f,y,D=c.prototype;return D.createEffects=function(){return[new o.InfernoEffect(this.setRootElementRef,[]),new o.InfernoEffect(this.activeEffect,[this.props._feedbackHideTimeout,this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive,this.props.onInactive]),new o.InfernoEffect(this.clickEffect,[this.props.disabled,this.props.name,this.props.onClick]),new o.InfernoEffect(this.focusEffect,[this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn,this.props.onFocusOut]),new o.InfernoEffect(this.hoverEffect,[this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverEnd,this.props.onHoverStart,this.state.active]),new o.InfernoEffect(this.keyboardEffect,[this.props.focusStateEnabled,this.props.onKeyDown]),new o.InfernoEffect(this.resizeEffect,[this.props.name,this.props.onDimensionChanged]),new o.InfernoEffect(this.windowResizeEffect,[this.props.onDimensionChanged]),new o.InfernoEffect(this.visibilityEffect,[this.props.name,this.props.onVisibilityChange]),new o.InfernoEffect(this.checkDeprecation,[this.props.height,this.props.width]),new o.InfernoEffect(this.applyCssTextEffect,[this.props.cssText]),(0,o.createReRenderEffect)()]},D.updateEffects=function(){var e,t,n,i,o,a,r,s,l,u;null===(e=this._effects[1])||void 0===e||e.update([this.props._feedbackHideTimeout,this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive,this.props.onInactive]),null===(t=this._effects[2])||void 0===t||t.update([this.props.disabled,this.props.name,this.props.onClick]),null===(n=this._effects[3])||void 0===n||n.update([this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn,this.props.onFocusOut]),null===(i=this._effects[4])||void 0===i||i.update([this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverEnd,this.props.onHoverStart,this.state.active]),null===(o=this._effects[5])||void 0===o||o.update([this.props.focusStateEnabled,this.props.onKeyDown]),null===(a=this._effects[6])||void 0===a||a.update([this.props.name,this.props.onDimensionChanged]),null===(r=this._effects[7])||void 0===r||r.update([this.props.onDimensionChanged]),null===(s=this._effects[8])||void 0===s||s.update([this.props.name,this.props.onVisibilityChange]),null===(l=this._effects[9])||void 0===l||l.update([this.props.height,this.props.width]),null===(u=this._effects[10])||void 0===u||u.update([this.props.cssText])},D.setRootElementRef=function(){var e=this.props,t=e.onRootElementRendered,n=e.rootElementRef;n&&(n.current=this.widgetElementRef.current),null==t||t(this.widgetElementRef.current)},D.activeEffect=function(){var e=this,t=this.props,n=t._feedbackHideTimeout,i=t._feedbackShowTimeout,o=t.activeStateEnabled,a=t.activeStateUnit,s=t.disabled,l=t.onActive,u=t.onInactive,d=a,c="UIFeedback";if(o&&!s)return r.active.on(this.widgetElementRef.current,(function(t){var n=t.event;e.setState((function(e){return{active:!0}})),null==l||l(n)}),(function(t){var n=t.event;e.setState((function(e){return{active:!1}})),null==u||u(n)}),{hideTimeout:n,namespace:c,selector:d,showTimeout:i}),function(){return r.active.off(e.widgetElementRef.current,{selector:d,namespace:c})}},D.clickEffect=function(){var e=this,t=this.props,n=t.disabled,i=t.name,o=t.onClick,a=i;if(o&&!n)return r.dxClick.on(this.widgetElementRef.current,o,{namespace:a}),function(){return r.dxClick.off(e.widgetElementRef.current,{namespace:a})}},D.focusEffect=function(){var e=this,t=this.props,n=t.disabled,i=t.focusStateEnabled,o=t.name,a=t.onFocusIn,s=t.onFocusOut,l="".concat(o,"Focus");if(i&&!n)return r.focus.on(this.widgetElementRef.current,(function(t){t.isDefaultPrevented()||(e.setState((function(e){return{focused:!0}})),null==a||a(t))}),(function(t){t.isDefaultPrevented()||(e.setState((function(e){return{focused:!1}})),null==s||s(t))}),{isFocusable:u.focusable,namespace:l}),function(){return r.focus.off(e.widgetElementRef.current,{namespace:l})}},D.hoverEffect=function(){var e=this,t="UIFeedback",n=this.props,i=n.activeStateUnit,o=n.disabled,a=n.hoverStateEnabled,s=n.onHoverEnd,l=n.onHoverStart,u=i;if(a&&!o)return r.hover.on(this.widgetElementRef.current,(function(t){var n=t.event;!e.state.active&&e.setState((function(e){return{hovered:!0}})),null==l||l(n)}),(function(t){e.setState((function(e){return{hovered:!1}})),null==s||s(t)}),{selector:u,namespace:t}),function(){return r.hover.off(e.widgetElementRef.current,{selector:u,namespace:t})}},D.keyboardEffect=function(){var e=this.props,t=e.focusStateEnabled,n=e.onKeyDown;if(t&&n){var i=r.keyboard.on(this.widgetElementRef.current,this.widgetElementRef.current,(function(e){return n(e)}));return function(){return r.keyboard.off(i)}}},D.resizeEffect=function(){var e=this,t="".concat(this.props.name,"VisibilityChange"),n=this.props.onDimensionChanged;if(n)return r.resize.on(this.widgetElementRef.current,n,{namespace:t}),function(){return r.resize.off(e.widgetElementRef.current,{namespace:t})}},D.windowResizeEffect=function(){var e=this.props.onDimensionChanged;if(e)return g.default.add(e),function(){g.default.remove(e)}},D.visibilityEffect=function(){var e=this,t=this.props,n=t.name,i=t.onVisibilityChange,o="".concat(n,"VisibilityChange");if(i)return r.visibility.on(this.widgetElementRef.current,(function(){return i(!0)}),(function(){return i(!1)}),{namespace:o}),function(){return r.visibility.off(e.widgetElementRef.current,{namespace:o})}},D.checkDeprecation=function(){var e=this.props,t=e.height,n=e.width;(0,a.isFunction)(n)&&m.default.log("W0017","width"),(0,a.isFunction)(t)&&m.default.log("W0017","height")},D.applyCssTextEffect=function(){var e=this.props.cssText;""!==e&&(this.widgetElementRef.current.style.cssText=e)},D.focus=function(){r.focus.trigger(this.widgetElementRef.current)},D.blur=function(){var e=_.default.getActiveElement();this.widgetElementRef.current===e&&e.blur()},D.activate=function(){this.setState((function(e){return{active:!0}}))},D.deactivate=function(){this.setState((function(e){return{active:!1}}))},D.render=function(){var e=this.props;return k({props:S({},e),active:this.state.active,focused:this.state.focused,hovered:this.state.hovered,widgetElementRef:this.widgetElementRef,config:this.config,shouldRenderConfigProvider:this.shouldRenderConfigProvider,rtlEnabled:this.rtlEnabled,attributes:this.attributes,styles:this.styles,cssClasses:this.cssClasses,tabIndex:this.tabIndex,restAttributes:this.restAttributes})},f=c,(y=[{key:"config",get:function(){return"ConfigContext"in this.context?this.context.ConfigContext:h.ConfigContext}},{key:"shouldRenderConfigProvider",get:function(){var e=this.props.rtlEnabled;return(0,p.resolveRtlEnabledDefinition)(e,this.config)}},{key:"rtlEnabled",get:function(){var e=this.props.rtlEnabled;return(0,p.resolveRtlEnabled)(e,this.config)}},{key:"attributes",get:function(){var e,t=this.props,n=t.aria,i=t.disabled,o=t.focusStateEnabled,a=t.visible,r=o&&!i&&this.props.accessKey;return S({},(0,l.extend)({},this.restAttributes,r&&{accessKey:r}),(e=S({},n,{disabled:i,hidden:!a}),Object.keys(e).reduce((function(t,n){return e[n]?S({},t,C({},"role"===n||"id"===n?n:"aria-".concat(n),String(e[n]))):t}),{})))}},{key:"styles",get:function(){var e=this.props,t=e.height,n=e.width,i=this.restAttributes.style||{},o=(0,d.normalizeStyleProp)("width",(0,a.isFunction)(n)?n():n),r=(0,d.normalizeStyleProp)("height",(0,a.isFunction)(t)?t():t);return S({},i,{height:null!=r?r:i.height,width:null!=o?o:i.width})}},{key:"cssClasses",get:function(){var e,t=this.props,n=t.activeStateEnabled,i=t.addWidgetClass,o=t.className,a=t.classes,r=t.disabled,l=t.focusStateEnabled,u=t.hoverStateEnabled,d=t.onVisibilityChange,c=t.visible,h=!!l&&!r,f=!!u&&!r,p=!!n&&!r,g=(C(e={"dx-widget":!!i},String(a),!!a),C(e,String(o),!!o),C(e,"dx-state-disabled",!!r),C(e,"dx-state-invisible",!c),C(e,"dx-state-focused",!!this.state.focused&&h),C(e,"dx-state-active",!!this.state.active&&p),C(e,"dx-state-hover",!!this.state.hovered&&f&&!this.state.active),C(e,"dx-rtl",!!this.rtlEnabled),C(e,"dx-visibility-change-handler",!!d),e);return(0,s.combineClasses)(g)}},{key:"tabIndex",get:function(){var e=this.props,t=e.disabled,n=e.focusStateEnabled,i=e.tabIndex;return n&&!t?i:void 0}},{key:"restAttributes",get:function(){var e=this.props;return e._feedbackHideTimeout,e._feedbackShowTimeout,e.accessKey,e.activeStateEnabled,e.activeStateUnit,e.addWidgetClass,e.aria,e.children,e.className,e.classes,e.cssText,e.disabled,e.focusStateEnabled,e.height,e.hint,e.hoverStateEnabled,e.name,e.onActive,e.onClick,e.onDimensionChanged,e.onFocusIn,e.onFocusOut,e.onHoverEnd,e.onHoverStart,e.onInactive,e.onKeyDown,e.onRootElementRendered,e.onVisibilityChange,e.rootElementRef,e.rtlEnabled,e.tabIndex,e.visible,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,v)}}])&&x(f.prototype,y),c}(o.InfernoWrapperComponent);t.Widget=I,I.defaultProps=D},8448:function(e,t,n){t.default=void 0;var i=r(n(99393)),o=r(n(74046)),a=n(85560);function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var o,r,u=i.prototype;return u.getProps=function(){var t=e.prototype.getProps.call(this);return t.onKeyDown=this._wrapKeyDownHandler(t.onKeyDown),t},u.focus=function(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.focus.apply(e,arguments)},u.blur=function(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.blur.apply(e,arguments)},u._getActionConfigs=function(){return{onFocusIn:{},onClick:{}}},o=i,(r=[{key:"_propsInfo",get:function(){return{twoWay:[["value","defaultValue","valueChange"]],allowNull:["defaultValue","validationError","validationErrors","value"],elements:[],templates:[],props:["text","iconSize","activeStateEnabled","hoverStateEnabled","saveValueChangeEvent","defaultValue","valueChange","readOnly","name","validationError","validationErrors","validationMessageMode","validationStatus","isValid","onFocusIn","className","accessKey","disabled","focusStateEnabled","height","hint","onClick","onKeyDown","rtlEnabled","tabIndex","visible","width","aria","value"]}}},{key:"_viewComponent",get:function(){return a.CheckBox}}])&&s(o.prototype,r),i}(o.default);t.default=u,(0,i.default)("dxCheckBox",u),u.defaultOptions=a.defaultOptions,e.exports=t.default,e.exports.default=t.default},85560:function(e,t,n){t.defaultOptionRules=t.CheckBoxPropsType=t.CheckBoxProps=t.CheckBox=void 0,t.defaultOptions=function(e){C.push(e),b.defaultProps=Object.create(Object.prototype,m(Object.getOwnPropertyDescriptors(b.defaultProps),Object.getOwnPropertyDescriptors(w((0,r.convertRulesToOptions)(x))),Object.getOwnPropertyDescriptors(w((0,r.convertRulesToOptions)(C)))))},t.viewFunction=void 0;var i,o=n(55285),a=n(44105),r=n(45434),s=(i=n(20530))&&i.__esModule?i:{default:i},l=n(7552),u=n(86237),d=n(13241),c=n(73687),h=["accessKey","activeStateEnabled","aria","className","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","iconSize","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","saveValueChangeEvent","tabIndex","text","validationError","validationErrors","validationMessageMode","validationStatus","value","valueChange","visible","width"];function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var _=function(e){var t=e.aria,n=e.cssClasses,i=e.editorRef,a=e.keyDown,r=e.onWidgetClick,s=e.props,u=s.accessKey,c=s.activeStateEnabled,h=s.className,f=s.disabled,p=s.focusStateEnabled,g=s.height,_=s.hint,v=s.hoverStateEnabled,y=s.iconSize,x=s.isValid,b=s.name,w=s.onFocusIn,C=s.readOnly,S=s.rtlEnabled,k=s.tabIndex,D=s.text,I=s.validationError,T=s.validationErrors,E=s.validationMessageMode,A=s.validationStatus,O=s.value,P=s.visible,M=s.width,R=e.restAttributes;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,l.Editor,m({aria:t,classes:n,onClick:r,onKeyDown:a,accessKey:u,activeStateEnabled:c,focusStateEnabled:p,hoverStateEnabled:v,className:h,disabled:f,readOnly:C,hint:_,height:g,width:M,rtlEnabled:S,tabIndex:k,visible:P,validationError:I,validationErrors:T,validationMessageMode:E,validationStatus:A,isValid:x,onFocusIn:w},R,{children:(0,o.createFragment)([(0,o.normalizeProps)((0,o.createVNode)(64,"input",null,null,1,m({type:"hidden",value:"".concat(O)},b&&{name:b}))),(0,o.createVNode)(1,"div","dx-checkbox-container",[(0,o.createComponentVNode)(2,d.CheckBoxIcon,{size:y,isChecked:!0===O}),D&&(0,o.createVNode)(1,"span","dx-checkbox-text",D,0)],0)],4)}),null,i))};t.viewFunction=_;var v=Object.create(Object.prototype,m(Object.getOwnPropertyDescriptors(l.EditorProps),Object.getOwnPropertyDescriptors({text:"",activeStateEnabled:!0,hoverStateEnabled:!0,defaultValue:!1,valueChange:function(){}})));t.CheckBoxProps=v;var y=Object.defineProperties({},{text:{get:function(){return v.text},configurable:!0,enumerable:!0},activeStateEnabled:{get:function(){return v.activeStateEnabled},configurable:!0,enumerable:!0},hoverStateEnabled:{get:function(){return v.hoverStateEnabled},configurable:!0,enumerable:!0},defaultValue:{get:function(){return v.defaultValue},configurable:!0,enumerable:!0},valueChange:{get:function(){return v.valueChange},configurable:!0,enumerable:!0},readOnly:{get:function(){return v.readOnly},configurable:!0,enumerable:!0},name:{get:function(){return v.name},configurable:!0,enumerable:!0},validationError:{get:function(){return v.validationError},configurable:!0,enumerable:!0},validationErrors:{get:function(){return v.validationErrors},configurable:!0,enumerable:!0},validationMessageMode:{get:function(){return v.validationMessageMode},configurable:!0,enumerable:!0},validationStatus:{get:function(){return v.validationStatus},configurable:!0,enumerable:!0},isValid:{get:function(){return v.isValid},configurable:!0,enumerable:!0},className:{get:function(){return v.className},configurable:!0,enumerable:!0},disabled:{get:function(){return v.disabled},configurable:!0,enumerable:!0},focusStateEnabled:{get:function(){return v.focusStateEnabled},configurable:!0,enumerable:!0},rtlEnabled:{get:function(){return v.rtlEnabled},configurable:!0,enumerable:!0},tabIndex:{get:function(){return v.tabIndex},configurable:!0,enumerable:!0},visible:{get:function(){return v.visible},configurable:!0,enumerable:!0},aria:{get:function(){return c.WidgetProps.aria},configurable:!0,enumerable:!0}});t.CheckBoxPropsType=y;var x=(0,r.createDefaultOptionRules)([{device:function(){return"desktop"===s.default.real().deviceType&&!s.default.isSimulator()},options:{focusStateEnabled:!0}}]);t.defaultOptionRules=x;var b=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).editorRef=(0,o.createRef)(),n.state={value:void 0!==n.props.value?n.props.value:n.props.defaultValue},n.focus=n.focus.bind(p(n)),n.blur=n.blur.bind(p(n)),n.onWidgetClick=n.onWidgetClick.bind(p(n)),n.keyDown=n.keyDown.bind(p(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,g(t,n);var r,s,l=i.prototype;return l.createEffects=function(){return[(0,a.createReRenderEffect)()]},l.onWidgetClick=function(e){var t,n,i=this.props,o=i.readOnly,a=i.saveValueChangeEvent,r=null!==(t=void 0!==this.props.value?this.props.value:this.state.value)&&void 0!==t&&t;o||(null==a||a(e),this.setState((function(e){return{value:n=!r}})),this.props.valueChange(n))},l.keyDown=function(e){var t=this.props.onKeyDown,n=e.keyName,i=e.originalEvent,o=e.which,a=null==t?void 0:t(e);if(null!=a&&a.cancel)return a;"space"!==n&&"space"!==o||(i.preventDefault(),this.onWidgetClick(i))},l.focus=function(){this.editorRef.current.focus()},l.blur=function(){this.editorRef.current.blur()},l.render=function(){var e=this.props;return _({props:m({},e,{value:void 0!==this.props.value?this.props.value:this.state.value}),editorRef:this.editorRef,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,cssClasses:this.cssClasses,aria:this.aria,restAttributes:this.restAttributes})},r=i,(s=[{key:"cssClasses",get:function(){return t=(e=m({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})).text,i={"dx-checkbox":!0,"dx-checkbox-checked":!0===(n=e.value),"dx-checkbox-has-text":!!t,"dx-checkbox-indeterminate":null===n},(0,u.combineClasses)(i);var e,t,n,i}},{key:"aria",get:function(){var e=!0===(void 0!==this.props.value?this.props.value:this.state.value);return m({},{role:"checkbox",checked:null===(void 0!==this.props.value?this.props.value:this.state.value)?"mixed":"".concat(e)},this.props.aria)}},{key:"restAttributes",get:function(){var e=m({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return e.accessKey,e.activeStateEnabled,e.aria,e.className,e.defaultValue,e.disabled,e.focusStateEnabled,e.height,e.hint,e.hoverStateEnabled,e.iconSize,e.isValid,e.name,e.onClick,e.onFocusIn,e.onKeyDown,e.readOnly,e.rtlEnabled,e.saveValueChangeEvent,e.tabIndex,e.text,e.validationError,e.validationErrors,e.validationMessageMode,e.validationStatus,e.value,e.valueChange,e.visible,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,h)}}])&&f(r.prototype,s),i}(a.InfernoWrapperComponent);function w(e){var t=["value"];return Object.keys(e).reduce((function(n,i){var o=e[i];return n[t.some((function(e){return e===i}))?"default"+i.charAt(0).toUpperCase()+i.slice(1):i]=o,n}),{})}t.CheckBox=b,b.defaultProps=Object.create(Object.prototype,m(Object.getOwnPropertyDescriptors(y),Object.getOwnPropertyDescriptors(m({},w((0,r.convertRulesToOptions)(x))))));var C=[]},13241:function(e,t,n){t.viewFunction=t.CheckBoxIconProps=t.CheckBoxIcon=void 0;var i,o=n(55285),a=n(44105),r=(i=n(89357))&&i.__esModule?i:{default:i},s=n(58201),l=n(80968),u=n(35922),d=n(71591),c=["isChecked","size"];function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){var t=e.cssStyles,n=e.elementRef;return(0,o.createVNode)(1,"span","dx-checkbox-icon",null,1,{style:(0,a.normalizeStyles)(t)},null,n)};t.viewFunction=m;var _={isChecked:!1};t.CheckBoxIconProps=_;var v=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n.elementRef=(0,o.createRef)(),n.__getterCache={},n.updateFontSize=n.updateFontSize.bind(p(n)),n.setIconFontSize=n.setIconFontSize.bind(p(n)),n.getIconSize=n.getIconSize.bind(p(n)),n.getComputedIconSize=n.getComputedIconSize.bind(p(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,g(t,n);var _,v,y=i.prototype;return y.createEffects=function(){return[new a.InfernoEffect(this.updateFontSize,[this.props.isChecked,this.props.size])]},y.updateEffects=function(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.isChecked,this.props.size])},y.updateFontSize=function(){var e=this.props,t=e.isChecked,n=e.size;if((0,s.hasWindow)()&&n){var i=this.getIconSize(n),o=(0,d.getFontSizeByIconSize)(i,t);this.setIconFontSize(o)}},y.setIconFontSize=function(e){this.elementRef.current.style.fontSize="".concat(e,"px")},y.getIconSize=function(e){return(0,u.isNumeric)(e)?e:e.endsWith("px")?parseInt(e,10):this.getComputedIconSize()},y.getComputedIconSize=function(){var e=this.elementRef.current,t=(0,r.default)(e);return parseInt(null==t?void 0:t.width,10)},y.componentWillUpdate=function(t,n,i){e.prototype.componentWillUpdate.call(this),this.props.size!==t.size&&(this.__getterCache.cssStyles=void 0)},y.render=function(){var e=this.props;return m({props:h({},e),elementRef:this.elementRef,setIconFontSize:this.setIconFontSize,getIconSize:this.getIconSize,getComputedIconSize:this.getComputedIconSize,cssStyles:this.cssStyles,restAttributes:this.restAttributes})},_=i,(v=[{key:"cssStyles",get:function(){var e,t;return void 0!==this.__getterCache.cssStyles?this.__getterCache.cssStyles:this.__getterCache.cssStyles=(e=this.props.size,t=(0,l.normalizeStyleProp)("width",e),{height:(0,l.normalizeStyleProp)("height",e),width:t})}},{key:"restAttributes",get:function(){var e=this.props;return e.isChecked,e.size,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c)}}])&&f(_.prototype,v),i}(a.InfernoComponent);t.CheckBoxIcon=v,v.defaultProps=_},71591:function(e,t,n){t.getDefaultFontSize=l,t.getDefaultIconSize=s,t.getFontSizeByIconSize=function(e,t){var n=l(t)/s();return Math.ceil(n*e)};var i=n(75811),o=[[22,16],[18,16]],a=[[[12,8],[20,18]],[[16,10],[16,14]]];function r(){var e=(0,i.current)();return{isMaterialTheme:(0,i.isMaterial)(e),isCompactTheme:(0,i.isCompact)(e)}}function s(){var e=r(),t=e.isCompactTheme,n=e.isMaterialTheme;return o[+n][+t]}function l(e){var t=r(),n=t.isCompactTheme,i=t.isMaterialTheme;return a[+e][+i][+n]}},79708:function(e,t,n){t.viewFunction=t.SelectBoxProps=t.SelectBox=void 0;var i,o=n(55285),a=n(44105),r=(i=n(78665))&&i.__esModule?i:{default:i},s=n(96886),l=n(31651),u=["accessKey","activeStateEnabled","className","dataSource","defaultValue","disabled","displayExpr","focusStateEnabled","height","hint","hoverStateEnabled","onClick","onKeyDown","rtlEnabled","tabIndex","value","valueChange","valueExpr","visible","width"];function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var f=function(e){var t=e.props,n=e.restAttributes;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.DomComponentWrapper,h({componentType:r.default,componentProps:t,templateNames:["dropDownButtonTemplate","groupTemplate","itemTemplate"]},n)))};t.viewFunction=f;var p=Object.create(Object.prototype,h(Object.getOwnPropertyDescriptors(l.BaseWidgetProps),Object.getOwnPropertyDescriptors({focusStateEnabled:!0,hoverStateEnabled:!0,defaultValue:null,isReactComponentWrapper:!0})));t.SelectBoxProps=p;var g=function(e){var t,n,i,o;function a(t){var n;return(n=e.call(this,t)||this).state={value:void 0!==n.props.value?n.props.value:n.props.defaultValue},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n),a.prototype.render=function(){var e=this.props;return f({props:h({},e,{value:void 0!==this.props.value?this.props.value:this.state.value}),restAttributes:this.restAttributes})},i=a,(o=[{key:"restAttributes",get:function(){var e=h({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return e.accessKey,e.activeStateEnabled,e.className,e.dataSource,e.defaultValue,e.disabled,e.displayExpr,e.focusStateEnabled,e.height,e.hint,e.hoverStateEnabled,e.onClick,e.onKeyDown,e.rtlEnabled,e.tabIndex,e.value,e.valueChange,e.valueExpr,e.visible,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u)}}])&&d(i.prototype,o),a}(a.BaseInfernoComponent);t.SelectBox=g,g.defaultProps=p},7552:function(e,t,n){t.EditorPropsType=t.EditorProps=t.Editor=void 0,t.defaultOptions=function(e){var t,n;C.push(e),w.defaultProps=Object.create(Object.prototype,_(Object.getOwnPropertyDescriptors(w.defaultProps),Object.getOwnPropertyDescriptors((t=(0,c.convertRulesToOptions)(C),n=["value"],Object.keys(t).reduce((function(e,i){var o=t[i];return e[n.some((function(e){return e===i}))?"default"+i.charAt(0).toUpperCase()+i.slice(1):i]=o,e}),{})))))},t.viewFunction=void 0;var i,o=n(55285),a=n(44105),r=(i=n(73176))&&i.__esModule?i:{default:i},s=n(73687),l=n(31651),u=n(86237),d=n(85500),c=n(45434),h=["accessKey","activeStateEnabled","aria","children","className","classes","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationStatus","value","valueChange","visible","width"];function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var v=function(e){var t=e.classes,n=e.isValid,i=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({"dx-state-readonly":!!e.readOnly,"dx-invalid":!n},"".concat(t),!!t);return(0,u.combineClasses)(i)},y=function(e){var t=e.aria,n=e.cssClasses,i=e.isValidationMessageVisible,a=e.onFocusIn,r=e.props,l=r.accessKey,u=r.activeStateEnabled,c=r.children,h=r.className,f=r.disabled,p=r.focusStateEnabled,g=r.height,m=r.hint,v=r.hoverStateEnabled,y=r.onClick,x=r.onKeyDown,b=r.rtlEnabled,w=r.tabIndex,C=r.validationMessageMode,S=r.visible,k=r.width,D=e.restAttributes,I=e.rootElementRef,T=e.validationErrors,E=e.validationMessageGuid,A=e.validationMessageTarget,O=e.widgetRef;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.Widget,_({rootElementRef:I,aria:t,classes:n,activeStateEnabled:u,focusStateEnabled:p,hoverStateEnabled:v,accessKey:l,className:h,rtlEnabled:b,hint:m,disabled:f,height:g,width:k,onFocusIn:a,onClick:y,onKeyDown:x,tabIndex:w,visible:S},D,{children:(0,o.createFragment)([c,i&&(0,o.createComponentVNode)(2,d.ValidationMessage,{validationErrors:T,mode:C,positionRequest:"below",rtlEnabled:b,target:A,boundary:A,container:A,contentId:E})],0)}),null,O))};t.viewFunction=y;var x=Object.create(Object.prototype,_(Object.getOwnPropertyDescriptors(l.BaseWidgetProps),Object.getOwnPropertyDescriptors({readOnly:!1,name:"",validationError:null,validationErrors:null,validationMessageMode:"auto",validationStatus:"valid",isValid:!0,defaultValue:null,valueChange:function(){}})));t.EditorProps=x;var b=Object.defineProperties({},{readOnly:{get:function(){return x.readOnly},configurable:!0,enumerable:!0},name:{get:function(){return x.name},configurable:!0,enumerable:!0},validationError:{get:function(){return x.validationError},configurable:!0,enumerable:!0},validationErrors:{get:function(){return x.validationErrors},configurable:!0,enumerable:!0},validationMessageMode:{get:function(){return x.validationMessageMode},configurable:!0,enumerable:!0},validationStatus:{get:function(){return x.validationStatus},configurable:!0,enumerable:!0},isValid:{get:function(){return x.isValid},configurable:!0,enumerable:!0},defaultValue:{get:function(){return x.defaultValue},configurable:!0,enumerable:!0},valueChange:{get:function(){return x.valueChange},configurable:!0,enumerable:!0},className:{get:function(){return x.className},configurable:!0,enumerable:!0},activeStateEnabled:{get:function(){return x.activeStateEnabled},configurable:!0,enumerable:!0},disabled:{get:function(){return x.disabled},configurable:!0,enumerable:!0},focusStateEnabled:{get:function(){return x.focusStateEnabled},configurable:!0,enumerable:!0},hoverStateEnabled:{get:function(){return x.hoverStateEnabled},configurable:!0,enumerable:!0},rtlEnabled:{get:function(){return x.rtlEnabled},configurable:!0,enumerable:!0},tabIndex:{get:function(){return x.tabIndex},configurable:!0,enumerable:!0},visible:{get:function(){return x.visible},configurable:!0,enumerable:!0},aria:{get:function(){return s.WidgetProps.aria},configurable:!0,enumerable:!0},classes:{get:function(){return s.WidgetProps.classes},configurable:!0,enumerable:!0}});t.EditorPropsType=b;var w=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).widgetRef=(0,o.createRef)(),n.rootElementRef=(0,o.createRef)(),n.__getterCache={},n.state={validationMessageGuid:"dx-".concat(new r.default),isValidationMessageVisible:!1,value:void 0!==n.props.value?n.props.value:n.props.defaultValue},n.updateValidationMessageVisibility=n.updateValidationMessageVisibility.bind(g(n)),n.focus=n.focus.bind(g(n)),n.blur=n.blur.bind(g(n)),n.onFocusIn=n.onFocusIn.bind(g(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,m(t,n);var s,l,u=i.prototype;return u.createEffects=function(){return[new a.InfernoEffect(this.updateValidationMessageVisibility,[this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors]),(0,a.createReRenderEffect)()]},u.updateEffects=function(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors])},u.updateValidationMessageVisibility=function(){var e=this;this.setState((function(t){return{isValidationMessageVisible:e.shouldShowValidationMessage}}))},u.onFocusIn=function(e){var t=this.props.onFocusIn;null==t||t(e)},u.focus=function(){this.widgetRef.current.focus()},u.blur=function(){this.widgetRef.current.blur()},u.componentWillUpdate=function(t,n,i){e.prototype.componentWillUpdate.call(this),this.props.validationError===t.validationError&&this.props.validationErrors===t.validationErrors||(this.__getterCache.validationErrors=void 0)},u.render=function(){var e=this.props;return y({props:_({},e,{value:void 0!==this.props.value?this.props.value:this.state.value}),validationMessageGuid:this.state.validationMessageGuid,isValidationMessageVisible:this.state.isValidationMessageVisible,rootElementRef:this.rootElementRef,widgetRef:this.widgetRef,onFocusIn:this.onFocusIn,cssClasses:this.cssClasses,shouldShowValidationMessage:this.shouldShowValidationMessage,aria:this.aria,validationErrors:this.validationErrors,validationMessageTarget:this.validationMessageTarget,restAttributes:this.restAttributes})},s=i,(l=[{key:"cssClasses",get:function(){return"".concat(v(_({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})))}},{key:"shouldShowValidationMessage",get:function(){var e,t=this.props,n=t.isValid,i=t.validationStatus,o=null!==(e=this.validationErrors)&&void 0!==e?e:[];return!(n&&"invalid"!==i)&&o.length>0}},{key:"aria",get:function(){var e=this.props,t=e.isValid,n={readonly:e.readOnly?"true":"false",invalid:t?"false":"true"};return this.shouldShowValidationMessage&&(n.describedBy=this.state.validationMessageGuid),_({},n,this.props.aria)}},{key:"validationErrors",get:function(){var e,t,n,i;return void 0!==this.__getterCache.validationErrors?this.__getterCache.validationErrors:this.__getterCache.validationErrors=(t=(e=this.props).validationError,!(i=(n=e.validationErrors)&&function(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n))&&t&&(i=[_({},t)]),i)}},{key:"validationMessageTarget",get:function(){var e;return null===(e=this.rootElementRef)||void 0===e?void 0:e.current}},{key:"restAttributes",get:function(){var e=_({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return e.accessKey,e.activeStateEnabled,e.aria,e.children,e.className,e.classes,e.defaultValue,e.disabled,e.focusStateEnabled,e.height,e.hint,e.hoverStateEnabled,e.isValid,e.name,e.onClick,e.onFocusIn,e.onKeyDown,e.readOnly,e.rtlEnabled,e.tabIndex,e.validationError,e.validationErrors,e.validationMessageMode,e.validationStatus,e.value,e.valueChange,e.visible,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,h)}}])&&p(s.prototype,l),i}(a.InfernoWrapperComponent);t.Editor=w,w.defaultProps=b;var C=[]},15560:function(e,t,n){t.viewFunction=t.NumberBoxProps=t.NumberBox=void 0;var i,o=n(55285),a=n(44105),r=(i=n(34171))&&i.__esModule?i:{default:i},s=n(96886),l=n(31651),u=["accessKey","activeStateEnabled","className","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","invalidValueMessage","max","min","mode","onClick","onKeyDown","rtlEnabled","showSpinButtons","step","tabIndex","useLargeSpinButtons","value","valueChange","visible","width"];function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var f=function(e){var t=e.props,n=e.restAttributes;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.DomComponentWrapper,h({componentType:r.default,componentProps:t,templateNames:[]},n)))};t.viewFunction=f;var p=Object.create(Object.prototype,h(Object.getOwnPropertyDescriptors(l.BaseWidgetProps),Object.getOwnPropertyDescriptors({focusStateEnabled:!0,hoverStateEnabled:!0,defaultValue:0,isReactComponentWrapper:!0})));t.NumberBoxProps=p;var g=function(e){var t,n,i,o;function a(t){var n;return(n=e.call(this,t)||this).state={value:void 0!==n.props.value?n.props.value:n.props.defaultValue},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n),a.prototype.render=function(){var e=this.props;return f({props:h({},e,{value:void 0!==this.props.value?this.props.value:this.state.value}),restAttributes:this.restAttributes})},i=a,(o=[{key:"restAttributes",get:function(){var e=h({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return e.accessKey,e.activeStateEnabled,e.className,e.defaultValue,e.disabled,e.focusStateEnabled,e.height,e.hint,e.hoverStateEnabled,e.invalidValueMessage,e.max,e.min,e.mode,e.onClick,e.onKeyDown,e.rtlEnabled,e.showSpinButtons,e.step,e.tabIndex,e.useLargeSpinButtons,e.value,e.valueChange,e.visible,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u)}}])&&d(i.prototype,o),a}(a.BaseInfernoComponent);t.NumberBox=g,g.defaultProps=p},85500:function(e,t,n){t.viewFunction=t.ValidationMessageProps=t.ValidationMessage=void 0;var i,o=n(55285),a=n(44105),r=(i=n(8336))&&i.__esModule?i:{default:i},s=n(96886),l=n(31651),u=["accessKey","activeStateEnabled","boundary","className","container","contentId","disabled","focusStateEnabled","height","hint","hoverStateEnabled","mode","offset","onClick","onKeyDown","positionRequest","rtlEnabled","tabIndex","target","validationErrors","visible","width"];function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var f=function(e){var t=e.props,n=e.restAttributes;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,s.DomComponentWrapper,h({componentType:r.default,componentProps:t,templateNames:[]},n)))};t.viewFunction=f;var p=Object.create(Object.prototype,h(Object.getOwnPropertyDescriptors(l.BaseWidgetProps),Object.getOwnPropertyDescriptors(Object.defineProperties({mode:"auto",isReactComponentWrapper:!0},{offset:{get:function(){return{h:0,v:0}},configurable:!0,enumerable:!0}}))));t.ValidationMessageProps=p;var g=function(e){var t,n,i,o;function a(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n),a.prototype.render=function(){var e=this.props;return f({props:h({},e),restAttributes:this.restAttributes})},i=a,(o=[{key:"restAttributes",get:function(){var e=this.props;return e.accessKey,e.activeStateEnabled,e.boundary,e.className,e.container,e.contentId,e.disabled,e.focusStateEnabled,e.height,e.hint,e.hoverStateEnabled,e.mode,e.offset,e.onClick,e.onKeyDown,e.positionRequest,e.rtlEnabled,e.tabIndex,e.target,e.validationErrors,e.visible,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u)}}])&&d(i.prototype,o),a}(a.BaseInfernoComponent);t.ValidationMessage=g,g.defaultProps=p},21450:function(e,t){t.BasePagerProps=void 0;var n=Object.defineProperties({gridCompatibility:!0,showInfo:!1,displayMode:"adaptive",maxPagesCount:10,pageCount:10,visible:!0,hasKnownLastPage:!0,pagesNavigatorVisible:"auto",showPageSizes:!0,showNavigationButtons:!1,totalCount:0},{pageSizes:{get:function(){return[5,10]},configurable:!0,enumerable:!0}});t.BasePagerProps=n},39853:function(e,t){t.PAGER_SELECTION_CLASS=t.PAGER_SELECTED_PAGE_SIZE_CLASS=t.PAGER_PAGE_SIZE_CLASS=t.PAGER_PAGE_SIZES_CLASS=t.PAGER_PAGE_INDEXES_CLASS=t.PAGER_PAGE_CLASS=t.PAGER_PAGES_CLASS=t.PAGER_CLASS=t.LIGHT_MODE_CLASS=void 0,t.PAGER_CLASS="dx-pager",t.LIGHT_MODE_CLASS="dx-light-mode",t.PAGER_PAGES_CLASS="dx-pages",t.PAGER_PAGE_INDEXES_CLASS="dx-page-indexes",t.PAGER_PAGE_CLASS="dx-page";var n="dx-selection";t.PAGER_SELECTION_CLASS=n;var i="dx-page-size";t.PAGER_PAGE_SIZE_CLASS=i,t.PAGER_PAGE_SIZES_CLASS="dx-page-sizes";var o="".concat(i," ").concat(n);t.PAGER_SELECTED_PAGE_SIZE_CLASS=o},44133:function(e,t,n){t.KeyboardActionContext=void 0;var i=(0,n(44105).createContext)(void 0);t.KeyboardActionContext=i},93961:function(e,t,n){t.viewFunction=t.LightButtonProps=t.LightButton=void 0;var i=n(55285),o=n(44105),a=n(19828),r=n(44133),s=["children","className","label","onClick"];function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){var t=e.props,n=t.children,o=t.className,a=t.label,r=e.widgetRef;return(0,i.createVNode)(1,"div",o,n,0,{tabIndex:0,role:"button","aria-label":a},null,r)};t.viewFunction=h;var f={className:"",label:""};t.LightButtonProps=f;var p=function(e){var t,n;function f(t){var n;return(n=e.call(this,t)||this).state={},n.widgetRef=(0,i.createRef)(),n.keyboardEffect=n.keyboardEffect.bind(d(n)),n.subscribeToClick=n.subscribeToClick.bind(d(n)),n}n=e,(t=f).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var p,g,m=f.prototype;return m.createEffects=function(){return[new o.InfernoEffect(this.keyboardEffect,[this.keyboardContext,this.props.onClick]),new o.InfernoEffect(this.subscribeToClick,[this.props.onClick])]},m.updateEffects=function(){var e,t;null===(e=this._effects[0])||void 0===e||e.update([this.keyboardContext,this.props.onClick]),null===(t=this._effects[1])||void 0===t||t.update([this.props.onClick])},m.keyboardEffect=function(){return this.keyboardContext.registerKeyboardAction(this.widgetRef.current,this.props.onClick)},m.subscribeToClick=function(){return(0,a.subscribeToClickEvent)(this.widgetRef.current,this.props.onClick)},m.render=function(){var e=this.props;return h({props:l({},e),widgetRef:this.widgetRef,keyboardContext:this.keyboardContext,restAttributes:this.restAttributes})},p=f,(g=[{key:"keyboardContext",get:function(){return"KeyboardActionContext"in this.context?this.context.KeyboardActionContext:r.KeyboardActionContext}},{key:"restAttributes",get:function(){var e=this.props;return e.children,e.className,e.label,e.onClick,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s)}}])&&u(p.prototype,g),f}(o.InfernoComponent);t.LightButton=p,p.defaultProps=f},96529:function(e,t,n){t.PagerProps=t.InternalPagerProps=void 0;var i=n(21450);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=Object.create(Object.prototype,o(Object.getOwnPropertyDescriptors(i.BasePagerProps),Object.getOwnPropertyDescriptors({defaultPageSize:5,pageSizeChange:function(){},defaultPageIndex:1,pageIndexChange:function(){}})));t.PagerProps=a;var r=Object.create(Object.prototype,o(Object.getOwnPropertyDescriptors(i.BasePagerProps),Object.getOwnPropertyDescriptors({pageSize:5,pageIndex:1})));t.InternalPagerProps=r},30928:function(e,t,n){t.viewFunction=t.PagerContentProps=t.PagerContent=void 0;var i=n(55285),o=n(44105),a=n(57495),r=n(32854),s=n(41936),l=n(39853),u=n(96529),d=n(86237),c=n(73687),h=n(56756),f=["className","displayMode","gridCompatibility","hasKnownLastPage","infoText","infoTextRef","infoTextVisible","isLargeDisplayMode","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pageSizesRef","pagesCountText","pagesNavigatorVisible","pagesRef","rootElementRef","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"];function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var y=function(e){var t=e.classes,n=e.infoVisible,u=e.isLargeDisplayMode,d=e.pageIndexSelectorVisible,h=e.pagesContainerVisibility,f=e.pagesContainerVisible,p=e.props,g=p.hasKnownLastPage,m=p.infoText,_=p.infoTextRef,y=p.maxPagesCount,x=p.pageCount,b=p.pageIndex,w=p.pageIndexChange,C=p.pageSize,S=p.pageSizeChange,k=p.pageSizes,D=p.pageSizesRef,I=p.pagesCountText,T=p.pagesRef,E=p.rtlEnabled,A=p.showNavigationButtons,O=p.showPageSizes,P=p.totalCount,M=p.visible,R=e.restAttributes,B=e.widgetRootElementRef;return(0,i.normalizeProps)((0,i.createComponentVNode)(2,c.Widget,v({rootElementRef:B,rtlEnabled:E,classes:t,visible:M},R,{children:[O&&(0,i.createComponentVNode)(2,s.PageSizeSelector,{rootElementRef:D,isLargeDisplayMode:u,pageSize:C,pageSizeChange:S,pageSizes:k}),f&&(0,i.createVNode)(1,"div",l.PAGER_PAGES_CLASS,[n&&(0,i.createComponentVNode)(2,a.InfoText,{rootElementRef:_,infoText:m,pageCount:x,pageIndex:b,totalCount:P}),d&&(0,i.createVNode)(1,"div",l.PAGER_PAGE_INDEXES_CLASS,(0,i.createComponentVNode)(2,r.PageIndexSelector,{hasKnownLastPage:g,isLargeDisplayMode:u,maxPagesCount:y,pageCount:x,pageIndex:b,pageIndexChange:w,pagesCountText:I,showNavigationButtons:A,totalCount:P}),2,null,null,T)],0,{style:(0,o.normalizeStyles)({visibility:h})})]})))};t.viewFunction=y;var x=Object.create(Object.prototype,v(Object.getOwnPropertyDescriptors(u.InternalPagerProps),Object.getOwnPropertyDescriptors({infoTextVisible:!0,isLargeDisplayMode:!0})));t.PagerContentProps=x;var b=function(e){var t,n;function a(t){var n;return(n=e.call(this,t)||this).state={},n.widgetRootElementRef=(0,i.createRef)(),n.__getterCache={},n.setRootElementRef=n.setRootElementRef.bind(m(n)),n.createFakeInstance=n.createFakeInstance.bind(m(n)),n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,_(t,n);var r,s,u=a.prototype;return u.createEffects=function(){return[new o.InfernoEffect(this.setRootElementRef,[])]},u.getChildContext=function(){return v({},this.context,{KeyboardActionContext:this.keyboardAction})},u.setRootElementRef=function(){var e=this.props.rootElementRef;e&&(e.current=this.widgetRootElementRef.current)},u.createFakeInstance=function(){var e=this;return{option:function(){return!1},element:function(){return e.widgetRootElementRef.current},_createActionByOption:function(){return function(t){var n,i;null===(n=(i=e.props).onKeyDown)||void 0===n||n.call(i,t)}}}},u.componentWillUpdate=function(t,n,i){e.prototype.componentWillUpdate.call(this),this.props.onKeyDown!==t.onKeyDown&&(this.__getterCache.keyboardAction=void 0)},u.render=function(){var e=this.props;return y({props:v({},e),widgetRootElementRef:this.widgetRootElementRef,keyboardAction:this.keyboardAction,infoVisible:this.infoVisible,pageIndexSelectorVisible:this.pageIndexSelectorVisible,pagesContainerVisible:this.pagesContainerVisible,pagesContainerVisibility:this.pagesContainerVisibility,isLargeDisplayMode:this.isLargeDisplayMode,classes:this.classes,restAttributes:this.restAttributes})},r=a,(s=[{key:"keyboardAction",get:function(){var e=this;return void 0!==this.__getterCache.keyboardAction?this.__getterCache.keyboardAction:this.__getterCache.keyboardAction={registerKeyboardAction:function(t,n){var i=e.createFakeInstance();return(0,h.registerKeyboardAction)("pager",i,t,void 0,n)}}}},{key:"infoVisible",get:function(){var e=this.props,t=e.infoTextVisible;return e.showInfo&&t&&this.isLargeDisplayMode}},{key:"pageIndexSelectorVisible",get:function(){return 0!==this.props.pageSize}},{key:"normalizedDisplayMode",get:function(){var e=this.props,t=e.displayMode,n=e.lightModeEnabled;return"adaptive"===t&&void 0!==n?n?"compact":"full":t}},{key:"pagesContainerVisible",get:function(){return!!this.props.pagesNavigatorVisible&&this.props.pageCount>0}},{key:"pagesContainerVisibility",get:function(){if("auto"===this.props.pagesNavigatorVisible&&1===this.props.pageCount&&this.props.hasKnownLastPage)return"hidden"}},{key:"isLargeDisplayMode",get:function(){var e=this.normalizedDisplayMode;return"adaptive"===e?this.props.isLargeDisplayMode:"full"===e}},{key:"classes",get:function(){var e,t=(p(e={},"".concat(this.props.className),!!this.props.className),p(e,l.PAGER_CLASS,!0),p(e,l.LIGHT_MODE_CLASS,!this.isLargeDisplayMode),e);return(0,d.combineClasses)(t)}},{key:"restAttributes",get:function(){var e=this.props;return e.className,e.displayMode,e.gridCompatibility,e.hasKnownLastPage,e.infoText,e.infoTextRef,e.infoTextVisible,e.isLargeDisplayMode,e.lightModeEnabled,e.maxPagesCount,e.onKeyDown,e.pageCount,e.pageIndex,e.pageIndexChange,e.pageSize,e.pageSizeChange,e.pageSizes,e.pageSizesRef,e.pagesCountText,e.pagesNavigatorVisible,e.pagesRef,e.rootElementRef,e.rtlEnabled,e.showInfo,e.showNavigationButtons,e.showPageSizes,e.totalCount,e.visible,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,f)}}])&&g(r.prototype,s),a}(o.InfernoComponent);t.PagerContent=b,b.defaultProps=x},57495:function(e,t,n){t.viewFunction=t.PAGER_INFO_CLASS=t.InfoTextProps=t.InfoText=void 0;var i,o=n(55285),a=n(44105),r=n(68752),s=(i=n(28109))&&i.__esModule?i:{default:i},l=n(96529),u=["infoText","pageCount","pageIndex","rootElementRef","totalCount"];function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f="dx-info";t.PAGER_INFO_CLASS=f;var p=function(e){var t=e.props.rootElementRef,n=e.text;return(0,o.createVNode)(1,"div",f,n,0,null,null,t)};t.viewFunction=p,t.InfoTextProps={};var g=Object.defineProperties({},{pageIndex:{get:function(){return l.InternalPagerProps.pageIndex},configurable:!0,enumerable:!0},pageCount:{get:function(){return l.InternalPagerProps.pageCount},configurable:!0,enumerable:!0},totalCount:{get:function(){return l.InternalPagerProps.totalCount},configurable:!0,enumerable:!0}}),m=function(e){var t,n,i,o;function a(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n),a.prototype.render=function(){var e=this.props;return p({props:d({},e),infoText:this.infoText,text:this.text,restAttributes:this.restAttributes})},i=a,(o=[{key:"infoText",get:function(){var e;return(null!==(e=this.props.infoText)&&void 0!==e?e:"")||s.default.getFormatter("dxPager-infoText")()}},{key:"text",get:function(){var e=this.props,t=e.pageCount,n=e.pageIndex,i=e.totalCount;return(0,r.format)(this.infoText,(n+1).toString(),t.toString(),i.toString())}},{key:"restAttributes",get:function(){var e=this.props;return e.infoText,e.pageCount,e.pageIndex,e.rootElementRef,e.totalCount,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u)}}])&&c(i.prototype,o),a}(a.BaseInfernoComponent);t.InfoText=m,m.defaultProps=g},86857:function(e,t,n){t.viewFunction=t.PageSizeLargeProps=t.PageSizeLarge=void 0;var i=n(55285),o=n(44105),a=n(93961),r=n(96529),s=n(39853),l=["pageSize","pageSizeChange","pageSizes"];function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){var t=e.pageSizesText;return(0,i.createFragment)(t.map((function(e){var t=e.className,n=e.click,o=e.label,r=e.text;return(0,i.createComponentVNode)(2,a.LightButton,{className:t,label:o,onClick:n,children:r},r)})),0)};t.viewFunction=h,t.PageSizeLargeProps={};var f=Object.defineProperties({},{pageSize:{get:function(){return r.InternalPagerProps.pageSize},configurable:!0,enumerable:!0}}),p=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n.__getterCache={},n.onPageSizeChange=n.onPageSizeChange.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var o,a,r=i.prototype;return r.onPageSizeChange=function(e){var t=this;return function(){return t.props.pageSizeChange(e),t.props.pageSize}},r.componentWillUpdate=function(e,t,n){this.props.pageSize===e.pageSize&&this.props.pageSizes===e.pageSizes&&this.props.pageSizeChange===e.pageSizeChange||(this.__getterCache.pageSizesText=void 0)},r.render=function(){var e=this.props;return h({props:u({},e),pageSizesText:this.pageSizesText,restAttributes:this.restAttributes})},o=i,(a=[{key:"pageSizesText",get:function(){var e,t,n=this;return void 0!==this.__getterCache.pageSizesText?this.__getterCache.pageSizesText:this.__getterCache.pageSizesText=(e=n.props,t=e.pageSize,e.pageSizes.map((function(e){var i=e.text,o=e.value;return{className:o===t?s.PAGER_SELECTED_PAGE_SIZE_CLASS:s.PAGER_PAGE_SIZE_CLASS,click:n.onPageSizeChange(o),label:"Display ".concat(o," items on page"),text:i}})))}},{key:"restAttributes",get:function(){var e=this.props;return e.pageSize,e.pageSizeChange,e.pageSizes,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l)}}])&&d(o.prototype,a),i}(o.BaseInfernoComponent);t.PageSizeLarge=p,p.defaultProps=f},41936:function(e,t,n){t.viewFunction=t.PageSizeSelector=void 0;var i,o=n(55285),a=n(44105),r=n(70415),s=n(86857),l=n(96529),u=(i=n(28109))&&i.__esModule?i:{default:i},d=n(39853),c=["isLargeDisplayMode","pageSize","pageSizeChange","pageSizes","rootElementRef"];function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e){var t=e.htmlRef,n=e.normalizedPageSizes,i=e.props,a=i.isLargeDisplayMode,l=i.pageSize,u=i.pageSizeChange;return(0,o.createVNode)(1,"div",d.PAGER_PAGE_SIZES_CLASS,[a&&(0,o.createComponentVNode)(2,s.PageSizeLarge,{pageSizes:n,pageSize:l,pageSizeChange:u}),!a&&(0,o.createComponentVNode)(2,r.PageSizeSmall,{parentRef:t,pageSizes:n,pageSize:l,pageSizeChange:u})],0,null,null,t)};t.viewFunction=g;var m=Object.defineProperties({},{pageSize:{get:function(){return l.InternalPagerProps.pageSize},configurable:!0,enumerable:!0},pageSizes:{get:function(){return l.InternalPagerProps.pageSizes},configurable:!0,enumerable:!0},isLargeDisplayMode:{get:function(){return!0},configurable:!0,enumerable:!0}}),_=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n.htmlRef=(0,o.createRef)(),n.__getterCache={},n.setRootElementRef=n.setRootElementRef.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var r,s,l=i.prototype;return l.createEffects=function(){return[new a.InfernoEffect(this.setRootElementRef,[])]},l.setRootElementRef=function(){var e=this.props.rootElementRef;e&&(e.current=this.htmlRef.current)},l.componentWillUpdate=function(t,n,i){e.prototype.componentWillUpdate.call(this),this.props.pageSizes!==t.pageSizes&&(this.__getterCache.normalizedPageSizes=void 0)},l.render=function(){var e=this.props;return g({props:h({},e),htmlRef:this.htmlRef,normalizedPageSizes:this.normalizedPageSizes,restAttributes:this.restAttributes})},r=i,(s=[{key:"normalizedPageSizes",get:function(){return void 0!==this.__getterCache.normalizedPageSizes?this.__getterCache.normalizedPageSizes:this.__getterCache.normalizedPageSizes=this.props.pageSizes.map((function(e){return"all"===e||0===e?{text:u.default.getFormatter("dxPager-pageSizesAllText")(),value:0}:{text:String(e),value:e}}))}},{key:"restAttributes",get:function(){var e=this.props;return e.isLargeDisplayMode,e.pageSize,e.pageSizeChange,e.pageSizes,e.rootElementRef,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c)}}])&&f(r.prototype,s),i}(a.InfernoComponent);t.PageSizeSelector=_,_.defaultProps=m},70415:function(e,t,n){t.viewFunction=t.PageSizeSmallProps=t.PageSizeSmall=void 0;var i=n(55285),o=n(44105),a=n(79708),r=n(7750),s=n(95116),l=n(96529),u=["pageSize","pageSizeChange","pageSizes","parentRef"];function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){var t=e.props,n=t.pageSize,o=t.pageSizeChange,r=t.pageSizes,s=e.width;return(0,i.createComponentVNode)(2,a.SelectBox,{displayExpr:"text",valueExpr:"value",dataSource:r,value:n,valueChange:o,width:s})};t.viewFunction=f,t.PageSizeSmallProps={};var p=Object.defineProperties({},{pageSize:{get:function(){return l.InternalPagerProps.pageSize},configurable:!0,enumerable:!0}}),g=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={minWidth:10},n.updateWidth=n.updateWidth.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var a,l,p=i.prototype;return p.createEffects=function(){return[new o.InfernoEffect(this.updateWidth,[this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes])]},p.updateEffects=function(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes])},p.updateWidth=function(){var e=this;this.setState((function(t){return{minWidth:(0,s.getElementMinWidth)(e.props.parentRef.current)||t.minWidth}}))},p.render=function(){var e=this.props;return f({props:d({},e),width:this.width,restAttributes:this.restAttributes})},a=i,(l=[{key:"width",get:function(){return(0,r.calculateValuesFittedWidth)(this.state.minWidth,this.props.pageSizes.map((function(e){return e.value})))}},{key:"restAttributes",get:function(){var e=this.props;return e.pageSize,e.pageSizeChange,e.pageSizes,e.parentRef,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u)}}])&&c(a.prototype,l),i}(o.InfernoComponent);t.PageSizeSmall=g,g.defaultProps=p},47854:function(e,t,n){t.default=void 0;var i,o=(i=n(99393))&&i.__esModule?i:{default:i},a=n(97827),r=n(59968);function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n,i,o;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),a.prototype.getProps=function(){var t=e.prototype.getProps.call(this);return t.onKeyDown=this._wrapKeyDownHandler(t.onKeyDown),t},i=a,(o=[{key:"_propsInfo",get:function(){return{twoWay:[["pageSize","defaultPageSize","pageSizeChange"],["pageIndex","defaultPageIndex","pageIndexChange"]],allowNull:[],elements:[],templates:[],props:["defaultPageSize","pageSizeChange","defaultPageIndex","pageIndexChange","gridCompatibility","className","showInfo","infoText","lightModeEnabled","displayMode","maxPagesCount","pageCount","pagesCountText","visible","hasKnownLastPage","pagesNavigatorVisible","showPageSizes","pageSizes","rtlEnabled","showNavigationButtons","totalCount","onKeyDown","pageSize","pageIndex"]}}},{key:"_viewComponent",get:function(){return r.Pager}}])&&s(i.prototype,o),a}(a.GridPagerWrapper);t.default=u,(0,o.default)("dxPager",u),e.exports=t.default,e.exports.default=t.default},59968:function(e,t,n){t.viewFunction=t.Pager=void 0;var i=n(55285),o=n(44105),a=n(97239),r=n(96529),s=n(30928),l=n(86237),u=["className","defaultPageIndex","defaultPageSize","displayMode","gridCompatibility","hasKnownLastPage","infoText","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pagesCountText","pagesNavigatorVisible","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"];function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var p=function(e){var t=e.pagerProps,n=e.restAttributes;return(0,i.normalizeProps)((0,i.createComponentVNode)(2,a.ResizableContainer,f({contentTemplate:s.PagerContent,pagerProps:t},n)))};t.viewFunction=p;var g=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).__getterCache={},n.state={pageSize:void 0!==n.props.pageSize?n.props.pageSize:n.props.defaultPageSize,pageIndex:void 0!==n.props.pageIndex?n.props.pageIndex:n.props.defaultPageIndex},n.pageIndexChange=n.pageIndexChange.bind(c(n)),n.pageSizeChange=n.pageSizeChange.bind(c(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var a,r,s=i.prototype;return s.createEffects=function(){return[(0,o.createReRenderEffect)()]},s.pageIndexChange=function(e){var t,n;this.props.gridCompatibility?(this.setState((function(n){return{pageIndex:t=e+1}})),this.props.pageIndexChange(t)):(this.setState((function(t){return{pageIndex:n=e}})),this.props.pageIndexChange(n))},s.pageSizeChange=function(e){var t;this.setState((function(n){return{pageSize:t=e}})),this.props.pageSizeChange(t)},s.componentWillUpdate=function(t,n,i){e.prototype.componentWillUpdate.call(this),this.props===t&&this.props.gridCompatibility===t.gridCompatibility&&this.props.className===t.className&&this.state.pageIndex===n.pageIndex&&this.props.pageIndex===t.pageIndex&&this.props.pageIndexChange===t.pageIndexChange&&this.props.pageSizeChange===t.pageSizeChange||(this.__getterCache.pagerProps=void 0)},s.render=function(){var e=this.props;return p({props:f({},e,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),pageIndexChange:this.pageIndexChange,pageIndex:this.pageIndex,pageSizeChange:this.pageSizeChange,className:this.className,pagerProps:this.pagerProps,restAttributes:this.restAttributes})},a=i,(r=[{key:"pageIndex",get:function(){return this.props.gridCompatibility?(void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex)-1:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}},{key:"className",get:function(){return this.props.gridCompatibility?(0,l.combineClasses)((e={"dx-datagrid-pager":!0},t="".concat(this.props.className),n=!!this.props.className,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)):this.props.className;var e,t,n}},{key:"pagerProps",get:function(){var e=this;return void 0!==this.__getterCache.pagerProps?this.__getterCache.pagerProps:this.__getterCache.pagerProps=f({},f({},e.props,{pageSize:void 0!==e.props.pageSize?e.props.pageSize:e.state.pageSize,pageIndex:void 0!==e.props.pageIndex?e.props.pageIndex:e.state.pageIndex}),{className:e.className,pageIndex:e.pageIndex,pageIndexChange:function(t){return e.pageIndexChange(t)},pageSizeChange:function(t){return e.pageSizeChange(t)}})}},{key:"restAttributes",get:function(){var e=f({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex});return e.className,e.defaultPageIndex,e.defaultPageSize,e.displayMode,e.gridCompatibility,e.hasKnownLastPage,e.infoText,e.lightModeEnabled,e.maxPagesCount,e.onKeyDown,e.pageCount,e.pageIndex,e.pageIndexChange,e.pageSize,e.pageSizeChange,e.pageSizes,e.pagesCountText,e.pagesNavigatorVisible,e.rtlEnabled,e.showInfo,e.showNavigationButtons,e.showPageSizes,e.totalCount,e.visible,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u)}}])&&d(a.prototype,r),i}(o.InfernoWrapperComponent);t.Pager=g,g.defaultProps=r.PagerProps},40586:function(e,t,n){t.viewFunction=t.PagesLarge=void 0;var i=n(55285),o=n(44105),a=n(48402),r=n(96529),s=n(49697),l=["pageIndexes"],u=["maxPagesCount","pageCount","pageIndex","pageIndexChange"];function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var _=function(e){var t=e.pages.map((function(e){var t=e.key,n=e.pageProps;return n?(0,i.createComponentVNode)(2,a.Page,{index:n.index,selected:n.selected,onClick:n.onClick},t):(0,i.createVNode)(1,"div","dx-separator",". . .",16,null,t)}));return(0,i.createFragment)(t,0)};function v(e,t,n){return 1===e?"high":e+t===n-1?"low":"both"}function y(e,t,n){var i=[],o=[];switch(n){case"none":i=g(e);break;case"both":i=[0,"low"].concat(g(e),["high",t-1]),o=e.slice(1,-1);break;case"high":i=[0].concat(g(e),["high",t-1]),o=e.slice(0,-1);break;case"low":i=[0,"low"].concat(g(e),[t-1]),o=e.slice(1)}return{slidingWindowIndexes:e,indexesForReuse:o,pageIndexes:i}}function x(e,t,n,i){for(var o=[],a=0;a<t;a+=1)o.push(a+e);return y(o,n,i)}t.viewFunction=_;var b=Object.defineProperties({},{pageIndex:{get:function(){return r.InternalPagerProps.pageIndex},configurable:!0,enumerable:!0},maxPagesCount:{get:function(){return r.InternalPagerProps.maxPagesCount},configurable:!0,enumerable:!0},pageCount:{get:function(){return r.InternalPagerProps.pageCount},configurable:!0,enumerable:!0}}),w=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n.canReuseSlidingWindow=n.canReuseSlidingWindow.bind(f(n)),n.generatePageIndexes=n.generatePageIndexes.bind(f(n)),n.isSlidingWindowMode=n.isSlidingWindowMode.bind(f(n)),n.onPageClick=n.onPageClick.bind(f(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var o,a,r=i.prototype;return r.canReuseSlidingWindow=function(e,t){var n=this.slidingWindowState.indexesForReuse,i=!n.includes(e),o=n.includes(t);return i&&o},r.generatePageIndexes=function(){var e,t=this.props,n=t.pageCount,i=t.pageIndex,o=this.slidingWindowState.slidingWindowIndexes,a=x(e=i===o[0]?i-1:i===o[o.length-1]?i+2-4:i<4?1:i>=n-4?n-4-1:i-1,4,n,v(e,4,n)),r=a.pageIndexes,s=c(a,l);return this.slidingWindowStateHolder=s,r},r.isSlidingWindowMode=function(){var e=this.props,t=e.maxPagesCount,n=e.pageCount;return n<=4||n<=t},r.onPageClick=function(e){this.props.pageIndexChange(e)},r.render=function(){var e=this.props;return _({props:d({},e),config:this.config,pageIndexes:this.pageIndexes,pages:this.pages,restAttributes:this.restAttributes})},o=i,(a=[{key:"config",get:function(){return"ConfigContext"in this.context?this.context.ConfigContext:s.ConfigContext}},{key:"slidingWindowState",get:function(){return this.slidingWindowStateHolder||{indexesForReuse:[],slidingWindowIndexes:[]}}},{key:"pageIndexes",get:function(){var e=this.props.pageCount;if(this.isSlidingWindowMode())return x(0,e,e,"none").pageIndexes;if(this.canReuseSlidingWindow(e,this.props.pageIndex)){var t=this.slidingWindowState.slidingWindowIndexes;return y(t,e,v(t[0],4,e)).pageIndexes}return this.generatePageIndexes()}},{key:"pages",get:function(){var e,t=this,n=this.props.pageIndex;return(null!==(e=this.config)&&void 0!==e&&e.rtlEnabled?g(this.pageIndexes).reverse():this.pageIndexes).map((function(e){return function(e){var i="low"===e||"high"===e?null:{index:e,onClick:function(){return t.onPageClick(e)},selected:n===e};return{key:e.toString(),pageProps:i}}(e)}))}},{key:"restAttributes",get:function(){var e=this.props;return e.maxPagesCount,e.pageCount,e.pageIndex,e.pageIndexChange,c(e,u)}}])&&h(o.prototype,a),i}(o.BaseInfernoComponent);t.PagesLarge=w,w.defaultProps=b},48402:function(e,t,n){t.viewFunction=t.PageProps=t.Page=void 0;var i=n(55285),o=n(44105),a=n(93961),r=n(39853),s=n(86237),l=["className","index","onClick","selected"];function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){var t=e.className,n=e.label,o=e.props.onClick,r=e.value;return(0,i.createComponentVNode)(2,a.LightButton,{className:t,label:n,onClick:o,children:r})};t.viewFunction=f;var p={index:0,selected:!1,className:r.PAGER_PAGE_CLASS};t.PageProps=p;var g=function(e){var t,n,i,o;function a(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n),a.prototype.render=function(){var e=this.props;return f({props:d({},e),label:this.label,value:this.value,className:this.className,restAttributes:this.restAttributes})},i=a,(o=[{key:"label",get:function(){return"Page ".concat(this.value)}},{key:"value",get:function(){return this.props.index+1}},{key:"className",get:function(){var e,t=this.props.selected;return(0,s.combineClasses)((u(e={},"".concat(this.props.className),!!this.props.className),u(e,r.PAGER_SELECTION_CLASS,!!t),e))}},{key:"restAttributes",get:function(){var e=this.props;return e.className,e.index,e.onClick,e.selected,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l)}}])&&c(i.prototype,o),a}(o.BaseInfernoComponent);t.Page=g,g.defaultProps=p},32854:function(e,t,n){t.viewFunction=t.PageIndexSelectorProps=t.PageIndexSelector=t.PAGER_BUTTON_DISABLE_CLASS=void 0;var i=n(55285),o=n(44105),a=n(93961),r=n(40586),s=n(50570),l=n(96529),u=n(49697),d=["hasKnownLastPage","isLargeDisplayMode","maxPagesCount","pageCount","pageIndex","pageIndexChange","pagesCountText","showNavigationButtons","totalCount"];function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g="dx-navigate-button",m="dx-prev-button",_="dx-next-button",v="dx-button-disable";t.PAGER_BUTTON_DISABLE_CLASS=v;var y="".concat(g," ").concat(_),x="".concat(g," ").concat(m),b="".concat(v," ").concat(g," ").concat(_),w="".concat(v," ").concat(g," ").concat(m),C=function(e){var t=e.navigateToNextPage,n=e.navigateToPrevPage,o=e.nextClassName,l=e.pageIndexChange,u=e.prevClassName,d=e.props,c=d.isLargeDisplayMode,h=d.maxPagesCount,f=d.pageCount,p=d.pageIndex,g=d.pagesCountText,m=e.renderNextButton,_=e.renderPrevButton;return(0,i.createFragment)([_&&(0,i.createComponentVNode)(2,a.LightButton,{className:u,label:"Previous page",onClick:n}),c&&(0,i.createComponentVNode)(2,r.PagesLarge,{maxPagesCount:h,pageCount:f,pageIndex:p,pageIndexChange:l}),!c&&(0,i.createComponentVNode)(2,s.PagesSmall,{pageCount:f,pageIndex:p,pageIndexChange:l,pagesCountText:g}),m&&(0,i.createComponentVNode)(2,a.LightButton,{className:o,label:"Next page",onClick:t})],0)};t.viewFunction=C;var S={isLargeDisplayMode:!0};t.PageIndexSelectorProps=S;var k=Object.defineProperties({},{pageIndex:{get:function(){return l.InternalPagerProps.pageIndex},configurable:!0,enumerable:!0},maxPagesCount:{get:function(){return l.InternalPagerProps.maxPagesCount},configurable:!0,enumerable:!0},pageCount:{get:function(){return l.InternalPagerProps.pageCount},configurable:!0,enumerable:!0},hasKnownLastPage:{get:function(){return l.InternalPagerProps.hasKnownLastPage},configurable:!0,enumerable:!0},showNavigationButtons:{get:function(){return l.InternalPagerProps.showNavigationButtons},configurable:!0,enumerable:!0},totalCount:{get:function(){return l.InternalPagerProps.totalCount},configurable:!0,enumerable:!0},isLargeDisplayMode:{get:function(){return S.isLargeDisplayMode},configurable:!0,enumerable:!0}}),D=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n.pageIndexChange=n.pageIndexChange.bind(f(n)),n.navigateToNextPage=n.navigateToNextPage.bind(f(n)),n.navigateToPrevPage=n.navigateToPrevPage.bind(f(n)),n.getNextDirection=n.getNextDirection.bind(f(n)),n.getPrevDirection=n.getPrevDirection.bind(f(n)),n.canNavigateToPage=n.canNavigateToPage.bind(f(n)),n.getNextPageIndex=n.getNextPageIndex.bind(f(n)),n.canNavigateTo=n.canNavigateTo.bind(f(n)),n.navigateToPage=n.navigateToPage.bind(f(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var o,a,r=i.prototype;return r.pageIndexChange=function(e){this.canNavigateToPage(e)&&this.props.pageIndexChange(e)},r.navigateToNextPage=function(){this.navigateToPage(this.getNextDirection())},r.navigateToPrevPage=function(){this.navigateToPage(this.getPrevDirection())},r.getNextDirection=function(){var e;return null!==(e=this.config)&&void 0!==e&&e.rtlEnabled?"prev":"next"},r.getPrevDirection=function(){var e;return null!==(e=this.config)&&void 0!==e&&e.rtlEnabled?"next":"prev"},r.canNavigateToPage=function(e){return this.props.hasKnownLastPage?e>=0&&e<=this.props.pageCount-1:e>=0},r.getNextPageIndex=function(e){return this.props.pageIndex+function(e){return"next"===e?1:-1}(e)},r.canNavigateTo=function(e){return this.canNavigateToPage(this.getNextPageIndex(e))},r.navigateToPage=function(e){this.pageIndexChange(this.getNextPageIndex(e))},r.render=function(){var e=this.props;return C({props:c({},e),config:this.config,pageIndexChange:this.pageIndexChange,navigateToNextPage:this.navigateToNextPage,navigateToPrevPage:this.navigateToPrevPage,renderPrevButton:this.renderPrevButton,renderNextButton:this.renderNextButton,nextClassName:this.nextClassName,prevClassName:this.prevClassName,restAttributes:this.restAttributes})},o=i,(a=[{key:"config",get:function(){return"ConfigContext"in this.context?this.context.ConfigContext:u.ConfigContext}},{key:"renderPrevButton",get:function(){var e=this.props,t=e.isLargeDisplayMode,n=e.showNavigationButtons;return!t||n}},{key:"renderNextButton",get:function(){return this.renderPrevButton||!this.props.hasKnownLastPage}},{key:"nextClassName",get:function(){var e=this.getNextDirection();return this.canNavigateTo(e)?y:b}},{key:"prevClassName",get:function(){var e=this.getPrevDirection();return this.canNavigateTo(e)?x:w}},{key:"restAttributes",get:function(){var e=this.props;return e.hasKnownLastPage,e.isLargeDisplayMode,e.maxPagesCount,e.pageCount,e.pageIndex,e.pageIndexChange,e.pagesCountText,e.showNavigationButtons,e.totalCount,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d)}}])&&h(o.prototype,a),i}(o.BaseInfernoComponent);t.PageIndexSelector=D,D.defaultProps=k},50570:function(e,t,n){t.viewFunction=t.PagesSmall=void 0;var i,o=n(55285),a=n(44105),r=n(48402),s=n(57495),l=n(15560),u=(i=n(28109))&&i.__esModule?i:{default:i},d=n(7750),c=n(95116),h=n(96529),f=["pageCount","pageIndex","pageIndexChange","pagesCountText"];function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v="".concat(s.PAGER_INFO_CLASS,"  dx-info-text"),y="dx-page-index",x=function(e){var t=e.pageIndexRef,n=e.pagesCountText,i=e.props.pageCount,a=e.selectLastPageIndex,s=e.value,u=e.valueChange,d=e.width;return(0,o.createVNode)(1,"div","dx-light-pages",[(0,o.createComponentVNode)(2,l.NumberBox,{className:y,min:1,max:i,width:d,value:s,valueChange:u}),(0,o.createVNode)(1,"span",v,n,0),(0,o.createComponentVNode)(2,r.Page,{className:"dx-pages-count",selected:!1,index:i-1,onClick:a})],4,null,null,t)};t.viewFunction=x;var b=Object.defineProperties({},{pageIndex:{get:function(){return h.InternalPagerProps.pageIndex},configurable:!0,enumerable:!0},pageCount:{get:function(){return h.InternalPagerProps.pageCount},configurable:!0,enumerable:!0}}),w=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).pageIndexRef=(0,o.createRef)(),n.state={minWidth:10},n.updateWidth=n.updateWidth.bind(m(n)),n.selectLastPageIndex=n.selectLastPageIndex.bind(m(n)),n.valueChange=n.valueChange.bind(m(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,_(t,n);var r,s,l=i.prototype;return l.createEffects=function(){return[new a.InfernoEffect(this.updateWidth,[this.state.minWidth])]},l.updateEffects=function(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.state.minWidth])},l.updateWidth=function(){var e,t=null===(e=this.pageIndexRef.current)||void 0===e?void 0:e.querySelector(".".concat(y));this.setState((function(e){return{minWidth:t&&(0,c.getElementMinWidth)(t)||e.minWidth}}))},l.selectLastPageIndex=function(){this.props.pageIndexChange(this.props.pageCount-1)},l.valueChange=function(e){this.props.pageIndexChange(e-1)},l.render=function(){var e=this.props;return x({props:p({},e),pageIndexRef:this.pageIndexRef,value:this.value,width:this.width,pagesCountText:this.pagesCountText,selectLastPageIndex:this.selectLastPageIndex,valueChange:this.valueChange,restAttributes:this.restAttributes})},r=i,(s=[{key:"value",get:function(){return this.props.pageIndex+1}},{key:"width",get:function(){var e=this.props.pageCount;return(0,d.calculateValuesFittedWidth)(this.state.minWidth,[e])}},{key:"pagesCountText",get:function(){var e;return(null!==(e=this.props.pagesCountText)&&void 0!==e?e:"")||u.default.getFormatter("dxPager-pagesCountText")()}},{key:"restAttributes",get:function(){var e=this.props;return e.pageCount,e.pageIndex,e.pageIndexChange,e.pagesCountText,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,f)}}])&&g(r.prototype,s),i}(a.InfernoComponent);t.PagesSmall=w,w.defaultProps=b},97239:function(e,t,n){t.ResizableContainerProps=t.ResizableContainer=void 0,t.calculateAdaptivityProps=g,t.viewFunction=void 0;var i,o=n(55285),a=n(44105),r=(i=n(55814))&&i.__esModule?i:{default:i},s=n(95116),l=n(35922),u=["contentTemplate","pagerProps"];function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var p=function(e){var t=e.contentAttributes,n=e.infoTextRef,i=e.infoTextVisible,o=e.isLargeDisplayMode,a=e.pageSizesRef,r=e.pagesRef,s=e.parentRef;return(0,e.props.contentTemplate)(f({rootElementRef:s,pageSizesRef:a,infoTextRef:n,pagesRef:r,infoTextVisible:i,isLargeDisplayMode:o},t))};function g(e){var t=e.info,n=e.pageSizes,i=e.pages,o=e.parent;return{infoTextVisible:o-(n+i+t)>0,isLargeDisplayMode:o-(n+i)>0}}t.viewFunction=p;var m={};t.ResizableContainerProps=m;var _=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).parentRef=(0,o.createRef)(),n.pageSizesRef=(0,o.createRef)(),n.infoTextRef=(0,o.createRef)(),n.pagesRef=(0,o.createRef)(),n.state={infoTextVisible:!0,isLargeDisplayMode:!0},n.subscribeToResize=n.subscribeToResize.bind(c(n)),n.effectUpdateChildProps=n.effectUpdateChildProps.bind(c(n)),n.updateAdaptivityProps=n.updateAdaptivityProps.bind(c(n)),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var m,_,v=i.prototype;return v.createEffects=function(){return[new a.InfernoEffect(this.subscribeToResize,[this.state.infoTextVisible,this.state.isLargeDisplayMode]),new a.InfernoEffect(this.effectUpdateChildProps,[this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])]},v.updateEffects=function(){var e,t;null===(e=this._effects[0])||void 0===e||e.update([this.state.infoTextVisible,this.state.isLargeDisplayMode]),null===(t=this._effects[1])||void 0===t||t.update([this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])},v.subscribeToResize=function(){var e=this,t=function(){e.updateAdaptivityProps()};return r.default.add(t),function(){r.default.remove(t)}},v.effectUpdateChildProps=function(){(this.parentRef.current?(0,s.getElementWidth)(this.parentRef.current):0)>0&&this.updateAdaptivityProps()},v.updateAdaptivityProps=function(){var e,t,n,i,o,a,r,u,d,c=this,h=(t=(e={parent:this.parentRef.current,pageSizes:this.pageSizesRef.current,info:this.infoTextRef.current,pages:this.pagesRef.current}).info,n=e.pageSizes,i=e.pages,o=e.parent,a=(0,s.getElementWidth)(o),r=(0,s.getElementWidth)(n),u=(0,s.getElementWidth)(t),d=(0,s.getElementWidth)(i),{parent:a,pageSizes:r,info:u+(0,s.getElementStyle)("marginLeft",t)+(0,s.getElementStyle)("marginRight",t),pages:d});if(!(0,l.isDefined)(this.actualAdaptivityProps)||this.actualAdaptivityProps.infoTextVisible===this.state.infoTextVisible&&this.actualAdaptivityProps.isLargeDisplayMode===this.state.isLargeDisplayMode){var p=!(0,l.isDefined)(this.elementsWidth);p&&(this.elementsWidth={}),(p||this.state.isLargeDisplayMode)&&(this.elementsWidth.pageSizes=h.pageSizes,this.elementsWidth.pages=h.pages),(p||this.state.infoTextVisible)&&(this.elementsWidth.info=h.info),this.actualAdaptivityProps=g(f({parent:h.parent},this.elementsWidth)),this.setState((function(e){return{infoTextVisible:c.actualAdaptivityProps.infoTextVisible}})),this.setState((function(e){return{isLargeDisplayMode:c.actualAdaptivityProps.isLargeDisplayMode}}))}},v.render=function(){var e,t=this.props;return p({props:f({},t,{contentTemplate:(e=t.contentTemplate,e&&(e.defaultProps?function(t){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,e,f({},t)))}:e))}),infoTextVisible:this.state.infoTextVisible,isLargeDisplayMode:this.state.isLargeDisplayMode,parentRef:this.parentRef,pageSizesRef:this.pageSizesRef,infoTextRef:this.infoTextRef,pagesRef:this.pagesRef,contentAttributes:this.contentAttributes,updateAdaptivityProps:this.updateAdaptivityProps,restAttributes:this.restAttributes})},m=i,(_=[{key:"contentAttributes",get:function(){var e=this.props.pagerProps,t=e.className,n=e.displayMode,i=e.gridCompatibility,o=e.hasKnownLastPage,a=e.infoText,r=e.lightModeEnabled,s=e.maxPagesCount,l=e.onKeyDown,u=e.pageCount,d=e.pageIndex,c=e.pageIndexChange,h=e.pageSize,p=e.pageSizeChange,g=e.pageSizes,m=e.pagesCountText,_=e.pagesNavigatorVisible,v=e.rtlEnabled,y=e.showInfo,x=e.showNavigationButtons,b=e.showPageSizes,w=e.totalCount,C=e.visible;return f({},this.restAttributes,{pageSize:h,pageIndex:d,pageIndexChange:c,pageSizeChange:p,gridCompatibility:i,className:t,showInfo:y,infoText:a,lightModeEnabled:r,displayMode:n,maxPagesCount:s,pageCount:u,pagesCountText:m,visible:C,hasKnownLastPage:o,pagesNavigatorVisible:_,showPageSizes:b,pageSizes:g,rtlEnabled:v,showNavigationButtons:x,totalCount:w,onKeyDown:l})}},{key:"restAttributes",get:function(){var e=this.props;return e.contentTemplate,e.pagerProps,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u)}}])&&d(m.prototype,_),i}(a.InfernoComponent);t.ResizableContainer=_,_.defaultProps=m},7750:function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.calculateValuesFittedWidth=function(e,t){return e+10*Math.max.apply(Math,(i=t,function(e){if(Array.isArray(e))return n(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).toString().length;var i},t.oneDigitWidth=void 0,t.oneDigitWidth=10},95116:function(e,t,n){t.getElementMinWidth=function(e){return r("minWidth",e)},t.getElementStyle=r,t.getElementWidth=function(e){return r("width",e)};var i,o=(i=n(89357))&&i.__esModule?i:{default:i},a=n(78461);function r(e,t){var n,i=null!==(n=(0,o.default)(t))&&void 0!==n?n:{};return(0,a.toNumber)(i[e])}},19234:function(e,t,n){t.getAreaFromObject=t.getAreaFromElement=t.filterOffsets=t.borderWidthStyles=void 0,t.getDragOffsets=function(e,t,n){var o=(0,a.getOuterWidth)(t),r=(0,a.getOuterHeight)(t),s=(0,a.getOffset)(t),l=e.offset,u=(0,i.isWindow)(n),d=u?n.pageXOffset:0,c=u?n.pageYOffset:0;return{maxLeftOffset:s.left-l.left-d,maxRightOffset:l.left+e.width-s.left-o+d,maxTopOffset:s.top-l.top-c,maxBottomOffset:l.top+e.height-s.top-r+c}},t.getMovingSides=void 0;var i=n(35922),o=n(13306),a=n(58664),r={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"};function s(e,t){if(!(0,i.isWindow)(e)){var n=e.style[r[t]];return parseInt(n,10)||0}return 0}t.borderWidthStyles=r;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=e.height,o=e.offset,r=e.width,l=o.left,u=o.top,d=n?s(n,"left"):0,c=n?s(n,"top"):0;return{width:r-(0,a.getOuterWidth)(t)-(0,a.getInnerWidth)(t),height:i-(0,a.getOuterHeight)(t)-(0,a.getInnerHeight)(t),offset:{left:l+d+s(t,"left"),top:u+c+s(t,"top")}}};t.getAreaFromElement=function(e,t){return l({width:(0,a.getInnerWidth)(e),height:(0,a.getInnerHeight)(e),offset:(0,o.extend)({top:0,left:0},(0,i.isWindow)(e)?{}:(0,a.getOffset)(e))},t,e)},t.getAreaFromObject=function(e,t){var n=e.bottom,i=e.left,o=e.right,a=e.top;return l({width:o-i,height:n-a,offset:{left:i,top:a}},t)};var u=function(e){var t=e.className,n=t.includes("dx-resizable-handle-corner-top-left"),i=t.includes("dx-resizable-handle-corner-top-right"),o=t.includes("dx-resizable-handle-corner-bottom-left"),a=t.includes("dx-resizable-handle-corner-bottom-right");return{top:t.includes("dx-resizable-handle-top")||n||i,left:t.includes("dx-resizable-handle-left")||n||o,bottom:t.includes("dx-resizable-handle-bottom")||o||a,right:t.includes("dx-resizable-handle-right")||i||a}};t.getMovingSides=u,t.filterOffsets=function(e,t){var n=u(t);return{x:n.left||n.right?e.x:0,y:n.top||n.bottom?e.y:0}}},35905:function(e,t,n){t.viewFunction=t.AppointmentProps=t.Appointment=void 0;var i=n(55285),o=n(44105),a=n(84154),r=n(1206),s=n(86237),l=["appointmentTemplate","index","viewModel"];function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var h=function(e){var t=e.classes,n=e.data,a=e.dateText,s=e.index,l=e.isReduced,u=e.props,d=u.appointmentTemplate,c=u.viewModel.info.isRecurrent,h=e.styles,f=e.text,p=d;return(0,i.createVNode)(1,"div",t,[!!d&&p({data:n,index:s}),!d&&(0,i.createComponentVNode)(2,r.AppointmentContent,{text:f,dateText:a,isRecurrent:c,isReduced:l})],0,{style:(0,o.normalizeStyles)(h),title:f,role:"button"})};t.viewFunction=h;var f={index:0};t.AppointmentProps=f;var p=function(e){var t,n,o,r;function f(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=f).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n),f.prototype.render=function(){var e,t=this.props;return h({props:c({},t,{appointmentTemplate:(e=t.appointmentTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,c({},t)))}:e))}),text:this.text,dateText:this.dateText,styles:this.styles,data:this.data,index:this.index,isReduced:this.isReduced,classes:this.classes,restAttributes:this.restAttributes})},o=f,(r=[{key:"text",get:function(){return this.props.viewModel.appointment.text}},{key:"dateText",get:function(){return this.props.viewModel.info.dateText}},{key:"styles",get:function(){return(0,a.getAppointmentStyles)(this.props.viewModel)}},{key:"data",get:function(){return{appointmentData:this.props.viewModel.info.appointment,targetedAppointmentData:this.props.viewModel.appointment}}},{key:"index",get:function(){return this.props.index}},{key:"isReduced",get:function(){return!!this.props.viewModel.info.appointmentReduced}},{key:"classes",get:function(){var e=this.props.viewModel.info,t=e.allDay,n=e.appointmentReduced,i=e.direction,o=e.isRecurrent,a="vertical"===i;return(0,s.combineClasses)({"dx-scheduler-appointment":!0,"dx-scheduler-appointment-horizontal":!a,"dx-scheduler-appointment-vertical":a,"dx-scheduler-appointment-recurrence":o,"dx-scheduler-all-day-appointment":t,"dx-scheduler-appointment-reduced":this.isReduced,"dx-scheduler-appointment-head":"head"===n,"dx-scheduler-appointment-body":"body"===n,"dx-scheduler-appointment-tail":"tail"===n})}},{key:"restAttributes",get:function(){var e=this.props;return e.appointmentTemplate,e.index,e.viewModel,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l)}}])&&u(o.prototype,r),f}(o.BaseInfernoComponent);t.Appointment=p,p.defaultProps=f},1206:function(e,t,n){t.viewFunction=t.AppointmentContentProps=t.AppointmentContent=void 0;var i=n(55285),o=n(44105),a=["dateText","isRecurrent","isReduced","text"];function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t=e.props,n=t.dateText,o=t.isRecurrent,a=t.isReduced,r=t.text;return(0,i.createVNode)(1,"div","dx-scheduler-appointment-content",[(0,i.createVNode)(1,"div","dx-scheduler-appointment-title",r,0),(0,i.createVNode)(1,"div","dx-scheduler-appointment-content-details",(0,i.createVNode)(1,"div","dx-scheduler-appointment-content-date",n,0),2),o&&(0,i.createVNode)(1,"div","dx-scheduler-appointment-recurrence-icon dx-icon-repeat"),a&&(0,i.createVNode)(1,"div","dx-scheduler-appointment-reduced-icon")],0)};t.viewFunction=u;var d={text:"",dateText:"",isRecurrent:!1,isReduced:!1};t.AppointmentContentProps=d;var c=function(e){var t,n,i,o;function d(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=d).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),d.prototype.render=function(){var e=this.props;return u({props:r({},e),restAttributes:this.restAttributes})},i=d,(o=[{key:"restAttributes",get:function(){var e=this.props;return e.dateText,e.isRecurrent,e.isReduced,e.text,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a)}}])&&s(i.prototype,o),d}(o.BaseInfernoComponent);t.AppointmentContent=c,c.defaultProps=d},55304:function(e,t,n){t.default=void 0;var i=r(n(99393)),o=r(n(27135)),a=n(20695);function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n,i,o;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),i=r,(o=[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[],templates:["appointmentTemplate","overflowIndicatorTemplate"],props:["isAllDay","appointments","overflowIndicators","appointmentTemplate","overflowIndicatorTemplate"]}}},{key:"_viewComponent",get:function(){return a.AppointmentLayout}}])&&s(i.prototype,o),r}(o.default);t.default=u,(0,i.default)("dxAppointmentLayout",u),e.exports=t.default,e.exports.default=t.default},20695:function(e,t,n){t.viewFunction=t.AppointmentLayoutProps=t.AppointmentLayout=void 0;var i=n(55285),o=n(44105),a=n(35905),r=n(99367),s=n(86237),l=["appointmentTemplate","appointments","isAllDay","overflowIndicatorTemplate","overflowIndicators"];function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var h=function(e){var t=e.classes,n=e.props,o=n.appointmentTemplate,s=n.appointments,l=n.overflowIndicatorTemplate,u=n.overflowIndicators;return(0,i.createVNode)(1,"div",t,[s.map((function(e,t){return(0,i.createComponentVNode)(2,a.Appointment,{viewModel:e,appointmentTemplate:o,index:t},e.key)})),u.map((function(e){return(0,i.createComponentVNode)(2,r.OverflowIndicator,{viewModel:e,overflowIndicatorTemplate:l},e.key)}))],0)};t.viewFunction=h;var f=Object.defineProperties({isAllDay:!1},{appointments:{get:function(){return[]},configurable:!0,enumerable:!0},overflowIndicators:{get:function(){return[]},configurable:!0,enumerable:!0}});t.AppointmentLayoutProps=f;var p=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,c({},t)))}:e)},g=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n);var a,r,f=i.prototype;return f.createEffects=function(){return[(0,o.createReRenderEffect)()]},f.render=function(){var e=this.props;return h({props:c({},e,{appointmentTemplate:p(e.appointmentTemplate),overflowIndicatorTemplate:p(e.overflowIndicatorTemplate)}),classes:this.classes,restAttributes:this.restAttributes})},a=i,(r=[{key:"classes",get:function(){var e=this.props.isAllDay;return(0,s.combineClasses)({"dx-scheduler-scrollable-appointments":!e,"dx-scheduler-all-day-appointments":e})}},{key:"restAttributes",get:function(){var e=this.props;return e.appointmentTemplate,e.appointments,e.isAllDay,e.overflowIndicatorTemplate,e.overflowIndicators,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l)}}])&&u(a.prototype,r),i}(o.InfernoWrapperComponent);t.AppointmentLayout=g,g.defaultProps=f},99367:function(e,t,n){t.viewFunction=t.OverflowIndicatorProps=t.OverflowIndicator=void 0;var i,o=n(55285),a=n(44105),r=n(86237),s=n(36729),l=n(86553),u=(i=n(28109))&&i.__esModule?i:{default:i},d=["overflowIndicatorTemplate","viewModel"];function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var p=function(e){var t=e.appointmentCount,n=e.classes,i=e.isCompact,r=e.props.overflowIndicatorTemplate,l=e.styles,u=e.text;return(0,o.createComponentVNode)(2,s.Button,{text:u,style:(0,a.normalizeStyles)(l),className:n,type:"default",stylingMode:"contained",children:r&&r({appointmentCount:t,isCompact:i})})};t.viewFunction=p;var g={};t.OverflowIndicatorProps=g;var m=function(e){var t,n,i,a;function s(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n),s.prototype.render=function(){var e,t=this.props;return p({props:f({},t,{overflowIndicatorTemplate:(e=t.overflowIndicatorTemplate,e&&(e.defaultProps?function(t){return(0,o.normalizeProps)((0,o.createComponentVNode)(2,e,f({},t)))}:e))}),appointmentCount:this.appointmentCount,isCompact:this.isCompact,text:this.text,styles:this.styles,classes:this.classes,restAttributes:this.restAttributes})},i=s,(a=[{key:"appointmentCount",get:function(){return this.props.viewModel.items.settings.length}},{key:"isCompact",get:function(){return this.props.viewModel.isCompact}},{key:"text",get:function(){return this.props.viewModel.isCompact?"".concat(this.appointmentCount):u.default.getFormatter("dxScheduler-moreAppointments")(this.appointmentCount)}},{key:"styles",get:function(){return(0,l.getOverflowIndicatorStyles)(this.props.viewModel)}},{key:"classes",get:function(){return(0,r.combineClasses)({"dx-scheduler-appointment-collector":!0,"dx-scheduler-appointment-collector-compact":this.isCompact})}},{key:"restAttributes",get:function(){var e=this.props;return e.overflowIndicatorTemplate,e.viewModel,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d)}}])&&c(i.prototype,a),s}(a.BaseInfernoComponent);t.OverflowIndicator=m,m.defaultProps=g},86553:function(e,t,n){t.getOverflowIndicatorStyles=t.getOverflowIndicatorColor=void 0;var i=n(97205);t.getOverflowIndicatorStyles=function(e){var t=e.color,n=e.geometry,o=n.height,a=n.left,r=n.top,s=n.width,l=(0,i.addToStyles)([{attr:"left",value:"".concat(a,"px")},{attr:"top",value:"".concat(r,"px")},{attr:"width",value:"".concat(s,"px")},{attr:"height",value:"".concat(o,"px")}]);return t&&(l=(0,i.addToStyles)([{attr:"backgroundColor",value:t},{attr:"boxShadow",value:"inset ".concat(s,"px 0 0 0 rgba(0, 0, 0, 0.3)")}],l)),l},t.getOverflowIndicatorColor=function(e,t){return t.length&&0!==t.filter((function(t){return t!==e})).length?void 0:e}},84154:function(e,t,n){t.getAppointmentStyles=t.getAppointmentKey=void 0;var i=n(97205);t.getAppointmentStyles=function(e){var t=e.geometry,n=t.height,o=t.left,a=t.top,r=t.width,s=e.info.resourceColor,l=(0,i.addToStyles)([{attr:"height",value:"".concat(n||50,"px")},{attr:"width",value:"".concat(r||50,"px")},{attr:"top",value:"".concat(a,"px")},{attr:"left",value:"".concat(o,"px")}]);return s&&(l=(0,i.addToStyles)([{attr:"backgroundColor",value:s}],l)),l},t.getAppointmentKey=function(e){var t=e.height,n=e.left,i=e.top,o=e.width;return"".concat(n,"-").concat(i,"-").concat(o,"-").concat(t)}},4799:function(e,t){t.VERTICAL_GROUP_ORIENTATION=t.HORIZONTAL_GROUP_ORIENTATION=void 0,t.VERTICAL_GROUP_ORIENTATION="vertical",t.HORIZONTAL_GROUP_ORIENTATION="horizontal"},17169:function(e,t,n){t.getAppointmentsModel=t.getAppointmentsConfig=t.getAppointmentRenderingStrategyName=void 0;var i,o=n(69576),a=n(98140),r=n(97205),s=(i=n(91198))&&i.__esModule?i:{default:i},l=n(45985),u=n(43450);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var c=function(e){return{day:{renderingStrategy:"vertical"},week:{renderingStrategy:"week"},workWeek:{renderingStrategy:"week"},month:{renderingStrategy:"horizontalMonth"},timelineDay:{renderingStrategy:"horizontal"},timelineWeek:{renderingStrategy:"horizontal"},timelineWorkWeek:{renderingStrategy:"horizontal"},timelineMonth:{renderingStrategy:"horizontalMonthLine"},agenda:{renderingStrategy:"agenda"}}[e].renderingStrategy};t.getAppointmentRenderingStrategyName=c,t.getAppointmentsConfig=function(e,t,n,i,o){var r=(0,a.getGroupCount)(n),s=i.getStartViewDate(),l=[s,i.getLastViewDateByEndDayHour(t.endDayHour)];return{adaptivityEnabled:e.adaptivityEnabled,rtlEnabled:e.rtlEnabled,resources:e.resources,maxAppointmentsPerCell:e.maxAppointmentsPerCell,timeZone:e.timeZone,modelGroups:e.groups,startDayHour:t.startDayHour,viewStartDayHour:t.startDayHour,endDayHour:t.endDayHour,viewEndDayHour:t.endDayHour,currentDate:t.currentDate,isVirtualScrolling:"virtual"===t.scrolling.mode,intervalCount:t.intervalCount,hoursInterval:t.hoursInterval,showAllDayPanel:t.showAllDayPanel,supportAllDayRow:o,groupOrientation:i.getViewOptions().groupOrientation,firstDayOfWeek:t.firstDayOfWeek,viewType:t.type,cellDurationInMinutes:t.cellDuration,isVerticalGroupOrientation:i.getViewOptions().isVerticalGrouping,groupByDate:i.getViewOptions().isGroupedByDate,startViewDate:s,loadedResources:n,appointmentCountPerCell:2,appointmentOffset:26,allowResizing:!1,allowAllDayResizing:!1,dateTableOffset:0,groupCount:r,dateRange:l}},t.getAppointmentsModel=function(e,t,n,i,a){var h=(0,r.isGroupingByDate)(e.modelGroups,e.groupOrientation,e.groupByDate),f=e.groupCount,p=e.isVerticalGroupOrientation,g=new o.PositionHelper({viewDataProvider:t,groupedByDate:h,rtlEnabled:e.rtlEnabled,groupCount:f,isVerticalGrouping:f&&p,getDOMMetaDataCallback:function(){return a}}),m=(0,l.calculateIsGroupedAllDayPanel)(e.loadedResources,e.groupOrientation,e.showAllDayPanel),_=t.getRowCount({intervalCount:e.intervalCount,currentDate:e.currentDate,viewType:e.viewType,hoursInterval:e.hoursInterval,startDayHour:e.startDayHour,endDayHour:e.endDayHour}),v=(0,o.getAllDayHeight)(e.showAllDayPanel,e.isVerticalGroupOrientation,a),y=t.getLastCellEndDate(),x=t.getVisibleDayDuration(e.startDayHour,e.endDayHour,e.hoursInterval),b=t.viewData,w=b.leftVirtualCellCount,C=b.topVirtualRowCount,S=(0,l.getCellDuration)(e.viewType,e.startDayHour,e.endDayHour,e.hoursInterval),k=(0,u.createGetAppointmentColor)({resources:e.resources,dataAccessors:i.resources,loadedResources:e.loadedResources,resourceLoaderMap:new Map});return d({},e,{appointmentRenderingStrategyName:c(e.viewType),loadedResources:e.loadedResources,dataAccessors:i,timeZoneCalculator:n,viewDataProvider:t,positionHelper:g,isGroupedAllDayPanel:m,rowCount:_,cellWidth:(0,o.getCellWidth)(a),cellHeight:(0,o.getCellHeight)(a),allDayHeight:v,isGroupedByDate:h,endViewDate:y,visibleDayDuration:x,intervalDuration:S,allDayIntervalDuration:("day",s.default.dateToMilliseconds("day")),leftVirtualCellCount:w,topVirtualCellCount:C,cellDuration:S,getAppointmentColor:k,resizableStep:g.getResizableStep(),DOMMetaData:a})}},47718:function(e,t,n){t.getCurrentViewProps=t.getCurrentViewConfig=t.getCurrentView=void 0;var i=n(35922);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var r=["day","week","workWeek","month","timelineDay","timelineWeek","timelineWorkWeek","timelineMonth","agenda"],s=function(e,t){var n=t.find((function(t){return!!((0,i.isObject)(t)?[t.name,t.type]:[t]).includes(e)}));return void 0===n&&(n=r.includes(e)?e:function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,1)[0]),n};function l(e,t){return void 0!==t?t:e}t.getCurrentView=s,t.getCurrentViewProps=function(e,t){var n=s(e,t);return(0,i.isString)(n)?{type:n}:n},t.getCurrentViewConfig=function(e,t){var n=t.scrolling,i=e.cellDuration,a=e.dataCellTemplate,r=e.dateCellTemplate,s=e.endDayHour,u=e.firstDayOfWeek,d=e.groupByDate,c=e.groupOrientation,h=e.intervalCount,f=e.resourceCellTemplate,p=e.scrolling,g=e.startDate,m=e.startDayHour,_=e.timeCellTemplate,v=e.type,y="virtual"===n.mode||"virtual"===(null==p?void 0:p.mode),x=t.crossScrollingEnabled||y,b={firstDayOfWeek:l(t.firstDayOfWeek,u),startDayHour:l(t.startDayHour,m),endDayHour:l(t.endDayHour,s),cellDuration:l(t.cellDuration,i),groupByDate:l(t.groupByDate,d),scrolling:l(n,p),dataCellTemplate:l(t.dataCellTemplate,a),timeCellTemplate:l(t.timeCellTemplate,_),resourceCellTemplate:l(t.resourceCellTemplate,f),dateCellTemplate:l(t.dateCellTemplate,r),currentDate:t.currentDate,intervalCount:h,groupOrientation:c,startDate:g,type:v,showAllDayPanel:t.showAllDayPanel,showCurrentTimeIndicator:t.showCurrentTimeIndicator,indicatorUpdateInterval:t.indicatorUpdateInterval,shadeUntilCurrentTime:t.shadeUntilCurrentTime,crossScrollingEnabled:x,schedulerHeight:t.height,schedulerWidth:t.width,tabIndex:t.tabIndex,accessKey:t.accessKey,focusStateEnabled:t.focusStateEnabled,allowMultipleCellSelection:!0,allDayPanelExpanded:!0};return o({},b,{hoursInterval:b.cellDuration/60})}},43450:function(e,t,n){t.createGetAppointmentColor=void 0;var i=n(98140);t.createGetAppointmentColor=function(e){return function(t){return(0,i.getAppointmentColor)(e,t)}}},47367:function(e,t){t.Semaphore=void 0;var n=function(){function e(){this.counter=0}var t=e.prototype;return t.isFree=function(){return 0===this.counter},t.take=function(){this.counter+=1},t.release=function(){this.counter-=1,this.counter<0&&(this.counter=0)},e}();t.Semaphore=n},75296:function(e,t){var n;t.PathTimeZoneConversion=void 0,t.PathTimeZoneConversion=n,function(e){e.fromSourceToAppointment="toAppointment",e.fromAppointmentToSource="fromAppointment",e.fromSourceToGrid="toGrid",e.fromGridToSource="fromGrid"}(n||(t.PathTimeZoneConversion=n={}))},63660:function(e,t,n){t.TimeZoneCalculator=void 0;var i,o=n(35922),a=(i=n(91198))&&i.__esModule?i:{default:i},r=n(75296),s=function(){function e(e){this.options=e}var t=e.prototype;return t.createDate=function(e,t){var n=new Date(e);switch(t.path){case r.PathTimeZoneConversion.fromSourceToAppointment:return this.getConvertedDate(n,t.appointmentTimeZone,!0,!1);case r.PathTimeZoneConversion.fromAppointmentToSource:return this.getConvertedDate(n,t.appointmentTimeZone,!0,!0);case r.PathTimeZoneConversion.fromSourceToGrid:return this.getConvertedDate(n,t.appointmentTimeZone,!1,!1);case r.PathTimeZoneConversion.fromGridToSource:return this.getConvertedDate(n,t.appointmentTimeZone,!1,!0);default:throw new Error("not specified pathTimeZoneConversion")}},t.getOffsets=function(e,t){var n=-this.getClientOffset(e)/a.default.dateToMilliseconds("hour"),i=this.getCommonOffset(e),r=this.getAppointmentOffset(e,t);return{client:n,common:(0,o.isDefined)(i)?i:n,appointment:"number"!=typeof r?n:r}},t.getConvertedDateByOffsets=function(e,t,n,i){var o=i?-1:1,r=e.getTime()-o*t*a.default.dateToMilliseconds("hour");return new Date(r+o*n*a.default.dateToMilliseconds("hour"))},t.getClientOffset=function(e){return this.options.getClientOffset(e)},t.getCommonOffset=function(e){return this.options.getCommonOffset(e)},t.getAppointmentOffset=function(e,t){return this.options.getAppointmentOffset(e,t)},t.getConvertedDate=function(e,t,n,i){var o=new Date(e.getTime()),a=this.getOffsets(o,t);return n&&t?this.getConvertedDateByOffsets(e,a.client,a.appointment,i):this.getConvertedDateByOffsets(e,a.client,a.common,i)},e}();t.TimeZoneCalculator=s},46858:function(e,t,n){t.resolveDataItems=t.getPreparedDataItems=void 0;var i=n(11305),o=n(5480),a=n(35922);t.getPreparedDataItems=function(e,t,n,r){var s=[];return null==e||e.forEach((function(e){var l,u=new Date(t.getter.startDate(e)),d=new Date(t.getter.endDate(e));(0,i.replaceWrongEndDate)(e,u,d,n,t);var c=(0,o.createAppointmentAdapter)(e,t,r),h=c.startDate&&c.calculateStartDate("toGrid"),f=c.endDate&&c.calculateEndDate("toGrid"),p=new RegExp("freq","gi"),g=c.recurrenceRule,m=!(null==g||null===(l=g.match(p))||void 0===l||!l.length),_=!(0,a.isDefined)(e.visible)||!!e.visible;h&&f&&s.push({allDay:!!c.allDay,startDate:h,endDate:f,recurrenceRule:c.recurrenceRule,recurrenceException:c.recurrenceException,hasRecurrenceRule:m,visible:_,rawAppointment:e})})),s},t.resolveDataItems=function(e){return Array.isArray(e)?e:e.data}},37009:function(e,t){t.default=void 0;t.default=function(e,t,n){for(var i=e.getTime(),o=t.getTime(),a=0,r=i;r<=o;r+=864e5){var s=new Date(r);n.isSkippedDate(s)&&(a+=24)}return a},e.exports=t.default,e.exports.default=t.default},34854:function(e,t){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}t.getGroupPanelData=void 0,t.getGroupPanelData=function(e,t,o,a){var r=1,s=e.map((function(e){for(var t=[],n=e.data,o=e.items,a=e.name,s=function(e){t.push.apply(t,i(o.map((function(t,i){var o=t.color,r=t.id;return{id:r,text:t.text,color:o,key:"".concat(e,"_").concat(a,"_").concat(r),resourceName:a,data:null==n?void 0:n[i]}}))))},l=0;l<r;l+=1)s(l);return r*=o.length,t}));return o&&(s=function(e,t){return i(new Array(t)).reduce((function(t,o,a){return e.map((function(e,o){var r=t[o]||[];return[].concat(i(r),i(e.map((function(t,i){return n({},t,{key:"".concat(t.key,"_group_by_date_").concat(a),isFirstGroupCell:0===i,isLastGroupCell:i===e.length-1})}))))}))}),[])}(s,t)),{groupPanelItems:s,baseColSpan:a}}},89206:function(e,t,n){t.calculateStartViewDate=void 0;var i=n(45985);t.calculateStartViewDate=function(e,t){var n=new Date(e);return(0,i.setOptionHour)(n,t)}},45985:function(e,t,n){t.validateDayHours=t.setOptionHour=t.isSupportMultiDayAppointments=t.isHorizontalView=t.isDateInRange=t.isDateAndTimeView=t.getViewStartByOptions=t.getVerticalGroupCountClass=t.getTotalRowCountByCompleteData=t.getTotalCellCountByCompleteData=t.getToday=t.getStartViewDateWithoutDST=t.getStartViewDateTimeOffset=t.getHorizontalGroupCount=t.getHeaderCellText=t.getDisplayedRowCount=t.getDisplayedCellCount=t.getCellDuration=t.getCalculatedFirstDayOfWeek=t.formatWeekdayAndDay=t.formatWeekday=t.calculateViewStartDate=t.calculateIsGroupedAllDayPanel=t.calculateDayDuration=t.calculateCellIndex=void 0;var i=h(n(96688)),o=h(n(91198)),a=n(35922),r=h(n(91500)),s=h(n(32511)),l=n(62060),u=n(27728),d=n(98140),c=n(97205);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e,t,n,i){return i>0?o.default.dateInRange(e,t,new Date(n.getTime()-1)):o.default.dateInRange(e,n,t,"date")};t.isDateInRange=f,t.setOptionHour=function(e,t){var n=new Date(e);return(0,a.isDefined)(t)?(n.setHours(t,t%1*60,0,0),n):n},t.getViewStartByOptions=function(e,t,n,i){if(!e)return new Date(t);for(var a=o.default.trimTime(i),r=a.getTime()<=t.getTime()?1:-1,s=new Date(a.getTime()+n*r);!f(t,a,s,r);)a=s,s=new Date(a.getTime()+n*r);return r>0?a:s},t.getCalculatedFirstDayOfWeek=function(e){return(0,a.isDefined)(e)?e:r.default.firstDayOfWeekIndex()},t.calculateViewStartDate=function(e){return e},t.calculateCellIndex=function(e,t,n){return t*n+e},t.getStartViewDateWithoutDST=function(e,t){var n=s.default.getDateWithoutTimezoneChange(e);return n.setHours(t),n},t.getHeaderCellText=function(e,t,n,i,o){var a=i(e,t,o);return r.default.format(a,n)},t.validateDayHours=function(e,t){if(e>=t)throw i.default.Error("E1058")},t.getStartViewDateTimeOffset=function(e,t){var n=Math.floor(t);return s.default.isTimezoneChangeInDate(e)&&n!==e.getHours()?o.default.dateToMilliseconds("hour"):0};var p=function(e){return r.default.getDayNames("abbreviated")[e.getDay()]};t.formatWeekday=p,t.formatWeekdayAndDay=function(e){return"".concat(p(e)," ").concat(r.default.format(e,"day"))},t.getToday=function(e,t){var n=null!=e?e:new Date;return(null==t?void 0:t.createDate(n,{path:"toGrid"}))||n},t.getVerticalGroupCountClass=function(e){switch(null==e?void 0:e.length){case 1:return l.VERTICAL_GROUP_COUNT_CLASSES[0];case 2:return l.VERTICAL_GROUP_COUNT_CLASSES[1];case 3:return l.VERTICAL_GROUP_COUNT_CLASSES[2];default:return}},t.isDateAndTimeView=function(e){return e!==u.VIEWS.TIMELINE_MONTH&&e!==u.VIEWS.MONTH},t.isSupportMultiDayAppointments=function(e){return[u.VIEWS.TIMELINE_DAY,u.VIEWS.TIMELINE_WEEK,u.VIEWS.TIMELINE_WORK_WEEK,u.VIEWS.TIMELINE_MONTH].includes(e)},t.getHorizontalGroupCount=function(e,t){var n=(0,d.getGroupCount)(e)||1;return(0,c.isVerticalGroupingApplied)(e,t)?1:n},t.calculateIsGroupedAllDayPanel=function(e,t,n){return(0,c.isVerticalGroupingApplied)(e,t)&&n};var g=function(e,t){return t-e};t.calculateDayDuration=g,t.isHorizontalView=function(e){switch(e){case u.VIEWS.TIMELINE_DAY:case u.VIEWS.TIMELINE_WEEK:case u.VIEWS.TIMELINE_WORK_WEEK:case u.VIEWS.TIMELINE_MONTH:case u.VIEWS.MONTH:return!0;default:return!1}};var m=function(e){return e[e.length-1].length};t.getTotalCellCountByCompleteData=m;var _=function(e){return e.length};t.getTotalRowCountByCompleteData=_,t.getDisplayedCellCount=function(e,t){return null!=e?e:m(t)},t.getDisplayedRowCount=function(e,t){return null!=e?e:_(t)},t.getCellDuration=function(e,t,n,i){switch(e){case"month":return 36e5*g(t,n);case"timelineMonth":return o.default.dateToMilliseconds("day");default:return 36e5*i}}},58824:function(e,t,n){t.calculateStartViewDate=void 0;var i=n(45985);t.calculateStartViewDate=function(e,t,n,o){var a=(0,i.getViewStartByOptions)(n,e,o,n);return(0,i.setOptionHour)(a,t)}},19097:function(e,t,n){t.isFirstCellInMonthWithIntervalCount=t.getViewStartByOptions=t.getCellText=t.calculateStartViewDate=t.calculateCellIndex=void 0;var i=r(n(91198)),o=r(n(91500)),a=n(45985);function r(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,n,i){if(!e)return new Date(t);for(var o=new Date(i),r=new Date(i),s=o.getTime()<=t.getTime()?1:-1,l=new Date(new Date(r.setMonth(r.getMonth()+s*n)));!(0,a.isDateInRange)(t,o,l,s);)o=new Date(l),s>0&&o.setDate(1),l=new Date(new Date(l.setMonth(l.getMonth()+s*n)));return s>0?o:l};t.getViewStartByOptions=s,t.calculateStartViewDate=function(e,t,n,o,r){var l=s(n,e,o,i.default.getFirstMonthDate(n)),u=i.default.getFirstMonthDate(l),d=(0,a.getCalculatedFirstDayOfWeek)(r),c=i.default.getFirstWeekDate(u,d);return(0,a.setOptionHour)(c,t)},t.calculateCellIndex=function(e,t,n,i){return e*i+t};var l=function(e,t){return 1===e.getDate()&&t>1};t.isFirstCellInMonthWithIntervalCount=l,t.getCellText=function(e,t){return l(e,t)?[o.default.getMonthNames("abbreviated")[e.getMonth()],o.default.format(e,"day")].join(" "):o.default.format(e,"dd")}},75481:function(e,t,n){t.calculateStartViewDate=void 0;var i,o=(i=n(91198))&&i.__esModule?i:{default:i},a=n(45985),r=n(19097);t.calculateStartViewDate=function(e,t,n,i){var s=o.default.getFirstMonthDate((0,r.getViewStartByOptions)(n,e,i,o.default.getFirstMonthDate(n)));return(0,a.setOptionHour)(s,t)}},92956:function(e,t,n){t.getDateForHeaderText=void 0;var i,o=(i=n(32511))&&i.__esModule?i:{default:i},a=n(45985);t.getDateForHeaderText=function(e,t,n){if(!o.default.isTimezoneChangeInDate(t))return t;var i=n.cellCountInDay,r=n.interval,s=n.startDayHour,l=n.startViewDate,u=(0,a.getStartViewDateWithoutDST)(l,s),d=e%i;return u.setTime(u.getTime()+d*r),u}},34279:function(e,t,n){t.getValidStartDate=t.getTimePanelCellText=t.getIntervalDuration=t.calculateViewStartDate=t.calculateStartViewDate=void 0;var i=s(n(91198)),o=s(n(91500)),a=n(45985),r=s(n(32511));function s(e){return e&&e.__esModule?e:{default:e}}t.getIntervalDuration=function(e){return 7*i.default.dateToMilliseconds("day")*e};var l=function(e,t){return e?i.default.getFirstWeekDate(e,t):void 0};t.getValidStartDate=l,t.calculateStartViewDate=function(e,t,n,o,r){var s=(0,a.getCalculatedFirstDayOfWeek)(r),u=(0,a.getViewStartByOptions)(n,e,o,l(n,s)),d=i.default.getFirstWeekDate(u,s);return(0,a.setOptionHour)(d,t)},t.calculateViewStartDate=function(e,t){var n=null!=t?t:o.default.firstDayOfWeekIndex();return i.default.getFirstWeekDate(e,n)},t.getTimePanelCellText=function(e,t,n,i,s){if(e%2==0){var l=function(e,t,n,i,o){if(!r.default.isTimezoneChangeInDate(t))return t;var s=r.default.getDateWithoutTimezoneChange(n),l=new Date(s),u=Math.round(i),d=(0,a.getStartViewDateTimeOffset)(n,o);return l.setMilliseconds(l.getMilliseconds()+u*e-d),l}(e,t,n,i,s);return o.default.format(l,"shorttime")}return""}},83866:function(e,t,n){t.isDataOnWeekend=t.getWeekendsCount=t.calculateStartViewDate=void 0;var i,o=(i=n(91198))&&i.__esModule?i:{default:i},a=n(45985),r=n(34279);t.isDataOnWeekend=function(e){var t=e.getDay();return 6===t||0===t},t.getWeekendsCount=function(e){return 2*Math.floor(e/7)},t.calculateStartViewDate=function(e,t,n,i,s){var l=(0,a.getViewStartByOptions)(n,e,i,(0,r.getValidStartDate)(n,s)),u=o.default.getFirstWeekDate(l,s),d=o.default.normalizeDateByWeek(u,l);return(0,a.setOptionHour)(d,t)}},35064:function(e,t,n){t.viewFunction=t.CellBaseProps=t.CellBase=void 0;var i=n(55285),o=n(44105),a=n(97205),r=["allDay","ariaLabel","children","className","contentTemplate","contentTemplateProps","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text"];function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var d=function(e){var t=e.props.contentTemplate;return(0,i.createVNode)(1,"td",e.classes,[!e.props.contentTemplate&&e.props.children,e.props.contentTemplate&&t(u({},e.props.contentTemplateProps))],0,{"aria-label":e.props.ariaLabel})};t.viewFunction=d;var c=Object.defineProperties({className:"",isFirstGroupCell:!1,isLastGroupCell:!1,allDay:!1,text:"",index:0},{startDate:{get:function(){return new Date},configurable:!0,enumerable:!0},endDate:{get:function(){return new Date},configurable:!0,enumerable:!0},contentTemplateProps:{get:function(){return{data:{},index:0}},configurable:!0,enumerable:!0}});t.CellBaseProps=c;var h=function(e){var t,n,o,c;function h(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=h).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),h.prototype.render=function(){var e,t=this.props;return d({props:u({},t,{contentTemplate:(e=t.contentTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,u({},t)))}:e))}),classes:this.classes,restAttributes:this.restAttributes})},o=h,(c=[{key:"classes",get:function(){var e=this.props,t=e.className,n=e.isFirstGroupCell,i=e.isLastGroupCell;return(0,a.getGroupCellClasses)(n,i,t)}},{key:"restAttributes",get:function(){var e=this.props;return e.allDay,e.ariaLabel,e.children,e.className,e.contentTemplate,e.contentTemplateProps,e.endDate,e.groupIndex,e.groups,e.index,e.isFirstGroupCell,e.isLastGroupCell,e.startDate,e.text,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,r)}}])&&s(o.prototype,c),h}(o.BaseInfernoComponent);t.CellBase=h,h.defaultProps=c},50307:function(e,t,n){t.viewFunction=t.AllDayPanelCell=void 0;var i=n(55285),o=n(44105),a=n(51430),r=["allDay","ariaLabel","children","className","contentTemplate","contentTemplateProps","dataCellTemplate","endDate","firstDayOfMonth","groupIndex","groups","index","isFirstGroupCell","isFocused","isLastGroupCell","isSelected","otherMonth","startDate","text","today"];function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var d=function(e){var t=e.props,n=t.className,o=t.dataCellTemplate,r=t.endDate,s=t.groupIndex,l=t.groups,u=t.index,d=t.isFirstGroupCell,c=t.isFocused,h=t.isLastGroupCell,f=t.isSelected,p=t.startDate;return(0,i.createComponentVNode)(2,a.DateTableCellBase,{className:"dx-scheduler-all-day-table-cell ".concat(n),startDate:p,endDate:r,groups:l,groupIndex:s,allDay:!0,isFirstGroupCell:d,isLastGroupCell:h,index:u,dataCellTemplate:o,isSelected:f,isFocused:c})};t.viewFunction=d;var c=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,u({},t)))}:e)},h=function(e){var t,n,i,o;function a(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),a.prototype.render=function(){var e=this.props;return d({props:u({},e,{dataCellTemplate:c(e.dataCellTemplate),contentTemplate:c(e.contentTemplate)}),restAttributes:this.restAttributes})},i=a,(o=[{key:"restAttributes",get:function(){var e=this.props;return e.allDay,e.ariaLabel,e.children,e.className,e.contentTemplate,e.contentTemplateProps,e.dataCellTemplate,e.endDate,e.firstDayOfMonth,e.groupIndex,e.groups,e.index,e.isFirstGroupCell,e.isFocused,e.isLastGroupCell,e.isSelected,e.otherMonth,e.startDate,e.text,e.today,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,r)}}])&&s(i.prototype,o),a}(o.BaseInfernoComponent);t.AllDayPanelCell=h,h.defaultProps=a.DateTableCellBaseProps},36023:function(e,t,n){t.default=void 0;var i,o=(i=n(99393))&&i.__esModule?i:{default:i},a=n(15281),r=n(88501);function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n,i,o;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),i=a,(o=[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[],templates:["dataCellTemplate"],props:["className","viewData","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","bottomVirtualRowHeight","addDateTableClass","addVerticalSizesClassToRows","width","dataCellTemplate"]}}},{key:"_viewComponent",get:function(){return r.AllDayPanelLayout}}])&&s(i.prototype,o),a}(a.DateTable);t.default=u,(0,o.default)("dxAllDayPanelLayout",u),e.exports=t.default,e.exports.default=t.default},88501:function(e,t,n){t.viewFunction=t.AllDayPanelLayoutProps=t.AllDayPanelLayout=void 0;var i=n(55285),o=n(44105),a=n(48868),r=n(48713),s=n(71604),l=n(8936),u=["addDateTableClass","addVerticalSizesClassToRows","allDayAppointments","bottomVirtualRowHeight","className","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","tableRef","topVirtualRowHeight","viewData","width"];function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var f=function(e){var t=e.allDayPanelData,n=e.emptyTableHeight,o=e.props,s=o.allDayAppointments,l=o.dataCellTemplate,u=o.tableRef,d=o.viewData,c=o.width;return(0,i.createVNode)(1,"div","dx-scheduler-all-day-panel",[s,(0,i.createComponentVNode)(2,a.Table,{className:"dx-scheduler-all-day-table",height:n,width:c,tableRef:u,children:(0,i.createComponentVNode)(2,r.AllDayPanelTableBody,{viewData:t,leftVirtualCellWidth:d.leftVirtualCellWidth,rightVirtualCellWidth:d.rightVirtualCellWidth,leftVirtualCellCount:d.leftVirtualCellCount,rightVirtualCellCount:d.rightVirtualCellCount,dataCellTemplate:l})})],0)};t.viewFunction=f;var p=Object.create(Object.prototype,h(Object.getOwnPropertyDescriptors(s.LayoutProps),Object.getOwnPropertyDescriptors({className:""})));t.AllDayPanelLayoutProps=p;var g=function(e){var t,n;function a(t){var n;return(n=e.call(this,t)||this).state={},n.__getterCache={},n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var r,s,p=a.prototype;return p.createEffects=function(){return[(0,o.createReRenderEffect)()]},p.componentWillUpdate=function(t,n,i){e.prototype.componentWillUpdate.call(this),this.props.viewData!==t.viewData&&(this.__getterCache.allDayPanelData=void 0)},p.render=function(){var e,t=this.props;return f({props:h({},t,{dataCellTemplate:(e=t.dataCellTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,h({},t)))}:e))}),allDayPanelData:this.allDayPanelData,emptyTableHeight:this.emptyTableHeight,restAttributes:this.restAttributes})},r=a,(s=[{key:"allDayPanelData",get:function(){return void 0!==this.__getterCache.allDayPanelData?this.__getterCache.allDayPanelData:this.__getterCache.allDayPanelData=this.props.viewData.groupedData[0].allDayPanel}},{key:"emptyTableHeight",get:function(){return this.allDayPanelData?void 0:l.DefaultSizes.allDayPanelHeight}},{key:"restAttributes",get:function(){var e=this.props;return e.addDateTableClass,e.addVerticalSizesClassToRows,e.allDayAppointments,e.bottomVirtualRowHeight,e.className,e.dataCellTemplate,e.groupOrientation,e.leftVirtualCellWidth,e.rightVirtualCellWidth,e.tableRef,e.topVirtualRowHeight,e.viewData,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u)}}])&&d(r.prototype,s),a}(o.InfernoWrapperComponent);t.AllDayPanelLayout=g,g.defaultProps=p},48713:function(e,t,n){t.viewFunction=t.AllDayPanelTableBodyProps=t.AllDayPanelTableBody=void 0;var i=n(55285),o=n(44105),a=n(14364),r=n(50307),s=n(86237),l=["className","dataCellTemplate","isVerticalGroupOrientation","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","viewData"];function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var h=function(e){return(0,i.createComponentVNode)(2,a.Row,{leftVirtualCellWidth:e.props.leftVirtualCellWidth,rightVirtualCellWidth:e.props.rightVirtualCellWidth,leftVirtualCellCount:e.props.leftVirtualCellCount,rightVirtualCellCount:e.props.rightVirtualCellCount,className:e.classes,children:e.props.viewData.map((function(t){var n=t.endDate,o=t.groupIndex,a=t.groups,s=t.index,l=t.isFirstGroupCell,u=t.isFocused,d=t.isLastGroupCell,c=t.isSelected,h=t.key,f=t.startDate;return(0,i.createComponentVNode)(2,r.AllDayPanelCell,{isFirstGroupCell:!e.props.isVerticalGroupOrientation&&l,isLastGroupCell:!e.props.isVerticalGroupOrientation&&d,startDate:f,endDate:n,groups:a,groupIndex:o,index:s,dataCellTemplate:e.props.dataCellTemplate,isSelected:c,isFocused:u},h)}))})};t.viewFunction=h;var f=Object.defineProperties({isVerticalGroupOrientation:!1,className:"",leftVirtualCellWidth:0,rightVirtualCellWidth:0},{viewData:{get:function(){return[]},configurable:!0,enumerable:!0}});t.AllDayPanelTableBodyProps=f;var p=function(e){var t,n,o,a;function r(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n),r.prototype.render=function(){var e,t=this.props;return h({props:c({},t,{dataCellTemplate:(e=t.dataCellTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,c({},t)))}:e))}),classes:this.classes,restAttributes:this.restAttributes})},o=r,(a=[{key:"classes",get:function(){var e,t,n,i=this.props.className;return(0,s.combineClasses)((n=!!i,(t=i)in(e={"dx-scheduler-all-day-table-row":!0})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e))}},{key:"restAttributes",get:function(){var e=this.props;return e.className,e.dataCellTemplate,e.isVerticalGroupOrientation,e.leftVirtualCellCount,e.leftVirtualCellWidth,e.rightVirtualCellCount,e.rightVirtualCellWidth,e.viewData,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l)}}])&&u(o.prototype,a),r}(o.BaseInfernoComponent);t.AllDayPanelTableBody=p,p.defaultProps=f},2931:function(e,t,n){t.default=void 0;var i=r(n(99393)),o=r(n(27135)),a=n(7149);function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n,i,o;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),i=r,(o=[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[],templates:[],props:[]}}},{key:"_viewComponent",get:function(){return a.AllDayPanelTitle}}])&&s(i.prototype,o),r}(o.default);t.default=u,(0,i.default)("dxAllDayPanelTitle",u),e.exports=t.default,e.exports.default=t.default},7149:function(e,t,n){t.viewFunction=t.AllDayPanelTitleProps=t.AllDayPanelTitle=void 0;var i,o=n(55285),a=n(44105),r=(i=n(28109))&&i.__esModule?i:{default:i};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){return(0,o.createVNode)(1,"div","dx-scheduler-all-day-title",e.text,0)};t.viewFunction=d;var c={};t.AllDayPanelTitleProps=c;var h=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var o,c,h=i.prototype;return h.createEffects=function(){return[(0,a.createReRenderEffect)()]},h.render=function(){var e=this.props;return d({props:s({},e),text:this.text,restAttributes:this.restAttributes})},o=i,(c=[{key:"text",get:function(){return r.default.format("dxScheduler-allDay")}},{key:"restAttributes",get:function(){return s({},this.props)}}])&&l(o.prototype,c),i}(a.InfernoWrapperComponent);t.AllDayPanelTitle=h,h.defaultProps=c},51430:function(e,t,n){t.viewFunction=t.DateTableCellBaseProps=t.DateTableCellBase=void 0;var i=n(55285),o=n(44105),a=n(35064),r=n(86237),s=["allDay","ariaLabel","children","className","contentTemplate","contentTemplateProps","dataCellTemplate","endDate","firstDayOfMonth","groupIndex","groups","index","isFirstGroupCell","isFocused","isLastGroupCell","isSelected","otherMonth","startDate","text","today"];function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var c=function(e){var t=e.ariaLabel,n=e.classes,o=e.dataCellTemplateProps,r=e.props,s=r.children,l=r.dataCellTemplate,u=r.isFirstGroupCell,d=r.isLastGroupCell;return(0,i.createComponentVNode)(2,a.CellBase,{isFirstGroupCell:u,isLastGroupCell:d,contentTemplate:l,contentTemplateProps:o,className:n,ariaLabel:t,children:s})};t.viewFunction=c;var h=Object.create(Object.prototype,d(Object.getOwnPropertyDescriptors(a.CellBaseProps),Object.getOwnPropertyDescriptors({otherMonth:!1,today:!1,firstDayOfMonth:!1,isSelected:!1,isFocused:!1})));t.DateTableCellBaseProps=h;var f=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,d({},t)))}:e)},p=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n.__getterCache={},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var o,a,h=i.prototype;return h.componentWillUpdate=function(e,t,n){this.props.allDay===e.allDay&&this.props.contentTemplateProps===e.contentTemplateProps&&this.props.endDate===e.endDate&&this.props.groupIndex===e.groupIndex&&this.props.groups===e.groups&&this.props.index===e.index&&this.props.startDate===e.startDate||(this.__getterCache.dataCellTemplateProps=void 0)},h.render=function(){var e=this.props;return c({props:d({},e,{dataCellTemplate:f(e.dataCellTemplate),contentTemplate:f(e.contentTemplate)}),classes:this.classes,dataCellTemplateProps:this.dataCellTemplateProps,ariaLabel:this.ariaLabel,restAttributes:this.restAttributes})},o=i,(a=[{key:"classes",get:function(){var e,t,n=this.props,i=n.allDay,o=n.className,a=n.isFocused,s=n.isSelected;return(0,r.combineClasses)((!0,(t=o)in(e={"dx-scheduler-cell-sizes-horizontal":!0,"dx-scheduler-cell-sizes-vertical":!i,"dx-scheduler-date-table-cell":!i,"dx-state-focused":s,"dx-scheduler-focused-cell":a})?Object.defineProperty(e,t,{value:!0,enumerable:!0,configurable:!0,writable:!0}):e[t]=!0,e))}},{key:"dataCellTemplateProps",get:function(){var e,t,n,i,o,a,r;return void 0!==this.__getterCache.dataCellTemplateProps?this.__getterCache.dataCellTemplateProps:this.__getterCache.dataCellTemplateProps=(t=(e=this.props).allDay,n=e.contentTemplateProps,i=e.endDate,o=e.groupIndex,a=e.groups,r=e.index,{data:d({startDate:e.startDate,endDate:i,groups:a,groupIndex:a?o:void 0,text:"",allDay:!!t||void 0},n.data),index:r})}},{key:"ariaLabel",get:function(){return this.props.isSelected?"Add appointment":void 0}},{key:"restAttributes",get:function(){var e=this.props;return e.allDay,e.ariaLabel,e.children,e.className,e.contentTemplate,e.contentTemplateProps,e.dataCellTemplate,e.endDate,e.firstDayOfMonth,e.groupIndex,e.groups,e.index,e.isFirstGroupCell,e.isFocused,e.isLastGroupCell,e.isSelected,e.otherMonth,e.startDate,e.text,e.today,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s)}}])&&l(o.prototype,a),i}(o.BaseInfernoComponent);t.DateTableCellBase=p,p.defaultProps=h},40181:function(e,t,n){t.default=void 0;var i,o=(i=n(99393))&&i.__esModule?i:{default:i},a=n(15281),r=n(96941);function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n,i,o;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),i=a,(o=[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[],templates:["cellTemplate","dataCellTemplate"],props:["cellTemplate","viewData","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","bottomVirtualRowHeight","addDateTableClass","addVerticalSizesClassToRows","width","dataCellTemplate"]}}},{key:"_viewComponent",get:function(){return r.DateTableLayoutBase}}])&&s(i.prototype,o),a}(a.DateTable);t.default=u,(0,o.default)("dxDateTableLayoutBase",u),e.exports=t.default,e.exports.default=t.default},96941:function(e,t,n){t.viewFunction=t.DateTableLayoutProps=t.DateTableLayoutBase=void 0;var i=n(55285),o=n(44105),a=n(48868),r=n(13552),s=n(71604),l=n(51430),u=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","cellTemplate","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","tableRef","topVirtualRowHeight","viewData","width"];function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var f=function(e){var t=e.bottomVirtualRowHeight,n=e.classes,o=e.leftVirtualCellWidth,s=e.props,l=s.addVerticalSizesClassToRows,u=s.cellTemplate,d=s.dataCellTemplate,c=s.groupOrientation,f=s.tableRef,p=s.viewData,g=s.width,m=e.restAttributes,_=e.rightVirtualCellWidth,v=e.topVirtualRowHeight,y=e.virtualCellsCount;return(0,i.normalizeProps)((0,i.createComponentVNode)(2,a.Table,h({},m,{tableRef:f,topVirtualRowHeight:v,bottomVirtualRowHeight:t,leftVirtualCellWidth:o,rightVirtualCellWidth:_,leftVirtualCellCount:p.leftVirtualCellCount,rightVirtualCellCount:p.rightVirtualCellCount,virtualCellsCount:y,className:n,width:g,children:(0,i.createComponentVNode)(2,r.DateTableBody,{cellTemplate:u,viewData:p,dataCellTemplate:d,leftVirtualCellWidth:o,rightVirtualCellWidth:_,groupOrientation:c,addVerticalSizesClassToRows:l})})))};t.viewFunction=f;var p=Object.create(Object.prototype,h(Object.getOwnPropertyDescriptors(s.LayoutProps),Object.getOwnPropertyDescriptors({cellTemplate:l.DateTableCellBase})));t.DateTableLayoutProps=p;var g=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,h({},t)))}:e)},m=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var a,r,s=i.prototype;return s.createEffects=function(){return[(0,o.createReRenderEffect)()]},s.render=function(){var e=this.props;return f({props:h({},e,{cellTemplate:g(e.cellTemplate),dataCellTemplate:g(e.dataCellTemplate)}),classes:this.classes,topVirtualRowHeight:this.topVirtualRowHeight,bottomVirtualRowHeight:this.bottomVirtualRowHeight,leftVirtualCellWidth:this.leftVirtualCellWidth,rightVirtualCellWidth:this.rightVirtualCellWidth,virtualCellsCount:this.virtualCellsCount,restAttributes:this.restAttributes})},a=i,(r=[{key:"classes",get:function(){return this.props.addDateTableClass?"dx-scheduler-date-table":void 0}},{key:"topVirtualRowHeight",get:function(){var e;return null!==(e=this.props.viewData.topVirtualRowHeight)&&void 0!==e?e:0}},{key:"bottomVirtualRowHeight",get:function(){var e;return null!==(e=this.props.viewData.bottomVirtualRowHeight)&&void 0!==e?e:0}},{key:"leftVirtualCellWidth",get:function(){var e;return null!==(e=this.props.viewData.leftVirtualCellWidth)&&void 0!==e?e:0}},{key:"rightVirtualCellWidth",get:function(){var e;return null!==(e=this.props.viewData.rightVirtualCellWidth)&&void 0!==e?e:0}},{key:"virtualCellsCount",get:function(){return this.props.viewData.groupedData[0].dateTable[0].length}},{key:"restAttributes",get:function(){var e=this.props;return e.addDateTableClass,e.addVerticalSizesClassToRows,e.bottomVirtualRowHeight,e.cellTemplate,e.dataCellTemplate,e.groupOrientation,e.leftVirtualCellWidth,e.rightVirtualCellWidth,e.tableRef,e.topVirtualRowHeight,e.viewData,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u)}}])&&d(a.prototype,r),i}(o.InfernoWrapperComponent);t.DateTableLayoutBase=m,m.defaultProps=p},13552:function(e,t,n){t.viewFunction=t.DateTableBodyProps=t.DateTableBody=void 0;var i=n(55285),o=n(44105),a=n(14364),r=n(97205),s=n(48713),l=n(71604),u=n(51430),d=n(86237),c=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","cellTemplate","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","viewData","width"];function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var g=function(e){var t=e.props,n=t.cellTemplate,o=t.dataCellTemplate,l=t.groupOrientation,u=t.viewData,d=e.rowClasses;return(0,i.createFragment)(u.groupedData.map((function(e,t){var c=e.allDayPanel,h=e.dateTable,f=e.groupIndex;return(0,i.createFragment)([(0,r.getIsGroupedAllDayPanel)(u,t)&&(0,i.createComponentVNode)(2,s.AllDayPanelTableBody,{viewData:c,dataCellTemplate:o,isVerticalGroupOrientation:!0,leftVirtualCellWidth:u.leftVirtualCellWidth,rightVirtualCellWidth:u.rightVirtualCellWidth,leftVirtualCellCount:u.leftVirtualCellCount,rightVirtualCellCount:u.rightVirtualCellCount}),h.map((function(e){return(0,i.createComponentVNode)(2,a.Row,{className:d,leftVirtualCellWidth:u.leftVirtualCellWidth,rightVirtualCellWidth:u.rightVirtualCellWidth,leftVirtualCellCount:u.leftVirtualCellCount,rightVirtualCellCount:u.rightVirtualCellCount,children:e.map((function(e){var t=e.endDate,i=e.firstDayOfMonth,a=e.groupIndex,r=e.groups,s=e.index,l=e.isFirstGroupCell,u=e.isFocused,d=e.isLastGroupCell,c=e.isSelected,h=e.key,f=e.otherMonth,p=e.startDate,g=e.text,m=e.today;return n({isFirstGroupCell:l,isLastGroupCell:d,startDate:p,endDate:t,groups:r,groupIndex:a,index:s,dataCellTemplate:o,key:h,text:g,today:m,otherMonth:f,firstDayOfMonth:i,isSelected:c,isFocused:u})}))},e[0].key-u.leftVirtualCellCount)}))],0,(0,r.getKeyByGroup)(f,l))})),0)};t.viewFunction=g;var m=Object.create(Object.prototype,p(Object.getOwnPropertyDescriptors(l.LayoutProps),Object.getOwnPropertyDescriptors({cellTemplate:u.DateTableCellBase})));t.DateTableBodyProps=m;var _=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,p({},t)))}:e)},v=function(e){var t,n,i,o;function a(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n),a.prototype.render=function(){var e=this.props;return g({props:p({},e,{cellTemplate:_(e.cellTemplate),dataCellTemplate:_(e.dataCellTemplate)}),rowClasses:this.rowClasses,restAttributes:this.restAttributes})},i=a,(o=[{key:"rowClasses",get:function(){var e=this.props.addVerticalSizesClassToRows;return(0,d.combineClasses)({"dx-scheduler-date-table-row":!0,"dx-scheduler-cell-sizes-vertical":e})}},{key:"restAttributes",get:function(){var e=this.props;return e.addDateTableClass,e.addVerticalSizesClassToRows,e.bottomVirtualRowHeight,e.cellTemplate,e.dataCellTemplate,e.groupOrientation,e.leftVirtualCellWidth,e.rightVirtualCellWidth,e.topVirtualRowHeight,e.viewData,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c)}}])&&h(i.prototype,o),a}(o.BaseInfernoComponent);t.DateTableBody=v,v.defaultProps=m},85869:function(e,t){t.GroupPanelCellProps=void 0;var n=Object.defineProperties({id:0,text:"",className:""},{data:{get:function(){return{id:0}},configurable:!0,enumerable:!0}});t.GroupPanelCellProps=n},11141:function(e,t,n){t.default=void 0;var i,o=(i=n(99393))&&i.__esModule?i:{default:i},a=n(55095),r=n(80954);function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n,i,o;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),i=a,(o=[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[],templates:["resourceCellTemplate"],props:["groups","groupOrientation","groupPanelData","groupByDate","height","className","resourceCellTemplate"]}}},{key:"_viewComponent",get:function(){return r.GroupPanel}}])&&s(i.prototype,o),a}(a.GroupPanelWrapper);t.default=u,(0,o.default)("dxGroupPanel",u),e.exports=t.default,e.exports.default=t.default},80954:function(e,t,n){t.viewFunction=t.GroupPanelProps=t.GroupPanel=void 0;var i=n(55285),o=n(44105),a=n(97205),r=n(18266),s=n(37598),l=n(26419),u=n(4799),d=["className","elementRef","groupByDate","groupOrientation","groupPanelData","groups","height","resourceCellTemplate"];function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var p=function(e){var t=e.layout,n=e.props,o=n.className,a=n.elementRef,r=n.groupPanelData,s=n.height,l=n.resourceCellTemplate,u=e.restAttributes;return(0,i.createComponentVNode)(2,t,{height:s,resourceCellTemplate:l,className:o,groupPanelData:r,elementRef:a,styles:u.style})};t.viewFunction=p;var g=Object.create(Object.prototype,f(Object.getOwnPropertyDescriptors(r.GroupPanelBaseProps),Object.getOwnPropertyDescriptors(Object.defineProperties({groupOrientation:u.VERTICAL_GROUP_ORIENTATION},{groups:{get:function(){return[]},configurable:!0,enumerable:!0}}))));t.GroupPanelProps=g;var m=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).state={},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var u,g,m=r.prototype;return m.createEffects=function(){return[(0,o.createReRenderEffect)()]},m.render=function(){var e,t=this.props;return p({props:f({},t,{resourceCellTemplate:(e=t.resourceCellTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,f({},t)))}:e))}),layout:this.layout,restAttributes:this.restAttributes})},u=r,(g=[{key:"layout",get:function(){var e=this.props,t=e.groupOrientation,n=e.groups;return(0,a.isVerticalGroupingApplied)(n,t)?s.GroupPanelVerticalLayout:l.GroupPanelHorizontalLayout}},{key:"restAttributes",get:function(){var e=this.props;return e.className,e.elementRef,e.groupByDate,e.groupOrientation,e.groupPanelData,e.groups,e.height,e.resourceCellTemplate,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d)}}])&&c(u.prototype,g),r}(o.InfernoWrapperComponent);t.GroupPanel=m,m.defaultProps=g},46833:function(e,t,n){t.GroupPanelLayoutProps=void 0;var i=n(18266).GroupPanelBaseProps;t.GroupPanelLayoutProps=i},18266:function(e,t){t.GroupPanelBaseProps=void 0;var n=Object.defineProperties({groupByDate:!1},{groupPanelData:{get:function(){return{groupPanelItems:[],baseColSpan:1}},configurable:!0,enumerable:!0}});t.GroupPanelBaseProps=n},40725:function(e,t,n){t.viewFunction=t.GroupPanelHorizontalCellProps=t.GroupPanelHorizontalCell=void 0;var i=n(55285),o=n(44105),a=n(86237),r=n(85869),s=["cellTemplate","className","colSpan","color","data","id","index","isFirstGroupCell","isLastGroupCell","text"];function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var c=function(e){var t=e.classes,n=e.props,o=n.cellTemplate,a=n.colSpan,r=n.color,s=n.data,l=n.id,u=n.index,d=n.text;return(0,i.createVNode)(1,"th",t,(0,i.createVNode)(1,"div","dx-scheduler-group-header-content",[!!o&&o({data:{data:s,id:l,color:r,text:d},index:u}),!o&&(0,i.createVNode)(1,"div",null,d,0)],0),2,{colSpan:a})};t.viewFunction=c;var h=Object.create(Object.prototype,d(Object.getOwnPropertyDescriptors(r.GroupPanelCellProps),Object.getOwnPropertyDescriptors({isFirstGroupCell:!1,isLastGroupCell:!1,colSpan:1})));t.GroupPanelHorizontalCellProps=h;var f=function(e){var t,n,o,r;function h(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=h).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n),h.prototype.render=function(){var e,t=this.props;return c({props:d({},t,{cellTemplate:(e=t.cellTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,d({},t)))}:e))}),classes:this.classes,restAttributes:this.restAttributes})},o=h,(r=[{key:"classes",get:function(){var e,t,n,i=this.props,o=i.className,r=i.isFirstGroupCell,s=i.isLastGroupCell;return(0,a.combineClasses)((n=!!o,(t=o)in(e={"dx-scheduler-group-header":!0,"dx-scheduler-first-group-cell":r,"dx-scheduler-last-group-cell":s})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e))}},{key:"restAttributes",get:function(){var e=this.props;return e.cellTemplate,e.className,e.colSpan,e.color,e.data,e.id,e.index,e.isFirstGroupCell,e.isLastGroupCell,e.text,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s)}}])&&l(o.prototype,r),h}(o.BaseInfernoComponent);t.GroupPanelHorizontalCell=f,f.defaultProps=h},26419:function(e,t,n){t.viewFunction=t.HorizontalGroupPanelLayoutProps=t.GroupPanelHorizontalLayout=void 0;var i=n(55285),o=n(44105),a=n(61991),r=n(46833),s=["className","elementRef","groupByDate","groupPanelData","height","resourceCellTemplate","styles"];function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var f=function(e){var t=e.groupPanelItems,n=e.props.resourceCellTemplate;return(0,i.createFragment)(t.map((function(e){return(0,i.createComponentVNode)(2,a.Row,{groupItems:e,cellTemplate:n},e[0].key)})),0)};t.viewFunction=f;var p=r.GroupPanelLayoutProps;t.HorizontalGroupPanelLayoutProps=p;var g=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).state={},n.__getterCache={},n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var a,r,u=o.prototype;return u.componentWillUpdate=function(e,t,n){this.props.groupPanelData!==e.groupPanelData&&(this.__getterCache.groupPanelItems=void 0)},u.render=function(){var e,t=this.props;return f({props:h({},t,{resourceCellTemplate:(e=t.resourceCellTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,h({},t)))}:e))}),groupPanelItems:this.groupPanelItems,restAttributes:this.restAttributes})},a=o,(r=[{key:"groupPanelItems",get:function(){var e,t,n,i;return void 0!==this.__getterCache.groupPanelItems?this.__getterCache.groupPanelItems:this.__getterCache.groupPanelItems=(e=this.props.groupPanelData,t=e.baseColSpan,n=e.groupPanelItems,i=n.reduceRight((function(e,i,o){var a=e,r=i.length,s=o===n.length-1?t:e[o+1],l=(o===n.length-1?r:n[o+1].length)/r;return a[o]=l*s,a}),l(new Array(n.length))),n.map((function(e,t){var n=i[t];return e.map((function(e){return h({},e,{colSpan:n})}))})))}},{key:"restAttributes",get:function(){var e=this.props;return e.className,e.elementRef,e.groupByDate,e.groupPanelData,e.height,e.resourceCellTemplate,e.styles,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s)}}])&&d(a.prototype,r),o}(o.BaseInfernoComponent);t.GroupPanelHorizontalLayout=g,g.defaultProps=p},61991:function(e,t,n){t.viewFunction=t.Row=void 0;var i=n(55285),o=n(44105),a=n(40725),r=n(5930),s=["cellTemplate","className","groupItems"];function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var c=function(e){var t=e.props,n=t.cellTemplate,o=t.className,r=t.groupItems;return(0,i.createVNode)(1,"tr","dx-scheduler-group-row ".concat(o),r.map((function(e,t){var o=e.colSpan,r=e.color,s=e.data,l=e.id,u=e.isFirstGroupCell,d=e.isLastGroupCell,c=e.key,h=e.text;return(0,i.createComponentVNode)(2,a.GroupPanelHorizontalCell,{text:h,id:l,data:s,index:t,color:r,colSpan:o,isFirstGroupCell:!!u,isLastGroupCell:!!d,cellTemplate:n},c)})),0)};t.viewFunction=c;var h=function(e){var t,n,o,a;function r(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n),r.prototype.render=function(){var e,t=this.props;return c({props:d({},t,{cellTemplate:(e=t.cellTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,d({},t)))}:e))}),restAttributes:this.restAttributes})},o=r,(a=[{key:"restAttributes",get:function(){var e=this.props;return e.cellTemplate,e.className,e.groupItems,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s)}}])&&l(o.prototype,a),r}(o.BaseInfernoComponent);t.Row=h,h.defaultProps=r.GroupPanelRowProps},5930:function(e,t){t.GroupPanelRowProps=void 0;var n=Object.defineProperties({className:""},{groupItems:{get:function(){return[]},configurable:!0,enumerable:!0}});t.GroupPanelRowProps=n},24914:function(e,t,n){t.viewFunction=t.GroupPanelVerticalCell=void 0;var i=n(55285),o=n(44105),a=n(85869),r=["cellTemplate","className","color","data","id","index","text"];function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var d=function(e){var t=e.props.cellTemplate;return(0,i.createVNode)(1,"div","dx-scheduler-group-header ".concat(e.props.className),[!!e.props.cellTemplate&&t({data:{data:e.props.data,id:e.props.id,color:e.props.color,text:e.props.text},index:e.props.index}),!e.props.cellTemplate&&(0,i.createVNode)(1,"div","dx-scheduler-group-header-content",e.props.text,0)],0)};t.viewFunction=d;var c=function(e){var t,n,o,a;function c(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),c.prototype.render=function(){var e,t=this.props;return d({props:u({},t,{cellTemplate:(e=t.cellTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,u({},t)))}:e))}),restAttributes:this.restAttributes})},o=c,(a=[{key:"restAttributes",get:function(){var e=this.props;return e.cellTemplate,e.className,e.color,e.data,e.id,e.index,e.text,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,r)}}])&&s(o.prototype,a),c}(o.BaseInfernoComponent);t.GroupPanelVerticalCell=c,c.defaultProps=a.GroupPanelCellProps},37598:function(e,t,n){t.viewFunction=t.VerticalGroupPanelLayoutProps=t.GroupPanelVerticalLayout=void 0;var i=n(55285),o=n(44105),a=n(36415),r=n(97205),s=n(46833),l=["className","elementRef","groupByDate","groupPanelData","height","resourceCellTemplate","styles"];function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var h=function(e){var t=e.props,n=t.className,r=t.elementRef,s=t.groupPanelData,l=t.resourceCellTemplate,u=e.style;return(0,i.createVNode)(1,"div",n,(0,i.createVNode)(1,"div","dx-scheduler-group-flex-container",s.groupPanelItems.map((function(e){return(0,i.createComponentVNode)(2,a.Row,{groupItems:e,cellTemplate:l},e[0].key)})),0),2,{style:(0,o.normalizeStyles)(u)},null,r)};t.viewFunction=h;var f=s.GroupPanelLayoutProps;t.VerticalGroupPanelLayoutProps=f;var p=function(e){var t,n,o,a;function s(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n),s.prototype.render=function(){var e,t=this.props;return h({props:c({},t,{resourceCellTemplate:(e=t.resourceCellTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,c({},t)))}:e))}),style:this.style,restAttributes:this.restAttributes})},o=s,(a=[{key:"style",get:function(){var e=this.props,t=e.height,n=e.styles;return(0,r.addHeightToStyle)(t,n)}},{key:"restAttributes",get:function(){var e=this.props;return e.className,e.elementRef,e.groupByDate,e.groupPanelData,e.height,e.resourceCellTemplate,e.styles,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l)}}])&&u(o.prototype,a),s}(o.BaseInfernoComponent);t.GroupPanelVerticalLayout=p,p.defaultProps=f},36415:function(e,t,n){t.viewFunction=t.Row=void 0;var i=n(55285),o=n(44105),a=n(24914),r=n(5930),s=["cellTemplate","className","groupItems"];function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var c=function(e){return(0,i.createVNode)(1,"div","dx-scheduler-group-row ".concat(e.props.className),e.props.groupItems.map((function(t,n){var o=t.color,r=t.data,s=t.id,l=t.key,u=t.text;return(0,i.createComponentVNode)(2,a.GroupPanelVerticalCell,{text:u,id:s,data:r,index:n,color:o,cellTemplate:e.props.cellTemplate},l)})),0)};t.viewFunction=c;var h=function(e){var t,n,o,a;function r(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n),r.prototype.render=function(){var e,t=this.props;return c({props:d({},t,{cellTemplate:(e=t.cellTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,d({},t)))}:e))}),restAttributes:this.restAttributes})},o=r,(a=[{key:"restAttributes",get:function(){var e=this.props;return e.cellTemplate,e.className,e.groupItems,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s)}}])&&l(o.prototype,a),r}(o.BaseInfernoComponent);t.Row=h,h.defaultProps=r.GroupPanelRowProps},11379:function(e,t,n){t.viewFunction=t.HeaderCell=void 0;var i=n(55285),o=n(44105),a=n(72923),r=["children","className","colSpan","styles"];function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t=e.props,n=t.children,a=t.className,r=t.colSpan,s=t.styles;return(0,i.createVNode)(1,"th",a,n,0,{style:(0,o.normalizeStyles)(s),colSpan:r})};t.viewFunction=d;var c=function(e){var t,n,i,o;function a(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n),a.prototype.render=function(){var e=this.props;return d({props:s({},e),restAttributes:this.restAttributes})},i=a,(o=[{key:"restAttributes",get:function(){var e=this.props;return e.children,e.className,e.colSpan,e.styles,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,r)}}])&&l(i.prototype,o),a}(o.BaseInfernoComponent);t.HeaderCell=c,c.defaultProps=a.CellProps},92366:function(e,t,n){t.viewFunction=t.DateHeaderCellProps=t.DateHeaderCell=void 0;var i=n(55285),o=n(44105),a=n(35064),r=n(86237),s=n(97205),l=["allDay","ariaLabel","children","className","colSpan","contentTemplate","contentTemplateProps","dateCellTemplate","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","isTimeCellTemplate","isWeekDayCell","startDate","text","timeCellTemplate","today"];function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var h=function(e){var t=e.classes,n=e.props,o=n.colSpan,a=n.dateCellTemplate,r=n.groupIndex,s=n.groups,l=n.index,u=n.isTimeCellTemplate,d=n.startDate,c=n.text,h=n.timeCellTemplate,f=e.useTemplate;return(0,i.createVNode)(1,"th",t,f?(0,i.createFragment)([u&&h&&h({data:{date:d,text:c,groups:s,groupIndex:r},index:l}),!u&&a&&a({data:{date:d,text:c,groups:s,groupIndex:r},index:l})],0):c,0,{colSpan:o,title:c})};t.viewFunction=h;var f=Object.create(Object.prototype,c(Object.getOwnPropertyDescriptors(a.CellBaseProps),Object.getOwnPropertyDescriptors({today:!1,colSpan:1,isWeekDayCell:!1,isTimeCellTemplate:!1})));t.DateHeaderCellProps=f;var p=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,c({},t)))}:e)},g=function(e){var t,n,i,o;function a(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n),a.prototype.render=function(){var e=this.props;return h({props:c({},e,{timeCellTemplate:p(e.timeCellTemplate),dateCellTemplate:p(e.dateCellTemplate),contentTemplate:p(e.contentTemplate)}),classes:this.classes,useTemplate:this.useTemplate,restAttributes:this.restAttributes})},i=a,(o=[{key:"classes",get:function(){var e,t,n,i=this.props,o=i.className,a=i.isFirstGroupCell,l=i.isLastGroupCell,u=i.isWeekDayCell,d=i.today,c=(0,r.combineClasses)((n=!!o,(t=o)in(e={"dx-scheduler-header-panel-cell":!0,"dx-scheduler-cell-sizes-horizontal":!0,"dx-scheduler-header-panel-current-time-cell":d,"dx-scheduler-header-panel-week-cell":u})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));return(0,s.getGroupCellClasses)(a,l,c)}},{key:"useTemplate",get:function(){var e=this.props,t=e.dateCellTemplate,n=e.isTimeCellTemplate,i=e.timeCellTemplate;return!n&&!!t||n&&!!i}},{key:"restAttributes",get:function(){var e=this.props;return e.allDay,e.ariaLabel,e.children,e.className,e.colSpan,e.contentTemplate,e.contentTemplateProps,e.dateCellTemplate,e.endDate,e.groupIndex,e.groups,e.index,e.isFirstGroupCell,e.isLastGroupCell,e.isTimeCellTemplate,e.isWeekDayCell,e.startDate,e.text,e.timeCellTemplate,e.today,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l)}}])&&u(i.prototype,o),a}(o.BaseInfernoComponent);t.DateHeaderCell=g,g.defaultProps=f},35878:function(e,t,n){t.viewFunction=t.DateHeaderLayoutProps=t.DateHeaderLayout=void 0;var i=n(55285),o=n(44105),a=n(14364),r=n(97205),s=n(92366),l=["dateCellTemplate","dateHeaderData","groupByDate","groupOrientation","groups","timeCellTemplate"];function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var h=function(e){var t=e.isHorizontalGrouping,n=e.props,o=n.dateCellTemplate,r=n.dateHeaderData,l=r.dataMap,u=r.leftVirtualCellCount,d=r.leftVirtualCellWidth,c=r.rightVirtualCellCount,h=r.rightVirtualCellWidth;return(0,i.createFragment)(l.map((function(e,n){return(0,i.createComponentVNode)(2,a.Row,{className:"dx-scheduler-header-row",leftVirtualCellWidth:d,leftVirtualCellCount:u,rightVirtualCellWidth:h,rightVirtualCellCount:c,isHeaderRow:!0,children:e.map((function(e){var n=e.colSpan,a=e.endDate,r=e.groupIndex,l=e.groups,u=e.index,d=e.isFirstGroupCell,c=e.isLastGroupCell,h=e.key,f=e.startDate,p=e.text,g=e.today;return(0,i.createComponentVNode)(2,s.DateHeaderCell,{startDate:f,endDate:a,groups:t?l:void 0,groupIndex:t?r:void 0,today:g,index:u,text:p,isFirstGroupCell:d,isLastGroupCell:c,dateCellTemplate:o,colSpan:n},h)}))},n.toString())})),0)};t.viewFunction=h;var f=Object.defineProperties({groupOrientation:"horizontal",groupByDate:!1},{groups:{get:function(){return[]},configurable:!0,enumerable:!0}});t.DateHeaderLayoutProps=f;var p=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,c({},t)))}:e)},g=function(e){var t,n,i,o;function a(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n),a.prototype.render=function(){var e=this.props;return h({props:c({},e,{dateCellTemplate:p(e.dateCellTemplate),timeCellTemplate:p(e.timeCellTemplate)}),isHorizontalGrouping:this.isHorizontalGrouping,restAttributes:this.restAttributes})},i=a,(o=[{key:"isHorizontalGrouping",get:function(){var e=this.props,t=e.groupByDate,n=e.groupOrientation,i=e.groups;return(0,r.isHorizontalGroupingApplied)(i,n)&&!t}},{key:"restAttributes",get:function(){var e=this.props;return e.dateCellTemplate,e.dateHeaderData,e.groupByDate,e.groupOrientation,e.groups,e.timeCellTemplate,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l)}}])&&u(i.prototype,o),a}(o.BaseInfernoComponent);t.DateHeaderLayout=g,g.defaultProps=f},32972:function(e,t,n){t.default=void 0;var i,o=(i=n(99393))&&i.__esModule?i:{default:i},a=n(86214),r=n(84011);function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n,i,o;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),i=a,(o=[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[],templates:["dateCellTemplate","timeCellTemplate","dateHeaderTemplate","resourceCellTemplate"],props:["dateHeaderData","isRenderDateHeader","dateCellTemplate","timeCellTemplate","dateHeaderTemplate","groups","groupOrientation","groupPanelData","groupByDate","height","className","resourceCellTemplate"]}}},{key:"_viewComponent",get:function(){return r.HeaderPanelLayout}}])&&s(i.prototype,o),a}(a.HeaderPanel);t.default=u,(0,o.default)("dxHeaderPanelLayout",u),e.exports=t.default,e.exports.default=t.default},84011:function(e,t,n){t.viewFunction=t.HeaderPanelLayoutProps=t.HeaderPanelLayout=void 0;var i=n(55285),o=n(44105),a=n(97205),r=n(80954),s=n(35878),l=["className","dateCellTemplate","dateHeaderData","dateHeaderTemplate","elementRef","groupByDate","groupOrientation","groupPanelData","groups","height","isRenderDateHeader","resourceCellTemplate","timeCellTemplate"];function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var h=function(e){var t=e.isHorizontalGrouping,n=e.props,o=n.dateCellTemplate,a=n.dateHeaderData,s=n.dateHeaderTemplate,l=n.groupByDate,u=n.groupOrientation,d=n.groupPanelData,c=n.groups,h=n.isRenderDateHeader,f=n.resourceCellTemplate,p=n.timeCellTemplate;return(0,i.createVNode)(1,"thead",null,[t&&!l&&(0,i.createComponentVNode)(2,r.GroupPanel,{groupPanelData:d,groups:c,groupByDate:l,groupOrientation:u,resourceCellTemplate:f}),h&&s({groupByDate:l,dateHeaderData:a,groupOrientation:u,groups:c,dateCellTemplate:o,timeCellTemplate:p}),l&&(0,i.createComponentVNode)(2,r.GroupPanel,{groupPanelData:d,groups:c,groupByDate:l,groupOrientation:u,resourceCellTemplate:f})],0)};t.viewFunction=h;var f=Object.create(Object.prototype,c(Object.getOwnPropertyDescriptors(r.GroupPanelProps),Object.getOwnPropertyDescriptors({isRenderDateHeader:!0,dateHeaderTemplate:s.DateHeaderLayout})));t.HeaderPanelLayoutProps=f;var p=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,c({},t)))}:e)},g=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n);var r,s,f=i.prototype;return f.createEffects=function(){return[(0,o.createReRenderEffect)()]},f.render=function(){var e=this.props;return h({props:c({},e,{dateCellTemplate:p(e.dateCellTemplate),timeCellTemplate:p(e.timeCellTemplate),dateHeaderTemplate:p(e.dateHeaderTemplate),resourceCellTemplate:p(e.resourceCellTemplate)}),isHorizontalGrouping:this.isHorizontalGrouping,restAttributes:this.restAttributes})},r=i,(s=[{key:"isHorizontalGrouping",get:function(){var e=this.props,t=e.groupOrientation,n=e.groups;return(0,a.isHorizontalGroupingApplied)(n,t)}},{key:"restAttributes",get:function(){var e=this.props;return e.className,e.dateCellTemplate,e.dateHeaderData,e.dateHeaderTemplate,e.elementRef,e.groupByDate,e.groupOrientation,e.groupPanelData,e.groups,e.height,e.isRenderDateHeader,e.resourceCellTemplate,e.timeCellTemplate,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l)}}])&&u(r.prototype,s),i}(o.InfernoWrapperComponent);t.HeaderPanelLayout=g,g.defaultProps=f},71604:function(e,t){t.LayoutProps=void 0;var n=Object.defineProperties({leftVirtualCellWidth:0,rightVirtualCellWidth:0,topVirtualRowHeight:0,bottomVirtualRowHeight:0,addDateTableClass:!0,addVerticalSizesClassToRows:!0},{viewData:{get:function(){return{groupedData:[],leftVirtualCellCount:0,rightVirtualCellCount:0,topVirtualRowCount:0,bottomVirtualRowCount:0}},configurable:!0,enumerable:!0}});t.LayoutProps=n},72923:function(e,t,n){t.viewFunction=t.OrdinaryCell=t.CellProps=void 0;var i=n(55285),o=n(44105),a=["children","className","colSpan","styles"];function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t=e.props,n=t.children,a=t.className,r=t.colSpan,s=t.styles;return(0,i.createVNode)(1,"td",a,n,0,{style:(0,o.normalizeStyles)(s),colSpan:r})};t.viewFunction=u;var d={};t.CellProps=d;var c=function(e){var t,n,i,o;function d(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=d).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),d.prototype.render=function(){var e=this.props;return u({props:r({},e),restAttributes:this.restAttributes})},i=d,(o=[{key:"restAttributes",get:function(){var e=this.props;return e.children,e.className,e.colSpan,e.styles,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a)}}])&&s(i.prototype,o),d}(o.BaseInfernoComponent);t.OrdinaryCell=c,c.defaultProps=d},14364:function(e,t,n){t.viewFunction=t.RowProps=t.Row=void 0;var i=n(55285),o=n(44105),a=n(87551),r=["children","className","isHeaderRow","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","styles"];function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t=e.hasLeftVirtualCell,n=e.hasRightVirtualCell,r=e.props,s=r.children,l=r.className,u=r.isHeaderRow,d=r.leftVirtualCellCount,c=r.leftVirtualCellWidth,h=r.rightVirtualCellCount,f=r.rightVirtualCellWidth,p=r.styles;return(0,i.createVNode)(1,"tr",l,[t&&(0,i.createComponentVNode)(2,a.VirtualCell,{width:c,colSpan:d,isHeaderCell:u}),s,n&&(0,i.createComponentVNode)(2,a.VirtualCell,{width:f,colSpan:h,isHeaderCell:u})],0,{style:(0,o.normalizeStyles)(p)})};t.viewFunction=d;var c={className:"",leftVirtualCellWidth:0,rightVirtualCellWidth:0,isHeaderRow:!1};t.RowProps=c;var h=function(e){var t,n,i,o;function a(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n),a.prototype.render=function(){var e=this.props;return d({props:s({},e),hasLeftVirtualCell:this.hasLeftVirtualCell,hasRightVirtualCell:this.hasRightVirtualCell,restAttributes:this.restAttributes})},i=a,(o=[{key:"hasLeftVirtualCell",get:function(){return!!this.props.leftVirtualCellCount}},{key:"hasRightVirtualCell",get:function(){return!!this.props.rightVirtualCellCount}},{key:"restAttributes",get:function(){var e=this.props;return e.children,e.className,e.isHeaderRow,e.leftVirtualCellCount,e.leftVirtualCellWidth,e.rightVirtualCellCount,e.rightVirtualCellWidth,e.styles,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,r)}}])&&l(i.prototype,o),a}(o.BaseInfernoComponent);t.Row=h,h.defaultProps=c},48868:function(e,t,n){t.viewFunction=t.TableProps=t.Table=void 0;var i=n(55285),o=n(44105),a=n(97205),r=n(4784),s=["bottomVirtualRowHeight","children","className","height","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","tableRef","topVirtualRowHeight","virtualCellsCount","width"];function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){var t=e.hasBottomVirtualRow,n=e.hasTopVirtualRow,a=e.props,s=a.bottomVirtualRowHeight,l=a.children,u=a.className,d=a.leftVirtualCellCount,c=a.leftVirtualCellWidth,h=a.rightVirtualCellCount,f=a.rightVirtualCellWidth,p=a.tableRef,g=a.topVirtualRowHeight,m=a.virtualCellsCount,_=e.style;return(0,i.createVNode)(1,"table",u,(0,i.createVNode)(1,"tbody",null,[n&&(0,i.createComponentVNode)(2,r.VirtualRow,{height:g,cellsCount:m,leftVirtualCellWidth:c,rightVirtualCellWidth:f,leftVirtualCellCount:d,rightVirtualCellCount:h}),l,t&&(0,i.createComponentVNode)(2,r.VirtualRow,{height:s,cellsCount:m,leftVirtualCellWidth:c,rightVirtualCellWidth:f,leftVirtualCellCount:d,rightVirtualCellCount:h})],0),2,{style:(0,o.normalizeStyles)(_)},null,p)};t.viewFunction=c;var h={className:"",topVirtualRowHeight:0,bottomVirtualRowHeight:0,leftVirtualCellWidth:0,rightVirtualCellWidth:0,virtualCellsCount:0};t.TableProps=h;var f=function(e){var t,n,o,r;function h(t){var n;return(n=e.call(this,t)||this).state={},n.elementRef=(0,i.createRef)(),n}return n=e,(t=h).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n),h.prototype.render=function(){var e=this.props;return c({props:l({},e),elementRef:this.elementRef,style:this.style,hasTopVirtualRow:this.hasTopVirtualRow,hasBottomVirtualRow:this.hasBottomVirtualRow,restAttributes:this.restAttributes})},o=h,(r=[{key:"style",get:function(){var e=this.props,t=e.height,n=e.width,i=this.restAttributes.style,o=(0,a.addHeightToStyle)(t,i);return(0,a.addWidthToStyle)(n,o)}},{key:"hasTopVirtualRow",get:function(){return!!this.props.topVirtualRowHeight}},{key:"hasBottomVirtualRow",get:function(){return!!this.props.bottomVirtualRowHeight}},{key:"restAttributes",get:function(){var e=this.props;return e.bottomVirtualRowHeight,e.children,e.className,e.height,e.leftVirtualCellCount,e.leftVirtualCellWidth,e.rightVirtualCellCount,e.rightVirtualCellWidth,e.tableRef,e.topVirtualRowHeight,e.virtualCellsCount,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s)}}])&&u(o.prototype,r),h}(o.BaseInfernoComponent);t.Table=f,f.defaultProps=h},37217:function(e,t,n){t.viewFunction=t.TimePanelCellProps=t.TimePanelCell=void 0;var i=n(55285),o=n(44105),a=n(35064),r=["allDay","ariaLabel","children","className","contentTemplate","contentTemplateProps","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text","timeCellTemplate"];function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var d=function(e){return(0,i.createComponentVNode)(2,a.CellBase,{isFirstGroupCell:e.props.isFirstGroupCell,isLastGroupCell:e.props.isLastGroupCell,contentTemplate:e.props.timeCellTemplate,contentTemplateProps:e.timeCellTemplateProps,className:"dx-scheduler-time-panel-cell dx-scheduler-cell-sizes-vertical ".concat(e.props.className),children:(0,i.createVNode)(1,"div",null,e.props.text,0)})};t.viewFunction=d;var c=a.CellBaseProps;t.TimePanelCellProps=c;var h=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,u({},t)))}:e)},f=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n.__getterCache={},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var o,a,c=i.prototype;return c.componentWillUpdate=function(e,t,n){this.props.groupIndex===e.groupIndex&&this.props.groups===e.groups&&this.props.index===e.index&&this.props.startDate===e.startDate&&this.props.text===e.text||(this.__getterCache.timeCellTemplateProps=void 0)},c.render=function(){var e=this.props;return d({props:u({},e,{timeCellTemplate:h(e.timeCellTemplate),contentTemplate:h(e.contentTemplate)}),timeCellTemplateProps:this.timeCellTemplateProps,restAttributes:this.restAttributes})},o=i,(a=[{key:"timeCellTemplateProps",get:function(){var e,t,n,i;return void 0!==this.__getterCache.timeCellTemplateProps?this.__getterCache.timeCellTemplateProps:this.__getterCache.timeCellTemplateProps=(t=(e=this.props).groupIndex,n=e.groups,i=e.index,{data:{date:e.startDate,groups:n,groupIndex:t,text:e.text},index:i})}},{key:"restAttributes",get:function(){var e=this.props;return e.allDay,e.ariaLabel,e.children,e.className,e.contentTemplate,e.contentTemplateProps,e.endDate,e.groupIndex,e.groups,e.index,e.isFirstGroupCell,e.isLastGroupCell,e.startDate,e.text,e.timeCellTemplate,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,r)}}])&&s(o.prototype,a),i}(o.BaseInfernoComponent);t.TimePanelCell=f,f.defaultProps=c},89687:function(e,t,n){t.default=void 0;var i,o=(i=n(99393))&&i.__esModule?i:{default:i},a=n(99503),r=n(41541);function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n,i,o;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),i=a,(o=[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[],templates:["timeCellTemplate"],props:["groupOrientation","timePanelData","timeCellTemplate"]}}},{key:"_viewComponent",get:function(){return r.TimePanelTableLayout}}])&&s(i.prototype,o),a}(a.TimePanel);t.default=u,(0,o.default)("dxTimePanelTableLayout",u),e.exports=t.default,e.exports.default=t.default},41541:function(e,t,n){t.viewFunction=t.TimePanelTableLayout=t.TimePanelLayoutProps=void 0;var i=n(55285),o=n(44105),a=n(14364),r=n(37217),s=n(35064),l=n(97205),u=n(48868),d=n(7149),c=["groupOrientation","tableRef","timeCellTemplate","timePanelData"];function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var g=function(e){var t=e.bottomVirtualRowHeight,n=e.props,o=n.groupOrientation,c=n.tableRef,h=n.timeCellTemplate,f=n.timePanelData,g=e.restAttributes,m=e.topVirtualRowHeight;return(0,i.normalizeProps)((0,i.createComponentVNode)(2,u.Table,p({},g,{topVirtualRowHeight:m,bottomVirtualRowHeight:t,virtualCellsCount:1,className:"dx-scheduler-time-panel",tableRef:c,children:f.groupedData.map((function(e,t){var n=e.dateTable,u=e.groupIndex;return(0,i.createFragment)([(0,l.getIsGroupedAllDayPanel)(f,t)&&(0,i.createComponentVNode)(2,a.Row,{children:(0,i.createComponentVNode)(2,s.CellBase,{className:"dx-scheduler-time-panel-title-cell",children:(0,i.createComponentVNode)(2,d.AllDayPanelTitle)})}),n.map((function(e){var t=e.groups,n=e.index,o=e.isFirstGroupCell,s=e.isLastGroupCell,l=e.key,d=e.startDate,c=e.text;return(0,i.createComponentVNode)(2,a.Row,{className:"dx-scheduler-time-panel-row",children:(0,i.createComponentVNode)(2,r.TimePanelCell,{startDate:d,text:c,groups:t,groupIndex:u,isFirstGroupCell:o,isLastGroupCell:s,index:n,timeCellTemplate:h})},l)}))],0,(0,l.getKeyByGroup)(u,o))}))})))};t.viewFunction=g;var m=Object.defineProperties({},{timePanelData:{get:function(){return{groupedData:[],leftVirtualCellCount:0,rightVirtualCellCount:0,topVirtualRowCount:0,bottomVirtualRowCount:0}},configurable:!0,enumerable:!0}});t.TimePanelLayoutProps=m;var _=function(e){var t,n;function a(t){var n;return(n=e.call(this,t)||this).state={},n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var r,s,l=a.prototype;return l.createEffects=function(){return[(0,o.createReRenderEffect)()]},l.render=function(){var e,t=this.props;return g({props:p({},t,{timeCellTemplate:(e=t.timeCellTemplate,e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,p({},t)))}:e))}),topVirtualRowHeight:this.topVirtualRowHeight,bottomVirtualRowHeight:this.bottomVirtualRowHeight,restAttributes:this.restAttributes})},r=a,(s=[{key:"topVirtualRowHeight",get:function(){var e;return null!==(e=this.props.timePanelData.topVirtualRowHeight)&&void 0!==e?e:0}},{key:"bottomVirtualRowHeight",get:function(){var e;return null!==(e=this.props.timePanelData.bottomVirtualRowHeight)&&void 0!==e?e:0}},{key:"restAttributes",get:function(){var e=this.props;return e.groupOrientation,e.tableRef,e.timeCellTemplate,e.timePanelData,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c)}}])&&h(r.prototype,s),a}(o.InfernoWrapperComponent);t.TimePanelTableLayout=_,_.defaultProps=m},87551:function(e,t,n){t.viewFunction=t.VirtualCellProps=t.VirtualCell=void 0;var i=n(55285),o=n(44105),a=n(97205),r=n(11379),s=n(72923),l=["colSpan","isHeaderCell","width"];function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){var t=e.cellComponent,n=e.props.colSpan,o=e.style;return(0,i.createComponentVNode)(2,t,{className:"dx-scheduler-virtual-cell",styles:o,colSpan:n})};t.viewFunction=h;var f={width:0,isHeaderCell:!1};t.VirtualCellProps=f;var p=function(e){var t,n,i,o;function f(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=f).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n),f.prototype.render=function(){var e=this.props;return h({props:u({},e),style:this.style,cellComponent:this.cellComponent,restAttributes:this.restAttributes})},i=f,(o=[{key:"style",get:function(){var e=this.props.width,t=this.restAttributes.style;return(0,a.addWidthToStyle)(e,t)}},{key:"cellComponent",get:function(){return this.props.isHeaderCell?r.HeaderCell:s.OrdinaryCell}},{key:"restAttributes",get:function(){var e=this.props;return e.colSpan,e.isHeaderCell,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l)}}])&&d(i.prototype,o),f}(o.BaseInfernoComponent);t.VirtualCell=p,p.defaultProps=f},4784:function(e,t,n){t.viewFunction=t.VirtualRowProps=t.VirtualRow=void 0;var i=n(55285),o=n(44105),a=n(97205),r=n(14364),s=n(87551),l=["cellsCount","children","className","height","isHeaderRow","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","styles"];function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var p=function(e){var t=e.classes,n=e.props,o=n.leftVirtualCellCount,a=n.leftVirtualCellWidth,l=n.rightVirtualCellCount,u=n.rightVirtualCellWidth,d=e.style,c=e.virtualCells;return(0,i.createComponentVNode)(2,r.Row,{styles:d,className:t,leftVirtualCellWidth:a,rightVirtualCellWidth:u,leftVirtualCellCount:o,rightVirtualCellCount:l,children:c.map((function(e,t){return(0,i.createComponentVNode)(2,s.VirtualCell,null,t.toString())}))})};t.viewFunction=p;var g=Object.create(Object.prototype,f(Object.getOwnPropertyDescriptors(r.RowProps),Object.getOwnPropertyDescriptors({leftVirtualCellWidth:0,rightVirtualCellWidth:0,cellsCount:1})));t.VirtualRowProps=g;var m=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n.__getterCache={},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var o,r,s=i.prototype;return s.componentWillUpdate=function(e,t,n){this.props.cellsCount!==e.cellsCount&&(this.__getterCache.virtualCells=void 0)},s.render=function(){var e=this.props;return p({props:f({},e),style:this.style,classes:this.classes,virtualCells:this.virtualCells,restAttributes:this.restAttributes})},o=i,(r=[{key:"style",get:function(){var e=this.props.height,t=this.restAttributes.style;return(0,a.addHeightToStyle)(e,t)}},{key:"classes",get:function(){var e=this.props.className;return"dx-scheduler-virtual-row ".concat(e)}},{key:"virtualCells",get:function(){var e;return void 0!==this.__getterCache.virtualCells?this.__getterCache.virtualCells:this.__getterCache.virtualCells=(e=this.props.cellsCount,u(Array(e)))}},{key:"restAttributes",get:function(){var e=this.props;return e.cellsCount,e.children,e.className,e.height,e.isHeaderRow,e.leftVirtualCellCount,e.leftVirtualCellWidth,e.rightVirtualCellCount,e.rightVirtualCellWidth,e.styles,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l)}}])&&c(o.prototype,r),i}(o.BaseInfernoComponent);t.VirtualRow=m,m.defaultProps=g},8936:function(e,t){t.DefaultSizes=void 0,t.DefaultSizes={allDayPanelHeight:25}},9553:function(e,t,n){t.viewFunction=t.MonthDateTableCell=void 0;var i=n(55285),o=n(44105),a=n(86237),r=n(51430),s=["allDay","ariaLabel","children","className","contentTemplate","contentTemplateProps","dataCellTemplate","endDate","firstDayOfMonth","groupIndex","groups","index","isFirstGroupCell","isFocused","isLastGroupCell","isSelected","otherMonth","startDate","text","today"];function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var c=function(e){var t=e.classes,n=e.contentTemplateProps,o=e.props,a=o.dataCellTemplate,s=o.endDate,l=o.groupIndex,u=o.groups,d=o.index,c=o.isFirstGroupCell,h=o.isFocused,f=o.isLastGroupCell,p=o.isSelected,g=o.startDate,m=o.text;return(0,i.createComponentVNode)(2,r.DateTableCellBase,{className:t,dataCellTemplate:a,startDate:g,endDate:s,text:m,groups:u,groupIndex:l,index:d,isFirstGroupCell:c,isLastGroupCell:f,isSelected:p,isFocused:h,contentTemplateProps:n,children:(0,i.createVNode)(1,"div","dx-scheduler-date-table-cell-text",m,0)})};t.viewFunction=c;var h=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,d({},t)))}:e)},f=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n.__getterCache={},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var o,r,f=i.prototype;return f.componentWillUpdate=function(e,t,n){this.props.index===e.index&&this.props.text===e.text||(this.__getterCache.contentTemplateProps=void 0)},f.render=function(){var e=this.props;return c({props:d({},e,{dataCellTemplate:h(e.dataCellTemplate),contentTemplate:h(e.contentTemplate)}),classes:this.classes,contentTemplateProps:this.contentTemplateProps,restAttributes:this.restAttributes})},o=i,(r=[{key:"classes",get:function(){var e,t,n,i=this.props,o=i.className,r=i.firstDayOfMonth,s=i.otherMonth,l=i.today;return(0,a.combineClasses)((n=!!o,(t=o)in(e={"dx-scheduler-date-table-other-month":!!s,"dx-scheduler-date-table-current-date":!!l,"dx-scheduler-date-table-first-of-month":!!r})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e))}},{key:"contentTemplateProps",get:function(){var e,t;return void 0!==this.__getterCache.contentTemplateProps?this.__getterCache.contentTemplateProps:this.__getterCache.contentTemplateProps=(t=(e=this.props).index,{data:{text:e.text},index:t})}},{key:"restAttributes",get:function(){var e=this.props;return e.allDay,e.ariaLabel,e.children,e.className,e.contentTemplate,e.contentTemplateProps,e.dataCellTemplate,e.endDate,e.firstDayOfMonth,e.groupIndex,e.groups,e.index,e.isFirstGroupCell,e.isFocused,e.isLastGroupCell,e.isSelected,e.otherMonth,e.startDate,e.text,e.today,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s)}}])&&l(o.prototype,r),i}(o.BaseInfernoComponent);t.MonthDateTableCell=f,f.defaultProps=r.DateTableCellBaseProps},4364:function(e,t,n){t.default=void 0;var i,o=(i=n(99393))&&i.__esModule?i:{default:i},a=n(15281),r=n(7405);function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n,i,o;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),i=a,(o=[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[],templates:["cellTemplate","dataCellTemplate"],props:["cellTemplate","viewData","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","bottomVirtualRowHeight","addDateTableClass","addVerticalSizesClassToRows","width","dataCellTemplate"]}}},{key:"_viewComponent",get:function(){return r.MonthDateTableLayout}}])&&s(i.prototype,o),a}(a.DateTable);t.default=u,(0,o.default)("dxMonthDateTableLayout",u),e.exports=t.default,e.exports.default=t.default},7405:function(e,t,n){t.viewFunction=t.MonthDateTableLayout=void 0;var i=n(55285),o=n(44105),a=n(96941),r=n(9553),s=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","cellTemplate","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","tableRef","topVirtualRowHeight","viewData","width"];function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var c=function(e){var t=e.props,n=t.addDateTableClass,o=t.addVerticalSizesClassToRows,s=t.dataCellTemplate,l=t.groupOrientation,u=t.tableRef,c=t.viewData,h=t.width,f=e.restAttributes;return(0,i.normalizeProps)((0,i.createComponentVNode)(2,a.DateTableLayoutBase,d({viewData:c,groupOrientation:l,addDateTableClass:n,dataCellTemplate:s,cellTemplate:r.MonthDateTableCell,tableRef:u,addVerticalSizesClassToRows:o,width:h},f)))};t.viewFunction=c;var h=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,d({},t)))}:e)},f=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var a,r,f=i.prototype;return f.createEffects=function(){return[(0,o.createReRenderEffect)()]},f.render=function(){var e=this.props;return c({props:d({},e,{cellTemplate:h(e.cellTemplate),dataCellTemplate:h(e.dataCellTemplate)}),restAttributes:this.restAttributes})},a=i,(r=[{key:"restAttributes",get:function(){var e=this.props;return e.addDateTableClass,e.addVerticalSizesClassToRows,e.bottomVirtualRowHeight,e.cellTemplate,e.dataCellTemplate,e.groupOrientation,e.leftVirtualCellWidth,e.rightVirtualCellWidth,e.tableRef,e.topVirtualRowHeight,e.viewData,e.width,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s)}}])&&l(a.prototype,r),i}(o.InfernoWrapperComponent);t.MonthDateTableLayout=f,f.defaultProps=a.DateTableLayoutProps},34300:function(e,t,n){t.viewFunction=t.TimelineDateHeaderLayout=void 0;var i=n(55285),o=n(44105),a=n(14364),r=n(97205),s=n(92366),l=n(35878),u=["dateCellTemplate","dateHeaderData","groupByDate","groupOrientation","groups","timeCellTemplate"];function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var f=function(e){var t=e.isHorizontalGrouping,n=e.props,o=n.dateCellTemplate,r=n.dateHeaderData,l=n.timeCellTemplate,u=r.dataMap,d=r.leftVirtualCellCount,c=r.leftVirtualCellWidth,h=r.rightVirtualCellCount,f=r.rightVirtualCellWidth,p=r.weekDayLeftVirtualCellCount,g=r.weekDayLeftVirtualCellWidth,m=r.weekDayRightVirtualCellCount,_=r.weekDayRightVirtualCellWidth;return(0,i.createFragment)(u.map((function(e,n){var r=u.length,v=r-1===n,y=r>1&&0===n,x=d,b=h,w=f,C=c;return y&&(x=p,b=m,w=_,C=g),(0,i.createComponentVNode)(2,a.Row,{className:"dx-scheduler-header-row",leftVirtualCellWidth:C,leftVirtualCellCount:x,rightVirtualCellWidth:w,rightVirtualCellCount:b,children:e.map((function(e){var n=e.colSpan,a=e.endDate,r=e.groupIndex,u=e.groups,d=e.index,c=e.isFirstGroupCell,h=e.isLastGroupCell,f=e.key,p=e.startDate,g=e.text,m=e.today;return(0,i.createComponentVNode)(2,s.DateHeaderCell,{startDate:p,endDate:a,groups:t?u:void 0,groupIndex:t?r:void 0,today:m,index:d,text:g,isFirstGroupCell:c,isLastGroupCell:h,isWeekDayCell:y,colSpan:n,dateCellTemplate:o,timeCellTemplate:l,isTimeCellTemplate:v},f)}))},n.toString())})),0)};t.viewFunction=f;var p=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,h({},t)))}:e)},g=function(e){var t,n,i,o;function a(t){var n;return(n=e.call(this,t)||this).state={},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n),a.prototype.render=function(){var e=this.props;return f({props:h({},e,{dateCellTemplate:p(e.dateCellTemplate),timeCellTemplate:p(e.timeCellTemplate)}),isHorizontalGrouping:this.isHorizontalGrouping,restAttributes:this.restAttributes})},i=a,(o=[{key:"isHorizontalGrouping",get:function(){var e=this.props,t=e.groupByDate,n=e.groupOrientation,i=e.groups;return(0,r.isHorizontalGroupingApplied)(i,n)&&!t}},{key:"restAttributes",get:function(){var e=this.props;return e.dateCellTemplate,e.dateHeaderData,e.groupByDate,e.groupOrientation,e.groups,e.timeCellTemplate,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u)}}])&&d(i.prototype,o),a}(o.BaseInfernoComponent);t.TimelineDateHeaderLayout=g,g.defaultProps=l.DateHeaderLayoutProps},8262:function(e,t,n){t.default=void 0;var i,o=(i=n(99393))&&i.__esModule?i:{default:i},a=n(86214),r=n(377);function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n,i,o;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n),i=a,(o=[{key:"_propsInfo",get:function(){return{twoWay:[],allowNull:[],elements:[],templates:["dateCellTemplate","timeCellTemplate","dateHeaderTemplate","resourceCellTemplate"],props:["dateHeaderData","isRenderDateHeader","dateCellTemplate","timeCellTemplate","dateHeaderTemplate","groups","groupOrientation","groupPanelData","groupByDate","height","className","resourceCellTemplate"]}}},{key:"_viewComponent",get:function(){return r.TimelineHeaderPanelLayout}}])&&s(i.prototype,o),a}(a.HeaderPanel);t.default=u,(0,o.default)("dxTimelineHeaderPanelLayout",u),e.exports=t.default,e.exports.default=t.default},377:function(e,t,n){t.viewFunction=t.TimelineHeaderPanelLayout=void 0;var i=n(55285),o=n(44105),a=n(84011),r=n(34300),s=["className","dateCellTemplate","dateHeaderData","dateHeaderTemplate","elementRef","groupByDate","groupOrientation","groupPanelData","groups","height","isRenderDateHeader","resourceCellTemplate","timeCellTemplate"];function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var c=function(e){var t=e.props,n=t.dateCellTemplate,o=t.dateHeaderData,s=t.groupByDate,l=t.groupOrientation,u=t.groupPanelData,d=t.groups,c=t.isRenderDateHeader,h=t.resourceCellTemplate,f=t.timeCellTemplate;return(0,i.createComponentVNode)(2,a.HeaderPanelLayout,{dateHeaderTemplate:r.TimelineDateHeaderLayout,dateHeaderData:o,groupPanelData:u,groupByDate:s,groups:d,groupOrientation:l,isRenderDateHeader:c,resourceCellTemplate:h,dateCellTemplate:n,timeCellTemplate:f})};t.viewFunction=c;var h=function(e){return e&&(e.defaultProps?function(t){return(0,i.normalizeProps)((0,i.createComponentVNode)(2,e,d({},t)))}:e)},f=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).state={},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var a,r,f=i.prototype;return f.createEffects=function(){return[(0,o.createReRenderEffect)()]},f.render=function(){var e=this.props;return c({props:d({},e,{dateCellTemplate:h(e.dateCellTemplate),timeCellTemplate:h(e.timeCellTemplate),dateHeaderTemplate:h(e.dateHeaderTemplate),resourceCellTemplate:h(e.resourceCellTemplate)}),restAttributes:this.restAttributes})},a=i,(r=[{key:"restAttributes",get:function(){var e=this.props;return e.className,e.dateCellTemplate,e.dateHeaderData,e.dateHeaderTemplate,e.elementRef,e.groupByDate,e.groupOrientation,e.groupPanelData,e.groups,e.height,e.isRenderDateHeader,e.resourceCellTemplate,e.timeCellTemplate,function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s)}}])&&l(a.prototype,r),i}(o.InfernoWrapperComponent);t.TimelineHeaderPanelLayout=f,f.defaultProps=a.HeaderPanelLayoutProps},97205:function(e,t,n){t.isVerticalGroupingApplied=t.isHorizontalGroupingApplied=t.isGroupingByDate=t.getKeyByGroup=t.getKeyByDateAndGroup=t.getIsGroupedAllDayPanel=t.getGroupCellClasses=t.addWidthToStyle=t.addToStyles=t.addHeightToStyle=void 0;var i=n(86237),o=n(4799);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}t.getKeyByDateAndGroup=function(e,t){var n=e.getTime();return t?(n+t).toString():n.toString()},t.getKeyByGroup=function(e,t){return t===o.VERTICAL_GROUP_ORIENTATION&&e?e.toString():"0"};var s=function(e,t){var n=null!=t?t:{},i=r({},n);return e.forEach((function(e){var t=e.attr,o=e.value;i[t]=o||n[t]})),i};t.addToStyles=s,t.addHeightToStyle=function(e,t){var n=e?"".concat(e,"px"):"";return s([{attr:"height",value:n}],t)},t.addWidthToStyle=function(e,t){var n=e?"".concat(e,"px"):"";return s([{attr:"width",value:n}],t)},t.getGroupCellClasses=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,i.combineClasses)(a({"dx-scheduler-first-group-cell":e,"dx-scheduler-last-group-cell":t},n,!0))},t.getIsGroupedAllDayPanel=function(e,t){var n=e.groupedData[t],i=!(null==n||!n.allDayPanel),o=!(null==n||!n.isGroupedAllDayPanel);return i&&o},t.isVerticalGroupingApplied=function(e,t){return t===o.VERTICAL_GROUP_ORIENTATION&&!!e.length};var l=function(e,t){return t===o.HORIZONTAL_GROUP_ORIENTATION&&!!e.length};t.isHorizontalGroupingApplied=l,t.isGroupingByDate=function(e,t,n){var i=l(e,t);return n&&i}},23842:function(e,t){t.VALIDATE_WHEEL_TIMEOUT=t.TopPocketState=t.ShowScrollbarMode=t.SCROLL_LINE_HEIGHT=t.SCROLLVIEW_TOP_POCKET_CLASS=t.SCROLLVIEW_REACHBOTTOM_TEXT_CLASS=t.SCROLLVIEW_REACHBOTTOM_INDICATOR_CLASS=t.SCROLLVIEW_REACHBOTTOM_CLASS=t.SCROLLVIEW_PULLDOWN_VISIBLE_TEXT_CLASS=t.SCROLLVIEW_PULLDOWN_TEXT_CLASS=t.SCROLLVIEW_PULLDOWN_READY_CLASS=t.SCROLLVIEW_PULLDOWN_LOADING_CLASS=t.SCROLLVIEW_PULLDOWN_INDICATOR_CLASS=t.SCROLLVIEW_PULLDOWN_IMAGE_CLASS=t.SCROLLVIEW_PULLDOWN=t.SCROLLVIEW_CONTENT_CLASS=t.SCROLLVIEW_BOTTOM_POCKET_CLASS=t.SCROLLABLE_WRAPPER_CLASS=t.SCROLLABLE_SIMULATED_CLASS=t.SCROLLABLE_SCROLL_CONTENT_CLASS=t.SCROLLABLE_SCROLL_CLASS=t.SCROLLABLE_SCROLLBAR_SIMULATED=t.SCROLLABLE_SCROLLBAR_CLASS=t.SCROLLABLE_SCROLLBAR_ACTIVE_CLASS=t.SCROLLABLE_SCROLLBARS_HIDDEN=t.SCROLLABLE_SCROLLBARS_ALWAYSVISIBLE=t.SCROLLABLE_DISABLED_CLASS=t.SCROLLABLE_CONTENT_CLASS=t.SCROLLABLE_CONTAINER_CLASS=t.PULLDOWN_ICON_CLASS=t.KEY_CODES=t.HOVER_ENABLED_STATE=t.HIDE_SCROLLBAR_TIMEOUT=t.DIRECTION_VERTICAL=t.DIRECTION_HORIZONTAL=t.DIRECTION_BOTH=void 0,t.SCROLL_LINE_HEIGHT=40,t.DIRECTION_VERTICAL="vertical",t.DIRECTION_HORIZONTAL="horizontal",t.DIRECTION_BOTH="both",t.SCROLLABLE_SIMULATED_CLASS="dx-scrollable-simulated",t.SCROLLABLE_CONTENT_CLASS="dx-scrollable-content",t.SCROLLABLE_WRAPPER_CLASS="dx-scrollable-wrapper",t.SCROLLABLE_CONTAINER_CLASS="dx-scrollable-container",t.SCROLLABLE_DISABLED_CLASS="dx-scrollable-disabled",t.SCROLLABLE_SCROLLBAR_SIMULATED="dx-scrollable-scrollbar-simulated",t.SCROLLABLE_SCROLLBARS_HIDDEN="dx-scrollable-scrollbars-hidden",t.SCROLLABLE_SCROLLBARS_ALWAYSVISIBLE="dx-scrollable-scrollbars-alwaysvisible",t.SCROLLABLE_SCROLLBAR_CLASS="dx-scrollable-scrollbar",t.SCROLLABLE_SCROLLBAR_ACTIVE_CLASS="dx-scrollable-scrollbar-active",t.SCROLLABLE_SCROLL_CLASS="dx-scrollable-scroll",t.SCROLLABLE_SCROLL_CONTENT_CLASS="dx-scrollable-scroll-content",t.HOVER_ENABLED_STATE="dx-scrollbar-hoverable",t.SCROLLVIEW_CONTENT_CLASS="dx-scrollview-content",t.SCROLLVIEW_TOP_POCKET_CLASS="dx-scrollview-top-pocket",t.SCROLLVIEW_PULLDOWN="dx-scrollview-pull-down",t.SCROLLVIEW_PULLDOWN_LOADING_CLASS="dx-scrollview-pull-down-loading",t.SCROLLVIEW_PULLDOWN_READY_CLASS="dx-scrollview-pull-down-ready",t.SCROLLVIEW_PULLDOWN_IMAGE_CLASS="dx-scrollview-pull-down-image",t.SCROLLVIEW_PULLDOWN_INDICATOR_CLASS="dx-scrollview-pull-down-indicator",t.SCROLLVIEW_PULLDOWN_TEXT_CLASS="dx-scrollview-pull-down-text",t.SCROLLVIEW_PULLDOWN_VISIBLE_TEXT_CLASS="dx-scrollview-pull-down-text-visible",t.PULLDOWN_ICON_CLASS="dx-icon-pulldown",t.SCROLLVIEW_BOTTOM_POCKET_CLASS="dx-scrollview-bottom-pocket",t.SCROLLVIEW_REACHBOTTOM_CLASS="dx-scrollview-scrollbottom",t.SCROLLVIEW_REACHBOTTOM_INDICATOR_CLASS="dx-scrollview-scrollbottom-indicator",t.SCROLLVIEW_REACHBOTTOM_TEXT_CLASS="dx-scrollview-scrollbottom-text",t.TopPocketState={STATE_RELEASED:0,STATE_READY:1,STATE_REFRESHING:2,STATE_LOADING:3,STATE_TOUCHED:4,STATE_PULLED:5},t.ShowScrollbarMode={HOVER:"onHover",ALWAYS:"always",NEVER:"never",SCROLL:"onScroll"},t.KEY_CODES={PAGE_UP:"pageUp",PAGE_DOWN:"pageDown",END:"end",HOME:"home",LEFT:"leftArrow",UP:"upArrow",RIGHT:"rightArrow",DOWN:"downArrow"},t.VALIDATE_WHEEL_TIMEOUT=500,t.HIDE_SCROLLBAR_TIMEOUT=500},82886:function(e,t,n){t.convertToLocation=function(e,t){if((0,i.isPlainObject)(e)){var n=(0,o.ensureDefined)(e.left,e.x),r=(0,o.ensureDefined)(e.top,e.y);return{left:(0,i.isDefined)(n)?n:void 0,top:(0,i.isDefined)(r)?r:void 0}}var s=new a.ScrollDirection(t),l=s.isHorizontal,u=s.isVertical;return{left:l&&(0,i.isDefined)(e)?e:void 0,top:u&&(0,i.isDefined)(e)?e:void 0}};var i=n(35922),o=n(20576),a=n(60440)},70602:function(e,t,n){t.getBoundaryProps=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t.left,d=t.top,c={},h=new a.ScrollDirection(e),f=h.isHorizontal,p=h.isVertical;return f&&(c.reachedLeft=r(o,0),c.reachedRight=s(n,o,0)),p&&(c.reachedTop=l(d,0),c.reachedBottom=u(n,d,i,0)),c},t.isReachedBottom=u,t.isReachedLeft=r,t.isReachedRight=s,t.isReachedTop=l;var i=n(92721),o=n(71296),a=n(60440);function r(e,t){return Math.round(e)<=t}function s(e,t,n){return Math.round((0,i.getScrollLeftMax)(e)-t)<=n}function l(e,t){return Math.round(e)<=t}function u(e,t,n,i){return Math.round((0,o.getScrollTopMax)(e)-t-n)<=i}},60650:function(e,t,n){t.getElementLocationInternal=function(e,t,n,s,l){var u=r({top:0,left:0,right:0,bottom:0},l),d=t===a.DIRECTION_VERTICAL,c=d?"top":"left",h=d?"bottom":"right",f=d?"height":"width",p=n["offset".concat((0,i.titleize)(f))],g=n["client".concat((0,i.titleize)(f))],m=n.getBoundingClientRect()[f],_=e.getBoundingClientRect()[f],v=1;Math.abs(m-p)>1&&(v=m/p);var y=(0,o.getRelativeOffset)(a.SCROLLABLE_CONTENT_CLASS,e)[c]/v,x=s[c],b=x-y+u[c],w=x-y-_/v+g-u[h];return b<=0&&w>=0?x:x-(Math.abs(b)>Math.abs(w)?w:b)};var i=n(78008),o=n(1515),a=n(23842);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}},1515:function(e,t){t.getRelativeOffset=function(e,t){for(var n={left:0,top:0},i=t;null!==(o=i)&&void 0!==o&&o.offsetParent&&!i.classList.contains(e);){var o,a=i.offsetParent,r=i.getBoundingClientRect(),s=a.getBoundingClientRect();n.left+=r.left-s.left,n.top+=r.top-s.top,i=i.offsetParent}return n}},92721:function(e,t){t.getScrollLeftMax=function(e){return e.scrollWidth-e.clientWidth}},71296:function(e,t){t.getScrollTopMax=function(e){return e.scrollHeight-e.clientHeight}},60440:function(e,t,n){t.ScrollDirection=void 0;var i=n(23842);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(e){this.DIRECTION_HORIZONTAL="horizontal",this.DIRECTION_VERTICAL="vertical",this.DIRECTION_BOTH="both",this.direction=null!=e?e:i.DIRECTION_VERTICAL}var t,n;return t=e,(n=[{key:"isHorizontal",get:function(){return this.direction===i.DIRECTION_HORIZONTAL||this.direction===i.DIRECTION_BOTH}},{key:"isVertical",get:function(){return this.direction===i.DIRECTION_VERTICAL||this.direction===i.DIRECTION_BOTH}},{key:"isBoth",get:function(){return this.direction===i.DIRECTION_BOTH}}])&&o(t.prototype,n),e}();t.ScrollDirection=a},86237:function(e,t){t.combineClasses=function(e){return Object.keys(e).filter((function(t){return e[t]})).join(" ")}},89357:function(e,t,n){t.default=function(e){var t;return e?null===(t=i.getComputedStyle)||void 0===t?void 0:t.call(i,e):null};var i=(0,n(58201).getWindow)();e.exports=t.default,e.exports.default=t.default},8374:function(e,t,n){t.resolveRtlEnabled=function(e,t){return void 0!==e?e:void 0!==(null==t?void 0:t.rtlEnabled)?t.rtlEnabled:(0,a.default)().rtlEnabled},t.resolveRtlEnabledDefinition=function(e,t){var n=(0,o.isDefined)(e),i=(0,o.isDefined)((0,a.default)().rtlEnabled)&&!n&&!(0,o.isDefined)(null==t?void 0:t.rtlEnabled);return n&&e!==(null==t?void 0:t.rtlEnabled)||i};var i,o=n(35922),a=(i=n(80209))&&i.__esModule?i:{default:i}},33502:function(e,t){t.shallowEquals=void 0,t.shallowEquals=function(e,t){return Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((function(n){return e[n]===t[n]}))}},19828:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.subscribeToDXScrollStopEvent=t.subscribeToDXScrollStartEvent=t.subscribeToDXScrollMoveEvent=t.subscribeToDXScrollEndEvent=t.subscribeToDXScrollCancelEvent=t.subscribeToDXPointerUpEvent=t.subscribeToDXPointerDownEvent=t.subscribeToClickEvent=void 0,t.subscribeToEvent=u,t.subscribeToScrollInitEvent=t.subscribeToScrollEvent=t.subscribeToMouseLeaveEvent=t.subscribeToMouseEnterEvent=t.subscribeToKeyDownEvent=void 0;var o=l(n(55994)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(95429)),r=l(n(37334)),s=l(n(93786));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(t,n,i){if(n&&t)return o.default.on(t,e,i,n),function(){o.default.off(t,e,n)}}}var d=u(a.name);t.subscribeToClickEvent=d;var c=u(r.default.scroll);t.subscribeToScrollEvent=c;var h=u(r.default.init);t.subscribeToScrollInitEvent=h;var f=u(r.default.start);t.subscribeToDXScrollStartEvent=f;var p=u(r.default.move);t.subscribeToDXScrollMoveEvent=p;var g=u(r.default.end);t.subscribeToDXScrollEndEvent=g;var m=u(r.default.stop);t.subscribeToDXScrollStopEvent=m;var _=u(r.default.cancel);t.subscribeToDXScrollCancelEvent=_;var v=u(s.default.down);t.subscribeToDXPointerDownEvent=v;var y=u(s.default.up);t.subscribeToDXPointerUpEvent=y;var x=u("mouseenter");t.subscribeToMouseEnterEvent=x;var b=u("mouseleave");t.subscribeToMouseLeaveEvent=b;var w=u("keydown");t.subscribeToKeyDownEvent=w},78461:function(e,t){t.toNumber=function(e){return e?Number(e.replace("px","")):0}},88673:function(e,t,n){var i;t.Z=void 0;var o=((i=n(32511))&&i.__esModule?i:{default:i}).default.getTimeZones;t.Z=o},76219:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default=void 0;var o=n(58664),a=C(n(68374)),r=C(n(55994)),s=C(n(87209)),l=n(95429),u=C(n(20530)),d=C(n(73349)),c=n(13306),h=n(20576),f=n(6415),p=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(95479)),g=n(35922),m=C(n(99393)),_=n(39611),v=C(n(69010)),y=n(62754),x=n(93280),b=n(44899),w=n(75811);function C(e){return e&&e.__esModule?e:{default:e}}var S="dx-accordion-item-opened",k="dx-accordion-item-closed",D=v.default.inherit({_activeStateUnit:".dx-accordion-item",_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{hoverStateEnabled:!0,height:void 0,itemTitleTemplate:"title",onItemTitleClick:null,selectedIndex:0,collapsible:!1,multiple:!1,animationDuration:300,deferRendering:!0,selectionByClick:!0,activeStateEnabled:!0,_itemAttributes:{role:"tab"},_animationEasing:"ease"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.default.real().deviceType&&!u.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,w.isMaterial)()},options:{animationDuration:200,_animationEasing:"cubic-bezier(0.4, 0, 0.2, 1)"}}])},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.option("selectionRequired",!this.option("collapsible")),this.option("selectionMode",this.option("multiple")?"multiple":"single");var e=this.$element();e.addClass("dx-accordion"),this._$container=(0,a.default)("<div>").addClass("dx-accordion-wrapper"),e.append(this._$container)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new x.BindableTemplate((function(e,t){if((0,g.isPlainObject)(t)){var n=(0,b.getImageContainer)(t.icon);n&&e.append(n),(0,g.isDefined)(t.title)&&!(0,g.isPlainObject)(t.title)&&e.append(d.default.createTextNode(t.title))}else(0,g.isDefined)(t)&&e.text(String(t));e.wrapInner((0,a.default)("<div>").addClass("dx-accordion-item-title-caption"))}),["title","icon"],this.option("integrationOptions.watchMethod"))})},_initMarkup:function(){var e=this;this._deferredItems=[],this.callBase(),this.setAria({role:"tablist",multiselectable:this.option("multiple")}),(0,h.deferRender)((function(){var t=e._getSelectedItemIndices();e._renderSelection(t,[])}))},_render:function(){this.callBase(),this._updateItemHeightsWrapper(!0)},_itemDataKey:function(){return"dxAccordionItemData"},_itemClass:function(){return"dx-accordion-item"},_itemContainer:function(){return this._$container},_itemTitles:function(){return this._itemElements().find(".dx-accordion-item-title")},_itemContents:function(){return this._itemElements().find(".dx-accordion-item-body")},_getItemData:function(e){return(0,a.default)(e).parent().data(this._itemDataKey())||this.callBase.apply(this,arguments)},_executeItemRenderAction:function(e){e.type||this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){(0,a.default)(e.target).closest(this._itemContents()).length||this.callBase.apply(this,arguments)},_afterItemElementDeleted:function(e,t){this._deferredItems.splice(t.itemIndex,1),this.callBase.apply(this,arguments)},_renderItemContent:function(e){var t=this.callBase((0,c.extend)({},e,{contentClass:"dx-accordion-item-title",templateProperty:"titleTemplate",defaultTemplateName:this.option("itemTitleTemplate")}));this._attachItemTitleClickAction(t);var n=new y.Deferred;(0,g.isDefined)(this._deferredItems[e.index])?this._deferredItems[e.index]=n:this._deferredItems.push(n),(!this.option("deferRendering")||this._getSelectedItemIndices().indexOf(e.index)>=0)&&n.resolve(),n.done(this.callBase.bind(this,(0,c.extend)({},e,{contentClass:"dx-accordion-item-body",container:(0,f.getPublicElement)((0,a.default)("<div>").appendTo((0,a.default)(t).parent()))})))},_attachItemTitleClickAction:function(e){var t=(0,_.addNamespace)(l.name,this.NAME);r.default.off(e,t),r.default.on(e,t,this._itemTitleClickHandler.bind(this))},_itemTitleClickHandler:function(e){this._itemDXEventHandler(e,"onItemTitleClick")},_renderSelection:function(e,t){this._itemElements().addClass(k),this.setAria("hidden",!0,this._itemContents()),this._updateItems(e,t)},_updateSelection:function(e,t){this._updateItems(e,t),this._updateItemHeightsWrapper(!1)},_updateItems:function(e,t){var n=this,i=this._itemElements();p.each(e,(function(e,t){n._deferredItems[t].resolve();var o=i.eq(t).addClass(S).removeClass(k);n.setAria("hidden",!1,o.find(".dx-accordion-item-body"))})),p.each(t,(function(e,t){var o=i.eq(t).removeClass(S);n.setAria("hidden",!0,o.find(".dx-accordion-item-body"))}))},_updateItemHeightsWrapper:function(e){this.option("templatesRenderAsynchronously")?this._animationTimer=setTimeout(function(){this._updateItemHeights(e)}.bind(this)):this._updateItemHeights(e)},_updateItemHeights:function(e){var t=this,n=t._deferredAnimate,i=this._splitFreeSpace(this._calculateFreeSpace());return clearTimeout(this._animationTimer),y.when.apply(a.default,[].slice.call(this._itemElements()).map((function(n){return t._updateItemHeight((0,a.default)(n),i,e)}))).done((function(){n&&n.resolveWith(t)}))},_updateItemHeight:function(e,t,n){var i=e.children(".dx-accordion-item-title");s.default.isAnimating(e)&&s.default.stop(e);var a,r=(0,o.getOuterHeight)(e);return e.hasClass(S)?(a=t+(0,o.getOuterHeight)(i))||((0,o.setHeight)(e,"auto"),a=(0,o.getOuterHeight)(e)):a=(0,o.getOuterHeight)(i),this._animateItem(e,r,a,n,!!t)},_animateItem:function(e,t,n,i,o){var a;return i||t===n?(e.css("height",n),a=(new y.Deferred).resolve()):a=s.default.animate(e,{type:"custom",from:{height:t},to:{height:n},duration:this.option("animationDuration"),easing:this.option("_animationEasing")}),a.done((function(){e.hasClass(S)&&!o&&e.css("height",""),e.not(".dx-accordion-item-opened").addClass(k)}))},_splitFreeSpace:function(e){return e?e/this.option("selectedItems").length:e},_calculateFreeSpace:function(){var e=this.option("height");if(void 0!==e&&"auto"!==e){var t=this._itemTitles(),n=0;return p.each(t,(function(e,t){n+=(0,o.getOuterHeight)(t)})),(0,o.getHeight)(this.$element())-n}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._updateItemHeights(!0)},_clean:function(){clearTimeout(this._animationTimer),this.callBase()},_tryParseItemPropertyName:function(e){var t=e.match(/.*\.(.*)/);if((0,g.isDefined)(t)&&t.length>=1)return t[1]},_optionChanged:function(e){switch(e.name){case"items":this.callBase(e),"title"===this._tryParseItemPropertyName(e.fullName)&&this._renderSelection(this._getSelectedItemIndices(),[]),"visible"===this._tryParseItemPropertyName(e.fullName)&&this._updateItemHeightsWrapper(!0),!0===this.option("repaintChangesOnly")&&"items"===e.fullName&&(this._updateItemHeightsWrapper(!0),this._renderSelection(this._getSelectedItemIndices(),[]));break;case"animationDuration":case"onItemTitleClick":case"_animationEasing":break;case"collapsible":this.option("selectionRequired",!this.option("collapsible"));break;case"itemTitleTemplate":case"height":case"deferRendering":this._invalidate();break;case"multiple":this.option("selectionMode",e.value?"multiple":"single");break;default:this.callBase(e)}},expandItem:function(e){return this._deferredAnimate=new y.Deferred,this.selectItem(e),this._deferredAnimate.promise()},collapseItem:function(e){return this._deferredAnimate=new y.Deferred,this.unselectItem(e),this._deferredAnimate.promise()},updateDimensions:function(){return this._updateItemHeights(!1)}});(0,m.default)("dxAccordion",D);var I=D;t.default=I,e.exports=t.default,e.exports.default=t.default},81476:function(e,t,n){t.default=void 0;var i=g(n(68374)),o=n(58201),a=n(20576),r=g(n(28109)),s=g(n(99393)),l=n(13306),u=g(n(63008)),d=g(n(11050)),c=g(n(39114)),h=g(n(22348)),f=n(93280),p=n(62754);function g(e){return e&&e.__esModule?e:{default:e}}var m=(0,o.getWindow)(),_="outlined",v=d.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:r.default.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new f.BindableTemplate((function(e,t){var n=new u.default((0,i.default)("<div>"),(0,l.extend)({onClick:t&&t.click,stylingMode:t&&t.stylingMode||_},t));e.append(n.$element())}),["disabled","icon","text","type","onClick","click","stylingMode"],this.option("integrationOptions.watchMethod"))})},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return"dx-actionsheet-item"},_itemDataKey:function(){return"dxActionSheetItemData"},_toggleVisibility:a.noop,_renderDimensions:a.noop,_initMarkup:function(){this.callBase(),this.$element().addClass("dx-actionsheet"),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=(0,i.default)("<div>").addClass("dx-actionsheet-container"),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=(0,i.default)("<div>").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(e){this._popup&&this._popup.option(e,this.option(e))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup.$wrapper().toggleClass("dx-actionsheet-without-title",!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(e){this._popup=e.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!m.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,h.default,(0,l.extend)(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup.$wrapper().addClass("dx-actionsheet-popover-wrapper")},_createPopup:function(){this._createComponent(this._$popup,c.default,(0,l.extend)(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:m},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:m}},to:{position:{my:"bottom",at:"bottom",of:m}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:m}},to:{position:{my:"top",at:"bottom",of:m}}}}})),this._popup.$wrapper().addClass("dx-actionsheet-popup-wrapper")},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var e=this._createActionByOption("onCancelClick")||a.noop,t=this;this._$cancelButton=(0,i.default)("<div>").addClass("dx-actionsheet-cancel").appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,u.default,{disabled:!1,stylingMode:_,text:this.option("cancelText"),onClick:function(n){var i={event:n,cancel:!1};e(i),i.cancel||t.hide()},integrationOptions:{}})}},_attachItemClickEvent:a.noop,_itemClickHandler:function(e){this.callBase(e),(0,i.default)(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(e){this.callBase(e),(0,i.default)(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(e){switch(e.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(e.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(e)}},toggle:function(e){var t=this,n=new p.Deferred;return t._popup.toggle(e).done((function(){t.option("visible",e),n.resolveWith(t)})),n.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});(0,s.default)("dxActionSheet",v);var y=v;t.default=y,e.exports=t.default,e.exports.default=t.default},65418:function(e,t,n){t.default=void 0;var i=d(n(68374)),o=n(20576),a=d(n(99393)),r=n(13306),s=d(n(92059)),l=n(62754),u=n(39611);function d(e){return e&&e.__esModule?e:{default:e}}var c=s.default.inherit({_supportedKeys:function(){var e=this._list?this._list.option("focusedElement"):null,t=this.callBase();return e=e&&(0,i.default)(e),(0,r.extend)({},t,{upArrow:function(t){return!(!(0,u.isCommandKeyPressed)(t)&&(t.preventDefault(),t.stopPropagation(),e&&!this._calcNextItem(-1))&&(this._clearFocusedItem(),1))},downArrow:function(t){return!(!(0,u.isCommandKeyPressed)(t)&&(t.preventDefault(),t.stopPropagation(),e&&!this._calcNextItem(1))&&(this._clearFocusedItem(),1))},enter:function(t){e||this.close();var n=this.option("opened");return n&&t.preventDefault(),n}})},_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{minSearchLength:1,maxItemCount:10,noDataText:"",showDropDownButton:!1,searchEnabled:!0})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-autocomplete"),this.setAria("autocomplete","inline")},_displayGetterExpr:function(){return this.option("valueExpr")},_closeOutsideDropDownHandler:function(e){var t=e.target;return!(0,i.default)(t).closest(this.$element()).length},_renderDimensions:function(){this.callBase(),this._dimensionChanged()},_popupWrapperClass:function(){return this.callBase()+" dx-autocomplete-popup-wrapper"},_listConfig:function(){var e=this;return(0,r.extend)(this.callBase(),{pageLoadMode:"none",onSelectionChanged:function(t){e._setSelectedItem(t.addedItems[0])}})},_listItemClickHandler:function(e){this._saveValueChangeEvent(e.event);var t=this._displayGetter(e.itemData);this.option("value",t),this.close()},_setListDataSource:function(){this._list&&(this._list.option("selectedItems",[]),this.callBase())},_refreshSelected:o.noop,_searchCanceled:function(){this.callBase(),this.close()},_loadItem:function(e,t){var n=this._getItemFromPlain(e,t);return(new l.Deferred).resolve(n).promise()},_dataSourceOptions:function(){return{paginate:!0,pageSize:this.option("maxItemCount")}},_searchDataSource:function(e){this._dataSource.pageSize(this.option("maxItemCount")),this.callBase(e),this._clearFocusedItem()},_clearFocusedItem:function(){this._list&&(this._list.option("focusedElement",null),this._list.option("selectedIndex",-1))},_renderValueEventName:function(){return"input keyup"},_valueChangeEventHandler:function(e){var t=this._input().val()||null;return this.callBase(e,t)},_optionChanged:function(e){switch(e.name){case"maxItemCount":this._searchDataSource();break;case"valueExpr":this._compileDisplayGetter(),this._setListOption("displayExpr",this._displayGetterExpr()),this.callBase(e);break;default:this.callBase(e)}},reset:function(){this.callBase(),this.close()}});(0,a.default)("dxAutocomplete",c);var h=c;t.default=h,e.exports=t.default,e.exports.default=t.default},55551:function(e,t,n){t.default=void 0;var i=m(n(68374)),o=m(n(55994)),a=m(n(99393)),r=n(13306),s=n(20576),l=n(58201),u=n(78008),d=n(35922),c=n(80968),h=n(95479),f=n(58664),p=m(n(54778)),g=m(n(11050));function m(e){return e&&e.__esModule?e:{default:e}}function _(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,v(e,t)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y="dx-box",x=".dx-box",b="dxBoxItemData",w={row:"minWidth",col:"minHeight"},C={row:"maxWidth",col:"maxHeight"},S={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},k={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},D={row:"row",col:"column"},I=function(e,t,n){if(n=(0,c.normalizeStyleProp)(t,n),e.style[(0,c.styleProp)(t)]=n,!(0,l.hasWindow)()){if(""===n||!(0,d.isDefined)(n))return;var i=(0,u.dasherize)(t)+": "+n+";";e.attributes.style?e.attributes.style.value.indexOf(i)<0&&(e.attributes.style.value+=" "+i):e.setAttribute("style",i)}},T="dxupdate.dxBox",E="dx-box-fallback-item",A={row:"nowrap",col:"normal"},O={row:{name:"width",getter:f.getWidth,setter:f.setWidth},col:{name:"height",getter:f.getHeight,setter:f.setHeight}},P={row:O.col,col:O.row},M={row:"marginLeft",col:"marginTop"},R={row:"marginRight",col:"marginBottom"},B={row:"marginTop",col:"marginLeft"},V={row:"marginBottom",col:"marginRight"},F={marginLeft:"marginRight",marginRight:"marginLeft"},L=function(e){function t(){return e.apply(this,arguments)||this}return _(t,e),t.prototype._renderVisible=function(t,n){e.prototype._renderVisible.call(this,t),(0,d.isDefined)(n)&&this._options.fireItemStateChangedAction({name:"visible",state:t,oldState:n})},t}(p.default),H=function(){function e(e,t){this._$element=e,this._option=t,this.initSize=s.noop,this.update=s.noop}var t=e.prototype;return t.renderBox=function(){this._$element.css({display:(0,c.stylePropPrefix)("flexDirection")+"flex"}),I(this._$element.get(0),"flexDirection",D[this._option("direction")])},t.renderAlign=function(){this._$element.css({justifyContent:this._normalizedAlign()})},t._normalizedAlign=function(){var e=this._option("align");return e in S?S[e]:e},t.renderCrossAlign=function(){this._$element.css({alignItems:this._normalizedCrossAlign()})},t._normalizedCrossAlign=function(){var e=this._option("crossAlign");return e in k?k[e]:e},t.renderItems=function(e){var t=(0,c.stylePropPrefix)("flexDirection"),n=this._option("direction");(0,h.each)(e,(function(){var e=(0,i.default)(this),o=e.data(b);e.css({display:t+"flex"}).css(C[n],o.maxSize||"none").css(w[n],o.minSize||"0"),I(e.get(0),"flexBasis",o.baseSize||0),I(e.get(0),"flexGrow",o.ratio),I(e.get(0),"flexShrink",(0,d.isDefined)(o.shrink)?o.shrink:1),e.children().each((function(e,t){(0,i.default)(t).css({width:"auto",height:"auto",display:(0,c.stylePropPrefix)("flexDirection")+"flex",flexBasis:0}),I(t,"flexGrow",1),I(t,"flexDirection",(0,i.default)(t)[0].style.flexDirection||"column")}))}))},e}(),N=function(){function e(e,t){this._$element=e,this._option=t}var t=e.prototype;return t.renderBox=function(){this._$element.css({fontSize:0,whiteSpace:A[this._option("direction")],verticalAlign:"top"}),o.default.off(this._$element,T),o.default.on(this._$element,T,this.update.bind(this))},t.renderAlign=function(){var e=this._$items;if(e){var t=this._option("align"),n=this.totalItemSize,i=this._option("direction"),o=O[i].getter(this._$element)-n,a=0;switch(this._setItemsMargins(e,i,0),t){case"start":break;case"end":a=o,e.first().css(this._chooseMarginSide(M[i]),a);break;case"center":a=.5*o,e.first().css(this._chooseMarginSide(M[i]),a),e.last().css(this._chooseMarginSide(R[i]),a);break;case"space-between":a=.5*o/(e.length-1),this._setItemsMargins(e,i,a),e.first().css(this._chooseMarginSide(M[i]),0),e.last().css(this._chooseMarginSide(R[i]),0);break;case"space-around":a=.5*o/e.length,this._setItemsMargins(e,i,a)}}},t._setItemsMargins=function(e,t,n){e.css(this._chooseMarginSide(M[t]),n).css(this._chooseMarginSide(R[t]),n)},t.renderCrossAlign=function(){var e=this._$items;if(e){var t=this._option("crossAlign"),n=this._option("direction"),o=P[n].getter(this._$element),a=this;switch(t){case"start":break;case"end":(0,h.each)(e,(function(){var e=(0,i.default)(this),t=P[n].getter(e),r=o-t;e.css(a._chooseMarginSide(B[n]),r)}));break;case"center":(0,h.each)(e,(function(){var e=(0,i.default)(this),t=P[n].getter(e),r=.5*(o-t);e.css(a._chooseMarginSide(B[n]),r).css(a._chooseMarginSide(V[n]),r)}));break;case"stretch":e.css(a._chooseMarginSide(B[n]),0).css(a._chooseMarginSide(V[n]),0).css(P[n].name,"100%")}}},t._chooseMarginSide=function(e){return this._option("rtlEnabled")&&F[e]||e},t.renderItems=function(e){var t=this;this._$items=e;var n=this._option("direction"),o=0,a=0,r=0;(0,h.each)(e,(function(e,s){var l=(0,i.default)(s);l.css({display:"inline-block",verticalAlign:"top"}),O[n].setter(l,"auto"),l.removeClass(E);var u=l.data(b),c=u.ratio||0,h=t._baseSize(l),f=(0,d.isDefined)(u.shrink)?u.shrink:1;o+=c,a+=f*h,r+=h}));var s=this._boxSize()-r,l=0;(0,h.each)(e,(function(e,r){var u=(0,i.default)(r),c=(0,i.default)(r).data(b),h=function(e){var n=e.data(b),i=t._baseSize(e),r=s>=0?n.ratio||0:((0,d.isDefined)(n.shrink)?n.shrink:1)*i,l=s>=0?o:a;return i+(l?Math.round(s*r/l):0)}(u);l+=h,u.css(C[n],c.maxSize||"none").css(w[n],c.minSize||"0").css(O[n].name,h),u.addClass(E)})),this.totalItemSize=l},t._baseSize=function(e){var t=(0,i.default)(e).data(b);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)},t._contentSize=function(e){return O[this._option("direction")].getter((0,i.default)(e))},t._parseSize=function(e){return String(e).match(/.+%$/)?.01*parseFloat(e)*this._boxSizeValue:e},t._boxSize=function(e){if(!arguments.length)return this._boxSizeValue=this._boxSizeValue||this._totalBaseSize(),this._boxSizeValue;this._boxSizeValue=e},t._totalBaseSize=function(){var e=this,t=0;return(0,h.each)(this._$items,(function(n,i){t+=e._baseSize(i)})),t},t.initSize=function(){this._boxSize(O[this._option("direction")].getter(this._$element))},t.update=function(){if(this._$items&&!this._$element.is(":hidden")){this._$items.detach(),this.initSize(),this._$element.append(this._$items),this.renderItems(this._$items),this.renderAlign(),this.renderCrossAlign();var e=this._$element.get(0);this._$items.find(x).each((function(){e===(0,i.default)(this).parent().closest(x).get(0)&&o.default.triggerHandler(this,T)}))}},e}(),z=function(e){function t(){return e.apply(this,arguments)||this}_(t,e);var n=t.prototype;return n._getDefaultOptions=function(){return(0,r.extend)(e.prototype._getDefaultOptions.call(this),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_layoutStrategy:"flex",_queue:void 0})},n._itemClass=function(){return"dx-box-item"},n._itemDataKey=function(){return b},n._itemElements=function(){return this._itemContainer().children(this._itemSelector())},n._init=function(){e.prototype._init.call(this),this.$element().addClass("".concat(y,"-").concat(this.option("_layoutStrategy"))),this._initLayout(),this._initBoxQueue()},n._initLayout=function(){this._layout="fallback"===this.option("_layoutStrategy")?new N(this.$element(),this.option.bind(this)):new H(this.$element(),this.option.bind(this))},n._initBoxQueue=function(){this._queue=this.option("_queue")||[]},n._queueIsNotEmpty=function(){return!this.option("_queue")&&!!this._queue.length},n._pushItemToQueue=function(e,t){this._queue.push({$item:e,config:t})},n._shiftItemFromQueue=function(){return this._queue.shift()},n._initMarkup=function(){this.$element().addClass(y),this._layout.renderBox(),e.prototype._initMarkup.call(this),this._renderAlign(),this._renderActions()},n._renderActions=function(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")},n._renderAlign=function(){this._layout.renderAlign(),this._layout.renderCrossAlign()},n._renderItems=function(n){var i=this;for(this._layout.initSize(),e.prototype._renderItems.call(this,n);this._queueIsNotEmpty();){var o=this._shiftItemFromQueue();this._createComponent(o.$item,t,(0,r.extend)({_layoutStrategy:this.option("_layoutStrategy"),itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},o.config))}this._layout.renderItems(this._itemElements()),clearTimeout(this._updateTimer),this._updateTimer=setTimeout((function(){i._isUpdated||i._layout.update(),i._isUpdated=!1,i._updateTimer=null}))},n._renderItemContent=function(t){var n=t.itemData&&t.itemData.node;return n?this._renderItemContentByNode(t,n):e.prototype._renderItemContent.call(this,t)},n._postprocessRenderItem=function(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)},n._createItemByTemplate=function(t,n){return n.itemData.box?t.source?t.source():(0,i.default)():e.prototype._createItemByTemplate.call(this,t,n)},n._visibilityChanged=function(e){e&&this._dimensionChanged()},n._dimensionChanged=function(){this._updateTimer||(this._isUpdated=!0,this._layout.update())},n._dispose=function(){clearTimeout(this._updateTimer),e.prototype._dispose.apply(this,arguments)},n._itemOptionChanged=function(t,n,i,o){"visible"===n&&this._onItemStateChanged({name:n,state:i,oldState:!1!==o}),e.prototype._itemOptionChanged.call(this,t,n,i)},n._optionChanged=function(t){switch(t.name){case"_layoutStrategy":case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:e.prototype._optionChanged.call(this,t)}},n._itemOptions=function(){var t=this,n=e.prototype._itemOptions.call(this);return n.fireItemStateChangedAction=function(e){t._onItemStateChanged(e)},n},n.repaint=function(){this._dimensionChanged()},t}(g.default);z.ItemClass=L,(0,a.default)("dxBox",z);var W=z;t.default=W,e.exports=t.default,e.exports.default=t.default},63008:function(e,t,n){var i;t.default=void 0;var o=((i=n(83151))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},28236:function(e,t,n){t.default=void 0;var i=c(n(68374)),o=c(n(14390)),a=c(n(63008)),r=c(n(11050)),s=c(n(99393)),l=n(13306),u=n(35922),d=n(93280);function c(e){return e&&e.__esModule?e:{default:e}}var h="dx-buttongroup-item-has-width",f=r.default.inherit({_initTemplates:function(){var e=this;this.callBase(),this._templateManager.addDefaultTemplates({item:new d.BindableTemplate((function(t,n,i){e._prepareItemStyles(t);var o=e.option("buttonTemplate");e._createComponent(t,a.default,(0,l.extend)({},i,n,e._getBasicButtonOptions(),{_templateData:e._hasCustomTemplate(o)?i:{},template:i.template||o}))}),["text","type","icon","disabled","visible","hint"],this.option("integrationOptions.watchMethod"))})},_getBasicButtonOptions:function(){return{focusStateEnabled:!1,onClick:null,hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode")}},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{itemTemplateProperty:null})},_hasCustomTemplate:function(e){return(0,u.isFunction)(e)||this.option("integrationOptions.templates")[e]},_prepareItemStyles:function(e){var t=e.data("dxItemIndex");0===t&&e.addClass("dx-buttongroup-first-item");var n=this.option("items");n&&t===n.length-1&&e.addClass("dx-buttongroup-last-item"),e.addClass("dx-shape-standard")},_renderItemContent:function(e){return e.container=(0,i.default)(e.container).parent(),this.callBase(e)},_renderItemContentByNode:function(e,t){return e.container=(0,i.default)(e.container.children().first()),this.callBase(e,t)},_focusTarget:function(){return this.$element().parent()},_keyboardEventBindingTarget:function(){return this._focusTarget()},_refreshContent:function(){this._prepareContent(),this._renderContent()},_itemClass:function(){return"dx-buttongroup-item"},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)}}),p=o.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{hoverStateEnabled:!0,focusStateEnabled:!0,selectionMode:"single",selectedItems:[],selectedItemKeys:[],stylingMode:"contained",keyExpr:"text",items:[],buttonTemplate:"content",onSelectionChanged:null,onItemClick:null})},_init:function(){this.callBase(),this._createItemClickAction()},_createItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initMarkup:function(){this.setAria("role","group"),this.$element().addClass("dx-buttongroup"),this._renderButtons(),this._syncSelectionOptions(),this.callBase()},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_renderButtons:function(){var e=this,t=(0,i.default)("<div>").addClass("dx-buttongroup-wrapper").appendTo(this.$element()),n=this.option("selectedItems"),o={selectionMode:this.option("selectionMode"),items:this.option("items"),keyExpr:this.option("keyExpr"),buttonTemplate:this.option("buttonTemplate"),scrollingEnabled:!1,selectedItemKeys:this.option("selectedItemKeys"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode"),accessKey:this.option("accessKey"),tabIndex:this.option("tabIndex"),noDataText:"",selectionRequired:!1,onItemRendered:function(t){var n=e.option("width");(0,u.isDefined)(n)&&(0,i.default)(t.itemElement).addClass(h)},onSelectionChanged:function(t){e._syncSelectionOptions(),e._fireSelectionChangeEvent(t.addedItems,t.removedItems)},onItemClick:function(t){e._itemClickAction(t)}};(0,u.isDefined)(n)&&n.length&&(o.selectedItems=n),this._buttonsCollection=this._createComponent(t,f,o)},_syncSelectionOptions:function(){this._setOptionWithoutOptionChange("selectedItems",this._buttonsCollection.option("selectedItems")),this._setOptionWithoutOptionChange("selectedItemKeys",this._buttonsCollection.option("selectedItemKeys"))},_optionChanged:function(e){switch(e.name){case"stylingMode":case"selectionMode":case"keyExpr":case"buttonTemplate":case"items":case"activeStateEnabled":case"focusStateEnabled":case"hoverStateEnabled":case"tabIndex":this._invalidate();break;case"selectedItemKeys":case"selectedItems":this._buttonsCollection.option(e.name,e.value);break;case"onItemClick":this._createItemClickAction();break;case"onSelectionChanged":break;case"width":this.callBase(e),this._buttonsCollection.itemElements().toggleClass(h,!!e.value);break;default:this.callBase(e)}}});(0,s.default)("dxButtonGroup",p);var g=p;t.default=g,e.exports=t.default,e.exports.default=t.default},26559:function(e,t,n){var i;t.default=void 0;var o=((i=n(36989))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},15360:function(e,t,n){t.default=void 0;var i=m(n(68374)),o=m(n(73349)),a=m(n(55994)),r=n(97906),s=n(6415),l=m(n(14390)),u=m(n(91198)),d=n(13306),c=n(20576),h=m(n(69434)),f=m(n(28109)),p=n(39611),g=n(95429);function m(e){return e&&e.__esModule?e:{default:e}}var _=l.default.abstract,v="dx-calendar-empty-cell",y="dx-calendar-selected-date",x="dx-calendar-contoured-date",b=(0,p.addNamespace)(g.name,"dxCalendar"),w="dxDateValueKey",C=l.default.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,disabledDates:null,onCellClick:null,rowCount:3,colCount:4,allowValueSelection:!0,_todayDate:function(){return new Date}})},_initMarkup:function(){this.callBase(),this._renderImpl()},_renderImpl:function(){this.$element().append(this._createTable()),this._createDisabledDatesHandler(),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderEvents()},_createTable:function(){return this._$table=(0,i.default)("<table>"),this.setAria({label:f.default.format("dxCalendar-ariaWidgetName"),role:"grid"},this._$table),this._$table},_renderBody:function(){this.$body=(0,i.default)("<tbody>").appendTo(this._$table);for(var e={cellDate:this._getFirstCellData(),prevCellDate:null},t=0,n=this.option("rowCount");t<n;t++){e.row=this._createRow();for(var o=0,a=this.option("colCount");o<a;o++)this._renderCell(e,o)}},_createRow:function(){var e=o.default.createElement("tr");return this.setAria("role","row",(0,i.default)(e)),this.$body.get(0).appendChild(e),e},_appendCell:function(e,t){this._appendMethodName||this._cacheAppendMethodName(),(0,i.default)(e)[this._appendMethodName](t)},_cacheAppendMethodName:function(e){this._appendMethodName=(null!=e?e:this.option("rtlEnabled"))?"prepend":"append"},_createCell:function(e){var t=o.default.createElement("td"),n=(0,i.default)(t);return t.className=this._getClassNameByDate(e),t.setAttribute("data-value",h.default.serializeDate(e,u.default.getShortDateFormat())),(0,r.data)(t,w,e),this.setAria({role:"gridcell",label:this.getCellAriaLabel(e)},n),{cell:t,$cell:n}},_renderCell:function(e,t){var n=e.cellDate,i=e.prevCellDate,o=e.row;i&&u.default.fixTimezoneGap(i,n),e.prevCellDate=n;var a=this._createCell(n),r=a.cell,s=a.$cell,l=this.option("cellTemplate");this._appendCell(o,r),l?l.render(this._prepareCellTemplateData(n,t,s)):r.innerHTML=this._getCellText(n),e.cellDate=this._getNextCellData(n)},_getClassNameByDate:function(e){var t="dx-calendar-cell";return this._isTodayCell(e)&&(t+=" ".concat("dx-calendar-today")),(this._isDateOutOfRange(e)||this.isDateDisabled(e))&&(t+=" ".concat(v)),this._isOtherView(e)&&(t+=" ".concat("dx-calendar-other-view")),t},_prepareCellTemplateData:function(e,t,n){return{model:{text:this._getCellText(e),date:e,view:this._getViewName()},container:(0,s.getPublicElement)(n),index:t}},_renderEvents:function(){var e=this;this._createCellClickAction(),a.default.off(this._$table,b),a.default.on(this._$table,b,"td",(function(t){(0,i.default)(t.currentTarget).hasClass(v)||e._cellClickAction({event:t,value:(0,i.default)(t.currentTarget).data(w)})}))},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_createDisabledDatesHandler:function(){var e=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(e)?this._getDefaultDisabledDatesHandler(e):e||c.noop},_getDefaultDisabledDatesHandler:function(e){return c.noop},_isTodayCell:_,_isDateOutOfRange:_,isDateDisabled:function(e){var t={date:e,view:this._getViewName()};return this._disabledDatesHandler(t)},_isOtherView:_,_getCellText:_,_getFirstCellData:_,_getNextCellData:_,_renderContouredDate:function(e){if(this.option("focusStateEnabled")){e=e||this.option("contouredDate");var t=this._getContouredCell(),n=this._getCellByDate(e);t.removeClass(x),n.addClass(x)}},_getContouredCell:function(){return this._$table.find(".".concat(x))},_changeValue:function(e){if(e){var t=this.option("value"),n=t?new Date(t):new Date;n.setDate(e.getDate()),n.setMonth(e.getMonth()),n.setFullYear(e.getFullYear()),n.setDate(e.getDate()),this.option("value",n)}else this.option("value",null)},_renderValue:function(){if(this.option("allowValueSelection")){var e=this.option("value"),t=this._getCellByDate(e);this._selectedCell&&this._selectedCell.removeClass(y),t.addClass(y),this._selectedCell=t}},getCellAriaLabel:function(e){return this._getCellText(e)},_getFirstAvailableDate:function(){var e=this.option("date"),t=this.option("min");return e=u.default.getFirstDateView(this._getViewName(),e),new Date(t&&e<t?t:e)},_getCellByDate:_,isBoundary:_,_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"value":this._renderValue();break;case"contouredDate":this._renderContouredDate(n);break;case"onCellClick":this._createCellClickAction();break;case"disabledDates":case"cellTemplate":this._invalidate();break;case"rtlEnabled":this._cacheAppendMethodName(n),this.callBase(e);break;case"_todayDate":this._renderBody();break;default:this.callBase(e)}}});t.default=C,e.exports=t.default,e.exports.default=t.default},36989:function(e,t,n){t.default=void 0;var i=n(58664),o=k(n(68374)),a=k(n(73176)),r=k(n(99393)),s=n(20576),l=n(35922),u=n(60810),d=n(13306),c=k(n(63008)),h=k(n(96452)),f=k(n(66894)),p=k(n(69221)),g=k(n(92633)),m=n(31648),_=k(n(91198)),v=k(n(69434)),y=k(n(20530)),x=k(n(87209)),b=n(58201),w=k(n(28109)),C=n(68494),S=n(39611);function k(e){return e&&e.__esModule?e:{default:e}}var D={month:3,year:2,decade:1,century:0},I="month",T="year",E="decade",A="century",O=h.default.inherit({_activeStateUnit:".dx-calendar-cell",_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,currentDate:new Date,value:null,dateSerializationFormat:void 0,min:new Date(1e3,0),max:new Date(3e3,0),firstDayOfWeek:void 0,zoomLevel:I,maxZoomLevel:I,minZoomLevel:A,showTodayButton:!1,cellTemplate:"cell",disabledDates:null,onCellClick:null,onContouredChanged:null,skipFocusCheck:!1,_todayDate:function(){return new Date}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===y.default.real().deviceType&&!y.default.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return(0,d.extend)(this.callBase(),{rightArrow:function(e){e.preventDefault(),(0,S.isCommandKeyPressed)(e)?this._waitRenderView(1):this._moveCurrentDateByOffset(1*this._getRtlCorrection())},leftArrow:function(e){e.preventDefault(),(0,S.isCommandKeyPressed)(e)?this._waitRenderView(-1):this._moveCurrentDateByOffset(-1*this._getRtlCorrection())},upArrow:function(e){if(e.preventDefault(),(0,S.isCommandKeyPressed)(e))this._navigateUp();else{if(x.default.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(-1*this._view.option("colCount"))}},downArrow:function(e){if(e.preventDefault(),(0,S.isCommandKeyPressed)(e))this._navigateDown();else{if(x.default.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(1*this._view.option("colCount"))}},home:function(e){e.preventDefault();var t=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("min");if(!this._view.isDateDisabled(n)){var o=_.default.sameView(t,n,i)?i:_.default.getViewFirstCellDate(t,n);this._moveToClosestAvailableDate(o)}},end:function(e){e.preventDefault();var t=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("max");if(!this._view.isDateDisabled(n)){var o=_.default.sameView(t,n,i)?i:_.default.getViewLastCellDate(t,n);this._moveToClosestAvailableDate(o)}},pageUp:function(e){e.preventDefault(),this._waitRenderView(-1*this._getRtlCorrection())},pageDown:function(e){e.preventDefault(),this._waitRenderView(1*this._getRtlCorrection())},tab:s.noop,enter:function(e){if(this._isMaxZoomLevel()){if(!this._view.isDateDisabled(this.option("currentDate"))){var t=this._updateTimeComponent(this.option("currentDate"));this._dateValue(t,e)}}else this._navigateDown()}})},_getSerializationFormat:function(e){var t=this.option(e||"value");return this.option("dateSerializationFormat")?this.option("dateSerializationFormat"):(0,l.isNumeric)(t)?"number":(0,l.isString)(t)?v.default.getDateSerializationFormat(t):void 0},_convertToDate:function(e,t){return v.default.deserializeDate(e)},_dateValue:function(e,t){if(t){if("keydown"===t.type){var n=this._view._getContouredCell().get(0);t.target=n}this._saveValueChangeEvent(t)}this._dateOption("value",e)},_dateOption:function(e,t){if(1===arguments.length)return this._convertToDate(this.option(e),e);var n=this._getSerializationFormat(e);this.option(e,v.default.serializeDate(t,n))},_shiftDate:function(e,t,n,i){switch(e){case I:t.setDate(t.getDate()+n*i);break;case T:t.setMonth(t.getMonth()+n*i);break;case E:t.setFullYear(t.getFullYear()+n*i);break;case A:t.setFullYear(t.getFullYear()+10*n*i)}},_moveCurrentDateByOffset:function(e){var t=this.option("currentDate"),n=new Date(t),i=this.option("zoomLevel");this._shiftDate(i,n,e,1);for(var o=this._getMaxDate(),a=this._getMinDate(),r=this._areDatesInNeighborView(i,n,t),s=(0,u.inRange)(n,a,o)&&r,l=new Date(n);s;){if(!this._view.isDateDisabled(l)){n=l;break}this._shiftDate(i,l,e,1),r=this._areDatesInNeighborView(i,l,t),s=(0,u.inRange)(l,a,o)&&r}this._view.isDateDisabled(t)||this._view.isDateDisabled(n)?this._waitRenderView(e>0?1:-1):this.option("currentDate",n)},_areDatesInSameView:function(e,t,n){switch(e){case I:return t.getMonth()===n.getMonth();case T:return t.getYear()===n.getYear();case E:return parseInt(t.getYear()/10)===parseInt(n.getYear()/10);case A:return parseInt(t.getYear()/100)===parseInt(n.getYear()/100)}},_areDatesInNeighborView:function(e,t,n){var i,o,a;switch(e){case I:return i=t.getMonth(),o=n.getMonth(),a=Math.abs(i-o),Math.min(a,12-a)<=1;case T:return Math.abs(t.getYear()-n.getYear())<=1;case E:return Math.abs(t.getYear()-n.getYear())<=10;case A:return Math.abs(t.getYear()-n.getYear())<=100}},_moveToClosestAvailableDate:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("currentDate"),i=new Date(n),o=this.option("zoomLevel"),a=!this._isDateNotAvailable(i),r=a,s=a,l=new Date(i),u=new Date(i);do{if(r){i=l;break}if(s){i=u;break}this._shiftDate(o,l,1,1),this._shiftDate(o,u,1,-1),e=this._areDatesInSameView(o,l,n),t=this._areDatesInSameView(o,u,n),r=e&&!this._isDateNotAvailable(l),s=t&&!this._isDateNotAvailable(u)}while(e||t);this.option("currentDate",i)},_isDateNotAvailable:function(e){var t=this._getMaxDate(),n=this._getMinDate();return!(0,u.inRange)(e,n,t)||this._view.isDateDisabled(e)},_init:function(){this.callBase(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_correctZoomLevel:function(){var e=this.option("minZoomLevel"),t=this.option("maxZoomLevel"),n=this.option("zoomLevel");D[t]<D[e]||(D[n]>D[t]?this.option("zoomLevel",t):D[n]<D[e]&&this.option("zoomLevel",e))},_initCurrentDate:function(){var e=this._getNormalizedDate(this._dateOption("value"))||this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",e)},_getNormalizedDate:function(e){return e=_.default.normalizeDate(e,this._getMinDate(),this._getMaxDate()),(0,l.isDefined)(e)?this._getDate(e):e},_initActions:function(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates:function(){this._templateManager.addDefaultTemplates({cell:new C.FunctionTemplate((function(e){var t=e.model;(0,o.default)(e.container).append((0,o.default)("<span>").text(t&&t.text||String(t)))}))}),this.callBase()},_updateCurrentDate:function(e){if(x.default.isAnimating(this._$viewsWrapper)&&x.default.stop(this._$viewsWrapper,!0),this._getMinDate()>this._getMaxDate())this.option("currentDate",new Date);else{var t=this._getNormalizedDate(e);if(e.getTime()===t.getTime()){var n=this._getViewsOffset(this._view.option("date"),t);0!==n&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(n=0),this._view&&0!==n&&!this._suppressNavigation?this._navigate(n,t):(this._renderNavigator(),this._setViewContoured(t),this._updateAriaId(t))}else this.option("currentDate",new Date(t))}},_setViewContoured:function(e){(this.option("skipFocusCheck")||this._focusTarget().hasClass("dx-state-focused"))&&this._view.option("contouredDate",e)},_getMinDate:function(){return this.min||(this.min=this._dateOption("min")||new Date(1e3,0)),this.min},_getMaxDate:function(){return this.max||(this.max=this._dateOption("max")||new Date(3e3,0)),this.max},_getViewsOffset:function(e,t){var n,i=this.option("zoomLevel");if(i===I)return this._getMonthsOffset(e,t);switch(i){case A:n=100;break;case E:n=10;break;default:n=1}return parseInt(t.getFullYear()/n)-parseInt(e.getFullYear()/n)},_getMonthsOffset:function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},_waitRenderView:function(e){var t=this;if(!this._alreadyViewRender){this._alreadyViewRender=!0;var n=this._getDateByOffset(e*this._getRtlCorrection());this._moveToClosestAvailableDate(n),this._waitRenderViewTimeout=setTimeout((function(){t._alreadyViewRender=!1}))}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(e,t){var n,i=(t=this._getDate(null!==(n=t)&&void 0!==n?n:this.option("currentDate"))).getDate(),o=_.default.getDifferenceInMonth(this.option("zoomLevel"))*e;t.setDate(1),t.setMonth(t.getMonth()+o);var a=_.default.getLastMonthDate(t).getDate();return t.setDate(i>a?a:i),t},_focusTarget:function(){return this.$element()},_initMarkup:function(){this._renderSubmitElement(),this.callBase();var e=this.$element();e.addClass("dx-calendar"),this._renderBody(),e.append(this.$body),this._renderViews(),this._renderNavigator(),e.append(this._navigator.$element()),this._renderSwipeable(),this._renderFooter(),this._updateAriaSelected(),this._updateAriaId(),this._moveToClosestAvailableDate()},_render:function(){this.callBase(),this._setViewContoured(this.option("currentDate"))},_renderBody:function(){this._$viewsWrapper||(this.$body=(0,o.default)("<div>").addClass("dx-calendar-body"),this._$viewsWrapper=(0,o.default)("<div>").addClass("dx-calendar-views-wrapper"),this.$body.append(this._$viewsWrapper))},_getKeyboardListeners:function(){return this.callBase().concat([this._view])},_renderViews:function(){this.$element().addClass("dx-calendar-view-"+this.option("zoomLevel"));var e=this.option("currentDate");if(this._view=this._renderSpecificView(e),(0,b.hasWindow)()){var t=this._getDateByOffset(-1,e);this._beforeView=this._isViewAvailable(t)?this._renderSpecificView(t):null;var n=this._getDateByOffset(1,e);n.setDate(1),this._afterView=this._isViewAvailable(n)?this._renderSpecificView(n):null}this._translateViews()},_renderSpecificView:function(e){var t=g.default[this.option("zoomLevel")],n=(0,o.default)("<div>").appendTo(this._$viewsWrapper),i=this._viewConfig(e);return this._createComponent(n,t,i)},_viewConfig:function(e){var t=this.option("disabledDates");return t=(0,l.isFunction)(t)?this._injectComponent(t.bind(this)):t,{date:e,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:this.option("firstDayOfWeek"),value:this._dateOption("value"),tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),disabledDates:t,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel(),_todayDate:this.option("_todayDate")}},_injectComponent:function(e){var t=this;return function(n){return(0,d.extend)(n,{component:t}),e(n)}},_isViewAvailable:function(e){var t=this.option("zoomLevel"),n=_.default.getViewMinBoundaryDate(t,this._getMinDate()),i=_.default.getViewMaxBoundaryDate(t,this._getMaxDate());return _.default.dateInRange(e,n,i)},_translateViews:function(){(0,m.move)(this._view.$element(),{left:0,top:0}),this._beforeView&&(0,m.move)(this._beforeView.$element(),{left:this._getViewPosition(-1),top:0}),this._afterView&&(0,m.move)(this._afterView.$element(),{left:this._getViewPosition(1),top:0})},_getViewPosition:function(e){return 100*e*(this.option("rtlEnabled")?-1:1)+"%"},_cellClickHandler:function(e){var t=this.option("zoomLevel"),n=_.default.getViewDown(t),i=this._isMaxZoomLevel();if(n&&!i)this._navigateDown(e.event.currentTarget);else{var o=this._updateTimeComponent(e.value);this._dateValue(o,e.event),this._cellClickAction(e)}},_updateTimeComponent:function(e){var t=new Date(e),n=this._dateOption("value");return n&&(t.setHours(n.getHours()),t.setMinutes(n.getMinutes()),t.setSeconds(n.getSeconds()),t.setMilliseconds(n.getMilliseconds())),t},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(e){var t=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var n=_.default.getViewDown(t);if(n){var i=this._view.option("contouredDate")||this._view.option("date");e&&(i=(0,o.default)(e).data("dxDateValueKey")),this._isOtherViewCellClicked=!0,this.option("currentDate",i),this.option("zoomLevel",n),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate")))}}},_renderNavigator:function(){this._navigator||(this._navigator=new p.default((0,o.default)("<div>"),this._navigatorConfig())),this._navigator.option("text",this._view.getNavigatorCaption()),this._updateButtonsVisibility()},_navigatorConfig:function(){return{text:this._view.getNavigatorCaption(),onClick:this._navigatorClickHandler.bind(this),onCaptionClick:this._navigateUp.bind(this),rtlEnabled:this.option("rtlEnabled")}},_navigatorClickHandler:function(e){var t=this._getDateByOffset(e.direction,this.option("currentDate"));this._moveToClosestAvailableDate(t)},_navigateUp:function(){var e=this.option("zoomLevel"),t=_.default.getViewUp(e);t&&!this._isMinZoomLevel(e)&&(this.option("zoomLevel",t),this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate"))))},_isMinZoomLevel:function(e){var t=this._getMinDate(),n=this._getMaxDate();return _.default.sameView(e,t,n)||this.option("minZoomLevel")===e},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!(0,l.isDefined)(this._getRequiredView("next"))),this._navigator.toggleButton("prev",!(0,l.isDefined)(this._getRequiredView("prev")))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),f.default,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(e){x.default.stop(this._$viewsWrapper,!0),e.event.maxLeftOffset=this._getRequiredView("next")?1:0,e.event.maxRightOffset=this._getRequiredView("prev")?1:0},_getRequiredView:function(e){var t,n=this.option("rtlEnabled");return"next"===e?t=n?this._beforeView:this._afterView:"prev"===e&&(t=n?this._afterView:this._beforeView),t},_swipeUpdateHandler:function(e){var t=e.event.offset;(0,m.move)(this._$viewsWrapper,{left:t*this._viewWidth(),top:0}),this._updateNavigatorCaption(t)},_swipeEndHandler:function(e){var t=e.event.targetOffset,n=t?t/Math.abs(t):0;if(0!==n){var i=this._getDateByOffset(-n*this._getRtlCorrection());this._isDateInInvalidRange(i)&&(i=n>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",i)}else this._animateWrapper(0,250)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=(0,i.getWidth)(this.$element())),this._viewWidthValue},_updateNavigatorCaption:function(e){e*=this._getRtlCorrection();var t=this._view;e>.5&&this._beforeView?t=this._beforeView:e<-.5&&this._afterView&&(t=this._afterView),this._navigator.option("text",t.getNavigatorCaption())},_isDateInInvalidRange:function(e){if(!this._view.isBoundary(e)){var t=this._getMinDate(),n=this._getMaxDate(),i=_.default.normalizeDate(e,t,n);return i===t||i===n}},_renderFooter:function(){var e=this.option("showTodayButton");if(e){var t=this._createComponent((0,o.default)("<a>"),c.default,{focusStateEnabled:!1,text:w.default.format("dxCalendar-todayButtonText"),onClick:function(e){this._toTodayView(e)}.bind(this),integrationOptions:{}}).$element().addClass("dx-calendar-today-button");this._$footer=(0,o.default)("<div>").addClass("dx-calendar-footer").append(t),this.$element().append(this._$footer)}this.$element().toggleClass("dx-calendar-with-footer",e)},_renderSubmitElement:function(){this._$submitElement=(0,o.default)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){var t=this._convertToDate(e);this._getSubmitElement().val(v.default.serializeDate(t,"yyyy-MM-dd"))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){return x.default.stop(this._view.$element(),!0),this._popAnimationView(this._view,.6,1,250).promise()},_popAnimationView:function(e,t,n,i){return x.default.animate(e.$element(),{type:"pop",from:{scale:t,opacity:t},to:{scale:n,opacity:n},duration:i})},_navigate:function(e,t){if(0!==e&&1!==Math.abs(e)&&this._isViewAvailable(t)){var n=this._renderSpecificView(t);e>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=n):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=n),this._translateViews()}var i=-this._getRtlCorrection()*(e>0?1:e<0?-1:0)*this._viewWidth();this._$viewsWrapper.position().left!==i&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(e,t):this._animateWrapper(i,250).done(this._wrapperAnimationEndHandler.bind(this,e,t)))},_animateWrapper:function(e,t){return x.default.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:e},duration:t})},_getDate:function(e){return new Date(e)},_toTodayView:function(e){this._saveValueChangeEvent(e.event);var t=new Date;this._isMaxZoomLevel()?this._dateOption("value",t):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._dateOption("value",t),this._animateShowView(),this._preventViewChangeAnimation=!1)},_wrapperAnimationEndHandler:function(e,t){this._rearrangeViews(e),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(t),this._updateAriaId(t)},_rearrangeViews:function(e){var t,n,i;if(0!==e&&(e<0?(t=1,n="_beforeView",i="_afterView"):(t=-1,n="_afterView",i="_beforeView"),this[n])){var o=this[n].option("date");this[i]&&this[i].$element().remove(),e===t?this[i]=this._view:(this[i]=this._renderSpecificView(this._getDateByOffset(t,o)),this._view.$element().remove()),this._view=this[n];var a=this._getDateByOffset(-t,o);this[n]=this._isViewAvailable(a)?this._renderSpecificView(a):null}},_resetLocation:function(){(0,m.move)(this._$viewsWrapper,{left:0,top:0})},_clean:function(){this.callBase(),this._clearViewWidthCache(),delete this._$viewsWrapper,delete this._navigator,delete this._$footer},_clearViewWidthCache:function(){delete this._viewWidthValue},_disposeViews:function(){this._view.$element().remove(),this._beforeView&&this._beforeView.$element().remove(),this._afterView&&this._afterView.$element().remove(),delete this._view,delete this._beforeView,delete this._afterView},_dispose:function(){clearTimeout(this._waitRenderViewTimeout),this.callBase()},_refreshViews:function(){this._disposeViews(),this._renderViews()},_visibilityChanged:function(){this._translateViews()},_focusInHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",this.option("currentDate"))},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",null)},_updateViewsValue:function(e){var t=e?new Date(e):null;this._view.option("value",t),this._beforeView&&this._beforeView.option("value",t),this._afterView&&this._afterView.option("value",t)},_updateAriaSelected:function(e,t){var n;e=null!==(n=e)&&void 0!==n?n:this._dateOption("value");var i=this._view._getCellByDate(t),o=this._view._getCellByDate(e);this.setAria("selected",void 0,i),this.setAria("selected",!0,o),e&&this.option("currentDate").getTime()===e.getTime()&&this._updateAriaId(e)},_updateAriaId:function(e){var t;e=null!==(t=e)&&void 0!==t?t:this.option("currentDate");var n="dx-"+new a.default,i=this._view._getCellByDate(e);this.setAria("id",n,i),this.setAria("activedescendant",n),this._onContouredChanged(n)},_suppressingNavigation:function(e,t){this._suppressNavigation=!0,e.apply(this,t),delete this._suppressNavigation},_optionChanged:function(e){var t=e.value,n=e.previousValue;switch(e.name){case"width":this.callBase(e),this._clearViewWidthCache();break;case"min":case"max":this.min=void 0,this.max=void 0,this._suppressingNavigation(this._updateCurrentDate,[this.option("currentDate")]),this._refreshViews(),this._renderNavigator();break;case"firstDayOfWeek":this._refreshViews(),this._updateButtonsVisibility();break;case"currentDate":this.setAria("id",void 0,this._view._getCellByDate(n)),this._updateCurrentDate(t);break;case"zoomLevel":this.$element().removeClass("dx-calendar-view-"+n),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":t=this._convertToDate(t),n=this._convertToDate(n),this._updateAriaSelected(t,n),this.option("currentDate",(0,l.isDefined)(t)?new Date(t):new Date),this._updateViewsValue(t),this._setSubmitValue(t),this.callBase(e);break;case"onCellClick":this._view.option("onCellClick",t);break;case"onContouredChanged":this._onContouredChanged=this._createActionByOption("onContouredChanged");break;case"disabledDates":case"dateSerializationFormat":case"cellTemplate":case"showTodayButton":this._invalidate();break;case"skipFocusCheck":break;case"_todayDate":this._refreshViews();break;default:this.callBase(e)}},getContouredDate:function(){return this._view.option("contouredDate")}});(0,r.default)("dxCalendar",O);var P=O;t.default=P,e.exports=t.default,e.exports.default=t.default},69221:function(e,t,n){t.default=void 0;var i=s(n(68374)),o=n(13306),a=s(n(14390)),r=s(n(63008));function s(e){return e&&e.__esModule?e:{default:e}}var l=a.default.inherit({_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{onClick:null,onCaptionClick:null,text:""})},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this._clickAction=this._createActionByOption("onClick"),this._captionClickAction=this._createActionByOption("onCaptionClick")},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-calendar-navigator"),this._renderButtons(),this._renderCaption()},_renderButtons:function(){var e=this,t=this.option("rtlEnabled")?-1:1;this._prevButton=this._createComponent((0,i.default)("<a>"),r.default,{focusStateEnabled:!1,icon:"chevronleft",onClick:function(n){e._clickAction({direction:-t,event:n})},integrationOptions:{}});var n=this._prevButton.$element().addClass("dx-calendar-navigator-previous-view").addClass("dx-calendar-navigator-previous-month");this._nextButton=this._createComponent((0,i.default)("<a>"),r.default,{focusStateEnabled:!1,icon:"chevronright",onClick:function(n){e._clickAction({direction:t,event:n})},integrationOptions:{}});var o=this._nextButton.$element().addClass("dx-calendar-navigator-next-view").addClass("dx-calendar-navigator-next-month");this._caption=this._createComponent((0,i.default)("<a>").addClass("dx-calendar-caption-button"),r.default,{focusStateEnabled:!1,onClick:function(t){e._captionClickAction({event:t})},integrationOptions:{}});var a=this._caption.$element();this.$element().append(n,a,o)},_renderCaption:function(){this._caption.option("text",this.option("text"))},toggleButton:function(e,t){var n=this["_"+e+"Button"];n&&(n.option("disabled",t),n.$element().toggleClass("dx-calendar-disabled-navigator-link",t))},_optionChanged:function(e){"text"===e.name?this._renderCaption():this.callBase(e)}});t.default=l,e.exports=t.default,e.exports.default=t.default},92633:function(e,t,n){t.default=void 0;var i=c(n(68374)),o=c(n(15360)),a=n(20576),r=c(n(91198)),s=n(13306),l=c(n(91500)),u=c(n(69434)),d=n(35922);function c(e){return e&&e.__esModule?e:{default:e}}var h={month:o.default.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{firstDayOfWeek:void 0,rowCount:6,colCount:7})},_renderImpl:function(){this.callBase(),this._renderHeader()},_renderBody:function(){this.callBase(),this._$table.find(".".concat("dx-calendar-other-view")).addClass("dx-calendar-other-month")},_renderFocusTarget:a.noop,getCellAriaLabel:function(e){return l.default.format(e,"longdate")},_renderHeader:function(){var e=(0,i.default)("<tr>"),t=(0,i.default)("<thead>").append(e);this._$table.prepend(t);for(var n=0,o=this.option("colCount");n<o;n++)this._renderHeaderCell(n,e)},_renderHeaderCell:function(e,t){var n=this._getDayCaption(this._getFirstDayOfWeek()+e),o=n.full,a=n.abbreviated,r=(0,i.default)("<th>").attr({scope:"col",abbr:o}).text(a);this._appendCell(t,r)},getNavigatorCaption:function(){return l.default.format(this.option("date"),"monthandyear")},_isTodayCell:function(e){var t=this.option("_todayDate")();return r.default.sameDate(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!r.default.dateInRange(e,t,n,"date")},_isOtherView:function(e){return e.getMonth()!==this.option("date").getMonth()},_getCellText:function(e){return l.default.format(e,"d")},_getDayCaption:function(e){var t=e%this.option("colCount");return{full:l.default.getDayNames()[t],abbreviated:l.default.getDayNames("abbreviated")[t]}},_getFirstCellData:function(){var e=r.default.getFirstMonthDate(this.option("date")),t=this._getFirstDayOfWeek()-e.getDay(),n=this.option("colCount");return t>=0&&(t-=n),e.setDate(e.getDate()+t),e},_getNextCellData:function(e){return(e=new Date(e)).setDate(e.getDate()+1),e},_getFirstDayOfWeek:function(){return(0,d.isDefined)(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):l.default.firstDayOfWeekIndex()},_getCellByDate:function(e){return this._$table.find("td[data-value='".concat(u.default.serializeDate(e,r.default.getShortDateFormat()),"']"))},isBoundary:function(e){return r.default.sameMonthAndYear(e,this.option("min"))||r.default.sameMonthAndYear(e,this.option("max"))},_getDefaultDisabledDatesHandler:function(e){return function(t){if(e.some((function(e){return r.default.sameDate(e,t.date)})))return!0}}}),year:o.default.inherit({_getViewName:function(){return"year"},_isTodayCell:function(e){var t=this.option("_todayDate")();return r.default.sameMonthAndYear(e,t)},_isDateOutOfRange:function(e){return!r.default.dateInRange(e,r.default.getFirstMonthDate(this.option("min")),r.default.getLastMonthDate(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(e){return l.default.getMonthNames("abbreviated")[e.getMonth()]},_getFirstCellData:function(){var e=this.option("date"),t=new Date(e);return t.setDate(1),t.setMonth(0),t},_getNextCellData:function(e){return(e=new Date(e)).setMonth(e.getMonth()+1),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),this._$table.find("td[data-value='".concat(u.default.serializeDate(t,r.default.getShortDateFormat()),"']"))},getCellAriaLabel:function(e){return l.default.format(e,"monthandyear")},getNavigatorCaption:function(){return l.default.format(this.option("date"),"yyyy")},isBoundary:function(e){return r.default.sameYear(e,this.option("min"))||r.default.sameYear(e,this.option("max"))}}),decade:o.default.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(e){var t=this.option("_todayDate")();return r.default.sameYear(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!r.default.dateInRange(e.getFullYear(),t&&t.getFullYear(),n&&n.getFullYear())},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!r.default.sameDecade(t,this.option("date"))},_getCellText:function(e){return l.default.format(e,"yyyy")},_getFirstCellData:function(){var e=r.default.getFirstYearInDecade(this.option("date"))-1;return r.default.createDateWithFullYear(e,0,1)},_getNextCellData:function(e){return(e=new Date(e)).setFullYear(e.getFullYear()+1),e},getNavigatorCaption:function(){var e=this.option("date"),t=r.default.getFirstYearInDecade(e),n=new Date(e),i=new Date(e);return n.setFullYear(t),i.setFullYear(t+9),l.default.format(n,"yyyy")+"-"+l.default.format(i,"yyyy")},_isValueOnCurrentView:function(e,t){return r.default.sameDecade(e,t)},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),this._$table.find("td[data-value='".concat(u.default.serializeDate(t,r.default.getShortDateFormat()),"']"))},isBoundary:function(e){return r.default.sameDecade(e,this.option("min"))||r.default.sameDecade(e,this.option("max"))}}),century:o.default.inherit({_getViewName:function(){return"century"},_isTodayCell:function(e){var t=this.option("_todayDate")();return r.default.sameDecade(e,t)},_isDateOutOfRange:function(e){var t=r.default.getFirstYearInDecade(e),n=r.default.getFirstYearInDecade(this.option("min")),i=r.default.getFirstYearInDecade(this.option("max"));return!r.default.dateInRange(t,n,i)},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!r.default.sameCentury(t,this.option("date"))},_getCellText:function(e){var t=l.default.format(e,"yyyy"),n=new Date(e);return n.setFullYear(n.getFullYear()+9),t+" - "+l.default.format(n,"yyyy")},_getFirstCellData:function(){var e=r.default.getFirstDecadeInCentury(this.option("date"))-10;return r.default.createDateWithFullYear(e,0,1)},_getNextCellData:function(e){return(e=new Date(e)).setFullYear(e.getFullYear()+10),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),t.setFullYear(r.default.getFirstYearInDecade(t)),this._$table.find("td[data-value='".concat(u.default.serializeDate(t,r.default.getShortDateFormat()),"']"))},getNavigatorCaption:function(){var e=this.option("date"),t=r.default.getFirstDecadeInCentury(e),n=new Date(e),i=new Date(e);return n.setFullYear(t),i.setFullYear(t+99),l.default.format(n,"yyyy")+"-"+l.default.format(i,"yyyy")},isBoundary:function(e){return r.default.sameCentury(e,this.option("min"))||r.default.sameCentury(e,this.option("max"))}})};t.default=h,e.exports=t.default,e.exports.default=t.default},18859:function(e,t,n){var i;t.default=void 0;var o=((i=n(8448))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},54778:function(e,t,n){t.default=void 0;var i=s(n(68374)),o=s(n(38377)),a=n(95479),r=n(9321);function s(e){return e&&e.__esModule?e:{default:e}}var l=o.default.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,(0,r.attachInstanceToElement)(e,this,this._dispose),this._render()},_render:function(){var e=(0,i.default)("<div>").addClass("dx-item-content-placeholder");this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var n,i,o,a,r,s=this._rawData,l=this._options.fieldGetter(e),u=(n=this._options.watchMethod(),i=function(){return l(s)},o=function(e,n){this._dirty=!0,t(e,n)}.bind(this),{dispose:n(i,r=function(e){a!==e&&(o(e,a),a=e)}),force:function(){r(i())}});this._watchers.push(u)},setDataField:function(){if(this._dirty=!1,(0,a.each)(this._watchers,(function(e,t){t.force()})),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass("dx-state-disabled",!!e),this._updateOwnerFocus(e)},_updateOwnerFocus:function(e){var t=this._options.owner;t&&e&&t._resetItemFocus(this._$element)},_renderVisible:function(e,t){this._$element.toggleClass("dx-state-invisible",void 0!==e&&!e)},_dispose:function(){(0,a.each)(this._watchers,(function(e,t){t.dispose()}))}});l.getInstance=function(e){return(0,r.getInstanceByElement)(e,this)};var u=l;t.default=u,e.exports=t.default,e.exports.default=t.default},25970:function(e,t,n){t.default=void 0;var i,o=(i=n(11050))&&i.__esModule?i:{default:i},a=n(62754),r=n(20576),s=o.default.inherit({_initMarkup:function(){this._deferredItems=[],this.callBase()},_renderItemContent:function(e){var t=new a.Deferred,n=new a.Deferred;this._deferredItems[e.index]=n;var i=this.callBase.call(this,e);return n.done((function(){t.resolve(i)})),t.promise()},_createItemByTemplate:function(e,t){var n=this;return e.render({model:t.itemData,container:t.container,index:t.index,onRendered:function(){n._deferredItems[t.index].resolve()}})},_postProcessRenderItems:r.noop,_renderItemsAsync:function(){var e=this,t=new a.Deferred;return a.when.apply(this,this._deferredItems).done((function(){e._postProcessRenderItems(),t.resolve()})),t.promise()},_clean:function(){this.callBase(),this._deferredItems=[]}});t.default=s,e.exports=t.default,e.exports.default=t.default},19982:function(e,t,n){t.default=void 0;var i=n(58664),o=E(n(68374)),a=E(n(55994)),r=n(20576),s=n(69697),l=n(6415),u=E(n(73349)),d=n(35922),c=n(62754),h=n(13306),f=n(89386),p=n(95479),g=E(n(62414)),m=E(n(73176)),_=E(n(14390)),v=n(39611),y=E(n(93786)),x=E(n(53305)),b=E(n(54778)),w=n(31421),C=E(n(28109)),S=E(n(11699)),k=n(47617),D=n(95429),I=n(49166),T=n(93280);function E(e){return e&&e.__esModule?e:{default:e}}var A="dx-item",O="-content",P="dx-template-wrapper",M=/^([^.]+\[\d+\]\.)+([\w.]+)$/,R="up",B="down",V="left",F="right",L="last",H="first",N=_.default.inherit({_activeStateUnit:"."+A,_supportedKeys:function(){var e=function(e){var t=(0,o.default)(this.option("focusedElement"));t.length&&this._itemClickHandler((0,h.extend)({},e,{target:t.get(0),currentTarget:t.get(0)}))},t=function(e,t){(0,v.isCommandKeyPressed)(t)||(t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t))};return(0,h.extend)(this.callBase(),{space:function(t){t.preventDefault(),e.call(this,t)},enter:e,leftArrow:t.bind(this,V),rightArrow:t.bind(this,F),upArrow:t.bind(this,R),downArrow:t.bind(this,B),pageUp:t.bind(this,R),pageDown:t.bind(this,B),home:t.bind(this,H),end:t.bind(this,L)})},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:C.default.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(e){return e?e.disabled:void 0},visibleExpr:function(e){return e?e.visible:void 0}})},_init:function(){this._compileDisplayGetter(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var e=this.option("displayExpr");this._displayGetter=e?(0,k.compileGetter)(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this._initDefaultItemTemplate(),this.callBase()},_getAnonymousTemplateName:function(){return"item"},_initDefaultItemTemplate:function(){var e=this._getFieldsMap();this._templateManager.addDefaultTemplates({item:new T.BindableTemplate(function(t,n){(0,d.isPlainObject)(n)?this._prepareDefaultItemTemplate(n,t):(e&&(0,d.isFunction)(e.text)&&(n=e.text(n)),t.text(String((0,r.ensureDefined)(n,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),e)})},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(e,t){(0,d.isDefined)(e.text)&&t.text(e.text),(0,d.isDefined)(e.html)&&t.html(e.html)},_initItemsFromMarkup:function(){var e=this,t=(0,s.findTemplates)(this.$element(),"dxItem");if(t.length&&!this.option("items").length){var n=t.map((function(t){var n=t.element,i=t.options;return/\S/.test(n.innerHTML)&&!i.template?i.template=e._prepareItemTemplate(n):(0,o.default)(n).remove(),i}));this.option("items",n)}},_prepareItemTemplate:function(e){var t="tmpl-"+new m.default,n=(0,o.default)(e).detach().clone().removeAttr("data-options").addClass(P);return this._saveTemplate(t,n),t},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(e){if(this.callBase.apply(this,arguments),-1!==(0,f.inArray)(e.target,this._focusTarget())){var t=(0,o.default)(this.option("focusedElement"));if(t.length)this._setFocusedItem(t);else{var n=this._getActiveItem();n.length&&this.option("focusedElement",(0,l.getPublicElement)(n))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=(0,o.default)(this.option("focusedElement"));this._updateFocusedItemState(e,!1)},_getActiveItem:function(e){var t=(0,o.default)(this.option("focusedElement"));if(t.length)return t;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,i=this._getActiveElement(),a=i.length-1;return n<0&&(n=e?a:0),i.eq(n)},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case"pageup":case R:t=this._prevItem(n);break;case"pagedown":case B:t=this._nextItem(n);break;case F:t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case V:t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case H:t=n.first();break;case L:t=n.last();break;default:return!1}0!==t.length&&this.option("focusedElement",(0,l.getPublicElement)(t))},_getVisibleItems:function(e){return(e=e||this._itemElements()).filter(":visible")},_getAvailableItems:function(e){return this._getVisibleItems(e).not(".dx-state-disabled")},_prevItem:function(e){var t=this._getActiveItem(),n=e.index(t),i=e.last(),a=(0,o.default)(e[n-1]),r=this.option("loopItemFocus");return 0===a.length&&r&&(a=i),a},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),i=e.first(),a=(0,o.default)(e[n+1]),r=this.option("loopItemFocus");return 0===a.length&&r&&(a=i),a},_selectFocusedItem:function(e){this.selectItem(e)},_updateFocusedItemState:function(e,t,n){var i=(0,o.default)(e);i.length&&(this._refreshActiveDescendant(),this._refreshItemId(i,n),this._toggleFocusClass(t,i)),this._updateParentActiveDescendant()},_refreshActiveDescendant:function(e){this.setAria("activedescendant",(0,d.isDefined)(this.option("focusedElement"))?this.getFocusedItemId():null,e)},_refreshItemId:function(e,t){!t&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),e):this.setAria("id",null,e)},_setFocusedItem:function(e){e&&e.length&&(this._updateFocusedItemState(e,!0),this.onFocusedItemChanged(this.getFocusedItemId()),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=(0,o.default)(),n=this;return this.itemElements().each((function(){var i=(0,o.default)(this);if(i.data(n._itemDataKey())===e)return t=i,!1})),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,n,i){var o=this._findItemElementByItem(e);o.length&&(this.constructor.ItemClass.getInstance(o).setDataField(t,n)||this._refreshItem(o,e),"disabled"===t&&n&&this._resetItemFocus(o))},_resetItemFocus:function(e){e.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(e){var t=this._getItemData(e),n=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+n,t,null,e)},_updateParentActiveDescendant:r.noop,_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match(M);if(t&&t.length){var n=t[t.length-1],i=e.fullName.replace("."+n,""),a=this.option(i);return void this._itemOptionChanged(a,n,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":case"useItemTextAsTitle":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":this._renderEmptyMessage();break;case"itemTemplate":case"visibleExpr":case"disabledExpr":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"focusedElement":this._updateFocusedItemState(e.previousValue,!1,!0),this._setFocusedItem((0,o.default)(e.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;default:this.callBase(e)}},_invalidate:function(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage:function(){var e=this._dataSource;return this._expectNextPageLoading(),e.pageIndex(1+e.pageIndex()),e.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&t&&this._shouldAppendItems()?(this._renderedItemsCount=t.length,this._isLastPage()&&-1===this._startIndexForAppendedItems||(this.option().items=t.concat(e.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",e.slice())},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer()},_cleanItemContainer:function(){(0,o.default)(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return A},_itemContentClass:function(){return this._itemClass()+O},_selectedItemClass:function(){return"dx-item-selected"},_itemResponseWaitClass:function(){return"dx-item-response-wait"},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return"dxItemData"},_itemIndexKey:function(){return"dxItemIndex"},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass("dx-collection"),this._prepareContent()},_prepareContent:(0,r.deferRenderer)((function(){this._renderContentImpl()})),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=(0,v.addNamespace)(D.name,this.NAME),n=(0,v.addNamespace)(y.default.down,this.NAME),i=this,r=new g.default((function(e){var t=e.event;i._itemPointerDownHandler(t)}));a.default.off(this._itemContainer(),t,e),a.default.off(this._itemContainer(),n,e),a.default.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),a.default.on(this._itemContainer(),n,e,(function(e){r.execute({element:(0,o.default)(e.target),event:e})}))},_itemClickHandler:function(e,t,n){this._itemDXEventHandler(e,"onItemClick",t,n)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=(0,o.default)(e.target),n=t.closest(this._itemElements()),i=this._closestFocusable(t);n.length&&i&&-1!==(0,f.inArray)(i.get(0),this._focusTarget())&&this.option("focusedElement",(0,l.getPublicElement)(n))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(w.focusable))return e;for(e=e.parent();e.length&&!u.default.isDocument(e.get(0));){if(e.is(w.focusable))return e;e=e.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=(0,v.addNamespace)(S.default.name,this.NAME);a.default.off(e,n,t),a.default.on(e,n,t,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(e){this._shouldFireHoldEvent()?this._itemDXEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=(0,v.addNamespace)(I.name,this.NAME);a.default.off(e,n,t),a.default.on(e,n,t,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(e,"onItemContextMenu"):e.cancel=!0},_renderContentImpl:function(){var e=this.option("items")||[];this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_renderItems:function(e){e.length&&(0,p.each)(e,function(e,t){this._renderItem(this._renderedItemsCount+e,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,n,i){var o,a=null!==(o=null==e?void 0:e.item)&&void 0!==o?o:e;n=n||this._itemContainer();var r=this._renderItemFrame(a,t,n,i);this._setElementData(r,t,a),r.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,r);var s=this._getItemContent(r),u=this._renderItemContent({index:a,itemData:t,container:(0,l.getPublicElement)(s),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),d=this;return(0,c.when)(u).done((function(n){d._postprocessRenderItem({itemElement:r,itemContent:n,itemData:t,itemIndex:a}),d._executeItemRenderAction(e,t,(0,l.getPublicElement)(r))})),r},_getItemContent:function(e){var t=e.find(".dx-item-content-placeholder");return t.removeClass("dx-item-content-placeholder"),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&a.default.on(t,D.name,function(n){this._itemEventHandlerByHandler(t,e.onClick,{event:n})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),n=this._getTemplate(t);this._addItemContentClasses(e);var i=(0,o.default)(this._createItemByTemplate(n,e));return i.hasClass(P)?this._renderItemContentByNode(e,i):e.container},_renderItemContentByNode:function(e,t){return(0,o.default)(e.container).replaceWith(t),e.container=(0,l.getPublicElement)(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[A+O,e.contentClass];(0,o.default)(e.container).addClass(t.join(" "))},_appendItemToContainer:function(e,t,n){t.appendTo(e)},_renderItemFrame:function(e,t,n,i){var a=(0,o.default)("<div>");if(new this.constructor.ItemClass(a,this._itemOptions(),t||{}),i&&i.length?i.replaceWith(a):this._appendItemToContainer.call(this,n,a,e),this.option("useItemTextAsTitle")){var r=this._displayGetter?this._displayGetter(t):t;a.attr("title",r)}return a},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},owner:e,fieldGetter:function(t){var n=e.option(t+"Expr");return(0,k.compileGetter)(n)}}},_postprocessRenderItem:r.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([A,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),n)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var t=e.itemData,n=e.templateProperty||this.option("itemTemplateProperty");return t&&t[n]||e.defaultTemplateName},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(e){e=e||this.option("items");var t=this.option("noDataText"),n=!t||e&&e.length||this._isDataSourceLoading();n&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),n||(this._$noData=this._$noData||(0,o.default)("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(t),this.setAria("label",t)),this.$element().toggleClass("dx-empty-collection",!n)},_itemDXEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,(0,h.extend)(n,{event:e}),i)},_itemEventHandler:function(e,t,n,i){var o=this._createActionByOption(t,(0,h.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerByHandler:function(e,t,n,i){var o=this._createAction(t,(0,h.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerImpl:function(e,t,n){var i=this._closestItemElement((0,o.default)(e)),a=(0,h.extend)({},n);return t((0,h.extend)(n,this._extendActionArgs(i),a))},_extendActionArgs:function(e){return{itemElement:(0,l.getPublicElement)(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return(0,o.default)(e).closest(this._itemSelector())},_getItemData:function(e){return(0,o.default)(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var n=0;return e&&(0,p.each)(e,(function(e,o){n+=(0,i.getOuterWidth)(o,t||!1)})),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new m.default),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(x.default);N.ItemClass=b.default;var z=N;t.default=z,e.exports=t.default,e.exports.default=t.default},11050:function(e,t,n){t.default=void 0;var i=_(n(68374)),o=_(n(55994)),a=_(n(19982)),r=_(n(96688)),s=n(13306),l=n(95479),u=n(20576),d=n(35922),c=_(n(14174)),h=n(47617),f=n(85273),p=n(9234),g=_(n(68198)),m=n(62754);function _(e){return e&&e.__esModule?e:{default:e}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var y="dxItemDeleting",x=function(e){return-1!==e},b=a.default.inherit({_setOptionsByReference:function(){this.callBase(),(0,s.extend)(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:-1,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule()},_initKeyGetter:function(){this._keyGetter=(0,h.compileGetter)(this.option("keyExpr"))},_getKeysByItems:function(e){return this._editStrategy.getKeysByItems(e)},_getItemsByKeys:function(e,t){return this._editStrategy.getItemsByKeys(e,t)},_getKeyByIndex:function(e){return this._editStrategy.getKeyByIndex(e)},_getIndexByKey:function(e){return this._editStrategy.getIndexByKey(e)},_getIndexByItemData:function(e){return this._editStrategy.getIndexByItemData(e)},_isKeySpecified:function(){return!(!this._dataSource||!this._dataSource.key())},_getCombinedFilter:function(){return this._dataSource&&this._dataSource.filter()},key:function(){return this.option("keyExpr")?this.option("keyExpr"):this._dataSource&&this._dataSource.key()},keyOf:function(e){var t=e,n=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?t=this._keyGetter(e):n&&(t=n.keyOf(e)),t},_nullValueSelectionSupported:function(){return!1},_initSelectionModule:function(){var e=this,t=e._editStrategy.itemsGetter;this._selection=new g.default({allowNullValue:this._nullValueSelectionSupported(),mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(t){(t.addedItemKeys.length||t.removedItemKeys.length)&&(e.option("selectedItems",e._getItemsByKeys(t.selectedItemKeys,t.selectedItems)),e._updateSelectedItems(t))},filter:e._getCombinedFilter.bind(e),totalCount:function(){var t=e.option("items"),n=e._dataSource;return n&&n.totalCount()>=0?n.totalCount():t.length},key:e.key.bind(e),keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var n=e._dataSource.loadOptions();t.customQueryParams=n.customQueryParams,t.userData=e._dataSource._userData}var i=e._dataSource&&e._dataSource.store();return i?i.load(t).done((function(t){if(!e._disposed){var n=(0,p.normalizeLoadResult)(t).data;e._dataSource._applyMapFunction(n)}})):(new m.Deferred).resolve(this.plainItems())},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){var e=c.default;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),(0,l.each)(e,(function(e,i){var o=t._getIndexByKey(i);x(o)&&n.push(o)})),t._editStrategy.endCache(),n},_initMarkup:function(){var e=this;this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||this._syncSelectionOptions().done((function(){return e._normalizeSelectedItems()})),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){var t,n,i,o;switch(e=e||this._chooseSelectOption()){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,d.isDefined)(t)?(this._setOptionWithoutOptionChange("selectedItems",[t]),this._setOptionWithoutOptionChange("selectedItem",t),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(n=(o=this.option("selectedItems")||[]).length?this._editStrategy.getIndexByItemData(o[0]):-1,this.option("selectionRequired")&&!x(n))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",o[0]),this._setOptionWithoutOptionChange("selectedIndex",n),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(o));break;case"selectedItem":if(t=this.option("selectedItem"),n=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!x(n))return this._syncSelectionOptions("selectedIndex");(0,d.isDefined)(t)?(this._setOptionWithoutOptionChange("selectedItems",[t]),this._setOptionWithoutOptionChange("selectedIndex",n),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",-1));break;case"selectedItemKeys":if(i=this.option("selectedItemKeys"),this.option("selectionRequired")){var a=this._getIndexByKey(i[0]);if(!x(a))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(i)}return(new m.Deferred).resolve().promise()},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e);return(0,d.isDefined)(t)&&t.length||e in this._userOptions}.bind(this);return t("selectedItems")?e="selectedItems":t("selectedItem")?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var e=this.option("selectedItems");if(e.length>1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var t=this._selection.getSelectedItems(),n=void 0===e[0]?t[0]:e[0];return void 0===n&&(n=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&n&&n.items&&(n.items=[n.items[0]]),this._selection.setSelection(this._getKeysByItems([n])),this._setOptionWithoutOptionChange("selectedItems",[n]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(e))}else{var i=this._getKeysByItems(this.option("selectedItems")),o=this._selection.getSelectedItemKeys();this._compareKeys(o,i)||this._selection.setSelection(i)}return(new m.Deferred).resolve().promise()},_itemClickHandler:function(e){var t=arguments,n=this,o=(new m.Deferred).resolve(),a=this.callBase;this._createAction(function(e){var t;o=null!==(t=this._itemSelectHandler(e.event))&&void 0!==t?t:o}.bind(this),{validatingTargetName:"itemElement"})({itemElement:(0,i.default)(e.currentTarget),event:e}),o.always((function(){a.apply(n,t)}))},_itemSelectHandler:function(e){var t,n;if(this.option("selectionByClick")){var i=e.currentTarget;return this.isItemSelected(i)?this.unselectItem(e.currentTarget):n=this.selectItem(e.currentTarget),null===(t=n)||void 0===t?void 0:t.promise()}},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var t=(0,i.default)(e.itemElement),n=this._editStrategy.getNormalizedIndex(t),o=this._isItemSelected(n);this._processSelectableItem(t,o)}},_processSelectableItem:function(e,t){e.toggleClass(this._selectedItemClass(),t),this._setAriaSelected(e,String(t))},_updateSelectedItems:function(e){var t=this,n=e.addedItemKeys,i=e.removedItemKeys;if(t._rendered&&(n.length||i.length)){var o=t._selectionChangePromise;if(!t._rendering){var a,r=[],s=[];t._editStrategy.beginCache();for(var l=0;l<n.length;l++)a=t._getIndexByKey(n[l]),r.push(a),t._addSelection(a);for(var u=0;u<i.length;u++)a=t._getIndexByKey(i[u]),s.push(a),t._removeSelection(a);t._editStrategy.endCache(),t._updateSelection(r,s)}(0,m.when)(o).done((function(){t._fireSelectionChangeEvent(e.addedItems,e.removedItems)}))}},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_updateSelection:u.noop,_setAriaSelected:function(e,t){this.setAria("selected",t,e)},_removeSelection:function(e){var t=this._editStrategy.getItemElement(e);x(e)&&(this._processSelectableItem(t,!1),o.default.triggerHandler(t,"stateChanged",!1))},_addSelection:function(e){var t=this._editStrategy.getItemElement(e);x(e)&&(this._processSelectableItem(t,!0),o.default.triggerHandler(t,"stateChanged",!0))},_isItemSelected:function(e){var t=this._getKeyByIndex(e);return this._selection.isItemSelected(t,{checkPending:!0})},_optionChanged:function(e){var t=this;switch(e.name){case"selectionMode":this._invalidate();break;case"dataSource":(!e.value||Array.isArray(e.value)&&!e.value.length)&&this.option("selectedItemKeys",[]),this.callBase(e);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(e.name).done((function(){return t._normalizeSelectedItems()}));break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(e)}},_clearSelectedItems:function(){this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(e){if(e.data(y))return(new m.Deferred).resolve().promise();e.data(y,!0);var t=new m.Deferred,n={cancel:!1},i=this._itemEventHandler(e,"onItemDeleting",n,{excludeValidators:["disabled","readOnly"]});return(0,m.when)(i).always(function(o){var a=!i,r=!a&&"resolved"===i.state(),s=!!arguments.length,l=a||r&&!s||r&&o;(0,m.when)((0,m.fromPromise)(n.cancel)).always((function(){e.data(y,!1)})).done((function(e){l&&!e?t.resolve():t.reject()})).fail(t.reject)}.bind(this)),t.promise()},_deleteItemFromDS:function(e){if(!this._dataSource)return(new m.Deferred).resolve().promise();var t=new m.Deferred,n=this.option("disabled"),i=this._dataSource.store();if(this.option("disabled",!0),!i.remove)throw r.default.Error("E1011");return i.remove(i.keyOf(this._getItemData(e))).done((function(e){void 0!==e?t.resolve():t.reject()})).fail((function(){t.reject()})),t.always(function(){this.option("disabled",n)}.bind(this)),t},_tryRefreshLastPage:function(){var e=new m.Deferred;return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done((function(){e.resolve()})),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(e){var t=this._getKeyByIndex(e);this._selection.deselect([t])},_updateIndicesAfterIndex:function(e){for(var t=this._itemElements(),n=e+1;n<t.length;n++)(0,i.default)(t[n]).data(this._itemIndexKey(),n-1)},_simulateOptionChange:function(e){var t=this.option(e);t instanceof f.DataSource||this._optionChangedAction({name:e,fullName:e,value:t})},isItemSelected:function(e){return this._isItemSelected(this._editStrategy.getNormalizedIndex(e))},selectItem:function(e){if("none"!==this.option("selectionMode")){var t=this._editStrategy.getNormalizedIndex(e);if(x(t)){var n=this._getKeyByIndex(t);if(!this._selection.isItemSelected(n)){if("single"===this.option("selectionMode"))return this._selection.setSelection([n]);var i=this.option("selectedItemKeys")||[];return this._selection.setSelection([].concat(function(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i),[n]),[n])}}}},unselectItem:function(e){var t=this._editStrategy.getNormalizedIndex(e);if(x(t)){var n=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&n.length<=1)){var i=this._getKeyByIndex(t);this._selection.isItemSelected(i,{checkPending:!0})&&this._selection.deselect([i])}}},_deleteItemElementByIndex:function(e){this._updateSelectionAfterDelete(e),this._updateIndicesAfterIndex(e),this._editStrategy.deleteItemAtIndex(e)},_afterItemElementDeleted:function(e,t){var n=this._dataSource?"dataSource":"items";this._simulateOptionChange(n),this._itemEventHandler(e,"onItemDeleted",t,{beforeExecute:function(){e.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem:function(e){var t=this,n=new m.Deferred,i=this._editStrategy.getItemElement(e),o=this._editStrategy.getNormalizedIndex(e),a=this._itemResponseWaitClass();return x(o)?this._waitDeletingPrepare(i).done((function(){i.addClass(a);var e=t._extendActionArgs(i);t._deleteItemFromDS(i).done((function(){t._deleteItemElementByIndex(o),t._afterItemElementDeleted(i,e),t._tryRefreshLastPage().done((function(){n.resolveWith(t)}))})).fail((function(){i.removeClass(a),n.rejectWith(t)}))})).fail((function(){n.rejectWith(t)})):n.rejectWith(t),n.promise()},reorderItem:function(e,t){var n=new m.Deferred,i=this,o=this._editStrategy,a=o.getItemElement(e),r=o.getItemElement(t),s=o.getNormalizedIndex(e),l=o.getNormalizedIndex(t),u=this._dataSource?"dataSource":"items";return x(s)&&x(l)&&s!==l?n.resolveWith(this):n.rejectWith(this),n.promise().done((function(){r[o.itemPlacementFunc(s,l)](a),o.moveItemAtIndexToIndex(s,l),this._updateIndicesAfterIndex(s),i.option("selectedItems",i._getItemsByKeys(i._selection.getSelectedItemKeys(),i._selection.getSelectedItems())),"items"===u&&i._simulateOptionChange(u),i._itemEventHandler(a,"onItemReordered",{fromIndex:o.getIndex(s),toIndex:o.getIndex(l)},{excludeValidators:["disabled","readOnly"]})}))}});t.default=b,e.exports=t.default,e.exports.default=t.default},41042:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=l(n(38377)),a=n(20576),r=l(n(73349)),s=n(35922);function l(e){return e&&e.__esModule?e:{default:e}}var u=o.default.abstract,d=o.default.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:u,getItemDataByIndex:u,getKeysByItems:u,getItemsByKeys:u,itemsGetter:u,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?(0,a.equalByValue)(e,t):e===t},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:u,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){if(this._isNormalizedItemIndex(e))return this._getItemByNormalizedIndex(e);if(this._isItemIndex(e))return this._getItemByNormalizedIndex(this._normalizeItemIndex(e));if(this._isNode(e))return(0,i.default)(e);var t=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(t)},_isNode:function(e){return r.default.isNode(e&&(0,s.isRenderer)(e)?e.get(0):e)},deleteItemAtIndex:u,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e<t?"after":"before"},moveItemAtIndexToIndex:u,_isNormalizedItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_isItemIndex:u,_getNormalizedItemIndex:u,_normalizeItemIndex:u,_denormalizeItemIndex:u,_getItemByNormalizedIndex:u,_itemsFromSameParent:u});t.default=d,e.exports=t.default,e.exports.default=t.default},14174:function(e,t,n){t.default=void 0;var i,o=n(89386);function a(e){return(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})(e)}var r=((i=n(41042))&&i.__esModule?i:{default:i}).default.inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget);return t?this.getIndexByKey(t(e)):(0,o.inArray)(e,this._getPlainItems())},getItemDataByIndex:function(e){return this._getPlainItems()[e]},deleteItemAtIndex:function(e){this._getPlainItems().splice(e,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget),n=e;if(t){n=[];for(var i=0;i<e.length;i++)n.push(t(e[i]))}return n},getIndexByKey:function(e){var t=this._cache,n=t&&t.keys||this.getKeysByItems(this._getPlainItems());if(t&&!t.keys&&(t.keys=n),"object"!==a(e))return n.indexOf(e);for(var i=0,o=n.length;i<o;i++)if(this._equalKeys(e,n[i]))return i;return-1},getItemsByKeys:function(e,t){return(t||e).slice()},moveItemAtIndexToIndex:function(e,t){var n=this._getPlainItems(),i=n[e];n.splice(e,1),n.splice(t,0,i)},_isItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_getNormalizedItemIndex:function(e){return this._collectionWidget._itemElements().index(e)},_normalizeItemIndex:function(e){return e},_denormalizeItemIndex:function(e){return e},_getItemByNormalizedIndex:function(e){return e>-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});t.default=r,e.exports=t.default,e.exports.default=t.default},69010:function(e,t,n){t.default=void 0;var i=f(n(68374)),o=f(n(11050)),a=n(13306),r=n(95479),s=n(60637),l=n(16454),u=n(62754),d=n(34671),c=f(n(73349)),h=n(20576);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=o.default.inherit({_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var e=this;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=function(t){var n=e._dataSource;n&&!n.isLoaded()&&(e._correctionIndex=0),e._correctionIndex&&t.storeLoadOptions&&(t.storeLoadOptions.skip+=e._correctionIndex)},this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(e){var t=this,n=(0,i.default)(),o=this.key();return this.itemElements().each((function(a,r){var s=(0,i.default)(r),u=t._getItemData(s);if(o?(0,l.keysEqual)(o,t.keyOf(u),e):t._isItemEquals(u,e))return n=s,!1})),n},_dataSourceChangedHandler:function(e,t){null!=t&&t.changes?this._modifyByChanges(t.changes):(this.callBase(e,t),this._refreshItemsCache())},_isItemEquals:function(e,t){e&&e.__dx_key__&&(e=e.data);try{return JSON.stringify(e)===JSON.stringify(t)}catch(n){return e===t}},_isItemStrictEquals:function(e,t){return this._isItemEquals(e,t)},_shouldAddNewGroup:function(e,t){var n=!1;return this.option("grouped")&&(e.length||(n=!0),(0,r.each)(e,(function(e,i){"insert"===i.type&&(n=!0,(0,r.each)(t,(function(e,t){if(void 0!==i.data.key&&i.data.key===t.key)return n=!1,!1})))}))),n},_partialRefresh:function(){var e=this;if(this.option("repaintChangesOnly")){var t=(0,d.findChanges)(this._itemsCache,this._editStrategy.itemsGetter(),(function(t){return t&&void 0!==t.__dx_key__?t.__dx_key__:e.keyOf(t)}),this._isItemStrictEquals.bind(this));if(t&&this._itemsCache.length&&!this._shouldAddNewGroup(t,this._itemsCache))return this._modifyByChanges(t,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var e=this._editStrategy.itemsGetter();try{this._itemsCache=(0,a.extend)(!0,[],e),this.key()||(this._itemsCache=this._itemsCache.map((function(t,n){var i;return p(i={},"__dx_key__",e[n]),p(i,"data",t),i})))}catch(t){this._itemsCache=(0,a.extend)([],e)}}},_dispose:function(){this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(e,t,n,i){var o=this;if(i)this._renderItem(n.index,n.data,null,this._findItemElementByKey(n.key));else{var a=t[(0,s.indexByKey)(e,t,n.key)];a&&(0,s.update)(e,t,n.key,n.data).done((function(){o._renderItem(t.indexOf(a),a,null,o._findItemElementByKey(n.key))}))}},_insertByChange:function(e,t,n,i){var o=this;(0,u.when)(i||(0,s.insert)(e,t,n.data,n.index)).done((function(){var e;o._beforeItemElementInserted(n);var i=o._getItemContainer(n.data);o._renderItem(null!==(e=n.index)&&void 0!==e?e:t.length,n.data,i),o._afterItemElementInserted(),o._correctionIndex++}))},_getItemContainer:function(e){return this._itemContainer()},_updateSelectionAfterRemoveByChange:function(e){var t=this.option("selectedIndex");t>e?this.option("selectedIndex",t-1):t===e&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(e){var t=this.option("selectedIndex");e.index<=t&&this.option("selectedIndex",t+1)},_afterItemElementInserted:h.noop,_removeByChange:function(e,t,n,i){var o=this,a=i?n.index:(0,s.indexByKey)(e,t,n.key);if(i?n.oldItem:t[a]){var r=this._findItemElementByKey(n.key),l=this._extendActionArgs(r);this._waitDeletingPrepare(r).done((function(){i?(o._updateIndicesAfterIndex(a-1),o._afterItemElementDeleted(r,l),o._updateSelectionAfterRemoveByChange(a)):(o._deleteItemElementByIndex(a),o._afterItemElementDeleted(r,l))})),this._correctionIndex--}},_modifyByChanges:function(e,t){var n=this,i=this._editStrategy.itemsGetter(),o={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},a=this._dataSource,r=a&&a.paginate(),s=a&&a.group();(r||s)&&(e=e.filter((function(e){return"insert"!==e.type||void 0!==e.index}))),e.forEach((function(e){return n["_".concat(e.type,"ByChange")](o,i,e,t)})),this._renderedItemsCount=i.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(e,t,n){var i=e.children(this._itemSelector()).get(n);c.default.insertElement(e.get(0),t.get(0),i)},_optionChanged:function(e){switch(e.name){case"items":this._partialRefresh(e.value)||this.callBase(e);break;case"dataSource":this.option("repaintChangesOnly")&&e.value||this.option("items",[]),this.callBase(e);break;case"repaintChangesOnly":break;default:this.callBase(e)}}});t.default=g,e.exports=t.default,e.exports.default=t.default},4278:function(e,t,n){var i;t.default=void 0;var o=((i=n(81738))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},81738:function(e,t,n){t.default=void 0;var i=d(n(68374)),o=d(n(55994)),a=d(n(52752)),r=d(n(89838)),s=n(13306),l=d(n(99393)),u=d(n(44687));function d(e){return e&&e.__esModule?e:{default:e}}var c="dx-colorbox-color-is-not-defined",h=r.default.prototype,f={makeTransparentBackground:h._makeTransparentBackground.bind(h),makeRgba:h._makeRgba.bind(h)},p=u.default.inherit({_supportedKeys:function(){var e=function(e){if(e.stopPropagation(),this.option("opened"))return e.preventDefault(),!0};return(0,s.extend)(this.callBase(),{tab:function(e){this.option("opened")&&(e.preventDefault(),this._colorView._rgbInputs[0].focus())},enter:this._enterKeyHandler,leftArrow:e,rightArrow:e,upArrow:function(e){return this.option("opened")?!e.altKey||(this.close(),!1):(e.preventDefault(),!1)},downArrow:function(e){return this.option("opened")||e.altKey?!(!this.option("opened")&&e.altKey&&(this._validatedOpening(),1)):(e.preventDefault(),!1)}})},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{editAlphaChannel:!1,applyValueMode:"useButtons",keyStep:1,fieldTemplate:null,buttonsLocation:"bottom after"})},_popupHidingHandler:function(){this.callBase(),"useButtons"===this.option("applyValueMode")&&this._updateColorViewValue(this.option("value"))},_popupConfig:function(){return(0,s.extend)(this.callBase(),{width:""})},_contentReadyHandler:function(){this._createColorView(),this._addPopupBottomClasses()},_addPopupBottomClasses:function(){var e=this._popup.bottomToolbar();e&&(e.addClass("dx-colorview-container-cell").addClass("dx-colorview-button-cell").find(".dx-toolbar-items-container").addClass("dx-colorview-buttons-container"),e.find(".dx-popup-done").addClass("dx-colorview-apply-button"),e.find(".dx-popup-cancel").addClass("dx-colorview-cancel-button"))},_createColorView:function(){this._popup.$overlayContent().addClass("dx-colorbox-overlay");var e=(0,i.default)("<div>").appendTo(this._popup.$content());this._colorView=this._createComponent(e,r.default,this._colorViewConfig()),this._colorView.registerKeyHandler("escape",this._escapeHandler.bind(this)),o.default.on(e,"focus",function(){this.focus()}.bind(this))},_escapeHandler:function(){this.close(),this.focus()},_applyNewColor:function(e){this.option("value",e),e&&f.makeTransparentBackground(this._$colorResultPreview,e),this._colorViewEnterKeyPressed&&(this.close(),this._colorViewEnterKeyPressed=!1)},_colorViewConfig:function(){var e=this;return{value:e.option("value"),matchValue:e.option("value"),editAlphaChannel:e.option("editAlphaChannel"),applyValueMode:e.option("applyValueMode"),focusStateEnabled:e.option("focusStateEnabled"),stylingMode:this.option("stylingMode"),onEnterKeyPressed:function(t){var n=t.event;e._colorViewEnterKeyPressed=!0,e._colorView.option("value")!==e.option("value")&&(e._saveValueChangeEvent(n),e._applyNewColor(e._colorView.option("value")),e.close())},onValueChanged:function(t){var n=t.event,i=t.value,o=t.previousValue,a="instantly"===e.option("applyValueMode"),r=f.makeRgba(i)===o,s=a||e._colorViewEnterKeyPressed,l=e._shouldSaveEmptyValue;r||!s||l||(n&&e._saveValueChangeEvent(n),e._applyNewColor(i))}}},_enterKeyHandler:function(e){var t=this._input().val(),n=this.option("value"),i=this.option("editAlphaChannel")?f.makeRgba(n):n;if(!t)return!1;if(!new a.default(t).colorIsInvalid){if(t!==i&&(this._applyColorFromInput(t),this._saveValueChangeEvent(e),this.option("value",this.option("editAlphaChannel")?f.makeRgba(t):t)),this._colorView){var o=this._colorView.option("value");n!==o&&(this._saveValueChangeEvent(e),this.option("value",o))}return this.close(),!1}this._input().val(i)},_applyButtonHandler:function(e){this._saveValueChangeEvent(e.event),this._applyNewColor(this._colorView.option("value")),this.callBase()},_cancelButtonHandler:function(){this._resetInputValue(),this.callBase()},_getKeyboardListeners:function(){return this.callBase().concat([this._colorView])},_init:function(){this.callBase()},_initMarkup:function(){this.$element().addClass("dx-colorbox"),this.callBase()},_renderInput:function(){this.callBase(),this._input().addClass("dx-colorbox-input"),this._renderColorPreview()},_renderColorPreview:function(){this.$element().wrapInner((0,i.default)("<div>").addClass("dx-colorbox-input-container")),this._$colorBoxInputContainer=this.$element().children().eq(0),this._$colorResultPreview=(0,i.default)("<div>").addClass("dx-colorbox-color-result-preview").appendTo(this._$textEditorInputContainer),this.option("value")?f.makeTransparentBackground(this._$colorResultPreview,this.option("value")):this._$colorBoxInputContainer.addClass(c)},_renderValue:function(){var e=this.option("value"),t=null!==e&&this.option("editAlphaChannel")?f.makeRgba(e):e;return this.option("text",t),this.callBase()},_resetInputValue:function(){var e=this._input(),t=this.option("value");e.val(t),this._updateColorViewValue(t)},_updateColorViewValue:function(e){this._colorView&&this._colorView.option({value:e,matchValue:e})},_valueChangeEventHandler:function(e){var t=this._input().val();t&&(t=this._applyColorFromInput(t),this._updateColorViewValue(t)),this.callBase(e,t)},_applyColorFromInput:function(e){return new a.default(e).colorIsInvalid&&(this._resetInputValue(),e=this.option("value")),e},_clean:function(){this.callBase(),delete this._shouldSaveEmptyValue},_optionChanged:function(e){var t=e.value,n=e.name;switch(n){case"value":this._$colorBoxInputContainer.toggleClass(c,!t),t?f.makeTransparentBackground(this._$colorResultPreview,t):this._$colorResultPreview.removeAttr("style"),null===t&&(this._shouldSaveEmptyValue=!0),this._updateColorViewValue(t),this._shouldSaveEmptyValue=!1,this.callBase(e);break;case"applyButtonText":case"cancelButtonText":this.callBase(e),this._popup&&this._addPopupBottomClasses();break;case"editAlphaChannel":case"keyStep":this._colorView&&this._colorView.option(n,t);break;default:this.callBase(e)}}});(0,l.default)("dxColorBox",p);var g=p;t.default=g,e.exports=t.default,e.exports.default=t.default},89838:function(e,t,n){t.default=void 0;var i=n(58664),o=v(n(68374)),a=v(n(55994)),r=n(31648),s=n(13306),l=v(n(52752)),u=v(n(28109)),d=v(n(20530)),c=v(n(99393)),h=v(n(96452)),f=v(n(34171)),p=v(n(29837)),g=v(n(42160)),m=n(39611),_=n(95429);function v(e){return e&&e.__esModule?e:{default:e}}var y="dx-colorview-container-row",x="dx-colorview-palette-gradient",b="dx-colorview-palette-gradient-white",w="dx-colorview-palette-gradient-black",C="dx-colorview-color-preview",S="dx-colorview-color-preview-color-current",k="dx-colorview-color-preview-color-new",D=h.default.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e){var n=100/t._paletteWidth;return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1,Math.round(n)},i=function(e){var n=t._currentColor.hsv.s+e;n>100?n=100:n<0&&(n=0),t._currentColor.hsv.s=n,l()},o=function(e){var n=100/t._paletteHeight;return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1,Math.round(n)},a=function(e){var n=t._currentColor.hsv.v+e;n>100?n=100:n<0&&(n=0),t._currentColor.hsv.v=n,l()};function l(){t._placePaletteHandle(),t._updateColorFromHsv(t._currentColor.hsv.h,t._currentColor.hsv.s,t._currentColor.hsv.v)}var u=function(e){var n=360/(t._hueScaleWrapperHeight-t._hueScaleHandleHeight);return e.shiftKey&&(n*=t.option("keyStep")),n>1?n:1},d=function(e){t._currentColor.hsv.h+=e,t._placeHueScaleHandle();var n=(0,r.locate)(t._$hueScaleHandle);t._updateColorHue(n.top+t._hueScaleHandleHeight/2)},c=function(n){var i=1/t._alphaChannelScaleWorkWidth;return n.shiftKey&&(i*=t.option("keyStep")),i=i>.01?i:.01,e?-i:i},h=function(e){t._currentColor.a+=e,t._placeAlphaChannelHandle();var n=(0,r.locate)(t._$alphaChannelHandle);t._calculateColorTransparencyByScaleWidth(n.left+t._alphaChannelHandleWidth/2)};return(0,s.extend)(this.callBase(),{upArrow:function(e){e.preventDefault(),e.stopPropagation(),(0,m.isCommandKeyPressed)(e)?this._currentColor.hsv.h<=360&&!this._isTopColorHue&&(this._saveValueChangeEvent(e),d(u(e))):this._currentColor.hsv.v<100&&(this._saveValueChangeEvent(e),a(o(e)))},downArrow:function(e){e.preventDefault(),e.stopPropagation(),(0,m.isCommandKeyPressed)(e)?this._currentColor.hsv.h>=0&&(this._isTopColorHue&&(this._currentColor.hsv.h=360),this._saveValueChangeEvent(e),d(-u(e))):this._currentColor.hsv.v>0&&(this._saveValueChangeEvent(e),a(-o(e)))},rightArrow:function(t){t.preventDefault(),t.stopPropagation(),(0,m.isCommandKeyPressed)(t)?(e?this._currentColor.a<1:this._currentColor.a>0&&this.option("editAlphaChannel"))&&(this._saveValueChangeEvent(t),h(-c(t))):this._currentColor.hsv.s<100&&(this._saveValueChangeEvent(t),i(n(t)))},leftArrow:function(t){t.preventDefault(),t.stopPropagation(),(0,m.isCommandKeyPressed)(t)?(e?this._currentColor.a>0:this._currentColor.a<1&&this.option("editAlphaChannel"))&&(this._saveValueChangeEvent(t),h(c(t))):this._currentColor.hsv.s>0&&(this._saveValueChangeEvent(t),i(-n(t)))},enter:function(e){this._fireEnterKeyPressed(e)}})},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{value:null,matchValue:null,onEnterKeyPressed:void 0,editAlphaChannel:!1,keyStep:1,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===d.default.real().deviceType&&!d.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initColorAndOpacity(),this._initEnterKeyPressedAction()},_initEnterKeyPressedAction:function(){this._onEnterKeyPressedAction=this._createActionByOption("onEnterKeyPressed")},_fireEnterKeyPressed:function(e){this._onEnterKeyPressedAction&&this._onEnterKeyPressedAction({event:e})},_initColorAndOpacity:function(){this._setCurrentColor(this.option("value"))},_setCurrentColor:function(e){e=e||"#000000";var t=new l.default(e);t.colorIsInvalid?this.option("value",this._currentColor.baseColor):this._currentColor&&this._makeRgba(this._currentColor)===this._makeRgba(t)||(this._currentColor=t,this._$currentColor&&this._makeTransparentBackground(this._$currentColor,t))},_setBaseColor:function(e){var t=e||"#000000",n=new l.default(t);n.colorIsInvalid||this._makeRgba(this.option("matchValue")!==this._makeRgba(n))&&this._$baseColor&&this._makeTransparentBackground(this._$baseColor,n)},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-colorview"),this._renderColorPickerContainer()},_render:function(){this.callBase(),this._renderPalette(),this._renderHueScale(),this._renderControlsContainer(),this._renderControls(),this._renderAlphaChannelElements()},_makeTransparentBackground:function(e,t){t instanceof l.default||(t=new l.default(t)),e.css("backgroundColor",this._makeRgba(t))},_makeRgba:function(e){return e instanceof l.default||(e=new l.default(e)),"rgba("+[e.r,e.g,e.b,e.a].join(", ")+")"},_renderValue:function(){this.callBase(this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this.option("value"))},_renderColorPickerContainer:function(){var e=this.$element();this._$colorPickerContainer=(0,o.default)("<div>").addClass("dx-colorview-container").appendTo(e),this._renderHtmlRows()},_renderHtmlRows:function(e){var t=this._$colorPickerContainer.find("."+y),n=t.length,i=n-(this.option("editAlphaChannel")?2:1);if(i>0&&t.eq(-1).remove(),i<0){i=Math.abs(i);var a,r=[];for(a=0;a<i;a++)r.push((0,o.default)("<div>").addClass(y));if(n)for(a=0;a<r.length;a++)t.eq(0).after(r[a]);else this._$colorPickerContainer.append(r)}},_renderHtmlCellInsideRow:function(e,t,n){return(0,o.default)("<div>").addClass("dx-colorview-container-cell").addClass(n).appendTo(t.find("."+y).eq(e))},_renderPalette:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-palette-cell"),t=(0,o.default)("<div>").addClass([x,b].join(" ")),n=(0,o.default)("<div>").addClass([x,w].join(" "));this._$palette=(0,o.default)("<div>").addClass("dx-colorview-palette").css("backgroundColor",this._currentColor.getPureColor().toHex()).appendTo(e),this._paletteHeight=(0,i.getHeight)(this._$palette),this._paletteWidth=(0,i.getWidth)(this._$palette),this._renderPaletteHandle(),this._$palette.append([t,n])},_renderPaletteHandle:function(){var e=this;this._$paletteHandle=(0,o.default)("<div>").addClass("dx-colorview-palette-handle").appendTo(this._$palette),this._createComponent(this._$paletteHandle,g.default,{contentTemplate:null,boundary:this._$palette,allowMoveByClick:!0,boundOffset:function(){return-this._paletteHandleHeight/2}.bind(this),onDragMove:function(t){var n=t.event,i=(0,r.locate)(e._$paletteHandle);e._updateByDrag=!0,e._saveValueChangeEvent(n),e._updateColorFromHsv(e._currentColor.hsv.h,e._calculateColorSaturation(i),e._calculateColorValue(i))}}),this._paletteHandleWidth=(0,i.getWidth)(this._$paletteHandle),this._paletteHandleHeight=(0,i.getHeight)(this._$paletteHandle),this._placePaletteHandle()},_placePaletteHandle:function(){(0,r.move)(this._$paletteHandle,{left:Math.round(this._paletteWidth*this._currentColor.hsv.s/100-this._paletteHandleWidth/2),top:Math.round(this._paletteHeight-this._paletteHeight*this._currentColor.hsv.v/100-this._paletteHandleHeight/2)})},_calculateColorValue:function(e){var t=Math.floor(e.top+this._paletteHandleHeight/2);return 100-Math.round(100*t/this._paletteHeight)},_calculateColorSaturation:function(e){var t=Math.floor(e.left+this._paletteHandleWidth/2);return Math.round(100*t/this._paletteWidth)},_updateColorFromHsv:function(e,t,n){var i=this._currentColor.a;this._currentColor=new l.default("hsv("+[e,t,n].join(",")+")"),this._currentColor.a=i,this._updateColorParamsAndColorPreview(),this.applyColor()},_renderHueScale:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-hue-scale-cell");this._$hueScaleWrapper=(0,o.default)("<div>").addClass("dx-colorview-hue-scale-wrapper").appendTo(e),this._$hueScale=(0,o.default)("<div>").addClass("dx-colorview-hue-scale").appendTo(this._$hueScaleWrapper),this._hueScaleHeight=(0,i.getHeight)(this._$hueScale),this._hueScaleWrapperHeight=(0,i.getOuterHeight)(this._$hueScaleWrapper),this._renderHueScaleHandle()},_renderHueScaleHandle:function(){var e=this;this._$hueScaleHandle=(0,o.default)("<div>").addClass("dx-colorview-hue-scale-handle").appendTo(this._$hueScaleWrapper),this._createComponent(this._$hueScaleHandle,g.default,{contentTemplate:null,boundary:this._$hueScaleWrapper,allowMoveByClick:!0,dragDirection:"vertical",onDragMove:function(t){var n=t.event;e._updateByDrag=!0,e._saveValueChangeEvent(n),e._updateColorHue((0,r.locate)(e._$hueScaleHandle).top+e._hueScaleHandleHeight/2)}}),this._hueScaleHandleHeight=(0,i.getHeight)(this._$hueScaleHandle),this._placeHueScaleHandle()},_placeHueScaleHandle:function(){var e=this._hueScaleWrapperHeight,t=this._hueScaleHandleHeight,n=(e-t)*(360-this._currentColor.hsv.h)/360;e<n+t&&(n=e-t),n<0&&(n=0),(0,r.move)(this._$hueScaleHandle,{top:Math.round(n)})},_updateColorHue:function(e){var t=360-Math.round(360*(e-this._hueScaleHandleHeight/2)/(this._hueScaleWrapperHeight-this._hueScaleHandleHeight)),n=this._currentColor.hsv.s,i=this._currentColor.hsv.v;this._isTopColorHue=!1,(t=t<0?0:t)>=360&&(this._isTopColorHue=!0,t=0),this._updateColorFromHsv(t,n,i),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex())},_renderControlsContainer:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer);this._$controlsContainer=(0,o.default)("<div>").addClass("dx-colorview-controls-container").appendTo(e)},_renderControls:function(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview:function(){var e=(0,o.default)("<div>").addClass("dx-colorview-color-preview-container").appendTo(this._$controlsContainer),t=(0,o.default)("<div>").addClass("dx-colorview-color-preview-container-inner").appendTo(e);this._$currentColor=(0,o.default)("<div>").addClass([C,k].join(" ")),this._$baseColor=(0,o.default)("<div>").addClass([C,S].join(" ")),this._makeTransparentBackground(this._$baseColor,this.option("matchValue")),this._makeTransparentBackground(this._$currentColor,this._currentColor),t.append([this._$baseColor,this._$currentColor])},_renderAlphaChannelElements:function(){this.option("editAlphaChannel")&&(this._$colorPickerContainer.find("."+y).eq(1).addClass("dx-colorview-alpha-channel-row"),this._renderAlphaChannelScale(),this._renderAlphaChannelInput())},_renderRgbInputs:function(){this._rgbInputsWithLabels=[this._renderEditorWithLabel({editorType:f.default,value:this._currentColor.r,onValueChanged:this._updateColor.bind(this,!1),labelText:"R",labelAriaText:u.default.format("dxColorView-ariaRed"),labelClass:"dx-colorview-label-red"}),this._renderEditorWithLabel({editorType:f.default,value:this._currentColor.g,onValueChanged:this._updateColor.bind(this,!1),labelText:"G",labelAriaText:u.default.format("dxColorView-ariaGreen"),labelClass:"dx-colorview-label-green"}),this._renderEditorWithLabel({editorType:f.default,value:this._currentColor.b,onValueChanged:this._updateColor.bind(this,!1),labelText:"B",labelAriaText:u.default.format("dxColorView-ariaBlue"),labelClass:"dx-colorview-label-blue"})],this._$controlsContainer.append(this._rgbInputsWithLabels),this._rgbInputs=[this._rgbInputsWithLabels[0].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[1].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[2].find(".dx-numberbox").dxNumberBox("instance")]},_renderEditorWithLabel:function(e){var t=this,n=(0,o.default)("<div>"),i=(0,o.default)("<label>").addClass(e.labelClass).text(e.labelText+":").append(n);a.default.off(i,_.name),a.default.on(i,_.name,(function(e){e.preventDefault()}));var r=e.editorType,l=(0,s.extend)({value:e.value,onValueChanged:e.onValueChanged,onKeyboardHandled:function(e){return t._keyboardHandler(e)}},{stylingMode:this.option("stylingMode")});return r===f.default&&(l.min=e.min||0,l.max=e.max||255,l.step=e.step||1),new r(n,l).registerKeyHandler("enter",function(e){this._fireEnterKeyPressed(e)}.bind(this)),this.setAria("label",e.labelAriaText,n),i},hexInputOptions:function(){return{editorType:p.default,value:this._currentColor.toHex().replace("#",""),onValueChanged:this._updateColor.bind(this,!0),labelClass:"dx-colorview-label-hex",labelText:"#",labelAriaText:u.default.format("dxColorView-ariaHex")}},_renderHexInput:function(){this._hexInput=p.default.getInstance(this._renderEditorWithLabel(this.hexInputOptions()).appendTo(this._$controlsContainer).find(".dx-textbox"))},_renderAlphaChannelScale:function(){var e=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer,"dx-colorview-alpha-channel-cell"),t=(0,o.default)("<div>").addClass("dx-colorview-alpha-channel-border").appendTo(e),n=(0,o.default)("<div>").addClass("dx-colorview-alpha-channel-wrapper").appendTo(t);this._$alphaChannelScale=(0,o.default)("<div>").addClass("dx-colorview-alpha-channel-scale").appendTo(n),this._makeCSSLinearGradient(this._$alphaChannelScale),this._renderAlphaChannelHandle(e)},_makeCSSLinearGradient:function(e){var t=this._currentColor,n=[t.r,t.g,t.b].join(","),i=t.toHex().replace("#","");e.attr("style",function(e,t){var n=this.option("rtlEnabled"),i="rgba("+e+", "+(n?"1":"0")+")",o="rgba("+e+", "+(n?"0":"1")+")";return["background-image: -webkit-linear-gradient(180deg, "+i+", "+o+")","background-image: -moz-linear-gradient(-90deg, "+i+", "+o+")","background-image: -o-linear-gradient(-90deg, "+i+", "+o+")","background-image: linear-gradient(-90deg, "+i+", "+o+")"].join(";")}.call(this,n,i))},_renderAlphaChannelInput:function(){var e=this,t=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer);e._alphaChannelInput=this._renderEditorWithLabel({editorType:f.default,value:this._currentColor.a,max:1,step:.1,onValueChanged:function(t){var n=t.value;n=e._currentColor.isValidAlpha(n)?n:e._currentColor.a,t.event&&e._saveValueChangeEvent(t.event),e._updateColorTransparency(n),e._placeAlphaChannelHandle()},labelClass:"dx-colorview-alpha-channel-label",labelText:"Alpha",labelAriaText:u.default.format("dxColorView-ariaAlpha")}).appendTo(t).find(".dx-numberbox").dxNumberBox("instance")},_updateColorTransparency:function(e){this._currentColor.a=e,this.applyColor()},_renderAlphaChannelHandle:function(e){var t=this;this._$alphaChannelHandle=(0,o.default)("<div>").addClass("dx-colorview-alpha-channel-handle").appendTo(e),this._createComponent(this._$alphaChannelHandle,g.default,{contentTemplate:null,boundary:e,allowMoveByClick:!0,dragDirection:"horizontal",onDragMove:function(e){var n=e.event;t._updateByDrag=!0;var i=t._$alphaChannelHandle,o=(0,r.locate)(i).left+t._alphaChannelHandleWidth/2;t._saveValueChangeEvent(n),t._calculateColorTransparencyByScaleWidth(o)}}),this._alphaChannelHandleWidth=(0,i.getWidth)(this._$alphaChannelHandle),this._alphaChannelScaleWorkWidth=(0,i.getWidth)(e)-this._alphaChannelHandleWidth,this._placeAlphaChannelHandle()},_calculateColorTransparencyByScaleWidth:function(e){var t=(e-this._alphaChannelHandleWidth/2)/this._alphaChannelScaleWorkWidth,n=this.option("rtlEnabled");t=n?t:1-t,e>=this._alphaChannelScaleWorkWidth+this._alphaChannelHandleWidth/2?t=n?1:0:t<1&&(t=t.toFixed(2)),t=Math.max(t,0),t=Math.min(t,1),this._alphaChannelInput.option("value",t)},_placeAlphaChannelHandle:function(){var e=this._alphaChannelScaleWorkWidth*(1-this._currentColor.a);e<0&&(e=0),this._alphaChannelScaleWorkWidth<e&&(e=this._alphaChannelScaleWorkWidth),(0,r.move)(this._$alphaChannelHandle,{left:this.option("rtlEnabled")?this._alphaChannelScaleWorkWidth-e:e})},applyColor:function(){var e=this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this._currentColor.toHex();this._makeTransparentBackground(this._$currentColor,this._currentColor),this.option("value",e)},cancelColor:function(){this._initColorAndOpacity(),this._refreshMarkup()},_updateColor:function(e,t){var n,i;e?i=this._validateHex("#"+this._hexInput.option("value")):(n=this._validateRgb(),this._alphaChannelInput?(n.push(this._alphaChannelInput.option("value")),i="rgba("+n.join(", ")+")"):i="rgb("+n.join(", ")+")"),this._suppressEditorsValueUpdating||(this._currentColor=new l.default(i),this._saveValueChangeEvent(t.event),this.applyColor(),this._refreshMarkup())},_validateHex:function(e){return this._currentColor.isValidHex(e)?e:this._currentColor.toHex()},_validateRgb:function(){var e=this._rgbInputs[0].option("value"),t=this._rgbInputs[1].option("value"),n=this._rgbInputs[2].option("value");return this._currentColor.isValidRGB(e,t,n)||(e=this._currentColor.r,t=this._currentColor.g,n=this._currentColor.b),[e,t,n]},_refreshMarkup:function(){this._placeHueScaleHandle(),this._placePaletteHandle(),this._updateColorParamsAndColorPreview(),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex()),this._$alphaChannelHandle&&(this._updateColorTransparency(this._currentColor.a),this._placeAlphaChannelHandle())},_updateColorParamsAndColorPreview:function(){this._suppressEditorsValueUpdating=!0,this._hexInput.option("value",this._currentColor.toHex().replace("#","")),this._rgbInputs[0].option("value",this._currentColor.r),this._rgbInputs[1].option("value",this._currentColor.g),this._rgbInputs[2].option("value",this._currentColor.b),this._suppressEditorsValueUpdating=!1,this.option("editAlphaChannel")&&(this._makeCSSLinearGradient.call(this,this._$alphaChannelScale),this._alphaChannelInput.option("value",this._currentColor.a))},_optionChanged:function(e){var t=e.value;switch(e.name){case"value":this._setCurrentColor(t),this._updateByDrag||this._refreshMarkup(),this._updateByDrag=!1,this.callBase(e);break;case"matchValue":this._setBaseColor(t);break;case"onEnterKeyPressed":this._initEnterKeyPressedAction();break;case"editAlphaChannel":this._$colorPickerContainer&&(this._renderHtmlRows("editAlphaChannel"),this._renderAlphaChannelElements());break;case"keyStep":break;case"stylingMode":this._renderControls();break;default:this.callBase(e)}}});(0,c.default)("dxColorView",D);var I=D;t.default=I,e.exports=t.default,e.exports.default=t.default},10042:function(e,t,n){var i;t.default=void 0;var o=((i=n(5631))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},5631:function(e,t,n){t.default=void 0;var i=k(n(68374)),o=k(n(73349)),a=k(n(55994)),r=k(n(73176)),s=k(n(99393)),l=n(20576),u=n(35922),d=n(3532),c=n(6415),h=n(95479),f=n(89386),p=n(13306),g=n(58201),m=k(n(87209)),_=k(n(49387)),v=k(n(20530)),y=n(39611),x=k(n(89799)),b=k(n(46377)),w=n(62754),C=n(49166),S=k(n(11699));function k(e){return e&&e.__esModule?e:{default:e}}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var I="dx-menu-item",T="dx-menu-item-expanded",E="dx-menu-items-container",A="dx-menu-item-wrapper",O="dx-submenu",P="dx-state-hover",M="down",R="first",B="last",V=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],F=["up",M,R,B],L="dxcontextmenu",H=function(e){var t,n;function s(){return e.apply(this,arguments)||this}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,D(t,n);var b=s.prototype;return b.getShowEvent=function(e){var t=null;return(0,u.isObject)(e)?null!==e.name&&(t=e.name||L):t=e,t},b.getShowDelay=function(e){return(0,u.isObject)(e)&&e.delay},b._getDefaultOptions=function(){return(0,p.extend)(e.prototype._getDefaultOptions.call(this),{showEvent:L,closeOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})},b._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:function(){return!(0,g.hasWindow)()},options:{animation:null}}])},b._initActions=function(){var e=this;this._actions={},(0,h.each)(V,(function(t,n){e._actions[n]=e._createActionByOption(n)||l.noop}))},b._setOptionsByReference=function(){e.prototype._setOptionsByReference.call(this),(0,p.extend)(this._optionsByReference,{animation:!0,selectedItem:!0})},b._focusInHandler=function(){},b._itemContainer=function(){return this._overlay?this._overlay.$content():(0,i.default)()},b._eventBindingTarget=function(){return this._itemContainer()},b.itemsContainer=function(){return this._overlay?this._overlay.$content():void 0},b._supportedKeys=function(){var t=this;return(0,p.extend)(e.prototype._supportedKeys.call(this),{space:function(){var e=(0,i.default)(t.option("focusedElement"));t.hide(),e.length&&t._isSelectionEnabled()&&t.selectItem(e[0])},escape:this.hide})},b._getActiveItem=function(){var t=this._getAvailableItems(),n=t.filter(".".concat("dx-state-focused")),i=t.filter(".".concat(P));return i.closest(".".concat(E)).find(".".concat(I)).index(n)>=0?n:i.length?i:e.prototype._getActiveItem.call(this)},b._moveFocus=function(t){var n,o=this._getItemsByLocation(t),a=this._getActiveItem(!0),r=this.itemsContainer().find(".".concat(P)),s=!(!(0,i.default)(this.option("focusedElement")).length&&!r.length);switch(t){case"up":n=s?this._prevItem(o):a,this._setFocusedElement(n),a.is(o.first())&&this._actions.onLeftFirstItem(a);break;case M:n=s?this._nextItem(o):a,this._setFocusedElement(n),a.is(o.last())&&this._actions.onLeftLastItem(a);break;case"right":n=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(o,t),this._setFocusedElement(n);break;case"left":n=this.option("rtlEnabled")?this._expandSubmenuHandler(o,t):this._hideSubmenuHandler(),this._setFocusedElement(n);break;case R:n=o.first(),this._setFocusedElement(n);break;case B:n=o.last(),this._setFocusedElement(n);break;default:return e.prototype._moveFocus.call(this,t)}},b._setFocusedElement=function(e){e&&0!==e.length&&this.option("focusedElement",(0,c.getPublicElement)(e))},b._getItemsByLocation=function(e){var t,n=this._getActiveItem(!0);return(0,f.inArray)(e,F)>=0&&(t=n.closest(".".concat(E)).children().children()),this._getAvailableItems(t)},b._getAriaTarget=function(){return this.$element()},b._refreshActiveDescendant=function(){if((0,u.isDefined)(this._overlay)){var t=this._overlay.$content();e.prototype._refreshActiveDescendant.call(this,t)}},b._hideSubmenuHandler=function(){var e=this._getActiveItem(!0),t=e.parents(".".concat(T)).first();return t.length?(this._hideSubmenusOnSameLevel(t),this._hideSubmenu(e.closest(".".concat(O))),t):(this._actions.onCloseRootSubmenu(e),e)},b._expandSubmenuHandler=function(e,t){var n=this._getActiveItem(!0),i=this._getItemData(n),o=this._dataAdapter.getNodeByItem(i),a=this._hasSubmenu(o),r=n.children(".".concat(O));if(a&&!n.hasClass("dx-state-disabled"))return r.length&&"hidden"!==r.css("visibility")||this._showSubmenu(n),this._nextItem(this._getItemsByLocation(t));this._actions.onExpandLastSubmenu(n)},b._clean=function(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),e.prototype._clean.call(this)},b._initMarkup=function(){this.$element().addClass("dx-has-context-menu"),e.prototype._initMarkup.call(this)},b._render=function(){e.prototype._render.call(this),this._renderVisibility(this.option("visible")),this._addWidgetClass()},b._renderContentImpl=function(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()},b._attachKeyboardEvents=function(){!this._keyboardListenerId&&this._focusTarget().length&&e.prototype._attachKeyboardEvents.call(this)},b._renderContextMenuOverlay=function(){if(!this._overlay){var e=this._getOverlayOptions();this._overlay=this._createComponent((0,i.default)("<div>").appendTo(this._$element),x.default,e);var t=this._overlay.$content();t.addClass("dx-context-menu"),this._addCustomCssClass(t),this._addPlatformDependentClass(t),this._attachContextMenuEvent()}},b.preventShowingDefaultContextMenuAboveOverlay=function(){var e=this._itemContainer(),t=(0,y.addNamespace)(C.name,this.NAME);a.default.off(e,t,".".concat(O)),a.default.on(e,t,".".concat(O),function(n){n.stopPropagation(),n.preventDefault(),a.default.off(e,t,".".concat(O))}.bind(this))},b._itemContextMenuHandler=function(t){e.prototype._itemContextMenuHandler.call(this,t),t.stopPropagation()},b._addPlatformDependentClass=function(e){v.default.current().phone&&e.addClass("dx-menu-phone-overlay")},b._detachShowContextMenuEvents=function(e){var t=this.getShowEvent(this.option("showEvent"));if(t){var n=(0,y.addNamespace)(t,this.NAME);this._showContextMenuEventHandler?a.default.off(o.default.getDocument(),n,e,this._showContextMenuEventHandler):a.default.off((0,i.default)(e),n)}},b._attachShowContextMenuEvents=function(){var e=this,t=this._getTarget(),n=this.getShowEvent(this.option("showEvent"));if(n){var r=(0,y.addNamespace)(n,this.NAME),s=this._createAction((function(t){var n=e.getShowDelay(e.option("showEvent"));n?setTimeout((function(){return e._show(t.event)}),n):e._show(t.event)}),{validatingTargetName:"target"}),l=function(e){return s({event:e,target:(0,i.default)(e.currentTarget)})};s=this._createAction(s),(0,u.isRenderer)(t)||t.nodeType||(0,u.isWindow)(t)?(this._showContextMenuEventHandler=void 0,a.default.on(t,r,l)):(this._showContextMenuEventHandler=l,a.default.on(o.default.getDocument(),r,t,this._showContextMenuEventHandler))}},b._hoverEndHandler=function(t){e.prototype._hoverEndHandler.call(this,t),t.stopPropagation()},b._renderDimensions=function(){},b._renderContainer=function(t,n){var o=n||this._itemContainer();(t=(0,i.default)("<div>")).appendTo(o).addClass(O).css("visibility",n?"hidden":"visible");var a=e.prototype._renderContainer.call(this,t);return n?a:this.option("width")?a.css("minWidth",this.option("width")):this.option("height")?a.css("minHeight",this.option("height")):a},b._renderSubmenuItems=function(e,t){this._renderItems(this._getChildNodes(e),t),this._actions.onSubmenuCreated({itemElement:(0,c.getPublicElement)(t),itemData:e.internalFields.item,submenuElement:(0,c.getPublicElement)(t.children(".".concat(O)))})},b._getOverlayOptions=function(){var e=this.option("position");return{focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),innerOverlay:!0,closeOnOutsideClick:this._closeOnOutsideClickHandler.bind(this),propagateOutsideClick:!0,hideOnParentScroll:!0,deferRendering:!1,position:{at:e.at,my:e.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this)}},b._overlayShownActionHandler=function(e){this._actions.onShown(e)},b._overlayHidingActionHandler=function(e){this._actions.onHiding(e),e.cancel||(this._hideAllShownSubmenus(),this._setOptionWithoutOptionChange("visible",!1))},b._overlayHiddenActionHandler=function(e){this._actions.onHidden(e)},b._closeOnOutsideClickHandler=function(e){var t=this.option("closeOnOutsideClick");if((0,u.isFunction)(t))return t(e);if(!t)return!1;if(o.default.isDocument(e.target))return!0;var n=this._getActiveItemsContainer(e.target),i=this._getItemsContainers(),a=this._searchActiveItem(e.target),r=this.$element().parents(".".concat(I)),s=a[0]===r[0]&&a.length&&r.length;return!(this._isIncludeOverlay(n,i)&&a.length)&&!s||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(a),!1)},b._getActiveItemsContainer=function(e){return(0,i.default)(e).closest(".".concat(E))},b._getItemsContainers=function(){return this._overlay.$content().find(".".concat(E))},b._searchActiveItem=function(e){return(0,i.default)(e).closest(".".concat(I)).eq(0)},b._isIncludeOverlay=function(e,t){var n=!1;return(0,h.each)(t,(function(t,i){e.is(i)&&!n&&(n=!0)})),n},b._hideAllShownChildSubmenus=function(e){var t=this,n=e.find(".".concat(O)),i=(0,p.extend)([],this._shownSubmenus);n.length>0&&(0,h.each)(i,(function(n,i){var o=t._searchActiveItem(i.context).parent();o.parent().is(e.parent().parent())&&!o.is(e.parent())&&t._hideSubmenu(i)}))},b._showSubmenu=function(t){var n=this._dataAdapter.getNodeByItem(this._getItemData(t));if(this._hideSubmenusOnSameLevel(t),this._hasSubmenu(n)){var i=t.children(".".concat(O)),o=i.length;e.prototype._showSubmenu.call(this,t),o||this._renderSubmenuItems(n,t),this._isSubmenuVisible(i)||this._drawSubmenu(t)}},b._hideSubmenusOnSameLevel=function(e){var t=e.parent(".".concat(A)).siblings().find(".".concat(T));t.length&&(t.removeClass(T),this._hideSubmenu(t.find(".".concat(O))))},b._hideSubmenuGroup=function(e){this._isSubmenuVisible(e)&&this._hideSubmenuCore(e)},b._isSubmenuVisible=function(e){return"visible"===e.css("visibility")},b._drawSubmenu=function(e){var t=this.option("animation")?this.option("animation").show:{},n=e.children(".".concat(O)),i=this._getSubmenuPosition(e);this._overlay&&this._overlay.option("visible")&&((0,u.isDefined)(this._shownSubmenus)||(this._shownSubmenus=[]),(0,f.inArray)(n,this._shownSubmenus)&&this._shownSubmenus.push(n),t&&m.default.stop(n),_.default.setup(n,i),t&&((0,u.isPlainObject)(t.to)&&(t.to.position=i),this._animate(n,t)),n.css("visibility","visible"))},b._animate=function(e,t){m.default.animate(e,t)},b._getSubmenuPosition=function(e){var t=this.option("submenuDirection").toLowerCase(),n={collision:"flip",of:e.parent(".".concat(A)),offset:{h:0,v:-1}};switch(t){case"left":n.at="left top",n.my="right top";break;case"right":n.at="right top",n.my="left top";break;default:this.option("rtlEnabled")?(n.at="left top",n.my="right top"):(n.at="right top",n.my="left top")}return n},b._updateSubmenuVisibilityOnClick=function(e){if(e.args.length){var t=e.args[0].itemData,n=this._dataAdapter.getNodeByItem(t);if(n){var o=(0,i.default)(e.args[0].itemElement),a=o.find(".".concat(O));if(this._hasSubmenu(n)&&!a.length&&(this._renderSubmenuItems(n,o),a=o.find(".".concat(O))),o.context!==a.context||"visible"!==a.css("visibility")){var r=t&&!1===t.closeMenuOnClick;if(t&&!t.disabled&&!r)if(this._updateSelectedItemOnClick(e),0===a.length){var s=(0,i.default)(o.parents(".".concat(O))[0]);this._hideSubmenu(s),!e.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(a)&&this._hideSubmenu(a),this._showSubmenu(o)}}}},b._hideSubmenu=function(e){var t=this,n=(0,p.extend)([],this._shownSubmenus);(0,h.each)(n,(function(n,i){(e.is(i)||(0,d.contains)(e[0],i[0]))&&(i.parent().removeClass(T),t._hideSubmenuCore(i))}))},b._hideSubmenuCore=function(e){var t=(0,f.inArray)(e,this._shownSubmenus),n=this.option("animation")?this.option("animation").hide:null;t>=0&&this._shownSubmenus.splice(t,1),this._stopAnimate(e),n&&this._animate(e,n),e.css("visibility","hidden")},b._stopAnimate=function(e){m.default.stop(e,!0)},b._hideAllShownSubmenus=function(){var e=this,t=(0,p.extend)([],this._shownSubmenus);this._overlay.$content().find(".".concat(T)).removeClass(T),(0,h.each)(t,(function(t,n){e._hideSubmenu(n)}))},b._visibilityChanged=function(e){e&&this._renderContentImpl()},b._optionChanged=function(t){if((0,f.inArray)(t.name,V)>-1)this._initActions();else switch(t.name){case"visible":this._renderVisibility(t.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":t.previousValue&&this._detachShowContextMenuEvents(t.previousValue),this._invalidate();break;case"closeOnOutsideClick":break;default:e.prototype._optionChanged.call(this,t)}},b._renderVisibility=function(e){return e?this._show():this._hide()},b._toggleVisibility=function(){},b._show=function(e){var t={jQEvent:e},n=(new w.Deferred).reject().promise();if(this._actions.onShowing(t),t.cancel)return n;var i,o=this._positionContextMenu(e);return o&&(this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionWithoutOptionChange("visible",!0),this._overlay.option("position",o),n=this._overlay.show(),e&&e.stopPropagation(),this._setAriaAttributes(),(null==e||null===(i=e.originalEvent)||void 0===i?void 0:i.type)===S.default.name&&this.preventShowingDefaultContextMenuAboveOverlay()),n},b._setAriaAttributes=function(){this._overlayContentId="dx-".concat(new r.default),this.setAria("owns",this._overlayContentId),this.setAria({id:this._overlayContentId,role:"menu"},this._overlay.$content())},b._cleanAriaAttributes=function(){this._overlay&&this.setAria("id",null,this._overlay.$content()),this.setAria("owns",void 0)},b._getTarget=function(){return this.option("target")||this.option("position").of||(0,i.default)(o.default.getDocument())},b._getContextMenuPosition=function(){return(0,p.extend)({},this.option("position"),{of:this._getTarget()})},b._positionContextMenu=function(e){var t=this._getContextMenuPosition(),n=this._isInitialOptionValue("position"),i=this._createActionByOption("onPositioning",o);e&&e.preventDefault&&n&&(t.of=e);var o={position:t,event:e};return i(o),o.cancel?t=null:o.event&&(o.event.cancel=!0,e.preventDefault()),t},b._refresh=function(){if((0,g.hasWindow)())if(this._overlay){var t=this._overlay.option("position");e.prototype._refresh.call(this),this._overlay&&this._overlay.option("position",t)}else e.prototype._refresh.call(this);else e.prototype._refresh.call(this)},b._hide=function(){var e;return this._overlay&&(e=this._overlay.hide(),this._setOptionWithoutOptionChange("visible",!1)),this._cleanAriaAttributes(),this.option("focusedElement",null),e||(new w.Deferred).reject().promise()},b.toggle=function(e){var t=this.option("visible");return e=void 0===e?!t:e,this._renderVisibility(e)},b.show=function(){return this.toggle(!0)},b.hide=function(){return this.toggle(!1)},s}(b.default);(0,s.default)("dxContextMenu",H);var N=H;t.default=N,e.exports=t.default,e.exports.default=t.default},69639:function(e,t,n){t.default=void 0;var i=a(n(68374)),o=n(95479);function a(e){return e&&e.__esModule?e:{default:e}}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var l=a.prototype;return l._getPlainItems=function(){return(0,o.map)(this._collectionWidget.option("items"),(function e(t){return t.items?[t].concat((0,o.map)(t.items,e)):t}))},l._stringifyItem=function(e){var t=this;return JSON.stringify(e,(function(e,n){return"template"===e?t._getTemplateString(n):n}))},l._getTemplateString=function(e){return"object"===r(e)?(0,i.default)(e).text():e.toString()},a}(a(n(14174)).default);t.default=l,e.exports=t.default,e.exports.default=t.default},46377:function(e,t,n){t.default=void 0;var i=f(n(68374)),o=n(20576),a=n(35922),r=n(95479),s=n(13306),l=n(72672),u=f(n(65810)),d=f(n(69639)),c=f(n(20530)),h=f(n(54778));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g="dx-menu-item",m=g+"-selected",_=g+"-wrapper",v={show:50,hide:300},y=function(e){var t,n;function u(){return e.apply(this,arguments)||this}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var h=u.prototype;return h._getDefaultOptions=function(){return(0,s.extend)(e.prototype._getDefaultOptions.call(this),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})},h._itemDataKey=function(){return"dxMenuItemDataKey"},h._itemClass=function(){return g},h._setAriaSelected=function(){},h._selectedItemClass=function(){return m},h._widgetClass=function(){return"dx-menu-base"},h._focusTarget=function(){return this._itemContainer()},h._clean=function(){this.option("focusedElement",null),e.prototype._clean.call(this)},h._supportedKeys=function(){var t=this;return(0,s.extend)(e.prototype._supportedKeys.call(this),{space:function(){var e=(0,i.default)(t.option("focusedElement"));e.length&&t._isSelectionEnabled()&&t.selectItem(e[0])},pageUp:o.noop,pageDown:o.noop})},h._isSelectionEnabled=function(){return"single"===this.option("selectionMode")},h._init=function(){this._activeStateUnit=".".concat(g),e.prototype._init.call(this),this._renderSelectedItem(),this._initActions()},h._getTextContainer=function(e){var t=e.text,n=(0,i.default)("<span>").addClass("dx-menu-item-text"),o=(0,a.isPlainObject)(e)?t:String(e);return t&&n.text(o)},h._getPopoutContainer=function(e){var t,n=e.items;if(n&&n.length){var o=(0,i.default)("<div>").addClass("dx-menu-item-popout");t=(0,i.default)("<span>").addClass("dx-menu-item-popout-container").append(o)}return t},h._getDataAdapterOptions=function(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}},h._selectByItem=function(e){if(e){var t=this._dataAdapter.getNodeByItem(e);this._dataAdapter.toggleSelection(t.internalFields.key,!0)}},h._renderSelectedItem=function(){var e=this._dataAdapter.getSelectedNodesKeys(),t=e.length&&e[0],n=this.option("selectedItem");if(t){var i=this._dataAdapter.getNodeByKey(t);!1!==i.selectable&&(n?n!==i.internalFields.item&&(this._dataAdapter.toggleSelection(t,!1),this._selectByItem(n)):this.option("selectedItem",i.internalFields.item))}else this._selectByItem(n)},h._initActions=function(){},h._initMarkup=function(){e.prototype._initMarkup.call(this),this._addCustomCssClass(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},h._renderInkRipple=function(){this._inkRipple=(0,l.render)()},h._toggleActiveState=function(t,n,i){if(e.prototype._toggleActiveState.apply(this,arguments),this._inkRipple){var o={element:t,event:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},h._getShowSubmenuMode=function(){var e=this.option("showSubmenuMode");return e=(0,a.isObject)(e)?e.name:e,this._isDesktopDevice()?e:"onClick"},h._initSelectedItems=function(){},h._isDesktopDevice=function(){return"desktop"===c.default.real().deviceType},h._initEditStrategy=function(){var e=d.default;this._editStrategy=new e(this)},h._addCustomCssClass=function(e){e.addClass(this.option("cssClass"))},h._itemWrapperSelector=function(){return".".concat(_)},h._hoverStartHandler=function(e){var t=this._getItemElementByEventArgs(e);t&&!this._isItemDisabled(t)&&(e.stopPropagation(),"onHover"===this._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(this._showSubmenu.bind(this,t),this._getSubmenuDelay("show"))))},h._getAvailableItems=function(t){return e.prototype._getAvailableItems.call(this,t).filter((function(){return"hidden"!==(0,i.default)(this).css("visibility")}))},h._isItemDisabled=function(e){return this._disabledGetter(e.data(this._itemDataKey()))},h._showSubmenu=function(e){this._addExpandedClass(e)},h._addExpandedClass=function(e){(0,i.default)(e).addClass("dx-menu-item-expanded")},h._getSubmenuDelay=function(e){var t=this.option("showSubmenuMode").delay;return(0,a.isDefined)(t)?(0,a.isObject)(t)?t[e]:t:v[e]},h._getItemElementByEventArgs=function(e){var t=(0,i.default)(e.target);if(t.hasClass(this._itemClass())||t.get(0)===e.currentTarget)return t;for(;!t.hasClass(this._itemClass());)if((t=t.parent()).hasClass("dx-submenu"))return null;return t},h._hoverEndHandler=function(){clearTimeout(this._showSubmenusTimeout)},h._hasSubmenu=function(e){return e&&e.internalFields.childrenKeys.length},h._renderContentImpl=function(){this._renderItems(this._dataAdapter.getRootNodes())},h._renderItems=function(e,t){var n=this;if(e.length){this.hasIcons=!1;var i=this._renderContainer(this.$element(),t),o=-1,a=-1;(0,r.each)(e,(function(e,t){var r=!1!==t.visible;r&&o<0&&(o=e),o<e&&(t.beginGroup||e===a)&&(a=r?e:e+1),e===a&&o<e&&n._renderSeparator(i),n._renderItem(e,t,i)})),this.hasIcons||i.addClass("dx-menu-no-icons")}},h._renderContainer=function(e){var t=(0,i.default)("<ul>");return this.setAria("role","none",t),t.appendTo(e).addClass("dx-menu-items-container")},h._createDOMElement=function(e){var t=(0,i.default)("<li>");return this.setAria("role","none",t),t.appendTo(e).addClass(_)},h._renderItem=function(t,n,i,o){var a=this.option("items"),r=o||this._createDOMElement(i);a[t+1]&&a[t+1].beginGroup&&r.addClass("dx-menu-last-group-item");var s=e.prototype._renderItem.call(this,t,n.internalFields.item,r);n.internalFields.item===this.option("selectedItem")&&s.addClass(m),s.attr("tabIndex",-1),this._hasSubmenu(n)&&this.setAria("haspopup","true",s)},h._renderItemFrame=function(t,n,i){var o=i.children(".".concat(g));return o.length?o:e.prototype._renderItemFrame.apply(this,arguments)},h._refreshItem=function(e,t){var n=this._dataAdapter.getNodeByItem(t),i=e.data(this._itemIndexKey()),o=e.closest("ul"),a=e.closest("li");this._renderItem(i,n,o,a)},h._addContentClasses=function(e,t){var n=!!e.text&&!!e.text.length,i=!!e.icon,o=!!e.items&&!!e.items.length;t.toggleClass("dx-menu-item-has-text",n),t.toggleClass("dx-menu-item-has-icon",i),this.hasIcons||(this.hasIcons=i),t.toggleClass("dx-menu-item-has-submenu",o)},h._getItemContent=function(t){var n=e.prototype._getItemContent.call(this,t);return n.length||(n=t.children(".".concat("dx-menu-item-content"))),n},h._postprocessRenderItem=function(e){var t=(0,i.default)(e.itemElement),n=this._dataAdapter.getSelectedNodesKeys();n.length&&this._selectedGetter(e.itemData)&&this._isItemSelectable(e.itemData)&&this._dataAdapter.getNodeByItem(e.itemData).internalFields.key===n[0]?(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true")):this._setAriaSelected(t,"false")},h._isItemSelectable=function(e){return!1!==e.selectable},h._renderSeparator=function(e){(0,i.default)("<li>").appendTo(e).addClass("dx-menu-separator")},h._itemClickHandler=function(e){if(!e._skipHandling){var t=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(e,"onItemClick",{},{afterExecute:t.bind(this)}),e._skipHandling=!0}},h._updateSubmenuVisibilityOnClick=function(e){this._updateSelectedItemOnClick(e),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(e.args[0].itemElement)},h._updateSelectedItemOnClick=function(e){var t=e.args?e.args[0]:e;if(this._isItemSelectionAllowed(t.itemData)){var n=this._dataAdapter.getSelectedNodesKeys(),i=n.length&&this._dataAdapter.getNodeByKey(n[0]);i&&this._toggleItemSelection(i,!1),i&&i.internalFields.item===t.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionWithoutOptionChange("selectedItem",null)):this.selectItem(t.itemData)}},h._isItemSelectionAllowed=function(e){var t=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&t&&this._isItemSelectable(e)&&!this._itemsGetter(e)},h._isContainerEmpty=function(){return this._itemContainer().is(":empty")},h._syncSelectionOptions=function(){return(0,o.asyncNoop)()},h._optionChanged=function(t){switch(t.name){case"showSubmenuMode":break;case"selectedItem":var n=this._dataAdapter.getNodeByItem(t.value),i=this._dataAdapter.getSelectedNodesKeys()[0];if(n&&n.internalFields.key!==i){if(!1===n.selectable)break;i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:e.prototype._optionChanged.call(this,t)}},h._toggleItemSelection=function(e,t){var n=this._getElementByItem(e.internalFields.item);n&&(0,i.default)(n).toggleClass(m),this._dataAdapter.toggleSelection(e.internalFields.key,t)},h._getElementByItem=function(e){var t,n=this;return(0,r.each)(this._itemElements(),(function(o,a){return(0,i.default)(a).data(n._itemDataKey())!==e||(t=a,!1)})),t},h._updateSelectedItems=function(e,t){(e||t)&&this._fireSelectionChangeEvent(t,e)},h._fireSelectionChangeEvent=function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[e],removedItems:[t]})},h.selectItem=function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getSelectedNodesKeys()[0],i=this.option("selectedItem"),o=this._dataAdapter.getNodeByItem(t);o.internalFields.key!==n&&(n&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(n),!1),this._toggleItemSelection(o,!0),this._updateSelectedItems(i,t),this._setOptionWithoutOptionChange("selectedItem",t))},h.unselectItem=function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this.option("selectedItem");n.internalFields.selected&&(this._toggleItemSelection(n,!1),this._updateSelectedItems(i,null),this._setOptionWithoutOptionChange("selectedItem",null))},u}(u.default);y.ItemClass=h.default;var x=y;t.default=x,e.exports=t.default,e.exports.default=t.default},1186:function(e,t,n){var i;t.default=void 0;var o=((i=n(88221))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},34452:function(e,t,n){t.default=void 0;var i,o=(i=n(38377))&&i.__esModule?i:{default:i},a=n(47617),r=n(35922),s=n(18438),l=n(16454);function u(e,t,n,i){var o=0;if(e<t)for(;o<n.items.length;o++)u(e+1,t,n.items[o],i);e===t&&i(n)}function d(e,t){var n;if("map"in e)return e.map(t);var i=new Array(e.length);for(n in e)i[n]=t(e[n],n);return i}function c(e){var t=(0,a.compileGetter)(e.selector),n=!("skipEmptyValues"in e)||e.skipEmptyValues,i=e.aggregator;if("string"==typeof i&&!(i=l.aggregators[i]))throw s.errors.Error("E4001",e.aggregator);return{selector:t,aggregator:i,skipEmptyValues:n}}var h=o.default.inherit({ctor:function(e){this._data=e.data,this._groupLevel=e.groupLevel||0,this._totalAggregates=d(e.totalAggregates||[],c),this._groupAggregates=d(e.groupAggregates||[],c),this._totals=[]},calculate:function(){this._totalAggregates.length&&this._calculateTotals(0,{items:this._data}),this._groupAggregates.length&&this._groupLevel>0&&this._calculateGroups({items:this._data})},totalAggregates:function(){return this._totals},_aggregate:function(e,t,n){for(var i=t.items?t.items.length:0,o=0;o<e.length;o++)if(e[o].aggregator!==l.aggregators.count)for(var a=0;a<i;a++)this._accumulate(o,e[o],n,t.items[a]);else n[o]=(n[o]||0)+i},_calculateTotals:function(e,t){if(0===e&&(this._totals=this._seed(this._totalAggregates)),e===this._groupLevel)this._aggregate(this._totalAggregates,t,this._totals);else for(var n=0;n<t.items.length;n++)this._calculateTotals(e+1,t.items[n]);0===e&&(this._totals=this._finalize(this._totalAggregates,this._totals))},_calculateGroups:function(e){var t=this._groupLevel,n=t+1,i=this._seed.bind(this,this._groupAggregates),o=this._aggregate.bind(this,this._groupAggregates),a=this._finalize.bind(this,this._groupAggregates);function r(e){e.aggregates=i(n-1),n===t?o(e,e.aggregates):u(n,t,e,(function(t){o(t,e.aggregates)})),e.aggregates=a(e.aggregates)}for(;--n>0;)u(0,n,e,r)},_seed:function(e,t){return d(e,(function(e){var n=e.aggregator;return"seed"in n?(0,r.isFunction)(n.seed)?n.seed(t):n.seed:NaN}))},_accumulate:function(e,t,n,i){var o,a=t.selector(i),r=t.aggregator;(!t.skipEmptyValues||(o=a)==o&&""!==o&&null!=o)&&(n[e]!=n[e]?n[e]=a:n[e]=r.step(n[e],a))},_finalize:function(e,t){return d(e,(function(e,n){var i=e.aggregator.finalize;return i?i(t[n]):t[n]}))}});t.default=h,e.exports=t.default,e.exports.default=t.default},49169:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(47766);o.default.registerModule("adaptivity",a.adaptivityModule)},78141:function(e,t,n){t.default=void 0;var i=p(n(68374)),o=p(n(99393)),a=n(20576),r=n(35922),s=n(95479),l=n(13306),u=n(30869),d=p(n(47810)),c=p(n(14390)),h=p(n(39941)),f=n(75811);function p(e){return e&&e.__esModule?e:{default:e}}n(83706),n(91717),n(96948),n(45722),n(76771),n(91969),n(130),n(53182),n(78391),h.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","editingRowBased","editingFormBased","editingCellBased","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var g=c.default.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var e=this.callBase();return(0,s.each)(h.default.modules,(function(){(0,r.isFunction)(this.defaultOptions)&&(0,l.extend)(!0,e,this.defaultOptions())})),e},_setDeprecatedOptions:function(){this.callBase(),(0,l.extend)(this._deprecatedOptions,{useKeyboard:{since:"19.2",alias:"keyboardNavigation.enabled"},rowTemplate:{since:"21.2",message:'Use the "dataRowTemplate" option instead'},onToolbarPreparing:{since:"21.2",message:'Use the "toolbar" option instead'}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:function(){return(0,f.isMaterial)()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0},selection:{showCheckBoxesMode:"always"}}},{device:function(){return d.default.webkit},options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:function(e){return"desktop"!==e.deviceType},options:{grouping:{expandMode:"rowClick"}}}])},_init:function(){var e=this;e.callBase(),h.default.processModules(e,h.default),h.default.callModuleItemsMethod(e,"init")},_clean:a.noop,_optionChanged:function(e){h.default.callModuleItemsMethod(this,"optionChanged",[e]),e.handled||this.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;(0,a.deferRender)((function(){e._renderContentImpl()}))},_getTemplate:function(e){var t=e;return(0,r.isString)(t)&&"#"===t[0]&&(t=(0,i.default)(e),u.logger.warn("Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.")),this.callBase(t)},_dispose:function(){this.callBase(),h.default.callModuleItemsMethod(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),h.default.callModuleItemsMethod(this,"beginUpdate")},endUpdate:function(){h.default.callModuleItemsMethod(this,"endUpdate"),this.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.getController("keyboardNavigation").focus(e)}});g.registerModule=h.default.registerModule.bind(h.default),(0,o.default)("dxDataGrid",g);var m=g;t.default=m,e.exports=t.default,e.exports.default=t.default},21612:function(e,t,n){t.ColumnChooserView=t.ColumnChooserController=void 0;var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(7922),r=a.columnChooserModule.controllers.columnChooser;t.ColumnChooserController=r;var s=a.columnChooserModule.views.columnChooserView;t.ColumnChooserView=s,o.default.registerModule("columnChooser",a.columnChooserModule)},82066:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(42182);o.default.registerModule("columnFixing",a.columnFixingModule)},83706:function(e,t,n){t.ColumnHeadersView=void 0;var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(2366),r=a.columnHeadersModule.views.columnHeadersView;t.ColumnHeadersView=r,o.default.registerModule("columnHeaders",a.columnHeadersModule)},91717:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(459),r=n(13306);o.default.registerModule("columns",{defaultOptions:function(){return(0,r.extend)(!0,{},a.columnsControllerModule.defaultOptions(),{commonColumnSettings:{allowExporting:!0}})},controllers:a.columnsControllerModule.controllers})},46985:function(e,t,n){t.TrackerView=t.TablePositionViewController=t.DraggingHeaderViewController=t.DraggingHeaderView=t.ColumnsSeparatorView=t.ColumnsResizerViewController=void 0;var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(84268),r=a.columnsResizingReorderingModule.views.draggingHeaderView;t.DraggingHeaderView=r;var s=a.columnsResizingReorderingModule.controllers.draggingHeader;t.DraggingHeaderViewController=s;var l=a.columnsResizingReorderingModule.views.columnsSeparatorView;t.ColumnsSeparatorView=l;var u=a.columnsResizingReorderingModule.controllers.tablePosition;t.TablePositionViewController=u;var d=a.columnsResizingReorderingModule.controllers.columnsResizer;t.ColumnsResizerViewController=d;var c=a.columnsResizingReorderingModule.views.trackerView;t.TrackerView=c,o.default.registerModule("columnsResizingReordering",a.columnsResizingReorderingModule)},91969:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(1826);o.default.registerModule("contextMenu",a.contextMenuModule)},39941:function(e,t,n){t.default=void 0;var i=o(n(13615));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var r=a({},o(n(12310)).default,i.default,{modules:[]});t.default=r,e.exports=t.default,e.exports.default=t.default},96948:function(e,t,n){t.DataController=void 0;var i=s(n(39941)),o=s(n(96688)),a=s(n(99754)),r=n(46958);function s(e){return e&&e.__esModule?e:{default:e}}var l=r.dataControllerModule.controllers.data.inherit({_getDataSourceAdapter:function(){return a.default},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return e&&!Array.isArray(e)&&this.option("keyExpr")&&o.default.log("W1011"),this.callBase()}});t.DataController=l,i.default.registerModule("data",{defaultOptions:r.dataControllerModule.defaultOptions,controllers:{data:l}})},99754:function(e,t,n){var i;t.default=void 0;var o=((i=n(83567))&&i.__esModule?i:{default:i}).default,a={extend:function(e){o=o.inherit(e)},create:function(e){return new o(e)}};t.default=a,e.exports=t.default,e.exports.default=t.default},26471:function(e,t,n){n(69449);var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(6447),r=n(13306);o.default.registerModule("editing",(0,r.extend)(!0,{},a.editingModule,{extenders:{controllers:{data:{_changeRowExpandCore:function(e){var t=this._editingController;return Array.isArray(e)&&t&&t.refresh(),this.callBase.apply(this,arguments)}}}}}))},39667:function(e,t,n){var i=a(n(39941)),o=a(n(68004));function a(e){return e&&e.__esModule?e:{default:e}}i.default.registerModule("editingCellBased",o.default)},56115:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(42252);o.default.registerModule("editingFormBased",a.editingFormBasedModule)},10074:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(27966);o.default.registerModule("editingRowBased",a.editingRowBasedModule)},69449:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(45630);o.default.registerModule("editorFactory",a.editorFactoryModule)},130:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(49743);o.default.registerModule("errorHandling",a.errorHandlingModule)},56673:function(e,t,n){t.ExportController=t.DataProvider=void 0;var i=g(n(68374)),o=g(n(38377)),a=n(35922),r=n(13306),s=n(37518),l=n(89386),u=g(n(39941)),d=g(n(72376)),c=n(78292),h=g(n(28109));n(63008),n(45231);var f=g(n(56757)),p=n(62754);function g(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var y="dx-datagrid-export-button",x="export-to",b=o.default.inherit({ctor:function(e,t,n){this._exportController=e,this._initialColumnWidthsByColumnIndex=t,this._selectedRowsOnly=n},_getGroupValue:function(e){var t=e.key,n=e.data,i=e.rowType,o=e.groupIndex,a=e.summaryCells,r=this._options.groupColumns[o],s=u.default.getDisplayValue(r,r.deserializeValue?r.deserializeValue(t[o]):t[o],n,i),l=r.caption+": "+u.default.formatValue(s,r);return a&&a[0]&&a[0].length&&(l+=" "+u.default.getGroupRowSummaryText(a[0],this._options.summaryTexts)),l},_correctCellIndex:function(e){return e},_initOptions:function(){var e=this._exportController,t=e._columnsController.getGroupColumns(),n=e.option("export.excelWrapTextEnabled");this._options={columns:e._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:t,items:this._selectedRowsOnly||e._selectionOnly?e._getSelectedItems():e._getAllItems(),getVisibleIndex:e._columnsController.getVisibleIndex.bind(e._columnsController),isHeadersVisible:e.option("showColumnHeaders"),summaryTexts:e.option("summary.texts"),customizeExportData:e.option("customizeExportData"),rtlEnabled:e.option("rtlEnabled"),wrapTextEnabled:(0,a.isDefined)(n)?n:!!e.option("wordWrapEnabled"),customizeExcelCell:e.option("export.customizeExcelCell")}},hasCustomizeExcelCell:function(){return(0,a.isDefined)(this._options.customizeExcelCell)},customizeExcelCell:function(e,t){this._options.customizeExcelCell&&(e.gridCell=t,(0,a.isDefined)(this._exportController)&&(0,a.isDefined)(this._exportController.component)&&(e.component=this._exportController.component),this._options.customizeExcelCell(e))},getHeaderStyles:function(){return[{bold:!0,alignment:"center",wrapText:!0},{bold:!0,alignment:"left",wrapText:!0},{bold:!0,alignment:"right",wrapText:!0}]},getGroupRowStyle:function(){return{bold:!0,wrapText:!1,alignment:(0,s.getDefaultAlignment)(this._options.rtlEnabled)}},getColumnStyles:function(){var e=this._options.wrapTextEnabled,t=[];return this.getColumns().forEach((function(n){t.push({alignment:n.alignment||"left",format:n.format,wrapText:e,dataType:n.dataType})})),t},getStyles:function(){return[].concat(_(this.getHeaderStyles()),_(this.getColumnStyles()),[this.getGroupRowStyle()])},_getTotalCellStyleId:function(e){var t,n=(null===(t=this.getColumns()[e])||void 0===t?void 0:t.alignment)||"right";return this.getHeaderStyles().map((function(e){return e.alignment})).indexOf(n)},getStyleId:function(e,t){return e<this.getHeaderRowCount()?0:this.isTotalCell(e-this.getHeaderRowCount(),t)?this._getTotalCellStyleId(t):this.isGroupRow(e-this.getHeaderRowCount())?this.getHeaderStyles().length+this.getColumns().length:t+this.getHeaderStyles().length},getColumns:function(e){var t=this._options.columns;return e?t:t[t.length-1]},getColumnsWidths:function(){var e=this.getColumns();return(0,a.isDefined)(e)?e.map((function(e){return e.width})):void 0},getRowsCount:function(){return this._options.items.length+this.getHeaderRowCount()},getHeaderRowCount:function(){return this.isHeadersVisible()?this._options.columns.length-1:0},isGroupRow:function(e){return e<this._options.items.length&&"group"===this._options.items[e].rowType},getGroupLevel:function(e){var t=this._options.items[e-this.getHeaderRowCount()],n=t&&t.groupIndex;return t&&"totalFooter"===t.rowType?0:(0,a.isDefined)(n)?n:this._options.groupColumns.length},getCellType:function(e,t){var n=this.getColumns();if(e<this.getHeaderRowCount())return"string";if(e-=this.getHeaderRowCount(),t<n.length){var i=this._options.items.length&&this._options.items[e],o=n[t];return i&&"data"===i.rowType&&isFinite(i.values[this._correctCellIndex(t)])&&!(0,a.isDefined)(o.customizeText)?(0,a.isDefined)(o.lookup)?o.lookup.dataType:o.dataType:"string"}},ready:function(){var e=this;e._initOptions();var t=e._options;return(0,p.when)(t.items).done((function(n){t.customizeExportData&&t.customizeExportData(e.getColumns(e.getHeaderRowCount()>1),n),t.items=n})).fail((function(){t.items=[]}))},_convertFromGridGroupSummaryItems:function(e){if((0,a.isDefined)(e)&&e.length>0)return e.map((function(e){return{value:e.value,name:e.name}}))},getCellData:function(e,t,n){var i,o,r={cellSourceData:{},value:i},s=this.getColumns(),l=this._correctCellIndex(t);if(e<this.getHeaderRowCount())o=this.getColumns(!0)[e][t],r.cellSourceData.rowType="header",r.cellSourceData.column=o&&o.gridColumn,r.value=o&&o.caption;else{e-=this.getHeaderRowCount();var d=this._options.items.length&&this._options.items[e];if(d){var c=d.values;switch(r.cellSourceData.rowType=d.rowType,r.cellSourceData.column=s[t]&&s[t].gridColumn,d.rowType){case"groupFooter":case"totalFooter":l<c.length&&(i=c[l],(0,a.isDefined)(i)?(r.cellSourceData.value=i.value,r.cellSourceData.totalSummaryItemName=i.name,r.value=u.default.getSummaryText(i,this._options.summaryTexts)):r.cellSourceData.value=void 0);break;case"group":if(r.cellSourceData.groupIndex=d.groupIndex,t<1)r.cellSourceData.column=this._options.groupColumns[d.groupIndex],r.cellSourceData.value=d.key[d.groupIndex],r.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(d.summaryCells[0]),r.value=this._getGroupValue(d);else{var h=d.values[l];if(Array.isArray(h)){r.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(h),i="";for(var f=0;f<h.length;f++)i+=(f>0?n?"\n":" \n ":"")+u.default.getSummaryText(h[f],this._options.summaryTexts);r.value=i}else r.cellSourceData.value=void 0}break;default:if(o=s[t]){var p=c[l],g=u.default.getDisplayValue(o,p,d.data,d.rowType);!isFinite(g)||(0,a.isDefined)(o.customizeText)?n&&(0,a.isDefined)(o.customizeText)&&o.customizeText===this._exportController._columnsController.getCustomizeTextByDataType("boolean")?r.value=g:r.value=u.default.formatValue(g,o):r.value=g,r.cellSourceData.value=p}r.cellSourceData.data=d.data}}}return r},isHeadersVisible:function(){return this._options.isHeadersVisible},isTotalCell:function(e,t){var n=this._options.items[e],i=this._correctCellIndex(t),o=n.summaryCells&&n.summaryCells[i]&&n.summaryCells[i].length>0&&n.summaryCells[i][0].alignByColumn;return n&&"groupFooter"===n.rowType||"totalFooter"===n.rowType||o},getCellMerging:function(e,t){var n=this._options.columns,i=n[e]&&n[e][t];return i?{colspan:(i.exportColspan||1)-1,rowspan:(i.rowspan||1)-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){return{x:0,y:this.getHeaderRowCount()}}});t.DataProvider=b;var w=u.default.ViewController.inherit({}).include(d.default).inherit({_getEmptyCell:function(){return{caption:"",colspan:1,rowspan:1}},_updateColumnWidth:function(e,t){e.width=t},_getColumns:function(e){var t,n,i=[],o=this._columnsController,s=o.getRowCount();for(t=0;t<=s;t++){var l=[];n=o.getVisibleColumns(t,!0);var u=void 0;if(t===s)if(this._updateLockCount)u=e;else{var d=this._getColumnWidths(this._headersView,this._rowsView);if(d&&d.length){u={};for(var c=0;c<n.length;c++)u[n[c].index]=d[c]}}for(var h=0;h<n.length;h++){var f=(0,r.extend)({},n[h],{dataType:"datetime"===n[h].dataType?"date":n[h].dataType,gridColumn:n[h]});if(this._needColumnExporting(f)){var p=this._calculateExportColspan(f);(0,a.isDefined)(p)&&(f.exportColspan=p),u&&this._updateColumnWidth(f,u[f.index]),l.push(f)}}i.push(l)}return n=i[s],(i=this._prepareItems(i.slice(0,-1))).push(n),i},_calculateExportColspan:function(e){var t=this;if(e.isBand){var n=this._columnsController.getChildrenByBandColumn(e.index,!0);if((0,a.isDefined)(n))return n.reduce((function(e,n){return t._needColumnExporting(n)?e+(t._calculateExportColspan(n)||1):e}),0)}},_needColumnExporting:function(e){return!e.command&&(e.allowExporting||void 0===e.allowExporting)},_getFooterSummaryItems:function(e,t){var n=[],i=1,o=0;do{for(var a=[],r=0;r<e.length;r++){var s=e[r],l=s.length;i<l&&(i=l),a.push(s[o])}n.push({values:a,rowType:t?"totalFooter":"groupFooter"})}while(o++<i-1);return n},_hasSummaryGroupFooters:function(){var e=this.option("summary.groupItems");if((0,a.isDefined)(e))for(var t=0;t<e.length;t++)if(e[t].showInGroupFooter)return!0;return!1},_getItemsWithSummaryGroupFooters:function(e){for(var t=[],n=[],i=[],o=0;o<e.length;o++){var a=e[o];"groupFooter"===a.rowType?(i=this._getFooterSummaryItems(a.summaryCells),t=t.concat(n,i),n=[]):n.push(a)}return t.length?t:n},_updateGroupValuesWithSummaryByColumn:function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n],o=i.summaryCells;if("group"===i.rowType&&o&&o.length>1){for(var a=i.values.length,r=1;r<o.length;r++)for(var s=0;s<o[r].length;s++){var u=o[r][s];u&&u.alignByColumn&&(Array.isArray(t[r-a])||(t[r-a]=[]),t[r-a].push(u))}t.length>0&&((0,l.merge)(i.values,t),t=[])}}},_processUnExportedItems:function(e){for(var t,n,i=this._columnsController.getVisibleColumns(null,!0),o=this._columnsController.getGroupColumns(),a=0;a<e.length;a++){var r=e[a],s=!1;t=[],n=[];for(var l=0;l<i.length;l++){var u=i[l];if(s=s||"detailExpand"===u.type,this._needColumnExporting(u)&&(r.values&&("group"!==r.rowType||t.length?t.push(r.values[l]):t.push(r.key[r.groupIndex])),r.summaryCells))if("group"!==r.rowType||n.length)n.push(r.summaryCells[l]);else{var d=l-o.length+r.groupIndex;n.push(r.summaryCells[s?d:d+1])}}t.length&&(r.values=t),n.length&&(r.summaryCells=n)}},_getAllItems:function(e){var t,n=this,i=new p.Deferred,o=this.getController("data"),r=o.footerItems(),s=r.length&&r[0],l=n.option("summary.totalItems");return(0,p.when)(e).done((function(e){o.loadAll(e).done((function(e,o){n._updateGroupValuesWithSummaryByColumn(e),n._hasSummaryGroupFooters()&&(e=n._getItemsWithSummaryGroupFooters(e)),t=s&&s.summaryCells,(0,a.isDefined)(o)&&l&&(t=n._getSummaryCells(l,o));var r=s&&n._getFooterSummaryItems(t,!0);r&&(e=e.concat(r)),n._processUnExportedItems(e),i.resolve(e)})).fail(i.reject)})).fail(i.reject),i},_getSummaryCells:function(e,t){var n=this.getController("data"),i=n._columnsController;return n._calculateSummaryCells(e,t,i.getVisibleColumns(null,!0),(function(e,t){return n._isDataColumn(t)?t.index:-1}))},_getSelectedItems:function(){var e=this.getController("selection").getSelectedRowsData();return this._getAllItems(e)},_getColumnWidths:function(e,t){return e&&e.isVisible()?e.getColumnWidths():t.getColumnWidths()},init:function(){this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView"),this._headersView=this.getView("columnHeadersView"),this.createAction("onExporting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onExported",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFileSaving",{excludeValidators:["disabled","readOnly"]})},callbackNames:function(){return["selectionOnlyChanged"]},getExportFormat:function(){return["EXCEL"]},getDataProvider:function(e){var t,n=this._getColumnWidths(this._headersView,this._rowsView);if(n&&n.length){t={};for(var i=this._columnsController.getVisibleColumns(this._columnsController.getRowCount(),!0),o=0;o<i.length;o++)t[i[o].index]=n[o]}return new b(this,t,e)},exportToExcel:function(e){var t=this;t._selectionOnly=e,(0,c.export)(t.component.getDataProvider(),{fileName:t.option("export.fileName"),proxyUrl:t.option("export.proxyUrl"),format:"EXCEL",autoFilterEnabled:!!t.option("export.excelFilterEnabled"),rtlEnabled:t.option("rtlEnabled"),ignoreErrors:t.option("export.ignoreExcelErrors"),exportingAction:t.getAction("onExporting"),exportedAction:t.getAction("onExported"),fileSavingAction:t.getAction("onFileSaving")},c.excel.getData)},publicMethods:function(){return["getDataProvider","getExportFormat","exportToExcel"]},selectionOnly:function(e){if(!(0,a.isDefined)(e))return this._isSelectedRows;this._isSelectedRows=e,this.selectionOnlyChanged.fire()}});t.ExportController=w,u.default.registerModule("export",{defaultOptions:function(){return{export:{enabled:!1,fileName:"DataGrid",excelFilterEnabled:!1,excelWrapTextEnabled:void 0,proxyUrl:void 0,allowExportSelectedData:!1,ignoreExcelErrors:!0,texts:{exportTo:h.default.format("dxDataGrid-exportTo"),exportAll:h.default.format("dxDataGrid-exportAll"),exportSelectedRows:h.default.format("dxDataGrid-exportSelectedRows")}}}},controllers:{export:w},extenders:{controllers:{editing:{callbackNames:function(){var e=this.callBase();return(0,a.isDefined)(e)?e.push("editingChanged"):["editingChanged"]},_updateEditButtons:function(){this.callBase(),this.editingChanged.fire(this.hasChanges())}}},views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase(),t=this._getExportToolbarButton();return t&&(e.push(t),this._correctItemsPosition(e)),e},_getExportToolbarButton:function(){var e=this,t=this._getExportToolbarItems();if(0===t.length)return null;var n={name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30,options:{items:t}};if(1===t.length){var o=m({},t[0],{hint:t[0].text,text:void 0,elementAttr:{class:y}});n.widget="dxButton",n.options=o}else{var a={icon:x,displayExpr:"text",items:t,hint:this.option("export.texts.exportTo"),elementAttr:{class:y},dropDownOptions:{wrapperAttr:{class:"dx-datagrid-export-menu"},width:"auto"}};n.options=a,n.widget="dxDropDownButton"}return n.menuItemTemplate=function(n,o,a){e._createComponent((0,i.default)(a),f.default,{items:t})},n},_getExportToolbarItems:function(){var e=this,t=this.option("export"),n=this.option("export.texts"),i=[];return t.enabled&&(i.push({text:n.exportAll,icon:"xlsxfile",onClick:function(){e._exportController.exportToExcel()}}),t.allowExportSelectedData&&i.push({text:n.exportSelectedRows,icon:"exportselected",onClick:function(){e._exportController.exportToExcel(!0)}})),i},_correctItemsPosition:function(e){e.sort((function(e,t){return e.sortIndex-t.sortIndex}))},_isExportButtonVisible:function(){return this.option("export.enabled")},_getButtonOptions:function(e){var t=this,n=t.option("export.texts");return e?{hint:n.exportTo,icon:x}:{hint:n.exportAll,icon:"export-excel-button",onClick:function(){t._exportController.exportToExcel()}}},optionChanged:function(e){this.callBase(e),"export"===e.name&&(e.handled=!0,this._invalidate())},init:function(){var e=this;this.callBase(),this._exportController=this.getController("export"),this._editingController=this.getController("editing"),this._editingController.editingChanged.add((function(t){e.setToolbarItemDisabled("exportButton",t)}))},isVisible:function(){return this.callBase()||this._isExportButtonVisible()}}}}})},24827:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(82970);o.default.registerModule("filterBuilder",a.filterBuilderModule)},95762:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(25065);o.default.registerModule("filterPanel",a.filterPanelModule)},21469:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(51711);o.default.registerModule("filterRow",a.filterRowModule)},39860:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(11276);o.default.registerModule("filterSync",a.filterSyncModule)},69887:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(8783),r=n(62754),s=n(35922),l=n(20576),u=n(47422),d=n(47617),c=n(13306),h=Number.MAX_SAFE_INTEGER||9007199254740991;o.default.registerModule("focus",(0,c.extend)(!0,{},a.focusModule,{extenders:{controllers:{data:{changeRowExpand:function(e,t){if(this.option("focusedRowEnabled")&&Array.isArray(e)&&this.isRowExpanded(e)){var n=this.getController("keyboardNavigation");t&&n.isKeyboardEnabled()||!this._isFocusedRowInsideGroup(e)||this.option("focusedRowKey",e)}return this.callBase.apply(this,arguments)},_isFocusedRowInsideGroup:function(e){var t=this.getController("columns"),n=this.option("focusedRowKey"),i=this.getRowIndexByKey(n),o=i>=0&&this.getVisibleRows()[i],a=t.getGroupDataSourceParameters(!0);if(o)for(var r=0;r<e.length;++r)if((0,d.compileGetter)(a[r]&&a[r].selector)(o.data)!==e[r])return!1;return!0},_getGroupPath:function(e){for(var t=[e.key],n=e.items;n&&n[0];){var i=n[0];void 0!==i.key&&t.push(i.key),n=i.items}return t},_expandGroupByPath:function(e,t,n){var i=new r.Deferred;return n++,e.expandRow(t.slice(0,n)).done((function(){n===t.length?i.resolve():e._expandGroupByPath(e,t,n).done(i.resolve).fail(i.reject)})).fail(i.reject),i.promise()},_calculateGlobalRowIndexByGroupedData:function(e){var t=this,n=t._dataSource,i=t._generateFilterByKey(e),o=new r.Deferred,a=Array.isArray(e),l=n.group();return a?o.resolve(-1).promise():n._grouping._updatePagingOptions?(n.load({filter:t._concatWithCombinedFilter(i),group:l}).done((function(n){if(!n||0===n.length||!(0,s.isDefined)(n[0].key)||-1===n[0].key)return o.resolve(-1).promise();var i=t._getGroupPath(n[0]);t._expandGroupByPath(t,i,0).done((function(){t._calculateExpandedRowGlobalIndex(o,e,i,l)})).fail(o.reject)})).fail(o.reject),o.promise()):(t._calculateGlobalRowIndexByFlatData(e,null,!0).done(o.resolve).fail(o.reject),o)},_calculateExpandedRowGlobalIndex:function(e,t,n,i){var o,a=(0,u.createGroupFilter)(n,{group:i}),r=this._dataSource,s=this.option("scrolling.mode"),d="virtual"===s||"infinite"===s,c=r.pageSize();r._grouping._updatePagingOptions({skip:0,take:h},(function(e,t){(0,l.equalByValue)(e.path,n)&&(o=t)})),this._calculateGlobalRowIndexByFlatData(t,a).done((function(t){var i,a;t<0?e.resolve(-1):(i=(o%c||c)+t-n.length,a=d?0:Math.floor(i/(c-n.length))*n.length,i=o+t+a,e.resolve(i))})).fail(e.reject)}}}}}))},53182:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(75775);o.default.registerModule("gridView",a.gridViewModule)},92479:function(e,t,n){t.GroupingHelper=void 0;var i=n(13306),o=n(95479),a=c(n(39941)),r=n(67932),s=n(47422),l=c(n(96688)),u=n(18438),d=n(62754);function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n,i){if(i=i||0,t>1&&n>0){var o=e-Math.floor(e/t)*t||t;return(o+=n-i-2)<0&&(o+=t),Math.floor(o/(t-i-1))}return 0}var f=r.GroupingHelper.inherit(function(){var e=function(e,t,n){return e.foreachGroups((function(e,n){if(e.isExpanded)return t(e,n)}),!0,!1,n,n)},t=function e(t,n,i,o,a,r,s){var l;if(o.items=o.items||[],o.paths=o.paths||[],o.count=o.count||0,o.lastCount=o.lastCount||0,i)for(var u=0;u<n.length;u++){var d=n[u];if(void 0!==d.items){if(a.push(d.key),r)l=!0;else{var c=t.findGroupInfo(a);l=c&&c.isExpanded}l?d.items?e(t,d.items,i-1,o,a,r,s):1!==i||!d.count||r&&!s||(o.items.push(d),o.paths.push(a.slice(0)),o.count+=o.lastCount,o.lastCount=d.count):(d.collapsedItems=d.items,d.items=null),a.pop()}}},n=function(e,t,n,i,o){var a,r=e.findGroupInfo(i);r?(n?r.count=t.count>0?t.count:t.items&&t.items.length||0:t.count=r.count||t.count,r.offset=o):(n&&(a=t.count>0?t.count:t.items.length),e.addGroupInfo({isExpanded:e._isGroupExpanded(i.length-1),path:i.slice(0),offset:o,count:a||0}))},c=function e(t,i,o,a,r,s,l){var u,d=(i.group?i.group.length:0)===a,c=0,h=0;if(r=r||0,s=s||[],i.remoteOperations.paging&&!l&&(c=0===r?i.skip||0:i.skips[r-1]||0),r>=a)return o.length;for(var f=0;f<o.length;f++){var p=o[f];if(p){if(s.push(p.key),!p.count&&!p.items||void 0===p.items)return-1;if(n(t,p,d,s,c+f),(u=p.items?e(t,i,p.items,a,r+1,s,f):p.count||-1)<0)return-1;h+=u,s.pop()}}return h},f=function(e,t){return e&&e.length&&e[t]&&!!e[t].isExpanded},p=function(e,t,n){for(var i,o=n,a=0;a<e.length;a++)i=e[a].offset+1,a>0&&(i+=e[a-1].childrenTotalCount,t&&(i+=h(o,t,i,a-1)*a)),o+=i;return o};function g(e,t,n,i){var o=t.items[i],a=e.skips&&e.skips[n],r=e.takes&&e.takes[n],s=i===t.items.length-1,l=0===i,u=l&&a||0,d=o.count>r+u;l&&void 0!==a&&(o.isContinuation=!0),s&&void 0!==r&&d&&(o.isContinuationOnNextPage=!0)}function m(e){return!Array.isArray(e)}function _(e){m(e.data)||(e.data=new d.Deferred)}function v(e,n,r,l,u,h){n.isCustomLoading||(t(e,h,r,l={},[]),function(e,t,n){var i=n-1,o=e.group?e.group.length:0;t.skip=e.skips&&e.skips[i],e.takes&&void 0!==e.takes[i]&&(t.take=o===n&&t.count?t.count-(t.skip||0):0,t.take+=e.takes[i])}(n,l,r));var f=n.group?n.group.length:0;l.paths.length&&f-r>0?(_(n),function(e,t,n,i,a,r){var l=t.group||[],u=l[a+1],h=[];(0,o.each)(n.paths,(function(i){var o={requireTotalCount:!1,requireGroupCount:!0,group:[u],groupSummary:t.storeLoadOptions.groupSummary,filter:(0,s.createGroupFilter)(n.paths[i],{filter:t.storeLoadOptions.filter,group:l}),select:t.storeLoadOptions.select};0===i&&(o.skip=n.skip||0),i===n.paths.length-1&&(o.take=n.take);var r=0===o.take?[]:e._dataSource.loadFromStore(o);(0,d.when)(r).done((function(e){var o=n.items[i];g(t,n,a,i),o.items=e})),h.push(r)})),d.when.apply(null,h).done((function(){c(e,t,r,i+1),v(e,t,i+1,n,a+1,r)}))}(e,n,l,r,u,h)):l.paths.length&&n.storeLoadOptions.group?(_(n),function(e,t,n,r){var l=[],u=t.group||[];(0,o.each)(n.paths,(function(e,n){l.push((0,s.createGroupFilter)(n,{group:t.isCustomLoading?t.storeLoadOptions.group:u}))}));var c=t.storeLoadOptions.filter;t.storeLoadOptions.isLoadingAll||(c=a.default.combineFilters([c,a.default.combineFilters(l,"or")]));var h=(0,i.extend)({},t.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:u.concat(a.default.normalizeSortingInfo(t.storeLoadOptions.sort||[])),filter:c}),f=e._dataSource.isLastLevelGroupItemsPagingLocal();f||(h.skip=n.skip,h.take=n.take),(0,d.when)(0===n.take?[]:e._dataSource.loadFromStore(h)).done((function(i,a){f&&(i=e._dataSource.sortLastLevelGroupItems(i,u,n.paths),i=n.skip?i.slice(n.skip):i,i=n.take?i.slice(0,n.take):i),(0,o.each)(n.items,(function(e,o){var a=o.count-(0===e&&n.skip||0),r=i.splice(0,a);g(t,n,u.length-1,e),o.items=r})),t.data.resolve(r)})).fail(t.data.reject)}(e,n,l,h)):m(n.data)&&n.data.resolve(h)}var y=function(e,t){var n=new d.Deferred,o=!(!t.group||!t.group.length),a=(0,i.extend)({skip:0,take:1,requireGroupCount:o,requireTotalCount:!o},t,{group:o?t.group:null});return e.load(a).done((function(e,t){var i=t&&(o?t.groupCount:t.totalCount);isFinite(i)?n.resolve(i):n.reject(u.errors.Error(o?"E4022":"E4021"))})).fail(n.reject.bind(n)),n};return{updateTotalItemsCount:function(t){var n=0,i=t.extra&&t.extra.totalCount||0,o=t.extra&&t.extra.groupCount||0,a=this._dataSource.pageSize(),r=this._isVirtualPaging();e(this,(function(e){e.childrenTotalCount=0})),e(this,(function(e,t){var i=p(t,r?0:a,n),o=e.count+e.childrenTotalCount;r||(o+=h(i,a,o,t.length-1)),t[t.length-2]?t[t.length-2].childrenTotalCount+=o:n+=o})),this.callBase(n-i+o)},_isGroupExpanded:function(e){var t=this._dataSource.group();return f(t,e)},_updatePagingOptions:function(t,n){var i=this,o=i._isVirtualPaging(),a=i._dataSource.pageSize(),r=[],s=[],l=0,u=0;t.take&&(e(this,(function(e){e.childrenTotalCount=0,e.skipChildrenTotalCount=0})),e(i,(function(e,i){var d,c=0,f=0,g=p(i,o?0:a,u),m=0,_=0,v=e.count+e.childrenTotalCount,y=v;n&&n(e,g);var x=t.skip-g;g<=t.skip+t.take&&v&&(d=t.take,o||(v+=(m=h(g,a,v,i.length-1))*i.length,y+=m,a&&x>=0&&(c=i.length,f=i.length-1,_=Math.floor(x/a))),x>=0?(g+v>t.skip&&r.unshift(x-_*c-e.skipChildrenTotalCount),g+v>=t.skip+d&&s.unshift(d-c-e.childrenTotalCount+e.skipChildrenTotalCount)):g+v>=t.skip+d&&s.unshift(d+x-e.childrenTotalCount)),g<=t.skip&&(i[i.length-2]?i[i.length-2].skipChildrenTotalCount+=Math.min(y,x+1-_*f):l+=Math.min(y,x+1)),g<=t.skip+d&&(v=Math.min(y,x+d-(_+1)*f),i[i.length-2]?i[i.length-2].childrenTotalCount+=v:u+=v)})),t.skip-=l,t.take-=u-l),t.skips=r,t.takes=s},changeRowExpand:function(e){var t=this.findGroupInfo(e),n=this._dataSource,i=n.remoteOperations().groupPaging,o=a.default.normalizeSortingInfo(n.group());return t?(t.isExpanded=!t.isExpanded,i&&t.isExpanded&&e.length<o.length?y(n,{filter:(0,s.createGroupFilter)(e,{filter:n.lastLoadOptions().filter,group:n.group()}),group:[o[e.length]],select:n.select()}).done((function(e){t.count=e})):(new d.Deferred).resolve()):(new d.Deferred).reject()},handleDataLoading:function(e){var t=this,n=e.storeLoadOptions,i=a.default.normalizeSortingInfo(n.group||e.loadOptions.group);if(!e.isCustomLoading&&i.length){if(e.remoteOperations.grouping){var o=t._dataSource.remoteOperations().paging;n.group=a.default.normalizeSortingInfo(n.group),n.group.forEach((function(e,t){var i=t===n.group.length-1;e.isExpanded=!o||!i}))}e.group=e.group||i,e.remoteOperations.paging?(e.skip=n.skip,e.take=n.take,n.requireGroupCount=!0,n.group=i.slice(0,1),t._updatePagingOptions(e),n.skip=e.skip,n.take=e.take):(e.skip=e.loadOptions.skip,e.take=e.loadOptions.take,t._updatePagingOptions(e))}},handleDataLoadedCore:function(e,n){var i,o=this,r=a.default.normalizeSortingInfo(e.storeLoadOptions.group||e.loadOptions.group).length,s=e.group?e.group.length:0,h={};if(e.isCustomLoading)n(e),t(o,e.data,r,h,[],e.isCustomLoading,e.storeLoadOptions.isLoadingAll);else{if(e.remoteOperations.paging||o.foreachGroups((function(e){e.count=0})),(i=c(o,e,e.data,r))<0)return void(e.data=(new d.Deferred).reject(l.default.Error("E1037")));if(e.remoteOperations.paging||r&&e.extra&&e.loadOptions.requireTotalCount&&(e.extra.totalCount=i,e.extra.groupCount=e.data.length),s&&e.storeLoadOptions.requireGroupCount&&!isFinite(e.extra.groupCount))return void(e.data=(new d.Deferred).reject(u.errors.Error("E4022")));o.updateTotalItemsCount(e),e.remoteOperations.paging||o._updatePagingOptions(e),n(e),e.remoteOperations.paging||o._processPaging(e,r)}v(o,e,r,h,0,e.data)},_processSkips:function(e,t,n){if(n){var i=e[0],o=t[0],a=i&&i.items;void 0!==o&&(i.isContinuation=!0,a&&(i.items=a.slice(o),this._processSkips(i.items,t.slice(1),n-1)))}},_processTakes:function(e,t,n,i,o){if(i&&e){o=o||[];var a=e[e.length-1],r=a&&a.items,s=n[0],l=t[0];if(a){var u=a.count-(a.isContinuation&&l||0)||r.length;void 0!==s&&u>s&&(a.isContinuationOnNextPage=!0,o.forEach((function(e){e.isContinuationOnNextPage=!0})),r&&(r=r.slice(0,s),a.items=r)),o.push(a),this._processTakes(r,t.slice(1),n.slice(1),i-1,o)}}},_processPaging:function(e,t){this._processSkips(e.data,e.skips,t),this._processTakes(e.data,e.skips,e.takes,t)},isLastLevelGroupItemsPagingLocal:function(){return!1},sortLastLevelGroupItems:function(e){return e},refresh:function(t,n){var i,o,l=this,u=l._dataSource,c=t.storeLoadOptions,h=t.group||t.storeLoadOptions.group,p=a.default.normalizeSortingInfo(l._group);function g(e,t){t.length===o+1&&(e.isExpanded=i)}for(o=0;o<p.length;o++)i=f(h,o),f(l._group,o)!==i&&l.foreachGroups(g);if(l.callBase.apply(this,arguments),h&&t.remoteOperations.paging&&n.reload)return e(l,(function(e){var n=y(u,{filter:(0,s.createGroupFilter)(e.path,{filter:c.filter,group:h}),group:h.slice(e.path.length),select:c.select}),i=y(u,{filter:(0,r.createOffsetFilter)(e.path,{filter:c.filter,group:h},!0),group:h.slice(e.path.length-1,e.path.length),select:c.select});return(0,d.when)(i,n).done((function(n,i){n=parseInt(n.length?n[0]:n),i=parseInt(i.length?i[0]:i),e.offset=n,e.count!==i&&(e.count=i,l.updateTotalItemsCount(t))}))}),!0)}}}());t.GroupingHelper=f},67932:function(e,t,n){t.GroupingHelper=void 0,t.createOffsetFilter=function(e,t,n){for(var i=(0,r.normalizeSortingInfo)(t.group),o=[],s=n?e.length-1:0;s<e.length;s++){for(var l=[],u=0;u<=s;u++){var d=i[u].selector;if(s!==u||null!==e[u]&&!1!==e[u]&&!0!==e[u]){var c=[d,s===u?i[u].desc?">":"<":"=",e[u]];"<"===c[1]?l.push([c,"or",[d,"=",null]]):l.push(c)}else!1===e[u]?l.push([d,"=",!!i[u].desc||null]):(e[u]?!i[u].desc:i[u].desc)?l.push([d,"<>",e[u]]):(l.push([d,"<>",null]),l.push([d,"=",null]))}o.push(a.default.combineFilters(l))}return o=a.default.combineFilters(o,"or"),a.default.combineFilters([o,t.filter])};var i=l(n(68374)),o=l(n(38377)),a=l(n(39941)),r=n(16454),s=n(62754);function l(e){return e&&e.__esModule?e:{default:e}}var u,d,c,h,f=o.default.inherit((u=function(e,t){var n=e.hash;return n&&n[JSON.stringify(t)]},d=function(e,t){var n,i=0,o=e.length-1;if(!e.length)return 0;do{var a=o+i>>1;e[a].offset>t?o=a:i=a}while(o-i>1);for(n=i;n<=o&&!(e[n].offset>t);n++);return n},c=function e(t,n,i){for(var o=0;o<t.length;o++)n+1>=i?t[o].children=[]:e(t[o].children,n+1,i)},h=function e(t,n,i){var o=0;if(n)if(i)for(var a=0;a<n.length;a++)t.isGroupItemCountable(n[a])&&o++,o+=e(t,n[a].items,i-1);else o=n.length;return o},{ctor:function(e){this._dataSource=e,this.reset()},reset:function(){this._groupsInfo=[],this._totalCountCorrection=0},totalCountCorrection:function(){return this._totalCountCorrection},updateTotalItemsCount:function(e){this._totalCountCorrection=e||0},isGroupItemCountable:function(e){return!this._isVirtualPaging()||!e.isContinuation},_isVirtualPaging:function(){var e=this._dataSource.option("scrolling.mode");return"virtual"===e||"infinite"===e},itemsCount:function(){var e=this._dataSource._dataSource,t=a.default.normalizeSortingInfo(e.group()||[]).length;return h(this,e.items(),t)},foreachGroups:function(e,t,n,o,a){var r=this;return function e(t,l,u,d){var c=[];function h(e,t,n,i){var o=t&&e(t,n);return o&&i.push(o),o}for(var f=0;f<t.length;f++){if(d.push(t[f].data),!u&&!1===h(l,t[f].data,d,c))return!1;if(!t[f].data||t[f].data.isExpanded||n){var p=t[f].children,g=p.length&&e(p,l,u,d);if(g&&c.push(g),!1===g)return!1}if(u&&!1===h(l,t[f].data,d,c))return!1;t[f].data&&t[f].data.offset===t[f].offset||(o=!0),d.pop()}var m=a&&d.slice(0);return o&&s.when.apply(i.default,c).always((function(){r._updateGroupInfoOffsets(t,m)}))}(r._groupsInfo,e,t,[])},_updateGroupInfoOffsets:function(e,t){t=t||[];for(var n=0;n<e.length;n++){var i=e[n];if(i.data&&i.data.offset!==i.offset){i.offset=i.data.offset;for(var o=0;o<t.length;o++)t[o].offset=i.offset}}e.sort((function(e,t){return e.offset-t.offset}))},findGroupInfo:function(e){for(var t,n=this._groupsInfo,i=0;n&&i<e.length;i++)n=(t=u(n,e[i]))&&t.children;return t&&t.data},addGroupInfo:function(e){for(var t,n=e.path,i=this._groupsInfo,o=0;o<n.length;o++){if(!(t=u(i,n[o]))){t={key:n[o],offset:e.offset,data:{offset:e.offset,isExpanded:!0,path:n.slice(0,o+1)},children:[]};var a=d(i,e.offset);i.splice(a,0,t),i.hash=i.hash||{},i.hash[JSON.stringify(t.key)]=t}o===n.length-1&&(t.data=e,t.offset!==e.offset&&this._updateGroupInfoOffsets(i)),i=t.children}},allowCollapseAll:function(){return!0},refresh:function(e){var t=this,n=e.storeLoadOptions,i=(0,r.normalizeSortingInfo)(n.group||[]),o="_group"in t?(0,r.normalizeSortingInfo)(t._group||[]):i,a=Math.min(o.length,i.length);t._group=n.group;for(var s=0;s<a;s++)if(o[s].selector!==i[s].selector){a=s;break}a?c(t._groupsInfo,0,a):t.reset()},handleDataLoading:function(){},handleDataLoaded:function(e,t){t(e)},handleDataLoadedCore:function(e,t){t(e)}}));t.GroupingHelper=f},46687:function(e,t,n){t.GroupingHelper=void 0;var i=n(47617),o=n(16454),a=n(95479),r=n(13306),s=f(n(99236)),l=f(n(39941)),u=n(67932),d=n(47422),c=f(n(96687)),h=n(62754);function f(e){return e&&e.__esModule?e:{default:e}}var p,g,m,_,v,y,x=function(e,t){var n=new h.Deferred,i=(0,r.extend)({skip:0,take:1,requireTotalCount:!0},t);return e.load(i).done((function(e,t){n.resolve(t&&t.totalCount)})).fail(n.reject.bind(n)),n},b=u.GroupingHelper.inherit((p=function(e,t,n){return e.foreachGroups((function(e){if(!e.isExpanded)return t(e)}),!1,!1,n,!0)},g=function(e,t){var n=0,i=t||0;return t&&(p(e,(function(e){if(e.offset-n>=t)return!1;n+=e.count-1})),i+=n),i},m=function e(t,n,i,o,a,r){for(var s=0,l=!1,u=0;u<n.length;u++){var d=n[u];if(void 0!==d.items){i.push(d.key);var c=t.findGroupInfo(i);if(c&&!c.isExpanded)d.collapsedItems=d.items,d.items=null,o+=c.count,--r<0&&s++,a&&(l=!0);else if(d.items){var h=e(t,d.items,i,o,a,r);a&&(h.offset-o>1?d.isContinuation=!0:l=!0),o=h.offset,(r=h.take)<0&&(d.items.length?d.isContinuationOnNextPage=!0:s++)}i.pop()}else a&&(l=!0),o++,--r<0&&s++;a=!1}return l&&n.splice(0,1),s&&n.splice(-s,s),{offset:o,take:r}},_=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!(0,o.keysEqual)(null,e[n],t[n]))return!1;return!0},v=function e(t,n,i,o,a){if(n){for(var r=0;r<n.length;r++){var s=n[r];if("key"in s&&void 0!==s.items){i.push(s.key),a&&_(a.path,i)&&!s.isContinuation&&(a.offset=o);var l=t.findGroupInfo(i);l&&!s.isContinuation&&(l.offset=o),l&&!l.isExpanded?o+=l.count:o=e(t,s.items,i,o,a),i.pop()}else o++}return o}},y=function e(t,n){var i=t.count||t.items.length;if(!t.count&&n>1){i=0;for(var o=0;o<t.items.length;o++)i+=e(t.items[o],n-1)}return i},{handleDataLoading:function(e){var t,n=e.storeLoadOptions,i=[],o=0,u=!1,d=e.loadOptions.group,c=0;if(function(e,t){if(t.group){var n=l.default.normalizeSortingInfo(t.group),i=l.default.normalizeSortingInfo(e.sort);e.sort=s.default.arrangeSortingInfo(n,i),delete t.group}}(n,e.loadOptions),e.group=e.group||d,!e.isCustomLoading){var h=(0,r.extend)({},n);h.skip=g(this,n.skip),h.skip&&h.take&&d&&(h.skip--,h.take++,u=!0),h.take&&d&&(t=h.take,h.take++),p(this,(function(e){if(e.offset>=h.skip+h.take+c)return!1;e.offset>=h.skip+c&&e.count&&(c+=e.count-1,i.push(e),o+=e.count)})),(0,a.each)(i,(function(){h.filter=function(e,t,n){for(var i=l.default.normalizeSortingInfo(n||t.group),o=[],a=0;a<e.length;a++){for(var r=[],s=0;s<=a;s++)r.push([i[s].selector,a===s?"<>":"=",e[s]]);o.push(l.default.combineFilters(r))}return o=l.default.combineFilters(o,"or"),l.default.combineFilters([o,t.filter])}(this.path,h,d)})),e.storeLoadOptions=h,e.collapsedGroups=i,e.collapsedItemsCount=o,e.skip=h.skip||0,e.skipFirstItem=u,e.take=t}},handleDataLoaded:function(e,t){var n=e.collapsedGroups,o=l.default.normalizeSortingInfo(e.group),a=o.length;function r(e,t,n,o,a){if(e&&t.length&&n.length){var s,l,u=(0,i.toComparable)(t[0],!0);for(l=0;l<e.length&&(s=(0,i.toComparable)(e[l].key,!0),!(a>=o.offset||u===s));l++)a+=y(e[l],n.length);e.length&&u===s||e.splice(l,0,{key:t[0],items:[],count:1===t.length?o.count:void 0}),r(e[l].items,t.slice(1),n.slice(1),o,a)}}if(e.collapsedItemsCount&&e.extra&&e.extra.totalCount>=0&&(e.extra.totalCount+=e.collapsedItemsCount),t(e),a){var u=e.data,d=(0,c.default)(u);if(s.default.multiLevelGroup(d,o).enumerate().done((function(e){u=e})),n)for(var h=0;h<n.length;h++)r(u,n[h].path,o,n[h],e.skip);e.isCustomLoading||m(this,u,[],e.skip,e.skipFirstItem,e.take),e.data=u}},isGroupItemCountable:function(e){return null===e.items},updateTotalItemsCount:function(){var e=0;p(this,(function(t){t.count&&(e-=t.count-1)})),this.callBase(e)},changeRowExpand:function(e){var t,n=this,i=n._dataSource,o=i.beginPageIndex?i.beginPageIndex():i.pageIndex(),a=i.items(),r=g(n,o*i.pageSize()),s=n.findGroupInfo(e);return t=s&&!s.isExpanded?(new h.Deferred).resolve(s.count):x(i,{filter:(0,d.createGroupFilter)(e,{filter:i.filter(),group:i.group()})}),(0,h.when)(t).done((function(t){t=parseInt(t.length?t[0]:t),s?(v(n,a,[],r),s.isExpanded=!s.isExpanded,s.count=t):(v(n,a,[],r,s={offset:-1,count:t,path:e,isExpanded:!1}),s.offset>=0&&n.addGroupInfo(s)),n.updateTotalItemsCount()})).fail((function(){i._eventsStrategy.fireEvent("loadError",arguments)}))},allowCollapseAll:function(){return!1},refresh:function(e,t){var n=this,i=e.storeLoadOptions,o=n._dataSource;if(this.callBase.apply(this,arguments),t.reload)return p(n,(function(e){var t=x(o,{filter:(0,d.createGroupFilter)(e.path,i)}),a=x(o,{filter:(0,u.createOffsetFilter)(e.path,i)});return(0,h.when)(a,t).done((function(t,i){t=parseInt(t.length?t[0]:t),i=parseInt(i.length?i[0]:i),e.offset=t,e.count!==i&&(e.count=i,n.updateTotalItemsCount())}))}),!0)}}));t.GroupingHelper=b},12085:function(e,t,n){t.GroupingHeaderPanelExtender=void 0;var i=n(58664),o=m(n(68374)),a=m(n(39941)),r=n(46687),s=n(92479),l=m(n(28109)),u=m(n(99754)),d=n(35922),c=n(95479),h=m(n(20530)),f=n(62754),p=n(25337),g=n(56756);function m(e){return e&&e.__esModule?e:{default:e}}var _="dx-group-panel-item",v={init:function(){this.callBase.apply(this,arguments),this._initGroupingHelper()},_initGroupingHelper:function(e){var t=this._grouping,n=this.option("grouping.autoExpandAll"),i=this.option("focusedRowEnabled"),o=e?e.remoteOperations:this.remoteOperations();!(o.filtering&&o.sorting&&o.paging)||o.grouping||!n&&i?(!t||t instanceof r.GroupingHelper)&&(this._grouping=new s.GroupingHelper(this)):(!t||t instanceof s.GroupingHelper)&&(this._grouping=new r.GroupingHelper(this))},totalItemsCount:function(){var e=this,t=e.callBase();return t>0&&e._dataSource.group()&&e._dataSource.requireTotalCount()?t+e._grouping.totalCountCorrection():t},itemsCount:function(){return this._dataSource.group()?this._grouping.itemsCount()||0:this.callBase.apply(this,arguments)},allowCollapseAll:function(){return this._grouping.allowCollapseAll()},isGroupItemCountable:function(e){return this._grouping.isGroupItemCountable(e)},isRowExpanded:function(e){var t=this._grouping.findGroupInfo(e);return t?t.isExpanded:!this._grouping.allowCollapseAll()},collapseAll:function(e){return this._collapseExpandAll(e,!1)},expandAll:function(e){return this._collapseExpandAll(e,!0)},_collapseExpandAll:function(e,t){var n=this,i=n._dataSource,o=i.group(),r=a.default.normalizeSortingInfo(o||[]);if(r.length){for(var s=0;s<r.length;s++)void 0===e||e===s?r[s].isExpanded=t:o&&o[s]&&(r[s].isExpanded=o[s].isExpanded);i.group(r),n._grouping.foreachGroups((function(n,i){void 0!==e&&e!==i.length-1||(n.isExpanded=t)}),!1,!0),n.resetPagesCache()}return!0},refresh:function(){return this.callBase.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)},changeRowExpand:function(e){var t=this,n=t._dataSource;if(n.group())return n.beginLoading(),t._lastLoadOptions&&(t._lastLoadOptions.groupExpand=!0),t._changeRowExpandCore(e).always((function(){n.endLoading()}))},_changeRowExpandCore:function(e){return this._grouping.changeRowExpand(e)},_hasGroupLevelsExpandState:function(e,t){if(e&&Array.isArray(e))for(var n=0;n<e.length;n++)if(e[n].isExpanded===t)return!0},_customizeRemoteOperations:function(e,t){var n=e.remoteOperations;e.storeLoadOptions.group?(n.grouping&&!e.isCustomLoading&&(n.groupPaging&&!this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!0)||(n.paging=!1)),n.grouping||n.sorting&&n.filtering&&!e.isCustomLoading&&!this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!1)||(n.paging=!1)):!e.isCustomLoading&&n.paging&&t.grouping&&this.resetCache(),this.callBase.apply(this,arguments)},_handleDataLoading:function(e){return this.callBase(e),this._initGroupingHelper(e),this._grouping.handleDataLoading(e)},_handleDataLoaded:function(e){return this._grouping.handleDataLoaded(e,this.callBase.bind(this))},_handleDataLoadedCore:function(e){return this._grouping.handleDataLoadedCore(e,this.callBase.bind(this))}};u.default.extend(v);var y={init:function(){var e=this;e.callBase(),e.createAction("onRowExpanding"),e.createAction("onRowExpanded"),e.createAction("onRowCollapsing"),e.createAction("onRowCollapsed")},_beforeProcessItems:function(e){var t=this._columnsController.getGroupColumns();return(e=this.callBase(e)).length&&t.length&&(e=this._processGroupItems(e,t.length)),e},_processItem:function(e,t){return(0,d.isDefined)(e.groupIndex)&&(0,d.isString)(e.rowType)&&0===e.rowType.indexOf("group")?(e=this._processGroupItem(e,t),t.dataIndex=0):e=this.callBase.apply(this,arguments),e},_processGroupItem:function(e){return e},_processGroupItems:function(e,t,n){var i=this,o=i._columnsController.getGroupColumns(),a=o[o.length-t];if(!n){var r=i.option("scrolling.mode");n={collectContinuationItems:"virtual"!==r&&"infinite"!==r,resultItems:[],path:[],values:[]}}var s=n.resultItems;if(n.data&&(!n.collectContinuationItems&&n.data.isContinuation||s.push({rowType:"group",data:n.data,groupIndex:n.path.length-1,isExpanded:!!n.data.items,key:n.path.slice(0),values:n.values.slice(0)})),e)if(0===t)s.push.apply(s,e);else for(var l=0;l<e.length;l++){var u=e[l];u&&"items"in u?(n.data=u,n.path.push(u.key),n.values.push(a&&a.deserializeValue&&!a.calculateDisplayValue?a.deserializeValue(u.key):u.key),i._processGroupItems(u.items,t-1,n),n.data=void 0,n.path.pop(),n.values.pop()):s.push(u)}return s},publicMethods:function(){return this.callBase().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])},collapseAll:function(e){var t=this._dataSource;t&&t.collapseAll(e)&&(t.pageIndex(0),t.reload())},expandAll:function(e){var t=this._dataSource;t&&t.expandAll(e)&&(t.pageIndex(0),t.reload())},changeRowExpand:function(e){var t=this,n=t.isRowExpanded(e),i={key:e,expanded:n};return t.executeAction(n?"onRowCollapsing":"onRowExpanding",i),i.cancel?(new f.Deferred).resolve():(0,f.when)(t._changeRowExpandCore(e)).done((function(){i.expanded=!n,t.executeAction(n?"onRowCollapsed":"onRowExpanded",i)}))},_changeRowExpandCore:function(e){var t=this,n=this._dataSource,i=new f.Deferred;return n?(0,f.when)(n.changeRowExpand(e)).done((function(){t.load().done(i.resolve).fail(i.reject)})).fail(i.reject):i.resolve(),i},isRowExpanded:function(e){var t=this._dataSource;return t&&t.isRowExpanded(e)},expandRow:function(e){return this.isRowExpanded(e)?(new f.Deferred).resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new f.Deferred).resolve()},optionChanged:function(e){"grouping"===e.name&&(e.name="dataSource"),this.callBase(e)}},x=function(e,t){var n=this._columnsController;switch(t.itemData.value){case"group":var i=n._dataSource.group()||[];n.columnOption(e.dataField,"groupIndex",i.length);break;case"ungroup":n.columnOption(e.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},b={_getToolbarItems:function(){var e=this.callBase();return this._appendGroupingItem(e)},_appendGroupingItem:function(e){var t=this;if(this._isGroupPanelVisible()){var n=!1,i={template:function(){var e=(0,o.default)("<div>").addClass("dx-datagrid-group-panel");return t._updateGroupPanelContent(e),(0,p.registerKeyboardAction)("groupPanel",t,e,void 0,t._handleActionKeyDown.bind(t)),e},name:"groupPanel",onItemRendered:function(){n&&t.renderCompleted.fire(),n=!0},location:"before",locateInMenu:"never",sortIndex:1};e.push(i)}return e},_handleActionKeyDown:function(e){var t=e.event,n=(0,o.default)(t.target),i=n.closest(".".concat(_)).index(),a=this._columnsController.getGroupColumns()[i],r=a&&a.index;n.is(".dx-header-filter")?this.getController("headerFilter").showHeaderFilterMenu(r,!0):this._processGroupItemAction(r),t.preventDefault()},_isGroupPanelVisible:function(){var e,t=this.option("groupPanel");return t&&"auto"===(e=t.visible)&&(e="desktop"===h.default.current().deviceType),e},_renderGroupPanelItems:function(e,t){var n=this;e.empty(),(0,c.each)(t,(function(t,i){n._createGroupPanelItem(e,i)})),(0,g.restoreFocus)(this)},_createGroupPanelItem:function(e,t){var n=(0,o.default)("<div>").addClass(t.cssClass).addClass(_).data("columnData",t).appendTo(e).text(t.caption);return(0,g.setTabIndex)(this,n),n},_columnOptionChanged:function(e){if(!this._requireReady&&!a.default.checkChanges(e.optionNames,["width","visibleWidth"])){var t=this.element(),n=t&&t.find(".dx-datagrid-group-panel");n&&n.length&&(this._updateGroupPanelContent(n),this.renderCompleted.fire())}this.callBase()},_updateGroupPanelContent:function(e){var t=this,n=t.getController("columns").getGroupColumns(),i=t.option("groupPanel");t._renderGroupPanelItems(e,n),i.allowColumnDragging&&!n.length&&((0,o.default)("<div>").addClass("dx-group-panel-message").text(i.emptyPanelText).appendTo(e),e.closest(".dx-toolbar-label").css("maxWidth","none"),t.updateToolbarDimensions())},allowDragging:function(e){var t=this.option("groupPanel");return this._isGroupPanelVisible()&&t.allowColumnDragging&&e&&e.allowGrouping},getColumnElements:function(){var e=this.element();return e&&e.find(".dx-group-panel-item")},getColumns:function(){return this.getController("columns").getGroupColumns()},getBoundingRect:function(){var e=this.element();if(e&&e.find(".dx-datagrid-group-panel").length){var t=e.offset();return{top:t.top,bottom:t.top+(0,i.getHeight)(e)}}return null},getName:function(){return"group"},getContextMenuItems:function(e){var t,n=this,i=n.option("grouping.contextMenuEnabled"),a=(0,o.default)(e.targetElement).closest(".dx-group-panel-item");if(a.length&&(e.column=a.data("columnData")),i&&e.column){var r=e.column;if(!(0,d.isDefined)(r.allowGrouping)||r.allowGrouping){var s=(0,d.isDefined)(r.groupIndex)&&r.groupIndex>-1,l=n.option("grouping.texts"),u=x.bind(n,r);t=[{text:l.ungroup,value:"ungroup",disabled:!s,onItemClick:u},{text:l.ungroupAll,value:"ungroupAll",onItemClick:u}]}}return t},isVisible:function(){return this.callBase()||this._isGroupPanelVisible()},optionChanged:function(e){"groupPanel"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}};t.GroupingHeaderPanelExtender=b;var w={getContextMenuItems:function(e){var t,n=this;if(n.option("grouping.contextMenuEnabled")&&e.row&&"group"===e.row.rowType){var i=n._columnsController.columnOption("groupIndex:"+e.row.groupIndex);if(i&&i.allowGrouping){var o=n.option("grouping.texts"),a=x.bind(n,i);(t=[]).push({text:o.ungroup,value:"ungroup",onItemClick:a},{text:o.ungroupAll,value:"ungroupAll",onItemClick:a})}}return t},_rowClick:function(e){var t=this,n=t.option("grouping.expandMode"),i="infinite"!==t.option("scrolling.mode")&&"rowClick"===n&&(0,o.default)(e.event.target).closest(".dx-group-row").length,a=(0,o.default)(e.event.target).closest(".dx-datagrid-expand").length;(i||a)&&t._changeGroupRowState(e),t.callBase(e)},_changeGroupRowState:function(e){var t=this.getController("data"),n=t.items()[e.rowIndex],i=this._columnsController.columnOption("groupIndex:"+n.groupIndex,"allowCollapsing");("data"===n.rowType||"group"===n.rowType&&!1!==i)&&(t.changeRowExpand(n.key,!0),e.event.preventDefault(),e.handled=!0)}},C={getContextMenuItems:function(e){var t=this,n=t.option("grouping.contextMenuEnabled"),i=t.callBase(e);if(n&&e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)){var o=e.column;if(!o.command&&(!(0,d.isDefined)(o.allowGrouping)||o.allowGrouping)){var a=t.option("grouping.texts"),r=(0,d.isDefined)(o.groupIndex)&&o.groupIndex>-1,s=x.bind(t,o);(i=i||[]).push({text:a.groupByThisColumn,value:"group",beginGroup:!0,disabled:r,onItemClick:s}),o.showWhenGrouped&&i.push({text:a.ungroup,value:"ungroup",disabled:!r,onItemClick:s}),i.push({text:a.ungroupAll,value:"ungroupAll",onItemClick:s})}}return i}};a.default.registerModule("grouping",{defaultOptions:function(){return{grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:l.default.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:l.default.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:l.default.format("dxDataGrid-groupHeaderText"),ungroup:l.default.format("dxDataGrid-ungroupHeaderText"),ungroupAll:l.default.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:l.default.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}},extenders:{controllers:{data:y,columns:{_getExpandColumnOptions:function(){var e=this.callBase.apply(this,arguments);return e.cellTemplate=a.default.getExpandCellTemplate(),e}},editing:{_isProcessedItem:function(e){return(0,d.isDefined)(e.groupIndex)&&(0,d.isString)(e.rowType)&&0===e.rowType.indexOf("group")}}},views:{headerPanel:b,rowsView:w,columnHeadersView:C}}})},45418:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(82228);o.default.registerModule("headerFilter",a.headerFilterModule)},78391:function(e,t,n){t.HeaderPanel=void 0;var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(28935),r=a.headerPanelModule.views.headerPanel;t.HeaderPanel=r,o.default.registerModule("headerPanel",a.headerPanelModule)},88221:function(e,t,n){t.default=void 0;var i,o=(i=n(78141))&&i.__esModule?i:{default:i};n(50266),n(92645),n(21612),n(12085),n(67696),n(26471),n(10074),n(56115),n(39667),n(80472),n(96904),n(21469),n(45418),n(39860),n(24827),n(95762),n(67978),n(61280),n(46985),n(96798),n(75538),n(82066),n(49169),n(8653),n(56673),n(69887),n(3891);var a=o.default;t.default=a,e.exports=t.default,e.exports.default=t.default},96798:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(71402);o.default.registerModule("keyboardNavigation",a.keyboardNavigationModule)},67696:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(40214);o.default.registerModule("masterDetail",a.masterDetailModule)},61280:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(23316);o.default.registerModule("pager",a.pagerModule)},3891:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(82213);o.default.registerModule("rowDragging",a.rowDraggingModule)},76771:function(e,t,n){t.RowsView=void 0;var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(71211),r=a.rowsModule.views.rowsView;t.RowsView=r,o.default.registerModule("rows",a.rowsModule)},67978:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(54697);o.default.registerModule("search",a.searchModule)},92645:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(80040);o.default.registerModule("selection",a.selectionModule)},45722:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(35846);o.default.registerModule("sorting",a.sortingModule)},50266:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(10093);o.default.registerModule("stateStoring",a.stateStoringModule)},75538:function(e,t,n){t.renderSummaryCell=t.FooterView=void 0;var i=v(n(68374)),o=n(20576),a=n(35922),r=n(95479),s=n(13306),l=n(47617),u=v(n(96688)),d=v(n(39941)),c=v(n(28109)),h=v(n(99754)),f=n(10980),p=v(n(34452)),g=v(n(96687)),m=v(n(99236)),_=n(16454);function v(e){return e&&e.__esModule?e:{default:e}}var y="dx-datagrid-group-footer",x="groupFooter",b=function(e,t){var n=(0,i.default)(e),o=t.column,a=t.summaryItems,r=[];if(!o.command&&a){for(var s=0;s<a.length;s++){var l=a[s];r.push((0,i.default)("<div>").css("textAlign",l.alignment||o.alignment).addClass("dx-datagrid-summary-item").addClass("dx-datagrid-text-content").addClass(l.cssClass).toggleClass("dx-datagrid-group-text-content","group"===t.rowType).text(d.default.getSummaryText(l,t.summaryTexts)))}n.append(r)}};t.renderSummaryCell=b;var w=function(e,t){var n=e.option("summary.texts")||{};return{totalItem:t.row,summaryItems:t.row.summaryCells[t.columnIndex],summaryTexts:n}},C=function(e){return e.summary||e.aggregates||[]},S=function(e){return e.option("summary.recalculateWhileEditing")},k=f.ColumnsView.inherit({_getRows:function(){return this._dataController.footerItems()},_getCellOptions:function(e){return(0,s.extend)(this.callBase(e),w(this,e))},_renderCellContent:function(e,t){b(e,t),this.callBase(e,t)},_renderCore:function(e){var t=!1,n=this._dataController.footerItems()[0];e&&e.columnIndices||(this.element().empty().addClass("dx-datagrid-total-footer").toggleClass("dx-datagrid-nowrap",!this.option("wordWrapEnabled")),t=!0),n&&n.summaryCells&&n.summaryCells.length&&(this._updateContent(this._renderTable({change:e}),e),t&&this._updateScrollLeftPosition())},_updateContent:function(e,t){if(!t||"update"!==t.changeType||!t.columnIndices)return this.callBase.apply(this,arguments);var n=this.getTableElement().find(".dx-row"),i=e.find(".dx-row");this._updateCells(n,i,t.columnIndices[0])},_rowClick:function(e){var t=this._dataController.footerItems()[e.rowIndex]||{};this.executeAction("onRowClick",(0,s.extend)({},e,t))},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&this.callBase(e)},_handleDataChanged:function(e){var t=e.changeType;"update"===e.changeType&&e.repaintChangesOnly?e.totalColumnIndices?e.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[e.totalColumnIndices]}):this.render():"refresh"!==t&&"append"!==t&&"prepend"!==t||this.render()},getHeight:function(){return this.getElementHeight()},isVisible:function(){return!!this._dataController.footerItems().length}});t.FooterView=k;var D,I,T,E,A,O={init:function(){this.callBase.apply(this,arguments),this._totalAggregates=[],this._summaryGetter=o.noop},summaryGetter:function(e){if(!arguments.length)return this._summaryGetter;(0,a.isFunction)(e)&&(this._summaryGetter=e)},summary:function(e){if(!arguments.length)return this._summaryGetter();this._summaryGetter=function(){return e}},totalAggregates:function(){return this._totalAggregates},isLastLevelGroupItemsPagingLocal:function(){var e=this.summary(),t=e&&e.sortByGroups();return t&&t.length},sortLastLevelGroupItems:function(e,t,n){var i=m.default.multiLevelGroup((0,g.default)(e),t).toArray(),o=[];return n.forEach((function(e){!function e(t,n,i,o){o=o||[];for(var a=0;a<t.length;a++)o.push(t[a].key),1===n?i(o,t[a].items):e(t[a].items,n-1,i,o),o.pop()}(i,t.length,(function(t,n){e.toString()===t.toString()&&(o=o.concat(n))}))})),o}},P=(D=function e(t,n,i){return i?e(t,n.map((function(e){return{items:[e]}}),i-1)):t.concat(n)},I=function e(t,n,i){return i?t.map((function(t){var o={},a=e(t.items||[],n,i-1);return Object.defineProperty(o,"aggregates",{get:function(){return t.aggregates},set:function(e){t.aggregates=e}}),(0,s.extend)(o,t,{items:a})})):t.filter((function(e){return n.indexOf(e)<0}))},T=function(e,t,n,i){var o;if(S(e)){var a=e.getController("editing");if(a){var r=a.getInsertedData();r.length&&(n=D(n,r,i));var s=a.getRemovedData();s.length&&(n=I(n,s,i))}}return t&&(o=new p.default({totalAggregates:t.totalAggregates,groupAggregates:t.groupAggregates,data:n,groupLevel:i})).calculate(),o?o.totalAggregates():[]},E=function e(t,n,i){if(!t||!n.length)return t;var o,a=n[0],s=i[0];return a&&s&&s.length&&(o=(0,g.default)(t),(0,r.each)(s,(function(e){o=0===e?o.sortBy(this.selector,this.desc):o.thenBy(this.selector,this.desc)})),o.enumerate().done((function(e){t=e}))),n=n.slice(1),i=i.slice(1),n.length&&i.length&&(0,r.each)(t,(function(){this.items=e(this.items,n,i)})),t},A=function(e,t,n){var i=n&&n.sortByGroups&&n.sortByGroups();return i&&i.length?E(e,t,i):e},{_customizeRemoteOperations:function(e){var t=this.summary();t&&(e.remoteOperations.summary?e.isCustomLoading&&!e.storeLoadOptions.isLoadingAll||(e.storeLoadOptions.group&&(e.remoteOperations.grouping?e.storeLoadOptions.groupSummary=t.groupAggregates:t.groupAggregates.length&&(e.remoteOperations.paging=!1)),e.storeLoadOptions.totalSummary=t.totalAggregates):(t.totalAggregates.length||t.groupAggregates.length&&e.storeLoadOptions.group)&&(e.remoteOperations.paging=!1)),this.callBase.apply(this,arguments);var n=e.cachedData.extra;n&&n.summary&&!e.isCustomLoading&&(e.storeLoadOptions.totalSummary=void 0)},_handleDataLoadedCore:function(e){var t=this,n=(0,_.normalizeSortingInfo)(e.storeLoadOptions.group||e.loadOptions.group||[]),i=e.remoteOperations||{},o=t.summaryGetter()(i);if(!e.isCustomLoading||e.storeLoadOptions.isLoadingAll)if(i.summary)!i.paging&&n.length&&o&&(i.grouping||T(t,{groupAggregates:o.groupAggregates},e.data,n.length),e.data=A(e.data,n,o));else if(!i.paging&&o){var r,s,l=e.operationTypes||{};if(!Object.keys(l).some((function(e){return l[e]}))||null===(r=e.cachedData)||void 0===r||null===(s=r.extra)||void 0===s||!s.summary||n.length&&o.groupAggregates.length){var u=T(t,o,e.data,n.length);e.extra=(0,a.isPlainObject)(e.extra)?e.extra:{},e.extra.summary=u,e.cachedData&&(e.cachedData.extra=e.extra)}e.data=A(e.data,n,o)}e.isCustomLoading||(t._totalAggregates=e.extra&&e.extra.summary||t._totalAggregates),t.callBase(e)}});h.default.extend(O),h.default.extend(P),d.default.registerModule("summary",{defaultOptions:function(){return{summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,recalculateWhileEditing:!1,texts:{sum:c.default.format("dxDataGrid-summarySum"),sumOtherColumn:c.default.format("dxDataGrid-summarySumOtherColumn"),min:c.default.format("dxDataGrid-summaryMin"),minOtherColumn:c.default.format("dxDataGrid-summaryMinOtherColumn"),max:c.default.format("dxDataGrid-summaryMax"),maxOtherColumn:c.default.format("dxDataGrid-summaryMaxOtherColumn"),avg:c.default.format("dxDataGrid-summaryAvg"),avgOtherColumn:c.default.format("dxDataGrid-summaryAvgOtherColumn"),count:c.default.format("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}},views:{footerView:k},extenders:{controllers:{data:{_isDataColumn:function(e){return e&&(!(0,a.isDefined)(e.groupIndex)||e.showWhenGrouped)},_isGroupFooterVisible:function(){for(var e=this.option("summary.groupItems")||[],t=0;t<e.length;t++){var n=e[t],i=this._columnsController.columnOption(n.showInColumn||n.column);if(n.showInGroupFooter&&this._isDataColumn(i))return!0}return!1},_processGroupItems:function(e,t,n){var i=n&&n.data,o=this.callBase.apply(this,arguments);return n&&(void 0===n.isGroupFooterVisible&&(n.isGroupFooterVisible=this._isGroupFooterVisible()),i&&i.items&&n.isGroupFooterVisible&&(n.collectContinuationItems||!i.isContinuationOnNextPage)&&o.push({rowType:x,key:n.path.slice(),data:i,groupIndex:n.path.length-1,values:[]})),o},_processGroupItem:function(e,t){var n=this;if(t.summaryGroupItems||(t.summaryGroupItems=n.option("summary.groupItems")||[]),"group"===e.rowType){var i=-1,o=-1;(0,r.each)(t.visibleColumns,(function(n){var a=t.visibleColumns[n-1];e.groupIndex===this.groupIndex&&(i=this.index),n>0&&"expand"===a.command&&"expand"!==this.command&&(o=this.index)})),e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,C(e.data),t.visibleColumns,(function(e,t){return e.showInGroupFooter?-1:e.alignByColumn&&t&&!(0,a.isDefined)(t.groupIndex)&&t.index!==o?t.index:i}),!0)}return e.rowType===x&&(e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,C(e.data),t.visibleColumns,(function(e,t){return e.showInGroupFooter&&n._isDataColumn(t)?t.index:-1}))),e},_calculateSummaryCells:function(e,t,n,i,o){var l=this,u=[],c={};return(0,r.each)(e,(function(e,n){var o=l._columnsController.columnOption(n.column),r=n.showInColumn&&l._columnsController.columnOption(n.showInColumn)||o,u=i(n,r);if(u>=0){c[u]||(c[u]=[]);var h,f=t[e];f==f&&((0,a.isDefined)(n.valueFormat)?h=n.valueFormat:"count"!==n.summaryType&&(h=d.default.getFormatByDataType(o&&o.dataType)),c[u].push((0,s.extend)({},n,{value:(0,a.isString)(f)&&o&&o.deserializeValue?o.deserializeValue(f):f,valueFormat:h,columnCaption:o&&o.index!==u?o.caption:void 0})))}})),(0,a.isEmptyObject)(c)||n.forEach((function(e,t){var i=n[t-1],a=!o||"expand"!==(null==i?void 0:i.command)&&"expand"!==e.command?e.index:null==i?void 0:i.index;u.push(c[a]||[])})),u},_getSummaryCells:function(e,t){var n=this,i=n._columnsController;return n._calculateSummaryCells(e,t,i.getVisibleColumns(),(function(e,t){return n._isDataColumn(t)?t.index:-1}))},_updateItemsCore:function(e){var t,n=this,i=n._dataSource,o=n._footerItems,a=o&&o[0]&&o[0].summaryCells,r=n.option("summary.totalItems");if(n._footerItems=[],i&&r&&r.length){var s=i.totalAggregates();t=n._getSummaryCells(r,s),e&&e.repaintChangesOnly&&a&&(e.totalColumnIndices=t.map((function(e,t){return JSON.stringify(e)!==JSON.stringify(a[t])?t:-1})).filter((function(e){return e>=0}))),t.length&&n._footerItems.push({rowType:"totalFooter",summaryCells:t})}n.callBase(e)},_prepareUnsavedDataSelector:function(e){if(S(this)){var t=this.getController("editing");if(t)return function(n){return n=t.getUpdatedData(n),e(n)}}return e},_prepareAggregateSelector:function(e,t){return e=this._prepareUnsavedDataSelector(e),"avg"===t||"sum"===t?function(t){var n=e(t);return(0,a.isDefined)(n)?Number(n):n}:e},_getAggregates:function(e,t){var n=this,i=n.getController("columns"),o=n.option("summary.calculateCustomSummary"),s=n.option("summary.skipEmptyValues");return(0,r.map)(e||[],(function(e){var r=i.columnOption(e.column),d=r&&r.calculateCellValue?r.calculateCellValue.bind(r):(0,l.compileGetter)(r?r.dataField:e.column),c=e.summaryType||"count",h=e.column,f=(0,a.isDefined)(e.skipEmptyValues)?e.skipEmptyValues:s;if(t)return{selector:e.column,summaryType:c};if(h=n._prepareAggregateSelector(d,c),"custom"===c){o||(u.default.log("E1026"),o=function(){});var p={component:n.component,name:e.name};o(p),p.summaryProcess="calculate",c={seed:function(e){return p.summaryProcess="start",p.totalValue=void 0,p.groupIndex=e,delete p.value,o(p),p.totalValue},step:function(e,t){return p.summaryProcess="calculate",p.totalValue=e,p.value=t,o(p),p.totalValue},finalize:function(e){return p.summaryProcess="finalize",p.totalValue=e,delete p.value,o(p),p.totalValue}}}return{selector:h,aggregator:c,skipEmptyValues:f}}))},_addSortInfo:function(e,t,n,i){if(t){var o=t.groupIndex;i=i||t.sortOrder,(0,a.isDefined)(o)&&(e[o]=e[o]||[],e[o].push({selector:n,desc:"desc"===i}))}},_findSummaryItem:function(e,t){var n=-1;return(0,a.isDefined)(t)&&(0,r.each)(e||[],(function(e){if(this.name===t||e===t||this.summaryType===t||this.column===t||(i=this.summaryType,o=this.column,(i&&o&&i+"_"+o)===t))return n=e,!1;var i,o})),n},_getSummarySortByGroups:function(e,t){var n=this,i=n._columnsController,o=i.getGroupColumns(),s=[];if(t&&t.length)return(0,r.each)(e||[],(function(){var e=this.sortOrder,l=this.groupColumn,u=n._findSummaryItem(t,this.summaryItem);if(!(u<0)){var d=function(e){return C(e)[u]};(0,a.isDefined)(l)?(l=i.columnOption(l),n._addSortInfo(s,l,d,e)):(0,r.each)(o,(function(t,i){n._addSortInfo(s,i,d,e)}))}})),s},_createDataSourceAdapterCore:function(e,t){var n=this,i=this.callBase(e,t);return i.summaryGetter((function(e){return n._getSummaryOptions(e||t)})),i},_getSummaryOptions:function(e){var t=this,n=t.option("summary.groupItems"),i=t.option("summary.totalItems"),o=t.option("sortByGroupSummaryInfo"),a=t._getAggregates(n,e&&e.grouping&&e.summary),r=t._getAggregates(i,e&&e.summary);if(a.length||r.length)return{groupAggregates:a,totalAggregates:r,sortByGroups:function(){return t._getSummarySortByGroups(o,n)}}},publicMethods:function(){var e=this.callBase();return e.push("getTotalSummaryValue"),e},getTotalSummaryValue:function(e){var t=this._findSummaryItem(this.option("summary.totalItems"),e),n=this._dataSource.totalAggregates();if(n.length&&t>-1)return n[t]},optionChanged:function(e){"summary"!==e.name&&"sortByGroupSummaryInfo"!==e.name||(e.name="dataSource"),this.callBase(e)},init:function(){this._footerItems=[],this.callBase()},footerItems:function(){return this._footerItems}},editing:{_refreshSummary:function(){S(this)&&!this.isSaving()&&this._dataController.refresh({load:!0,changesOnly:!0})},_addChange:function(e){var t=this.callBase.apply(this,arguments);return e.type&&this._refreshSummary(),t},_removeChange:function(){var e=this.callBase.apply(this,arguments);return this._refreshSummary(),e},cancelEditData:function(){var e=this.callBase.apply(this,arguments);return this._refreshSummary(),e}}},views:{rowsView:{_createRow:function(e){var t=this.callBase.apply(this,arguments);return e&&t.addClass(e.rowType===x?y:""),t},_renderCells:function(e,t){this.callBase.apply(this,arguments),"group"===t.row.rowType&&t.row.summaryCells&&t.row.summaryCells.length&&this._renderGroupSummaryCells(e,t)},_hasAlignByColumnSummaryItems:function(e,t){return!(0,a.isDefined)(t.columns[e].groupIndex)&&t.row.summaryCells[e].length},_getAlignByColumnCellCount:function(e,t){for(var n=0,i=1;i<e;i++){var o=t.row.summaryCells.length-i;n=this._hasAlignByColumnSummaryItems(o,t)?i:n}return n},_renderGroupSummaryCells:function(e,t){var n=e.children().last(),i=Number(n.attr("colSpan"))||1,o=this._getAlignByColumnCellCount(i,t);this._renderGroupSummaryCellsCore(n,t,i,o)},_renderGroupSummaryCellsCore:function(e,t,n,i){if(i>0){e.attr("colSpan",n-i);for(var o=0;o<i;o++){var a=t.columns.length-i+o;this._renderCell(e.parent(),(0,s.extend)({column:t.columns[a],columnIndex:this._getSummaryCellIndex(a,t.columns)},t))}}},_getSummaryCellIndex:function(e){return e},_getCellTemplate:function(e){return!e.column.command&&!(0,a.isDefined)(e.column.groupIndex)&&e.summaryItems&&e.summaryItems.length?b:this.callBase(e)},_getCellOptions:function(e){var t=this.callBase(e);return e.row.summaryCells?(0,s.extend)(t,w(this,e)):t}}}}})},47422:function(e,t,n){t.createGroupFilter=function(e,t){for(var n=(0,a.normalizeSortingInfo)(t.group),i=[],r=0;r<e.length;r++)i.push([n[r].selector,"=",e[r]]);return t.filter&&i.push(t.filter),o.default.combineFilters(i)};var i,o=(i=n(13615))&&i.__esModule?i:{default:i},a=n(16454)},80472:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(33562);o.default.registerModule("validating",a.validatingModule)},8653:function(e,t,n){var i,o=(i=n(39941))&&i.__esModule?i:{default:i},a=n(55464);o.default.registerModule("virtualColumns",a.virtualColumnsModule)},96904:function(e,t,n){var i=r(n(39941)),o=r(n(99754)),a=n(8831);function r(e){return e&&e.__esModule?e:{default:e}}i.default.registerModule("virtualScrolling",a.virtualScrollingModule),o.default.extend(a.virtualScrollingModule.extenders.dataSourceAdapter)},29589:function(e,t,n){var i;t.default=void 0;var o=((i=n(92478))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},69248:function(e,t,n){t.default=void 0;var i=n(58201),o=n(35922),a=n(3532),r=n(95479),s=n(58020),l=n(13306),u=n(60137),d=C(n(20530)),c=C(n(80209)),h=C(n(91198)),f=C(n(72309)),p=C(n(69434)),g=C(n(44687)),m=C(n(91500)),_=C(n(28109)),v=C(n(46919)),y=C(n(67814)),x=C(n(84416)),b=C(n(97e3)),w=C(n(57728));function C(e){return e&&e.__esModule?e:{default:e}}var S=(0,i.getWindow)(),k={calendar:"calendar",rollers:"rollers",list:"list",native:"native"},D={date:"date",datetime:"datetime",time:"time"},I={Calendar:v.default,DateView:y.default,Native:x.default,CalendarWithTime:b.default,List:w.default},T=g.default.inherit({_supportedKeys:function(){return(0,l.extend)(this.callBase(),this._strategy.supportedKeys())},_renderButtonContainers:function(){this.callBase.apply(this,arguments),this._strategy.customizeButtons()},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{type:"date",showAnalogClock:!0,value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,displayFormat:null,interval:30,disabledDates:null,pickerType:k.calendar,invalidDateMessage:_.default.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:_.default.format("validation-range"),applyButtonText:_.default.format("OK"),adaptivityEnabled:!1,calendarOptions:{},useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{"dropDownOptions.showTitle":!0}},{device:{platform:"android"},options:{buttonsLocation:"bottom after"}},{device:function(){var e=d.default.real().platform;return"ios"===e||"android"===e},options:{pickerType:k.native}},{device:function(e){var t=d.default.real(),n=t.platform,i=t.version;return"generic"===n&&"desktop"!==e.deviceType||"android"===n&&(0,s.compare)(i,[4,4])<0},options:{pickerType:k.rollers}},{device:{platform:"generic",deviceType:"desktop"},options:{buttonsLocation:"bottom after"}}])},_initOptions:function(e){this._userOptions=(0,l.extend)({},e),this.callBase(e),this._updatePickerOptions()},_updatePickerOptions:function(){var e=this.option("pickerType"),t=this.option("type");e!==k.list||t!==D.datetime&&t!==D.date||(e=k.calendar),t===D.time&&e===k.calendar&&(e=k.list),this.option("showDropDownButton","generic"!==d.default.real().platform||e!==k.native),this._pickerType=e},_init:function(){this._initStrategy(),this.option((0,l.extend)({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this.callBase()},_toLowerCaseFirstLetter:function(e){return e.charAt(0).toLowerCase()+e.substr(1)},_initStrategy:function(){var e=this._getStrategyName(this._getFormatType()),t=I[e];this._strategy&&this._strategy.NAME===e||(this._strategy=new t(this))},_getFormatType:function(){var e=this.option("type"),t=/h|m|s/g.test(e),n="";return/d|M|Y/g.test(e)&&(n+=D.date),t&&(n+=D.time),n},_getStrategyName:function(e){var t=this._pickerType;return t===k.rollers?"DateView":t===k.native?"Native":e===D.date?"Calendar":e===D.datetime?"CalendarWithTime":"List"},_initMarkup:function(){this.$element().addClass("dx-datebox"),this.callBase(),this._refreshFormatClass(),this._refreshPickerTypeClass(),this._strategy.renderInputMinMax(this._input())},_render:function(){this.callBase(),this._formatValidationIcon()},_renderDimensions:function(){this.callBase(),this.$element().toggleClass("dx-auto-width",!this.option("width")),this._dimensionChanged()},_dimensionChanged:function(){var e,t;this.callBase(arguments),this._popup&&(null===(e=(t=this._strategy)._updatePopupHeight)||void 0===e||e.call(t))},_refreshFormatClass:function(){var e=this.$element();(0,r.each)(D,(function(t,n){e.removeClass("dx-datebox-"+n)})),e.addClass("dx-datebox-"+this.option("type"))},_refreshPickerTypeClass:function(){var e=this.$element();(0,r.each)(k,(function(t,n){e.removeClass("dx-datebox-"+n)})),e.addClass("dx-datebox-"+this._pickerType)},_formatValidationIcon:function(){if((0,i.hasWindow)()){var e=this._input().get(0),t=this.option("rtlEnabled"),n=this._getClearButtonWidth(),o=this._getLongestElementDimensions(),a=parseFloat(S.getComputedStyle(e).width)-n,r=o.width>a,s=e.style;this.$element().toggleClass("dx-show-invalid-badge",!r),r?(void 0===this._storedPadding&&(this._storedPadding=t?o.leftPadding:o.rightPadding),t?s.paddingLeft=0:s.paddingRight=0):t?s.paddingLeft=this._storedPadding+"px":s.paddingRight=this._storedPadding+"px"}},_getClearButtonWidth:function(){var e=0;if(this._isClearButtonVisible()&&""===this._input().val()){var t=this.$element().find(".dx-clear-button-area").get(0);e=parseFloat(S.getComputedStyle(t).width)}return e},_getLongestElementDimensions:function(){var e=this._strategy.getDisplayFormat(this.option("displayFormat")),t=m.default.format(f.default.getLongestDate(e,m.default.getMonthNames(),m.default.getDayNames()),e),n=this._input(),i=n.get(0),o=(0,a.createTextElementHiddenCopy)(n,t),r=void 0!==this._storedPadding?this._storedPadding:0;o.appendTo(this.$element());var s=parseFloat(S.getComputedStyle(o.get(0)).width),l=parseFloat(S.getComputedStyle(i).paddingRight),u=parseFloat(S.getComputedStyle(i).paddingLeft),d=s+u+l+r;return o.remove(),{width:d,leftPadding:u,rightPadding:l}},_getKeyboardListeners:function(){return this.callBase().concat([this._strategy&&this._strategy.getKeyboardListener()])},_renderPopup:function(){this.callBase(),this._popup.$wrapper().addClass("dx-datebox-wrapper"),this._renderPopupWrapper()},_popupConfig:function(){var e=this.callBase();return(0,l.extend)(this._strategy.popupConfig(e),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var e=this.$element(),t=(0,l.extend)({},D,k);(0,r.each)(t,function(t,n){e.removeClass("dx-datebox-wrapper-"+n)}.bind(this)),this._popup.$wrapper().addClass("dx-datebox-wrapper-"+this.option("type")).addClass("dx-datebox-wrapper-"+this._pickerType)}},_renderPopupContent:function(){this.callBase(),this._strategy.renderPopupContent()},_getFirstPopupElement:function(){return this._strategy.getFirstPopupElement()||this.callBase()},_getLastPopupElement:function(){return this._strategy.getLastPopupElement()||this.callBase()},_popupShowingHandler:function(){this.callBase(),this._strategy.popupShowingHandler()},_popupShownHandler:function(){this.callBase(),this._strategy.renderOpenedState()},_popupHiddenHandler:function(){this.callBase(),this._strategy.renderOpenedState(),this._strategy.popupHiddenHandler()},_visibilityChanged:function(e){e&&this._formatValidationIcon()},_clearValueHandler:function(e){this.option("text",""),this.callBase(e)},_readOnlyPropValue:function(){if(this._pickerType===k.rollers)return!0;var e=d.default.real().platform;return!this._isNativeType()||"ios"!==e&&"android"!==e?this.callBase():this.option("readOnly")},_isClearButtonVisible:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var e=this.dateOption("value");return this.option("text",this._getDisplayedText(e)),this._strategy.renderValue(),this.callBase()},_setSubmitValue:function(){var e=this.dateOption("value"),t=this.option("dateSerializationFormat"),n=f.default.SUBMIT_FORMATS_MAP[this.option("type")],i=t?p.default.serializeDate(e,t):f.default.toStandardDateFormat(e,n);this._getSubmitElement().val(i)},_getDisplayedText:function(e){var t,n=this.option("mode");if("text"===n){var i=this._strategy.getDisplayFormat(this.option("displayFormat"));t=m.default.format(e,i)}else{var o=this._getFormatByMode(n);t=o?m.default.format(e,o):f.default.toStandardDateFormat(e,n)}return t},_getFormatByMode:function(e){return(0,u.inputType)(e)?null:f.default.FORMATS_MAP[e]},_valueChangeEventHandler:function(e){var t=this.option(),n=t.text,i=t.type,o=t.validationError,a=this.dateOption("value");if(n!==this._getDisplayedText(a)){var r=this._getParsedDate(n),s=null!=a?a:this._getDateByDefault(),l=f.default.mergeDates(s,r,i),u=r&&"time"===i?l:r;if(this._applyInternalValidation(u).isValid){var d=this._getDisplayedText(l);s&&l&&s.getTime()===l.getTime()&&d!==n?this._renderValue():this.dateValue(l,e)}}else o&&!o.editorSpecific||(this._applyInternalValidation(a),this._applyCustomValidation(a))},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&this._strategy.getDefaultDate()},_getParsedDate:function(e){var t=this._strategy.getDisplayFormat(this.option("displayFormat")),n=this._strategy.getParsedText(e,t);return null!=n?n:void 0},_applyInternalValidation:function(e){var t=!!this.option("text")&&null!==e,n=!!e&&(0,o.isDate)(e)&&!isNaN(e.getTime()),i=n&&h.default.dateInRange(e,this.dateOption("min"),this.dateOption("max"),this.option("type")),a=!t&&!e||i,r="";return n?i||(r=this.option("dateOutOfRangeMessage")):r=this.option("invalidDateMessage"),this.option({isValid:a,validationError:a?null:{editorSpecific:!0,message:r}}),{isValid:a,isDate:n}},_applyCustomValidation:function(e){this.validationRequest.fire({editor:this,value:this._serializeDate(e)})},_isValueChanged:function(e){var t=this.dateOption("value");return(t&&t.getTime())!==(e&&e.getTime())},_isTextChanged:function(e){return this.option("text")!==(e&&this._getDisplayedText(e)||"")},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy()},_getPopupTitle:function(){var e=this.option("placeholder");if(e)return e;var t=this.option("type");return t===D.time?_.default.format("dxDateBox-simulatedDataPickerTitleTime"):t===D.date||t===D.datetime?_.default.format("dxDateBox-simulatedDataPickerTitleDate"):""},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(e){var t=this._strategy.getValue(),n=this._applyInternalValidation(t),i=n.isValid,o=n.isDate;if(i)this.dateValue(t,e.event);else if(o){var a=this._getDisplayedText(t);this.option("text",a),this._renderDisplayText(a)}this.callBase()},_dispose:function(){var e;this.callBase(),null===(e=this._strategy)||void 0===e||e.dispose()},_isNativeType:function(){return this._pickerType===k.native},_updatePopupTitle:function(){var e;null===(e=this._popup)||void 0===e||e.option("title",this._getPopupTitle())},_optionChanged:function(e){switch(e.name){case"showClearButton":case"buttons":case"isValid":case"readOnly":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"pickerType":this._updatePickerOptions({pickerType:e.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:e.value}),this._refreshStrategy(),this._refreshFormatClass(),this._renderPopupWrapper(),this._formatValidationIcon(),this._updateValue();break;case"placeholder":this.callBase.apply(this,arguments),this._updatePopupTitle();break;case"min":case"max":var t=this.option("isValid");this._applyInternalValidation(this.dateOption("value")),t||this._applyCustomValidation(this.dateOption("value")),this._invalidate();break;case"dateSerializationFormat":case"interval":case"disabledDates":case"calendarOptions":this._invalidate();break;case"displayFormat":this.option("text",this._getDisplayedText(this.dateOption("value"))),this._renderInputValue();break;case"text":this._strategy.textChangedHandler(e.value),this.callBase.apply(this,arguments);break;case"showDropDownButton":this._formatValidationIcon(),this.callBase.apply(this,arguments);break;case"invalidDateMessage":case"dateOutOfRangeMessage":case"adaptivityEnabled":case"showAnalogClock":break;default:this.callBase.apply(this,arguments)}},_getSerializationFormat:function(){var e=this.option("value");return this.option("dateSerializationFormat")&&(0,c.default)().forceIsoDateParsing?this.option("dateSerializationFormat"):(0,o.isNumeric)(e)?"number":(0,o.isString)(e)?p.default.getDateSerializationFormat(e):void 0},_updateValue:function(e){this.callBase(),this._applyInternalValidation(null!=e?e:this.dateOption("value"))},dateValue:function(e,t){var n=this._isValueChanged(e);return n&&t&&this._saveValueChangeEvent(t),n||(this._isTextChanged(e)?this._updateValue(e):""===this.option("text")&&this._applyCustomValidation(e)),this.dateOption("value",e)},dateOption:function(e,t){if(1===arguments.length)return p.default.deserializeDate(this.option(e));this.option(e,this._serializeDate(t))},_serializeDate:function(e){var t=this._getSerializationFormat();return p.default.serializeDate(e,t)},_clearValue:function(){var e=this.option("value");this.callBase(),null===e&&this._applyCustomValidation(null)},reset:function(){var e=this.option("value");this.callBase(),null===e&&this._applyInternalValidation(null)}});t.default=T,e.exports=t.default,e.exports.default=t.default},92478:function(e,t,n){t.default=void 0;var i=a(n(99393)),o=a(n(28105));function a(e){return e&&e.__esModule?e:{default:e}}(0,i.default)("dxDateBox",o.default);var r=o.default;t.default=r,e.exports=t.default,e.exports.default=t.default},28105:function(e,t,n){t.default=void 0;var i=n(39611),o=n(35922),a=n(3532),r=n(13306),s=n(60810),l=_(n(55994)),u=n(28298),d=_(n(91500)),c=n(2892),h=n(59937),f=_(n(69248)),p=_(n(18016)),g=_(n(20530)),m=_(n(47810));function _(e){return e&&e.__esModule?e:{default:e}}var v="dateBoxMask",y=-1,x=f.default.inherit({_supportedKeys:function(e){var t=this,n=this.callBase(e),o=function(e){var o=n[(0,i.normalizeKeyName)(e)];return o&&o.apply(t,[e])},a=function(e,n){return t._shouldUseOriginalHandler(e)?o.apply(t,[e]):n.apply(t,[e])};return(0,r.extend)({},n,{del:function(e){return a(e,(function(e){t._revertPart(1),t._isAllSelected()||e.preventDefault()}))},backspace:function(e){return a(e,(function(e){t._revertPart(y),t._isAllSelected()||e.preventDefault()}))},home:function(e){return a(e,(function(e){t._selectFirstPart(),e.preventDefault()}))},end:function(e){return a(e,(function(e){t._selectLastPart(),e.preventDefault()}))},escape:function(e){return a(e,(function(e){t._revertChanges(e)}))},enter:function(e){return a(e,(function(e){t._enterHandler(e)}))},leftArrow:function(e){return a(e,(function(e){t._selectNextPart(y),e.preventDefault()}))},rightArrow:function(e){return a(e,(function(e){t._selectNextPart(1),e.preventDefault()}))},upArrow:function(e){return a(e,(function(e){t._upDownArrowHandler(1),e.preventDefault()}))},downArrow:function(e){return a(e,(function(e){t._upDownArrowHandler(y),e.preventDefault()}))}})},_shouldUseOriginalHandler:function(e){var t=this.option("opened")&&e&&-1===["backspace","del"].indexOf((0,i.normalizeKeyName)(e));return!this._useMaskBehavior()||t||e&&e.altKey},_upDownArrowHandler:function(e){this._setNewDateIfEmpty();var t=this._getActivePartValue(this._initialMaskValue),n=this._getActivePartValue()-t;this._loadMaskValue(this._initialMaskValue),this._partIncrease(n+e,!0)},_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0)})},_isSingleCharKey:function(e){var t=e.originalEvent,n=e.alt,o=t.data||t.key;return"string"==typeof o&&1===o.length&&!n&&!(0,i.isCommandKeyPressed)(t)},_isSingleDigitKey:function(e){var t,n=null===(t=e.originalEvent)||void 0===t?void 0:t.data;return 1===(null==n?void 0:n.length)&&parseInt(n,10)},_useBeforeInputEvent:function(){var e=g.default.real();return e.android&&e.version[0]>4},_keyInputHandler:function(e,t){var n=this._input().val();this._processInputKey(t),e.preventDefault(),n!==this._input().val()&&l.default.trigger(this._input(),"input")},_keyboardHandler:function(e){var t=this,n=e.originalEvent.key,i=this.callBase(e);return!this._useMaskBehavior()||this._useBeforeInputEvent()||(m.default.chrome&&"Process"===e.key&&0===e.code.indexOf("Digit")?(n=e.code.replace("Digit",""),this._processInputKey(n),this._maskInputHandler=function(){t._renderSelectedPart()}):this._isSingleCharKey(e)&&this._keyInputHandler(e.originalEvent,n)),i},_maskBeforeInputHandler:function(e){var t=this;this._maskInputHandler=null;var n=e.originalEvent.inputType;"insertCompositionText"===n&&(this._maskInputHandler=function(){t._renderSelectedPart()});var i="deleteContentBackward"===n;if(i||"deleteContentForward"===n){var o=i?y:1;this._maskInputHandler=function(){t._revertPart(),t._selectNextPart(o)}}if(this._useMaskBehavior()&&this._isSingleCharKey(e)){var a=e.originalEvent.data;return this._keyInputHandler(e,a),!0}},_keyPressHandler:function(e){var t=e.originalEvent;"insertCompositionText"===(null==t?void 0:t.inputType)&&this._isSingleDigitKey(e)&&(this._processInputKey(t.data),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()),this.callBase(e),this._maskInputHandler&&(this._maskInputHandler(),this._maskInputHandler=null)},_processInputKey:function(e){this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(e))?this._searchString(e):this._searchNumber(e)},_isAllSelected:function(){var e=this._caret();return e.end-e.start===this.option("text").length},_getFormatPattern:function(){if(this._formatPattern)return this._formatPattern;var e=this._strategy.getDisplayFormat(this.option("displayFormat")),t=(0,o.isString)(e)&&!d.default._getPatternByFormat(e);return this._formatPattern=t?e:(0,h.getFormat)((function(t){return d.default.format(t,e)})),this._formatPattern},_setNewDateIfEmpty:function(){if(!this._maskValue){var e="time"===this.option("type")?new Date(null):new Date;this._maskValue=e,this._initialMaskValue=e,this._renderDateParts()}},_partLimitsReached:function(e){var t=String(e).length,n=this._getActivePartProp("pattern").length,i=1===n?t:Math.min(n,t),o=this._searchValue.length===i,a=parseInt(this._searchValue+"0")>e;return o||a},_searchNumber:function(e){var t=this._getActivePartLimits().max,n=String(t).length;this._searchValue=(this._searchValue+e).substr(-n),isNaN(this._searchValue)&&(this._searchValue=e),this._setActivePartValue(this._searchValue),this._partLimitsReached(t)&&this._selectNextPart(1)},_searchString:function(e){if(isNaN(parseInt(this._getActivePartProp("text")))){for(var t=this._getActivePartProp("limits")(this._maskValue),n=this._searchValue+e.toLowerCase(),i=t.max-t.min,o=0;o<=i;o++)if(this._loadMaskValue(this._initialMaskValue),this._partIncrease(o+1),0===this._getActivePartProp("text").toLowerCase().indexOf(n))return void(this._searchValue=n);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(e))}},_clearSearchValue:function(){this._searchValue=""},_revertPart:function(e){if(!this._isAllSelected()){var t=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(t),this._selectNextPart(e)}this._clearSearchValue()},_useMaskBehavior:function(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_prepareRegExpInfo:function(){this._regExpInfo=(0,c.getRegExpInfo)(this._getFormatPattern(),d.default);var e=this._regExpInfo.regexp,t=e.source,n=e.flags,i=new RegExp(/(\{[0-9]+,?[0-9]*\})/),o=t.split(i).map((function(e){return i.test(e)?e:p.default.convertDigits(e,!1)})).join("");this._regExpInfo.regexp=new RegExp(o,n)},_initMaskState:function(){this._activePartIndex=0,this._formatPattern=null,this._prepareRegExpInfo(),this._loadMaskValue()},_renderMask:function(){this.callBase(),this._detachMaskEvents(),this._clearMaskState(),this._useMaskBehavior()&&(this._attachMaskEvents(),this._initMaskState(),this._renderDateParts())},_renderDateParts:function(){if(this._useMaskBehavior()){var e=this.option("text")||this._getDisplayedText(this._maskValue);e&&(this._dateParts=(0,u.renderDateParts)(e,this._regExpInfo),this._input().is(":hidden")||this._selectNextPart())}},_detachMaskEvents:function(){l.default.off(this._input(),".dateBoxMask")},_attachMaskEvents:function(){var e=this;l.default.on(this._input(),(0,i.addNamespace)("dxclick",v),this._maskClickHandler.bind(this)),l.default.on(this._input(),(0,i.addNamespace)("paste",v),this._maskPasteHandler.bind(this)),l.default.on(this._input(),(0,i.addNamespace)("drop",v),(function(){e._renderSelectedPart()})),l.default.on(this._input(),(0,i.addNamespace)("compositionend",v),this._maskCompositionEndHandler.bind(this)),this._useBeforeInputEvent()&&l.default.on(this._input(),(0,i.addNamespace)("beforeinput",v),this._maskBeforeInputHandler.bind(this))},_renderSelectedPart:function(){this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()},_selectLastPart:function(){this.option("text")&&(this._activePartIndex=this._dateParts.length,this._selectNextPart(y))},_selectFirstPart:function(){this.option("text")&&(this._activePartIndex=-1,this._selectNextPart(1))},_onMouseWheel:function(e){this._useMaskBehavior()&&this._partIncrease(e.delta>0?1:y,e)},_selectNextPart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.option("text")&&!this._disposed){e&&(this._initialMaskValue=new Date(this._maskValue));var t=(0,s.fitIntoRange)(this._activePartIndex+e,0,this._dateParts.length-1);if(this._dateParts[t].isStub){var n=0===t&&e<0||t===this._dateParts.length-1&&e>0;if(!n)return void this._selectNextPart(e>=0?e+1:e-1);t=this._activePartIndex}this._activePartIndex!==t&&this._clearSearchValue(),this._activePartIndex=t,this._caret(this._getActivePartProp("caret"))}},_getRealLimitsPattern:function(){if("d"===this._getActivePartProp("pattern")[0])return"dM"},_getActivePartLimits:function(e){return this._getActivePartProp("limits")(this._maskValue,e&&this._getRealLimitsPattern())},_getActivePartValue:function(e){e=e||this._maskValue;var t=this._getActivePartProp("getter");return(0,o.isFunction)(t)?t(e):e[t]()},_addLeadingZeroes:function(e){var t=this._searchValue.match(/^0+/),n=this._getActivePartLimits(),i=String(n.max).length;return((t&&t[0]||"")+String(e)).substr(-i)},_setActivePartValue:function(e,t){t=t||this._maskValue;var n=this._getActivePartProp("setter"),i=this._getActivePartLimits();e=(0,s.inRange)(e,i.min,i.max)?e:e%10,e=this._addLeadingZeroes((0,s.fitIntoRange)(e,i.min,i.max)),(0,o.isFunction)(n)?n(t,e):t[n](e),this._renderDisplayText(this._getDisplayedText(t)),this._renderDateParts()},_getActivePartProp:function(e){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][e]},_loadMaskValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dateOption("value");this._maskValue=e&&new Date(e),this._initialMaskValue=e&&new Date(e)},_saveMaskValue:function(){var e=this._maskValue&&new Date(this._maskValue);e&&"date"===this.option("type")&&e.setHours(0,0,0,0),this._initialMaskValue=new Date(e),this.dateOption("value",e)},_revertChanges:function(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText:function(e){this.callBase(e),this._useMaskBehavior()&&this.option("text",e)},_partIncrease:function(e,t){this._setNewDateIfEmpty();var n=this._getActivePartLimits(t),i=n.max,o=n.min,a=i-o;1===a&&a++;var r=e+this._getActivePartValue();r>i?r=this._applyLimits(r,{limitBase:o,limitClosest:i,limitDelta:a}):r<o&&(r=this._applyLimits(r,{limitBase:i,limitClosest:o,limitDelta:a})),this._setActivePartValue(r)},_applyLimits:function(e,t){var n=t.limitBase,i=t.limitClosest,o=(e-i)%t.limitDelta;return o?n+o-1*(0,s.sign)(o):i},_maskClickHandler:function(){this.option("text")&&(this._activePartIndex=(0,u.getDatePartIndexByPosition)(this._dateParts,this._caret().start),this._isAllSelected()||((0,o.isDefined)(this._activePartIndex)?this._caret(this._getActivePartProp("caret")):this._selectLastPart()))},_maskCompositionEndHandler:function(e){var t=this;this._input().val(this._getDisplayedText(this._maskValue)),this._selectNextPart(),this._maskInputHandler=function(){t._renderSelectedPart()}},_maskPasteHandler:function(e){var t=this._replaceSelectedText(this.option("text"),this._caret(),(0,a.clipboardText)(e)),n=d.default.parse(t,this._getFormatPattern());n&&this._isDateValid(n)&&(this._maskValue=n,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),e.preventDefault()},_isDateValid:function(e){return(0,o.isDate)(e)&&!isNaN(e)},_isValueDirty:function(){var e=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(e&&e.getTime())},_fireChangeEvent:function(){this._clearSearchValue(),this._isValueDirty()&&l.default.trigger(this._input(),"change")},_enterHandler:function(e){this._fireChangeEvent(),this._selectNextPart(1),e.preventDefault()},_focusOutHandler:function(e){this._useMaskBehavior()&&!e.isDefaultPrevented()?(this._fireChangeEvent(),this.callBase(e),this._selectFirstPart(e)):this.callBase(e)},_valueChangeEventHandler:function(e){var t=this.option("text");this._useMaskBehavior()?(this._saveValueChangeEvent(e),t?null===this._maskValue&&this._loadMaskValue(t):this._maskValue=null,this._saveMaskValue()):this.callBase(e)},_optionChanged:function(e){switch(e.name){case"useMaskBehavior":this._renderMask();break;case"displayFormat":case"mode":this.callBase(e),this._renderMask();break;case"value":this._loadMaskValue(),this.callBase(e),this._renderDateParts();break;case"emptyDateValue":break;default:this.callBase(e)}},_clearMaskState:function(){this._clearSearchValue(),delete this._dateParts,delete this._activePartIndex,delete this._maskValue},reset:function(){this.callBase(),this._clearMaskState(),this._activePartIndex=0},_clean:function(){this.callBase(),this._detachMaskEvents(),this._clearMaskState()}});t.default=x,e.exports=t.default,e.exports.default=t.default},28298:function(e,t,n){t.renderDateParts=t.getDatePartIndexByPosition=void 0;var i=n(2892),o=n(13306),a=n(60810),r=n(20576),s=function(e){return e.getMonth()+1},l=function(e,t){var n=e.getDate(),i=c("M",e),o=(0,a.fitIntoRange)(parseInt(t),i.min,i.max);e.setMonth(o-1,1);var r=c("dM",e),s=r.min,l=r.max,u=(0,a.fitIntoRange)(n,s,l);e.setDate(u)},u={a:function(e){return e.getHours()<12?0:1},E:"getDay",y:"getFullYear",M:s,L:s,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},d=(0,o.extend)({},(0,i.getPatternSetters)(),{a:function(e,t){var n=e.getHours();n>=12!=!!parseInt(t)&&e.setHours((n+12)%24)},d:function(e,t){t>c("dM",e).max&&e.setMonth(e.getMonth()+1),e.setDate(t)},h:function(e,t){var n=e.getHours()>=12;e.setHours(+t%12+(n?12:0))},M:l,L:l,E:function(e,t){t<0||e.setDate(e.getDate()-e.getDay()+parseInt(t))},y:function(e,t){var n=e.getFullYear(),i=String(t).length,o=String(c("y",e).max).length,a=parseInt(String(n).substr(0,o-i)+t);e.setFullYear(a)}});t.renderDateParts=function(e,t){for(var n=t.regexp.exec(e),i=0,o=0,a=[],s=function(e){o=(i=o)+n[e].length;var s,l=t.patterns[e-1].replace(/^'|'$/g,""),h=(s=l[0],u[s]||function(){return s});a.push({index:e-1,isStub:l===n[e],caret:{start:i,end:o},pattern:l,text:n[e],limits:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.apply(void 0,[l[0]].concat(t))},setter:d[l[0]]||r.noop,getter:h})},l=1;l<n.length;l++)s(l);return a};var c=function(e,t,n){var i={y:{min:0,max:9999},M:{min:1,max:12},L:{min:1,max:12},d:{min:1,max:31},dM:{min:1,max:new Date(t.getFullYear(),t.getMonth()+1,0).getDate()},E:{min:0,max:6},H:{min:0,max:23},h:{min:0,max:23},m:{min:0,max:59},s:{min:0,max:59},S:{min:0,max:999},a:{min:0,max:1}};return i[n||e]||i.getAmPm};t.getDatePartIndexByPosition=function(e,t){for(var n=0;n<e.length;n++){var i=e[n].caret.end>=t;if(!e[n].isStub&&i)return n}return null}},46919:function(e,t,n){t.default=void 0;var i=d(n(26559)),o=d(n(38129)),a=d(n(91198)),r=n(20576),s=n(35922),l=n(13306),u=d(n(28109));function d(e){return e&&e.__esModule?e:{default:e}}var c=o.default.inherit({NAME:"Calendar",supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(e){if(this.dateBox.option("opened")){if(e.preventDefault(),this._widget.option("zoomLevel")===this._widget.option("maxZoomLevel")){var t=this._getContouredValue(),n=this._lastActionElement,i=this._closeDropDownByEnter();return i&&t&&"calendar"===n&&this.dateBoxValue(t,e),i&&this.dateBox.close(),this.dateBox._valueChangeEventHandler(e),!i}return!0}this.dateBox._valueChangeEventHandler(e)}.bind(this),home:e,end:e}},getDisplayFormat:function(e){return e||"shortdate"},_closeDropDownByEnter:function(){return!0},_getWidgetName:function(){return i.default},_getContouredValue:function(){return this._widget._view.option("contouredDate")},getKeyboardListener:function(){return this._widget},_getWidgetOptions:function(){var e=this.dateBox.option("disabledDates");return(0,l.extend)(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,dateSerializationFormat:null,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,disabledDates:(0,s.isFunction)(e)?this._injectComponent(e.bind(this.dateBox)):e,onContouredChanged:this._refreshActiveDescendant.bind(this),skipFocusCheck:!0})},_injectComponent:function(e){var t=this;return function(n){return(0,l.extend)(n,{component:t.dateBox}),e(n)}},_refreshActiveDescendant:function(e){this._lastActionElement="calendar",this.dateBox.setAria("activedescendant",e.actionValue)},popupConfig:function(e){var t,n=this,i=e.toolbarItems,o=this.dateBox.option("buttonsLocation");return t="default"!==o?(0,r.splitPair)(o):["bottom","center"],"useButtons"===this.dateBox.option("applyValueMode")&&this._isCalendarVisible()&&i.unshift({widget:"dxButton",toolbar:t[0],location:"after"===t[1]?"before":t[1],options:{onInitialized:function(e){e.component.registerKeyHandler("escape",this._escapeHandler.bind(this))}.bind(this),onClick:function(e){n._widget._toTodayView(e)},text:u.default.format("dxCalendar-todayButtonText"),type:"today"}}),(0,l.extend)(!0,e,{toolbarItems:i,position:{collision:"flipfit flip"},width:"auto"})},_isCalendarVisible:function(){return(0,s.isEmptyObject)(this.dateBox.option("calendarOptions"))||!1!==this.dateBox.option("calendarOptions.visible")},_escapeHandler:function(){this.dateBox.close(),this.dateBox.focus()},_valueChangedHandler:function(e){var t=this.dateBox,n=e.value,i=e.previousValue;a.default.sameDate(n,i)||"instantly"===t.option("applyValueMode")&&this.dateBoxValue(this.getValue(),e.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this._lastActionElement="input",this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(e){var t=this.dateBox;"instantly"===t.option("applyValueMode")&&(t.option("opened",!1),this.dateBoxValue(this.getValue(),e.event))}});t.default=c,e.exports=t.default,e.exports.default=t.default},97e3:function(e,t,n){t.default=void 0;var i=n(58664),o=f(n(68374)),a=n(58201),r=f(n(46919)),s=f(n(7124)),l=f(n(91500)),u=n(13306),d=f(n(91198)),c=f(n(55551)),h=f(n(72309));function f(e){return e&&e.__esModule?e:{default:e}}var p=(0,a.getWindow)(),g="dx-datebox-datetime-time-side",m=r.default.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after","dropDownOptions.showTitle":!1})},_closeDropDownByEnter:function(){return d.default.sameDate(this._getContouredValue(),this.widgetOption("value"))},getDisplayFormat:function(e){return e||"shortdateshorttime"},_is24HourFormat:function(){return l.default.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_getContouredValue:function(){var e=this.callBase();return this._updateDateTime(e)},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent((0,o.default)("<div>"),s.default,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")}),this._timeView.registerKeyHandler("escape",this._escapeHandler.bind(this))},renderOpenedState:function(){this.callBase();var e=this._getPopup();e&&e.$wrapper().toggleClass("dx-datebox-adaptivity-mode",this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout(function(){this._getPopup()&&this._getPopup().repaint()}.bind(this),0)},isAdaptivityChanged:function(){var e=this._isShrinkView(),t=this._currentAdaptiveMode;return e!==t?(this._currentAdaptiveMode=e,void 0!==t):this.callBase()},_updateValue:function(e){var t=this.dateBoxValue();t||e||(t=new Date,h.default.normalizeTime(t)),this.callBase(),this._timeView&&(t&&this._timeView.option("value",t),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return(0,i.getWidth)(p)<=573},_isShrinkView:function(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var e=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||e.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),e},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var e=this._getPopup().$content();this._box=this.dateBox._createComponent((0,o.default)("<div>").appendTo(e),c.default,{direction:"row",crossAlign:"stretch",items:this._getBoxItems(),itemTemplate:function(e,t,n){var i=(0,o.default)("<div>");switch(e.name){case"calendar":i.append(this._widget.$element()),this._isShrinkView()&&(this._timeView.$element().addClass(g),i.append(this._timeView.$element()));break;case"time":i.append(this._timeView.$element()),(0,o.default)(n).addClass(g)}return i}.bind(this)}),this._attachTabHandler()},popupConfig:function(e){var t=this.callBase(e);return(0,u.extend)(t,{width:"auto",onShowing:function(){if("fallback"===this._box.option("_layoutStrategy")){var e=this._getPopup().$content().find(".dx-timeview-clock").css("minWidth");this._timeView.$element().css("maxWidth",e)}}.bind(this)})},getFirstPopupElement:function(){return this._timeView._hourBox.$element().find("input")},_attachTabHandler:function(){var e=this.dateBox;this._timeView._hourBox.registerKeyHandler("tab",(function(t){t.shiftKey&&(t.preventDefault(),e.focus())}))},_preventFocusOnPopup:function(e){(0,o.default)(e.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},_updateDateTime:function(e){var t=this._timeView.option("value");return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},getValue:function(){var e,t=null!==(e=this._widget.option("value"))&&void 0!==e?e:this._widget.getContouredDate();return t=t?new Date(t):new Date,this._updateDateTime(t)},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});t.default=m,e.exports=t.default,e.exports.default=t.default},67814:function(e,t,n){t.default=void 0;var i=c(n(68374)),o=n(58201),a=c(n(65287)),r=c(n(38129)),s=n(60137),l=n(13306),u=c(n(72309)),d=c(n(28109));function c(e){return e&&e.__esModule?e:{default:e}}var h=(0,o.getWindow)(),f=r.default.inherit({NAME:"DateView",getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{openOnFieldClick:!0,applyButtonText:d.default.format("OK"),"dropDownOptions.showTitle":!0})},getDisplayFormat:function(e){return e||u.default.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(e){return{toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:e.onInitialized,defaultOptionsRules:[{device:{platform:"android"},options:{width:333,height:331}},{device:function(e){var t=e.platform;return"generic"===t||"ios"===t},options:{width:"auto",height:"auto"}},{device:function(e){var t=e.platform,n=e.phone;return"generic"===t&&n},options:{width:333,maxWidth:"100%",maxHeight:"100%",height:"auto",position:{collision:"flipfit flip"}}},{device:{platform:"ios",phone:!0},options:{width:"100%",position:{my:"bottom",at:"bottom",of:h}}}]}},_renderWidget:function(){if((0,s.inputType)(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))this._widget&&(this._widget.$element().remove(),this._widget=null);else{var e=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{var t=(0,i.default)("<div>").appendTo(e.$content());this._widget=this._createWidget(t)}this._widget.$element().appendTo(this._getWidgetContainer())}},_getWidgetName:function(){return a.default},renderOpenedState:function(){this.callBase(),this._widget&&this._widget.option("value",this._widget._getCurrentDate())},_getWidgetOptions:function(){return{value:this.dateBoxValue()||new Date,type:this.dateBox.option("type"),minDate:this.dateBox.dateOption("min")||new Date(1900,0,1),maxDate:this.dateBox.dateOption("max")||new Date(Date.now()+50*u.default.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}});t.default=f,e.exports=t.default,e.exports.default=t.default},38129:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=l(n(55994)),a=n(20576),r=l(n(38377)),s=l(n(91500));function l(e){return e&&e.__esModule?e:{default:e}}var u=r.default.abstract,d=r.default.inherit({ctor:function(e){this.dateBox=e},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(e){e=e||(0,i.default)("<div>"),this._widget=this._createWidget(e),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(e){var t=this._getWidgetName(),n=this._getWidgetOptions();return this.dateBox._createComponent(e,t,n)},_getWidgetOptions:u,_getWidgetName:u,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:u,supportedKeys:a.noop,getKeyboardListener:a.noop,customizeButtons:a.noop,getParsedText:function(e,t){return s.default.parse(e,t)||s.default.parse(e)},renderInputMinMax:a.noop,renderOpenedState:function(){this._updateValue()},popupConfig:u,_dimensionChanged:function(){var e;null===(e=this._getPopup())||void 0===e||e.repaint()},renderPopupContent:function(){var e=this._getPopup();this._renderWidget();var t=e.$content().parent();o.default.off(t,"mousedown"),o.default.on(t,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:a.noop,getLastPopupElement:a.noop,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:a.noop,popupHiddenHandler:a.noop,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},useCurrentDateByDefault:a.noop,getDefaultDate:function(){return new Date},textChangedHandler:a.noop,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var e=this._getPopup();e&&e.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});t.default=d,e.exports=t.default,e.exports.default=t.default},57728:function(e,t,n){t.default=void 0;var i=n(58664),o=n(58201),a=p(n(56757));n(20551);var r=p(n(38129)),s=n(20576),l=n(35922),u=n(13306),d=p(n(72309)),c=p(n(91500)),h=p(n(69434)),f=n(61902);function p(e){return e&&e.__esModule?e:{default:e}}var g=(0,o.getWindow)(),m={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},_=r.default.inherit({NAME:"List",supportedKeys:function(){return{tab:function(){var e=this.option(),t=e.opened,n=e.applyValueMode;t&&"instantly"===n&&this.close()},space:s.noop,home:s.noop,end:s.noop}},getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(e){return e||"shorttime"},popupConfig:function(e){return e},getValue:function(){var e=this._widget.option("selectedIndex");if(-1===e)return this.dateBox.option("value");var t=this._widgetItems[e];return this._getDateByItemData(t)},useCurrentDateByDefault:function(){return!0},getDefaultDate:function(){return new Date(null)},popupShowingHandler:function(){this.dateBox._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return a.default},_getWidgetOptions:function(){return{itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant:function(e){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",e.actionValue)},_refreshItems:function(){this._widgetItems=this._getTimeListItems(),this._widget.option("items",this._widgetItems)},renderOpenedState:function(){this._widget&&(this._widget.option("focusedElement",null),this._setSelectedItemsByValue(),this._widget.option("templatesRenderAsynchronously")?this._asyncScrollTimeout=setTimeout(this._scrollToSelectedItem.bind(this)):this._scrollToSelectedItem())},dispose:function(){this.callBase(),clearTimeout(this._asyncScrollTimeout)},_updateValue:function(){this._widget&&(this._refreshItems(),this._setSelectedItemsByValue(),this._scrollToSelectedItem())},_setSelectedItemsByValue:function(){var e=this.dateBoxValue(),t=this._getDateIndex(e);-1===t?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",t)},_scrollToSelectedItem:function(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex:function(e){for(var t=-1,n=0,i=this._widgetItems.length;n<i;n++)if(this._areDatesEqual(e,this._widgetItems[n])){t=n;break}return t},_areDatesEqual:function(e,t){return(0,l.isDate)(e)&&(0,l.isDate)(t)&&e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},_getTimeListItems:function(){var e=this.dateBox.dateOption("min")||this._getBoundaryDate("min"),t=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),n=this.dateBox.dateOption("value")||null,i=t-e,o=e.getMinutes()%this.dateBox.option("interval");return i<0?[]:(i>d.default.ONE_DAY&&(i=d.default.ONE_DAY),n-e<d.default.ONE_DAY||((e=this._getBoundaryDate("min")).setMinutes(o),n&&Math.abs(n-t)<d.default.ONE_DAY&&(i=(60*t.getHours()+Math.abs(t.getMinutes()-o))*d.default.ONE_MINUTE)),this._getRangeItems(e,new Date(e),i))},_getRangeItems:function(e,t,n){for(var i=[],o=this.dateBox.option("interval");t-e<=n;)i.push(new Date(t)),t.setMinutes(t.getMinutes()+o);return i},_getBoundaryDate:function(e){var t=m[e],n=new Date((0,s.ensureDefined)(this.dateBox.dateOption("value"),0));return new Date(n.getFullYear(),n.getMonth(),n.getDate(),t.getHours(),t.getMinutes())},_timeListItemTemplate:function(e){var t=this.dateBox.option("displayFormat");return c.default.format(e,this.getDisplayFormat(t))},_listItemClickHandler:function(e){if("useButtons"!==this.dateBox.option("applyValueMode")){var t=this._getDateByItemData(e.itemData);this.dateBox.option("opened",!1),this.dateBoxValue(t,e.event)}},_getDateByItemData:function(e){var t=this.dateBox.option("value"),n=e.getHours(),i=e.getMinutes(),o=e.getSeconds(),a=e.getFullYear(),r=e.getMonth(),s=e.getDate();return t?((t=this.dateBox.option("dateSerializationFormat")?h.default.deserializeDate(t):new Date(t)).setHours(n),t.setMinutes(i),t.setSeconds(o),t.setFullYear(a),t.setMonth(r),t.setDate(s)):t=new Date(a,r,s,n,i,0,0),t},getKeyboardListener:function(){return this._widget},_updatePopupHeight:function(){var e=(0,f.getSizeValue)(this.dateBox.option("dropDownOptions.height"));if(void 0===e||"auto"===e){this.dateBox._setPopupOption("height","auto");var t=(0,i.getOuterHeight)(this._widget.$element()),n=.45*(0,i.getHeight)(g);this.dateBox._setPopupOption("height",Math.min(t,n))}this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()},getParsedText:function(e,t){var n=this.callBase(e,t);return n&&(n=d.default.mergeDates(n,new Date(null),"date")),n}});t.default=_,e.exports=t.default,e.exports.default=t.default},84416:function(e,t,n){t.default=void 0;var i=n(20576),o=c(n(38129)),a=n(60137),r=n(89386),s=c(n(72309)),l=c(n(69434)),u=n(13306),d=c(n(20530));function c(e){return e&&e.__esModule?e:{default:e}}var h=o.default.inherit({NAME:"Native",popupConfig:function(e){return(0,u.extend)({},e,{width:"auto"})},getParsedText:function(e){return e?"datetime"===this.dateBox.option("type")?new Date(e.replace(/-/g,"/").replace("T"," ").split(".")[0]):s.default.fromStandardDateFormat(e):null},renderPopupContent:i.noop,_getWidgetName:i.noop,_getWidgetOptions:i.noop,_getDateBoxType:function(){var e=this.dateBox.option("type");return-1===(0,r.inArray)(e,s.default.SUPPORTED_FORMATS)?e="date":"datetime"!==e||(0,a.inputType)(e)||(e="datetime-local"),e},customizeButtons:function(){var e=this.dateBox.getButton("dropDown");d.default.real().android&&e&&e.on("click",function(){this.dateBox._input().get(0).click()}.bind(this))},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(e){var t=this._getDateBoxType();return e||s.default.FORMATS_MAP[t]},renderInputMinMax:function(e){e.attr({min:l.default.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:l.default.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}});t.default=h,e.exports=t.default,e.exports.default=t.default},72309:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=l(n(69434)),a=n(35922),r=n(95479),s=l(n(91500));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d,c=["year","day","month","day"],h=["hours","minutes","seconds","milliseconds"],f={SUPPORTED_FORMATS:["date","time","datetime"],ONE_MINUTE:6e4,ONE_DAY:864e5,ONE_YEAR:31536e6,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:(d=new Date,new Date(d.getFullYear()+50,d.getMonth(),d.getDate(),23,59,59)),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:c},time:{getStandardPattern:function(){return"HH:mm"},components:h},datetime:{getStandardPattern:function(){var e,t;return(t=(0,i.default)("<input>").attr("type","datetime")).val("2000-01-01T01:01Z"),t.val()&&(e="yyyy-MM-ddTHH:mmZ"),e||(e="yyyy-MM-ddTHH:mm:ssZ"),f.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:[].concat(c,h)},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:[].concat(c,["hours","minutes","seconds"])}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(e,t){var n=f.FORMATS_INFO[t].getStandardPattern();return o.default.serializeDate(e,n)},fromStandardDateFormat:function(e){var t=o.default.dateParser(e);return(0,a.isDate)(t)?t:void 0},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,n){if(!t)return t||null;if(!e||isNaN(e.getTime())){var i=new Date(null);e=new Date(i.getFullYear(),i.getMonth(),i.getDate())}var o=new Date(e.valueOf()),a=f.FORMATS_INFO[n];return(0,r.each)(a.components,(function(){var e=f.DATE_COMPONENTS_INFO[this];o[e.setter](t[e.getter]())})),o},getLongestCaptionIndex:function(e){var t,n=0,i=0;for(t=0;t<e.length;++t)e[t].length>i&&(n=t,i=e[t].length);return n},formatUsesMonthName:function(e){return s.default.formatUsesMonthName(e)},formatUsesDayName:function(e){return s.default.formatUsesDayName(e)},getLongestDate:function(e,t,n){var i=function(e){var t=u(e);return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null}(e),o=9;i&&!f.formatUsesMonthName(i)||(o=f.getLongestCaptionIndex(t));var a=new Date(1888,o,21,23,59,59,999);if(!i||f.formatUsesDayName(i)){var r=a.getDate()-a.getDay()+f.getLongestCaptionIndex(n);a.setDate(r)}return a},normalizeTime:function(e){e.setSeconds(0),e.setMilliseconds(0)}};f.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(e,t){var n=new Date(t.getTime());return n.setFullYear(e),s.default.format(n,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(e,t){var n=new Date(t.getTime());return n.setDate(e),s.default.format(n,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(e){return s.default.getMonthNames()[e]},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(e){return s.default.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(e){return s.default.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(e){return s.default.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(e){return s.default.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}};var p=f;t.default=p,e.exports=t.default,e.exports.default=t.default},65287:function(e,t,n){t.default=void 0;var i=h(n(68374)),o=h(n(96452)),a=h(n(95251)),r=h(n(91198)),s=n(95479),l=n(13306),u=h(n(72309)),d=h(n(99393)),c=h(n(91500));function h(e){return e&&e.__esModule?e:{default:e}}var f="date",p="year",g="month",m="day",_="hours",v=o.default.inherit({_valueOption:function(){var e=this.option("value"),t=new Date(e);return!e||isNaN(t)?this._getDefaultDate():t},_getDefaultDate:function(){var e=new Date;return this.option("type")===f?new Date(e.getFullYear(),e.getMonth(),e.getDate()):e},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{minDate:u.default.MIN_DATEVIEW_DEFAULT_DATE,maxDate:u.default.MAX_DATEVIEW_DEFAULT_DATE,type:f,value:new Date,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"desktop"!==e.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass("dx-dateview"),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(e,t){this.$element().addClass("dx-dateview-"+e),t&&this.$element().removeClass("dx-dateview-"+t)},_toggleCompactClass:function(){this.$element().toggleClass("dx-dateview-compact",this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=(0,i.default)("<div>").addClass("dx-dateview-wrapper"),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=(0,i.default)("<div>").addClass("dx-dateview-rollers")),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var e=this;(0,s.each)(e._rollerConfigs,(function(t){var n=(0,i.default)("<div>").appendTo(e._$rollersContainer).addClass("dx-dateviewroller-"+e._rollerConfigs[t].type);e._rollers[e._rollerConfigs[t].type]=e._createComponent(n,a.default,{items:e._rollerConfigs[t].displayItems,selectedIndex:e._rollerConfigs[t].selectedIndex,showScrollbar:"never",scrollByContent:!0,onStart:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex"))},onEnd:function(e){e.component._toggleActive(!1)},onClick:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex")),e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex")),i._toggleActive(!1)},onSelectedIndexChanged:function(n){var i=n.component;e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex"))}})})),e._$rollersContainer.appendTo(e._wrapper())},_createRollerConfigs:function(e){var t=this;e=e||t.option("type"),t._rollerConfigs={},c.default.getFormatParts(u.default.FORMATS_MAP[e]).forEach((function(e){t._createRollerConfig(e)}))},_createRollerConfig:function(e){for(var t=u.default.DATE_COMPONENTS_INFO[e],n=this._calculateRollerConfigValueRange(e),i=n.startValue,o=n.endValue,a=t.formatter,r=this._getCurrentDate(),s={type:e,setValue:t.setter,valueItems:[],displayItems:[],getIndex:function(e){return e[t.getter]()-i}},l=i;l<=o;l++)s.valueItems.push(l),s.displayItems.push(a(l,r));s.selectedIndex=s.getIndex(r),this._rollerConfigs[e]=s},_setActiveRoller:function(e){var t=e&&this._rollers[e.type];(0,s.each)(this._rollers,(function(){this.toggleActiveState(this===t)}))},_updateRollersPosition:function(){var e=this;(0,s.each)(this._rollers,(function(t){var n=e._rollerConfigs[t].getIndex(e._getCurrentDate());this.option("selectedIndex",n)}))},_setRollerState:function(e,t){if(t!==e.selectedIndex){var n=e.valueItems[t],i=e.setValue,o=new Date(this._getCurrentDate()),a=o.getDate(),s=this.option("minDate"),l=this.option("maxDate");e.type===g?a=Math.min(a,u.default.getMaxMonthDay(o.getFullYear(),n)):e.type===p&&(a=Math.min(a,u.default.getMaxMonthDay(n,o.getMonth()))),o.setDate(a),o[i](n);var d=r.default.normalizeDate(o,s,l);o=u.default.mergeDates(d,o,"time"),o=r.default.normalizeDate(o,s,l),this.option("value",o),e.selectedIndex=t}e.type===p&&this._refreshRollers(),e.type===g&&(this._refreshRoller(m),this._refreshRoller(_))},_refreshRoller:function(e){var t=this._rollers[e];if(t){this._createRollerConfig(e);var n=this._rollerConfigs[e];e!==m&&n.displayItems.toString()===t.option("items").toString()||t.option({items:n.displayItems,selectedIndex:n.selectedIndex})}},_getCurrentDate:function(){var e=this._valueOption(),t=this.option("minDate"),n=this.option("maxDate");return r.default.normalizeDate(e,t,n)},_calculateRollerConfigValueRange:function(e){var t=this._getCurrentDate(),n=this.option("minDate"),i=this.option("maxDate"),o=r.default.sameYear(t,n),a=o&&t.getMonth()===n.getMonth(),s=r.default.sameYear(t,i),l=s&&t.getMonth()===i.getMonth(),d=a&&t.getDate()===n.getDate(),c=l&&t.getDate()===i.getDate(),h=u.default.DATE_COMPONENTS_INFO[e],f=h.startValue,v=h.endValue;return e===p&&(f=n.getFullYear(),v=i.getFullYear()),e===g&&(o&&(f=n.getMonth()),s&&(v=i.getMonth())),e===m&&(v=u.default.getMaxMonthDay(t.getFullYear(),t.getMonth()),o&&a&&(f=n.getDate()),s&&l&&(v=i.getDate())),e===_&&(f=d?n.getHours():f,v=c?i.getHours():v),{startValue:f,endValue:v}},_refreshRollers:function(){this._refreshRoller(g),this._refreshRoller(m),this._refreshRoller(_)},_optionChanged:function(e){switch(e.name){case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(e.value,e.previousValue);break;case"visible":this.callBase(e),e.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(e)}},_clean:function(){this.callBase(),delete this._$rollersContainer}});(0,d.default)("dxDateView",v);var y=v;t.default=y,e.exports=t.default,e.exports.default=t.default},95251:function(e,t,n){t.default=void 0;var i=n(58664),o=m(n(68374)),a=m(n(55994)),r=m(n(99393)),s=n(13306),l=n(95479),u=n(39611),d=n(95429),c=m(n(41183)),h=m(n(20530)),f=m(n(87209)),p=n(31648),g=n(82886);function m(e){return e&&e.__esModule?e:{default:e}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,_(t,n);var c=r.prototype;return c._getDefaultOptions=function(){return(0,s.extend)(e.prototype._getDefaultOptions.call(this),{showScrollbar:"never",useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null,scrollByContent:!0})},c._init=function(){e.prototype._init.call(this),this.option("onVisibilityChange",this._visibilityChangedHandler.bind(this)),this.option("onEnd",this._endActionHandler.bind(this))},c._render=function(){e.prototype._render.call(this),this._renderSelectedItemFrame(),this.$element().addClass("dx-dateviewroller"),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._renderWheelEvent(),this._renderSelectedIndexChanged()},c._renderSelectedIndexChanged=function(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")},c._renderWheelEvent=function(){var e=this;a.default.on((0,o.default)(this.container()),"dxmousewheel",(function(t){e._isWheelScrolled=!0}))},c._renderContainerClick=function(){if(this.option("showOnClick")){var e=(0,u.addNamespace)(d.name,this.NAME),t=this._createActionByOption("onClick");a.default.off((0,o.default)(this.container()),e),a.default.on((0,o.default)(this.container()),e,(function(e){t({event:e})}))}},c._renderItems=function(){var e=this.option("items")||[],t=(0,o.default)();(0,o.default)(this.content()).empty(),e.forEach((function(e){t=t.add((0,o.default)("<div>").addClass("dx-dateview-item").append(e))})),(0,o.default)(this.content()).append(t),this._$items=t,this.update()},c._renderSelectedItemFrame=function(){(0,o.default)("<div>").addClass("dx-dateview-item-selected-frame").append((0,o.default)("<div>").addClass("dx-dateview-item-selected-border")).appendTo((0,o.default)(this.container()))},c._renderSelectedValue=function(e){var t=this._fitIndex(null!=e?e:this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(t)}),this._renderActiveStateItem()},c._fitIndex=function(e){var t=(this.option("items")||[]).length;return e>=t?t-1:e<0?0:e},c._getItemPosition=function(e){return Math.round(this._itemHeight()*e)},c._renderItemsClick=function(){var e=this._getItemSelector(),t=(0,u.addNamespace)(d.name,this.NAME);a.default.off(this.$element(),t,e),a.default.on(this.$element(),t,e,this._itemClickHandler.bind(this))},c._getItemSelector=function(){return".dx-dateview-item"},c._itemClickHandler=function(e){this.option("selectedIndex",this._itemElementIndex(e.currentTarget))},c._itemElementIndex=function(e){return this._itemElements().index(e)},c._itemElements=function(){return this.$element().find(this._getItemSelector())},c._renderActiveStateItem=function(){var e=this.option("selectedIndex");(0,l.each)(this._$items,(function(t){(0,o.default)(this).toggleClass("dx-dateview-item-selected",e===t)}))},c._shouldScrollToNeighborItem=function(){return"desktop"===h.default.real().deviceType&&this._isWheelScrolled},c._moveTo=function(e){var t=(0,g.convertToLocation)(e),n=t.top,i=t.left,a=this.scrollOffset(),r={x:a.left-i,y:a.top-n};if(this._isVisible()&&(r.x||r.y))if(this._prepareDirections(!0),this._animation&&!this._shouldScrollToNeighborItem()){var s=this;f.default.stop((0,o.default)(this.content())),f.default.animate((0,o.default)(this.content()),{duration:200,type:"slide",to:{top:Math.floor(r.y)},complete:function(){(0,p.resetPosition)((0,o.default)(s.content())),s.handleMove({delta:r})}}),delete this._animation}else this.handleMove({delta:r})},c._validate=function(e){return this._moveIsAllowed(e)},c._fitSelectedIndexInRange=function(e){var t=this.option("items").length;return Math.max(Math.min(e,t-1),0)},c._isInNullNeighborhood=function(e){return-.1<=e&&e<=.1},c._getSelectedIndexAfterScroll=function(e){var t=this.scrollOffset().top-e*this._itemHeight();if(this._isInNullNeighborhood(t))return e;var n=t>0?1:-1;return this._fitSelectedIndexInRange(e+n)},c._getNewSelectedIndex=function(e){if(this._shouldScrollToNeighborItem())return this._getSelectedIndexAfterScroll(e);this._animation=!0;var t=this.scrollOffset().top/this._itemHeight();return Math.round(t)},c._endActionHandler=function(){var e=this.option("selectedIndex"),t=this._getNewSelectedIndex(e);t===e?this._renderSelectedValue(t):this.option("selectedIndex",t),this._isWheelScrolled=!1},c._itemHeight=function(){var e=this._$items.first();return(0,i.getHeight)(e)},c._toggleActive=function(e){this.$element().toggleClass("dx-state-active",e)},c._isVisible=function(){return(0,o.default)(this.container()).is(":visible")},c._fireSelectedIndexChanged=function(e,t){this._selectedIndexChanged({value:e,previousValue:t,event:void 0})},c._visibilityChanged=function(t){e.prototype._visibilityChanged.call(this,t),this._visibilityChangedHandler(t)},c._visibilityChangedHandler=function(e){var t=this;e&&(this._visibilityTimer=setTimeout((function(){t._renderSelectedValue(t.option("selectedIndex"))}))),this.toggleActiveState(!1)},c.toggleActiveState=function(e){this.$element().toggleClass("dx-dateviewroller-current",e)},c._refreshSelectedIndex=function(){var e=this.option("selectedIndex"),t=this._fitIndex(e);t===e?this._renderActiveStateItem():this.option("selectedIndex",t)},c._optionChanged=function(t){switch(t.name){case"selectedIndex":this._fireSelectedIndexChanged(t.value,t.previousValue),this._renderSelectedValue(t.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:e.prototype._optionChanged.call(this,t)}},c._dispose=function(){clearTimeout(this._visibilityTimer),e.prototype._dispose.call(this)},r}(c.default);(0,r.default)("dxDateViewRoller",v);var y=v;t.default=y,e.exports=t.default,e.exports.default=t.default},7124:function(e,t,n){t.default=void 0;var i=h(n(68374)),o=h(n(96452)),a=h(n(34171)),r=h(n(78665)),s=h(n(55551)),l=n(13306),u=h(n(99393)),d=h(n(91500)),c=h(n(72309));function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e,t,n){p(e,t,n)},p=function(e,t,n){e.css("transform","rotate("+t+"deg) translate(0,"+n+"px)")},g=o.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{value:new Date(Date.now()),use24HourFormat:!0,_showClock:!0,_arrowOffset:5,stylingMode:void 0})},_getValue:function(){return this.option("value")||new Date},_init:function(){this.callBase(),this.$element().addClass("dx-timeview")},_render:function(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox:function(){var e=(0,i.default)("<div>").appendTo(this.$element()),t=[];this.option("_showClock")&&t.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),t.push({ratio:0,shrink:0,baseSize:"auto",template:this._renderField.bind(this)}),this._createComponent(e,s.default,{height:"100%",width:"100%",direction:"col",items:t})},_renderClock:function(e,t,n){this._$hourArrow=(0,i.default)("<div>").addClass("dx-timeview-hourarrow"),this._$minuteArrow=(0,i.default)("<div>").addClass("dx-timeview-minutearrow");var o=(0,i.default)(n);o.addClass("dx-timeview-clock").append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",o)},_updateClock:function(){var e=this._getValue(),t=e.getHours()/12*360+e.getMinutes()/60*30,n=e.getMinutes()/60*360;f(this._$hourArrow,t,this.option("_arrowOffset")),f(this._$minuteArrow,n,this.option("_arrowOffset"))},_getBoxItems:function(e){var t=this,n=[{ratio:0,shrink:0,baseSize:"auto",template:function(){return t._hourBox.$element()}},{ratio:0,shrink:0,baseSize:"auto",template:(0,i.default)("<div>").addClass("dx-timeview-time-separator").text(d.default.getTimeSeparator())},{ratio:0,shrink:0,baseSize:"auto",template:function(){return t._minuteBox.$element()}}];return e&&n.push({ratio:0,shrink:0,baseSize:"auto",template:function(){return t._format12.$element()}}),n},_renderField:function(){var e=!this.option("use24HourFormat");return this._createHourBox(e),this._createMinuteBox(),e&&this._createFormat12Box(),this._createComponent((0,i.default)("<div>").addClass("dx-timeview-field"),s.default,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(e)}).$element()},_createHourBox:function(e){var t=this;(this._hourBox=this._createComponent((0,i.default)("<div>"),a.default,(0,l.extend)({min:-1,max:e?13:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this),onKeyboardHandled:function(e){return t._keyboardHandler(e)}},this._getNumberBoxConfig()))).setAria("label","hours")},_isPM:function(){return!this.option("use24HourFormat")&&1===this._format12.option("value")},_onHourBoxValueChanged:function(e){var t=e.value,n=e.component,i=this._getValue(),o=new Date(i),a=this._convertMaxHourToMin(t);n.option("value",a),this._isPM()&&(a+=12),o.setHours(a),c.default.normalizeTime(o),this.option("value",o)},_convertMaxHourToMin:function(e){var t=this.option("use24HourFormat")?24:12;return(t+e)%t},_createMinuteBox:function(){var e=this;(this._minuteBox=this._createComponent((0,i.default)("<div>"),a.default,(0,l.extend)({min:-1,max:60,value:this._getValue().getMinutes(),onKeyboardHandled:function(t){return e._keyboardHandler(t)},onValueChanged:function(t){var n=(60+t.value)%60;t.component.option("value",n);var i=new Date(e._getValue());i.setMinutes(n),c.default.normalizeTime(i),e.option("value",i)}},this._getNumberBoxConfig()))).setAria("label","minutes")},_createFormat12Box:function(){var e=this,t=d.default.getPeriodNames();(this._format12=this._createComponent((0,i.default)("<div>").addClass("dx-timeview-format12"),r.default,{items:[{value:-1,text:t[0]},{value:1,text:t[1]}],valueExpr:"value",displayExpr:"text",onKeyboardHandled:function(t){return e._keyboardHandler(t)},onValueChanged:function(t){var n=t.value,i=e._getValue().getHours(),o=new Date(e._getValue()),a=(i+12*n)%24;o.setHours(a),e.option("value",o)},value:this._getValue().getHours()>=12?1:-1,stylingMode:this.option("stylingMode")})).setAria("label","type")},_refreshFormat12:function(){if(!this.option("use24HourFormat")){var e=this._getValue().getHours()>=12?1:-1;this._silentEditorValueUpdate(this._format12,e)}},_silentEditorValueUpdate:function(e,t){e&&(e._suppressValueChangeAction(),e.option("value",t),e._resumeValueChangeAction())},_getNumberBoxConfig:function(){return{showSpinButtons:!0,displayValueFormatter:function(e){return(e<10?"0":"")+e},stylingMode:this.option("stylingMode")}},_normalizeHours:function(e){return this.option("use24HourFormat")?e:e%12||12},_updateField:function(){var e=this._normalizeHours(this._getValue().getHours());this._silentEditorValueUpdate(this._hourBox,e),this._silentEditorValueUpdate(this._minuteBox,this._getValue().getMinutes()),this._refreshFormat12()},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(e){e&&this._updateTime()},_optionChanged:function(e){switch(e.name){case"value":this._updateTime(),this.callBase(e);break;case"_arrowOffset":break;case"use24HourFormat":case"_showClock":case"stylingMode":this._invalidate();break;default:this.callBase(e)}}});(0,u.default)("dxTimeView",g);var m=g;t.default=m,e.exports=t.default,e.exports.default=t.default},28414:function(e,t,n){t.default=void 0;var i=n(52431),o=v(n(99393)),a=v(n(73349)),r=v(n(68374)),s=n(20576),l=n(62754),u=n(13306),d=n(95479),c=n(35922),h=n(58201),f=v(n(55994)),p=n(80506),g=v(n(2492)),m=v(n(14390)),_=n(37518);function v(e){return e&&e.__esModule?e:{default:e}}var y=(0,h.getWindow)(),x="dx-pending-rendering",b="dx-pending-rendering-manual",w="dx-pending-rendering-active",C=["onRendered","onShown"],S=m.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{showLoadIndicator:!1,renderWhen:void 0,animation:void 0,staggerItemSelector:void 0,onRendered:null,onShown:null})},_getAnonymousTemplateName:function(){return"content"},_init:function(){this.transitionExecutor=new i.TransitionExecutor,this._initElement(),this._initRender(),this._$initialContent=this.$element().clone().contents(),this._initActions(),this.callBase()},_initElement:function(){this.$element().addClass("dx-deferrendering")},_initRender:function(){var e=this,t=this.$element(),n=this.option("renderWhen"),i=function(){return e._renderDeferredContent()};(0,c.isPromise)(n)?(0,l.fromPromise)(n).done(i):(t.data("dx-render-delegate",i),void 0===n&&t.addClass(b))},_initActions:function(){var e=this;this._actions={},(0,d.each)(C,(function(t,n){e._actions[n]=e._createActionByOption(n)||s.noop}))},_initMarkup:function(){this.callBase(),this._initContent||(this._initContent=this._renderContent,this._renderContent=function(){}),this._initContent()},_renderContentImpl:function(){this.$element().removeClass("dx-widget"),this.$element().append(this._$initialContent),this._setLoadingState()},_renderDeferredContent:function(){var e=this,t=this.$element(),n=new l.Deferred;return t.removeClass(b),t.addClass(w),this._abortRenderTask(),this._renderTask=(0,s.executeAsync)((function(){e._renderImpl().done((function(){var i={element:t};e._actions.onShown([i]),n.resolve(i)})).fail((function(){n.rejectWith(n,arguments)}))})),n.promise()},_isElementInViewport:function(e){var t=(0,_.getBoundingRect)(e);return t.bottom>=0&&t.right>=0&&t.top<=(y.innerHeight||a.default.getDocumentElement().clientHeight)&&t.left<=(y.innerWidth||a.default.getDocumentElement().clientWidth)},_animate:function(){var e,t=this,n=this.$element(),i=(0,h.hasWindow)()&&this.option("animation"),o=this.option("staggerItemSelector");return t.transitionExecutor.stop(),i?(o?n.find(o).each((function(){t._isElementInViewport(this)&&t.transitionExecutor.enter((0,r.default)(this),i)})):t.transitionExecutor.enter(n,i),e=t.transitionExecutor.start()):e=(new l.Deferred).resolve().promise(),e},_renderImpl:function(){var e=this.$element(),t={element:e},n=this._getTemplate(this._templateManager.anonymousTemplateName);return n&&n.render({container:e.empty(),noModel:!0}),this._setRenderedState(e),f.default.trigger(e,"dxcontentrendered"),this._actions.onRendered([t]),this._isRendered=!0,this._animate()},_setLoadingState:function(){var e=this.$element(),t=!!e.find(".dx-visible-while-pending-rendering").length;e.addClass(x),t||e.children().addClass("dx-invisible-while-pending-rendering"),this.option("showLoadIndicator")&&this._showLoadIndicator(e)},_showLoadIndicator:function(e){this._$loadIndicator=new g.default((0,r.default)("<div>"),{visible:!0}).$element().addClass("dx-deferrendering-load-indicator"),(0,r.default)("<div>").addClass("dx-loadindicator-container").addClass("dx-deferrendering-loadindicator-container").append(this._$loadIndicator).appendTo(e)},_setRenderedState:function(){var e=this.$element();this._$loadIndicator&&this._$loadIndicator.remove(),e.removeClass(x),e.removeClass(w),(0,p.triggerShownEvent)(e.children())},_optionChanged:function(e){var t=e.value,n=e.previousValue;switch(e.name){case"renderWhen":!1===n&&!0===t?this._renderOrAnimate():!0===n&&!1===t&&(this.transitionExecutor.stop(),this._setLoadingState());break;case"showLoadIndicator":case"onRendered":case"onShown":break;default:this.callBase(e)}},_renderOrAnimate:function(){var e;return this._isRendered?(this._setRenderedState(),e=this._animate()):e=this._renderDeferredContent(),e},renderContent:function(){return this._renderOrAnimate()},_abortRenderTask:function(){this._renderTask&&(this._renderTask.abort(),this._renderTask=void 0)},_dispose:function(){this.transitionExecutor.stop(!0),this._abortRenderTask(),this._actions=void 0,this._$initialContent=void 0,this.callBase()}});(0,o.default)("dxDeferRendering",S);var k=S;t.default=k,e.exports=t.default,e.exports.default=t.default},52311:function(e,t,n){var i;t.default=void 0;var o=((i=n(83537))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},50984:function(e,t,n){t.default=void 0;var i=n(348),o=function(){function e(e){var t=(0,i.getDiagram)().EventDispatcher;this.onChanged=new t,this._owner=e}var t=e.prototype;return t.raiseBarCommandExecuted=function(e,t){this.onChanged.raise("notifyBarCommandExecuted",parseInt(e),t)},t.getCommandKeys=function(){throw"Not Implemented"},t.setItemValue=function(e,t){},t.setItemEnabled=function(e,t){},t.setItemVisible=function(e,t){},t.setEnabled=function(e){},t.setItemSubItems=function(e,t){},t.isVisible=function(){return!0},t._getKeys=function(e){var t=this;return e.reduce((function(e,n){return void 0!==n.command&&e.push(n.command),n.items&&(e=e.concat(t._getKeys(n.items))),e}),[])},e}();t.default=o,e.exports=t.default,e.exports.default=t.default},72321:function(e,t,n){t.default=void 0;var i,o=n(348),a=n(48351),r=n(35922),s=n(58201),l=n(13306),u=(i=n(28109))&&i.__esModule?i:{default:i},d="separator",c={widget:d},h="dx-diagram-sm-edit-item",f="dx-diagram-md-edit-item",p="dx-diagram-image-dropdown-item",g="dx-diagram-color-edit-item",m="dx-diagram-lg-icon-item",_={SHOW_TOOLBOX_COMMAND_NAME:"toolbox",SHOW_PROPERTIES_PANEL_COMMAND_NAME:"propertiesPanel",getAllCommands:function(){var e=this,t=(0,o.getDiagram)().DiagramCommand;return this._allCommands||(this._allCommands={separator:c,exportSvg:{command:t.ExportSvg,text:u.default.format("dxDiagram-commandExportToSvg"),getParameter:function(t){return function(n){return e._exportTo(t,n,"SVG","image/svg+xml")}}},exportPng:{command:t.ExportPng,text:u.default.format("dxDiagram-commandExportToPng"),getParameter:function(t){return function(n){return e._exportTo(t,n,"PNG","image/png")}}},exportJpg:{command:t.ExportJpg,text:u.default.format("dxDiagram-commandExportToJpg"),getParameter:function(t){return function(n){return e._exportTo(t,n,"JPEG","image/jpeg")}}},undo:{command:t.Undo,hint:u.default.format("dxDiagram-commandUndo"),text:u.default.format("dxDiagram-commandUndo"),icon:"undo",menuIcon:"undo"},redo:{command:t.Redo,hint:u.default.format("dxDiagram-commandRedo"),text:u.default.format("dxDiagram-commandRedo"),icon:"redo",menuIcon:"redo"},cut:{command:t.Cut,hint:u.default.format("dxDiagram-commandCut"),text:u.default.format("dxDiagram-commandCut"),icon:"cut",menuIcon:"cut"},copy:{command:t.Copy,hint:u.default.format("dxDiagram-commandCopy"),text:u.default.format("dxDiagram-commandCopy"),icon:"copy",menuIcon:"copy"},paste:{command:t.PasteInPosition,hint:u.default.format("dxDiagram-commandPaste"),text:u.default.format("dxDiagram-commandPaste"),icon:"paste",menuIcon:"paste"},selectAll:{command:t.SelectAll,hint:u.default.format("dxDiagram-commandSelectAll"),text:u.default.format("dxDiagram-commandSelectAll"),icon:"dx-diagram-i-button-select-all dx-diagram-i",menuIcon:"dx-diagram-i-menu-select-all dx-diagram-i"},delete:{command:t.Delete,hint:u.default.format("dxDiagram-commandDelete"),text:u.default.format("dxDiagram-commandDelete"),icon:"remove",menuIcon:"remove"},fontName:{command:t.FontName,hint:u.default.format("dxDiagram-commandFontName"),text:u.default.format("dxDiagram-commandFontName"),widget:"dxSelectBox",items:["Arial","Arial Black","Helvetica","Times New Roman","Courier New","Courier","Verdana","Georgia","Comic Sans MS","Trebuchet MS"].map((function(e){return{text:e,value:e}})),cssClass:f},fontSize:{command:t.FontSize,hint:u.default.format("dxDiagram-commandFontSize"),text:u.default.format("dxDiagram-commandFontSize"),widget:"dxSelectBox",items:[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72].map((function(e){return{text:e+"pt",value:e+"pt"}})),cssClass:h},bold:{command:t.Bold,hint:u.default.format("dxDiagram-commandBold"),text:u.default.format("dxDiagram-commandBold"),icon:"bold",menuIcon:"bold"},italic:{command:t.Italic,hint:u.default.format("dxDiagram-commandItalic"),text:u.default.format("dxDiagram-commandItalic"),icon:"italic",menuIcon:"italic"},underline:{command:t.Underline,hint:u.default.format("dxDiagram-commandUnderline"),text:u.default.format("dxDiagram-commandUnderline"),icon:"underline",menuIcon:"underline"},fontColor:{command:t.FontColor,text:u.default.format("dxDiagram-commandTextColor"),hint:u.default.format("dxDiagram-commandTextColor"),widget:"dxColorBox",icon:"dx-icon dx-icon-color",menuIcon:"dx-icon dx-icon-color",cssClass:g},lineColor:{command:t.StrokeColor,text:u.default.format("dxDiagram-commandLineColor"),hint:u.default.format("dxDiagram-commandLineColor"),widget:"dxColorBox",icon:"dx-icon dx-icon-background",menuIcon:"dx-icon dx-icon-background",cssClass:g},lineWidth:{command:t.StrokeWidth,text:u.default.format("dxDiagram-commandLineWidth"),hint:u.default.format("dxDiagram-commandLineWidth"),widget:"dxSelectBox",items:[1,2,3,4,5,6,7,8].map((function(e){return{text:e+"px",value:e.toString()}})),cssClass:h},lineStyle:{command:t.StrokeStyle,text:u.default.format("dxDiagram-commandLineStyle"),hint:u.default.format("dxDiagram-commandLineStyle"),widget:"dxSelectBox",items:[{value:"",menuIcon:"dx-diagram-i-line-solid dx-diagram-i",hint:u.default.format("dxDiagram-commandLineStyleSolid")},{value:"2,2",menuIcon:"dx-diagram-i-line-dotted dx-diagram-i",hint:u.default.format("dxDiagram-commandLineStyleDotted")},{value:"6,2",menuIcon:"dx-diagram-i-line-dashed dx-diagram-i",hint:u.default.format("dxDiagram-commandLineStyleDashed")}],cssClass:p},fillColor:{command:t.FillColor,text:u.default.format("dxDiagram-commandFillColor"),hint:u.default.format("dxDiagram-commandFillColor"),widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",menuIcon:"dx-diagram-i dx-diagram-i-menu-fill",cssClass:g},textAlignLeft:{command:t.TextLeftAlign,hint:u.default.format("dxDiagram-commandAlignLeft"),text:u.default.format("dxDiagram-commandAlignLeft"),icon:"alignleft",menuIcon:"alignleft"},textAlignCenter:{command:t.TextCenterAlign,hint:u.default.format("dxDiagram-commandAlignCenter"),text:u.default.format("dxDiagram-commandAlignCenter"),icon:"aligncenter",menuIcon:"aligncenter"},textAlignRight:{command:t.TextRightAlign,hint:u.default.format("dxDiagram-commandAlignRight"),text:u.default.format("dxDiagram-commandAlignRight"),icon:"alignright",menuIcon:"alignright"},lock:{command:t.Lock,hint:u.default.format("dxDiagram-commandLock"),text:u.default.format("dxDiagram-commandLock"),icon:"dx-diagram-i-button-lock dx-diagram-i",menuIcon:"dx-diagram-i-menu-lock dx-diagram-i"},unlock:{command:t.Unlock,hint:u.default.format("dxDiagram-commandUnlock"),text:u.default.format("dxDiagram-commandUnlock"),icon:"dx-diagram-i-button-unlock dx-diagram-i",menuIcon:"dx-diagram-i-menu-unlock dx-diagram-i"},bringToFront:{command:t.BringToFront,hint:u.default.format("dxDiagram-commandBringToFront"),text:u.default.format("dxDiagram-commandBringToFront"),icon:"dx-diagram-i-button-bring-to-front dx-diagram-i",menuIcon:"dx-diagram-i-menu-bring-to-front dx-diagram-i"},sendToBack:{command:t.SendToBack,hint:u.default.format("dxDiagram-commandSendToBack"),text:u.default.format("dxDiagram-commandSendToBack"),icon:"dx-diagram-i-button-send-to-back dx-diagram-i",menuIcon:"dx-diagram-i-menu-send-to-back dx-diagram-i"},insertShapeImage:{command:t.InsertShapeImage,text:u.default.format("dxDiagram-commandInsertShapeImage"),icon:"dx-diagram-i-button-image-insert dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-insert dx-diagram-i"},editShapeImage:{command:t.EditShapeImage,text:u.default.format("dxDiagram-commandEditShapeImage"),icon:"dx-diagram-i-button-image-edit dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-edit dx-diagram-i"},deleteShapeImage:{command:t.DeleteShapeImage,text:u.default.format("dxDiagram-commandDeleteShapeImage"),icon:"dx-diagram-i-button-image-delete dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-delete dx-diagram-i"},connectorLineType:{command:t.ConnectorLineOption,widget:"dxSelectBox",hint:u.default.format("dxDiagram-commandConnectorLineType"),text:u.default.format("dxDiagram-commandConnectorLineType"),items:[{value:0,menuIcon:"dx-diagram-i-connector-straight dx-diagram-i",hint:u.default.format("dxDiagram-commandConnectorLineStraight"),text:u.default.format("dxDiagram-commandConnectorLineStraight")},{value:1,menuIcon:"dx-diagram-i-connector-orthogonal dx-diagram-i",hint:u.default.format("dxDiagram-commandConnectorLineOrthogonal"),text:u.default.format("dxDiagram-commandConnectorLineOrthogonal")}],cssClass:p},connectorLineStart:{command:t.ConnectorStartLineEnding,widget:"dxSelectBox",items:[{value:0,menuIcon:"dx-diagram-i-connector-begin-none dx-diagram-i",hint:u.default.format("dxDiagram-commandConnectorLineNone"),text:u.default.format("dxDiagram-commandConnectorLineNone")},{value:1,menuIcon:"dx-diagram-i-connector-begin-arrow dx-diagram-i",hint:u.default.format("dxDiagram-commandConnectorLineArrow"),text:u.default.format("dxDiagram-commandConnectorLineArrow")},{value:2,menuIcon:"dx-diagram-i-connector-begin-outlined-triangle dx-diagram-i",hint:u.default.format("dxDiagram-commandConnectorLineArrow"),text:u.default.format("dxDiagram-commandConnectorLineArrow")},{value:3,menuIcon:"dx-diagram-i-connector-begin-filled-triangle dx-diagram-i",hint:u.default.format("dxDiagram-commandConnectorLineArrow"),text:u.default.format("dxDiagram-commandConnectorLineArrow")}],hint:u.default.format("dxDiagram-commandConnectorLineStart"),text:u.default.format("dxDiagram-commandConnectorLineStart"),cssClass:p},connectorLineEnd:{command:t.ConnectorEndLineEnding,widget:"dxSelectBox",items:[{value:0,menuIcon:"dx-diagram-i-connector-end-none dx-diagram-i",hint:u.default.format("dxDiagram-commandConnectorLineNone"),text:u.default.format("dxDiagram-commandConnectorLineNone")},{value:1,menuIcon:"dx-diagram-i-connector-end-arrow dx-diagram-i",hint:u.default.format("dxDiagram-commandConnectorLineArrow"),text:u.default.format("dxDiagram-commandConnectorLineArrow")},{value:2,menuIcon:"dx-diagram-i-connector-end-outlined-triangle dx-diagram-i",hint:u.default.format("dxDiagram-commandConnectorLineArrow"),text:u.default.format("dxDiagram-commandConnectorLineArrow")},{value:3,menuIcon:"dx-diagram-i-connector-end-filled-triangle dx-diagram-i",hint:u.default.format("dxDiagram-commandConnectorLineArrow"),text:u.default.format("dxDiagram-commandConnectorLineArrow")}],hint:u.default.format("dxDiagram-commandConnectorLineEnd"),text:u.default.format("dxDiagram-commandConnectorLineEnd"),cssClass:p},layoutTreeTopToBottom:{command:t.AutoLayoutTreeVertical,text:u.default.format("dxDiagram-commandLayoutTopToBottom"),hint:u.default.format("dxDiagram-commandLayoutTopToBottom"),icon:"dx-diagram-i-button-layout-tree-tb dx-diagram-i",cssClass:m},layoutTreeBottomToTop:{command:t.AutoLayoutTreeVerticalBottomToTop,text:u.default.format("dxDiagram-commandLayoutBottomToTop"),hint:u.default.format("dxDiagram-commandLayoutBottomToTop"),icon:"dx-diagram-i-button-layout-tree-bt dx-diagram-i",cssClass:m},layoutTreeLeftToRight:{command:t.AutoLayoutTreeHorizontal,text:u.default.format("dxDiagram-commandLayoutLeftToRight"),hint:u.default.format("dxDiagram-commandLayoutLeftToRight"),icon:"dx-diagram-i-button-layout-tree-lr dx-diagram-i",cssClass:m},layoutTreeRightToLeft:{command:t.AutoLayoutTreeHorizontalRightToLeft,text:u.default.format("dxDiagram-commandLayoutRightToLeft"),hint:u.default.format("dxDiagram-commandLayoutRightToLeft"),icon:"dx-diagram-i-button-layout-tree-rl dx-diagram-i",cssClass:m},layoutLayeredTopToBottom:{command:t.AutoLayoutLayeredVertical,text:u.default.format("dxDiagram-commandLayoutTopToBottom"),hint:u.default.format("dxDiagram-commandLayoutTopToBottom"),icon:"dx-diagram-i-button-layout-layered-tb dx-diagram-i",cssClass:m},layoutLayeredBottomToTop:{command:t.AutoLayoutLayeredVerticalBottomToTop,text:u.default.format("dxDiagram-commandLayoutBottomToTop"),hint:u.default.format("dxDiagram-commandLayoutBottomToTop"),icon:"dx-diagram-i-button-layout-layered-bt dx-diagram-i",cssClass:m},layoutLayeredLeftToRight:{command:t.AutoLayoutLayeredHorizontal,text:u.default.format("dxDiagram-commandLayoutLeftToRight"),hint:u.default.format("dxDiagram-commandLayoutLeftToRight"),icon:"dx-diagram-i-button-layout-layered-lr dx-diagram-i",cssClass:m},layoutLayeredRightToLeft:{command:t.AutoLayoutLayeredHorizontalRightToLeft,text:u.default.format("dxDiagram-commandLayoutRightToLeft"),hint:u.default.format("dxDiagram-commandLayoutRightToLeft"),icon:"dx-diagram-i-button-layout-layered-rl dx-diagram-i",cssClass:m},fullScreen:{command:t.Fullscreen,hint:u.default.format("dxDiagram-commandFullscreen"),text:u.default.format("dxDiagram-commandFullscreen"),icon:"dx-diagram-i dx-diagram-i-button-fullscreen",menuIcon:"dx-diagram-i dx-diagram-i-menu-fullscreen",cssClass:g},units:{command:t.ViewUnits,hint:u.default.format("dxDiagram-commandUnits"),text:u.default.format("dxDiagram-commandUnits"),widget:"dxSelectBox"},simpleView:{command:t.ToggleSimpleView,hint:u.default.format("dxDiagram-commandSimpleView"),text:u.default.format("dxDiagram-commandSimpleView"),widget:"dxCheckBox"},showGrid:{command:t.ShowGrid,hint:u.default.format("dxDiagram-commandShowGrid"),text:u.default.format("dxDiagram-commandShowGrid"),widget:"dxCheckBox"},snapToGrid:{command:t.SnapToGrid,hint:u.default.format("dxDiagram-commandSnapToGrid"),text:u.default.format("dxDiagram-commandSnapToGrid"),widget:"dxCheckBox"},gridSize:{command:t.GridSize,hint:u.default.format("dxDiagram-commandGridSize"),text:u.default.format("dxDiagram-commandGridSize"),widget:"dxSelectBox"},pageSize:{command:t.PageSize,hint:u.default.format("dxDiagram-commandPageSize"),text:u.default.format("dxDiagram-commandPageSize"),widget:"dxSelectBox",cssClass:"dx-diagram-lg-edit-item",getCommandValue:function(e){return JSON.parse(e)},getEditorValue:function(e){return JSON.stringify(e)}},pageOrientation:{command:t.PageLandscape,hint:u.default.format("dxDiagram-commandPageOrientation"),text:u.default.format("dxDiagram-commandPageOrientation"),widget:"dxSelectBox",items:[{value:!0,text:u.default.format("dxDiagram-commandPageOrientationLandscape")},{value:!1,text:u.default.format("dxDiagram-commandPageOrientationPortrait")}],cssClass:f},pageColor:{command:t.PageColor,hint:u.default.format("dxDiagram-commandPageColor"),text:u.default.format("dxDiagram-commandPageColor"),widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",menuIcon:"dx-diagram-i dx-diagram-i-menu-fill",cssClass:g},zoomLevel:{command:t.ZoomLevel,hint:u.default.format("dxDiagram-commandZoomLevel"),text:u.default.format("dxDiagram-commandZoomLevel"),widget:"dxTextBox",items:[c,{command:t.FitToScreen,hint:u.default.format("dxDiagram-commandFitToContent"),text:u.default.format("dxDiagram-commandFitToContent")},{command:t.FitToWidth,hint:u.default.format("dxDiagram-commandFitToWidth"),text:u.default.format("dxDiagram-commandFitToWidth")},c,{command:t.AutoZoomToContent,hint:u.default.format("dxDiagram-commandAutoZoomByContent"),text:u.default.format("dxDiagram-commandAutoZoomByContent")},{command:t.AutoZoomToWidth,hint:u.default.format("dxDiagram-commandAutoZoomByWidth"),text:u.default.format("dxDiagram-commandAutoZoomByWidth")}],getEditorDisplayValue:function(e){return Math.round(100*e)+"%"},cssClass:h},toolbox:{command:this.SHOW_TOOLBOX_COMMAND_NAME,iconChecked:"dx-diagram-i dx-diagram-i-button-toolbox-close",iconUnchecked:"dx-diagram-i dx-diagram-i-button-toolbox-open",hint:u.default.format("dxDiagram-uiShowToolbox"),text:u.default.format("dxDiagram-uiShowToolbox")},propertiesPanel:{command:this.SHOW_PROPERTIES_PANEL_COMMAND_NAME,iconChecked:"close",iconUnchecked:"dx-diagram-i dx-diagram-i-button-properties-panel-open",hint:u.default.format("dxDiagram-uiProperties"),text:u.default.format("dxDiagram-uiProperties")}})},getMainToolbarCommands:function(e,t){var n=this.getAllCommands(),i=e?this._getPreparedCommands(n,e):this._getDefaultMainToolbarCommands(n);return this._prepareToolbarCommands(i,t)},_getDefaultMainToolbarCommands:function(e){return this._defaultMainToolbarCommands||(this._defaultMainToolbarCommands=[e.undo,e.redo,e.separator,e.fontName,e.fontSize,e.bold,e.italic,e.underline,e.separator,e.lineWidth,e.lineStyle,e.separator,e.fontColor,e.lineColor,e.fillColor,e.separator,e.textAlignLeft,e.textAlignCenter,e.textAlignRight,e.separator,e.connectorLineType,e.connectorLineStart,e.connectorLineEnd,e.separator,{text:u.default.format("dxDiagram-uiLayout"),showText:"always",items:[{text:u.default.format("dxDiagram-uiLayoutTree"),items:[e.layoutTreeTopToBottom,e.layoutTreeBottomToTop,e.layoutTreeLeftToRight,e.layoutTreeRightToLeft]},{text:u.default.format("dxDiagram-uiLayoutLayered"),items:[e.layoutLayeredTopToBottom,e.layoutLayeredBottomToTop,e.layoutLayeredLeftToRight,e.layoutLayeredRightToLeft]}]}])},getHistoryToolbarCommands:function(e,t){var n=this.getAllCommands(),i=e?this._getPreparedCommands(n,e):this._getDefaultHistoryToolbarCommands(n);return this._prepareToolbarCommands(i,t)},_getDefaultHistoryToolbarCommands:function(e){return this._defaultHistoryToolbarCommands||(this._defaultHistoryToolbarCommands=[e.undo,e.redo,e.separator,e.toolbox])},getViewToolbarCommands:function(e,t){var n=this.getAllCommands(),i=e?this._getPreparedCommands(n,e):this._getDefaultViewToolbarCommands(n);return this._prepareToolbarCommands(i,t)},_getDefaultViewToolbarCommands:function(e){return this._defaultViewToolbarCommands||(this._defaultViewToolbarCommands=[e.zoomLevel,e.separator,e.fullScreen,e.separator,{widget:"dxButton",icon:"export",text:u.default.format("dxDiagram-uiExport"),hint:u.default.format("dxDiagram-uiExport"),items:[e.exportSvg,e.exportPng,e.exportJpg]},{icon:"preferences",hint:u.default.format("dxDiagram-uiSettings"),text:u.default.format("dxDiagram-uiSettings"),items:[e.units,e.separator,e.showGrid,e.snapToGrid,e.gridSize,e.separator,e.simpleView,e.toolbox]}])},getPropertiesToolbarCommands:function(e,t){var n=this.getAllCommands(),i=e?this._getPreparedCommands(n,e):this._getDefaultPropertiesToolbarCommands(n);return this._prepareToolbarCommands(i,t)},_getDefaultPropertiesToolbarCommands:function(e){return this._defaultPropertiesToolbarCommands||(this._defaultPropertiesToolbarCommands=[e.propertiesPanel])},_getDefaultPropertyPanelCommandGroups:function(){return this._defaultPropertyPanelCommandGroups||(this._defaultPropertyPanelCommandGroups=[{title:u.default.format("dxDiagram-uiStyle"),groups:[{title:u.default.format("dxDiagram-uiText"),commands:["fontName","fontSize","bold","italic","underline","textAlignLeft","textAlignCenter","textAlignRight","fontColor"]},{title:u.default.format("dxDiagram-uiObject"),commands:["lineStyle","lineWidth","lineColor","fillColor"]},{title:u.default.format("dxDiagram-uiConnector"),commands:["connectorLineType","connectorLineStart","connectorLineEnd"]}]},{title:u.default.format("dxDiagram-uiLayout"),groups:[{title:u.default.format("dxDiagram-uiLayoutLayered"),commands:["layoutLayeredTopToBottom","layoutLayeredBottomToTop","layoutLayeredLeftToRight","layoutLayeredRightToLeft"]},{title:u.default.format("dxDiagram-uiLayoutTree"),commands:["layoutTreeTopToBottom","layoutTreeBottomToTop","layoutTreeLeftToRight","layoutTreeRightToLeft"]}]},{title:u.default.format("dxDiagram-uiDiagram"),groups:[{title:u.default.format("dxDiagram-uiPage"),commands:["pageSize","pageOrientation","pageColor"]}]}])},_preparePropertyPanelGroups:function(e){var t=this,n=this.getAllCommands(),i=[];return e.forEach((function(e){var o,a=e.commands;a&&(a=t._getPreparedCommands(n,a),a=t._prepareToolbarCommands(a)),e.groups&&(o=[],e.groups.forEach((function(e){var i=e.commands;i&&(i=t._getPreparedCommands(n,i),i=t._prepareToolbarCommands(i)),o.push({title:e.title,commands:i})}))),i.push({title:e.title,commands:a,groups:o})})),i},getPropertyPanelCommandTabs:function(e){return e=e||this._getDefaultPropertyPanelCommandGroups(),this._preparePropertyPanelGroups(e)},getContextMenuCommands:function(e){var t=this.getAllCommands(),n=e?this._getPreparedCommands(t,e):this._getDefaultContextMenuCommands(t);return this._prepareContextMenuCommands(n)},_getDefaultContextMenuCommands:function(e){return this._defaultContextMenuCommands||(this._defaultContextMenuCommands=[e.cut,e.copy,e.paste,e.delete,e.separator,e.selectAll,e.separator,e.bringToFront,e.sendToBack,e.separator,e.lock,e.unlock,e.separator,e.insertShapeImage,e.editShapeImage,e.deleteShapeImage])},_getPreparedCommands:function(e,t){var n=this;return t.map((function(t){if(t.widget&&t.widget===d)return{command:t,location:t.location};if(e[t])return e[t];if(t.text||t.icon||t.name){var i=t.name&&e[t.name],o={command:i&&i.command,name:t.name,location:t.location,text:t.text||i&&i.text,hint:t.text||i&&i.hint,icon:t.icon||i&&i.icon,menuIcon:t.icon||i&&i.menuIcon,widget:i&&i.widget,cssClass:i&&i.cssClass,getParameter:i&&i.getParameter,getCommandValue:i&&i.getCommandValue,getEditorValue:i&&i.getEditorValue,getEditorDisplayValue:i&&i.getEditorDisplayValue,iconChecked:i&&i.iconChecked,iconUnchecked:i&&i.iconUnchecked};return Array.isArray(t.items)?o.items=n._getPreparedCommands(e,t.items):o.items=i&&i.items,o}})).filter((function(e){return e}))},_prepareContextMenuCommands:function(e,t,n){var i=this,o=!1;return e.map((function(e){if(i._isValidCommand(e,t)){if(!e.widget||e.widget!==d){var a=i._cloneCommand(e,t);return a.icon=a.menuIcon,a.beginGroup=o,a.rootCommand=a.command?void 0:n&&n.command,o=!1,a}o=!0}})).filter((function(e){return e}))},_prepareToolbarCommands:function(e,t){var n=this;return e.map((function(e){if(n._isValidCommand(e,t))return n._cloneCommand(e,t)})).filter((function(e){return e})).filter((function(e,t,n){return(e.widget!==d||t!==n.length-1)&&e}))},_cloneCommand:function(e,t){var n=(0,l.extend)({},e);return Array.isArray(e.items)&&(n.items=this._prepareContextMenuCommands(e.items,t,n)),n},_isValidCommand:function(e,t){return-1===(t=t||[]).indexOf(e.command)},_exportTo:function(e,t,n,i){var o=(0,s.getWindow)();if(o&&o.atob&&(0,r.isFunction)(o.Blob)){var l=this._getBlobByDataURI(o,t,i),u=e.option("export");a.fileSaver.saveAs(u.fileName||"foo",n,l,u.proxyURL)}},_getBlobByDataURI:function(e,t,n){for(var i=e.atob(t.split(",")[1]),o=new Uint8Array(i.length),a=0;a<i.length;a++)o[a]=i.charCodeAt(a);return new e.Blob([o.buffer],{type:n})}};t.default=_,e.exports=t.default,e.exports.default=t.default},73510:function(e,t,n){var i;function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.default=void 0;var a=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n),i.prototype._getKeyExpr=function(){return this._diagramWidget._createOptionGetter("edges.keyExpr")},i}(((i=n(4015))&&i.__esModule?i:{default:i}).default);t.default=a,e.exports=t.default,e.exports.default=t.default},348:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.getDiagram=function(){if(!r.default)throw a.default.Error("E1041","devexpress-diagram");return r};var o,a=(o=n(96688))&&o.__esModule?o:{default:o},r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(63472))},4015:function(e,t,n){t.default=void 0;var i,o=n(13306),a=n(44297),r=(i=n(53305))&&i.__esModule?i:{default:i};function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function i(t){var n;return(n=e.call(this)||this)._diagramWidget=t,n._resetCache(),n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var a=i.prototype;return a._dataSourceChangedHandler=function(e,t){if(this._resetCache(),this._items=e.map((function(e){return(0,o.extend)(!0,{},e)})),this._dataSourceItems=e.slice(),t&&t.changes){var n=t.changes.filter((function(e){return e.internalChange})),i=t.changes.filter((function(e){return!e.internalChange}));n.length&&this._reloadContentByChanges(n,!1),i.length&&this._reloadContentByChanges(i,!0)}else this._diagramWidget._onDataSourceChanged()},a._dataSourceLoadingChangedHandler=function(e){e&&!this._dataSource.isLoaded()?this._diagramWidget._showLoadingIndicator():this._diagramWidget._hideLoadingIndicator()},a._prepareData=function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&void 0===e[t]&&(e[t]=null);return e},a.insert=function(e,t,n){var i=this;this._resetCache();var o=this._getStore();o.insert(this._prepareData(e)).done((function(e,n){o.push([{type:"insert",key:n,data:e,internalChange:!0}]),t&&t(e),i._resetCache()})).fail((function(e){n&&n(e),i._resetCache()}))},a.update=function(e,t,n,i){var o=this._getStore(),a=this._getStoreKey(o,e,t);o.update(a,this._prepareData(t)).done((function(e,t){o.push([{type:"update",key:t,data:e,internalChange:!0}]),n&&n(t,e)})).fail((function(e){i&&i(e)}))},a.remove=function(e,t,n,i){var o=this;this._resetCache();var a=this._getStore(),r=this._getStoreKey(a,e,t);a.remove(r).done((function(e){a.push([{type:"remove",key:e,internalChange:!0}]),n&&n(e),o._resetCache()})).fail((function(e){i&&i(e),o._resetCache()}))},a.findItem=function(e){return this._items?this._getItemByKey(e):null},a.getItems=function(){return this._items},a.hasItems=function(){return!!this._items},a._reloadContentByChanges=function(e,t){var n=this;e=e.map((function(e){return(0,o.extend)(e,{internalKey:n._getInternalKey(e.key)})})),this._diagramWidget._reloadContentByChanges(e,t)},a._getItemByKey=function(e){this._ensureCache();var t=this._cache,n=this._getIndexByKey(e);return t.items[n]},a._getIndexByKey=function(e){this._ensureCache();var t=this._cache;if("object"!==s(e)){var n=t.keySet||t.keys.reduce((function(e,t,n){return e[t]=n,e}),{});return t.keySet||(t.keySet=n),n[e]}for(var i=0,o=t.keys.length;i<o;i++)if(t.keys[i]===e)return i;return-1},a._ensureCache=function(){var e=this._cache;e.keys||(e.keys=[],e.items=[],this._fillCache(e,this._items))},a._fillCache=function(e,t){var n=this;if(t&&t.length){var i=this._getKeyExpr();i&&t.forEach((function(t){e.keys.push(i(t)),e.items.push(t)}));var o=this._getItemsExpr();o&&t.forEach((function(t){return n._fillCache(e,o(t))}));var a=this._getContainerChildrenExpr();a&&t.forEach((function(t){return n._fillCache(e,a(t))}))}},a._getKeyExpr=function(){throw"Not Implemented"},a._getItemsExpr=function(){},a._getContainerChildrenExpr=function(){},a._initDataSource=function(){e.prototype._initDataSource.call(this),this._dataSource&&this._dataSource.paginate(!1)},a._dataSourceOptions=function(){return{paginate:!1}},a._getStore=function(){return this._dataSource&&this._dataSource.store()},a._getStoreKey=function(e,t,n){var i=e.keyOf(n);if(i===n){var o=this._getKeyExpr();this._dataSourceItems.forEach((function(e){o(e)===t&&(i=e)}))}return i},a._getInternalKey=function(e){return"object"===s(e)?this._getKeyExpr()(e):e},a._resetCache=function(){this._cache={}},i}(a.Component.inherit({}).include(r.default));t.default=u,e.exports=t.default,e.exports.default=t.default},81308:function(e,t,n){var i;function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.default=void 0;var a=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var a=i.prototype;return a._getKeyExpr=function(){return this._diagramWidget._createOptionGetter("nodes.keyExpr")},a._getItemsExpr=function(){return this._diagramWidget._createOptionGetter("nodes.itemsExpr")},a._getContainerChildrenExpr=function(){return this._diagramWidget._createOptionGetter("nodes.containerChildrenExpr")},i}(((i=n(4015))&&i.__esModule?i:{default:i}).default);t.default=a,e.exports=t.default,e.exports.default=t.default},61982:function(e,t,n){t.default=void 0;var i,o=(i=n(50984))&&i.__esModule?i:{default:i},a=n(348);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function i(t){var n;n=e.call(this,t)||this;var i=(0,a.getDiagram)().DiagramCommand;return n.commandOptions={},n.commandOptions[i.Fullscreen]="fullScreen",n.commandOptions[i.ZoomLevel]=function(e){"object"===r(this._getOption("zoomLevel"))?this._setOption("zoomLevel.value",e):this._setOption("zoomLevel",e)},n.commandOptions[i.SwitchAutoZoom]=function(e){var t=(0,a.getDiagram)().AutoZoomMode;switch(e){case t.FitContent:this._setOption("autoZoomMode","fitContent");break;case t.FitToWidth:this._setOption("autoZoomMode","fitWidth");break;case t.Disabled:this._setOption("autoZoomMode","disabled")}},n.commandOptions[i.ToggleSimpleView]="simpleView",n.commandOptions[i.ShowGrid]="showGrid",n.commandOptions[i.SnapToGrid]="snapToGrid",n.commandOptions[i.GridSize]=function(e){"object"===r(this._getOption("gridSize"))?this._setOption("gridSize.value",e):this._setOption("gridSize",e)},n.commandOptions[i.ViewUnits]="viewUnits",n.commandOptions[i.PageSize]=function(e){var t=this._getOption("pageSize");void 0!==t&&t.width===e.width&&t.height===e.height||this._setOption("pageSize",e)},n.commandOptions[i.PageLandscape]=function(e){this._setOption("pageOrientation",e?"landscape":"portrait")},n.commandOptions[i.ViewUnits]=function(e){var t=(0,a.getDiagram)().DiagramUnit;switch(e){case t.In:this._setOption("viewUnits","in");break;case t.Cm:this._setOption("viewUnits","cm");break;case t.Px:this._setOption("viewUnits","px")}},n.commandOptions[i.PageColor]="pageColor",n._updateLock=0,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=i.prototype;return o.getCommandKeys=function(){return Object.keys(this.commandOptions).map((function(e){return parseInt(e)}))},o.setItemValue=function(e,t){if(!this.isUpdateLocked()){this.beginUpdate();try{"function"==typeof this.commandOptions[e]?this.commandOptions[e].call(this,t):this._setOption(this.commandOptions[e],t)}finally{this.endUpdate()}}},o.beginUpdate=function(){this._updateLock++},o.endUpdate=function(){this._updateLock--},o.isUpdateLocked=function(){return this._updateLock>0},o._getOption=function(e){return this._owner.option(e)},o._setOption=function(e,t){this._owner.option(e,t)},i}(o.default);t.default=l,e.exports=t.default,e.exports.default=t.default},63564:function(e,t,n){t.default=void 0;var i,o=(i=n(28109))&&i.__esModule?i:{default:i},a={getDefaultGroups:function(){return this._groups||(this._groups={general:{category:"general",title:o.default.format("dxDiagram-categoryGeneral")},flowchart:{category:"flowchart",title:o.default.format("dxDiagram-categoryFlowchart")},orgChart:{category:"orgChart",title:o.default.format("dxDiagram-categoryOrgChart")},containers:{category:"containers",title:o.default.format("dxDiagram-categoryContainers")},custom:{category:"custom",title:o.default.format("dxDiagram-categoryCustom")}})},getGroups:function(e){var t=this.getDefaultGroups();return e?e.map((function(e){return"string"==typeof e?{category:e,title:t[e]&&t[e].title||e}:e})).filter((function(e){return e})):[t.general,t.flowchart,t.orgChart,t.containers]}};t.default=a,e.exports=t.default,e.exports.default=t.default},33353:function(e,t,n){t.default=void 0;var i=c(n(68374)),o=c(n(14390)),a=c(n(10042)),r=c(n(72321)),s=c(n(20261)),l=c(n(50984)),u=n(348),d=n(58201);function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,f(e,t)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n._init=function(){e.prototype._init.call(this),this._createOnVisibilityChangingAction(),this._createOnInternalCommand(),this._createOnCustomCommand(),this._createOnItemClickAction(),this._tempState=void 0,this._commands=[],this._commandToIndexMap={},this.bar=new m(this)},n._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this),this._commands=this._getCommands(),this._commandToIndexMap={},this._fillCommandToIndexMap(this._commands,[]),this._$contextMenuTargetElement=(0,i.default)("<div>").addClass("dx-diagram-touchbar-target").appendTo(this.$element());var n=(0,i.default)("<div>").appendTo(this.$element());this._contextMenuInstance=this._createComponent(n,g,{isTouchBarMode:this._isTouchBarMode(),cssClass:this._isTouchBarMode()?"dx-diagram-touchbar":s.default.getContextMenuCssClass(),closeOnOutsideClick:!1,showEvent:"",focusStateEnabled:!1,items:this._commands,position:this._isTouchBarMode()?{my:{x:"center",y:"bottom"},at:{x:"center",y:"top"},of:this._$contextMenuTargetElement}:{},itemTemplate:function(e,t,n){s.default.getContextMenuItemTemplate(this,e,t,n)},onItemClick:function(e){var n=e.itemData;return t._onItemClick(n)},onShowing:function(e){!0!==t._inOnShowing&&(t._inOnShowing=!0,t._onVisibilityChangingAction({visible:!0,component:t}),e.component.option("items",e.component.option("items")),delete t._inOnShowing)}})},n._show=function(e,t,n){if(this._contextMenuInstance.hide(),this._isTouchBarMode()){this._$contextMenuTargetElement.show(),n||(n={x:e,y:t,width:0,height:0});var i=n.width>800?0:(800-n.width)/2;this._$contextMenuTargetElement.css({left:n.x-i,top:n.y-32,width:n.width+2*i,height:n.height+64}),this._contextMenuInstance.show()}else this._contextMenuInstance.option("position",{offset:e+" "+t}),this._contextMenuInstance.show()},n._hide=function(){this._$contextMenuTargetElement.hide(),this._contextMenuInstance.hide(),delete this._isTouchMode},n._isTouchBarMode=function(){if(void 0!==this._isTouchMode)return this._isTouchMode;if((0,u.getDiagram)().Browser.TouchUI)return!0;if(!(0,d.hasWindow)())return!1;var e=(0,d.getWindow)();return e.navigator&&e.navigator.maxTouchPoints>0},n._onItemClick=function(e){var t=!1;this._onItemClickAction&&(t=this._onItemClickAction(e)),t||(s.default.onContextMenuItemClick(this,e,this._executeCommand.bind(this)),this._contextMenuInstance.hide())},n._executeCommand=function(e,t,n){"number"==typeof e?this.bar.raiseBarCommandExecuted(e,n):"string"==typeof e&&this._onInternalCommandAction({command:e}),void 0!==t&&this._onCustomCommandAction({name:t})},n._createOnInternalCommand=function(){this._onInternalCommandAction=this._createActionByOption("onInternalCommand")},n._createOnCustomCommand=function(){this._onCustomCommandAction=this._createActionByOption("onCustomCommand")},n._getCommands=function(){return r.default.getContextMenuCommands(this.option("commands"))},n._fillCommandToIndexMap=function(e,t){var n=this;e.forEach((function(e,i){var o=t.concat([i]);void 0!==e.command&&(n._commandToIndexMap[e.command]=o),Array.isArray(e.items)&&n._fillCommandToIndexMap(e.items,o)}))},n._setItemEnabled=function(e,t){this._setItemVisible(e,t)},n._setItemVisible=function(e,t){var n=s.default.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[e]);s.default.updateContextMenuItemVisible(this._contextMenuInstance,n,t)},n._setItemValue=function(e,t){var n=s.default.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[e]);s.default.updateContextMenuItemValue(this._contextMenuInstance,n,e,t)},n._setItemSubItems=function(e,t){var n=s.default.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[e]);s.default.updateContextMenuItems(this._contextMenuInstance,n,e,t)},n._setEnabled=function(e){this._contextMenuInstance.option("disabled",!e)},n.isVisible=function(){return this._inOnShowing},n._createOnVisibilityChangingAction=function(){this._onVisibilityChangingAction=this._createActionByOption("onVisibilityChanging")},n._createOnItemClickAction=function(){this._onItemClickAction=this._createActionByOption("onItemClick")},n._optionChanged=function(t){switch(t.name){case"onVisibilityChanging":this._createOnVisibilityChangingAction();break;case"onInternalCommand":this._createOnInternalCommand();break;case"onCustomCommand":this._createOnCustomCommand();break;case"onItemClick":this._createOnItemClickAction();break;case"commands":this._invalidate();break;case"export":break;default:e.prototype._optionChanged.call(this,t)}},t}(o.default),g=function(e){function t(){return e.apply(this,arguments)||this}return h(t,e),t.prototype._renderContextMenuOverlay=function(){var t=this;e.prototype._renderContextMenuOverlay.call(this),this._overlay&&this.option("isTouchBarMode")&&this._overlay&&this._overlay.option("onShown",(function(){(0,i.default)(t._overlay.$content()).parent().addClass("dx-diagram-touchbar-overlay")}))},t}(a.default),m=function(e){function t(t){return e.call(this,t)||this}h(t,e);var n=t.prototype;return n.getCommandKeys=function(){return this._getKeys(this._owner._commands)},n.setItemValue=function(e,t){this._owner._setItemValue(e,t)},n.setItemEnabled=function(e,t){this._owner._setItemEnabled(e,t)},n.setItemVisible=function(e,t){this._owner._setItemVisible(e,t)},n.setItemSubItems=function(e,t){this._owner._setItemSubItems(e,t)},n.setEnabled=function(e){this._owner._setEnabled(e)},n.isVisible=function(){return this._owner.isVisible()},t}(l.default),_={DiagramContextMenuWrapper:p,DiagramContextMenu:g};t.default=_,e.exports=t.default,e.exports.default=t.default},90978:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=l(n(14390)),a=l(n(22348)),r=n(348),s=n(58201);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var l=o.prototype;return l._init=function(){e.prototype._init.call(this),this._onShownAction=this._createActionByOption("onShown"),this._popoverPositionData=[{my:{x:"center",y:"top"},at:{x:"center",y:"bottom"},offset:{x:0,y:5}},{my:{x:"right",y:"center"},at:{x:"left",y:"center"},offset:{x:-5,y:0}},{my:{x:"center",y:"bottom"},at:{x:"center",y:"top"},offset:{x:0,y:-5}},{my:{x:"left",y:"center"},at:{x:"right",y:"center"},offset:{x:5,y:0}}]},l._initMarkup=function(){e.prototype._initMarkup.call(this),this._$popoverTargetElement=(0,i.default)("<div>").addClass("dx-diagram-context-toolbox-target").appendTo(this.$element());var t=(0,i.default)("<div>").appendTo(this.$element()),n="dx-diagram-context-toolbox";this._isTouchMode()&&(n+=" dx-diagram-touch-context-toolbox"),this._popoverInstance=this._createComponent(t,a.default,{closeOnOutsideClick:!1,container:this.$element(),elementAttr:{class:n}})},l._isTouchMode=function(){if((0,r.getDiagram)().Browser.TouchUI)return!0;if(!(0,s.hasWindow)())return!1;var e=(0,s.getWindow)();return e.navigator&&e.navigator.maxTouchPoints>0},l._show=function(e,t,n,o,a){this._popoverInstance.hide();var r=(0,i.default)("<div>").addClass("dx-diagram-context-toolbox-content");void 0!==this.option("toolboxWidth")&&r.css("width",this.option("toolboxWidth")),this._$popoverTargetElement.css({left:e+this._popoverPositionData[n].offset.x,top:t+this._popoverPositionData[n].offset.y}).show();var l=(0,s.getWindow)(),u=this._$popoverTargetElement.get(0);this._$popoverTargetElement.css({left:u.offsetLeft-(u.getBoundingClientRect().left+l.scrollX-u.offsetLeft),top:u.offsetTop-(u.getBoundingClientRect().top+l.scrollY-u.offsetTop)}),this._popoverInstance.option({position:{my:this._popoverPositionData[n].my,at:this._popoverPositionData[n].at,of:this._$popoverTargetElement},contentTemplate:r,onContentReady:function(){var e=this,t=this.$element().find(".dx-diagram-context-toolbox-content");this._onShownAction({category:o,callback:a,$element:t,hide:function(){return e._popoverInstance.hide()}})}.bind(this)}),this._popoverInstance.show()},l._hide=function(){this._$popoverTargetElement.hide(),this._popoverInstance.hide()},o}(o.default);t.default=d,e.exports=t.default,e.exports.default=t.default},34690:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=n(348),a=l(n(28109)),r=l(n(53749)),s=n(58201);function l(e){return e&&e.__esModule?e:{default:e}}var u={getConfigurations:function(){var e=(0,o.getDiagram)().DiagramCommand;return this.dialogList||(this.dialogList=[{command:e.InsertShapeImage,title:a.default.format("dxDiagram-dialogInsertShapeImageTitle"),onGetContent:this.getChangeImageDialogContent},{command:e.EditShapeImage,title:a.default.format("dxDiagram-dialogEditShapeImageTitle"),onGetContent:this.getChangeImageDialogContent}])},getChangeImageDialogContent:function(e){var t=(0,i.default)("<div>");return e.component._createComponent(t,r.default,{selectButtonText:a.default.format("dxDiagram-dialogEditShapeImageSelectButton"),accept:"image/*",uploadMode:"useForm",onValueChanged:function(t){var n=new((0,s.getWindow)().FileReader);n.onload=function(t){e.component._commandParameter=t.target.result},n.readAsDataURL(t.value[0])}}),t},getDialogParameters:function(e){var t=this.getConfigurations().map((function(e){return e.command})).indexOf(e);return t>=0?this.getConfigurations()[t]:null}};t.default=u,e.exports=t.default,e.exports.default=t.default},46920:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=l(n(14390)),a=l(n(28109)),r=l(n(39114)),s=n(13306);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var l=o.prototype;return l._init=function(){e.prototype._init.call(this),this._command=void 0,this._isShown=!1,this._createOnGetContentOption(),this._createOnHiddenOption()},l._initMarkup=function(){e.prototype._initMarkup.call(this),this._command=this.option("command"),this._$popupElement=(0,i.default)("<div>").appendTo(this.$element()),this._popup=this._createComponent(this._$popupElement,r.default,{title:this.option("title"),maxWidth:this.option("maxWidth"),height:this.option("height"),toolbarItems:this.option("toolbarItems"),onHidden:this._onHiddenAction})},l._clean=function(){delete this._popup,this._$popupElement&&this._$popupElement.remove()},l._getDefaultOptions=function(){return(0,s.extend)(e.prototype._getDefaultOptions.call(this),{title:"",maxWidth:500,height:"auto",toolbarItems:this._getToolbarItems()})},l._getToolbarItems=function(){return[this._getOkToolbarItem(),this._getCancelToolbarItem()]},l._getOkToolbarItem=function(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:a.default.format("dxDiagram-dialogButtonOK"),onClick:function(){this._command.execute(this._commandParameter),this._hide()}.bind(this)}}},l._getCancelToolbarItem=function(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:a.default.format("dxDiagram-dialogButtonCancel"),onClick:this._hide.bind(this)}}},l._optionChanged=function(t){switch(t.name){case"title":case"maxWidth":case"height":case"toolbarItems":this._popup.option(t.name,t.value);break;case"command":this._command=t.value;break;case"onGetContent":this._createOnGetContentOption();break;case"onHidden":this._createOnHiddenOption();break;default:e.prototype._optionChanged.call(this,t)}},l._createOnGetContentOption=function(){this._onGetContentAction=this._createActionByOption("onGetContent")},l._createOnHiddenOption=function(){this._onHiddenAction=this._createActionByOption("onHidden")},l._hide=function(){this._popup.hide(),this._isShown=!1},l._show=function(){this._popup.$content().empty().append(this._onGetContentAction()),this._popup.show(),this._isShown=!0},l.isVisible=function(){return this._isShown},o}(o.default);t.default=d,e.exports=t.default,e.exports.default=t.default},99967:function(e,t,n){t.default=void 0;var i=n(58664),o=l(n(68374)),a=n(13306),r=n(58201),s=l(n(39114));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var d=l.prototype;return d._init=function(){e.prototype._init.call(this),this._createOnVisibilityChangingAction(),this._createOnVisibilityChangedAction()},d.isVisible=function(){return this.option("isVisible")},d.isMobileView=function(){return this.option("isMobileView")},d._initMarkup=function(){e.prototype._initMarkup.call(this);var t=this.$element(),n=(0,o.default)("<div>").addClass(this._getPopupClass()).addClass(this.isMobileView()&&"dx-diagram-mobile-popup").appendTo(t);this._popup=this._createComponent(n,s.default,this._getPopupOptions()),this._updatePopupVisible()},d.show=function(){this.option("isVisible",!0)},d.hide=function(){this.option("isVisible",!1)},d.toggle=function(){this.option("isVisible",!this.isVisible())},d.repaint=function(){this._popup.repaint()},d._getPopupContent=function(){return this._popup.content()},d._getPopupTitle=function(){return(0,o.default)(this._getPopupContent()).parent().find(".dx-popup-title")},d._getPointerUpElements=function(){return[this._getPopupContent(),this._getPopupTitle()]},d._getVerticalPaddingsAndBorders=function(){var e=(0,o.default)(this._getPopupContent());return(0,i.getOuterHeight)(e)-(0,i.getHeight)(e)},d._getHorizontalPaddingsAndBorders=function(){var e=(0,o.default)(this._getPopupContent());return(0,i.getOuterWidth)(e)-(0,i.getWidth)(e)},d._getPopupClass=function(){return""},d._getPopupWidth=function(){return this.option("width")||"auto"},d._getPopupMaxWidth=function(){return this.option("maxWidth")},d._getPopupMinWidth=function(){return this.option("minWidth")},d._getPopupHeight=function(){return this.option("height")||"auto"},d._getPopupMaxHeight=function(){return this.option("maxHeight")},d._getPopupMinHeight=function(){return this.option("minHeight")},d._getPopupPosition=function(){return{}},d._getPopupContainer=function(){return this.option("container")},d._getPopupSlideAnimationObject=function(e){return(0,a.extend)({type:"slide",start:function(){(0,o.default)("body").css("overflow","hidden")},complete:function(){(0,o.default)("body").css("overflow","")}},e)},d._getPopupAnimation=function(){return{hide:{type:"fadeOut"},show:{type:"fadeIn"}}},d._getPopupOptions=function(){var e=this,t=this;return{animation:(0,r.hasWindow)()?this._getPopupAnimation():null,shading:!1,showTitle:!1,focusStateEnabled:!1,container:this._getPopupContainer(),width:this._getPopupWidth(),height:this._getPopupHeight(),maxWidth:this._getPopupMaxWidth(),maxHeight:this._getPopupMaxHeight(),minWidth:this._getPopupMinWidth(),minHeight:this._getPopupMinHeight(),position:this._getPopupPosition(),showCloseButton:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,onContentReady:function(){t._renderPopupContent(t._popup.content())},onShowing:function(){e._onVisibilityChangingAction({visible:!0,component:e})},onShown:function(){e.option("isVisible",!0),e._onVisibilityChangedAction({visible:!0,component:e})},onHiding:function(){e._onVisibilityChangingAction({visible:!1,component:e})},onHidden:function(){e.option("isVisible",!1),e._onVisibilityChangedAction({visible:!1,component:e})}}},d._renderPopupContent=function(e){},d._updatePopupVisible=function(){this._popup.option("visible",this.isVisible())},d._createOnVisibilityChangingAction=function(){this._onVisibilityChangingAction=this._createActionByOption("onVisibilityChanging")},d._createOnVisibilityChangedAction=function(){this._onVisibilityChangedAction=this._createActionByOption("onVisibilityChanged")},d._optionChanged=function(t){switch(t.name){case"onVisibilityChanging":this._createOnVisibilityChangingAction();break;case"onVisibilityChanged":this._createOnVisibilityChangedAction();break;case"container":this._popup.option("container",this._getPopupContainer());break;case"width":this._popup.option("width",this._getPopupWidth());break;case"height":this._popup.option("height",this._getPopupHeight());break;case"maxWidth":this._popup.option("maxWidth",this._getPopupMaxWidth());break;case"maxHeight":this._popup.option("maxHeight",this._getPopupMaxHeight());break;case"minWidth":this._popup.option("minWidth",this._getPopupMinWidth());break;case"minHeight":this._popup.option("minHeight",this._getPopupMinHeight());break;case"isMobileView":this._invalidate();break;case"isVisible":this._updatePopupVisible();break;default:e.prototype._optionChanged.call(this,t)}},d._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{isVisible:!0,isMobileView:!1,offsetX:0,offsetY:0})},l}(l(n(47596)).default);t.default=d,e.exports=t.default,e.exports.default=t.default},57257:function(e,t,n){t.default=void 0;var i=a(n(38148)),o=a(n(72321));function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=i.prototype;return a._getCommands=function(){return o.default.getHistoryToolbarCommands(this.option("commands"),this._getExcludeCommands())},a._getExcludeCommands=function(){var e=[].concat(this.option("excludeCommands"));return this.option("isMobileView")||e.push(o.default.SHOW_TOOLBOX_COMMAND_NAME),e},i}(i.default);t.default=s,e.exports=t.default,e.exports.default=t.default},83537:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default=void 0;var o=n(58664),a=H(n(68374)),r=H(n(14390)),s=H(n(2492)),l=H(n(99393)),u=n(13306),d=n(35922),c=n(47617),h=H(n(49387)),f=n(348),p=n(58201),g=n(6415),m=H(n(55994)),_=n(39611),v=H(n(28109)),y=H(n(18016)),x=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(85421)),b=H(n(89799)),w=H(n(38148)),C=H(n(66156)),S=H(n(57257)),k=H(n(64225)),D=H(n(95463)),I=H(n(33353)),T=H(n(90978)),E=H(n(46920)),A=H(n(66737)),O=H(n(63564)),P=H(n(63842)),M=H(n(64863)),R=H(n(61982)),B=H(n(34690)),V=H(n(72321)),F=H(n(81308)),L=H(n(73510));function H(e){return e&&e.__esModule?e:{default:e}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var z="dx-diagram-floating-toolbar-container",W="in",G="disabled",j="portrait",q="#ffffff",$="dxDiagramEvent",K=(0,_.addNamespace)("fullscreenchange",$),U=(0,_.addNamespace)("msfullscreenchange",$),Y=(0,_.addNamespace)("webkitfullscreenchange",$),Z=(0,_.addNamespace)("mozfullscreenchange",$),X=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,N(t,n);var r=i.prototype;return r._init=function(){this._updateDiagramLockCount=0,this.toggleFullscreenLock=0,this._toolbars=[],e.prototype._init.call(this),this._initDiagram(),this._createCustomCommand()},r._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this),this._toolbars=[],delete this._isMobileScreenSize;var n=!(0,p.hasWindow)();this.$element().addClass("dx-diagram"),delete this._mainToolbar,this.option("mainToolbar.visible")&&this._renderMainToolbar();var i=(0,a.default)("<div>").addClass("dx-diagram-content-wrapper").appendTo(this.$element());if(delete this._historyToolbar,delete this._historyToolbarResizeCallback,this._isHistoryToolbarVisible()&&this._renderHistoryToolbar(i),delete this._propertiesToolbar,delete this._propertiesToolbarResizeCallback,this._isPropertiesPanelEnabled()&&this._renderPropertiesToolbar(i),delete this._viewToolbar,delete this._viewToolbarResizeCallback,this.option("viewToolbar.visible")&&this._renderViewToolbar(i),delete this._toolbox,delete this._toolboxResizeCallback,this._isToolboxEnabled()&&this._renderToolbox(i),delete this._propertiesPanel,delete this._propertiesPanelResizeCallback,this._isPropertiesPanelEnabled()&&this._renderPropertiesPanel(i),this._$content=(0,a.default)("<div>").addClass("dx-diagram-content").appendTo(i),delete this._contextMenu,this._diagramInstance.settings.contextMenuEnabled=this.option("contextMenu.enabled"),this._diagramInstance.settings.contextMenuEnabled&&this._renderContextMenu(i),delete this._contextToolbox,this.option("contextToolbox.enabled")&&this._renderContextToolbox(i),this._renderDialog(i),!n){var o=(0,a.default)("<div>").addClass("dx-diagram-scroll-view").appendTo(this._$content);this._createComponent(o,A.default,{useNativeScrolling:this.option("useNativeScrolling"),onCreateDiagram:function(e){t._diagramInstance.createDocument(e.$parent[0],e.scrollView,i[0])}})}this._setCustomCommandChecked(V.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME,this._isPropertiesPanelVisible()),this._setCustomCommandChecked(V.default.SHOW_TOOLBOX_COMMAND_NAME,this._isToolboxVisible()),this._createOptionsUpdateBar()},r._dimensionChanged=function(){this._isMobileScreenSize=void 0,this._processDiagramResize()},r._visibilityChanged=function(e){e&&(this._bindDiagramData(),this.repaint())},r._processDiagramResize=function(){this._diagramInstance.onDimensionChanged(),this._historyToolbarResizeCallback&&this._historyToolbarResizeCallback.call(this),this._propertiesToolbarResizeCallback&&this._propertiesToolbarResizeCallback.call(this),this._propertiesPanelResizeCallback&&this._propertiesPanelResizeCallback.call(this),this._viewToolbarResizeCallback&&this._viewToolbarResizeCallback.call(this),this._toolboxResizeCallback&&this._toolboxResizeCallback.call(this)},r.isMobileScreenSize=function(){return void 0===this._isMobileScreenSize&&(this._isMobileScreenSize=(0,p.hasWindow)()&&(0,o.getOuterWidth)(this.$element())<576),this._isMobileScreenSize},r._captureFocus=function(){this._diagramInstance&&this._diagramInstance.captureFocus()},r._captureFocusOnTimeout=function(){var e=this;this._captureFocusTimeout=setTimeout((function(){e._captureFocus(),delete e._captureFocusTimeout}),100)},r._killCaptureFocusTimeout=function(){this._captureFocusTimeout&&(clearTimeout(this._captureFocusTimeout),delete this._captureFocusTimeout)},r.notifyBarCommandExecuted=function(){this._captureFocusOnTimeout()},r._registerToolbar=function(e){this._registerBar(e),this._toolbars.push(e)},r._registerBar=function(e){e.bar.onChanged.add(this),this._diagramInstance.registerBar(e.bar)},r._getExcludeCommands=function(){var e=[];return this._isToolboxEnabled()||e.push(V.default.SHOW_TOOLBOX_COMMAND_NAME),this._isPropertiesPanelEnabled()||e.push(V.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME),e},r._getToolbarBaseOptions=function(){var e=this;return{onContentReady:function(t){var n=t.component;return e._registerToolbar(n)},onSubMenuVisibilityChanging:function(t){var n=t.component;return e._diagramInstance.updateBarItemsState(n.bar)},onPointerUp:this._onPanelPointerUp.bind(this),export:this.option("export"),excludeCommands:this._getExcludeCommands(),onInternalCommand:this._onInternalCommand.bind(this),onCustomCommand:this._onCustomCommand.bind(this),isMobileView:this.isMobileScreenSize()}},r._onInternalCommand=function(e){switch(e.command){case V.default.SHOW_TOOLBOX_COMMAND_NAME:this._toolbox&&this._toolbox.toggle();break;case V.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME:this._propertiesPanel&&this._propertiesPanel.toggle()}},r._onCustomCommand=function(e){this._customCommandAction({name:e.name})},r._renderMainToolbar=function(){var e=(0,a.default)("<div>").addClass("dx-diagram-toolbar-wrapper").appendTo(this.$element());this._mainToolbar=this._createComponent(e,C.default,(0,u.extend)(this._getToolbarBaseOptions(),{commands:this.option("mainToolbar.commands"),skipAdjustSize:!0}))},r._isHistoryToolbarVisible=function(){return this.option("historyToolbar.visible")&&!this.isReadOnlyMode()},r._renderHistoryToolbar=function(e){var t=this,n=(0,a.default)("<div>").addClass(z).appendTo(e);this._historyToolbar=this._createComponent(n,S.default,(0,u.extend)(this._getToolbarBaseOptions(),{commands:this.option("historyToolbar.commands"),locateInMenu:"never"})),this._updateHistoryToolbarPosition(),this._historyToolbarResizeCallback=function(){t._historyToolbar.option("isMobileView",t.isMobileScreenSize())}},r._updateHistoryToolbarPosition=function(){(0,p.hasWindow)()&&h.default.setup(this._historyToolbar.$element(),{my:"left top",at:"left top",of:this._historyToolbar.$element().parent(),offset:"12 12"})},r._isToolboxEnabled=function(){return"disabled"!==this.option("toolbox.visibility")&&!this.isReadOnlyMode()},r._isToolboxVisible=function(){return"visible"===this.option("toolbox.visibility")||"auto"===this.option("toolbox.visibility")&&!this.isMobileScreenSize()},r._renderToolbox=function(e){var t=this,n=!(0,p.hasWindow)(),i=(0,a.default)("<div>").appendTo(e),o=this._getToolboxBounds(e,n);this._toolbox=this._createComponent(i,P.default,{isMobileView:this.isMobileScreenSize(),isVisible:this._isToolboxVisible(),container:this.$element(),height:o.height,offsetParent:e,offsetX:o.offsetX,offsetY:o.offsetY,showSearch:this.option("toolbox.showSearch"),toolboxGroups:this._getToolboxGroups(),toolboxWidth:this.option("toolbox.width"),onShapeCategoryRendered:function(e){n||t._diagramInstance.createToolbox(e.$element[0],"texts"===e.displayMode,e.shapes||e.category,{shapeIconSpacing:12,shapeIconCountInRow:t.option("toolbox.shapeIconsPerRow"),shapeIconAttributes:{"data-toggle":e.dataToggle}})},onFilterChanged:function(e){n||t._diagramInstance.applyToolboxFilter(e.text,e.filteringToolboxes)},onVisibilityChanging:function(e){n||(t._setCustomCommandChecked(V.default.SHOW_TOOLBOX_COMMAND_NAME,e.visible),t._propertiesPanel&&e.visible&&t.isMobileScreenSize()&&t._propertiesPanel.hide(),t._historyToolbar&&e.visible&&t.isMobileScreenSize()&&(t._historyToolbarZIndex=x.create(b.default.baseZIndex()),t._historyToolbar.$element().css("zIndex",t._historyToolbarZIndex),t._historyToolbar.$element().css("boxShadow","none")),t._viewToolbar&&(t._viewToolbar.$element().css("opacity",e.visible&&t.isMobileScreenSize()?"0":"1"),t._viewToolbar.$element().css("pointerEvents",e.visible&&t.isMobileScreenSize()?"none":"")))},onVisibilityChanged:function(e){e.visible||t._textInputStarted||t._captureFocus(),n||t._historyToolbar&&!e.visible&&t.isMobileScreenSize()&&t._historyToolbarZIndex&&(x.remove(t._historyToolbarZIndex),t._historyToolbar.$element().css("zIndex",""),t._historyToolbar.$element().css("boxShadow",""),t._historyToolbarZIndex=void 0)},onPointerUp:this._onPanelPointerUp.bind(this)}),this._toolbox._popup.option("propagateOutsideClick",!this.option("fullScreen")),this._toolboxResizeCallback=function(){var i=t._getToolboxBounds(e,n);t._toolbox.option("height",i.height),t._toolbox.option("isMobileView")!==t.isMobileScreenSize()&&(t._toolbox.option({isMobileView:t.isMobileScreenSize(),isVisible:t._isToolboxVisible()}),t._setCustomCommandChecked(V.default.SHOW_TOOLBOX_COMMAND_NAME,t._isToolboxVisible())),t._toolbox.updateMaxHeight()}},r._getToolboxBounds=function(e,t){var n={offsetX:12,offsetY:12,height:t?0:(0,o.getHeight)(e)-24};return this._historyToolbar&&!t&&(n.offsetY+=(0,o.getOuterHeight)(this._historyToolbar.$element())+12,n.height-=(0,o.getOuterHeight)(this._historyToolbar.$element())+12),this._viewToolbar&&!t&&(n.height-=(0,o.getOuterHeight)(this._viewToolbar.$element())+this._getViewToolbarYOffset(t)),n},r._renderViewToolbar=function(e){var t=this,n=!(0,p.hasWindow)(),i=(0,a.default)("<div>").addClass(z).appendTo(e);this._viewToolbar=this._createComponent(i,k.default,(0,u.extend)(this._getToolbarBaseOptions(),{commands:this.option("viewToolbar.commands"),locateInMenu:"never"})),this._updateViewToolbarPosition(i,e,n),this._viewToolbarResizeCallback=function(){t._updateViewToolbarPosition(i,e,n)}},r._getViewToolbarYOffset=function(e){if(!e){var t=12;return this._viewToolbar&&this._propertiesToolbar&&(t+=((0,o.getOuterHeight)(this._propertiesToolbar.$element())-(0,o.getOuterHeight)(this._viewToolbar.$element()))/2),t}},r._updateViewToolbarPosition=function(e,t,n){n||h.default.setup(e,{my:"left bottom",at:"left bottom",of:t,offset:"12 -"+this._getViewToolbarYOffset(n)})},r._isPropertiesPanelEnabled=function(){return"disabled"!==this.option("propertiesPanel.visibility")&&!this.isReadOnlyMode()},r._isPropertiesPanelVisible=function(){return"visible"===this.option("propertiesPanel.visibility")},r._renderPropertiesToolbar=function(e){var t=this,n=!(0,p.hasWindow)(),i=(0,a.default)("<div>").addClass(z).addClass("dx-diagram-properties-panel-toolbar-container").appendTo(e);this._propertiesToolbar=this._createComponent(i,D.default,(0,u.extend)(this._getToolbarBaseOptions(),{buttonStylingMode:"contained",buttonType:"default",locateInMenu:"never"})),this._updatePropertiesToolbarPosition(i,e,n),this._propertiesToolbarResizeCallback=function(){t._updatePropertiesToolbarPosition(i,e,n)}},r._updatePropertiesToolbarPosition=function(e,t,n){n||h.default.setup(e,{my:"right bottom",at:"right bottom",of:t,offset:"-12 -12"})},r._renderPropertiesPanel=function(e){var t=this,n=!(0,p.hasWindow)(),i=(0,a.default)("<div>").appendTo(e),r=24+(n?0:(0,o.getOuterHeight)(this._propertiesToolbar.$element()));this._propertiesPanel=this._createComponent(i,M.default,{isMobileView:this.isMobileScreenSize(),isVisible:this._isPropertiesPanelVisible(),container:this.$element(),offsetParent:e,offsetX:12,offsetY:r,propertyTabs:this.option("propertiesPanel.tabs"),onCreateToolbar:function(e){e.toolbar=t._createComponent(e.$parent,w.default,(0,u.extend)(t._getToolbarBaseOptions(),{commands:e.commands,locateInMenu:"never",editorStylingMode:"outlined"}))},onVisibilityChanging:function(e){n||(t._updatePropertiesPanelGroupBars(e.component),t._setCustomCommandChecked(V.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME,e.visible),t._toolbox&&e.visible&&t.isMobileScreenSize()&&t._toolbox.hide())},onVisibilityChanged:function(e){e.visible||t._textInputStarted||t._captureFocus()},onSelectedGroupChanged:function(e){var n=e.component;return t._updatePropertiesPanelGroupBars(n)},onPointerUp:this._onPanelPointerUp.bind(this)}),this._propertiesPanelResizeCallback=function(){t._propertiesPanel.option("isMobileView")!==t.isMobileScreenSize()&&(t._propertiesPanel.option({isMobileView:t.isMobileScreenSize(),isVisible:t._isPropertiesPanelVisible()}),t._setCustomCommandChecked(V.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME,t._isPropertiesPanelVisible()))}},r._updatePropertiesPanelGroupBars=function(e){var t=this;e.getActiveToolbars().forEach((function(e){t._diagramInstance.updateBarItemsState(e.bar)}))},r._onPanelPointerUp=function(){this._captureFocusOnTimeout()},r._renderContextMenu=function(e){var t=this,n=(0,a.default)("<div>").appendTo(e);this._contextMenu=this._createComponent(n,I.default.DiagramContextMenuWrapper,{commands:this.option("contextMenu.commands"),onContentReady:function(e){var n=e.component;return t._registerBar(n)},onVisibilityChanging:function(e){var n=e.component;return t._diagramInstance.updateBarItemsState(n.bar)},onItemClick:function(e){return t._onBeforeCommandExecuted(e.command)},export:this.option("export"),excludeCommands:this._getExcludeCommands(),onInternalCommand:this._onInternalCommand.bind(this),onCustomCommand:this._onCustomCommand.bind(this)})},r._renderContextToolbox=function(e){var t=this,n=!(0,p.hasWindow)(),i=this.option("contextToolbox.category"),o=this.option("contextToolbox.displayMode"),r=this.option("contextToolbox.shapes"),s=(0,a.default)("<div>").appendTo(e);this._contextToolbox=this._createComponent(s,T.default,{toolboxWidth:this.option("contextToolbox.width"),onShown:function(e){if(!n){var s=(0,a.default)(e.$element),l="texts"===o;if(!r&&!i&&!l){var u=t._getToolboxGroups().filter((function(t){return t.category===e.category}))[0];u&&(l="texts"===u.displayMode)}t._diagramInstance.createContextToolbox(s[0],l,r||i||e.category,{shapeIconSpacing:12,shapeIconCountInRow:t.option("contextToolbox.shapeIconsPerRow")},(function(n){e.callback(n),t._captureFocus(),e.hide()}))}}})},r._setCustomCommandChecked=function(e,t){this._toolbars.forEach((function(n){n.setCommandChecked(e,t)}))},r._onBeforeCommandExecuted=function(e){var t=B.default.getDialogParameters(e);return t&&this._showDialog(t),!!t},r._renderDialog=function(e){var t=(0,a.default)("<div>").appendTo(e);this._dialogInstance=this._createComponent(t,E.default,{})},r._showDialog=function(e){this._dialogInstance&&(this._dialogInstance.option("onGetContent",e.onGetContent),this._dialogInstance.option("onHidden",function(){this._captureFocus()}.bind(this)),this._dialogInstance.option("command",this._diagramInstance.getCommand(e.command)),this._dialogInstance.option("title",e.title),this._dialogInstance._show())},r._showLoadingIndicator=function(){this._loadingIndicator=(0,a.default)("<div>").addClass("dx-diagram-loading-indicator"),this._createComponent(this._loadingIndicator,s.default,{}),(this._$content||this.$element()).append(this._loadingIndicator)},r._hideLoadingIndicator=function(){this._loadingIndicator&&(this._loadingIndicator.remove(),this._loadingIndicator=null)},r._initDiagram=function(){var e=(0,f.getDiagram)().DiagramControl;if(this._diagramInstance=new e,this._diagramInstance.onChanged=this._raiseDataChangeAction.bind(this),this._diagramInstance.onEdgeInserted=this._raiseEdgeInsertedAction.bind(this),this._diagramInstance.onEdgeUpdated=this._raiseEdgeUpdatedAction.bind(this),this._diagramInstance.onEdgeRemoved=this._raiseEdgeRemovedAction.bind(this),this._diagramInstance.onNodeInserted=this._raiseNodeInsertedAction.bind(this),this._diagramInstance.onNodeUpdated=this._raiseNodeUpdatedAction.bind(this),this._diagramInstance.onNodeRemoved=this._raiseNodeRemovedAction.bind(this),this._diagramInstance.onToolboxDragStart=this._raiseToolboxDragStart.bind(this),this._diagramInstance.onToolboxDragEnd=this._raiseToolboxDragEnd.bind(this),this._diagramInstance.onTextInputStart=this._raiseTextInputStart.bind(this),this._diagramInstance.onTextInputEnd=this._raiseTextInputEnd.bind(this),this._diagramInstance.onToggleFullscreen=this._onToggleFullScreen.bind(this),this._diagramInstance.onShowContextMenu=this._onShowContextMenu.bind(this),this._diagramInstance.onHideContextMenu=this._onHideContextMenu.bind(this),this._diagramInstance.onShowContextToolbox=this._onShowContextToolbox.bind(this),this._diagramInstance.onHideContextToolbox=this._onHideContextToolbox.bind(this),this._diagramInstance.onNativeAction.add({notifyItemClick:this._raiseItemClickAction.bind(this),notifyItemDblClick:this._raiseItemDblClickAction.bind(this),notifySelectionChanged:this._raiseSelectionChanged.bind(this)}),this._diagramInstance.onRequestOperation=this._raiseRequestEditOperation.bind(this),this._updateEventSubscriptionMethods(),this._updateDefaultItemProperties(),this._updateEditingSettings(),this._updateShapeTexts(),this._updateUnitItems(),this._updateFormatUnitsMethod(),this.option("units")!==W&&this._updateUnitsState(),this.isReadOnlyMode()&&this._updateReadOnlyState(),this.option("pageSize")&&(this.option("pageSize.items")&&this._updatePageSizeItemsState(),this.option("pageSize.width")&&this.option("pageSize.height")&&this._updatePageSizeState()),this.option("pageOrientation")!==j&&this._updatePageOrientationState(),this.option("pageColor")!==q&&this._updatePageColorState(),this.option("viewUnits")!==W&&this._updateViewUnitsState(),this.option("showGrid")||this._updateShowGridState(),this.option("snapToGrid")||this._updateSnapToGridState(),this.option("gridSize")&&this._updateGridSizeState(),1!==this.option("zoomLevel")&&this._updateZoomLevelState(),this.option("simpleView")&&this._updateSimpleViewState(),this.option("autoZoomMode")!==G&&this._updateAutoZoomState(),this.option("fullScreen")){var t=(0,p.getWindow)();t&&t.self!==t.top?this.option("fullScreen",!1):this._updateFullscreenState()}this._createOptionsUpdateBar(),(0,p.hasWindow)()&&this._diagramInstance.initMeasurer(this.$element()[0]),this._updateCustomShapes(this._getCustomShapes()),this._refreshDataSources()},r._createOptionsUpdateBar=function(){this.optionsUpdateBar||(this.optionsUpdateBar=new R.default(this),this._diagramInstance.registerBar(this.optionsUpdateBar))},r._deleteOptionsUpdateBar=function(){delete this.optionsUpdateBar},r._clean=function(){this._diagramInstance&&(this._diagramInstance.cleanMarkup((function(e){(0,a.default)(e).empty()})),this._deleteOptionsUpdateBar()),e.prototype._clean.call(this)},r._dispose=function(){this._killCaptureFocusTimeout(),e.prototype._dispose.call(this),this._diagramInstance=void 0},r._executeDiagramCommand=function(e,t){this._diagramInstance.getCommand(e).execute(t)},r.getNodeDataSource=function(){return this._nodesOption&&this._nodesOption.getDataSource()},r.getEdgeDataSource=function(){return this._edgesOption&&this._edgesOption.getDataSource()},r._refreshDataSources=function(){this._beginUpdateDiagram(),this._refreshNodesDataSource(),this._refreshEdgesDataSource(),this._endUpdateDiagram()},r._refreshNodesDataSource=function(){this._nodesOption&&(this._nodesOption._disposeDataSource(),delete this._nodesOption),this.option("nodes.dataSource")&&(this._nodesOption=new F.default(this),this._nodesOption.option("dataSource",this.option("nodes.dataSource")),this._nodesOption._refreshDataSource())},r._refreshEdgesDataSource=function(){this._edgesOption&&(this._edgesOption._disposeDataSource(),delete this._edgesOption),this.option("edges.dataSource")&&(this._edgesOption=new L.default(this),this._edgesOption.option("dataSource",this.option("edges.dataSource")),this._edgesOption._refreshDataSource())},r._getDiagramData=function(){var e,t=(0,f.getDiagram)().DiagramCommand;return this._executeDiagramCommand(t.Export,(function(t){e=t})),e},r._setDiagramData=function(e,t){var n=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(n.Import,{data:e,keepExistingItems:t})},r.isReadOnlyMode=function(){return this.option("readOnly")||this.option("disabled")},r._onDataSourceChanged=function(){this._bindDiagramData()},r._getChangesKeys=function(e){return e.map((function(e){return(0,d.isDefined)(e.internalKey)?e.internalKey:(0,d.isDefined)(e.key)?e.key:null})).filter((function(e){return(0,d.isDefined)(e)}))},r._createOptionGetter=function(e){var t=this.option(e);return t&&(0,c.compileGetter)(t)},r._onRequestUpdateLayout=function(e){this._requestLayoutUpdateAction||this._createRequestLayoutUpdateAction();var t={changes:e,allowed:!1};return this._requestLayoutUpdateAction(t),t.allowed},r._createOptionSetter=function(e){var t=this.option(e);return(0,d.isFunction)(t)?t:t&&(0,c.compileSetter)(t)},r._bindDiagramData=function(){if(!this._updateDiagramLockCount&&this._isBindingMode()){var e,t,n,i,o,a,r,s,l=(0,f.getDiagram)(),u=l.DiagramCommand,d=l.ConnectorLineOption,c=l.ConnectorLineEnding,h={nodeDataSource:this._nodesOption&&this._nodesOption.getItems(),edgeDataSource:this._edgesOption&&this._edgesOption.getItems(),nodeDataImporter:{getKey:this._createOptionGetter("nodes.keyExpr"),setKey:this._createOptionSetter("nodes.keyExpr"),getCustomData:this._createOptionGetter("nodes.customDataExpr"),setCustomData:this._createOptionSetter("nodes.customDataExpr"),getLocked:this._createOptionGetter("nodes.lockedExpr"),setLocked:this._createOptionSetter("nodes.lockedExpr"),getStyle:this._createOptionGetter("nodes.styleExpr"),setStyle:this._createOptionSetter("nodes.styleExpr"),getStyleText:this._createOptionGetter("nodes.textStyleExpr"),setStyleText:this._createOptionSetter("nodes.textStyleExpr"),getZIndex:this._createOptionGetter("nodes.zIndexExpr"),setZIndex:this._createOptionSetter("nodes.zIndexExpr"),getType:this._createOptionGetter("nodes.typeExpr"),setType:this._createOptionSetter("nodes.typeExpr"),getText:this._createOptionGetter("nodes.textExpr"),setText:this._createOptionSetter("nodes.textExpr"),getImage:this._createOptionGetter("nodes.imageUrlExpr"),setImage:this._createOptionSetter("nodes.imageUrlExpr"),getLeft:this._createOptionGetter("nodes.leftExpr"),setLeft:this._createOptionSetter("nodes.leftExpr"),getTop:this._createOptionGetter("nodes.topExpr"),setTop:this._createOptionSetter("nodes.topExpr"),getWidth:this._createOptionGetter("nodes.widthExpr"),setWidth:this._createOptionSetter("nodes.widthExpr"),getHeight:this._createOptionGetter("nodes.heightExpr"),setHeight:this._createOptionSetter("nodes.heightExpr"),getParentKey:this._createOptionGetter("nodes.parentKeyExpr"),setParentKey:this._createOptionSetter("nodes.parentKeyExpr"),getItems:this._createOptionGetter("nodes.itemsExpr"),setItems:this._createOptionSetter("nodes.itemsExpr"),getContainerKey:r=this._createOptionGetter("nodes.containerKeyExpr"),setContainerKey:s=this._createOptionSetter("nodes.containerKeyExpr"),getChildren:!r&&!s&&this._createOptionGetter("nodes.containerChildrenExpr"),setChildren:!r&&!s&&this._createOptionSetter("nodes.containerChildrenExpr")},edgeDataImporter:{getKey:this._createOptionGetter("edges.keyExpr"),setKey:this._createOptionSetter("edges.keyExpr"),getCustomData:this._createOptionGetter("edges.customDataExpr"),setCustomData:this._createOptionSetter("edges.customDataExpr"),getLocked:this._createOptionGetter("edges.lockedExpr"),setLocked:this._createOptionSetter("edges.lockedExpr"),getStyle:this._createOptionGetter("edges.styleExpr"),setStyle:this._createOptionSetter("edges.styleExpr"),getStyleText:this._createOptionGetter("edges.textStyleExpr"),setStyleText:this._createOptionSetter("edges.textStyleExpr"),getZIndex:this._createOptionGetter("edges.zIndexExpr"),setZIndex:this._createOptionSetter("edges.zIndexExpr"),getFrom:this._createOptionGetter("edges.fromExpr"),setFrom:this._createOptionSetter("edges.fromExpr"),getFromPointIndex:this._createOptionGetter("edges.fromPointIndexExpr"),setFromPointIndex:this._createOptionSetter("edges.fromPointIndexExpr"),getTo:this._createOptionGetter("edges.toExpr"),setTo:this._createOptionSetter("edges.toExpr"),getToPointIndex:this._createOptionGetter("edges.toPointIndexExpr"),setToPointIndex:this._createOptionSetter("edges.toPointIndexExpr"),getPoints:this._createOptionGetter("edges.pointsExpr"),setPoints:this._createOptionSetter("edges.pointsExpr"),getText:this._createOptionGetter("edges.textExpr"),setText:this._createOptionSetter("edges.textExpr"),getLineOption:(e=this._createOptionGetter("edges.lineTypeExpr"))&&function(t){var n=e(t);return this._getConnectorLineOption(n)}.bind(this),setLineOption:(t=this._createOptionSetter("edges.lineTypeExpr"))&&function(e,n){switch(n){case d.Straight:n="straight";break;case d.Orthogonal:n="orthogonal"}t(e,n)}.bind(this),getStartLineEnding:(n=this._createOptionGetter("edges.fromLineEndExpr"))&&function(e){var t=n(e);return this._getConnectorLineEnding(t)}.bind(this),setStartLineEnding:(i=this._createOptionSetter("edges.fromLineEndExpr"))&&function(e,t){switch(t){case c.Arrow:t="arrow";break;case c.OutlinedTriangle:t="outlinedTriangle";break;case c.FilledTriangle:t="filledTriangle";break;case c.None:t="none"}i(e,t)}.bind(this),getEndLineEnding:(o=this._createOptionGetter("edges.toLineEndExpr"))&&function(e){var t=o(e);return this._getConnectorLineEnding(t)}.bind(this),setEndLineEnding:(a=this._createOptionSetter("edges.toLineEndExpr"))&&function(e,t){switch(t){case c.Arrow:t="arrow";break;case c.OutlinedTriangle:t="outlinedTriangle";break;case c.FilledTriangle:t="filledTriangle";break;case c.None:t="none"}a(e,t)}.bind(this)},layoutParameters:this._getDataBindingLayoutParameters()};this._executeDiagramCommand(u.BindDocument,h)}},r._reloadContentByChanges=function(e,t){var n=this._getChangesKeys(e),i=this._onRequestUpdateLayout(e);this._reloadContent(n,i,t)},r._reloadContent=function(e,t,n){var i=this;this._diagramInstance.reloadContent(e,(function(){var e,t;return i._nodesOption&&n&&(e=i._nodesOption.getItems()),i._edgesOption&&n&&(t=i._edgesOption.getItems()),{nodeDataSource:e,edgeDataSource:t}}),t&&this._getDataBindingLayoutParameters(),n)},r._getConnectorLineOption=function(e){var t=(0,f.getDiagram)().ConnectorLineOption;return"straight"===e?t.Straight:t.Orthogonal},r._getConnectorLineEnding=function(e){var t=(0,f.getDiagram)().ConnectorLineEnding;switch(e){case"arrow":return t.Arrow;case"outlinedTriangle":return t.OutlinedTriangle;case"filledTriangle":return t.FilledTriangle;default:return t.None}},r._getDataBindingLayoutParameters=function(){var e=(0,f.getDiagram)(),t=e.DataLayoutType,n=e.DataLayoutOrientation,i=this.option("nodes.autoLayout")||"off",o=i.type||i,a={};if("off"!==o&&("auto"!==o||!this._hasNodePositionExprs())){switch(a.type="tree"===o?t.Tree:t.Sugiyama,i.orientation){case"vertical":a.orientation=n.Vertical;break;case"horizontal":a.orientation=n.Horizontal}(this.option("edges.fromPointIndexExpr")||this.option("edges.toPointIndexExpr"))&&(a.skipPointIndices=!0)}return a.autoSizeEnabled=!!this.option("nodes.autoSizeEnabled"),a},r._hasNodePositionExprs=function(){return this.option("nodes.topExpr")&&this.option("nodes.leftExpr")},r._getAutoZoomValue=function(e){var t=(0,f.getDiagram)().AutoZoomMode;switch(e){case"fitContent":return t.FitContent;case"fitWidth":return t.FitToWidth;default:return t.Disabled}},r._isBindingMode=function(){return this._nodesOption&&this._nodesOption.hasItems()||this._edgesOption&&this._edgesOption.hasItems()},r._beginUpdateDiagram=function(){this._updateDiagramLockCount++},r._endUpdateDiagram=function(){this._updateDiagramLockCount=Math.max(this._updateDiagramLockCount-1,0),this._updateDiagramLockCount||this._bindDiagramData()},r._getCustomShapes=function(){return this.option("customShapes")||[]},r._getToolboxGroups=function(){return O.default.getGroups(this.option("toolbox.groups"))},r._updateAllCustomShapes=function(){this._diagramInstance.removeAllCustomShapes(),this._updateCustomShapes(this._getCustomShapes())},r._updateCustomShapes=function(e,t){var n=this;Array.isArray(t)&&this._diagramInstance.removeCustomShapes(t.map((function(e){return e.type}))),Array.isArray(e)&&this._diagramInstance.addCustomShapes(e.map((function(e){var t=e.template||n.option("customShapeTemplate"),i=t&&n._getTemplate(t),o=e.toolboxTemplate||n.option("customShapeToolboxTemplate"),r=o&&n._getTemplate(o);return{category:e.category,type:e.type,baseType:e.baseType,title:e.title,svgUrl:e.backgroundImageUrl,svgToolboxUrl:e.backgroundImageToolboxUrl,svgLeft:e.backgroundImageLeft,svgTop:e.backgroundImageTop,svgWidth:e.backgroundImageWidth,svgHeight:e.backgroundImageHeight,defaultWidth:e.defaultWidth,defaultHeight:e.defaultHeight,toolboxWidthToHeightRatio:e.toolboxWidthToHeightRatio,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,allowResize:e.allowResize,defaultText:e.defaultText,allowEditText:e.allowEditText,textLeft:e.textLeft,textTop:e.textTop,textWidth:e.textWidth,textHeight:e.textHeight,defaultImageUrl:e.defaultImageUrl,allowEditImage:e.allowEditImage,imageLeft:e.imageLeft,imageTop:e.imageTop,imageWidth:e.imageWidth,imageHeight:e.imageHeight,connectionPoints:e.connectionPoints&&e.connectionPoints.map((function(e){return{x:e.x,y:e.y}})),createTemplate:i&&function(e,t){i.render({model:n._nativeItemToDiagramItem(t),container:(0,g.getPublicElement)((0,a.default)(e))})},createToolboxTemplate:r&&function(e,t){r.render({model:n._nativeItemToDiagramItem(t),container:(0,g.getPublicElement)((0,a.default)(e))})},destroyTemplate:i&&function(e){(0,a.default)(e).empty()},templateLeft:e.templateLeft,templateTop:e.templateTop,templateWidth:e.templateWidth,templateHeight:e.templateHeight,keepRatioOnAutoSize:e.keepRatioOnAutoSize}})))},r._getViewport=function(){var e=this.$element().closest(".dx-viewport");return e.length?e:(0,a.default)("body")},r._onToggleFullScreen=function(e){this.toggleFullscreenLock>0||(this._changeNativeFullscreen(e),e?(this._prevParent=this.$element().parent(),this._prevFullScreenZIndex=this.$element().css("zIndex"),this._fullScreenZIndex=x.create(b.default.baseZIndex()),this.$element().css("zIndex",this._fullScreenZIndex),this.$element().appendTo(this._getViewport())):(this.$element().appendTo(this._prevParent),this._fullScreenZIndex&&(x.remove(this._fullScreenZIndex),this.$element().css("zIndex",this._prevFullScreenZIndex))),this.$element().toggleClass("dx-diagram-fullscreen",e),this._processDiagramResize(),this._toolbox&&(this._toolbox.repaint(),this._toolbox._popup.option("propagateOutsideClick",!e)),this._propertiesPanel&&this._propertiesPanel.repaint(),this._historyToolbar&&this._updateHistoryToolbarPosition())},r._changeNativeFullscreen=function(e){var t=(0,p.getWindow)();t.self!==t.top&&e!==this._inNativeFullscreen()&&(e?this._subscribeFullscreenNativeChanged():this._unsubscribeFullscreenNativeChanged(),this._setNativeFullscreen(e))},r._setNativeFullscreen=function(e){var t=(0,p.getWindow)(),n=t.self.document,i=t.self.document.body;e?i.requestFullscreen?i.requestFullscreen():i.mozRequestFullscreen?i.mozRequestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen():i.msRequestFullscreen&&i.msRequestFullscreen():n.exitFullscreen?n.exitFullscreen():n.mozCancelFullscreen?n.mozCancelFullscreen():n.webkitExitFullscreen?n.webkitExitFullscreen():n.msExitFullscreen&&n.msExitFullscreen()},r._inNativeFullscreen=function(){var e=(0,p.getWindow)().document;return!((e.fullscreenElement||e.msFullscreenElement||e.webkitFullscreenElement)!==e.body&&!e.webkitIsFullscreen)},r._subscribeFullscreenNativeChanged=function(){var e=(0,p.getWindow)().document,t=this._onNativeFullscreenChangeHandler.bind(this);m.default.on(e,K,t),m.default.on(e,U,t),m.default.on(e,Y,t),m.default.on(e,Z,t)},r._unsubscribeFullscreenNativeChanged=function(){var e=(0,p.getWindow)().document;m.default.off(e,K),m.default.off(e,U),m.default.off(e,Y),m.default.off(e,Z)},r._onNativeFullscreenChangeHandler=function(){this._inNativeFullscreen()||(this._unsubscribeFullscreenNativeChanged(),this.option("fullScreen",!1))},r._executeDiagramFullscreenCommand=function(e){var t=(0,f.getDiagram)().DiagramCommand;this.toggleFullscreenLock++,this._executeDiagramCommand(t.Fullscreen,e),this.toggleFullscreenLock--},r._onShowContextMenu=function(e,t,n,i){this._contextMenu&&(this._contextMenu._isTouchMode=n,this._contextMenu._show(e,t,i))},r._onHideContextMenu=function(){this._contextMenu&&this._contextMenu._hide()},r._onShowContextToolbox=function(e,t,n,i,o){this._contextToolbox&&this._contextToolbox._show(e,t,n,i,o)},r._onHideContextToolbox=function(){this._contextToolbox&&this._contextToolbox._hide()},r._getDiagramUnitValue=function(e){var t=(0,f.getDiagram)().DiagramUnit;switch(e){case"in":default:return t.In;case"cm":return t.Cm;case"px":return t.Px}},r._updateReadOnlyState=function(){var e=(0,f.getDiagram)().DiagramCommand,t=this.isReadOnlyMode();this._executeDiagramCommand(e.ToggleReadOnly,t)},r._updateZoomLevelState=function(){if(this.option("zoomLevel.items")){this._updateZoomLevelItemsState();var e=this.option("zoomLevel.value");if(!e)return;var t=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.ZoomLevel,e)}else{var n=this.option("zoomLevel.value")||this.option("zoomLevel");if(!n)return;var i=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(i.ZoomLevel,n)}},r._updateZoomLevelItemsState=function(){var e=this.option("zoomLevel.items");if(Array.isArray(e)){var t=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.ZoomLevelItems,e)}},r._updateAutoZoomState=function(){var e=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.SwitchAutoZoom,this._getAutoZoomValue(this.option("autoZoomMode")))},r._updateSimpleViewState=function(){var e=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.ToggleSimpleView,this.option("simpleView"))},r._updateFullscreenState=function(){var e=this.option("fullScreen");this._executeDiagramFullscreenCommand(e),this._onToggleFullScreen(e)},r._updateShowGridState=function(){var e=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.ShowGrid,this.option("showGrid"))},r._updateSnapToGridState=function(){var e=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.SnapToGrid,this.option("snapToGrid"))},r._updateGridSizeState=function(){if(this.option("gridSize.items")){this._updateGridSizeItemsState();var e=this.option("gridSize.value");if(!e)return;var t=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.GridSize,e)}else{var n=this.option("gridSize.value")||this.option("gridSize");if(!n)return;var i=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(i.GridSize,n)}},r._updateGridSizeItemsState=function(){var e=this.option("gridSize.items");if(Array.isArray(e)){var t=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.GridSizeItems,e)}},r._updateUnitItems=function(){var e=(0,f.getDiagram)().DiagramLocalizationService,t=this._getUnitItems();this._unitItems!==t&&(this._unitItems=t,e.unitItems=t)},r._getUnitItems=function(){var e=(0,f.getDiagram)().DiagramUnit,t={};return t[e.In]=v.default.format("dxDiagram-unitIn"),t[e.Cm]=v.default.format("dxDiagram-unitCm"),t[e.Px]=v.default.format("dxDiagram-unitPx"),t},r._updateFormatUnitsMethod=function(){(0,f.getDiagram)().DiagramLocalizationService.formatUnit=function(e){return y.default.format(e)}},r._updateViewUnitsState=function(){var e=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.ViewUnits,this._getDiagramUnitValue(this.option("viewUnits")))},r._updateUnitsState=function(){var e=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.Units,this._getDiagramUnitValue(this.option("units")))},r._updatePageSizeState=function(){var e=this.option("pageSize");if(e&&e.width&&e.height){var t=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.PageSize,e)}},r._updatePageSizeItemsState=function(){var e=this.option("pageSize.items");if(Array.isArray(e)){var t=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.PageSizeItems,e)}},r._updatePageOrientationState=function(){var e=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.PageLandscape,"landscape"===this.option("pageOrientation"))},r._updatePageColorState=function(){var e=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.PageColor,this.option("pageColor"))},r._updateShapeTexts=function(){var e=(0,f.getDiagram)().DiagramLocalizationService,t=this._getShapeTexts();this._shapeTexts!==t&&(this._shapeTexts=t,e.shapeTexts=t)},r._getShapeTexts=function(){var e=(0,f.getDiagram)().ShapeTypes,t={};return t[e.Text]=v.default.format("dxDiagram-shapeText"),t[e.Rectangle]=v.default.format("dxDiagram-shapeRectangle"),t[e.Ellipse]=v.default.format("dxDiagram-shapeEllipse"),t[e.Cross]=v.default.format("dxDiagram-shapeCross"),t[e.Triangle]=v.default.format("dxDiagram-shapeTriangle"),t[e.Diamond]=v.default.format("dxDiagram-shapeDiamond"),t[e.Heart]=v.default.format("dxDiagram-shapeHeart"),t[e.Pentagon]=v.default.format("dxDiagram-shapePentagon"),t[e.Hexagon]=v.default.format("dxDiagram-shapeHexagon"),t[e.Octagon]=v.default.format("dxDiagram-shapeOctagon"),t[e.Star]=v.default.format("dxDiagram-shapeStar"),t[e.ArrowLeft]=v.default.format("dxDiagram-shapeArrowLeft"),t[e.ArrowUp]=v.default.format("dxDiagram-shapeArrowUp"),t[e.ArrowRight]=v.default.format("dxDiagram-shapeArrowRight"),t[e.ArrowDown]=v.default.format("dxDiagram-shapeArrowDown"),t[e.ArrowUpDown]=v.default.format("dxDiagram-shapeArrowUpDown"),t[e.ArrowLeftRight]=v.default.format("dxDiagram-shapeArrowLeftRight"),t[e.Process]=v.default.format("dxDiagram-shapeProcess"),t[e.Decision]=v.default.format("dxDiagram-shapeDecision"),t[e.Terminator]=v.default.format("dxDiagram-shapeTerminator"),t[e.PredefinedProcess]=v.default.format("dxDiagram-shapePredefinedProcess"),t[e.Document]=v.default.format("dxDiagram-shapeDocument"),t[e.MultipleDocuments]=v.default.format("dxDiagram-shapeMultipleDocuments"),t[e.ManualInput]=v.default.format("dxDiagram-shapeManualInput"),t[e.Preparation]=v.default.format("dxDiagram-shapePreparation"),t[e.Data]=v.default.format("dxDiagram-shapeData"),t[e.Database]=v.default.format("dxDiagram-shapeDatabase"),t[e.HardDisk]=v.default.format("dxDiagram-shapeHardDisk"),t[e.InternalStorage]=v.default.format("dxDiagram-shapeInternalStorage"),t[e.PaperTape]=v.default.format("dxDiagram-shapePaperTape"),t[e.ManualOperation]=v.default.format("dxDiagram-shapeManualOperation"),t[e.Delay]=v.default.format("dxDiagram-shapeDelay"),t[e.StoredData]=v.default.format("dxDiagram-shapeStoredData"),t[e.Display]=v.default.format("dxDiagram-shapeDisplay"),t[e.Merge]=v.default.format("dxDiagram-shapeMerge"),t[e.Connector]=v.default.format("dxDiagram-shapeConnector"),t[e.Or]=v.default.format("dxDiagram-shapeOr"),t[e.SummingJunction]=v.default.format("dxDiagram-shapeSummingJunction"),t[e.Container]=v.default.format("dxDiagram-shapeContainerDefaultText"),t[e.VerticalContainer]=v.default.format("dxDiagram-shapeVerticalContainer"),t[e.HorizontalContainer]=v.default.format("dxDiagram-shapeHorizontalContainer"),t[e.Card]=v.default.format("dxDiagram-shapeCardDefaultText"),t[e.CardWithImageOnLeft]=v.default.format("dxDiagram-shapeCardWithImageOnLeft"),t[e.CardWithImageOnTop]=v.default.format("dxDiagram-shapeCardWithImageOnTop"),t[e.CardWithImageOnRight]=v.default.format("dxDiagram-shapeCardWithImageOnRight"),t},r._updateEventSubscriptionMethods=function(){var e=(0,f.getDiagram)().RenderHelper;e.addEventListener=function(e,t,n){m.default.on(e,t,n)},e.removeEventListener=function(e,t,n){m.default.off(e,t,n)}},r._updateDefaultItemProperties=function(){this.option("defaultItemProperties.style")&&this._diagramInstance.setInitialStyleProperties(this.option("defaultItemProperties.style")),this.option("defaultItemProperties.textStyle")&&this._diagramInstance.setInitialTextStyleProperties(this.option("defaultItemProperties.textStyle")),this._diagramInstance.setInitialConnectorProperties({lineOption:this._getConnectorLineOption(this.option("defaultItemProperties.connectorLineType")),startLineEnding:this._getConnectorLineEnding(this.option("defaultItemProperties.connectorLineStart")),endLineEnding:this._getConnectorLineEnding(this.option("defaultItemProperties.connectorLineEnd"))}),this._diagramInstance.applyShapeSizeSettings({shapeMinWidth:this.option("defaultItemProperties.shapeMinWidth"),shapeMaxWidth:this.option("defaultItemProperties.shapeMaxWidth"),shapeMinHeight:this.option("defaultItemProperties.shapeMinHeight"),shapeMaxHeight:this.option("defaultItemProperties.shapeMaxHeight")})},r._updateEditingSettings=function(){this._diagramInstance.applyOperationSettings({addShape:this.option("editing.allowAddShape"),addShapeFromToolbox:this.option("editing.allowAddShape"),deleteShape:this.option("editing.allowDeleteShape"),deleteConnector:this.option("editing.allowDeleteConnector"),changeConnection:this.option("editing.allowChangeConnection"),changeConnectorPoints:this.option("editing.allowChangeConnectorPoints"),changeShapeText:this.option("editing.allowChangeShapeText"),changeConnectorText:this.option("editing.allowChangeConnectorText"),resizeShape:this.option("editing.allowResizeShape"),moveShape:this.option("editing.allowMoveShape")})},r.fitToContent=function(){var e=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.FitToScreen)},r.fitToWidth=function(){var e=(0,f.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.FitToWidth)},r.focus=function(){this._captureFocus()},r.export=function(){return this._getDiagramData()},r.exportTo=function(e,t){var n=this._getDiagramExportToCommand(e);this._executeDiagramCommand(n,t)},r._getDiagramExportToCommand=function(e){var t=(0,f.getDiagram)().DiagramCommand;switch(e){case"png":return t.ExportPng;case"jpg":return t.ExportJpg;default:return t.ExportSvg}},r.import=function(e,t){this._setDiagramData(e,t),this._raiseDataChangeAction()},r.updateToolbox=function(){this._diagramInstance&&this._diagramInstance.refreshToolbox(),this._toolbox&&this._toolbox.updateMaxHeight()},r._getDefaultOptions=function(){return(0,u.extend)(e.prototype._getDefaultOptions.call(this),{readOnly:!1,zoomLevel:1,simpleView:!1,autoZoomMode:G,fullScreen:!1,showGrid:!0,snapToGrid:!0,units:W,viewUnits:W,pageOrientation:j,pageColor:q,hasChanges:!1,nodes:{dataSource:null,keyExpr:"id",customDataExpr:void 0,lockedExpr:void 0,styleExpr:void 0,textStyleExpr:void 0,zIndexExpr:void 0,typeExpr:"type",textExpr:"text",imageUrlExpr:void 0,parentKeyExpr:void 0,itemsExpr:void 0,leftExpr:void 0,topExpr:void 0,widthExpr:void 0,heightExpr:void 0,containerKeyExpr:"containerKey",containerChildrenExpr:void 0,autoLayout:"auto",autoSizeEnabled:!0},edges:{dataSource:null,keyExpr:"id",customDataExpr:void 0,lockedExpr:void 0,styleExpr:void 0,textStyleExpr:void 0,zIndexExpr:void 0,fromExpr:"from",fromPointIndexExpr:void 0,toExpr:"to",toPointIndexExpr:void 0,pointsExpr:void 0,textExpr:void 0,lineTypeExpr:void 0,fromLineEndExpr:void 0,toLineEndExpr:void 0},customShapes:[],toolbox:{visibility:"auto",shapeIconsPerRow:3,showSearch:!0},mainToolbar:{visible:!1},historyToolbar:{visible:!0},viewToolbar:{visible:!0},contextMenu:{enabled:!0},contextToolbox:{enabled:!0,shapeIconsPerRow:4,width:152},propertiesPanel:{visibility:"auto"},defaultItemProperties:{connectorLineType:"orthogonal",connectorLineStart:"none",connectorLineEnd:"arrow"},editing:{allowAddShape:!0,allowDeleteShape:!0,allowDeleteConnector:!0,allowChangeConnection:!0,allowChangeConnectorPoints:!0,allowChangeShapeText:!0,allowChangeConnectorText:!0,allowResizeShape:!0,allowMoveShape:!0},export:{fileName:"Diagram",proxyUrl:void 0},onItemClick:null,onItemDblClick:null,onSelectionChanged:null,onRequestEditOperation:null,onRequestLayoutUpdate:null})},r._raiseDataChangeAction=function(){this._initialized&&this.option("hasChanges",!0)},r._raiseEdgeInsertedAction=function(e,t,n){this._edgesOption&&this._edgesOption.insert(e,t,n)},r._raiseEdgeUpdatedAction=function(e,t,n,i){this._edgesOption&&this._edgesOption.update(e,t,n,i)},r._raiseEdgeRemovedAction=function(e,t,n,i){this._edgesOption&&this._edgesOption.remove(e,t,n,i)},r._raiseNodeInsertedAction=function(e,t,n){this._nodesOption&&this._nodesOption.insert(e,t,n)},r._raiseNodeUpdatedAction=function(e,t,n,i){this._nodesOption&&this._nodesOption.update(e,t,n,i)},r._raiseNodeRemovedAction=function(e,t,n,i){this._nodesOption&&this._nodesOption.remove(e,t,n,i)},r._raiseToolboxDragStart=function(){this._toolbox&&(this._toolbox._raiseToolboxDragStart(),this.isMobileScreenSize()&&(this._toolbox.hide(),this._toolboxDragHidden=!0))},r._raiseToolboxDragEnd=function(){this._toolbox&&(this._toolbox._raiseToolboxDragEnd(),this._toolboxDragHidden&&(this._toolbox.show(),delete this._toolboxDragHidden))},r._raiseTextInputStart=function(){this._textInputStarted=!0,this._propertiesPanel&&this.isMobileScreenSize()&&this._propertiesPanel.isVisible()&&(this._propertiesPanel.hide(),this._propertiesPanelTextInputHidden=!0),this._toolbox&&this.isMobileScreenSize()&&this._toolbox.isVisible()&&(this._toolbox.hide(),this._toolboxTextInputHidden=!0)},r._raiseTextInputEnd=function(){this._propertiesPanel&&this._propertiesPanelTextInputHidden&&(this._propertiesPanel.show(),delete this._propertiesPanelTextInputHidden),this._toolbox&&this._toolboxTextInputHidden&&(this._toolbox.show(),delete this._toolboxTextInputHidden),this._textInputStarted=!1},r._createItemClickAction=function(){this._itemClickAction=this._createActionByOption("onItemClick")},r._createItemDblClickAction=function(){this._itemDblClickAction=this._createActionByOption("onItemDblClick")},r._createSelectionChangedAction=function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},r._createRequestEditOperationAction=function(){this._requestEditOperationAction=this._createActionByOption("onRequestEditOperation")},r._createRequestLayoutUpdateAction=function(){this._requestLayoutUpdateAction=this._createActionByOption("onRequestLayoutUpdate")},r._createCustomCommand=function(){this._customCommandAction=this._createActionByOption("onCustomCommand")},r._raiseItemClickAction=function(e){this._itemClickAction||this._createItemClickAction(),this._itemClickAction({item:this._nativeItemToDiagramItem(e)})},r._raiseItemDblClickAction=function(e){this._itemDblClickAction||this._createItemDblClickAction(),this._itemDblClickAction({item:this._nativeItemToDiagramItem(e)})},r._raiseSelectionChanged=function(e){this._selectionChangedAction||this._createSelectionChangedAction(),this._selectionChangedAction({items:e.map(this._nativeItemToDiagramItem.bind(this))})},r._raiseRequestEditOperation=function(e,t){this._requestEditOperationAction||this._createRequestEditOperationAction();var n=this._getRequestEditOperationEventArgs(e,t);this._requestEditOperationAction(n),t.allowed=n.allowed},r._getModelOperation=function(e){var t=(0,f.getDiagram)().DiagramModelOperation;switch(e){case t.AddShape:return"addShape";case t.AddShapeFromToolbox:return"addShapeFromToolbox";case t.DeleteShape:return"deleteShape";case t.DeleteConnector:return"deleteConnector";case t.ChangeConnection:return"changeConnection";case t.ChangeConnectorPoints:return"changeConnectorPoints";case t.BeforeChangeShapeText:return"beforeChangeShapeText";case t.ChangeShapeText:return"changeShapeText";case t.BeforeChangeConnectorText:return"beforeChangeConnectorText";case t.ChangeConnectorText:return"changeConnectorText";case t.ResizeShape:return"resizeShape";case t.MoveShape:return"moveShape"}},r._getRequestEditOperationEventArgs=function(e,t){var n=(0,f.getDiagram)(),i=n.DiagramModelOperation,o=n.ConnectorPosition,a={operation:this._getModelOperation(e),allowed:t.allowed,updateUI:t.updateUI,reason:t.updateUI?"checkUIElementAvailability":"modelModification"};switch(e){case i.AddShape:a.args={shape:t.shape&&this._nativeItemToDiagramItem(t.shape),position:t.position&&{x:t.position.x,y:t.position.y}};break;case i.AddShapeFromToolbox:a.args={shapeType:t.shapeType};break;case i.DeleteShape:a.args={shape:t.shape&&this._nativeItemToDiagramItem(t.shape)};break;case i.DeleteConnector:a.args={connector:t.connector&&this._nativeItemToDiagramItem(t.connector)};break;case i.ChangeConnection:a.args={newShape:t.shape&&this._nativeItemToDiagramItem(t.shape),oldShape:t.oldShape&&this._nativeItemToDiagramItem(t.oldShape),connector:t.connector&&this._nativeItemToDiagramItem(t.connector),connectionPointIndex:t.connectionPointIndex,connectorPosition:t.position===o.Begin?"start":"end"};break;case i.ChangeConnectorPoints:a.args={connector:t.connector&&this._nativeItemToDiagramItem(t.connector),newPoints:t.points&&t.points.map((function(e){return{x:e.x,y:e.y}})),oldPoints:t.oldPoints&&t.oldPoints.map((function(e){return{x:e.x,y:e.y}}))};break;case i.BeforeChangeShapeText:a.args={shape:t.shape&&this._nativeItemToDiagramItem(t.shape)};break;case i.ChangeShapeText:a.args={shape:t.shape&&this._nativeItemToDiagramItem(t.shape),text:t.text};break;case i.BeforeChangeConnectorText:a.args={connector:t.connector&&this._nativeItemToDiagramItem(t.connector),index:t.index};break;case i.ChangeConnectorText:a.args={connector:t.connector&&this._nativeItemToDiagramItem(t.connector),index:t.index,text:t.text};break;case i.ResizeShape:a.args={shape:t.shape&&this._nativeItemToDiagramItem(t.shape),newSize:t.size&&{width:t.size.width,height:t.size.height},oldSize:t.oldSize&&{width:t.oldSize.width,height:t.oldSize.height}};break;case i.MoveShape:a.args={shape:t.shape&&this._nativeItemToDiagramItem(t.shape),newPosition:t.position&&{x:t.position.x,y:t.position.y},oldPosition:t.oldPosition&&{x:t.oldPosition.x,y:t.oldPosition.y}}}return a},r._nativeItemToDiagramItem=function(e){var t=e instanceof(0,f.getDiagram)().NativeShape?this._nativeShapeToDiagramShape.bind(this):this._nativeConnectorToDiagramConnector.bind(this);return(0,u.extend)({id:e.id,key:e.key,dataItem:void 0},t(e))},r._nativeShapeToDiagramShape=function(e){return{dataItem:this._nodesOption&&this._nodesOption.findItem(e.key),itemType:"shape",text:e.text,type:e.type,position:{x:e.position.x,y:e.position.y},size:{width:e.size.width,height:e.size.height},attachedConnectorIds:e.attachedConnectorIds,containerId:e.containerId,containerChildItemIds:e.containerChildItemIds,containerExpanded:e.containerExpanded}},r._nativeConnectorToDiagramConnector=function(e){return{dataItem:this._edgesOption&&this._edgesOption.findItem(e.key),itemType:"connector",texts:e.texts,fromKey:e.fromKey,toKey:e.toKey,fromId:e.fromId,fromPointIndex:e.fromPointIndex,toId:e.toId,toPointIndex:e.toPointIndex,points:e.points.map((function(e){return{x:e.x,y:e.y}}))}},r.getItemByKey=function(e){var t=this._diagramInstance&&this._diagramInstance.getNativeItemByDataKey(e);return t&&this._nativeItemToDiagramItem(t)},r.getItemById=function(e){var t=this._diagramInstance&&this._diagramInstance.getNativeItemByKey(e);return t&&this._nativeItemToDiagramItem(t)},r.getItems=function(){var e=this;return this._diagramInstance.getNativeItems().map((function(t){return t&&e._nativeItemToDiagramItem(t)}))},r.getSelectedItems=function(){var e=this;return this._diagramInstance.getNativeSelectedItems().map((function(t){return t&&e._nativeItemToDiagramItem(t)}))},r.setSelectedItems=function(e){return this._diagramInstance.setSelectedItems(e.map((function(e){return e.id})))},r.scrollToItem=function(e){return this._diagramInstance.scrollToItems([e.id])},r._invalidateContextMenuCommands=function(){this._contextMenu&&this._contextMenu.option({commands:this.option("contextMenu.commands")})},r._invalidateMainToolbarCommands=function(){this._mainToolbar&&this._mainToolbar.option({commands:this.option("mainToolbar.commands")})},r._invalidateHistoryToolbarCommands=function(){this._historyToolbar&&this._historyToolbar.option({commands:this.option("historyToolbar.commands")})},r._invalidateViewToolbarCommands=function(){this._viewToolbar&&this._viewToolbar.option({commands:this.option("viewToolbar.commands")})},r._invalidateToolboxGroups=function(){this._toolbox&&this._toolbox.option({toolboxGroups:this._getToolboxGroups()})},r._optionChanged=function(e){if(!this.optionsUpdateBar.isUpdateLocked()){this.optionsUpdateBar.beginUpdate();try{this._optionChangedCore(e)}finally{this.optionsUpdateBar.endUpdate()}}},r._optionChangedCore=function(t){var n=this;switch(t.name){case"readOnly":case"disabled":this._updateReadOnlyState(),this._invalidate();break;case"zoomLevel":"zoomLevel"!==t.fullName&&"zoomLevel.items"!==t.fullName&&"zoomLevel.value"!==t.fullName||this._updateZoomLevelState();break;case"autoZoomMode":this._updateAutoZoomState();break;case"simpleView":this._updateSimpleViewState();break;case"useNativeScrolling":case"contextToolbox":case"propertiesPanel":this._invalidate();break;case"fullScreen":this._updateFullscreenState();break;case"showGrid":this._updateShowGridState();break;case"snapToGrid":this._updateSnapToGridState();break;case"gridSize":"gridSize"!==t.fullName&&"gridSize.items"!==t.fullName&&"gridSize.value"!==t.fullName||this._updateGridSizeState();break;case"viewUnits":this._updateViewUnitsState();break;case"units":this._updateUnitsState();break;case"pageSize":"pageSize"!==t.fullName&&"pageSize.items"!==t.fullName||this._updatePageSizeItemsState(),"pageSize"!==t.fullName&&"pageSize.width"!==t.fullName&&"pageSize.height"!==t.fullName||this._updatePageSizeState();break;case"pageOrientation":this._updatePageOrientationState();break;case"pageColor":this._updatePageColorState();break;case"nodes":0===t.fullName.indexOf("nodes.autoLayout")?this._refreshDataSources():this._refreshNodesDataSource();break;case"edges":this._refreshEdgesDataSource();break;case"customShapes":t.fullName!==t.name?this._updateAllCustomShapes():this._updateCustomShapes(t.value,t.previousValue),this._invalidate();break;case"contextMenu":"contextMenu.commands"===t.fullName?this._invalidateContextMenuCommands():this._invalidate();break;case"toolbox":"toolbox.groups"===t.fullName?this._invalidateToolboxGroups():this._invalidate();break;case"mainToolbar":"mainToolbar.commands"===t.fullName?this._invalidateMainToolbarCommands():this._invalidate();break;case"historyToolbar":"historyToolbar.commands"===t.fullName?this._invalidateHistoryToolbarCommands():this._invalidate();break;case"viewToolbar":"viewToolbar.commands"===t.fullName?this._invalidateViewToolbarCommands():this._invalidate();break;case"onItemClick":this._createItemClickAction();break;case"onItemDblClick":this._createItemDblClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onRequestEditOperation":this._createRequestEditOperationAction();break;case"onRequestLayoutUpdate":this._createRequestLayoutUpdateAction();break;case"onCustomCommand":this._createCustomCommand();break;case"defaultItemProperties":this._updateDefaultItemProperties();break;case"editing":this._updateEditingSettings();break;case"export":this._toolbars.forEach((function(e){e.option("export",n.option("export"))})),this._contextMenu&&this._contextMenu.option("export",this.option("export"));break;case"hasChanges":break;default:e.prototype._optionChanged.call(this,t)}},i}(r.default);(0,l.default)("dxDiagram",X);var Q=X;t.default=Q,e.exports=t.default,e.exports.default=t.default},66156:function(e,t,n){t.default=void 0;var i=a(n(38148)),o=a(n(72321));function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),i.prototype._getCommands=function(){return o.default.getMainToolbarCommands(this.option("commands"),this.option("excludeCommands"))},i}(i.default);t.default=s,e.exports=t.default,e.exports.default=t.default},20261:function(e,t,n){t.default=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(44899);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s={getContextMenuItemTemplate:function(e,t,n,i){var r=(0,o.default)(i);r.empty();var s=void 0!==t.rootCommand?t.rootCommand:-1;if(t.icon&&!t.checked){var l=(0,a.getImageContainer)(t.icon);r.append(l)}else if(e._menuHasCheckedItems&&!0===e._menuHasCheckedItems[s]){var u=(0,a.getImageContainer)("check");u.css("visibility",t.checked?"visible":"hidden"),r.append(u)}r.append('<span class="dx-menu-item-text">'+t.text+"</span>"),Array.isArray(t.items)&&t.items.length>0&&r.append('<span class="dx-menu-item-popout-container"><div class="dx-menu-item-popout"></div></span>')},getContextMenuCssClass:function(){return"dx-diagram-contextmenu"},onContextMenuItemClick:function(e,t,n){if(void 0===t.command&&void 0===t.name||Array.isArray(t.items)&&t.items.length){if(void 0!==t.rootCommand&&void 0!==t.value){var i=s.getItemCommandParameter(e,t,t.value);n.call(this,t.rootCommand,void 0,i)}}else{var o=s.getItemCommandParameter(e,t);n.call(this,t.command,t.name,o)}},getItemValue:function(e){return"object"===r(e.value)?JSON.stringify(e.value):e.value},getItemOptionText:function(e,t){if(e){t=t.slice();var n=this._getParentItemOptionText(t);e._originalItemsInfo&&e._originalItemsInfo[n]&&(t[t.length-1]+=e._originalItemsInfo[n].indexPathCorrection)}return this._getItemOptionTextCore(t)},_getParentItemOptionText:function(e){var t=e.slice(0,e.length-1);return this._getItemOptionTextCore(t)},_getItemOptionTextCore:function(e){return e.reduce((function(e,t){return e+"items[".concat(t,"].")}),"")},getItemCommandParameter:function(e,t,n){return t.getParameter?t.getParameter(e):n},updateContextMenuItems:function(e,t,n,i){var o=this;e._originalItemsInfo||(e._originalItemsInfo={}),e._originalItemsInfo[t]||(e._originalItemsInfo[t]={items:e.option(t+"items")||[]}),i=i.map((function(t){return{value:o.getItemValue(t),text:t.text,checked:t.checked,widget:e,rootCommand:n}}));var a=e._originalItemsInfo[t].items;e.option(t+"items",i.concat(a)),e._originalItemsInfo[t]&&a.length&&(e._originalItemsInfo[t].indexPathCorrection=i.length)},updateContextMenuItemVisible:function(e,t,n){e.option(t+"visible",n)},updateContextMenuItemValue:function(e,t,n,i){var o=e.option(t+"items");"boolean"!=typeof i||o&&o.length?void 0!==i&&(this._setContextMenuHasCheckedItems(e,n),Array.isArray(o)&&o.forEach((function(e,t){e.checked=e.value===i}))):(this._setContextMenuHasCheckedItems(e,-1),e.option(t+"checked",i))},_setContextMenuHasCheckedItems:function(e,t){e._menuHasCheckedItems||(e._menuHasCheckedItems={}),e._menuHasCheckedItems[t]=!0}},l=s;t.default=l,e.exports=t.default,e.exports.default=t.default},47596:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=l(n(14390)),a=l(n(55994)),r=n(39611),s=l(n(93786));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=(0,r.addNamespace)(s.default.up,"dxDiagramPanel"),c=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var r=o.prototype;return r._init=function(){e.prototype._init.call(this),this._createOnPointerUpAction()},r._render=function(){e.prototype._render.call(this),this._attachPointerUpEvent()},r._getPointerUpElements=function(){return[this.$element()]},r._attachPointerUpEvent=function(){var e=this;this._getPointerUpElements().forEach((function(t){a.default.off(t,d),a.default.on(t,d,(function(t){(0,i.default)(t.target).closest(".dx-textbox").length||e._onPointerUpAction()}))}))},r._createOnPointerUpAction=function(){this._onPointerUpAction=this._createActionByOption("onPointerUp")},r._optionChanged=function(t){"onPointerUp"===t.name?this._createOnPointerUpAction():e.prototype._optionChanged.call(this,t)},o}(o.default);t.default=c,e.exports=t.default,e.exports.default=t.default},64863:function(e,t,n){t.default=void 0;var i=n(58664),o=d(n(68374)),a=n(13306),r=d(n(4741)),s=d(n(21807)),l=d(n(99967)),u=d(n(72321));function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var d=l.prototype;return d._init=function(){e.prototype._init.call(this),this._commandTabs=u.default.getPropertyPanelCommandTabs(this.option("propertyTabs")),this._createOnCreateToolbar(),this._createOnSelectedGroupChanged()},d._initMarkup=function(){this._toolbars=[],this._selectedToolbar=void 0,e.prototype._initMarkup.call(this)},d._getPopupClass=function(){var e="dx-diagram-properties-popup";return this._hasTabPanel()||(e+=" dx-diagram-properties-popup-notabs"),e},d._getPopupWidth=function(){return this.isMobileView()?"100%":420},d._getPopupHeight=function(){return 340},d._getPopupPosition=function(){var e=this.option("offsetParent");return this.isMobileView()?{my:"left bottom",at:"left bottom",of:e}:{my:"right bottom",at:"right bottom",of:e,offset:"-"+this.option("offsetX")+" -"+this.option("offsetY")}},d._getPopupAnimation=function(){var t=this.option("offsetParent");return this.isMobileView()?{hide:this._getPopupSlideAnimationObject({direction:"bottom",from:{position:{my:"left bottom",at:"left bottom",of:t}},to:{position:{my:"left top",at:"left bottom",of:t}}}),show:this._getPopupSlideAnimationObject({direction:"top",from:{position:{my:"left top",at:"left bottom",of:t}},to:{position:{my:"left bottom",at:"left bottom",of:t}}})}:e.prototype._getPopupAnimation.call(this)},d._getPopupOptions=function(){return(0,a.extend)(e.prototype._getPopupOptions.call(this),{showTitle:this.isMobileView(),showCloseButton:this.isMobileView()})},d._renderPopupContent=function(e){if(this._commandTabs.length){var t=(0,o.default)("<div>").addClass("dx-diagram-properties-panel").appendTo(e);this._hasTabPanel()?this._renderTabPanel(t):this._renderTabContent(t,this._commandTabs[0],0,!0)}},d._hasTabPanel=function(){return this._commandTabs.length>1},d._renderTabPanel=function(e){var t=this,n=(0,o.default)("<div>").appendTo(e);this._tabPanel=this._createComponent(n,s.default,{focusStateEnabled:!1,dataSource:this._commandTabs,itemTemplate:function(e,n,i){t._renderTabContent(i,e,n)},onSelectionChanged:function(e){t._onSelectedGroupChangedAction(),t._onPointerUpAction()},onContentReady:function(e){t._popup.option("height",(0,i.getHeight)(e.component.$element())+t._getVerticalPaddingsAndBorders()),t._firstScrollView&&(t._scrollViewHeight=(0,i.getOuterHeight)(t._firstScrollView.$element()),t._firstScrollView.option("height",t._scrollViewHeight))}})},d._renderTabContent=function(e,t,n,a){var s=(0,o.default)("<div>").appendTo(e),l=this._createComponent(s,r.default,{height:this._scrollViewHeight});this._renderTabInnerContent(l.content(),t,n),a?this._popup.option("height",(0,i.getHeight)(l.$element())+this._getVerticalPaddingsAndBorders()):this._firstScrollView=this._firstScrollView||l},d._renderTabInnerContent=function(e,t,n){var i=this;t.groups?t.groups.forEach((function(t,o){i._renderTabGroupContent(e,n,t.title,t.commands)})):t.commands&&this._renderTabGroupContent(e,n,void 0,t.commands)},d._renderTabGroupContent=function(e,t,n,i){n&&(0,o.default)("<div>").addClass("dx-diagram-properties-panel-group-title").appendTo(e).text(n);var a={$parent:(0,o.default)("<div>").addClass("dx-diagram-properties-panel-group-toolbar").appendTo(e),commands:i};this._onCreateToolbarAction(a),this._toolbars[t]||(this._toolbars[t]=[]),this._toolbars[t].push(a.toolbar),this._selectedToolbar=a.toolbar},d.getActiveToolbars=function(){var e=this._tabPanel?this._tabPanel.option("selectedIndex"):0;return this._toolbars[e]},d._createOnCreateToolbar=function(){this._onCreateToolbarAction=this._createActionByOption("onCreateToolbar")},d._createOnSelectedGroupChanged=function(){this._onSelectedGroupChangedAction=this._createActionByOption("onSelectedGroupChanged")},d._optionChanged=function(t){switch(t.name){case"onCreateToolbar":this._createOnCreateToolbar();break;case"onSelectedGroupChanged":this._createOnSelectedGroupChanged();break;case"propertyTabs":this._invalidate();break;default:e.prototype._optionChanged.call(this,t)}},l}(l.default);t.default=h,e.exports=t.default,e.exports.default=t.default},95463:function(e,t,n){t.default=void 0;var i=a(n(38148)),o=a(n(72321));function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),i.prototype._getCommands=function(){return o.default.getPropertiesToolbarCommands()},i}(i.default);t.default=s,e.exports=t.default,e.exports.default=t.default},66737:function(e,t,n){t.default=void 0;var i=n(58664),o=u(n(68374)),a=u(n(14390)),r=u(n(4741)),s=n(13218),l=n(348);function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n);var u=a.prototype;return u._init=function(){e.prototype._init.call(this);var t=(0,l.getDiagram)().EventDispatcher;this.onScroll=new t,this._createOnCreateDiagramAction()},u._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this);var n=(0,o.default)("<div>").appendTo(this.$element()),i={direction:"both",bounceEnabled:!1,onScroll:function(e){var n=e.scrollOffset;t._raiseOnScroll(n.left,n.top)}},a=this.option("useNativeScrolling");void 0!==a&&(i.useNative=a),this._scrollView=this._createComponent(n,r.default,i),this._onCreateDiagramAction({$parent:(0,o.default)(this._scrollView.content()),scrollView:this})},u.setScroll=function(e,t){this._scrollView.scrollTo({left:e,top:t}),this._raiseOnScrollWithoutPoint()},u.offsetScroll=function(e,t){this._scrollView.scrollBy({left:e,top:t}),this._raiseOnScrollWithoutPoint()},u.getSize=function(){var e=(0,l.getDiagram)().Size,t=this._scrollView.$element();return new e(Math.floor((0,i.getWidth)(t)),Math.floor((0,i.getHeight)(t)))},u.getScrollContainer=function(){return this._scrollView.$element()[0]},u.getScrollBarWidth=function(){return this.option("useNativeScrolling")?(0,s.calculateScrollbarWidth)():0},u.detachEvents=function(){},u._raiseOnScroll=function(e,t){var n=(0,l.getDiagram)().Point;this.onScroll.raise("notifyScrollChanged",(function(){return new n(e,t)}))},u._raiseOnScrollWithoutPoint=function(){var e=this,t=(0,l.getDiagram)().Point;this.onScroll.raise("notifyScrollChanged",(function(){return new t(e._scrollView.scrollLeft(),e._scrollView.scrollTop())}))},u._createOnCreateDiagramAction=function(){this._onCreateDiagramAction=this._createActionByOption("onCreateDiagram")},u._optionChanged=function(t){switch(t.name){case"onCreateDiagram":this._createOnCreateDiagramAction();break;case"useNativeScrolling":break;default:e.prototype._optionChanged.call(this,t)}},a}(a.default);t.default=c,e.exports=t.default,e.exports.default=t.default},38148:function(e,t,n){t.default=void 0;var i=n(58664),o=f(n(68374)),a=f(n(71042)),r=f(n(10042)),s=f(n(50984)),l=n(13306),u=n(58201),d=f(n(47596)),c=f(n(20261)),h=n(348);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,g(e,t)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n(78665),n(4278),n(18859);var m="dx-diagram-mobile-toolbar-color-box-opened",_=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var n=t.prototype;return n._init=function(){this._commands=[],this._itemHelpers={},this._commandContextMenus={},this._contextMenuList=[],this._valueConverters={},this.bar=new v(this),this._createOnInternalCommand(),this._createOnCustomCommand(),this._createOnSubMenuVisibilityChangingAction(),e.prototype._init.call(this)},n._initMarkup=function(){e.prototype._initMarkup.call(this);var t=!(0,u.hasWindow)();this.option("skipAdjustSize")||t||(0,i.setWidth)(this.$element(),""),this._commands=this._getCommands(),this._itemHelpers={},this._commandContextMenus={},this._contextMenuList=[];var n=this._createMainElement();if(this._renderToolbar(n),!this.option("skipAdjustSize")&&!t){var o=this.$element().find(".dx-toolbar-before");(0,i.setWidth)(this.$element(),(0,i.getWidth)(o))}},n._createMainElement=function(){return(0,o.default)("<div>").addClass("dx-diagram-toolbar").appendTo(this._$element)},n._getCommands=function(){return this.option("commands")||[]},n._renderToolbar=function(e){var t=this._commands.filter((function(e){return-1===["after","center"].indexOf(e.location)})),n=this._commands.filter((function(e){return"center"===e.location})),i=this._commands.filter((function(e){return"after"===e.location})),o=[].concat(this._prepareToolbarItems(t,"before",this._executeCommand)).concat(this._prepareToolbarItems(n,"center",this._executeCommand)).concat(this._prepareToolbarItems(i,"after",this._executeCommand));this._toolbarInstance=this._createComponent(e,a.default,{dataSource:o})},n._prepareToolbarItems=function(e,t,n){var i=this;return e.map((function(e){return(0,l.extend)(!0,{location:t,locateInMenu:i.option("locateInMenu")},i._createItem(e,t,n),i._createItemOptions(e),i._createItemActionOptions(e,n))}))},n._createItem=function(e,t,n){var i=this;return(e.getCommandValue||e.getEditorValue||e.getEditorDisplayValue)&&(this._valueConverters[e.command]={getCommandValue:e.getCommandValue,getEditorValue:e.getEditorValue,getEditorDisplayValue:e.getEditorDisplayValue}),"separator"===e.widget?{template:function(e,t,n){(0,o.default)(n).addClass("dx-diagram-toolbar-separator")},menuItemTemplate:function(e,t,n){(0,o.default)(n).addClass("dx-diagram-toolbar-menu-separator")}}:{widget:e.widget||"dxButton",cssClass:e.cssClass,options:{stylingMode:this.option("buttonStylingMode"),type:this.option("buttonType"),text:e.text,hint:e.hint,icon:e.icon||e.iconUnchecked||e.iconChecked,iconChecked:e.iconChecked,iconUnchecked:e.iconUnchecked,onInitialized:function(t){return i._onItemInitialized(t.component,e)},onContentReady:function(t){return i._onItemContentReady(t.component,e,n)}}}},n._createItemOptions=function(e){var t=e.widget,n=e.command,i=e.items,o=e.valueExpr,a=e.displayExpr,r=e.showText,s=e.hint,l=e.icon;return"dxSelectBox"===t?this._createSelectBoxItemOptions(n,s,i,o,a):"dxTextBox"===t?this._createTextBoxItemOptions(n,s):"dxColorBox"===t?this._createColorBoxItemOptions(n,s,l):t&&"dxButton"!==t?void 0:{showText:r||"inMenu"}},n._createSelectBoxItemOptions=function(e,t,n,i,a){var r=this._createTextEditorItemOptions(t);return r=(0,l.extend)(!0,r,{options:{dataSource:n,displayExpr:a||"text",valueExpr:i||"value"}}),n&&n.every((function(e){return void 0!==e.icon}))&&(r=(0,l.extend)(!0,r,{options:{fieldTemplate:function(e,t){(0,o.default)("<i>").addClass(e&&e.icon||"dx-diagram-i-selectbox-null-icon dx-diagram-i").appendTo(t),(0,o.default)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(t)},itemTemplate:function(e,t,n){return(0,o.default)(n).attr("title",e.hint),'<i class="'.concat(e.icon,'"></i>')}}})),r},n._createTextBoxItemOptions=function(e,t){var n=this,i=this._createTextEditorItemOptions(t);return(0,l.extend)(!0,i,{options:{readOnly:!0,focusStateEnabled:!1,hoverStateEnabled:!1,buttons:[{name:"dropDown",location:"after",options:{icon:"spindown",disabled:!1,stylingMode:"text",onClick:function(t){var i=n._commandContextMenus[e];i&&n._toggleContextMenu(i)}}}]}})},n._createColorBoxItemOptions=function(e,t,n){var i=this,a=this._createTextEditorItemOptions(t);return n&&(a=(0,l.extend)(!0,a,{options:{openOnFieldClick:!0,fieldTemplate:function(e,t){(0,o.default)("<i>").addClass(n).css("borderBottomColor",e).appendTo(t),(0,o.default)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(t)}}})),(0,l.extend)(!0,a,{options:{onOpened:function(){i.option("isMobileView")&&(0,o.default)("body").addClass(m)},onClosed:function(){(0,o.default)("body").removeClass(m)}}})},n._createTextEditorItemOptions=function(e){return{options:{stylingMode:this.option("editorStylingMode"),hint:e}}},n._createItemActionOptions=function(e,t){var n=this;switch(e.widget){case"dxSelectBox":case"dxColorBox":case"dxCheckBox":return{options:{onValueChanged:function(i){var o=c.default.getItemCommandParameter(n,e,i.component.option("value"));t.call(n,e.command,e.name,o)}}};case"dxTextBox":return{};default:return{options:{onClick:function(i){if(e.items){var o=i.component._contextMenu;o&&n._toggleContextMenu(o)}else{var a=c.default.getItemCommandParameter(n,e);t.call(n,e.command,e.name,a)}}}}}},n._toggleContextMenu=function(e){this._contextMenuList.forEach((function(t){e!==t&&t.hide()})),e.toggle()},n._onItemInitialized=function(e,t){this._addItemHelper(t.command,new y(e))},n._onItemContentReady=function(e,t,n){var i=this;if(("dxButton"===e.NAME||"dxTextBox"===e.NAME)&&t.items){var a=this._isTouchMode(),s=(0,o.default)("<div>").appendTo(this.$element());e._contextMenu=this._createComponent(s,r.default,{items:t.items,target:e.$element(),cssClass:c.default.getContextMenuCssClass(),showEvent:"",closeOnOutsideClick:function(t){return!a&&0===(0,o.default)(t.target).closest(e._contextMenu._dropDownButtonElement).length},focusStateEnabled:!1,position:{at:"left bottom"},itemTemplate:function(e,t,n){c.default.getContextMenuItemTemplate(this,e,t,n)},onItemClick:function(e){var t=e.component,o=e.itemData;c.default.onContextMenuItemClick(i,o,n.bind(i)),o.items&&o.items.length||t.hide()},onShowing:function(e){i._showingSubMenu||(i._showingSubMenu=e.component,i._onSubMenuVisibilityChangingAction({visible:!0,component:i}),e.component.option("items",e.component.option("items")),delete i._showingSubMenu)},onInitialized:function(n){var o=n.component;return i._onContextMenuInitialized(o,t,e)},onDisposing:function(e){var n=e.component;return i._onContextMenuDisposing(n,t)}}),a||(e._contextMenu._dropDownButtonElement=e.$element(),"dxTextBox"===e.NAME&&(e._contextMenu._dropDownButtonElement=e.getButton("dropDown").element()))}},n._isTouchMode=function(){if((0,h.getDiagram)().Browser.TouchUI)return!0;if(!(0,u.hasWindow)())return!1;var e=(0,u.getWindow)();return e.navigator&&e.navigator.maxTouchPoints>0},n._onContextMenuInitialized=function(e,t,n){this._contextMenuList.push(e),t.command&&(this._commandContextMenus[t.command]=e),this._addContextMenuHelper(t,e,[],n)},n._addItemHelper=function(e,t){if(void 0!==e){if(this._itemHelpers[e])throw new Error("Toolbar cannot contain duplicated commands.");this._itemHelpers[e]=t}},n._addContextMenuHelper=function(e,t,n,i){var o=this;e.items&&e.items.forEach((function(e,a){var r=n.concat(a);o._addItemHelper(e.command,new x(t,r,e.command,i)),o._addContextMenuHelper(e,t,r,i)}))},n._onContextMenuDisposing=function(e,t){this._contextMenuList.splice(this._contextMenuList.indexOf(e),1),delete this._commandContextMenus[t.command]},n._executeCommand=function(e,t,n){if(!this._updateLocked){if("number"==typeof e){var i=this._valueConverters[e];i&&i.getCommandValue&&(n=i.getCommandValue(n)),this.bar.raiseBarCommandExecuted(e,n)}else"string"==typeof e&&this._onInternalCommandAction({command:e});void 0!==t&&this._onCustomCommandAction({name:t})}},n._createOnInternalCommand=function(){this._onInternalCommandAction=this._createActionByOption("onInternalCommand")},n._createOnCustomCommand=function(){this._onCustomCommandAction=this._createActionByOption("onCustomCommand")},n._setItemEnabled=function(e,t){if(e in this._itemHelpers){var n=this._itemHelpers[e];n.canUpdate(this._showingSubMenu)&&n.setEnabled(t)}},n._setEnabled=function(e){this._toolbarInstance.option("disabled",!e),this._contextMenuList.forEach((function(t){t.option("disabled",!e)}))},n._setItemValue=function(e,t){try{if(this._updateLocked=!0,e in this._itemHelpers){var n=this._itemHelpers[e];if(n.canUpdate(this._showingSubMenu)){var i,o=this._valueConverters[e];o&&o.getEditorValue&&(t=o.getEditorValue(t)),o&&o.getEditorDisplayValue&&(i=o.getEditorDisplayValue(t));var a=this._commandContextMenus[e];n.setValue(t,i,a,a&&e)}}}finally{this._updateLocked=!1}},n._setItemSubItems=function(e,t){if(this._updateLocked=!0,e in this._itemHelpers){var n=this._itemHelpers[e];if(n.canUpdate(this._showingSubMenu)){var i=this._commandContextMenus[e];n.setItems(t,i,i&&e)}}this._updateLocked=!1},n._createOnSubMenuVisibilityChangingAction=function(){this._onSubMenuVisibilityChangingAction=this._createActionByOption("onSubMenuVisibilityChanging")},n._optionChanged=function(t){switch(t.name){case"isMobileView":(0,o.default)("body").removeClass(m),this._invalidate();break;case"onSubMenuVisibilityChanging":this._createOnSubMenuVisibilityChangingAction();break;case"onInternalCommand":this._createOnInternalCommand();break;case"onCustomCommand":this._createOnCustomCommand();break;case"container":case"commands":this._invalidate();break;case"export":break;default:e.prototype._optionChanged.call(this,t)}},n._getDefaultOptions=function(){return(0,l.extend)(e.prototype._getDefaultOptions.call(this),{isMobileView:!1,export:{fileName:"Diagram",proxyUrl:void 0},locateInMenu:"auto",buttonStylingMode:"text",buttonType:"normal",editorStylingMode:"filled",skipAdjustSize:!1})},n.setCommandChecked=function(e,t){this._setItemValue(e,t)},n.setCommandEnabled=function(e,t){this._setItemEnabled(e,t)},t}(d.default),v=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var n=t.prototype;return n.getCommandKeys=function(){return this._getKeys(this._owner._commands)},n.setItemValue=function(e,t){this._owner._setItemValue(e,t)},n.setItemEnabled=function(e,t){this._owner._setItemEnabled(e,t)},n.setEnabled=function(e){this._owner._setEnabled(e)},n.setItemSubItems=function(e,t){this._owner._setItemSubItems(e,t)},t}(s.default),y=function(){function e(e){this._widget=e}var t=e.prototype;return t.canUpdate=function(e){return void 0===e},t.setEnabled=function(e){this._widget.option("disabled",!e)},t.setValue=function(e,t,n,i){"value"in this._widget.option()?this._updateEditorValue(e,t):void 0!==e&&this._updateButtonValue(e),n&&this._updateContextMenuItemValue(n,"",i,e)},t.setItems=function(e,t,n){t?this._updateContextMenuItems(t,"",n,e):this._updateEditorItems(e)},t._updateContextMenuItems=function(e,t,n,i){c.default.updateContextMenuItems(e,t,n,i)},t._updateEditorItems=function(e){"items"in this._widget.option()&&this._widget.option("items",e.map((function(e){return{value:c.default.getItemValue(e),text:e.text}})))},t._updateEditorValue=function(e,t){this._widget.option("value",e),!this._widget.option("selectedItem")&&t&&this._widget.option("value",t)},t._updateButtonValue=function(e){this._widget.option("iconChecked")&&this._widget.option("iconUnchecked")?this._widget.option("icon",e?this._widget.option("iconChecked"):this._widget.option("iconUnchecked")):this._widget.$element().toggleClass("dx-format-active",e)},t._updateContextMenuItemValue=function(e,t,n,i){c.default.updateContextMenuItemValue(e,t,n,i)},e}(),x=function(e){function t(t,n,i,o){var a;return(a=e.call(this,t)||this)._indexPath=n,a._rootCommandKey=i,a._rootWidget=o,a}p(t,e);var n=t.prototype;return n.canUpdate=function(t){return e.prototype.canUpdate.call(this,t)||t===this._widget},n.setEnabled=function(e){this._widget.option(this._getItemOptionText()+"disabled",!e);var t=this._hasEnabledCommandItems(this._widget.option("items"));this._rootWidget.option("disabled",!t)},n._hasEnabledCommandItems=function(e){var t=this;return!!e&&e.some((function(e){return void 0!==e.command&&!e.disabled||t._hasEnabledCommandItems(e.items)}))},n.setValue=function(e){this._updateContextMenuItemValue(this._widget,this._getItemOptionText(),this._rootCommandKey,e)},n.setItems=function(e){this._updateContextMenuItems(this._widget,this._getItemOptionText(),this._rootCommandKey,e)},n._getItemOptionText=function(){return c.default.getItemOptionText(this._widget,this._indexPath)},t}(y),b=_;t.default=b,e.exports=t.default,e.exports.default=t.default},63842:function(e,t,n){t.default=void 0;var i=n(58664),o=g(n(68374)),a=n(13306),r=n(58201),s=n(62754),l=g(n(28109)),u=g(n(29837)),d=g(n(76219)),c=g(n(4741)),h=g(n(94920)),f=n(348),p=g(n(99967));function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _="dx-skip-gesture-event",v=function(e){var t,n;function p(){return e.apply(this,arguments)||this}n=e,(t=p).prototype=Object.create(n.prototype),t.prototype.constructor=t,m(t,n);var g=p.prototype;return g._init=function(){e.prototype._init.call(this),this._toolboxes=[],this._filterText="",this._createOnShapeCategoryRenderedAction(),this._createOnFilterChangedAction()},g._getPopupClass=function(){return"dx-diagram-toolbox-popup"},g._getPopupHeight=function(){return this.isMobileView()?"100%":e.prototype._getPopupHeight.call(this)},g._getPopupMaxHeight=function(){return this.isMobileView()?"100%":e.prototype._getPopupMaxHeight.call(this)},g._getPopupMinHeight=function(){return 130},g._getPopupPosition=function(){var e={my:"left top",at:"left top",of:this.option("offsetParent")};return this.isMobileView()?e:(0,a.extend)(e,{offset:this.option("offsetX")+" "+this.option("offsetY")})},g._getPopupAnimation=function(){var t=this.option("offsetParent");return this.isMobileView()?{hide:this._getPopupSlideAnimationObject({direction:"left",from:{position:{my:"left top",at:"left top",of:t}},to:{position:{my:"right top",at:"left top",of:t}}}),show:this._getPopupSlideAnimationObject({direction:"right",from:{position:{my:"right top",at:"left top",of:t}},to:{position:{my:"left top",at:"left top",of:t}}})}:e.prototype._getPopupAnimation.call(this)},g._getPopupOptions=function(){var t=e.prototype._getPopupOptions.call(this);return this.isMobileView()?t:(0,a.extend)(t,{showTitle:!0,toolbarItems:[{widget:"dxButton",location:"center",options:{activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,icon:"diagram-toolbox-drag",stylingMode:"outlined",type:"normal"}}]})},g._renderPopupContent=function(e){var t="100%";if(this.option("showSearch")){var n=(0,o.default)("<div>").addClass("dx-diagram-toolbox-input-container").appendTo(e);this._updateElementWidth(n),this._renderSearchInput(n),(0,r.hasWindow)()&&(t="calc(100% - "+(0,i.getHeight)(this._searchInput.$element())+"px)")}var a=(0,o.default)("<div>").addClass("dx-diagram-toolbox-panel").appendTo(e);(0,i.setHeight)(a,t),this._updateElementWidth(a),this._renderScrollView(a)},g._updateElementWidth=function(e){void 0!==this.option("toolboxWidth")&&e.css("width",this.option("toolboxWidth"))},g.updateMaxHeight=function(){if(!this.isMobileView()){var e=6;if(this._popup){var t=this._getPopupTitle();e+=(0,i.getOuterHeight)(t)}this._accordion&&(e+=(0,i.getOuterHeight)(this._accordion.$element())),this._searchInput&&(e+=(0,i.getOuterHeight)(this._searchInput.$element())),this.option("maxHeight",e)}},g._renderSearchInput=function(e){var t=this,n=(0,o.default)("<div>").addClass("dx-diagram-toolbox-input").appendTo(e);this._searchInput=this._createComponent(n,u.default,{stylingMode:"outlined",placeholder:l.default.format("dxDiagram-uiSearch"),onValueChanged:function(e){t._onInputChanged(e.value)},valueChangeEvent:"keyup",buttons:[{name:"search",location:"after",options:{activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,icon:"search",stylingMode:"outlined",type:"normal",onClick:function(){t._searchInput.focus()}}}]})},g._renderScrollView=function(e){var t=(0,o.default)("<div>").appendTo(e);this._scrollView=this._createComponent(t,c.default);var n=(0,o.default)("<div>").appendTo(this._scrollView.content());this._updateElementWidth(n),this._renderAccordion(n)},g._getAccordionDataSource=function(){for(var e=this,t=[],n=this.option("toolboxGroups"),i=0;i<n.length;i++){var a=n[i].category,r={category:a,title:n[i].title||a,expanded:n[i].expanded,displayMode:n[i].displayMode,shapes:n[i].shapes,onTemplate:function(t,n,i){var a=(0,o.default)(n);e._onShapeCategoryRenderedAction({category:i.category,displayMode:i.displayMode,dataToggle:"shape-toolbox-tooltip",shapes:i.shapes,$element:a}),e._toolboxes.push(a),""!==e._filterText&&e._onFilterChangedAction({text:e._filterText,filteringToolboxes:e._toolboxes.length-1}),e._createTooltips(a.find('[data-toggle="shape-toolbox-tooltip"]'))}};t.push(r)}return t},g._createTooltips=function(e){var t=this;if(!this._isTouchMode()){var n=this.$element();e.each((function(e,i){var a=(0,o.default)(i),r=a.attr("title");if(r){var s=(0,o.default)("<div>").text(r).appendTo(n);t._createComponent(s,h.default,{target:a.get(0),showEvent:"mouseenter",hideEvent:"mouseleave",position:"top",animation:{show:{type:"fade",from:0,to:1,delay:500},hide:{type:"fade",from:1,to:0,delay:100}}})}}))}},g._isTouchMode=function(){if((0,f.getDiagram)().Browser.TouchUI)return!0;if(!(0,r.hasWindow)())return!1;var e=(0,r.getWindow)();return e.navigator&&e.navigator.maxTouchPoints>0},g._renderAccordion=function(e){var t=this,n=this._getAccordionDataSource();this._accordion=this._createComponent(e,d.default,{multiple:!0,animationDuration:0,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,collapsible:!0,displayExpr:"title",dataSource:n,disabled:this.option("disabled"),itemTemplate:function(e,n,i){e.onTemplate(t,i,e)},onSelectionChanged:function(e){t._updateScrollAnimateSubscription(e.component)},onContentReady:function(e){for(var i=0;i<n.length;i++)!1===n[i].expanded?e.component.collapseItem(i):!0===n[i].expanded&&e.component.expandItem(i);t._updateScrollAnimateSubscription(e.component)}})},g._updateScrollAnimateSubscription=function(e){var t=this;e._deferredAnimate=new s.Deferred,e._deferredAnimate.done((function(){t.updateMaxHeight(),t._scrollView.update(),t._updateScrollAnimateSubscription(e)}))},g._raiseToolboxDragStart=function(){this._scrollView.$element().addClass(_)},g._raiseToolboxDragEnd=function(){this._scrollView.$element().removeClass(_)},g._onInputChanged=function(e){var t=this;this._filterText=e,this._onFilterChangedAction({text:this._filterText,filteringToolboxes:this._toolboxes.map((function(e,t){return t}))}),this._toolboxes.forEach((function(e){var n=(0,o.default)(e);t._createTooltips(n.find('[data-toggle="shape-toolbox-tooltip"]'))})),this.updateMaxHeight(),this._scrollView.update()},g._createOnShapeCategoryRenderedAction=function(){this._onShapeCategoryRenderedAction=this._createActionByOption("onShapeCategoryRendered")},g._createOnFilterChangedAction=function(){this._onFilterChangedAction=this._createActionByOption("onFilterChanged")},g._optionChanged=function(t){switch(t.name){case"onShapeCategoryRendered":this._createOnShapeCategoryRenderedAction();break;case"onFilterChanged":this._createOnFilterChangedAction();break;case"showSearch":case"toolboxWidth":this._invalidate();break;case"toolboxGroups":this._accordion.option("dataSource",this._getAccordionDataSource());break;default:e.prototype._optionChanged.call(this,t)}},p}(p.default);t.default=v,e.exports=t.default,e.exports.default=t.default},64225:function(e,t,n){t.default=void 0;var i=a(n(38148)),o=a(n(72321));function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),i.prototype._getCommands=function(){return o.default.getViewToolbarCommands(this.option("commands"),this.option("excludeCommands"))},i}(i.default);t.default=s,e.exports=t.default,e.exports.default=t.default},15029:function(e,t,n){t.custom=t.confirm=t.alert=t.FakeDialogComponent=void 0;var i=n(58664),o=b(n(68374)),a=n(44297),r=b(n(62414)),s=b(n(20530)),l=b(n(80209)),u=n(3532),d=n(62754),c=n(35922),h=n(95479),f=n(13306),p=n(58201),g=b(n(55994)),m=n(77695),_=b(n(28109)),v=b(n(96688)),y=b(n(39114)),x=n(20576);function b(e){return e&&e.__esModule?e:{default:e}}var w=(0,p.getWindow)(),C={text:"OK",onClick:function(){return!0}},S="dx-dialog",k="".concat(S,"-wrapper"),D="".concat(S,"-root"),I="".concat(S,"-content"),T="".concat(S,"-message"),E="".concat(S,"-buttons"),A="".concat(S,"-button"),O="dx-button",P=a.Component.inherit({ctor:function(e,t){this.callBase(t)},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{width:276}}])}});t.FakeDialogComponent=P;var M=function(e){var t,n=new d.Deferred,a=(new P).option();e=(0,f.extend)(a,e);var c=(0,o.default)("<div>").addClass(S).appendTo((0,m.value)()),p="messageHtml"in e;"message"in e&&v.default.log("W1013");var _=String(p?e.messageHtml:e.message),b=(0,o.default)("<div>").addClass(T).html(_),M=[];(0,h.each)(e.buttons||[C],(function(){var e=new r.default(this.onClick,{context:R});M.push({toolbar:"bottom",location:s.default.current().android?"after":"center",widget:"dxButton",options:(0,f.extend)({},this,{onClick:function(){var t=e.execute.apply(e,arguments);B(t)}})})}));var R=new y.default(c,(0,f.extend)({title:null!==(t=e.title)&&void 0!==t?t:"",showTitle:(0,x.ensureDefined)(e.showTitle,!0),dragEnabled:(0,x.ensureDefined)(e.dragEnabled,!0),height:"auto",width:e.width,showCloseButton:e.showCloseButton||!1,ignoreChildEvents:!1,onContentReady:function(e){e.component.$content().addClass(I).append(b)},onShowing:function(e){e.component.bottomToolbar().addClass(E).find(".".concat(O)).addClass(A),(0,u.resetActiveElement)()},onShown:function(e){var t=e.component.bottomToolbar().find(".".concat(O)).first();g.default.trigger(t,"focus")},onHiding:function(){n.reject()},toolbarItems:M,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,l.default)().rtlEnabled,position:{boundaryOffset:{h:10,v:0}}},e.popupOptions));function B(e){n.resolve(e),R.hide().done((function(){R.$element().remove()}))}return R.$wrapper().addClass(k),e.position&&R.option("position",e.position),R.$wrapper().addClass(D),{show:function(){if("android"===s.default.real().platform){var e=(0,i.getHeight)(w)>(0,i.getWidth)(w)?"80%":"60%";R.option({width:e})}return R.show(),n.promise()},hide:B}};t.custom=M,t.alert=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=(0,c.isPlainObject)(e)?e:{title:t,messageHtml:e,showTitle:n,dragEnabled:n};return M(i).show()},t.confirm=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=(0,c.isPlainObject)(e)?e:{title:t,messageHtml:e,showTitle:n,buttons:[{text:_.default.format("Yes"),onClick:function(){return!0}},{text:_.default.format("No"),onClick:function(){return!1}}],dragEnabled:n};return M(i).show()}},42160:function(e,t,n){t.default=void 0;var i=n(58664),o=D(n(68374)),a=D(n(73349)),r=n(58201),s=n(37518),l=D(n(55994)),u=n(68752),d=D(n(99393)),c=n(31648),h=D(n(6866)),f=n(78008),p=n(13306),g=D(n(13046)),m=n(6415),_=n(39611),v=D(n(93786)),y=n(23174),x=D(n(49387)),b=n(35922),w=n(20576),C=n(77695),S=n(10688),k=n(62754);function D(e){return e&&e.__esModule?e:{default:e}}var I,T,E=(0,r.getWindow)(),A="dxDraggable",O=(0,_.addNamespace)(y.start,A),P=(0,_.addNamespace)(y.move,A),M=(0,_.addNamespace)(y.end,A),R=(0,_.addNamespace)(y.enter,A),B=(0,_.addNamespace)(y.leave,A),V=(0,_.addNamespace)(v.default.down,A),F="clone",L=function(e){return{x:e.pageX-(0,o.default)(E).scrollLeft(),y:e.pageY-(0,o.default)(E).scrollTop()}},H=function(){function e(e,t){this._preventScroll=!0,this._component=t,"vertical"===e?(this._scrollValue="scrollTop",this._overFlowAttr="overflowY",this._sizeAttr="height",this._scrollSizeProp="scrollHeight",this._clientSizeProp="clientHeight",this._limitProps={start:"top",end:"bottom"}):(this._scrollValue="scrollLeft",this._overFlowAttr="overflowX",this._sizeAttr="width",this._scrollSizeProp="scrollWidth",this._clientSizeProp="clientWidth",this._limitProps={start:"left",end:"right"})}var t=e.prototype;return t.updateScrollable=function(e,t){var n=this,i=!1;e.some((function(e){var a=(0,o.default)(e),r=a.hasClass("dx-overlay-wrapper"),s=a.hasClass("dx-overlay-content");return!(!r&&!s)||(i=n._trySetScrollable(e,t))})),i||(this._$scrollableAtPointer=null,this._scrollSpeed=0)},t.isScrolling=function(){return!!this._scrollSpeed},t.isScrollable=function(e){var t=this;return("auto"===e.css(t._overFlowAttr)||e.hasClass("dx-scrollable-container"))&&e.prop(t._scrollSizeProp)>("width"===t._sizeAttr?(0,i.getWidth)(e):(0,i.getHeight)(e))},t._trySetScrollable=function(e,t){var n,i=this,a=(0,o.default)(e),r=i._component.option("scrollSensitivity"),s=i.isScrollable(a);return s&&(r>(n=i._calculateDistanceToBorders(a,t))[i._limitProps.start]?i._preventScroll||(i._scrollSpeed=-i._calculateScrollSpeed(n[i._limitProps.start]),i._$scrollableAtPointer=a):r>n[i._limitProps.end]?i._preventScroll||(i._scrollSpeed=i._calculateScrollSpeed(n[i._limitProps.end]),i._$scrollableAtPointer=a):(s=!1,i._preventScroll=!1)),s},t._calculateDistanceToBorders=function(e,t){var n,i=e.get(0);return i?(n=(0,s.getBoundingRect)(i),{left:t.x-n.left,top:t.y-n.top,right:n.right-t.x,bottom:n.bottom-t.y}):{}},t._calculateScrollSpeed=function(e){var t=this._component,n=t.option("scrollSensitivity"),i=t.option("scrollSpeed");return Math.ceil(Math.pow((n-e)/n,2)*i)},t.scrollByStep=function(){var e,t,n,i=this;if(i._$scrollableAtPointer&&i._scrollSpeed){if(i._$scrollableAtPointer.hasClass("dx-scrollable-container")){var o=i._$scrollableAtPointer.closest(".dx-scrollable"),a=o.data("dxScrollable")||o.data("dxScrollView");if(a){var r=a.scrollOffset()[i._limitProps.start]+i._scrollSpeed;a.scrollTo((e={},n=r,(t=i._limitProps.start)in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e))}}else{var s=i._$scrollableAtPointer[i._scrollValue]()+i._scrollSpeed;i._$scrollableAtPointer[i._scrollValue](s)}var l=i._component._dragMoveArgs;l&&i._component._dragMoveHandler(l)}},t.reset=function(){this._$scrollableAtPointer=null,this._scrollSpeed=0,this._preventScroll=!0},t.isOutsideScrollable=function(e,t){if(!e)return!1;var n=(0,s.getBoundingRect)(e.get(0)),i=n[this._limitProps.start],o=n[this._sizeAttr],a=L(t),r="width"===this._sizeAttr?a.x:a.y;return r<i||r>i+o},e}(),N=h.default.inherit({ctor:function(e){this.callBase(),this._strategy=e},_step:function(){var e=this._strategy._horizontalScrollHelper,t=this._strategy._verticalScrollHelper;e&&e.scrollByStep(),t&&t.scrollByStep()}}),z=g.default.inherit({reset:w.noop,dragMove:w.noop,dragEnter:w.noop,dragLeave:w.noop,dragEnd:function(e){return this._getSourceDraggable()._fireRemoveEvent(e),(new k.Deferred).resolve()},_fireRemoveEvent:w.noop,_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{onDragStart:null,onDragMove:null,onDragEnd:null,onDragEnter:null,onDragLeave:null,onDrop:null,immediate:!0,dragDirection:"both",boundary:void 0,boundOffset:0,allowMoveByClick:!1,itemData:null,container:void 0,dragTemplate:void 0,contentTemplate:"content",handle:"",filter:"",clone:!1,autoScroll:!0,scrollSpeed:30,scrollSensitivity:60,group:void 0,data:void 0})},_setOptionsByReference:function(){this.callBase.apply(this,arguments),(0,p.extend)(this._optionsByReference,{component:!0,group:!0,itemData:!0,data:!0})},_init:function(){this.callBase(),this._attachEventHandlers(),this._scrollAnimator=new N(this),this._horizontalScrollHelper=new H("horizontal",this),this._verticalScrollHelper=new H("vertical",this)},_normalizeCursorOffset:function(e){return(0,b.isObject)(e)&&(e={h:e.x,v:e.y}),{left:(e=(0,w.splitPair)(e).map((function(e){return parseFloat(e)})))[0],top:1===e.length?e[0]:e[1]}},_getNormalizedCursorOffset:function(e,t){return(0,b.isFunction)(e)&&(e=e.call(this,t)),this._normalizeCursorOffset(e)},_calculateElementOffset:function(e){var t,n,i=e.event,a=(0,o.default)(e.itemElement),r=(0,o.default)(e.dragElement),s=this._dragElementIsCloned(),l=this.option("cursorOffset"),u={left:0,top:0},d=this._initialLocate=(0,c.locate)(r);return(s||e.initialOffset||l)&&(t=e.initialOffset||a.offset(),l&&(u=this._getNormalizedCursorOffset(l,e),isFinite(u.left)&&(t.left=i.pageX),isFinite(u.top)&&(t.top=i.pageY)),n=r.offset(),t.top-=n.top+(u.top||0)-d.top,t.left-=n.left+(u.left||0)-d.left),t},_initPosition:function(e){var t=(0,o.default)(e.dragElement),n=this._calculateElementOffset(e);n&&this._move(n,t),this._startPosition=(0,c.locate)(t)},_startAnimator:function(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator:function(){this._scrollAnimator.stop()},_addWidgetPrefix:function(e){var t=this.NAME;return(0,f.dasherize)(t)+(e?"-"+e:"")},_getItemsSelector:function(){return this.option("filter")||""},_$content:function(){var e=this.$element(),t=e.children(".dx-template-wrapper");return t.length?t:e},_attachEventHandlers:function(){var e=this;if(!this.option("disabled")){var t=this._$content(),n=this._getItemsSelector(),i=this.option("allowMoveByClick"),o={direction:this.option("dragDirection"),immediate:this.option("immediate"),checkDropTarget:function(t,n){var i=e.option("group"),o=e._getSourceDraggable().option("group"),a=e._getScrollable(t);return!e._verticalScrollHelper.isOutsideScrollable(a,n)&&!e._horizontalScrollHelper.isOutsideScrollable(a,n)&&o&&o===i}};i&&(t=this._getArea(),l.default.on(t,V,o,this._pointerDownHandler.bind(this))),">"===n[0]&&(n=n.slice(1)),l.default.on(t,O,n,o,this._dragStartHandler.bind(this)),l.default.on(t,P,o,this._dragMoveHandler.bind(this)),l.default.on(t,M,o,this._dragEndHandler.bind(this)),l.default.on(t,R,o,this._dragEnterHandler.bind(this)),l.default.on(t,B,o,this._dragLeaveHandler.bind(this))}},_dragElementIsCloned:function(){return this._$dragElement&&this._$dragElement.hasClass(this._addWidgetPrefix(F))},_getDragTemplateArgs:function(e,t){return{container:(0,m.getPublicElement)(t),model:{itemData:this.option("itemData"),itemElement:(0,m.getPublicElement)(e)}}},_createDragElement:function(e){var t=e,n=this.option("clone"),i=this._getContainer(),a=this.option("dragTemplate");return a?(a=this._getTemplate(a),t=(0,o.default)("<div>").appendTo(i),a.render(this._getDragTemplateArgs(e,t))):n&&(t=(0,o.default)("<div>").appendTo(i),e.clone().css({width:e.css("width"),height:e.css("height")}).appendTo(t)),t.toggleClass(this._addWidgetPrefix(F),t.get(0)!==e.get(0)).toggleClass("dx-rtl",this.option("rtlEnabled"))},_resetDragElement:function(){this._dragElementIsCloned()?this._$dragElement.remove():this._toggleDraggingClass(!1),this._$dragElement=null},_resetSourceElement:function(){this._toggleDragSourceClass(!1),this._$sourceElement=null},_detachEventHandlers:function(){l.default.off(this._$content(),"."+A),l.default.off(this._getArea(),"."+A)},_move:function(e,t){(0,c.move)(t||this._$dragElement,e)},_getDraggableElement:function(e){var t=this._getSourceElement();if(t)return t;if(this.option("allowMoveByClick"))return this.$element();var n=(0,o.default)(e&&e.target),i=this._getItemsSelector();if(">"===i[0]){var a=this._$content().find(i);a.is(n)||(n=n.closest(a))}return n},_getSourceElement:function(){return this._getSourceDraggable()._$sourceElement},_pointerDownHandler:function(e){if(!(0,_.needSkipEvent)(e)){var t={},n=this.$element(),o=this.option("dragDirection");"horizontal"!==o&&"both"!==o||(t.left=e.pageX-n.offset().left+(0,c.locate)(n).left-(0,i.getWidth)(n)/2),"vertical"!==o&&"both"!==o||(t.top=e.pageY-n.offset().top+(0,c.locate)(n).top-(0,i.getHeight)(n)/2),this._move(t,n),this._getAction("onDragMove")(this._getEventArgs(e))}},_isValidElement:function(e,t){var n=this.option("handle"),i=(0,o.default)(e.originalEvent&&e.originalEvent.target);return!(n&&!i.closest(n).length||!t.length||t.is(".dx-state-disabled, .dx-state-disabled *"))},_dragStartHandler:function(e){var t=this._getDraggableElement(e);if(this._isValidElement(e,t)){if(!this._$sourceElement){var n=this._getDragStartArgs(e,t);if(this._getAction("onDragStart")(n),n.cancel)e.cancel=!0;else{this.option("itemData",n.itemData),this._setSourceDraggable(),this._$sourceElement=t;var o=t.offset(),a=this._$dragElement=this._createDragElement(t);this._toggleDraggingClass(!0),this._toggleDragSourceClass(!0),this._setGestureCoverCursor(a.children());var r="fixed"===a.css("position");this._initPosition((0,p.extend)({},n,{dragElement:a.get(0),initialOffset:r&&o}));var s=this._getArea(),l=this._getAreaOffset(s),u=this._getBoundOffset(),d=(0,i.getOuterWidth)(s),c=(0,i.getOuterHeight)(s),h=(0,i.getWidth)(a),f=(0,i.getHeight)(a),g=a.offset().left-l.left,m=a.offset().top-l.top;s.length&&(e.maxLeftOffset=g-u.left,e.maxRightOffset=d-g-h-u.right,e.maxTopOffset=m-u.top,e.maxBottomOffset=c-m-f-u.bottom),this.option("autoScroll")&&this._startAnimator()}}}else e.cancel=!0},_getAreaOffset:function(e){return e&&x.default.offset(e)||{left:0,top:0}},_toggleDraggingClass:function(e){this._$dragElement&&this._$dragElement.toggleClass(this._addWidgetPrefix("dragging"),e)},_toggleDragSourceClass:function(e,t){var n=t||this._$sourceElement;n&&n.toggleClass(this._addWidgetPrefix("source"),e)},_setGestureCoverCursor:function(e){(0,o.default)(".".concat("dx-gesture-cover")).css("cursor",e.css("cursor"))},_getBoundOffset:function(){var e=this.option("boundOffset");return(0,b.isFunction)(e)&&(e=e.call(this)),(0,u.quadToObject)(e)},_getArea:function(){var e=this.option("boundary");return(0,b.isFunction)(e)&&(e=e.call(this)),(0,o.default)(e)},_getContainer:function(){var e=this.option("container");return void 0===e&&(e=(0,C.value)()),(0,o.default)(e)},_dragMoveHandler:function(e,t){if(this._dragMoveArgs=e,this._$dragElement){var n=e.offset,i=this._startPosition;this._move({left:i.left+n.x,top:i.top+n.y}),t||this._updateScrollable(e);var o=this._getEventArgs(e);this._getAction("onDragMove")(o),!0!==o.cancel&&this._getTargetDraggable().dragMove(e,t)}else e.cancel=!0},_updateScrollable:function(e){var t=this;if(t.option("autoScroll")){var n=L(e),i=a.default.elementsFromPoint(n.x,n.y);t._verticalScrollHelper.updateScrollable(i,n),t._horizontalScrollHelper.updateScrollable(i,n)}},_getScrollable:function(e){var t,n=this;return e.parents().toArray().some((function(e){var i=(0,o.default)(e);if(n._horizontalScrollHelper.isScrollable(i)||n._verticalScrollHelper.isScrollable(i))return t=i,!0})),t},_defaultActionArgs:function(){var e=this.callBase.apply(this,arguments),t=this.option("component");return t&&(e.component=t,e.element=t.element()),e},_getEventArgs:function(e){var t=this._getSourceDraggable(),n=this._getTargetDraggable();return{event:e,itemData:t.option("itemData"),itemElement:(0,m.getPublicElement)(t._$sourceElement),fromComponent:t.option("component")||t,toComponent:n.option("component")||n,fromData:t.option("data"),toData:n.option("data")}},_getDragStartArgs:function(e,t){var n=this._getEventArgs(e);return{event:n.event,itemData:n.itemData,itemElement:t,fromData:n.fromData}},_revertItemToInitialPosition:function(){!this._dragElementIsCloned()&&this._move(this._initialLocate,this._$sourceElement)},_dragEndHandler:function(e){var t=this,n=new k.Deferred,i=this._getEventArgs(e),o=this._getEventArgs(e),a=this._getTargetDraggable(),r=!0;try{this._getAction("onDragEnd")(i)}finally{(0,k.when)((0,k.fromPromise)(i.cancel)).done((function(e){if(!e&&(a!==t&&a._getAction("onDrop")(o),!o.cancel))return r=!1,void(0,k.when)((0,k.fromPromise)(a.dragEnd(i))).always(n.resolve);n.resolve()})).fail(n.resolve),n.done((function(){r&&t._revertItemToInitialPosition(),t.reset(),a.reset(),t._stopAnimator(),t._horizontalScrollHelper.reset(),t._verticalScrollHelper.reset(),t._resetDragElement(),t._resetSourceElement(),t._resetTargetDraggable(),t._resetSourceDraggable()}))}},_isTargetOverAnotherDraggable:function(e){var t=this,n=this._getSourceDraggable();if(this===n)return!1;var i=n._$dragElement,r=n.$element(),s=this.$element(),l=L(e),u=a.default.elementsFromPoint(l.x,l.y).filter((function(e){var n=(0,o.default)(e);if(n.hasClass(t._addWidgetPrefix()))return!n.closest(i).length}))[0],d=this._getSourceElement(),c=u===r.get(0),h=(0,o.default)(u).closest(d).length;return!u||u===s.get(0)&&!c&&!h},_dragEnterHandler:function(e){this._fireDragEnterEvent(e),this._isTargetOverAnotherDraggable(e)&&this._setTargetDraggable(),this._getSourceDraggable().dragEnter(e)},_dragLeaveHandler:function(e){this._fireDragLeaveEvent(e),this._resetTargetDraggable(),this!==this._getSourceDraggable()&&this.reset(),this._getSourceDraggable().dragLeave(e)},_getAction:function(e){return this["_"+e+"Action"]||this._createActionByOption(e)},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this.option("contentTemplate")&&(this._templateManager.addDefaultTemplates({content:new S.EmptyTemplate}),this.callBase.apply(this,arguments))},_render:function(){this.callBase(),this.$element().addClass(this._addWidgetPrefix());var e=this._templateManager.anonymousTemplateName===this.option("contentTemplate"),t=this._getTemplateByOption("contentTemplate");t&&(0,o.default)(t.render({container:this.element(),transclude:e}))},_optionChanged:function(e){var t=e.name;switch(t){case"onDragStart":case"onDragMove":case"onDragEnd":case"onDrop":case"onDragEnter":case"onDragLeave":this["_"+t+"Action"]=this._createActionByOption(t);break;case"dragTemplate":case"contentTemplate":case"container":case"clone":case"scrollSensitivity":case"scrollSpeed":case"boundOffset":case"handle":case"group":case"data":case"itemData":break;case"allowMoveByClick":case"dragDirection":case"disabled":case"boundary":case"filter":case"immediate":this._resetDragElement(),this._detachEventHandlers(),this._attachEventHandlers();break;case"autoScroll":this._verticalScrollHelper.reset(),this._horizontalScrollHelper.reset();break;default:this.callBase(e)}},_getTargetDraggable:function(){return I||this},_getSourceDraggable:function(){return T||this},_setTargetDraggable:function(){var e=this.option("group"),t=this._getSourceDraggable();e&&e===t.option("group")&&(I=this)},_setSourceDraggable:function(){T=this},_resetSourceDraggable:function(){T=null},_resetTargetDraggable:function(){I=null},_dispose:function(){this.callBase(),this._detachEventHandlers(),this._resetDragElement(),this._resetTargetDraggable(),this._resetSourceDraggable(),this._$sourceElement=null,this._stopAnimator()},_fireDragEnterEvent:function(e){var t=this._getEventArgs(e);this._getAction("onDragEnter")(t)},_fireDragLeaveEvent:function(e){var t=this._getEventArgs(e);this._getAction("onDragLeave")(t)}});(0,d.default)(A,z);var W=z;t.default=W,e.exports=t.default,e.exports.default=t.default},45065:function(e,t,n){var i;t.default=void 0;var o=((i=n(32089))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},68890:function(e,t,n){t.animation=void 0;var i,o=(i=n(87209))&&i.__esModule?i:{default:i},a=n(78008),r={moveTo:function(e){var t,n=e.$element,i=e.position,a={};switch(e.direction||"left"){case"right":a.transform="translate("+i+"px, 0px)",t="custom";break;case"left":a.left=i,t="slide";break;case"top":case"bottom":a.top=i,t="slide"}o.default.animate(n,{type:t,to:a,duration:e.duration,complete:e.complete})},margin:function(e){var t=e.$element,n=e.margin,i=e.direction||"left",r={};r["margin"+(0,a.camelize)(i,!0)]=n,o.default.animate(t,{to:r,duration:e.duration,complete:e.complete})},fade:function(e,t,n,i){o.default.animate(e,{type:"fade",to:t.to,from:t.from,duration:n,complete:i})},size:function(e){var t=e.$element,n=e.size,i=e.direction||"left",a=e.marginTop||0,r=e.duration,s={};"right"===i||"left"===i?s.width=n:s.height=n,"bottom"===i&&(s.marginTop=a),o.default.animate(t,{to:s,duration:r,complete:e.complete})},complete:function(e){o.default.stop(e,!0)}};t.animation=r},32089:function(e,t,n){t.default=void 0;var i=b(n(68374)),o=b(n(55994)),a=n(35922),r=n(6415),s=b(n(99393)),l=n(13306),u=n(37518),d=b(n(14390)),c=n(10688),h=n(58201),f=b(n(89266)),p=b(n(74780)),g=b(n(5738)),m=n(68890),_=n(95429),v=b(n(87209)),y=n(62754),x=n(80506);function b(e){return e&&e.__esModule?e:{default:e}}var w="dx-drawer-shader",C="dx-state-invisible",S="content",k=d.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{position:"left",opened:!1,minSize:null,maxSize:null,shading:!1,template:"panel",openedStateMode:"shrink",revealMode:"slide",animationEnabled:!0,animationDuration:400,closeOnOutsideClick:!1,contentTemplate:S,target:void 0})},_setDeprecatedOptions:function(){this.callBase(),(0,l.extend)(this._deprecatedOptions,{target:{since:"20.1",message:"Functionality associated with this option is not intended for the Drawer widget."}})},_init:function(){this.callBase(),this._initStrategy(),this.$element().addClass("dx-drawer"),this._whenAnimationCompleted=void 0,this._whenPanelContentRendered=void 0,this._whenPanelContentRefreshed=void 0,this._$wrapper=(0,i.default)("<div>").addClass("dx-drawer-wrapper"),this._$viewContentWrapper=(0,i.default)("<div>").addClass("dx-drawer-content"),this._$wrapper.append(this._$viewContentWrapper),this.$element().append(this._$wrapper)},_initStrategy:function(){switch(this.option("openedStateMode")){case"push":default:this._strategy=new f.default(this);break;case"shrink":this._strategy=new p.default(this);break;case"overlap":this._strategy=new g.default(this)}},_getAnonymousTemplateName:function(){return S},_initTemplates:function(){var e={};e.panel=new c.EmptyTemplate,e.content=new c.EmptyTemplate,this._templateManager.addDefaultTemplates(e),this.callBase()},_viewContentWrapperClickHandler:function(e){var t=this.option("closeOnOutsideClick");(0,a.isFunction)(t)&&(t=t(e)),t&&this.option("opened")&&(this.stopAnimations(),this.option("shading")&&e.preventDefault(),this.hide())},_initMarkup:function(){this.callBase(),this._toggleOpenedStateClass(this.option("opened")),this._renderPanelContentWrapper(),this._refreshOpenedStateModeClass(),this._refreshRevealModeClass(),this._renderShader(),this._whenPanelContentRendered=new y.Deferred,this._strategy.renderPanelContent(this._whenPanelContentRendered),this._strategy.onPanelContentRendered(),this._renderViewContent(),o.default.off(this._$viewContentWrapper,_.name),o.default.on(this._$viewContentWrapper,_.name,this._viewContentWrapperClickHandler.bind(this)),this._refreshPositionClass(),this._refreshWrapperChildrenOrder()},_render:function(){var e=this;this._initMinMaxSize(),this.callBase(),this._whenPanelContentRendered.always((function(){e._initMinMaxSize(),e._strategy.refreshPanelElementSize("slide"===e.option("revealMode")||!e.isHorizontalDirection()),e._renderPosition(e.option("opened"),!0),e._removePanelManualPosition()}))},_removePanelManualPosition:function(){this._$panelContentWrapper.attr("manualposition")&&(this._$panelContentWrapper.removeAttr("manualPosition"),this._$panelContentWrapper.css({position:"",top:"",left:"",right:"",bottom:""}))},_renderPanelContentWrapper:function(){this._$panelContentWrapper=(0,i.default)("<div>").addClass("dx-drawer-panel-content");var e=this.calcTargetPosition();"push"===this.option("openedStateMode")&&["top","bottom"].indexOf(e)>-1&&this._$panelContentWrapper.addClass("dx-drawer-panel-content-push-top-or-bottom"),"overlap"===this.option("openedStateMode")||this.option("opened")||this.option("minSize")||(this._$panelContentWrapper.attr("manualposition",!0),this._$panelContentWrapper.css({position:"absolute",top:"-10000px",left:"-10000px",right:"auto",bottom:"auto"})),this._$wrapper.append(this._$panelContentWrapper)},_refreshOpenedStateModeClass:function(e){e&&this.$element().removeClass("dx-drawer-"+e),this.$element().addClass("dx-drawer-"+this.option("openedStateMode"))},_refreshPositionClass:function(e){e&&this.$element().removeClass("dx-drawer-"+e),this.$element().addClass("dx-drawer-"+this.calcTargetPosition())},_refreshWrapperChildrenOrder:function(){var e=this.calcTargetPosition();this._strategy.isViewContentFirst(e,this.option("rtlEnabled"))?this._$wrapper.prepend(this._$viewContentWrapper):this._$wrapper.prepend(this._$panelContentWrapper)},_refreshRevealModeClass:function(e){e&&this.$element().removeClass("dx-drawer-"+e),this.$element().addClass("dx-drawer-"+this.option("revealMode"))},_renderViewContent:function(){var e=this.option("contentTemplate"),t=this._getTemplate(e);if(t){var n=t.render({container:this.viewContent(),noModel:!0,transclude:this._templateManager.anonymousTemplateName===e});n.hasClass("ng-scope")&&(0,i.default)(this._$viewContentWrapper).children().not(".".concat(w)).replaceWith(n)}},_renderShader:function(){this._$shader=this._$shader||(0,i.default)("<div>").addClass(w),this._$shader.appendTo(this.viewContent()),this._toggleShaderVisibility(this.option("opened"))},_initSize:function(){this._initMinMaxSize()},_initMinMaxSize:function(){var e=this.isHorizontalDirection()?this.getRealPanelWidth():this.getRealPanelHeight();this._maxSize=this.option("maxSize")||e,this._minSize=this.option("minSize")||0},calcTargetPosition:function(){var e=this.option("position"),t=this.option("rtlEnabled"),n=e;return"before"===e?n=t?"right":"left":"after"===e&&(n=t?"left":"right"),n},getOverlayTarget:function(){return this._options.silent("target")||this._$wrapper},getOverlay:function(){return this._overlay},getMaxSize:function(){return this._maxSize},getMinSize:function(){return this._minSize},getRealPanelWidth:function(){return(0,h.hasWindow)()?(0,a.isDefined)(this.option("templateSize"))?this.option("templateSize"):(0,u.getBoundingRect)(this._getPanelTemplateElement()).width:0},getRealPanelHeight:function(){return(0,h.hasWindow)()?(0,a.isDefined)(this.option("templateSize"))?this.option("templateSize"):(0,u.getBoundingRect)(this._getPanelTemplateElement()).height:0},_getPanelTemplateElement:function(){var e=this._strategy.getPanelContent(),t=e;return e.children().length&&(t=e.children().eq(0),e.hasClass("dx-overlay-content")&&t.hasClass("dx-template-wrapper")&&t.children().length&&(t=t.children().eq(0))),t.get(0)},getElementHeight:function(e){var t=e.children();return t.length?(0,u.getBoundingRect)(t.eq(0).get(0)).height:(0,u.getBoundingRect)(e.get(0)).height},isHorizontalDirection:function(){var e=this.calcTargetPosition();return"left"===e||"right"===e},stopAnimations:function(e){v.default.stop(this._$shader,e),v.default.stop((0,i.default)(this.content()),e),v.default.stop((0,i.default)(this.viewContent()),e);var t=this.getOverlay();t&&v.default.stop((0,i.default)(t.$content()),e)},setZIndex:function(e){this._$shader.css("zIndex",e-1),this._$panelContentWrapper.css("zIndex",e)},resizeContent:function(){this.resizeViewContent},resizeViewContent:function(){(0,x.triggerResizeEvent)(this.viewContent())},_isInvertedPosition:function(){var e=this.calcTargetPosition();return"right"===e||"bottom"===e},_renderPosition:function(e,t,n){if(this.stopAnimations(n),(0,h.hasWindow)()){(0,i.default)(this.viewContent()).css("paddingLeft",0),(0,i.default)(this.viewContent()).css("paddingRight",0),(0,i.default)(this.viewContent()).css("paddingTop",0),(0,i.default)(this.viewContent()).css("paddingBottom",0);var o=this.option("animationEnabled");!0===t&&(o=!1),e&&this._toggleShaderVisibility(e),this._strategy.renderPosition(o,this.option("animationDuration"))}},_animationCompleteHandler:function(){this.resizeViewContent(),this._whenAnimationCompleted&&this._whenAnimationCompleted.resolve()},_getPositionCorrection:function(){return this._isInvertedPosition()?-1:1},_dispose:function(){m.animation.complete((0,i.default)(this.viewContent())),this.callBase()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._initMinMaxSize(),this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")),this._renderPosition(this.option("opened"),!0)},_toggleShaderVisibility:function(e){this.option("shading")?(this._$shader.toggleClass(C,!e),this._$shader.css("visibility",e?"visible":"hidden")):this._$shader.toggleClass(C,!0)},_toggleOpenedStateClass:function(e){this.$element().toggleClass("dx-drawer-opened",e)},_refreshPanel:function(){var e=this;(0,i.default)(this.viewContent()).css("left",0),(0,i.default)(this.viewContent()).css("transform","translate(0px, 0px)"),(0,i.default)(this.viewContent()).removeClass("dx-theme-background-color"),this._removePanelContentWrapper(),this._removeOverlay(),this._renderPanelContentWrapper(),this._refreshWrapperChildrenOrder(),this._whenPanelContentRefreshed=new y.Deferred,this._strategy.renderPanelContent(this._whenPanelContentRefreshed),this._strategy.onPanelContentRendered(),(0,h.hasWindow)()&&this._whenPanelContentRefreshed.always((function(){e._strategy.refreshPanelElementSize("slide"===e.option("revealMode")),e._renderPosition(e.option("opened"),!0,!0),e._removePanelManualPosition()}))},_clean:function(){this._cleanFocusState(),this._removePanelContentWrapper(),this._removeOverlay()},_removePanelContentWrapper:function(){this._$panelContentWrapper&&this._$panelContentWrapper.remove()},_removeOverlay:function(){this._overlay&&(this._overlay.dispose(),delete this._overlay,delete this._$panelContentWrapper)},_optionChanged:function(e){switch(e.name){case"width":this.callBase(e),this._dimensionChanged();break;case"opened":this._renderPosition(this.option("opened")),this._toggleOpenedStateClass(e.value);break;case"position":this._refreshPositionClass(e.previousValue),this._refreshWrapperChildrenOrder(),this._invalidate();break;case"contentTemplate":case"template":this._invalidate();break;case"openedStateMode":case"target":this._initStrategy(),this._refreshOpenedStateModeClass(e.previousValue),this._refreshPanel();break;case"minSize":case"maxSize":this._initMinMaxSize(),this._renderPosition(this.option("opened"),!0);break;case"revealMode":this._refreshRevealModeClass(e.previousValue),this._refreshPanel();break;case"shading":this._toggleShaderVisibility(this.option("opened"));break;case"animationEnabled":case"animationDuration":case"closeOnOutsideClick":break;default:this.callBase(e)}},content:function(){return(0,r.getPublicElement)(this._$panelContentWrapper)},viewContent:function(){return(0,r.getPublicElement)(this._$viewContentWrapper)},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},toggle:function(e){var t=void 0===e?!this.option("opened"):e;return this._whenAnimationCompleted=new y.Deferred,this.option("opened",t),this._whenAnimationCompleted.promise()}});(0,s.default)("dxDrawer",k);var D=k;t.default=D,e.exports=t.default,e.exports.default=t.default},39725:function(e,t,n){t.default=void 0;var i,o=n(58664),a=(i=n(68374))&&i.__esModule?i:{default:i},r=n(68890),s=n(62754),l=function(){function e(e){this._drawer=e}var t=e.prototype;return t.getDrawerInstance=function(){return this._drawer},t.renderPanelContent=function(e){var t=this.getDrawerInstance(),n=t._getTemplate(t.option("template"));n&&n.render({container:t.content(),onRendered:function(){e.resolve()}})},t.renderPosition=function(e,t){var n=new s.Deferred,i=new s.Deferred,o=this.getDrawerInstance();e&&s.when.apply(a.default,[n,i]).done((function(){o._animationCompleteHandler()})),this._internalRenderPosition(e,n),e||o.resizeViewContent(),this.renderShaderVisibility(e,t,i)},t._getPanelOffset=function(e){var t=this.getDrawerInstance(),n=t.isHorizontalDirection()?t.getRealPanelWidth():t.getRealPanelHeight();return e?-(n-t.getMaxSize()):-(n-t.getMinSize())},t._getPanelSize=function(e){return e?this.getDrawerInstance().getMaxSize():this.getDrawerInstance().getMinSize()},t.renderShaderVisibility=function(e,t,n){var i=this,o=this.getDrawerInstance(),s=o.option("opened"),l=s?{from:0,to:1}:{from:1,to:0};e?r.animation.fade((0,a.default)(o._$shader),l,t,(function(){i._drawer._toggleShaderVisibility(s),n.resolve()})):(o._toggleShaderVisibility(s),o._$shader.css("opacity",l.to))},t.getPanelContent=function(){return(0,a.default)(this.getDrawerInstance().content())},t.setPanelSize=function(e){this.refreshPanelElementSize(e)},t.refreshPanelElementSize=function(e){var t=this.getDrawerInstance(),n=this._getPanelSize(t.option("opened"));t.isHorizontalDirection()?(0,o.setWidth)((0,a.default)(t.content()),e?t.getRealPanelWidth():n):(0,o.setHeight)((0,a.default)(t.content()),e?t.getRealPanelHeight():n)},t.isViewContentFirst=function(){return!1},t.onPanelContentRendered=function(){},e}();t.default=l,e.exports=t.default,e.exports.default=t.default},5738:function(e,t,n){t.default=void 0;var i=n(58664),o=n(68890),a=c(n(39725)),r=c(n(68374)),s=n(31648),l=c(n(89799)),u=n(20576),d=n(78008);function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var c=a.prototype;return c.renderPanelContent=function(e){var t=this;delete this._initialPosition;var n=this.getDrawerInstance(),i=n.option(),o=i.opened,a=i.minSize;n._overlay=n._createComponent(n.content(),l.default,{shading:!1,container:n.getOverlayTarget(),position:this._getOverlayPosition(),width:o?"auto":a||0,height:"100%",templatesRenderAsynchronously:n.option("templatesRenderAsynchronously"),animation:{show:{duration:0}},onPositioned:function(e){this._fixOverlayPosition(e.component.$content())}.bind(this),contentTemplate:n.option("template"),onContentReady:function(n){e.resolve(),t._processOverlayZIndex(n.component.content())},visible:!0,propagateOutsideClick:!0,useResizeObserver:!1})},c._fixOverlayPosition=function(e){var t=(0,u.ensureDefined)(this._initialPosition,{left:0,top:0});(0,s.move)(e,t),"right"===this.getDrawerInstance().calcTargetPosition()&&e.css("left","auto"),"bottom"===this.getDrawerInstance().calcTargetPosition()&&(e.css("top","auto"),e.css("bottom","0px"))},c._getOverlayPosition=function(){var e=this.getDrawerInstance(),t=e.calcTargetPosition(),n={};switch(t){case"left":n={my:"top left",at:"top left"};break;case"right":n={my:e.option("rtlEnabled")?"top left":"top right",at:"top right"};break;case"top":case"bottom":n={my:t,at:t}}return n.of=e.getOverlayTarget(),n},c.refreshPanelElementSize=function(e){var t=this.getDrawerInstance(),n=t.getOverlay();t.isHorizontalDirection()?(n.option("height","100%"),n.option("width",e?t.getRealPanelWidth():this._getPanelSize(t.option("opened")))):(n.option("width",(0,i.getWidth)(n.option("container"))),n.option("height",e?t.getRealPanelHeight():this._getPanelSize(t.option("opened"))))},c.onPanelContentRendered=function(){this._updateViewContentStyles()},c._updateViewContentStyles=function(){var e=this.getDrawerInstance();(0,r.default)(e.viewContent()).css("padding"+(0,d.camelize)(e.calcTargetPosition(),!0),e.option("minSize")),(0,r.default)(e.viewContent()).css("transform","inherit")},c._internalRenderPosition=function(e,t){var n=this.getDrawerInstance(),i=(0,r.default)(n.content()),a=n.getOverlay().$content(),l=n.option("revealMode"),u=n.calcTargetPosition(),d=this._getPanelSize(n.option("opened")),c=this._getPanelOffset(n.option("opened"))*n._getPositionCorrection(),h=n.getRealPanelHeight()-d;this._updateViewContentStyles(),e?"slide"===l?(this._initialPosition=n.isHorizontalDirection()?{left:c}:{top:c},o.animation.moveTo({complete:function(){t.resolve()},duration:n.option("animationDuration"),direction:u,$element:i,position:c})):"expand"===l&&(this._initialPosition={left:0},(0,s.move)(a,this._initialPosition),o.animation.size({complete:function(){t.resolve()},duration:n.option("animationDuration"),direction:u,$element:a,size:d,marginTop:h})):"slide"===l?(this._initialPosition=n.isHorizontalDirection()?{left:c}:{top:c},(0,s.move)(i,this._initialPosition)):"expand"===l&&(this._initialPosition={left:0},(0,s.move)(a,this._initialPosition),n.isHorizontalDirection()?(0,r.default)(a).css("width",d):((0,r.default)(a).css("height",d),"bottom"===u&&(0,r.default)(a).css("marginTop",h)))},c.getPanelContent=function(){return(0,r.default)(this.getDrawerInstance().getOverlay().content())},c._processOverlayZIndex=function(e){var t=(0,r.default)(e).get(0).style.zIndex||1;this.getDrawerInstance().setZIndex(t)},c.isViewContentFirst=function(e){return"right"===e||"bottom"===e},a}(a.default);t.default=f,e.exports=t.default,e.exports.default=t.default},89266:function(e,t,n){t.default=void 0;var i=n(68890),o=s(n(39725)),a=s(n(68374)),r=n(31648);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var s=o.prototype;return s._internalRenderPosition=function(e,t){var n=this.getDrawerInstance(),o=this._getPanelSize(!0),s=this._getPanelSize(n.option("opened"))*n._getPositionCorrection();if((0,a.default)(n.content()).css(n.isHorizontalDirection()?"width":"height",o),n.getMinSize()){var l="padding";switch(n.calcTargetPosition()){case"left":l+="Right";break;case"right":l+="Left";break;case"top":l+="Bottom";break;case"bottom":l+="Top"}(0,a.default)(n.viewContent()).css(l,n.getMinSize())}e?i.animation.moveTo({$element:(0,a.default)(n.viewContent()),position:s,direction:n.calcTargetPosition(),duration:n.option("animationDuration"),complete:function(){t.resolve()}}):n.isHorizontalDirection()?(0,r.move)((0,a.default)(n.viewContent()),{left:s}):(0,r.move)((0,a.default)(n.viewContent()),{top:s})},s.onPanelContentRendered=function(){(0,a.default)(this.getDrawerInstance().viewContent()).addClass("dx-theme-background-color")},o}(o.default);t.default=u,e.exports=t.default,e.exports.default=t.default},74780:function(e,t,n){t.default=void 0;var i=n(68890),o=s(n(39725)),a=s(n(68374)),r=n(78008);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var s=o.prototype;return s._internalRenderPosition=function(e,t){var n=this.getDrawerInstance(),o=n.calcTargetPosition(),s=(0,a.default)(n.content()),l=this._getPanelSize(n.option("opened")),u=this._getPanelOffset(n.option("opened")),d=n.option("revealMode");e?"slide"===d?i.animation.margin({complete:function(){t.resolve()},$element:s,duration:n.option("animationDuration"),direction:o,margin:u}):"expand"===d&&i.animation.size({complete:function(){t.resolve()},$element:s,duration:n.option("animationDuration"),direction:o,size:l}):"slide"===d?s.css("margin"+(0,r.camelize)(o,!0),u):"expand"===d&&s.css(n.isHorizontalDirection()?"width":"height",l)},s.isViewContentFirst=function(e,t){return(t?"left"===e:"right"===e)||"bottom"===e},o}(o.default);t.default=u,e.exports=t.default,e.exports.default=t.default},36646:function(e,t,n){t.default=void 0;var i=x(n(44687)),o=x(n(88718)),a=n(20576),r=n(35922),s=n(95479),l=n(31421),u=n(62754),d=x(n(68374)),c=x(n(55994)),h=n(13306),f=n(13660),p=x(n(99393)),g=n(39611),m=n(72918),_=x(n(20530)),v=x(n(73349)),y=n(6415);function x(e){return e&&e.__esModule?e:{default:e}}var b=v.default.getActiveElement,w="content",C=_.default.real(),S=i.default.inherit({_supportedKeys:function(){return(0,h.extend)({},this.callBase(),{tab:function(e){if(this.option("opened")){var t=this._getTabbableElements(),n=e.shiftKey?t.last():t.first();n&&c.default.trigger(n,"focus"),e.preventDefault()}}})},_getTabbableElements:function(){return this._getElements().filter(l.tabbable)},_getElements:function(){return(0,d.default)(this.content()).find("*")},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{acceptCustomValue:!1,contentTemplate:w,openOnFieldClick:!0,displayValueFormatter:function(e){return Array.isArray(e)?e.join(", "):e},useHiddenSubmitElement:!0})},_getAnonymousTemplateName:function(){return w},_initTemplates:function(){this.callBase()},_initMarkup:function(){this._initDataExpressions(),this.$element().addClass("dx-dropdownbox"),this.callBase()},_setSubmitValue:function(){var e=this.option("value"),t=this._shouldUseDisplayValue(e)?this._displayGetter(e):e;this._getSubmitElement().val(t)},_shouldUseDisplayValue:function(e){return"this"===this.option("valueExpr")&&(0,r.isObject)(e)},_renderInputValue:function(){var e=this;this._rejectValueLoading();var t=[];if(!this._dataSource)return this.callBase(t),(new u.Deferred).resolve();var n=this._getCurrentValue(),i=null!=n?n:[];i=Array.isArray(i)?i:[i];var o=(0,s.map)(i,(function(n){var i=new u.Deferred;return e._loadItem(n).always((function(o){var a=e._displayGetter(o);(0,r.isDefined)(a)?t.push(a):e.option("acceptCustomValue")&&t.push(n),i.resolve()})),i})),a=this.callBase.bind(this);return u.when.apply(this,o).always((function(){e.option("displayValue",t),a(t.length&&t)}))},_loadItem:function(e){var t=new u.Deferred,n=this,i=(0,a.grep)(this.option("items")||[],function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0];return void 0!==i?t.resolve(i):this._loadValue(e).done((function(e){t.resolve(e)})).fail((function(i){null!=i&&i.shouldSkipCallback||(n.option("acceptCustomValue")?t.resolve(e):t.reject())})),t.promise()},_popupElementTabHandler:function(e){if("tab"===(0,g.normalizeKeyName)(e)){var t=this._getTabbableElements().first().get(0),n=this._getTabbableElements().last().get(0),i=e.originalEvent.target,o=!(i!==t||!e.shift),a=!(i!==n||e.shift);(o||a)&&(this.close(),c.default.trigger(this._input(),"focus"),o&&e.originalEvent.preventDefault())}},_renderPopup:function(e){var t=this;this.callBase(),this.option("focusStateEnabled")&&m.keyboard.on(this.content(),null,(function(e){return t._popupElementTabHandler(e)}))},_renderPopupContent:function(){if(this.option("contentTemplate")!==w){var e=this._getTemplateByOption("contentTemplate");if(e&&this.option("contentTemplate")){var t=this._popup.$content(),n={value:this._fieldRenderData(),component:this};t.empty(),e.render({container:(0,y.getPublicElement)(t),model:n})}}},_canShowVirtualKeyboard:function(){return C.mac},_isNestedElementActive:function(){var e=b();return e&&this._popup.$content().get(0).contains(e)},_shouldHideOnParentScroll:function(){return"desktop"===C.deviceType&&this._canShowVirtualKeyboard()&&this._isNestedElementActive()},_popupHiddenHandler:function(){this.callBase(),this._popupPosition=void 0},_popupPositionedHandler:function(e){this.callBase(e),this._popupPosition=e.position},_getDefaultPopupPosition:function(e){var t=this.callBase(e);return{my:t.my,at:t.at,offset:{v:-1},collision:"flipfit"}},_popupConfig:function(){var e=this,t=this.option().focusStateEnabled;return(0,h.extend)(this.callBase(),{tabIndex:-1,dragEnabled:!1,focusStateEnabled:t,contentTemplate:w,hideOnParentScroll:this._shouldHideOnParentScroll.bind(this),position:(0,h.extend)(this.option("popupPosition"),{of:this.$element()}),onKeyboardHandled:function(t){return e.option("focusStateEnabled")&&e._popupElementTabHandler(t)},_ignoreFunctionValueDeprecation:!0,maxHeight:function(){var e,t=null===(e=this._popupPosition)||void 0===e?void 0:e.v.location;return(0,f.getElementMaxHeightByWindow)(this.$element(),t)}.bind(this)})},_popupShownHandler:function(){this.callBase();var e=this._getTabbableElements().first();c.default.trigger(e,"focus")},_setCollectionWidgetOption:a.noop,_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"dataSource":this._renderInputValue();break;case"displayValue":this.option("text",e.value);break;case"displayExpr":this._renderValue();break;case"contentTemplate":this._invalidate();break;default:this.callBase(e)}}}).include(o.default);(0,p.default)("dxDropDownBox",S);var k=S;t.default=k,e.exports=t.default,e.exports.default=t.default},45231:function(e,t,n){t.default=void 0;var i=C(n(68374)),o=C(n(14390)),a=n(68494),r=C(n(99393)),s=C(n(28236)),l=C(n(39114)),u=C(n(56757)),d=n(47617),c=n(6415),h=n(44899),f=C(n(53305)),p=n(85273),g=C(n(26562)),m=n(62754),_=n(13306),v=n(35922),y=n(20576),x=C(n(73176)),b=n(61902),w=C(n(28109));function C(e){return e&&e.__esModule?e:{default:e}}var S="dx-dropdownbutton",k="dx-dropdownbutton-action",D="dx-dropdownbutton-toggle",I=o.default.inherit({_getDefaultOptions:function(){return(0,_.extend)(this.callBase(),{itemTemplate:"item",keyExpr:"this",displayExpr:void 0,selectedItem:null,selectedItemKey:null,stylingMode:"outlined",deferRendering:!0,noDataText:w.default.format("dxCollectionWidget-noDataText"),useSelectMode:!1,splitButton:!1,showArrowIcon:!0,text:"",icon:void 0,onButtonClick:null,onSelectionChanged:null,onItemClick:null,opened:!1,items:null,dataSource:null,focusStateEnabled:!0,hoverStateEnabled:!0,dropDownOptions:{},dropDownContentTemplate:"content",wrapItemText:!1,useItemTextAsTitle:!0,grouped:!1,groupTemplate:"group",buttonGroupOptions:{}})},_setOptionsByReference:function(){this.callBase(),(0,_.extend)(this._optionsByReference,{selectedItem:!0})},_init:function(){this.callBase(),this._createItemClickAction(),this._createActionClickAction(),this._createSelectionChangedAction(),this._initDataSource(),this._compileKeyGetter(),this._compileDisplayGetter(),this._itemsToDataSource(this.option("items")),this._options.cache("buttonGroupOptions",this.option("buttonGroupOptions")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_initTemplates:function(){var e=this;this._templateManager.addDefaultTemplates({content:new a.FunctionTemplate((function(t){var n=(0,i.default)(t.container),o=(0,i.default)("<div>").appendTo(n);e._list=e._createComponent(o,u.default,e._listOptions()),e._list.registerKeyHandler("escape",e._escHandler.bind(e)),e._list.registerKeyHandler("tab",e._escHandler.bind(e)),e._list.registerKeyHandler("leftArrow",e._escHandler.bind(e)),e._list.registerKeyHandler("rightArrow",e._escHandler.bind(e))}))}),this.callBase()},_itemsToDataSource:function(e){this._dataSource||(this._dataSource=new p.DataSource({store:new g.default({key:this._getKey(),data:e}),pageSize:0}))},_getKey:function(){var e,t=this.option("keyExpr"),n=null===(e=this._dataSource)||void 0===e?void 0:e.key();return!(0,v.isDefined)(n)||(0,v.isDefined)(t)&&"this"!==t?t:n},_compileKeyGetter:function(){this._keyGetter=(0,d.compileGetter)(this._getKey())},_compileDisplayGetter:function(){this._displayGetter=(0,d.compileGetter)(this.option("displayExpr"))},_initMarkup:function(){this.callBase(),this.$element().addClass(S),this._renderButtonGroup(),this._updateArrowClass(),(0,v.isDefined)(this.option("selectedItemKey"))&&this._loadSelectedItem().done(this._updateActionButton.bind(this))},_renderFocusTarget:y.noop,_render:function(){this.option("deferRendering")&&!this.option("opened")||this._renderPopup(),this.callBase()},_renderContentImpl:function(){return this._popup&&this._renderPopupContent(),this.callBase()},_loadSelectedItem:function(){var e;null===(e=this._loadSingleDeferred)||void 0===e||e.reject();var t=new m.Deferred;if(this._list&&void 0!==this._lastSelectedItemData){var n=this.option("useSelectMode")?this._list.option("selectedItem"):this._lastSelectedItemData;return t.resolve(n)}this._lastSelectedItemData=void 0;var i=this.option("selectedItemKey");return this._loadSingle(this._getKey(),i).done(t.resolve).fail((function(){t.resolve(null)})),this._loadSingleDeferred=t,t.promise()},_createActionClickAction:function(){this._actionClickAction=this._createActionByOption("onButtonClick")},_createSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_createItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_fireSelectionChangedAction:function(e){var t=e.previousValue,n=e.value;this._selectionChangedAction({item:n,previousItem:t})},_fireItemClickAction:function(e){var t=e.event,n=e.itemElement,i=e.itemData;return this._itemClickAction({event:t,itemElement:n,itemData:this._actionItem||i})},_actionButtonConfig:function(){return{text:this.option("text"),icon:this.option("icon"),elementAttr:{class:k}}},_getButtonGroupItems:function(){var e=[];return e.push(this._actionButtonConfig()),this.option("splitButton")&&e.push({icon:"spindown",elementAttr:{class:D}}),e},_buttonGroupItemClick:function(e){var t=e.event,n=e.itemData,i=n.elementAttr.class===k;n.elementAttr.class===D?this.toggle():i&&(this._actionClickAction({event:t,selectedItem:this.option("selectedItem")}),this.option("splitButton")||this.toggle())},_buttonGroupOptions:function(){var e=this,t=this.option("splitButton")||!this.option("showArrowIcon")?"content":function(e,t){var n=e.text,o=e.icon,a=(0,h.getImageContainer)(o),r=n?(0,i.default)("<span>").text(n).addClass("dx-button-text"):void 0,s=(0,h.getImageContainer)("spindown").addClass("dx-icon-right");(0,i.default)(t).append(a,r,s)};return(0,_.extend)({items:this._getButtonGroupItems(),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),onItemClick:this._buttonGroupItemClick.bind(this),width:"100%",height:"100%",stylingMode:this.option("stylingMode"),selectionMode:"none",tabIndex:this.option("tabIndex"),onKeyboardHandled:function(t){return e._keyboardHandler(t)},buttonTemplate:t},this._options.cache("buttonGroupOptions"))},_renderPopupContent:function(){var e=this._popup.$content(),t=this._getTemplateByOption("dropDownContentTemplate");return e.empty(),this._popupContentId="dx-"+new x.default,this.setAria("id",this._popupContentId,e),t.render({container:(0,c.getPublicElement)(e),model:this.option("items")||this._dataSource})},_popupOptions:function(){var e=this,t=this.option("rtlEnabled")?"right":"left";return(0,_.extend)({dragEnabled:!1,focusStateEnabled:!1,deferRendering:this.option("deferRendering"),closeOnOutsideClick:function(t){var n=e.$element();return!(0,i.default)(t.target).closest(".".concat(S)).is(n)},showTitle:!1,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},_ignoreFunctionValueDeprecation:!0,width:function(){return(0,b.getElementWidth)(e.$element())},height:"auto",shading:!1,position:{of:this.$element(),collision:"flipfit",my:t+" top",at:t+" bottom"},wrapperAttr:{class:"dx-dropdowneditor-overlay"}},this._options.cache("dropDownOptions"),{visible:this.option("opened")})},_listOptions:function(){var e=this,t=this.option("selectedItemKey"),n=this.option("useSelectMode");return{selectionMode:n?"single":"none",wrapItemText:this.option("wrapItemText"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:function(){return e._fireContentReadyAction()},selectedItemKeys:(0,v.isDefined)(t)&&n?[t]:[],grouped:this.option("grouped"),groupTemplate:this.option("groupTemplate"),keyExpr:this._getKey(),noDataText:this.option("noDataText"),displayExpr:this.option("displayExpr"),itemTemplate:this.option("itemTemplate"),items:this.option("items"),dataSource:this._dataSource,onItemClick:function(t){e.option("useSelectMode")||(e._lastSelectedItemData=t.itemData),e.option("selectedItemKey",e._keyGetter(t.itemData)),!1!==e._fireItemClickAction(t)&&(e.toggle(!1),e._buttonGroup.focus())}}},_upDownKeyHandler:function(){return this._popup&&this._popup.option("visible")&&this._list?this._list.focus():this.open(),!0},_escHandler:function(){return this.close(),this._buttonGroup.focus(),!0},_tabHandler:function(){return this.close(),!0},_renderPopup:function(){var e=(0,i.default)("<div>");this.$element().append(e),this._popup=this._createComponent(e,l.default,this._popupOptions()),this._popup.$content().addClass("dx-dropdownbutton-content"),this._popup.$wrapper().addClass("dx-dropdownbutton-popup-wrapper"),this._popup.on("hiding",this._popupHidingHandler.bind(this)),this._popup.on("showing",this._popupShowingHandler.bind(this)),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_popupHidingHandler:function(){this.option("opened",!1),this.setAria({expanded:!1,owns:void 0})},_popupOptionChanged:function(e){var t=o.default.getOptionsFromContainer(e);this._setPopupOption(t);var n=Object.keys(t);-1===n.indexOf("width")&&-1===n.indexOf("height")||this._dimensionChanged()},_dimensionChanged:function(){var e=this;void 0===(0,b.getSizeValue)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",(function(){return(0,b.getElementWidth)(e.$element())}))},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_popupShowingHandler:function(){this.option("opened",!0),this.setAria({expanded:!0,owns:this._popupContentId})},_renderButtonGroup:function(){var e=this._buttonGroup&&this._buttonGroup.$element()||(0,i.default)("<div>");this._buttonGroup||this.$element().append(e),this._buttonGroup=this._createComponent(e,s.default,this._buttonGroupOptions()),this._buttonGroup.registerKeyHandler("downArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("tab",this._tabHandler.bind(this)),this._buttonGroup.registerKeyHandler("upArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("escape",this._escHandler.bind(this)),this._bindInnerWidgetOptions(this._buttonGroup,"buttonGroupOptions")},_updateArrowClass:function(){var e=this.option("splitButton")||this.option("showArrowIcon");this.$element().toggleClass("dx-dropdownbutton-has-arrow",e)},toggle:function(e){return this._popup||(this._renderPopup(),this._renderContent()),this._popup.toggle(e)},open:function(){return this.toggle(!0)},close:function(){return this.toggle(!1)},_setListOption:function(e,t){this._list&&this._list.option(e,t)},_getDisplayValue:function(e){var t=(0,v.isPlainObject)(e)?this._displayGetter(e):e;return(0,v.isPlainObject)(t)?"":String((0,y.ensureDefined)(t,""))},_updateActionButton:function(e){this.option("useSelectMode")&&this.option({text:this._getDisplayValue(e),icon:(0,v.isPlainObject)(e)?e.icon:void 0}),this._setOptionWithoutOptionChange("selectedItem",e),this._setOptionWithoutOptionChange("selectedItemKey",this._keyGetter(e))},_clean:function(){this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove()},_selectedItemKeyChanged:function(e){var t=this;this._setListOption("selectedItemKeys",this.option("useSelectMode")&&(0,v.isDefined)(e)?[e]:[]);var n=this.option("selectedItem");this._loadSelectedItem().done((function(e){t._updateActionButton(e),t._displayGetter(n)!==t._displayGetter(e)&&t._fireSelectionChangedAction({previousValue:n,value:e})}))},_actionButtonOptionChanged:function(e){var t=e.name,n=e.value,i={};i[t]=n,this._buttonGroup.option("items[0]",(0,_.extend)({},this._actionButtonConfig(),i)),this._popup&&this._popup.repaint()},_selectModeChanged:function(e){if(e){this._setListOption("selectionMode","single");var t=this.option("selectedItemKey");this._setListOption("selectedItemKeys",(0,v.isDefined)(t)?[t]:[])}else this._setListOption("selectionMode","none"),this.option({selectedItemKey:void 0,selectedItem:void 0})},_updateItemCollection:function(e){var t=this,n=this.option("selectedItemKey");this._setListOption("selectedItem",null),this._setWidgetOption("_list",[e]),(0,v.isDefined)(n)&&this._loadSelectedItem().done((function(e){t._setListOption("selectedItemKeys",[n]),t._setListOption("selectedItem",e)})).fail((function(e){t._setListOption("selectedItemKeys",[])})).always(this._updateActionButton.bind(this))},_updateDataSource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._dataSource.items();this._dataSource=void 0,this._itemsToDataSource(e),this._updateKeyExpr()},_updateKeyExpr:function(){this._compileKeyGetter(),this._setListOption("keyExpr",this._getKey())},focus:function(){this._buttonGroup.focus()},_optionChanged:function(e){var t,n=e.name,i=e.value;switch(n){case"useSelectMode":this._selectModeChanged(i);break;case"splitButton":this._updateArrowClass(),this._renderButtonGroup();break;case"displayExpr":this._compileDisplayGetter(),this._setListOption(n,i),this._updateActionButton(this.option("selectedItem"));break;case"keyExpr":this._updateDataSource();break;case"buttonGroupOptions":this._innerWidgetOptionChanged(this._buttonGroup,e);break;case"dropDownOptions":if("dropDownOptions.visible"===e.fullName)break;void 0!==e.value.visible&&delete e.value.visible,this._popupOptionChanged(e),this._innerWidgetOptionChanged(this._popup,e);break;case"opened":this.toggle(i);break;case"focusStateEnabled":case"hoverStateEnabled":this._setListOption(n,i),this._buttonGroup.option(n,i),this.callBase(e);break;case"items":this._updateDataSource(this.option("items")),this._updateItemCollection(n);break;case"dataSource":Array.isArray(i)?this._updateDataSource(this.option("dataSource")):(this._initDataSource(),this._updateKeyExpr()),this._updateItemCollection(n);break;case"icon":case"text":this._actionButtonOptionChanged(e);break;case"showArrowIcon":this._updateArrowClass(),this._renderButtonGroup(),this._popup&&this._popup.repaint();break;case"width":case"height":this.callBase(e),null===(t=this._popup)||void 0===t||t.repaint();break;case"stylingMode":case"tabIndex":this._buttonGroup.option(n,i);break;case"itemTemplate":case"grouped":case"noDataText":case"groupTemplate":case"wrapItemText":case"useItemTextAsTitle":this._setListOption(n,i);break;case"dropDownContentTemplate":this._renderContent();break;case"selectedItemKey":this._selectedItemKeyChanged(i);break;case"selectedItem":break;case"onItemClick":this._createItemClickAction();break;case"onButtonClick":this._createActionClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"deferRendering":this.toggle(this.option("opened"));break;default:this.callBase(e)}}}).include(f.default);(0,r.default)("dxDropDownButton",I);var T=I;t.default=T,e.exports=t.default,e.exports.default=t.default},29783:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=n(13306),a=u(n(55994)),r=u(n(28109)),s=u(n(11483)),l=u(n(63008));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){var t,n;function s(t,n,i){var o;return(o=e.call(this,t,n,i)||this).currentTemplate=null,o}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n);var u=s.prototype;return u._attachEvents=function(e){var t=this.editor;e.option("onClick",(function(e){!t.option("openOnFieldClick")&&t._openHandler(e)})),a.default.on(e.$element(),"mousedown",(function(e){t.$element().is(".dx-state-focused")&&e.preventDefault()}))},u._create=function(){var e=this.editor,t=(0,i.default)("<div>"),n=this._getOptions();this._addToContainer(t);var a=e._createComponent(t,l.default,(0,o.extend)({},n,{elementAttr:{"aria-label":r.default.format("dxDropDownEditor-selectLabel")}}));return this._legacyRender(e.$element(),t,n.visible),{$element:t,instance:a}},u._getOptions=function(){var e=this.editor,t=this._isVisible(),n={focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:e.option("readOnly"),visible:t};return this._addTemplate(n),n},u._isVisible=function(){var t=this.editor;return e.prototype._isVisible.call(this)&&t.option("showDropDownButton")},u._legacyRender=function(e,t,n){e.toggleClass("dx-dropdowneditor-button-visible",n),t&&t.removeClass("dx-button").addClass("dx-dropdowneditor-button")},u._isSameTemplate=function(){return this.editor.option("dropDownButtonTemplate")===this.currentTemplate},u._addTemplate=function(e){this._isSameTemplate()||(e.template=this.editor._getTemplateByOption("dropDownButtonTemplate"),this.currentTemplate=this.editor.option("dropDownButtonTemplate"))},u.update=function(){if(e.prototype.update.call(this)){var t=this.editor,n=this.instance,i=t.$element(),o=this._getOptions();null==n||n.option(o),this._legacyRender(i,null==n?void 0:n.$element(),o.visible)}},s}(s.default);t.default=c,e.exports=t.default,e.exports.default=t.default},44687:function(e,t,n){t.default=void 0;var i=T(n(68374)),o=T(n(55994)),a=T(n(73176)),r=T(n(99393)),s=n(20576),l=n(31421),u=n(95479),d=n(35922),c=n(13306),h=n(6415),f=T(n(96688)),p=T(n(49387)),g=n(37518),m=T(n(29783)),_=T(n(14390)),v=T(n(28109)),y=n(39611),x=T(n(29837)),b=n(95429),w=T(n(20530)),C=n(68494),S=T(n(39114)),k=n(58201),D=n(61902),I=n(31648);function T(e){return e&&e.__esModule?e:{default:e}}var E="dx-dropdowneditor-overlay",A="dx-dropdowneditor-overlay-flipped",O="ios"===w.default.current().platform,P=x.default.inherit({_supportedKeys:function(){return(0,c.extend)({},this.callBase(),{tab:function(e){if(this.option("opened"))if("instantly"!==this.option("applyValueMode")){var t=e.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();t&&o.default.trigger(t,"focus"),e.preventDefault()}else this.close()},escape:function(e){return this.option("opened")&&e.preventDefault(),this.close(),!0},upArrow:function(e){return!(!(0,y.isCommandKeyPressed)(e)&&(e.preventDefault(),e.stopPropagation(),e.altKey)&&(this.close(),1))},downArrow:function(e){return!(!(0,y.isCommandKeyPressed)(e)&&(e.preventDefault(),e.stopPropagation(),e.altKey)&&(this._validatedOpening(),1))},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0}})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:m.default}])},_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{showTitle:!1},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:v.default.format("OK"),cancelButtonText:v.default.format("Cancel"),buttonsLocation:"default",useHiddenSubmitElement:!1})},_useTemplates:function(){return!0},_getDefaultPopupPosition:function(e){var t=(0,g.getDefaultAlignment)(e);return{offset:{h:0,v:-1},my:t+" top",at:t+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"generic"===e.platform},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find(".dx-dropdowneditor-input-wrapper").first()},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._updatePopupPosition(this.option("rtlEnabled")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_updatePopupPosition:function(e){var t=this._getDefaultPopupPosition(e),n=t.my,i=t.at,o=this.option("popupPosition");this.option("popupPosition",(0,c.extend)({},o,{my:n,at:i}))},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this._renderSubmitElement(),this.callBase(),this.$element().addClass("dx-dropdowneditor"),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._attachFocusOutHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this._wrapInput(),this._setDefaultAria()},_wrapInput:function(){this._$container=this.$element().wrapInner((0,i.default)("<div>").addClass("dx-dropdowneditor-input-wrapper")).children().eq(0)},_setDefaultAria:function(){this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this._isEditable()||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&this._detachFocusEvents()},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderMask:function(){this.option("fieldTemplate")||this.callBase()},_renderField:function(){var e=this._getFieldTemplate();e&&this._renderTemplatedField(e,this._fieldRenderData())},_renderPlaceholder:function(){this._getFieldTemplate()||this.callBase()},_renderValue:function(){this.option("useHiddenSubmitElement")&&this._setSubmitValue(),this.callBase().always(this._renderField.bind(this))},_renderTemplatedField:function(e,t){var n=this,a=(0,l.focused)(this._input()),r=this._$container;this._detachKeyboardEvents(),this._refreshButtonsContainer(),this._detachWrapperContent(),this._detachFocusEvents(),r.empty();var s=(0,i.default)("<div>").addClass("dx-dropdowneditor-field-template-wrapper").appendTo(r);e.render({model:t,container:(0,h.getPublicElement)(s),onRendered:function(){var e=n._input();if(!e.length)throw f.default.Error("E1010");n._integrateInput(),a&&o.default.trigger(e,"focus")}}),this._attachWrapperContent(r)},_detachWrapperContent:function(){var e,t,n;this.option("useHiddenSubmitElement")&&(null===(e=this._$submitElement)||void 0===e||e.detach());var i=null===(t=this._$beforeButtonsContainer)||void 0===t?void 0:t[0].parentNode,o=null===(n=this._$afterButtonsContainer)||void 0===n?void 0:n[0].parentNode;null==i||i.removeChild(this._$beforeButtonsContainer[0]),null==o||o.removeChild(this._$afterButtonsContainer[0])},_attachWrapperContent:function(e){var t,n=this.option("useHiddenSubmitElement");e.prepend(this._$beforeButtonsContainer),n&&(null===(t=this._$submitElement)||void 0===t||t.appendTo(e)),e.append(this._$afterButtonsContainer)},_refreshButtonsContainer:function(){this._$buttonsContainer=this.$element().children().eq(0)},_integrateInput:function(){this._renderFocusState(),this._refreshValueChangeEvent(),this._refreshEvents(),this._refreshEmptinessEvent()},_refreshEmptinessEvent:function(){o.default.off(this._input(),"input blur",this._toggleEmptinessEventHandler),this._renderEmptinessEvent()},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this._templateManager.addDefaultTemplates({dropDownButton:new C.FunctionTemplate((function(e){var t=(0,i.default)("<div>").addClass("dx-dropdowneditor-icon");(0,i.default)(e.container).append(t)}))}),this.callBase()},_renderOpenHandler:function(){var e=this._inputWrapper(),t=(0,y.addNamespace)(b.name,this.NAME),n=this.option("openOnFieldClick");o.default.off(e,t),o.default.on(e,t,this._getInputClickHandler(n)),this.$element().toggleClass("dx-dropdowneditor-field-clickable",n),n&&(this._openOnFieldClickAction=this._createAction(this._openHandler.bind(this)))},_attachFocusOutHandler:function(){var e=this;O&&(this._detachFocusOutEvents(),o.default.on(this._inputWrapper(),(0,y.addNamespace)("focusout",this.NAME),(function(t){var n=t.relatedTarget,o=e.content?(0,i.default)(e.content()).closest(".dx-dropdowneditor-overlay"):e._$popup;n&&e.option("opened")&&0===(0,i.default)(n).closest(".dx-dropdowneditor-overlay",o).length&&e.close()})))},_detachFocusOutEvents:function(){O&&o.default.off(this._inputWrapper(),(0,y.addNamespace)("focusout",this.NAME))},_getInputClickHandler:function(e){var t=this;return e?function(e){t._executeOpenAction(e)}:function(e){t._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(e){this._openOnFieldClickAction({event:e})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!(0,l.focused)(this._input())&&(this._resetCaretPosition(),o.default.trigger(this._input(),"focus")),!0)},_resetCaretPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._input().get(0);if(t){var n=t.value,i=(0,d.isDefined)(n)&&(e||this._isEditable())?n.length:0;this._caret({start:i,end:i},!0)}},_isEditable:function(){return this.option("acceptCustomValue")},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.$element().toggleClass("dx-dropdowneditor-active",e),this._setPopupOption("visible",e),this.setAria({expanded:e}),this.setAria("owns",e?this._popupContentId:void 0,this.$element())},_createPopup:function(){this._$popup||(this._$popup=(0,i.default)("<div>").addClass(E).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopupContent:s.noop,_renderPopup:function(){var e=(0,c.extend)(this._popupConfig(),this._options.cache("dropDownOptions"));this._popup=this._createComponent(this._$popup,S.default,e),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this._contentReadyHandler(),this._setPopupContentId(this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_setPopupContentId:function(e){this._popupContentId="dx-"+new a.default,this.setAria("id",this._popupContentId,e)},_contentReadyHandler:s.noop,_popupConfig:function(){var e=this;return{onInitialized:this._popupInitializedHandler(),position:(0,c.extend)(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("dropDownOptions.showTitle"),_ignoreFunctionValueDeprecation:!0,width:function(){return(0,D.getElementWidth)(e.$element())},height:"auto",shading:!1,wrapperAttr:{class:E},hideOnParentScroll:!0,closeOnOutsideClick:this._closeOutsideDropDownHandler.bind(this),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,dragEnabled:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1,contentTemplate:null}},_popupInitializedHandler:function(){var e=this;return this.option("onPopupInitialized")?function(t){e._popupInitializedAction({popup:t.component})}:null},_dimensionChanged:function(){var e=this;void 0===(0,D.getSizeValue)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",(function(){return(0,D.getElementWidth)(e.$element())}))},_popupPositionedHandler:function(e){e.position&&this._popup.$overlayContent().toggleClass(A,e.position.v.flip)},_popupShowingHandler:s.noop,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){var e;this._openAction();var t=this._popup.$overlayContent(),n=(0,I.locate)(t);if(this._label.isVisible()&&t.hasClass(A)){var i=this._label.$element();(0,I.move)(t,{top:n.top-parseInt(i.css("fontSize"))})}null===(e=this._validationMessage)||void 0===e||e.option("positionRequest",this._getValidationMessagePositionRequest())},_popupHiddenHandler:function(){var e;this._closeAction(),null===(e=this._validationMessage)||void 0===e||e.option("positionRequest",this._getValidationMessagePositionRequest())},_getValidationMessagePositionRequest:function(){var e="below";if(this._popup&&this._popup.option("visible")){var t=p.default.setup(this.$element()).top,n=p.default.setup(this._popup.$content()).top;e=t+this.option("popupPosition").offset.v>n?"below":"above"}return e},_closeOutsideDropDownHandler:function(e){var t=e.target,n=(0,i.default)(t),o=this.getButton("dropDown"),a=o&&o.$element(),r=!!n.closest(this.$element()).length,s=!!n.closest(a).length;return!r&&!s},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup.$wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup.$wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(e){var t=(0,i.default)(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(o.default.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){o.default.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),n=e;if("default"!==t){var i=(0,s.splitPair)(t);(0,u.each)(n,(function(e,t){(0,c.extend)(t,{toolbar:i[0],location:i[1]})}))}return n},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_popupOptionChanged:function(e){var t=_.default.getOptionsFromContainer(e);this._setPopupOption(t);var n=Object.keys(t);-1===n.indexOf("width")&&-1===n.indexOf("height")||this._dimensionChanged()},_renderSubmitElement:function(){this.option("useHiddenSubmitElement")&&(this._$submitElement=(0,i.default)("<input>").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue:function(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement:function(){return this.option("useHiddenSubmitElement")?this._$submitElement:this.callBase()},_dispose:function(){this._detachFocusOutEvents(),this.callBase()},_optionChanged:function(e){var t;switch(e.name){case"width":case"height":this.callBase(e),null===(t=this._popup)||void 0===t||t.repaint();break;case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":(0,d.isDefined)(e.value)?this._renderField():this._invalidate();break;case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(e),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;case"popupPosition":break;case"deferRendering":(0,k.hasWindow)()&&this._createPopup();break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"useHiddenSubmitElement":this._$submitElement&&(this._$submitElement.remove(),this._$submitElement=void 0),this._renderSubmitElement();break;case"rtlEnabled":this._updatePopupPosition(e.value),this.callBase(e);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return(0,h.getPublicElement)(this._input())},content:function(){return this._popup?this._popup.content():null}});(0,r.default)("dxDropDownEditor",P);var M=P;t.default=M,e.exports=t.default,e.exports.default=t.default},92059:function(e,t,n){t.default=void 0;var i=n(58664),o=k(n(68374)),a=n(58201),r=k(n(55994)),s=k(n(73176)),l=k(n(99393)),u=n(20576),d=n(35922),c=n(13306),h=n(89386),f=k(n(44687)),p=k(n(56757)),g=k(n(96688)),m=n(39611),_=k(n(20530)),v=k(n(96687)),y=n(95479),x=k(n(88718)),b=k(n(28109)),w=n(91627),C=n(62754),S=k(n(37178));function k(e){return e&&e.__esModule?e:{default:e}}function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var I=(0,a.getWindow)(),T="dx-skip-gesture-event",E=["startswith","contains","endwith","notcontains"],A=f.default.inherit({_supportedKeys:function(){var e=this.callBase();return(0,c.extend)({},e,{tab:function(t){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(t);var n=(0,o.default)(this._list.option("focusedElement"));n.length&&this._setSelectedElement(n)}e.tab.apply(this,arguments)},space:u.noop,home:u.noop,end:u.noop})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(e){var t=this._valueGetter(this._list._getItemData(e));this._setValue(t)},_setValue:function(e){this.option("value",e)},_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),(0,c.extend)(x.default._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:b.default.format("dxCollectionWidget-noDataText"),onSelectionChanged:null,onItemClick:u.noop,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},wrapItemText:!1,useItemTextAsTitle:!1}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),(0,c.extend)(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_setListFocusedElementOptionChange:function(){this._list._updateParentActiveDescendant=this._updateActiveDescendant.bind(this)},_initItems:function(){var e=this.option().items;e&&!e.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new w.ChildDefaultTemplate("item")})},_isEditable:function(){return this.callBase()||this.option("searchEnabled")},_saveFocusOnWidget:function(e){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_fitIntoRange:function(e,t,n){return e>n?t:e<t?n:e},_items:function(){var e=this._getPlainItems(!this._list&&this._dataSource.items());return new v.default(e).filter("disabled","<>",!0).toArray()},_calcNextItem:function(e){var t=this._items();return t[this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1)]},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return(0,y.each)(e,function(e,i){if(this._isValueEquals(i,t))return n=e,!1}.bind(this)),n},_createPopup:function(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup.$wrapper().addClass(this._popupWrapperClass());var e=this._popup.$content();r.default.off(e,"mouseup"),r.default.on(e,"mouseup",this._saveFocusOnWidget.bind(this));var t=this;this._popup.on({shown:function(){t.$element().addClass(T)},hidden:function(){t.$element().removeClass(T)}})},_updateCustomBoundaryContainer:function(){var e=this.option("dropDownOptions.container"),t=e&&(0,o.default)(e);if(t&&t.length&&!(0,d.isWindow)(t.get(0))){var n=[].slice.call(t.parents());n.unshift(t.get(0)),(0,y.each)(n,function(e,t){return t!==(0,o.default)("body").get(0)&&("hidden"===I.getComputedStyle(t).overflowY?(this._$customBoundaryContainer=(0,o.default)(t),!1):void 0)}.bind(this))}},_popupWrapperClass:function(){return"dx-dropdownlist-popup-wrapper"},_renderInputValue:function(){var e=this._getCurrentValue();return this._rejectValueLoading(),this._loadInputValue(e,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,e))},_loadInputValue:function(e,t){return this._loadItem(e).always(t)},_getItemFromPlain:function(e,t){var n,i;return t&&"object"!==D(e)&&(t.itemByValue||(t.itemByValue={},(n=this._getPlainItems()).forEach((function(e){t.itemByValue[this._valueGetter(e)]=e}),this)),i=t.itemByValue[e]),i||(n=this._getPlainItems(),i=(0,u.grep)(n,function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0]),i},_loadItem:function(e,t){var n=this._getItemFromPlain(e,t);return void 0!==n?(new C.Deferred).resolve(n).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||this._dataSource.items()||[];for(var n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);return t},_updateActiveDescendant:function(){var e,t=this.option("opened"),n=null===(e=this._list)||void 0===e?void 0:e.getFocusedItemId(),i=(0,o.default)("#".concat(n)).length>0,a=t&&i&&n;this.setAria({activedescendant:a||null})},_setSelectedItem:function(e){var t=this._displayValue(e);this.option("selectedItem",(0,u.ensureDefined)(e,null)),this.option("displayValue",t)},_displayValue:function(e){return this._displayGetter(e)},_refreshSelected:function(){var e={};this._listItemElements().each(function(t,n){var i=(0,o.default)(n),a=this._valueGetter(i.data("dxListItemData"));this._isSelectedValue(a,e)?this._list.selectItem(i):this._list.unselectItem(i)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._list&&this._list.option("focusedElement",null)},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_validateSearchMode:function(){var e=this.option("searchMode"),t=e.toLowerCase();if((0,h.inArray)(t,E)<0)throw g.default.Error("E1019",e)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(".dx-list-item"):(0,o.default)()},_popupConfig:function(){return(0,c.extend)(this.callBase(),{templatesRenderAsynchronously:!1,autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this.callBase(),this._renderList()},_getKeyboardListeners:function(){var e=this._canListHaveFocus();return this.callBase().concat([!e&&this._list])},_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this)},_renderList:function(){this._listId="dx-"+(new s.default)._value;var e=this._$list=(0,o.default)("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(e,p.default,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._list.option("_listAttributes",{role:"combobox"}),this._renderPreventBlur(this._$list),this._setListFocusedElementOptionChange()},_renderPreventBlur:function(e){var t=(0,m.addNamespace)("mousedown","dxDropDownList");r.default.off(e,t),r.default.on(e,t,function(e){e.preventDefault()}.bind(this))},_renderOpenedState:function(){this.callBase(),this._list&&this._updateActiveDescendant(),this.setAria({controls:this._list&&this._listId,owns:this._popup&&this._popupContentId})},_setDefaultAria:function(){this.setAria({haspopup:"listbox",autocomplete:"list"})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){return!!this._list.option("dataSource")!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===_.default.real().deviceType},_listConfig:function(){var e={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),grouped:this.option("grouped"),wrapItemText:this.option("wrapItemText"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_revertPageOnEmptyLoad:!0,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return this._canListHaveFocus()||(e.tabIndex=null),e},_canListHaveFocus:function(){return!1},_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._dimensionChanged(),this._contentReadyAction()},_setListOption:function(e,t){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(e){this._listItemClickHandler(e),this._itemClickAction(e)},_listItemClickHandler:u.noop,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_needClearFilter:function(){return!this._canKeepDataSource()&&this._needPassDataSourceToList()},_canKeepDataSource:function(){var e,t=this._isMinSearchLengthExceeded();return(null===(e=this._dataSource)||void 0===e?void 0:e.isLoaded())&&this.option("showDataBeforeSearch")&&this.option("minSearchLength")&&!t&&!this._isLastMinSearchLengthExceeded},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return(0,m.addNamespace)("input",this.NAME+"Search")},_getCompositionStartEvent:function(){return(0,m.addNamespace)("compositionstart",this.NAME+"CompositionStart")},_getCompositionEndEvent:function(){return(0,m.addNamespace)("compositionend",this.NAME+"CompositionEnd")},_getSetFocusPolicyEvent:function(){return(0,m.addNamespace)("input",this.NAME+"FocusPolicy")},_renderEvents:function(){var e=this;this.callBase(),r.default.on(this._input(),this._getSetFocusPolicyEvent(),(function(){e._setFocusPolicy()})),this._shouldRenderSearchEvent()&&(r.default.on(this._input(),this._getSearchEvent(),(function(t){e._searchHandler(t)})),r.default.on(this._input(),this._getCompositionStartEvent(),(function(){e._isTextCompositionInProgress(!0)})),r.default.on(this._input(),this._getCompositionEndEvent(),(function(t){e._isTextCompositionInProgress(void 0),e._searchHandler(t,e._searchValue())})))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){r.default.off(this._input(),this._getSearchEvent()),r.default.off(this._input(),this._getSetFocusPolicyEvent()),r.default.off(this._input(),this._getCompositionStartEvent()),r.default.off(this._input(),this._getCompositionEndEvent()),this.callBase()},_isTextCompositionInProgress:function(e){if(!arguments.length)return this._isTextComposition;this._isTextComposition=e},_searchHandler:function(e,t){var n=this;if(!this._isTextCompositionInProgress())if(this._isMinSearchLengthExceeded()){var i=this.option("searchTimeout");i?(this._clearSearchTimer(),this._searchTimer=setTimeout((function(){n._searchDataSource(t)}),i)):this._searchDataSource(t)}else this._searchCanceled()},_searchCanceled:function(){this._clearSearchTimer(),this._needClearFilter()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._searchValue();this._filterDataSource(e)},_filterDataSource:function(e){this._clearSearchTimer();var t=this._dataSource;t&&(t.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),t.searchOperation(this.option("searchMode")),t.searchValue(e),t.load().done(this._dataSourceFiltered.bind(this,e)))},_clearFilter:function(){var e=this._dataSource;e&&e.searchValue()&&e.searchValue(null)},_dataSourceFiltered:function(){this._isLastMinSearchLengthExceeded=this._isMinSearchLengthExceeded(),this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){if(!this.option("readOnly")&&this._searchValue()){var e=this._shouldOpenPopup();e&&!this._isFocused()||(this.option("opened",e),e&&this._dimensionChanged())}},_dataSourceChangedHandler:function(e){0===this._dataSource.pageIndex()?this.option().items=e:this.option().items=this.option().items.concat(e)},_hasItemsToShow:function(){var e=(this._dataSource&&this._dataSource.items()||[]).length;return!(!this._needPassDataSourceToList()||!e)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._dimensionChanged()},_dimensionChanged:function(){this.callBase(arguments),this._popup&&this._updatePopupDimensions()},_needPopupRepaint:function(){if(!this._dataSource)return!1;var e=this._dataSource.pageIndex(),t=(0,d.isDefined)(this._pageIndex)&&e<=this._pageIndex;return this._pageIndex=e,t},_updatePopupDimensions:function(){this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions()},_getMaxHeight:function(){var e=this.$element(),t=this._$customBoundaryContainer,n=e.offset().top-(t?t.offset().top:0),o=(0,i.getOuterHeight)(I),a=t?Math.min((0,i.getOuterHeight)(t),o):o,r=Math.max(n,a-n-(0,i.getOuterHeight)(e));return Math.min(.5*a,r)},_clean:function(){this._list&&delete this._list,delete this._isLastMinSearchLengthExceeded,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_setSubmitValue:function(){var e=this.option("value"),t=this._shouldUseDisplayValue(e)?this._displayGetter(e):e;this._getSubmitElement().val(t)},_shouldUseDisplayValue:function(e){return"this"===this.option("valueExpr")&&(0,d.isObject)(e)},_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(e.name,e.value),this.callBase(e);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"wrapItemText":case"noDataText":case"useItemTextAsTitle":this._setListOption(e.name);break;case"displayValue":this.option("text",e.value);break;case"itemTemplate":case"searchTimeout":break;case"selectedItem":e.previousValue!==e.value&&this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(x.default,S.default);(0,l.default)("dxDropDownList",A);var O=A;t.default=O,e.exports=t.default,e.exports.default=t.default},61902:function(e,t,n){t.getSizeValue=t.getElementWidth=void 0;var i=n(58664),o=n(58201);t.getElementWidth=function(e){if((0,o.hasWindow)())return(0,i.getOuterWidth)(e)},t.getSizeValue=function(e){return null===e&&(e=void 0),"function"==typeof e&&(e=e()),e}},79561:function(e,t,n){t.default=void 0;var i=n(58664),o=m(n(68374)),a=n(58201),r=m(n(20530)),s=m(n(99393)),l=n(13306),u=m(n(14390)),d=m(n(63008)),c=m(n(22348)),h=m(n(53305)),f=m(n(56757)),p=n(75811),g=n(91627);function m(e){return e&&e.__esModule?e:{default:e}}var _=(0,a.getWindow)(),v={popupWidth:"width",popupHeight:"height",popupMaxHeight:"maxHeight",popupAutoResizeEnabled:"autoResizeEnabled"},y={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},x=u.default.inherit({_supportedKeys:function(){var e={};return this.option("opened")&&this._list.option("focusedElement")||(e=this._button._supportedKeys()),(0,l.extend)(this.callBase(),e,{tab:function(){this._popup&&this._popup.hide()}})},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",buttonText:"",buttonIcon:"overflow",buttonWidth:void 0,buttonHeight:void 0,buttonTemplate:"content",onButtonClick:null,usePopover:!1,popupWidth:"auto",popupHeight:"auto",activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,selectionMode:"none",selectedItemKeys:[],deferRendering:!1,popupPosition:{my:"top center",at:"bottom center",collision:"fit flip",offset:{v:1}},popupAnimation:void 0,onItemRendered:null,menuWidget:f.default,popupMaxHeight:void 0,closeOnClick:!0,useInkRipple:!1,container:void 0,popupAutoResizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{usePopover:!0}},{device:{platform:"generic"},options:{popupPosition:{offset:{v:4}}}},{device:function(){return"desktop"===r.default.real().deviceType&&!r.default.isSimulator()},options:{focusStateEnabled:!0}},{device:{platform:"android"},options:{popupPosition:{my:"top "+(this.option("rtlEnabled")?"left":"right"),at:"top "+(this.option("rtlEnabled")?"left":"right"),collision:"flipfit"},popupAnimation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}},{device:function(){return(0,p.isMaterial)()},options:{useInkRipple:!0}}])},_initOptions:function(e){"android"===r.default.current().platform&&(e.popupPosition||(e.popupPosition={at:(e.usePopover?"bottom ":"top ")+(e.rtlEnabled?"left":"right")})),this.callBase(e)},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this.callBase(),this.$element().addClass("dx-dropdownmenu"),this._initDataSource(),this._initItemClickAction(),this._initButtonClickAction()},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initButtonClickAction:function(){this._buttonClickAction=this._createActionByOption("onButtonClick")},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new g.ChildDefaultTemplate("content")}),this.callBase()},_initMarkup:function(){this._renderButton(),this.callBase()},_render:function(){this.callBase(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})},_renderContentImpl:function(){this.option("opened")&&this._renderPopup()},_clean:function(){this._cleanFocusState(),this._popup&&(this._popup.$element().remove(),delete this._$popup)},_renderButton:function(){var e=this.$element().addClass("dx-dropdownmenu-button"),t=this._buttonOptions();this._button=this._createComponent(e,d.default,t)},_toggleActiveState:function(e,t,n){this._button._toggleActiveState(e,t,n)},_buttonOptions:function(){return{text:this.option("buttonText"),icon:this.option("buttonIcon"),width:this.option("buttonWidth"),height:this.option("buttonHeight"),useInkRipple:this.option("useInkRipple"),template:this.option("buttonTemplate"),hoverStateEnabled:!1,focusStateEnabled:!1,onClick:function(e){this.option("opened",!this.option("opened")),this._buttonClickAction(e)}.bind(this)}},_toggleMenuVisibility:function(e){var t=void 0===e?!this._popup.option("visible"):e;e&&this._renderPopup(),this._popup.toggle(t),this.setAria("expanded",t)},_renderPopup:function(){if(!this._$popup){var e=this._$popup=(0,o.default)("<div>").appendTo(this.$element()),t=this._popupOptions();this._popup=this._createComponent(e,c.default,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component.$wrapper().addClass("dx-dropdownmenu-popup-wrapper").toggleClass("dx-dropdownmenu-popup",e)},visible:this.option("opened"),deferRendering:!1,contentTemplate:function(e){this._renderList(e)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(e){"visible"===e.name&&this.option("opened",e.value)}.bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight"),container:this.option("container"),autoResizeEnabled:this.option("popupAutoResizeEnabled")}},_renderList:function(e){var t=(0,o.default)(e),n=this._listOptions();t.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var a=.5*(0,i.getHeight)(_);(0,i.getHeight)(t)>a&&(0,i.setHeight)(t,a)},_listOptions:function(){return{pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",selectionMode:this.option("selectionMode"),selectedItemKeys:this.option("selectedItemKeys"),itemTemplate:this.option("itemTemplate"),onItemClick:function(e){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_getKeyboardListeners:function(){return this.callBase().concat([this._list])},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(t,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(y[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(v[t],n);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(t,n),this.callBase(e);break;case"selectionMode":case"selectedItemKeys":case"onItemRendered":this._list&&this._list.option(t,n);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(n);break;case"deferRendering":case"popupPosition":case"closeOnClick":break;case"container":this._popup&&this._popup.option(e.name,e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(h.default);(0,s.default)("dxDropDownMenu",x);var b=x;t.default=b,e.exports=t.default,e.exports.default=t.default},96452:function(e,t,n){t.default=void 0;var i=m(n(68374)),o=n(97906),a=m(n(44504)),r=n(58201),s=n(39611),l=n(13306),u=m(n(14390)),d=m(n(90964)),c=m(n(55994)),h=m(n(8336)),f=m(n(73176)),p=n(20576),g=n(3532);function m(e){return e&&e.__esModule?e:{default:e}}var _="dx-invalid-message-auto",v="dx-validation-target",y="invalid",x=["outlined","filled","underlined"],b={validationMessageMode:"mode",validationMessageOffset:"offset",validationBoundary:"boundary"},w=u.default.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.validationRequest=(0,a.default)(),this.callBase.apply(this,arguments)},_createElement:function(e){this.callBase(e);var t=this.$element();t&&(0,o.data)(t[0],v,this)},_initOptions:function(e){this.callBase.apply(this,arguments),this.option(d.default.initValidationOptions(e))},_init:function(){this.callBase(),this._options.cache("validationTooltipOptions",this.option("validationTooltipOptions")),this.$element().addClass("dx-show-invalid-badge")},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationErrors:null,validationStatus:"valid",validationMessageMode:"auto",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})},_attachKeyboardEvents:function(){this.option("readOnly")||this.callBase()},_setOptionsByReference:function(){this.callBase(),(0,l.extend)(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState()},_raiseValueChangeAction:function(e,t){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(e,t))},_valueChangeArgs:function(e,t){return{value:e,previousValue:t,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(e){this._valueChangeEventInstance=e},_focusInHandler:function(e){var t="auto"===this.option("validationMessageMode");if(this._canValueBeChangedByClick()&&t){var n,i=null===(n=this._validationMessage)||void 0===n?void 0:n.$wrapper();null==i||i.removeClass(_),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout((function(){return null==i?void 0:i.addClass(_)}),150)}return this.callBase(e)},_canValueBeChangedByClick:function(){return!1},_getStylingModePrefix:function(){return"dx-editor-"},_renderStylingMode:function(){var e=this,t=this.option("stylingMode"),n=this._getStylingModePrefix(),i=x.map((function(e){return n+e}));i.forEach((function(t){return e.$element().removeClass(t)}));var o=n+t;if(-1===i.indexOf(o)){var a=this._getDefaultOptions().stylingMode,r=this._convertRulesToOptions(this._defaultOptionsRules()).stylingMode;o=n+(r||a)}this.$element().addClass(o)},_getValidationErrors:function(){var e=this.option("validationErrors");return!e&&this.option("validationError")&&(e=[this.option("validationError")]),e},_disposeValidationMessage:function(){this._$validationMessage&&(this._$validationMessage.remove(),this.setAria("describedby",null),this._$validationMessage=void 0,this._validationMessage=void 0)},_toggleValidationClasses:function(e){this.$element().toggleClass("dx-invalid",e),this.setAria(y,e||void 0)},_renderValidationState:function(){var e=this.option("isValid")&&this.option("validationStatus")!==y,t=this._getValidationErrors(),n=this.$element();if(this._toggleValidationClasses(!e),(0,r.hasWindow)()&&(this._disposeValidationMessage(),!e&&t)){var o=this.option(),a=o.validationMessageMode,s=o.validationMessageOffset,u=o.validationBoundary,d=o.rtlEnabled;this._$validationMessage=(0,i.default)("<div>").appendTo(n);var c="dx-".concat(new f.default);this.setAria("describedby",c),this._validationMessage=new h.default(this._$validationMessage,(0,l.extend)({validationErrors:t,rtlEnabled:d,target:this._getValidationMessageTarget(),container:n,mode:a,positionRequest:"below",offset:s,boundary:u,contentId:c},this._options.cache("validationTooltipOptions"))),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}},_getValidationMessageTarget:function(){return this.$element()},_toggleReadOnlyState:function(){var e=this.option("readOnly");this._toggleBackspaceHandler(e),this.$element().toggleClass("dx-state-readonly",!!e),this.setAria("readonly",e||void 0)},_toggleBackspaceHandler:function(e){var t=this._keyboardEventBindingTarget(),n=(0,s.addNamespace)("keydown","editorReadOnly");c.default.off(t,n),e&&c.default.on(t,n,(function(e){"backspace"===(0,s.normalizeKeyName)(e)&&e.preventDefault()}))},_dispose:function(){var e=this.$element()[0];(0,o.data)(e,v,null),clearTimeout(this.showValidationMessageTimeout),this._disposeValidationMessage(),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_setValidationMessageOption:function(e){var t,n=e.name,i=e.value,o=b[n]?b[n]:n;null===(t=this._validationMessage)||void 0===t||t.option(o,i)},_hasActiveElement:p.noop,_optionChanged:function(e){var t;switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this}),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(e),null===(t=this._validationMessage)||void 0===t||t.updateMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(d.default.synchronizeValidationOptions(e,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":case"validationMessageOffset":this._setValidationMessageOption(e);break;case"rtlEnabled":this._setValidationMessageOption(e),this.callBase(e);break;case"validationTooltipOptions":this._innerWidgetOptionChanged(this._validationMessage,e);break;default:this.callBase(e)}},blur:function(){this._hasActiveElement()&&(0,g.resetActiveElement)()},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}});w.isEditor=function(e){return e instanceof w};var C=w;t.default=C,e.exports=t.default,e.exports.default=t.default},88718:function(e,t,n){t.default=void 0;var i=h(n(26974)),o=n(47617),a=n(20576),r=n(35922),s=n(13306),l=h(n(53305)),u=n(85273),d=h(n(26562)),c=n(62754);function h(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=(0,s.extend)({},l.default,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new u.DataSource({store:new d.default(this.option("items")),pageSize:0}))},_compileDisplayGetter:function(){this._displayGetter=(0,o.compileGetter)(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=(0,o.compileGetter)(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(e){var t=new c.Deferred;return e=this._unwrappedValue(e),(0,r.isDefined)(e)?(this._loadSingle(this._valueGetterExpr(),e).done(function(n){this._isValueEquals(this._valueGetter(n),e)?t.resolve(n):t.reject()}.bind(this)).fail((function(){t.reject()})),this._loadValueDeferred=t,t.promise()):t.reject().promise()},_rejectValueLoading:function(){var e;null===(e=this._loadValueDeferred)||void 0===e||e.reject({shouldSkipCallback:!0})},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(e){var t;return(e=null!==(t=e)&&void 0!==t?t:this._getCurrentValue())&&this._dataSource&&"this"===this._valueGetterExpr()&&(e=this._getItemKey(e)),i.default.unwrap(e)},_getItemKey:function(e){var t=this._dataSource.key();if(Array.isArray(t)){for(var n={},i=0,o=t.length;i<o;i++)n[t[i]]=e[t[i]];return n}return t&&"object"===f(e)&&(e=e[t]),e},_isValueEquals:function(e,t){var n=this._dataSource&&this._dataSource.key(),i=this._compareValues(e,t);return!i&&n&&(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&(i=Array.isArray(n)?this._compareByCompositeKey(e,t,n):this._compareByKey(e,t,n)),i},_compareByCompositeKey:function(e,t,n){var i=r.isObject;if(!i(e)||!i(t))return!1;for(var o=0,a=n.length;o<a;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},_compareByKey:function(e,t,n){var o=i.default.unwrap,r=(0,a.ensureDefined)(o(e[n]),e),s=(0,a.ensureDefined)(o(t[n]),t);return this._compareValues(r,s)},_compareValues:function(e,t){return(0,o.toComparable)(e,!0)===(0,o.toComparable)(t,!0)},_initDynamicTemplates:a.noop,_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this.option("itemTemplate"))},_getCollectionKeyExpr:function(){var e=this.option("valueExpr");return(0,r.isString)(e)&&"this"!==e||(0,r.isFunction)(e)?e:null},_dataExpressionOptionChanged:function(e){switch(e.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._initDynamicTemplates(),this._setCollectionWidgetOption("displayExpr")}}});t.default=p,e.exports=t.default,e.exports.default=t.default},87446:function(e,t,n){var i;t.default=void 0;var o=((i=n(32737))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},57289:function(e,t,n){t.default=void 0;var i=_(n(19073)),o=_(n(45765)),a=_(n(4323)),r=_(n(41332)),s=_(n(98831)),l=_(n(49816)),u=_(n(41011)),d=n(73173),c=n(75084),h=n(62754),f=n(89386),p=n(13306),g=n(20576),m=n(35922);function _(e){return e&&e.__esModule?e:{default:e}}function v(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function x(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function b(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}var w="Files",C=function(){function e(e){e=e||{},this._options=(0,p.extend)({},e),this._isInitialized=!1,this._dataLoading=!1,this._dataLoadingDeferred=null,this._rootDirectoryInfo=this._createRootDirectoryInfo(e.rootText),this._currentDirectoryInfo=this._rootDirectoryInfo,this._defaultIconMap=this._createDefaultIconMap(),this._setSecurityController(),this._setProvider(e.fileProvider),this._initialize()}var t=e.prototype;return t._setSecurityController=function(){this._securityController=new S({allowedFileExtensions:this._options.allowedFileExtensions,maxFileSize:this._options.uploadMaxFileSize}),this._resetState()},t.setAllowedFileExtensions=function(e){(0,m.isDefined)(e)&&(this._options.allowedFileExtensions=e),this._setSecurityController(),this.refresh()},t.setUploadOptions=function(e){var t=e.maxFileSize,n=e.chunkSize;(0,m.isDefined)(n)&&(this._options.uploadChunkSize=n),(0,m.isDefined)(t)&&(this._options.uploadMaxFileSize=t,this._setSecurityController(),this.refresh())},t._setProvider=function(e){this._fileProvider=this._createFileProvider(e),this._resetState()},t.updateProvider=function(e,t){var n=this;return this._resetCurrentDirectory(),this._setProvider(e),this.refresh().then((function(){return n.setCurrentPath(t)}))},t._createFileProvider=function(e){if(e||(e=[]),Array.isArray(e))return new a.default({data:e});if(e instanceof i.default)return e;switch(e.type){case"remote":return new r.default(e);case"custom":return new s.default(e)}return new a.default(e)},t.setCurrentPath=function(e){var t=(0,d.getPathParts)(e),n=d.pathCombine.apply(void 0,v(t));return this.getCurrentDirectory().fileItem.relativeName===n?(new h.Deferred).resolve().promise():this._setCurrentDirectoryByPathParts(t)},t.setCurrentPathByKeys=function(e){if(!(0,g.equalByValue)(this.getCurrentDirectory().fileItem.pathKeys,e,0,!0))return this._setCurrentDirectoryByPathParts(e,!0)},t.getCurrentPath=function(){for(var e="",t=this.getCurrentDirectory();t&&!t.fileItem.isRoot();){var n=(0,d.getEscapedFileName)(t.fileItem.name);e=(0,d.pathCombine)(n,e),t=t.parentDirectory}return e},t.getCurrentDirectory=function(){return this._currentDirectoryInfo},t.setCurrentDirectory=function(e,t){if(e&&(t&&(e=this._getActualDirectoryInfo(e)),!this._currentDirectoryInfo||this._currentDirectoryInfo!==e)){var n=this._currentDirectoryInfo.fileItem.key!==e.fileItem.key;this._currentDirectoryInfo=e,n&&this._isInitialized&&(this._dataLoading||this._raiseDataLoading("navigation"),this._raiseSelectedDirectoryChanged(e))}},t._resetCurrentDirectory=function(){this._currentDirectoryInfo=this._rootDirectoryInfo},t.getCurrentItems=function(e){var t=this;return this._dataLoadingDeferred?this._dataLoadingDeferred.then((function(){return t._getCurrentItemsInternal(e)})):this._getCurrentItemsInternal(e)},t._getCurrentItemsInternal=function(e){var t=this,n=this.getCurrentDirectory();return this.getDirectoryContents(n).then((function(i){var o=t._separateItemsByType(i);return n.fileItem.hasSubDirectories=!!o.folders.length,e?o.files:i}))},t.getDirectories=function(e,t){return this.getDirectoryContents(e,t).then((function(e){return e.filter((function(e){return e.fileItem.isDirectory}))}))},t._separateItemsByType=function(e){var t=[],n=[];return e.forEach((function(e){return e.fileItem.isDirectory?t.push(e):n.push(e)})),{folders:t,files:n}},t.getDirectoryContents=function(e,t){var n=this;if(!e)return(new h.Deferred).resolve([this._rootDirectoryInfo]).promise();if(e.itemsLoaded)return(new h.Deferred).resolve(e.items).promise();var i=e.getInternalKey(),o=this._loadedItems[i];return o||(o=this._getFileItems(e,t).then((function(t){return t=t||[],e.items=t.map((function(t){return t.isDirectory&&n._createDirectoryInfo(t,e)||n._createFileInfo(t,e)})),e.itemsLoaded=!0,e.items})),this._loadedItems[i]=o,o.always((function(){delete n._loadedItems[i]})),o)},t._getFileItems=function(e,t){var n=this,i=null;try{i=this._fileProvider.getItems(e.fileItem)}catch(n){return this._handleItemLoadError(e,n,t)}return(0,h.when)(i).then((function(e){return n._securityController.getAllowedItems(e)}),(function(i){return n._handleItemLoadError(e,i,t)}))},t.createDirectory=function(e,t){var n=this,i=e.fileItem,o=this._createDirInfoByName(t,e),a=this._createEditActionInfo("create",o,e);return this._processEditAction(a,(function(e){e.parentDirectory=i,e.name=t,n._editingEvents.onDirectoryCreating(e)}),(function(){return n._fileProvider.createDirectory(i,t).done((function(e){return i.isRoot()||(i.hasSubDirectories=!0),e}))}),(function(){var e={parentDirectory:i,name:t};n._editingEvents.onDirectoryCreated(e)}),(function(){return n._resetDirectoryState(e,!0)}))},t.renameItem=function(e,t){var n=this,i=e.fileItem.createClone(),o=this._createEditActionInfo("rename",e,e.parentDirectory,{itemNewName:t});return this._processEditAction(o,(function(e,o){o.fileItem.isDirectory||n._securityController.validateExtension(t),e.item=i,e.newName=t,n._editingEvents.onItemRenaming(e)}),(function(e){return n._fileProvider.renameItem(e,t)}),(function(){var e={sourceItem:i,itemName:t};n._editingEvents.onItemRenamed(e)}),(function(){var t=n._getActualDirectoryInfo(e.parentDirectory);n._resetDirectoryState(t),n.setCurrentDirectory(t)}))},t.moveItems=function(e,t){var n=this,i=this._createEditActionInfo("move",e,t);return this._processEditAction(i,(function(e,i){e.item=i.fileItem,e.destinationDirectory=t.fileItem,n._editingEvents.onItemMoving(e)}),(function(e){return n._fileProvider.moveItems([e],t.fileItem)}),(function(e){var i={sourceItem:e.fileItem,parentDirectory:t.fileItem,itemName:e.fileItem.name,itemPath:(0,d.pathCombine)(t.fileItem.path,e.fileItem.name)};n._editingEvents.onItemMoved(i)}),(function(){t=n._getActualDirectoryInfo(t),e.forEach((function(e){return n._resetDirectoryState(e.parentDirectory,!0)})),n._resetDirectoryState(t),n.setCurrentDirectory(t),t.expanded=!0}))},t.copyItems=function(e,t){var n=this,i=this._createEditActionInfo("copy",e,t);return this._processEditAction(i,(function(e,i){e.item=i.fileItem,e.destinationDirectory=t.fileItem,n._editingEvents.onItemCopying(e)}),(function(e){return n._fileProvider.copyItems([e],t.fileItem)}),(function(e){var i={sourceItem:e.fileItem,parentDirectory:t.fileItem,itemName:e.fileItem.name,itemPath:(0,d.pathCombine)(t.fileItem.path,e.fileItem.name)};n._editingEvents.onItemCopied(i)}),(function(){t=n._getActualDirectoryInfo(t),n._resetDirectoryState(t),n.setCurrentDirectory(t),t.expanded=!0}))},t.deleteItems=function(e){var t=this,n=e.length>0?e[0].parentDirectory:null,i=this._createEditActionInfo("delete",e,n);return this._processEditAction(i,(function(e,n){e.item=n.fileItem,t._editingEvents.onItemDeleting(e)}),(function(e){return t._fileProvider.deleteItems([e])}),(function(e){return t._editingEvents.onItemDeleted({item:e.fileItem})}),(function(){e.forEach((function(e){var n=t._getActualDirectoryInfo(e.parentDirectory);t._resetDirectoryState(n),t.setCurrentDirectory(n)}))}))},t.processUploadSession=function(e,t){var n=this,i=this._getItemInfosForUploaderFiles(e.files,t),o=this._createEditActionInfo("upload",i,t,{sessionInfo:e});return this._processEditAction(o,(function(){}),(function(t,n){return e.deferreds[n]}),(function(){}),(function(){return n._resetDirectoryState(t,!0)}))},t.uploadFileChunk=function(e,t,n){var i=this,o=null;0===t.chunkIndex?(this._securityController.validateMaxFileSize(e.size),this._securityController.validateExtension(e.name),o=this._processBeforeItemEditAction((function(t){t.fileData=e,t.destinationDirectory=n,i._editingEvents.onFileUploading(t)}))):o=(new h.Deferred).resolve().promise();var a=o.then((function(){return i._fileProvider.uploadFileChunk(e,t,n)}));return t.chunkIndex===t.chunkCount-1&&(a=a.done((function(){var t={fileData:e,parentDirectory:n};i._editingEvents.onFileUploaded(t)}))),a},t.abortFileUpload=function(e,t,n){return(0,h.when)(this._fileProvider.abortFileUpload(e,t,n))},t.getFileUploadChunkSize=function(){var e=this._options.uploadChunkSize;return e&&e>0?e:this._fileProvider.getFileUploadChunkSize()},t.downloadItems=function(e){var t=this,n=!1,i=e.map((function(e){return t._processBeforeItemEditAction((function(n){n.item=e.fileItem,t._editingEvents.onItemDownloading(n)}),e)}));(0,c.whenSome)(i,null,(function(){n=!0})).then((function(){if(!n){var i=e.map((function(e){return e.fileItem}));t._fileProvider.downloadItems(i)}}))},t.getItemContent=function(e){var t=e.map((function(e){return e.fileItem}));return(0,h.when)(this._fileProvider.getItemsContent(t))},t._handleItemLoadError=function(e,t,n){e=this._getActualDirectoryInfo(e);var i=this._createEditActionInfo("getItems",e,e);return this._raiseEditActionStarting(i),this._raiseEditActionResultAcquired(i),this._raiseEditActionError(i,{errorCode:t.errorCode,errorText:t.errorText,fileItem:e.fileItem,index:0}),this._resetDirectoryState(e),e.expanded=!1,n||this.setCurrentDirectory(e.parentDirectory),(new h.Deferred).reject().promise()},t._processEditAction=function(e,t,n,i,o){var a=this;this._raiseEditActionStarting(e);var r=e.itemInfos.map((function(e,o){return a._processBeforeItemEditAction(t,e).then((function(){var t=n(e.fileItem,o);return Array.isArray(t)&&(t=t[0]),t.done((function(){return i(e)}))}))}));return e.singleRequest=1===r.length,this._raiseEditActionResultAcquired(e),(0,c.whenSome)(r,(function(t){return a._raiseCompleteEditActionItem(e,t)}),(function(t){return a._raiseEditActionItemError(e,t)})).then((function(){o(),a._raiseCompleteEditAction(e)}))},t._createEditActionInfo=function(e,t,n,i){i=i||{};var o=(t=Array.isArray(t)?t:[t]).map((function(e){return e.fileItem}));return{name:e,itemInfos:t,items:o,directory:n,customData:i,singleRequest:!0}},t._processBeforeItemEditAction=function(e,t){var n=new h.Deferred,i=this._createBeforeActionArgs();try{e(i,t)}catch(e){return n.reject(e).promise()}if(i.cancel){if(!0===i.cancel)return n.reject({errorText:i.errorText,errorCode:i.errorCode});(0,m.isPromise)(i.cancel)&&(0,h.when)(i.cancel).then((function(e){!0===e?n.reject():(0,m.isObject)(e)&&!0===e.cancel&&n.reject({errorText:e.errorText,errorCode:e.errorCode}),n.resolve()}),n.resolve)}else n.resolve();return n.promise()},t._createBeforeActionArgs=function(){return{errorCode:void 0,errorText:"",cancel:!1}},t._getItemInfosForUploaderFiles=function(e,t){for(var n=this._getPathInfo(t),i=[],a=0;a<e.length;a++){var r=e[a],s=new o.default(n,r.name,!1),l=this._createFileInfo(s,t);i.push(l)}return i},t.refresh=function(){var e=this;return this._lockRefresh?this._refreshDeferred:(this._lockRefresh=!0,this._executeDataLoad((function(){return e._refreshDeferred=e._refreshInternal()}),"refresh"))},t._refreshInternal=function(){var e=this,t={items:this._rootDirectoryInfo.items},n=this._getDirectoryPathKeyParts(this.getCurrentDirectory());return this._resetDirectoryState(this._rootDirectoryInfo),this._loadItemsRecursive(this._rootDirectoryInfo,t).then((function(){var t=e._findDirectoryByPathKeyParts(n);e.setCurrentDirectory(t),delete e._lockRefresh}))},t._loadItemsRecursive=function(e,t){var n=this;return this.getDirectories(e).then((function(e){for(var i=[],o=function(o){var a=(0,f.find)(t.items,(function(t){return e[o].fileItem.key===t.fileItem.key}));if(!a)return"continue";e[o].expanded=a.expanded,e[o].expanded&&i.push(n._loadItemsRecursive(e[o],a))},a=0;a<e.length;a++)o(a);return(0,c.whenSome)(i)}),(function(){return null}))},t._initialize=function(){var e=this,t=this._options.currentPathKeys&&this._options.currentPathKeys.length?this.setCurrentPathByKeys(this._options.currentPathKeys):this.setCurrentPath(this._options.currentPath),n=function(){e._isInitialized=!0,e._raiseInitialized()};t?(0,h.when)(t).always(n):n()},t._setCurrentDirectoryByPathParts=function(e,t){var n=this;return this._executeDataLoad((function(){return n._setCurrentDirectoryByPathPartsInternal(e,t)}),"navigation")},t._setCurrentDirectoryByPathPartsInternal=function(e,t){var n=this;return this._getDirectoryByPathParts(this._rootDirectoryInfo,e,t).then((function(e){for(var t=e.parentDirectory;t;t=t.parentDirectory)t.expanded=!0;n.setCurrentDirectory(e)}))},t._executeDataLoad=function(e,t){var n=this;return this._dataLoadingDeferred?this._dataLoadingDeferred.then((function(){return n._executeDataLoad(e,t)})):(this._dataLoading=!0,this._dataLoadingDeferred=new h.Deferred,this._isInitialized&&this._raiseDataLoading(t),e().always((function(){var e=n._dataLoadingDeferred;n._dataLoadingDeferred=null,n._dataLoading=!1,e.resolve()})))},t._getDirectoryByPathParts=function(e,t,n){var i=this;if(t.length<1)return(new h.Deferred).resolve(e).promise();var o=n?"key":"name";return this.getDirectories(e).then((function(e){var a=(0,f.find)(e,(function(e){return e.fileItem[o]===t[0]}));if(!a)return(new h.Deferred).reject().promise();var r=v(t).splice(1);return i._getDirectoryByPathParts(a,r,n)}))},t._getDirectoryPathKeyParts=function(e){for(var t=[];e&&e.parentDirectory;)t.unshift(e.fileItem.key),e=e.parentDirectory;return t},t._findDirectoryByPathKeyParts=function(e){var t=this._rootDirectoryInfo;if(0===e.length)return t;for(var n=0,i=t;i&&n<e.length;)(i=(0,f.find)(t.items,(function(t){return t.fileItem.key===e[n]})))&&(t=i),n++;return t},t._getActualDirectoryInfo=function(e){var t=this._getDirectoryPathKeyParts(e);return this._findDirectoryByPathKeyParts(t)},t._createDirInfoByName=function(e,t){var n=this._getPathInfo(t),i=new o.default(n,e,!0);return this._createDirectoryInfo(i,t)},t._createDirectoryInfo=function(e,t){return(0,p.extend)(this._createFileInfo(e,t),{icon:"folder",expanded:e.isRoot(),items:[]})},t._createFileInfo=function(e,t){return{fileItem:e,parentDirectory:t,icon:this._getFileItemDefaultIcon(e),getInternalKey:function(){return"FIK_".concat(this.fileItem.key)},getDisplayName:function(){return this.displayName||this.fileItem.name}}},t._resetDirectoryState=function(e,t){t&&(e=this._getActualDirectoryInfo(e)),e.itemsLoaded=!1,e.items=[]},t._getFileItemDefaultIcon=function(e){if(e.isDirectory)return"folder";var t=e.getFileExtension();return this._defaultIconMap[t]||"doc"},t._createDefaultIconMap=function(){var e={".txt":"txtfile",".rtf":"rtffile",".doc":"docfile",".docx":"docxfile",".xls":"xlsfile",".xlsx":"xlsxfile",".ppt":"pptfile",".pptx":"pptxfile",".pdf":"pdffile"};return[".png",".gif",".jpg",".jpeg",".ico",".bmp"].forEach((function(t){e[t]="image"})),e},t._createRootDirectoryInfo=function(e){var t=new o.default(null,"",!0),n=this._createDirectoryInfo(t,null);return n.displayName=e||w,n},t.setRootText=function(e){this._rootDirectoryInfo.displayName=e||w},t._raiseInitialized=function(){var e={controller:this};this._options.onInitialized&&this._options.onInitialized(e)},t._raiseDataLoading=function(e){this._options.onDataLoading&&this._options.onDataLoading({operation:e})},t._raiseSelectedDirectoryChanged=function(e){var t={selectedDirectoryInfo:e};this._options.onSelectedDirectoryChanged&&this._options.onSelectedDirectoryChanged(t)},t._raiseEditActionStarting=function(e){this._options.onEditActionStarting&&this._options.onEditActionStarting(e)},t._raiseEditActionResultAcquired=function(e){this._options.onEditActionResultAcquired&&this._options.onEditActionResultAcquired(e)},t._raiseEditActionError=function(e,t){this._options.onEditActionError&&this._options.onEditActionError(e,t)},t._raiseEditActionItemError=function(e,t){this._options.onEditActionItemError&&this._options.onEditActionItemError(e,t)},t._raiseCompleteEditActionItem=function(e,t){this._options.onCompleteEditActionItem&&this._options.onCompleteEditActionItem(e,t)},t._raiseCompleteEditAction=function(e){this._options.onCompleteEditAction&&this._options.onCompleteEditAction(e)},t._resetState=function(){this._selectedDirectory=null,this._rootDirectoryInfo.items=[],this._loadedItems={}},t._getPathInfo=function(e){for(var t=[],n=e;n&&!n.fileItem.isRoot();n=n.parentDirectory)t.unshift({key:n.fileItem.key,name:n.fileItem.name});return t},t.on=function(e,t){var n="on".concat(e);this._options[n]=t},b(e,[{key:"_editingEvents",get:function(){return this._options.editingEvents}}]),e}();t.default=C;var S=function(){function e(e){var t=this;this._options=(0,p.extend)({allowedFileExtensions:[],maxFileSize:0},e),this._extensionsMap={},this._allowedFileExtensions.forEach((function(e){t._extensionsMap[e.toUpperCase()]=!0}))}var t=e.prototype;return t.getAllowedItems=function(e){var t=this;return 0===this._allowedFileExtensions.length?e:e.filter((function(e){return e.isDirectory||t._isValidExtension(e.name)}))},t.validateExtension=function(e){if(!this._isValidExtension(e))throw new l.default(u.default.WrongFileExtension,null)},t.validateMaxFileSize=function(e){if(this._maxFileSize&&e>this._maxFileSize)throw new l.default(u.default.MaxFileSizeExceeded,null)},t._isValidExtension=function(e){if(0===this._allowedFileExtensions.length)return!0;var t=(0,d.getFileExtension)(e).toUpperCase();return this._extensionsMap[t]},b(e,[{key:"_allowedFileExtensions",get:function(){return this._options.allowedFileExtensions}},{key:"_maxFileSize",get:function(){return this._options.maxFileSize}}]),e}();e.exports=t.default,e.exports.default=t.default},52666:function(e,t,n){t.default=void 0;var i=n(58664),o=c(n(68374)),a=n(13306),r=n(35922),s=n(58201),l=c(n(14390)),u=c(n(32089)),d=c(n(93288));function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=(0,s.getWindow)(),p="dx-filemanager-adaptivity-drawer-panel",g="dx-drawer-panel-content-initial",m=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var c=l.prototype;return c._initMarkup=function(){e.prototype._initMarkup.call(this),this._initActions(),this._isInAdaptiveState=!1;var t=(0,o.default)("<div>").appendTo(this.$element());(0,o.default)("<div>").addClass(p).appendTo(t),this._drawer=this._createComponent(t,u.default),this._drawer.option({opened:!0,template:this._createDrawerTemplate.bind(this)}),(0,o.default)(this._drawer.content()).addClass(g);var n=t.find(".".concat(p)).first(),i=this.option("contentTemplate");(0,r.isFunction)(i)&&i(n),this._updateDrawerMaxSize()},c._createDrawerTemplate=function(e){this.option("drawerTemplate")(e),this._splitter=this._createComponent("<div>",d.default,{container:this.$element(),leftElement:(0,o.default)(this._drawer.content()),rightElement:(0,o.default)(this._drawer.viewContent()),onApplyPanelSize:this._onApplyPanelSize.bind(this),onActiveStateChanged:this._onActiveStateChanged.bind(this)}),this._splitter.$element().appendTo(e),this._splitter.disableSplitterCalculation(!0)},c._render=function(){e.prototype._render.call(this),this._checkAdaptiveState()},c._onApplyPanelSize=function(e){(0,s.hasWindow)()&&(this._splitter.isSplitterMoved()?((0,o.default)(this._drawer.content()).removeClass(g),this._setDrawerWidth(e.leftPanelWidth)):this._setDrawerWidth(""))},c._onActiveStateChanged=function(e){var t=e.isActive;this._splitter.disableSplitterCalculation(!t),!t&&this._splitter.$element().css("left","auto")},c._setDrawerWidth=function(e){(0,o.default)(this._drawer.content()).css("width",e),this._updateDrawerMaxSize(),this._drawer.resizeViewContent()},c._updateDrawerMaxSize=function(){this._drawer.option("maxSize",this._drawer.getRealPanelWidth())},c._dimensionChanged=function(e){e&&"height"===e||this._checkAdaptiveState()},c._checkAdaptiveState=function(){var e=this._isInAdaptiveState;this._isInAdaptiveState=this._isSmallScreen(),e!==this._isInAdaptiveState&&(this.toggleDrawer(!this._isInAdaptiveState,!0),(0,o.default)(this._drawer.content()).toggleClass("dx-drawer-panel-content-adaptive",this._isInAdaptiveState),this._raiseAdaptiveStateChanged(this._isInAdaptiveState)),this._isInAdaptiveState&&this._isDrawerOpened()&&this._updateDrawerMaxSize()},c._isSmallScreen=function(){return(0,i.getWidth)(f)<=573},c._isDrawerOpened=function(){return this._drawer.option("opened")},c._initActions=function(){this._actions={onAdaptiveStateChanged:this._createActionByOption("onAdaptiveStateChanged")}},c._raiseAdaptiveStateChanged=function(e){this._actions.onAdaptiveStateChanged({enabled:e})},c._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{drawerTemplate:null,contentTemplate:null,onAdaptiveStateChanged:null})},c._optionChanged=function(t){var n=t.name;switch(n){case"drawerTemplate":case"contentTemplate":this.repaint();break;case"onAdaptiveStateChanged":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},c.isInAdaptiveState=function(){return this._isInAdaptiveState},c.toggleDrawer=function(e,t){this._updateDrawerMaxSize(),this._drawer.option("animationEnabled",!t),this._drawer.toggle(e);var n=this._isDrawerOpened()&&!this.isInAdaptiveState();this._splitter.toggleDisabled(!n)},c.getSplitterElement=function(){return this._splitter.getSplitterBorderElement().get(0)},l}(l.default);t.default=m,e.exports=t.default,e.exports.default=t.default},47565:function(e,t,n){t.default=void 0;var i=s(n(68374)),o=n(13306),a=s(n(14390)),r=s(n(2616));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var s=a.prototype;return s._init=function(){e.prototype._init.call(this),this._currentDirectory=null},s._initMarkup=function(){e.prototype._initMarkup.call(this),this._initActions(),this._currentDirectory&&this._renderMenu(),this.$element().addClass("dx-filemanager-breadcrumbs")},s.setCurrentDirectory=function(e){this._areDirsEqual(this._currentDirectory,e)||(this._currentDirectory=e,this.repaint())},s._renderMenu=function(){var e=(0,i.default)("<div>").appendTo(this.$element());this._menu=this._createComponent(e,r.default,{dataSource:this._getMenuItems(),onItemClick:this._onItemClick.bind(this),onItemRendered:this._onItemRendered.bind(this)})},s._getMenuItems=function(){var e=this._getParentDirsLine(),t=[{icon:"arrowup",directory:this._currentDirectory.parentDirectory,isPathItem:!0,cssClass:"dx-filemanager-breadcrumbs-parent-folder-item"},{text:"\xa0",cssClass:"dx-filemanager-breadcrumbs-separator-item"}];return e.forEach((function(n,i){t.push({text:n.getDisplayName(),directory:n,isPathItem:!0}),i!==e.length-1&&t.push({icon:"spinnext",cssClass:"dx-filemanager-breadcrumbs-path-separator-item"})})),t},s._onItemClick=function(e){var t=e.itemData;if(t.isPathItem){var n=t.directory;this._areDirsEqual(n,this._currentDirectory)||this._raiseCurrentDirectoryChanged(n)}},s._onItemRendered=function(e){var t=e.itemElement,n=e.itemData;n.cssClass&&(0,i.default)(t).addClass(n.cssClass)},s._getParentDirsLine=function(){for(var e=this._currentDirectory,t=[];e;)t.unshift(e),e=e.parentDirectory;return t},s._areDirsEqual=function(e,t){return e&&t&&e===t&&e.fileItem.key===t.fileItem.key},s._initActions=function(){this._actions={onCurrentDirectoryChanging:this._createActionByOption("onCurrentDirectoryChanging")}},s._raiseCurrentDirectoryChanged=function(e){this._actions.onCurrentDirectoryChanging({currentDirectory:e})},s._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{rootFolderDisplayName:"Files",onCurrentDirectoryChanging:null})},s._optionChanged=function(t){var n=t.name;switch(n){case"rootFolderDisplayName":this.repaint();break;case"onCurrentDirectoryChanging":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},a}(a.default);t.default=u,e.exports=t.default,e.exports.default=t.default},77311:function(e,t,n){t.FileManagerCommandManager=void 0;var i,o=n(13306),a=n(35922),r=(i=n(28109))&&i.__esModule?i:{default:i},s=function(){function e(e){this._actions={},this._permissions=e||{},this._initCommands()}var t=e.prototype;return t._initCommands=function(){var e=this;this._commands=[{name:"create",text:r.default.format("dxFileManager-commandCreate"),icon:"newfolder",enabled:this._permissions.create,noFileItemRequired:!0},{name:"rename",text:r.default.format("dxFileManager-commandRename"),icon:"rename",enabled:this._permissions.rename,isSingleFileItemCommand:!0},{name:"move",text:r.default.format("dxFileManager-commandMove"),icon:"movetofolder",enabled:this._permissions.move},{name:"copy",text:r.default.format("dxFileManager-commandCopy"),icon:"copy",enabled:this._permissions.copy},{name:"delete",text:r.default.format("dxFileManager-commandDelete"),icon:"trash",enabled:this._permissions.delete},{name:"download",text:r.default.format("dxFileManager-commandDownload"),icon:"download",enabled:this._permissions.download},{name:"upload",text:r.default.format("dxFileManager-commandUpload"),icon:"upload",enabled:this._permissions.upload,noFileItemRequired:!0},{name:"refresh",text:r.default.format("dxFileManager-commandRefresh"),icon:"dx-filemanager-i dx-filemanager-i-refresh",enabled:!0,noFileItemRequired:!0},{name:"thumbnails",text:r.default.format("dxFileManager-commandThumbnails"),icon:"mediumiconslayout",enabled:!0,noFileItemRequired:!0},{name:"details",text:r.default.format("dxFileManager-commandDetails"),icon:"detailslayout",enabled:!0,noFileItemRequired:!0},{name:"clearSelection",text:r.default.format("dxFileManager-commandClearSelection"),icon:"remove",enabled:!0},{name:"showNavPane",hint:r.default.format("dxFileManager-commandShowNavPane"),icon:"menu",enabled:!1,noFileItemRequired:!0}],this._commandMap={},this._commands.forEach((function(t){e._commandMap[t.name]=t}))},t.registerActions=function(e){this._actions=(0,o.extend)(this._actions,e)},t.executeCommand=function(e,t){var n=(0,a.isString)(e)?e:e.name,i=this._actions[n];if(i)return i(t)},t.setCommandEnabled=function(e,t){var n=this.getCommandByName(e);n&&(n.enabled=t)},t.getCommandByName=function(e){return this._commandMap[e]},t.isCommandAvailable=function(e,t){var n=this.getCommandByName(e);if(!n||!n.enabled)return!1;if(n.noFileItemRequired)return!0;var i=t&&t.length||0;return 0!==i&&!t.some((function(e){return e.fileItem.isRoot()||e.fileItem.isParentFolder}))&&("download"===e?t.every((function(e){return!e.fileItem.isDirectory})):!n.isSingleFileItemCommand||1===i)},e}();t.FileManagerCommandManager=s},75084:function(e,t,n){t.whenSome=t.getMapFromObject=t.getDisplayFileSize=t.findItemsByKeys=t.extendAttributes=void 0;var i=n(62754),o=n(13306),a=n(20576),r=n(35922);t.whenSome=function(e,t,n){t=t||a.noop,n=n||a.noop,Array.isArray(e)||(e=[e]);var o=e.map((function(e,o){return(0,i.when)(e).then((function(n){return(0,r.isFunction)(t)&&t({item:e,index:o,result:n}),n}),(function(e){return e||(e={}),e.index=o,(0,r.isFunction)(n)&&n(e),(new i.Deferred).resolve().promise()}))}));return i.when.apply(null,o)},t.getDisplayFileSize=function(e){for(var t=["B","KB","MB","GB","TB"],n=0,i=e;i>=1024&&n<=t.length-1;)i/=1024,n++;return i=Math.round(10*i)/10,"".concat(i," ").concat(t[n])},t.extendAttributes=function(e,t,n){return n.forEach((function(n){var i,a,s;(0,o.extend)(!0,e,(0,r.isDefined)(t[n])?(i={},a=n,s=t[n],a in i?Object.defineProperty(i,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[a]=s,i):{})})),e},t.findItemsByKeys=function(e,t){var n={};t.forEach((function(e){n[e]=null})),e.forEach((function(e){var t=e.fileItem.key;Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=e)}));var i=[];return t.forEach((function(e){var t=n[e];t&&i.push(t)})),i},t.getMapFromObject=function(e){var t=Object.keys(e),n=[];return t.forEach((function(t){return n.push(e[t])})),{keys:t,values:n}}},2681:function(e,t,n){t.default=void 0;var i=d(n(68374)),o=n(13306),a=n(35922),r=n(20576),s=d(n(14390)),l=d(n(5631)),u=n(75084);function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f={create:{},upload:{},download:{},rename:{},move:{},copy:{},delete:{},refresh:{beginGroup:!0}},p=["beginGroup","closeMenuOnClick","disabled","icon","selectable","selected","text","visible"],g=function(e){var t,n;function s(){return e.apply(this,arguments)||this}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var d,g,m=s.prototype;return m._initMarkup=function(){var t=this;this._initActions(),this._isVisible=!1;var n=(0,i.default)("<div>").appendTo(this.$element());this._contextMenu=this._createComponent(n,l.default,{cssClass:"dx-filemanager-context-menu",showEvent:"",onItemClick:function(e){return t._onContextMenuItemClick(e.itemData.name,e)},onShowing:function(e){return t._onContextMenuShowing(e)},onShown:function(){return t._onContextMenuShown()},onHidden:function(){return t._onContextMenuHidden()}}),e.prototype._initMarkup.call(this)},m.showAt=function(e,t,n,i){var o=i.itemData,a=i.itemElement,r=i.isActionButton,s=void 0!==r&&r;this._isVisible&&this._onContextMenuHidden(),this._menuShowingContext={targetElement:a,itemData:o,fileItems:e,event:n,isActionButton:s};var l={of:t,at:"top left",my:"top left",offset:""};n?l.offset=n.offsetX+" "+n.offsetY:(l.my="left top",l.at="left bottom",l.boundaryOffset="1"),this._contextMenu.option({target:t,position:l}),this._contextMenu.show()},m.createContextMenuItems=function(e,t,n){var i=this;this._targetFileItems=e,this._targetFileItem=(0,a.isDefined)(n)?n:null==e?void 0:e[0];var o=[];return(t||this.option("items")).forEach((function(t){var n=(0,a.isString)(t)?t:t.name,r=i._configureItemByCommandName(n,t,e,i._targetFileItem);i._isContextMenuItemAvailable(r,e)&&o.push(r)})),o},m._isContextMenuItemAvailable=function(e,t){return this._isDefaultItem(e.name)&&e._autoHide?!(this._isIsolatedCreationItemCommand(e.name)&&t&&t.length)&&this._commandManager.isCommandAvailable(e.name,t):(0,r.ensureDefined)(e.visible,!0)},m._isIsolatedCreationItemCommand=function(e){return("create"===e||"upload"===e)&&this.option("isolateCreationItemCommands")},m._isDefaultItem=function(e){return!!f[e]},m._configureItemByCommandName=function(e,t,n,i){if(!this._isDefaultItem(e)){var r=(0,o.extend)(!0,{},t);return r.originalItemData=t,this._addItemClickHandler(e,r),Array.isArray(t.items)&&(r.items=this.createContextMenuItems(n,t.items,i)),r}var s=this._createMenuItemByCommandName(e),l=f[e];return(0,o.extend)(s,l),s.originalItemData=t,(0,u.extendAttributes)(s,t,p),(0,a.isDefined)(s.visible)||(s._autoHide=!0),e&&!s.name&&(0,o.extend)(s,{name:e}),s},m._createMenuItemByCommandName=function(e){var t=this._commandManager.getCommandByName(e),n={name:e,text:t.text,icon:t.icon};return this._addItemClickHandler(e,n),n},m._addItemClickHandler=function(e,t){var n=this;t.onItemClick=function(t){return n._onContextMenuItemClick(e,t)}},m._onContextMenuItemClick=function(e,t){var n,i=(0,o.extend)(!0,{},t);if(i.itemData=t.itemData.originalItemData,i.fileSystemItem=null===(n=this._targetFileItem)||void 0===n?void 0:n.fileItem,i.viewArea=this.option("viewArea"),this._actions.onItemClick(i),this._isDefaultItem(e)){var a=this._isIsolatedCreationItemCommand(e)?null:this._targetFileItems;this._commandManager.executeCommand(e,a)}},m._initActions=function(){this._actions={onContextMenuHidden:this._createActionByOption("onContextMenuHidden"),onContextMenuShowing:this._createActionByOption("onContextMenuShowing"),onItemClick:this._createActionByOption("onItemClick")}},m._onContextMenuShowing=function(e){if(this._isVisible&&this._onContextMenuHidden(),e=(0,o.extend)(e,this._menuShowingContext,{options:this.option(),cancel:!1}),this._actions.onContextMenuShowing(e),!e.cancel){var t=this.createContextMenuItems(this._menuShowingContext.fileItems,null,this._menuShowingContext.fileSystemItem);this._contextMenu.option("dataSource",t)}},m._onContextMenuShown=function(){this._isVisible=!0},m._onContextMenuHidden=function(){this._isVisible=!1,this._menuShowingContext={},this._contextMenu.option("visible",!1),this._raiseContextMenuHidden()},m._raiseContextMenuHidden=function(){this._actions.onContextMenuHidden()},m._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{commandManager:null,onContextMenuHidden:null,onItemClick:null})},m._optionChanged=function(t){var n=t.name;switch(n){case"commandManager":this.repaint();break;case"items":if(this._isVisible){var i=this.createContextMenuItems(this._targetFileItems);this._contextMenu.option("dataSource",i)}break;case"onItemClick":case"onContextMenuShowing":case"onContextMenuHidden":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},d=s,(g=[{key:"_commandManager",get:function(){return this.option("commandManager")}}])&&c(d.prototype,g),s}(s.default);t.default=g,e.exports=t.default,e.exports.default=t.default},76650:function(e,t,n){t.default=void 0;var i=s(n(68374)),o=n(13306),a=s(n(28109)),r=s(n(4741));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function s(){return e.apply(this,arguments)||this}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var u=s.prototype;return u.show=function(t){var n=t.itemName,i=t.itemCount,o=1===i?a.default.format("dxFileManager-dialogDeleteItemSingleItemConfirmation",n):a.default.format("dxFileManager-dialogDeleteItemMultipleItemsConfirmation",i);this._$text?this._$text.text(o):this._initialText=o,e.prototype.show.call(this)},u._getDialogOptions=function(){return(0,o.extend)(e.prototype._getDialogOptions.call(this),{title:a.default.format("dxFileManager-dialogDeleteItemTitle"),buttonText:a.default.format("dxFileManager-dialogDeleteItemButtonText"),contentCssClass:"dx-filemanager-dialog-delete-item",popupCssClass:"dx-filemanager-dialog-delete-item-popup",height:"auto",maxHeight:"80vh"})},u._createContentTemplate=function(t){e.prototype._createContentTemplate.call(this,t),this._$text=(0,i.default)("<div>").text(this._initialText).appendTo(this._$contentElement),this._createComponent(this._$contentElement,r.default,{width:"100%",height:"100%"})},u._getDialogResult=function(){return{}},s}(s(n(62567)).default);t.default=u,e.exports=t.default,e.exports.default=t.default},5760:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=n(13306),a=u(n(28109)),r=n(75084),s=u(n(62567)),l=u(n(48156));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){var t,n;function s(){return e.apply(this,arguments)||this}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var u=s.prototype;return u.show=function(){var t;this._resetDialogSelectedDirectory(),null===(t=this._filesTreeView)||void 0===t||t.refresh(),e.prototype.show.call(this)},u.switchToCopyDialog=function(e){this._targetItemInfos=e,this._setTitle(a.default.format("dxFileManager-dialogDirectoryChooserCopyTitle")),this._setButtonText(a.default.format("dxFileManager-dialogDirectoryChooserCopyButtonText"))},u.switchToMoveDialog=function(e){this._targetItemInfos=e,this._setTitle(a.default.format("dxFileManager-dialogDirectoryChooserMoveTitle")),this._setButtonText(a.default.format("dxFileManager-dialogDirectoryChooserMoveButtonText"))},u._getDialogOptions=function(){return(0,o.extend)(e.prototype._getDialogOptions.call(this),{contentCssClass:"dx-filemanager-dialog-folder-chooser",popupCssClass:"dx-filemanager-dialog-folder-chooser-popup"})},u._createContentTemplate=function(t){var n=this;e.prototype._createContentTemplate.call(this,t),this._filesTreeView=this._createComponent((0,i.default)("<div>"),l.default,{getDirectories:this.option("getDirectories"),getCurrentDirectory:function(){return n._getDialogSelectedDirectory()},onDirectoryClick:function(e){return n._onFilesTreeViewDirectoryClick(e)},onFilesTreeViewContentReady:function(){return n._toggleUnavailableLocationsDisabled(!0)}}),this._$contentElement.append(this._filesTreeView.$element())},u._getDialogResult=function(){var e=this._getDialogSelectedDirectory();return e?{folder:e}:e},u._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{getItems:null})},u._getDialogSelectedDirectory=function(){return this._selectedDirectoryInfo},u._resetDialogSelectedDirectory=function(){this._selectedDirectoryInfo=null},u._onFilesTreeViewDirectoryClick=function(e){var t=e.itemData;this._selectedDirectoryInfo=t,this._filesTreeView.updateCurrentDirectory()},u._onPopupShown=function(){this._toggleUnavailableLocationsDisabled(!0),e.prototype._onPopupShown.call(this)},u._onPopupHidden=function(){this._toggleUnavailableLocationsDisabled(!1),e.prototype._onPopupHidden.call(this)},u._toggleUnavailableLocationsDisabled=function(e){var t=this;if(this._filesTreeView){var n=this._getLocationsToProcess(e);this._filesTreeView.toggleDirectoryExpandedStateRecursive(n.locationsToExpand[0],e).then((function(){return t._filesTreeView.toggleDirectoryLineExpandedState(n.locationsToCollapse,!e).then((function(){return n.locationKeysToDisable.forEach((function(n){return t._filesTreeView.toggleNodeDisabledState(n,e)}))}))}))}},u._getLocationsToProcess=function(e){var t,n={},i={};this._targetItemInfos.forEach((function(e){e.parentDirectory&&(n[e.parentDirectory.getInternalKey()]=e.parentDirectory),e.fileItem.isDirectory&&(i[e.getInternalKey()]=e)}));var o=(0,r.getMapFromObject)(n),a=(0,r.getMapFromObject)(i);return{locationsToExpand:e?o.values:[],locationsToCollapse:e?a.values:[],locationKeysToDisable:(t=o.keys).concat.apply(t,d(a.keys))}},s}(s.default);t.default=f,e.exports=t.default,e.exports.default=t.default},62567:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=n(13306),a=n(35922),r=u(n(28109)),s=u(n(14390)),l=u(n(39114));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){var t,n;function s(){return e.apply(this,arguments)||this}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n);var u=s.prototype;return u._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this),this._createOnClosedAction();var n=this._getDialogOptions(),o=(0,i.default)("<div>").addClass("dx-filemanager-dialog-popup").appendTo(this.$element());n.popupCssClass&&o.addClass(n.popupCssClass);var s={showTitle:!0,title:n.title,visible:!1,closeOnOutsideClick:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,contentTemplate:this._createContentTemplate.bind(this),toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:n.buttonText,onClick:this._applyDialogChanges.bind(this)}},{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:r.default.format("dxFileManager-dialogButtonCancel"),onClick:this._closeDialog.bind(this)}}],onInitialized:function(e){e.component.registerKeyHandler("enter",t._applyDialogChanges.bind(t))},onHidden:this._onPopupHidden.bind(this),onShown:this._onPopupShown.bind(this)};(0,a.isDefined)(n.height)&&(s.height=n.height),(0,a.isDefined)(n.maxHeight)&&(s.maxHeight=n.maxHeight),this._popup=this._createComponent(o,l.default,s)},u.show=function(){this._dialogResult=null,this._popup.show()},u._getDialogOptions=function(){return{title:"Title",buttonText:"ButtonText",contentCssClass:"",popupCssClass:""}},u._createContentTemplate=function(e){this._$contentElement=(0,i.default)("<div>").appendTo(e).addClass("dx-filemanager-dialog");var t=this._getDialogOptions().contentCssClass;t&&this._$contentElement.addClass(t)},u._getDialogResult=function(){return null},u._applyDialogChanges=function(){var e=this._getDialogResult();e&&(this._dialogResult=e,this._closeDialog())},u._closeDialog=function(){this._popup.hide()},u._onPopupHidden=function(){this._onClosedAction({dialogResult:this._dialogResult})},u._onPopupShown=function(){},u._createOnClosedAction=function(){this._onClosedAction=this._createActionByOption("onClosed")},u._setTitle=function(e){this._popup.option("title",e)},u._setButtonText=function(e){this._popup.option("toolbarItems[0].options.text",e)},u._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{onClosed:null})},u._optionChanged=function(t){"onClosed"===t.name?this._createOnPathChangedAction():e.prototype._optionChanged.call(this,t)},s}(s.default);t.default=c,e.exports=t.default,e.exports.default=t.default},83044:function(e,t,n){t.default=void 0;var i=r(n(68374)),o=n(13306),a=r(n(29837));function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var l=r.prototype;return l.show=function(t){t=t||"",this._nameTextBox?this._nameTextBox.option("value",t):this._initialNameValue=t,e.prototype.show.call(this)},l._onPopupShown=function(){if(this._nameTextBox){var e=this._nameTextBox._input();e.length&&e[0].select(),this._nameTextBox.focus()}},l._getDialogOptions=function(){return(0,o.extend)(e.prototype._getDialogOptions.call(this),{title:this.option("title"),buttonText:this.option("buttonText"),contentCssClass:"dx-filemanager-dialog-name-editor",popupCssClass:"dx-filemanager-dialog-name-editor-popup"})},l._createContentTemplate=function(t){var n=this;e.prototype._createContentTemplate.call(this,t),this._nameTextBox=this._createComponent((0,i.default)("<div>"),a.default,{value:this._initialNameValue,onEnterKey:function(){return n._hasCompositionJustEnded&&n._applyDialogChanges()},onKeyDown:function(e){return n._checkCompositionEnded(e)}}),this._$contentElement.append(this._nameTextBox.$element())},l._checkCompositionEnded=function(e){var t=e.event;this._hasCompositionJustEnded=229!==t.which},l._getDialogResult=function(){var e=this._nameTextBox.option("value");return e?{name:e}:null},l._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{title:"",buttonText:""})},r}(r(n(62567)).default);t.default=l,e.exports=t.default,e.exports.default=t.default},87444:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=n(13306),a=u(n(28109)),r=u(n(83044)),s=u(n(5760)),l=u(n(76650));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(e,t){this._$element=e,this._options=t;var n={onClosed:this._options.onDialogClosed,rtlEnabled:this._options.rtlEnabled},u=(0,i.default)("<div>").appendTo(this._$element);this._chooseDirectoryDialog=new s.default(u,(0,o.extend)(n,this._options.chooseDirectoryDialog));var d=(0,i.default)("<div>").appendTo(this._$element);this._renameItemDialog=new r.default(d,(0,o.extend)(n,{title:a.default.format("dxFileManager-dialogRenameItemTitle"),buttonText:a.default.format("dxFileManager-dialogRenameItemButtonText")}));var c=(0,i.default)("<div>").appendTo(this._$element);this._createItemDialog=new r.default(c,(0,o.extend)(n,{title:a.default.format("dxFileManager-dialogCreateDirectoryTitle"),buttonText:a.default.format("dxFileManager-dialogCreateDirectoryButtonText")}));var h=(0,i.default)("<div>").appendTo(this._$element);this._deleteItemDialog=new l.default(h,n)}var t=e.prototype;return t.getCopyDialog=function(e){return this._chooseDirectoryDialog.switchToCopyDialog(e),this._chooseDirectoryDialog},t.getMoveDialog=function(e){return this._chooseDirectoryDialog.switchToMoveDialog(e),this._chooseDirectoryDialog},t.getRenameItemDialog=function(){return this._renameItemDialog},t.getCreateItemDialog=function(){return this._createItemDialog},t.getDeleteItemDialog=function(){return this._deleteItemDialog},t.updateDialogRtl=function(e){[this._chooseDirectoryDialog,this._renameItemDialog,this._createItemDialog,this._deleteItemDialog].forEach((function(t){t.option("rtlEnabled",e)}))},e}();t.default=d,e.exports=t.default,e.exports.default=t.default},86471:function(e,t,n){t.default=void 0;var i=f(n(68374)),o=n(13306),a=n(62754),r=n(95479),s=n(68752),l=f(n(28109)),u=f(n(14390)),d=f(n(87444)),c=f(n(21089)),h=n(17053);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function m(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=function(e){var t,n;function s(){return e.apply(this,arguments)||this}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,_(t,n);var u=s.prototype;return u._initMarkup=function(){e.prototype._initMarkup.call(this),this._initActions(),this._controller=this.option("controller"),this._controller.on("EditActionStarting",this._onEditActionStarting.bind(this)),this._controller.on("EditActionResultAcquired",this._onEditActionResultAcquired.bind(this)),this._controller.on("EditActionItemError",this._onEditActionItemError.bind(this)),this._controller.on("EditActionError",this._onEditActionError.bind(this)),this._controller.on("CompleteEditActionItem",this._onCompleteEditActionItem.bind(this)),this._controller.on("CompleteEditAction",this._onCompleteEditAction.bind(this)),this._model=this.option("model"),this._uploadOperationInfoMap={},this._dialogManager=new d.default(this.$element(),{chooseDirectoryDialog:{provider:this._controller._fileProvider,getDirectories:this._controller.getDirectories.bind(this._controller),getCurrentDirectory:this._controller.getCurrentDirectory.bind(this._controller)},rtlEnabled:this.option("rtlEnabled"),onDialogClosed:this._onDialogClosed.bind(this)}),this._fileUploader=this._createFileUploader();var t=this.option("notificationControl");t&&this._initNotificationControl(t),this._createMetadataMap()},u._initNotificationControl=function(e){var t=this;this._notificationControl=e,this._notificationControl.option({onOperationCanceled:function(e){var n=e.info;return t._onCancelUploadSession(n)},onOperationItemCanceled:function(e){var n=e.item,i=e.itemIndex;return t._onCancelFileUpload(n,i)}})},u._getFileUploaderComponent=function(){return c.default},u._createFileUploader=function(){var e=this,t=(0,i.default)("<div>").appendTo(this.$element());return this._createComponent(t,this._getFileUploaderComponent(),{getController:this._getFileUploaderController.bind(this),dropZonePlaceholderContainer:this.option("uploadDropZonePlaceholderContainer"),onUploadSessionStarted:function(t){return e._onUploadSessionStarted(t)},onUploadProgress:function(t){return e._onUploadProgress(t)}})},u.setUploaderDropZone=function(e){this._fileUploader.option("dropZone",e)},u.setUploaderSplitterElement=function(e){this._fileUploader.option("splitterElement",e)},u._getFileUploaderController=function(){var e=this,t=this.uploadDirectoryInfo.fileItem;return{chunkSize:this._controller.getFileUploadChunkSize(),uploadFileChunk:function(n,i){return e._controller.uploadFileChunk(n,i,t)},abortFileUpload:function(n,i){return e._controller.abortFileUpload(n,i,t)}}},u._createMetadataMap=function(){var e=this;this._metadataMap={create:{action:function(t){return e._tryCreate(t)},affectsAllItems:!0,singleItemProcessingMessage:l.default.format("dxFileManager-editingCreateSingleItemProcessingMessage"),singleItemSuccessMessage:l.default.format("dxFileManager-editingCreateSingleItemSuccessMessage"),singleItemErrorMessage:l.default.format("dxFileManager-editingCreateSingleItemErrorMessage"),commonErrorMessage:l.default.format("dxFileManager-editingCreateCommonErrorMessage")},rename:{action:function(t){return e._tryRename(t)},singleItemProcessingMessage:l.default.format("dxFileManager-editingRenameSingleItemProcessingMessage"),singleItemSuccessMessage:l.default.format("dxFileManager-editingRenameSingleItemSuccessMessage"),singleItemErrorMessage:l.default.format("dxFileManager-editingRenameSingleItemErrorMessage"),commonErrorMessage:l.default.format("dxFileManager-editingRenameCommonErrorMessage")},delete:{action:function(t){return e._tryDelete(t)},singleItemProcessingMessage:l.default.format("dxFileManager-editingDeleteSingleItemProcessingMessage"),multipleItemsProcessingMessage:l.default.format("dxFileManager-editingDeleteMultipleItemsProcessingMessage"),singleItemSuccessMessage:l.default.format("dxFileManager-editingDeleteSingleItemSuccessMessage"),multipleItemsSuccessMessage:l.default.format("dxFileManager-editingDeleteMultipleItemsSuccessMessage"),singleItemErrorMessage:l.default.format("dxFileManager-editingDeleteSingleItemErrorMessage"),multipleItemsErrorMessage:l.default.format("dxFileManager-editingDeleteMultipleItemsErrorMessage"),commonErrorMessage:l.default.format("dxFileManager-editingDeleteCommonErrorMessage")},move:{action:function(t){return e._tryMove(t)},singleItemProcessingMessage:l.default.format("dxFileManager-editingMoveSingleItemProcessingMessage"),multipleItemsProcessingMessage:l.default.format("dxFileManager-editingMoveMultipleItemsProcessingMessage"),singleItemSuccessMessage:l.default.format("dxFileManager-editingMoveSingleItemSuccessMessage"),multipleItemsSuccessMessage:l.default.format("dxFileManager-editingMoveMultipleItemsSuccessMessage"),singleItemErrorMessage:l.default.format("dxFileManager-editingMoveSingleItemErrorMessage"),multipleItemsErrorMessage:l.default.format("dxFileManager-editingMoveMultipleItemsErrorMessage"),commonErrorMessage:l.default.format("dxFileManager-editingMoveCommonErrorMessage")},copy:{action:function(t){return e._tryCopy(t)},singleItemProcessingMessage:l.default.format("dxFileManager-editingCopySingleItemProcessingMessage"),multipleItemsProcessingMessage:l.default.format("dxFileManager-editingCopyMultipleItemsProcessingMessage"),singleItemSuccessMessage:l.default.format("dxFileManager-editingCopySingleItemSuccessMessage"),multipleItemsSuccessMessage:l.default.format("dxFileManager-editingCopyMultipleItemsSuccessMessage"),singleItemErrorMessage:l.default.format("dxFileManager-editingCopySingleItemErrorMessage"),multipleItemsErrorMessage:l.default.format("dxFileManager-editingCopyMultipleItemsErrorMessage"),commonErrorMessage:l.default.format("dxFileManager-editingCopyCommonErrorMessage")},upload:{action:function(t){return e._tryUpload(t)},allowCancel:!0,allowItemProgress:!0,singleItemProcessingMessage:l.default.format("dxFileManager-editingUploadSingleItemProcessingMessage"),multipleItemsProcessingMessage:l.default.format("dxFileManager-editingUploadMultipleItemsProcessingMessage"),singleItemSuccessMessage:l.default.format("dxFileManager-editingUploadSingleItemSuccessMessage"),multipleItemsSuccessMessage:l.default.format("dxFileManager-editingUploadMultipleItemsSuccessMessage"),singleItemErrorMessage:l.default.format("dxFileManager-editingUploadSingleItemErrorMessage"),multipleItemsErrorMessage:l.default.format("dxFileManager-editingUploadMultipleItemsErrorMessage"),canceledMessage:l.default.format("dxFileManager-editingUploadCanceledMessage")},download:{action:function(t){return e._download(t)}},getItemContent:{action:function(t){return e._getItemContent(t)}},getItems:{singleItemProcessingMessage:"",singleItemErrorMessage:l.default.format("dxFileManager-errorDirectoryOpenFailed"),commonErrorMessage:l.default.format("dxFileManager-errorDirectoryOpenFailed")}}},u.getCommandActions=function(){var e=this,t={};return(0,r.each)(this._metadataMap,(function(n){Object.prototype.hasOwnProperty.call(e._metadataMap,n)&&(t[n]=function(t){return e._executeAction(n,t)})})),t},u._executeAction=function(e,t){var n=this._metadataMap[e];return n?n.action(t):null},u._onCancelUploadSession=function(e){this._fileUploader.cancelUpload(e.uploadSessionId)},u._onCancelFileUpload=function(e,t){this._fileUploader.cancelFileUpload(e.info.uploadSessionId,t)},u._onUploadProgress=function(e){var t=e.sessionId,n=e.fileIndex,i=e.commonValue,o=e.fileValue,a=this._uploadOperationInfoMap[t];this._notificationControl.updateOperationItemProgress(a,n,100*o,100*i)},u._onUploadSessionStarted=function(e){var t=e.sessionInfo;this._controller.processUploadSession(t,this.uploadDirectoryInfo)},u._onEditActionStarting=function(e){var t=this._metadataMap[e.name],n=new y(t,e.itemInfos,e.directory),i=this._notificationControl.addOperation(n.processingMessage,t.allowCancel,!t.allowItemProgress);switch((0,o.extend)(e.customData,{context:n,operationInfo:i}),e.name){case"upload":var a=e.customData.sessionInfo.sessionId;i.uploadSessionId=a,this._uploadOperationInfoMap[a]=i;break;case"rename":e.customData.context.itemNewName=e.customData.itemNewName}},u._onEditActionResultAcquired=function(e){var t=this,n=e.customData,i=n.context,o=n.operationInfo;i.singleRequest=e.singleRequest;var a=i.itemInfos.map((function(e){return t._getItemProgressDisplayInfo(e)}));this._notificationControl.addOperationDetails(o,a,i.actionMetadata.allowCancel)},u._onEditActionError=function(e,t){var n=e.customData,i=n.context,o=n.operationInfo;i.singleRequest=e.singleRequest,this._handleActionError(o,i,t),this._completeAction(o,i)},u._onEditActionItemError=function(e,t){var n=e.customData,i=n.context,o=n.operationInfo;this._handleActionError(o,i,t)},u._onCompleteEditActionItem=function(e,t){var n=e.customData,i=n.context,o=n.operationInfo;t.result&&t.result.canceled||(i.completeOperationItem(t.index),this._notificationControl.completeOperationItem(o,t.index,i.commonProgress))},u._onCompleteEditAction=function(e){var t=e.customData,n=t.context,i=t.operationInfo;this._completeAction(i,n),"upload"===e.name&&delete this._uploadOperationInfoMap[e.customData.sessionInfo.sessionId]},u._tryCreate=function(e){var t=this,n=e&&e[0]||this._getCurrentDirectory(),i=l.default.format("dxFileManager-newDirectoryName");return this._showDialog(this._dialogManager.getCreateItemDialog(),i).then((function(e){var i=e.name;return t._controller.createDirectory(n,i)}))},u._tryRename=function(e){var t=this,n=e&&e[0]||this._model.getMultipleSelectedItems()[0];return n?this._showDialog(this._dialogManager.getRenameItemDialog(),n.fileItem.name).then((function(e){var i=e.name;return t._controller.renameItem(n,i)})):(new a.Deferred).reject().promise()},u._tryDelete=function(e){var t=this;if(0===(e=e||this._model.getMultipleSelectedItems()).length)return(new a.Deferred).reject().promise();var n=e[0].fileItem.name,i=e.length;return this._showDialog(this._dialogManager.getDeleteItemDialog(),{itemName:n,itemCount:i}).then((function(){return t._controller.deleteItems(e)}))},u._tryMove=function(e){var t=this;return 0===(e=e||this._model.getMultipleSelectedItems()).length?(new a.Deferred).reject().promise():this._showDialog(this._dialogManager.getMoveDialog(e)).then((function(n){var i=n.folder;return t._controller.moveItems(e,i)}))},u._tryCopy=function(e){var t=this;return 0===(e=e||this._model.getMultipleSelectedItems()).length?(new a.Deferred).reject().promise():this._showDialog(this._dialogManager.getCopyDialog(e)).then((function(n){var i=n.folder;return t._controller.copyItems(e,i)}))},u._tryUpload=function(e){this._uploadDirectoryInfo=null==e?void 0:e[0],this._fileUploader.tryUpload()},u._download=function(e){return 0===(e=e||this._model.getMultipleSelectedItems()).length?(new a.Deferred).reject().promise():this._controller.downloadItems(e)},u._getItemContent=function(e){return e=e||this._model.getMultipleSelectedItems(),this._controller.getItemContent(e)},u._completeAction=function(e,t){this._notificationControl.completeOperation(e,t.completionMessage,!t.success,t.statusText),t.hasModifiedItems()&&this._raiseOnSuccess(t.onlyFiles)},u._handleActionError=function(e,t,n){e.hasError=!0,t.singleRequest?this._handleSingleRequestActionError(e,t,n):this._handleMultipleRequestActionError(e,t,n)},u._handleSingleRequestActionError=function(e,t,n){var i=t.getItemForSingleRequestError(),o=t.itemNewName,a=this._getErrorText(n,i,o);t.processSingleRequestError(a);var r=this._getOperationErrorInfo(t);this._notificationControl.completeSingleOperationWithError(e,r),t.multipleItems&&this._raiseOnSuccess(t.onlyFiles)},u._handleMultipleRequestActionError=function(e,t,n){var i=t.getItemForMultipleRequestError(n.index),o=this._getErrorText(n,i);t.processMultipleRequestError(n.index,o);var a=this._getOperationErrorInfo(t);this._notificationControl.addOperationDetailsError(e,a)},u._getOperationErrorInfo=function(e){var t=e.errorState.currentDetailError;return{commonErrorText:e.errorState.commonErrorText,item:t.itemInfo?this._getItemProgressDisplayInfo(t.itemInfo):null,itemIndex:t.itemIndex,detailErrorText:t.errorText}},u._getErrorText=function(e,t,n){n=n||(null==t?void 0:t.fileItem.name);var i=e.errorText||h.FileManagerMessages.get(e.errorCode,n),o={fileSystemItem:null==t?void 0:t.fileItem,errorCode:e.errorCode,errorText:i};return this._raiseOnError(o),o.errorText},u._getItemProgressDisplayInfo=function(e){return{commonText:e.fileItem.name,imageUrl:this._getItemThumbnail(e)}},u._showDialog=function(e,t){return this._dialogDeferred=new a.Deferred,e.show(t),this._dialogDeferred.promise()},u._onDialogClosed=function(e){var t=e.dialogResult;t?this._dialogDeferred.resolve(t):this._dialogDeferred.reject()},u.updateDialogRtl=function(e){this._dialogManager.updateDialogRtl(e)},u._getItemThumbnail=function(e){var t=this.option("getItemThumbnail");if(!t)return null;var n=t(e);return n?n.thumbnail:null},u._initActions=function(){this._actions={onSuccess:this._createActionByOption("onSuccess"),onError:this._createActionByOption("onError")}},u._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{model:{getMultipleSelectedItems:null},notificationControl:null,getItemThumbnail:null,onSuccess:null,onError:null})},u._optionChanged=function(t){var n=t.name;switch(n){case"model":this.repaint();break;case"notificationControl":this._initNotificationControl(t.value);break;case"getItemThumbnail":break;case"uploadDropZonePlaceholderContainer":this._fileUploader.option("dropZonePlaceholderContainer",t.value);break;case"onSuccess":case"onError":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},u._raiseOnSuccess=function(e){this._actions.onSuccess({updatedOnlyFiles:e})},u._raiseOnError=function(e){this._actions.onError(e)},u._getCurrentDirectory=function(){return this._controller.getCurrentDirectory()},m(s,[{key:"uploadDirectoryInfo",get:function(){return this._uploadDirectoryInfo||this._getCurrentDirectory()}}]),s}(u.default),y=function(){function e(e,t,n){this._actionMetadata=e,this._itemInfos=t,this._onlyFiles=!this._actionMetadata.affectsAllItems&&this._itemInfos.every((function(e){return!e.fileItem.isDirectory})),this._items=this._itemInfos.map((function(e){return e.fileItem})),this._multipleItems=this._items.length>1,this._location=n.getDisplayName(),this._singleRequest=!0,this._completedItems=[],this._commonProgress=0,this._errorState={failedCount:0},this._itemNewName=""}var t=e.prototype;return t.completeOperationItem=function(e){if(this._singleRequest)this._completedItems=function(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this._items);else{var t=this._items[e];this._completedItems.push(t)}this._actionMetadata.allowItemProgress||(this._commonProgress=this._completedItems.length/this._items.length*100)},t.processSingleRequestError=function(e){this._errorState.failedCount=1,this._errorState.commonErrorText=this._multipleItems?this._actionMetadata.commonErrorMessage:this._actionMetadata.singleItemErrorMessage;var t=this._multipleItems?-1:1,n=this.getItemForSingleRequestError();this._setCurrentDetailError(t,n,e)},t.processMultipleRequestError=function(e,t){this._errorState.failedCount++,this._errorState.commonErrorText=this._errorState.failedCount>1?(0,s.format)(this._actionMetadata.multipleItemsErrorMessage,this._errorState.failedCount):this._actionMetadata.singleItemErrorMessage;var n=this.getItemForMultipleRequestError(e);this._setCurrentDetailError(e,n,t)},t.hasModifiedItems=function(){return this._hasCompletedItems()||this._singleRequest&&!this.success&&this._multipleItems},t.getItemForSingleRequestError=function(){return this._multipleItems?null:this._itemInfos[0]},t.getItemForMultipleRequestError=function(e){return this._itemInfos[e]},t._setCurrentDetailError=function(e,t,n){this._errorState.currentDetailError={itemIndex:e,itemInfo:t,errorText:n}},t._hasCompletedItems=function(){return this._completedItems.length>0},m(e,[{key:"actionMetadata",get:function(){return this._actionMetadata}},{key:"itemInfos",get:function(){return this._itemInfos}},{key:"itemNewName",get:function(){return this._itemNewName},set:function(e){this._itemNewName=e}},{key:"errorState",get:function(){return this._errorState}},{key:"singleRequest",get:function(){return this._singleRequest},set:function(e){this._singleRequest=e}},{key:"multipleItems",get:function(){return this._multipleItems}},{key:"onlyFiles",get:function(){return this._onlyFiles}},{key:"processingMessage",get:function(){return this._multipleItems?(0,s.format)(this._actionMetadata.multipleItemsProcessingMessage,this._items.length,this._location):(0,s.format)(this._actionMetadata.singleItemProcessingMessage,this._location)}},{key:"successMessage",get:function(){return this._hasCompletedItems()?this._multipleItems?(0,s.format)(this._actionMetadata.multipleItemsSuccessMessage,this._completedItems.length,this._location):(0,s.format)(this._actionMetadata.singleItemSuccessMessage,this._location):this._multipleItems?(0,s.format)(this._actionMetadata.multipleItemsErrorMessage,this._items.length):this._actionMetadata.singleItemErrorMessage}},{key:"completionMessage",get:function(){return this.success?this.successMessage:this.errorState.commonErrorText}},{key:"statusText",get:function(){return this.success&&!this._hasCompletedItems()?this._actionMetadata.canceledMessage:void 0}},{key:"commonProgress",get:function(){return this._commonProgress}},{key:"success",get:function(){return!this._errorState.failedCount}}]),e}(),x=v;t.default=x,e.exports=t.default,e.exports.default=t.default},68912:function(e,t,n){t.default=void 0;var i=s(n(68374)),o=n(13306),a=s(n(14390)),r=s(n(63008));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var s=a.prototype;return s._initMarkup=function(){var t=this;this._createClickAction();var n=(0,i.default)("<div>");this.$element().append(n).addClass("dx-filemanager-file-actions-button"),this._button=this._createComponent(n,r.default,{icon:"overflow",stylingMode:"text",onClick:function(e){return t._raiseClick(e)}}),e.prototype._initMarkup.call(this)},s._createClickAction=function(){this._clickAction=this._createActionByOption("onClick")},s._raiseClick=function(e){this._clickAction(e)},s._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{cssClass:"",onClick:null})},s._optionChanged=function(t){switch(t.name){case"cssClass":this.repaint();break;case"onClick":this._createClickAction();break;default:e.prototype._optionChanged.call(this,t)}},s.setActive=function(e){var t=this;this.$element().toggleClass("dx-filemanager-file-actions-button-activated",e),setTimeout((function(){return t._button.$element().toggleClass("dx-state-active",e)}))},a}(a.default);t.default=u,e.exports=t.default,e.exports.default=t.default},21089:function(e,t,n){t.default=void 0;var i=n(58664),o=h(n(68374)),a=n(13306),r=n(62754),s=n(58201),l=h(n(73176)),u=h(n(14390)),d=h(n(53749)),c=n(75084);function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){var t,n;function u(){return e.apply(this,arguments)||this}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var h=u.prototype;return h._initMarkup=function(){this._initActions(),this.$element().addClass("dx-filemanager-fileuploader"),this._uploaderInfos=[],this._createInternalFileUploader(),this._createDropZonePlaceholder(),this._setDropZonePlaceholderVisible(!1),e.prototype._initMarkup.call(this)},h._createInternalFileUploader=function(){var e=this,t=this._getController().chunkSize,n=(0,o.default)("<div>").appendTo(this.$element()),i=this._createComponent(n,d.default,{name:"file",multiple:!0,showFileList:!1,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,labelText:"",readyToUploadMessage:"",accept:"*",chunkSize:t,dropZone:this.option("dropZone"),onValueChanged:function(t){return e._onFileUploaderValueChanged(t)},onProgress:function(t){return e._onFileUploaderProgress(t)},onUploaded:function(t){return e._onFileUploaderUploaded(t)},onUploadAborted:function(t){return e._onFileUploaderUploadAborted(t)},onUploadError:function(t){return e._onFileUploaderUploadError(t)},onDropZoneEnter:function(){return e._setDropZonePlaceholderVisible(!0)},onDropZoneLeave:function(){return e._setDropZonePlaceholderVisible(!1)}});i.option({uploadChunk:function(t,n){return e._fileUploaderUploadChunk(i,t,n)},abortUpload:function(t,n){return e._fileUploaderAbortUpload(i,t,n)}}),i._shouldRaiseDragLeaveBase=i._shouldRaiseDragLeave,i._shouldRaiseDragLeave=function(t){return e._shouldRaiseDragLeave(t,i)};var a={fileUploader:i};this._uploaderInfos.push(a)},h.tryUpload=function(){var e=this._findAndUpdateAvailableUploaderInfo();e&&e.fileUploader._selectButtonClickHandler()},h.cancelUpload=function(e){this._cancelUpload(e)},h.cancelFileUpload=function(e,t){this._cancelUpload(e,t)},h._cancelUpload=function(e,t){this._findUploaderInfoBySessionId(e).fileUploader.abortUpload(t)},h._fileUploaderUploadChunk=function(e,t,n){var i=this._findSessionByFile(e,t),o=i.session,a=i.fileIndex,r=o.controller;return n.fileIndex=a,r.uploadFileChunk(t,n)},h._fileUploaderAbortUpload=function(e,t,n){var i=this._findSessionByFile(e,t),o=i.session,a=i.fileIndex,r=o.controller;return n.fileIndex=a,r.abortFileUpload(t,n)},h._onFileUploaderValueChanged=function(e){var t=this,n=e.component,i=e.value;if(0!==i.length){var o=i.slice(),a=this._findUploaderInfo(n);this._uploadFiles(a,o),setTimeout((function(){t._findAndUpdateAvailableUploaderInfo()||t._createInternalFileUploader()}))}},h._onFileUploaderProgress=function(e){var t=e.component,n=e.file,i=e.bytesLoaded,o=e.bytesTotal,a=this._findSessionByFile(t,n),r=a.session,s=a.fileIndex,l=0!==o?i/o:1,u=t.option("progress")/100,d={sessionId:r.id,fileIndex:s,commonValue:u,fileValue:l};this._raiseUploadProgress(d)},h._onFileUploaderUploaded=function(e){var t=e.component,n=e.file;this._getDeferredForFile(t,n).resolve()},h._onFileUploaderUploadAborted=function(e){var t=e.component,n=e.file;this._getDeferredForFile(t,n).resolve({canceled:!0})},h._onFileUploaderUploadError=function(e){var t=e.component,n=e.file,i=e.error;this._getDeferredForFile(t,n).reject(i)},h._createDropZonePlaceholder=function(){this._$dropZonePlaceholder=(0,o.default)("<div>").addClass("dx-filemanager-fileuploader-dropzone-placeholder").appendTo(this.option("dropZonePlaceholderContainer"))},h._adjustDropZonePlaceholder=function(){if((0,s.hasWindow)()){var e=this.option("dropZone"),t=parseFloat(this._$dropZonePlaceholder.css("borderTopWidth")),n=parseFloat(this._$dropZonePlaceholder.css("borderLeftWidth")),o=this.option("dropZonePlaceholderContainer"),a=parseFloat(o.css("borderBottomWidth")),r=parseFloat(o.css("borderLeftWidth")),l=(0,i.getInnerHeight)(o),u=o.offset(),d=e.offset();this._$dropZonePlaceholder.css({top:d.top-u.top-l-a,left:d.left-u.left-r}),(0,i.setHeight)(this._$dropZonePlaceholder,e.get(0).offsetHeight-2*t),(0,i.setWidth)(this._$dropZonePlaceholder,e.get(0).offsetWidth-2*n)}},h._setDropZonePlaceholderVisible=function(e){e?(this._adjustDropZonePlaceholder(),this._$dropZonePlaceholder.css("display","")):this._$dropZonePlaceholder.css("display","none")},h._shouldRaiseDragLeave=function(e,t){return t.isMouseOverElement(e,this.option("splitterElement"))||t._shouldRaiseDragLeaveBase(e,!0)},h._uploadFiles=function(e,t){this._setDropZonePlaceholderVisible(!1);var n=(new l.default).toString(),i=this._getController(),o=t.map((function(){return new r.Deferred})),a={id:n,controller:i,files:t,deferreds:o};e.session=a;var s={sessionId:n,deferreds:o,files:t};return this._raiseUploadSessionStarted(s),(0,c.whenSome)(o).always((function(){return setTimeout((function(){e.fileUploader.reset(),e.session=null}))}))},h._getDeferredForFile=function(e,t){var n=this._findSessionByFile(e,t),i=n.session,o=n.fileIndex;return i.deferreds[o]},h._findSessionByFile=function(e,t){var n=this._findUploaderInfo(e).session,i=n.files.indexOf(t);return{session:n,fileIndex:i}},h._findUploaderInfoBySessionId=function(e){for(var t=0;t<this._uploaderInfos.length;t++){var n=this._uploaderInfos[t],i=n.session;if(i&&i.id===e)return n}return null},h._findAndUpdateAvailableUploaderInfo=function(){for(var e,t=null,n=0;n<this._uploaderInfos.length;n++){var i=this._uploaderInfos[n];i.fileUploader.option("dropZone",""),t||i.session||(t=i)}return null===(e=t)||void 0===e||e.fileUploader.option("dropZone",this.option("dropZone")),t},h._findUploaderInfo=function(e){for(var t=0;t<this._uploaderInfos.length;t++){var n=this._uploaderInfos[t];if(n.fileUploader===e)return n}return null},h._getController=function(){return this.option("getController")()},h._raiseUploadSessionStarted=function(e){this._actions.onUploadSessionStarted({sessionInfo:e})},h._raiseUploadProgress=function(e){this._actions.onUploadProgress(e)},h._initActions=function(){this._actions={onUploadSessionStarted:this._createActionByOption("onUploadSessionStarted"),onUploadProgress:this._createActionByOption("onUploadProgress")}},h._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{getController:null,onUploadSessionStarted:null,onUploadProgress:null,splitterElement:null})},h._optionChanged=function(t){var n=t.name;switch(n){case"getController":this.repaint();break;case"onUploadSessionStarted":case"onUploadProgress":this._actions[n]=this._createActionByOption(n);break;case"dropZone":this._findAndUpdateAvailableUploaderInfo(),this._adjustDropZonePlaceholder();break;case"dropZonePlaceholderContainer":this._$dropZonePlaceholder.detach(),this._$dropZonePlaceholder.appendTo(t.value);break;case"splitterElement":break;default:e.prototype._optionChanged.call(this,t)}},u}(u.default);t.default=p,e.exports=t.default,e.exports.default=t.default},48156:function(e,t,n){t.default=void 0;var i=f(n(68374)),o=n(13306),a=n(44899),r=n(20576),s=f(n(14390)),l=f(n(76986)),u=f(n(68912)),d=n(62754),c=n(58201),h=n(35922);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function m(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v="dx-filemanager-focused-item",y=function(e){var t,n;function s(){return e.apply(this,arguments)||this}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,_(t,n);var f,g,y=s.prototype;return y._initMarkup=function(){var e=this;this._initActions(),this._getCurrentDirectory=this.option("getCurrentDirectory"),this._createFileActionsButton=r.noop,this._storeExpandedState=this.option("storeExpandedState")||!1;var t=(0,i.default)("<div>").addClass("dx-filemanager-dirs-tree").appendTo(this.$element()),n={dataStructure:"plain",rootValue:"",createChildren:this._onFilesTreeViewCreateSubDirectories.bind(this),itemTemplate:this._createFilesTreeViewItemTemplate.bind(this),keyExpr:"getInternalKey",parentIdExpr:"parentDirectory.getInternalKey",displayExpr:function(e){return e.getDisplayName()},hasItemsExpr:"fileItem.hasSubDirectories",onItemClick:function(t){return e._actions.onDirectoryClick(t)},onItemExpanded:function(t){return e._onFilesTreeViewItemExpanded(t)},onItemCollapsed:function(t){return e._onFilesTreeViewItemCollapsed(t)},onItemRendered:function(t){return e._onFilesTreeViewItemRendered(t)},onContentReady:function(){return e._actions.onFilesTreeViewContentReady()}};this._contextMenu&&(this._contextMenu.option("onContextMenuHidden",(function(){return e._onContextMenuHidden()})),n.onItemContextMenu=function(t){return e._onFilesTreeViewItemContextMenu(t)},this._createFileActionsButton=function(t,n){return e._createComponent(t,u.default,n)}),this._filesTreeView=this._createComponent(t,l.default,n)},y._initActions=function(){this._actions={onDirectoryClick:this._createActionByOption("onDirectoryClick"),onFilesTreeViewContentReady:this._createActionByOption("onFilesTreeViewContentReady")}},y._render=function(){e.prototype._render.call(this);var t=this;setTimeout((function(){t._updateFocusedElement()}))},y._onFilesTreeViewCreateSubDirectories=function(e){var t=this.option("getDirectories"),n=e&&e.itemData||null;return t&&t(n,!0)},y._onFilesTreeViewItemRendered=function(e){var t=e.itemData,n=this._getCurrentDirectory();n&&n.fileItem.equals(t.fileItem)&&(this._updateFocusedElement(),this._restoreScrollTopPosition())},y._onFilesTreeViewItemExpanded=function(e){var t=e.itemData;this._storeExpandedState&&(t.expanded=!0)},y._onFilesTreeViewItemCollapsed=function(e){var t=e.itemData;this._storeExpandedState&&(t.expanded=!1)},y._createFilesTreeViewItemTemplate=function(e,t,n){var o=this,r=(0,i.default)(n);r.closest(this._filesTreeViewItemSelector).data("item",e);var s=(0,a.getImageContainer)(e.icon),l=(0,i.default)("<span>").text(e.getDisplayName()).addClass("dx-filemanager-dirs-tree-item-text"),u=(0,i.default)("<div>");r.append(s,l,u),this._createFileActionsButton(u,{onClick:function(e){return o._onFileItemActionButtonClick(e)}})},y._onFilesTreeViewItemContextMenu=function(e){var t=e.itemElement,n=e.event;n.preventDefault(),n.stopPropagation();var o=(0,i.default)(t).data("item");this._contextMenu.showAt([o],t,n,{itemData:o,itemElement:t})},y._onFileItemActionButtonClick=function(e){var t=e.component,n=e.element,i=e.event;i.stopPropagation();var o=t.$element().closest(this._filesTreeViewItemSelector),a=o.data("item"),r={itemData:a,itemElement:o,isActionButton:!0};this._contextMenu.showAt([a],n,i,r),this._activeFileActionsButton=t,this._activeFileActionsButton.setActive(!0)},y._onContextMenuHidden=function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)},y.toggleNodeDisabledState=function(e,t){var n=this._getNodeByKey(e);if(n){var i=this._filesTreeView.option("items").map((function(e){return e.getInternalKey()})).indexOf(n.getInternalKey());-1!==i&&this._filesTreeView.option("items[".concat(i,"].disabled"),t)}},y._saveScrollTopPosition=function(){(0,c.hasWindow)()&&(this._scrollTopPosition=this._filesTreeView.getScrollable().scrollTop())},y._restoreScrollTopPosition=function(){var e=this;(0,c.hasWindow)()&&(0,h.isNumeric)(this._scrollTopPosition)&&setTimeout((function(){return e._filesTreeView.getScrollable().scrollTo(e._scrollTopPosition)}))},y._updateFocusedElement=function(){var e=this._getCurrentDirectory(),t=this._getItemElementByKey(null==e?void 0:e.getInternalKey());this._$focusedElement&&this._$focusedElement.toggleClass(v,!1),this._$focusedElement=t||(0,i.default)(),this._$focusedElement.toggleClass(v,!0)},y._getNodeByKey=function(e){var t;return null===(t=this._filesTreeView)||void 0===t?void 0:t._getNode(e)},y._getPublicNode=function(e){for(var t,n=p(null===(t=this._filesTreeView)||void 0===t?void 0:t.getNodes());n.length;){var i=n.shift();if(i.itemData.getInternalKey()===e)return i;i.children.length&&n.push.apply(n,p(i.children))}},y._getItemElementByKey=function(e){var t=this._getNodeByKey(e);if(t){var n=this._filesTreeView._getNodeElement(t);if(n)return n.children(this._filesTreeViewItemSelector)}return null},y._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{storeExpandedState:!1,initialFolder:null,contextMenu:null,getItems:null,getCurrentDirectory:null,onDirectoryClick:null})},y._optionChanged=function(t){var n=t.name;switch(n){case"storeExpandedState":this._storeExpandedState=this.option(n);break;case"getItems":case"rootFolderDisplayName":case"initialFolder":case"contextMenu":this.repaint();break;case"getCurrentDirectory":this.getCurrentDirectory=this.option(n);break;case"onDirectoryClick":case"onFilesTreeViewContentReady":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},y.toggleDirectoryExpandedState=function(e,t){var n=new d.Deferred,i=this._getPublicNode(null==e?void 0:e.getInternalKey());if(!i)return n.reject().promise();if(i.expanded===t||i.itemsLoaded&&!i.itemData.fileItem.hasSubDirectories)return n.resolve().promise();var o=t?"expandItem":"collapseItem";return this._filesTreeView[o](e.getInternalKey())},y.refresh=function(){this._$focusedElement=null,this._saveScrollTopPosition(),this._filesTreeView.option("dataSource",[])},y.updateCurrentDirectory=function(){this._disposed||(this._updateFocusedElement(),this._storeExpandedState&&this._updateExpandedStateToCurrentDirectory())},y._updateExpandedStateToCurrentDirectory=function(){return this.toggleDirectoryExpandedStateRecursive(this._getCurrentDirectory().parentDirectory,!0)},y.toggleDirectoryExpandedStateRecursive=function(e,t){for(var n=[],i=e;i;i=i.parentDirectory)n.unshift(i);return this.toggleDirectoryLineExpandedState(n,t)},y.toggleDirectoryLineExpandedState=function(e,t){var n=this;return e.length?this.toggleDirectoryExpandedState(e.shift(),t).then((function(){return n.toggleDirectoryLineExpandedState(e,t)})):(new d.Deferred).resolve().promise()},f=s,(g=[{key:"_filesTreeViewItemSelector",get:function(){return".".concat("dx-treeview-item")}},{key:"_contextMenu",get:function(){return this.option("contextMenu")}}])&&m(f.prototype,g),s}(s.default);t.default=y,e.exports=t.default,e.exports.default=t.default},99386:function(e,t,n){t.default=void 0;var i=h(n(68374)),o=n(13306),a=n(75084),r=n(35922),s=h(n(28109)),l=h(n(88221)),u=h(n(43785)),d=h(n(68912)),c=n(62754);function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p={thumbnail:{caption:"",calculateSortValue:"isDirectory",width:36,alignment:"center",cssClass:"dx-filemanager-details-item-is-directory"},name:{caption:s.default.format("dxFileManager-listDetailsColumnCaptionName")},dateModified:{caption:s.default.format("dxFileManager-listDetailsColumnCaptionDateModified"),width:110,hidingPriority:1},size:{caption:s.default.format("dxFileManager-listDetailsColumnCaptionFileSize"),width:90,alignment:"right",hidingPriority:0},isParentFolder:{caption:"isParentFolder",visible:!1,sortIndex:0,sortOrder:"asc"}},g=function(e){var t,n;function u(){return e.apply(this,arguments)||this}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var h=u.prototype;return h._initMarkup=function(){var t=this;this._itemCount=0,this._focusedItem=null,this._hasParentDirectoryItem=!1,this._parentDirectoryItemKey=null,this._selectAllCheckBox=null,this._selectAllCheckBoxUpdating=!1,this.$element().addClass("dx-filemanager-details"),this._createFilesView(),this._contextMenu.option("onContextMenuHidden",(function(){return t._onContextMenuHidden()})),e.prototype._initMarkup.call(this)},h._createFilesView=function(){var e=this,t=(0,i.default)("<div>").appendTo(this.$element()),n=this._isMultipleSelectionMode()?"multiple":"none";this._filesView=this._createComponent(t,l.default,{dataSource:this._createDataSource(),hoverStateEnabled:!0,selection:{mode:n,showCheckBoxesMode:this._isDesktop()?"onClick":"none"},selectedRowKeys:this.option("selectedItemKeys"),focusedRowKey:this.option("focusedItemKey"),focusedRowEnabled:!0,allowColumnResizing:!0,scrolling:{mode:"virtual"},sorting:{mode:"single",showSortIndexes:!1},showColumnLines:!1,showRowLines:!1,columnHidingEnabled:!1,columns:this._createColumns(),onEditorPreparing:this._onEditorPreparing.bind(this),onRowPrepared:this._onRowPrepared.bind(this),onContextMenuPreparing:this._onContextMenuPreparing.bind(this),onSelectionChanged:this._onFilesViewSelectionChanged.bind(this),onFocusedRowChanged:this._onFilesViewFocusedRowChanged.bind(this),onOptionChanged:this._onFilesViewOptionChanged.bind(this),onContentReady:function(){var t;return null===(t=e._refreshDeferred)||void 0===t?void 0:t.resolve()}})},h._createColumns=function(){var e=this,t=this.option("detailColumns");t=(t=t.slice(0)).map((function(t){var n=t;return(0,r.isString)(t)&&(n={dataField:t}),e._getPreparedColumn(n)}));var n=this.option("customizeDetailColumns");return(0,r.isFunction)(n)&&(t=n(t)),t.push(this._getPreparedColumn({dataField:"isParentFolder"})),t.forEach((function(t){return e._updateColumnDataField(t)})),t},h._getPreparedColumn=function(e){var t={},n="";if(this._isDefaultColumn(e.dataField)){var i=(0,o.extend)(!0,{},p[e.dataField]);switch(n=i.cssClass||"",e.dataField){case"thumbnail":i.cellTemplate=this._createThumbnailColumnCell.bind(this),i.calculateSortValue="fileItem.".concat(i.calculateSortValue);break;case"name":i.cellTemplate=this._createNameColumnCell.bind(this),i.caption=s.default.format("dxFileManager-listDetailsColumnCaptionName");break;case"size":i.calculateCellValue=this._calculateSizeColumnCellValue.bind(this),i.caption=s.default.format("dxFileManager-listDetailsColumnCaptionFileSize"),i.calculateSortValue=function(e){return e.fileItem.isDirectory?-1:e.fileItem.size};break;case"dateModified":i.caption=s.default.format("dxFileManager-listDetailsColumnCaptionDateModified")}(0,o.extend)(!0,t,i)}return(0,a.extendAttributes)(t,e,["alignment","caption","dataField","dataType","hidingPriority","sortIndex","sortOrder","visible","visibleIndex","width"]),e.cssClass&&(n="".concat(n," ").concat(e.cssClass)),n&&(t.cssClass=n),t},h._updateColumnDataField=function(e){var t=this._isDefaultColumn(e.dataField)?"":"dataItem.";return e.dataField="fileItem."+t+e.dataField,e},h._isDefaultColumn=function(e){return!!p[e]},h._onFileItemActionButtonClick=function(e){var t=e.component,n=e.element,i=e.event;i.stopPropagation();var o=t.$element().closest(this._getItemSelector()),a=o.data("item");this._selectItem(a);var r={itemData:a,itemElement:o,isActionButton:!0},s=this._getFileItemsForContextMenu(a);this._showContextMenu(s,n,i,r),this._activeFileActionsButton=t,this._activeFileActionsButton.setActive(!0)},h._onContextMenuHidden=function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)},h._getItemThumbnailCssClass=function(){return"dx-filemanager-details-item-thumbnail"},h._getItemSelector=function(){return".".concat("dx-data-row")},h._onItemDblClick=function(e){var t=(0,i.default)(e.currentTarget).data("item");this._raiseSelectedItemOpened(t)},h._isAllItemsSelected=function(){var e=this._hasParentDirectoryItem?this._itemCount-1:this._itemCount,t=this._filesView.option("selectedRowKeys");return!!t.length&&(t.length>=e||void 0)},h._onEditorPreparing=function(e){var t=this,n=e.component,i=e.command,o=e.row,a=e.parentType,r=e.editorOptions;this._filesView||(this._filesView=n),"select"===i&&o?this._isParentDirectoryItem(o.data)&&(r.disabled=!0):"headerRow"===a&&(r.onInitialized=function(e){var n=e.component;t._selectAllCheckBox=n},r.value=this._isAllItemsSelected(),r.onValueChanged=function(e){return t._onSelectAllCheckBoxValueChanged(e)})},h._onSelectAllCheckBoxValueChanged=function(e){var t=e.event,n=e.previousValue,i=e.value;t?this._isAllItemsSelected()!==i&&(i?this._filesView.selectAll():this._filesView.deselectAll(),t.preventDefault()):n&&!this._selectAllCheckBoxUpdating&&this._selectAllCheckBox&&this._selectAllCheckBox.option("value",n)},h._onRowPrepared=function(e){var t=e.rowType,n=e.rowElement,o=e.data;if("data"===t){var a=(0,i.default)(n);a.data("item",o),this._isParentDirectoryItem(o)&&a.addClass("dx-filemanager-parent-directory-item")}},h._onContextMenuPreparing=function(e){if(this._isDesktop()){var t=null,n={};e.row&&"data"===e.row.rowType&&(n=e.row.data,this._selectItem(n),t=this._getFileItemsForContextMenu(n));var i=(0,o.extend)({},{targetElement:"content"===e.target&&(0,r.isDefined)(e.row)?this._filesView.getRowElement(e.rowIndex):void 0,itemData:n,options:this._contextMenu.option(),event:e.event,isActionButton:!1,cancel:!1});this._raiseContextMenuShowing(i),e.items=i.cancel?[]:this._contextMenu.createContextMenuItems(t,null,n)}},h._onFilesViewSelectionChanged=function(e){var t=e.component,n=e.selectedRowsData,i=e.selectedRowKeys,o=e.currentSelectedRowKeys,a=e.currentDeselectedRowKeys;this._filesView=this._filesView||t,this._selectAllCheckBox&&(this._selectAllCheckBoxUpdating=!0,this._selectAllCheckBox.option("value",this._isAllItemsSelected()),this._selectAllCheckBoxUpdating=!1);var r=n.map((function(e){return e.fileItem}));this._tryRaiseSelectionChanged({selectedItemInfos:n,selectedItems:r,selectedItemKeys:i,currentSelectedItemKeys:o,currentDeselectedItemKeys:a})},h._onFilesViewFocusedRowChanged=function(e){var t,n;this._isMultipleSelectionMode()||this._selectItemSingleSelection(null===(n=e.row)||void 0===n?void 0:n.data);var i=(null===(t=e.row)||void 0===t?void 0:t.data.fileItem)||null;this._onFocusedItemChanged({item:i,itemKey:null==i?void 0:i.key,itemElement:e.rowElement})},h._onFilesViewOptionChanged=function(e){e.fullName.indexOf("sortOrder")>-1&&this._filesView.columnOption("isParentFolder",{sortOrder:"asc",sortIndex:0})},h._resetFocus=function(){this._setFocusedItemKey(void 0)},h._createThumbnailColumnCell=function(e,t){this._getItemThumbnailContainer(t.data).appendTo(e)},h._createNameColumnCell=function(e,t){var n=this,o=(0,i.default)("<div>"),a=(0,i.default)("<span>").text(t.data.fileItem.name).addClass("dx-filemanager-details-item-name"),r=(0,i.default)("<div>").append(a,o).addClass("dx-filemanager-details-item-name-wrapper");(0,i.default)(e).append(r),this._createComponent(o,d.default,{onClick:function(e){return n._onFileItemActionButtonClick(e)}})},h._calculateSizeColumnCellValue=function(e){return e.fileItem.isDirectory?"":(0,a.getDisplayFileSize)(e.fileItem.size)},h._selectItem=function(e){(this._isMultipleSelectionMode()?this._selectItemMultipleSelection:this._selectItemSingleSelection).call(this,e)},h._deselectItem=function(e){this._filesView.deselectRows([e.fileItem.key])},h._selectItemSingleSelection=function(e){if(!this._focusedItem||!e||this._focusedItem.fileItem.key!==e.fileItem.key){var t=this._focusedItem;this._focusedItem=e;var n=[];t&&n.push(t.fileItem.key);var i=[],o=[];e&&!this._isParentDirectoryItem(e)&&(i.push(e.fileItem),o.push(e.fileItem.key)),this._raiseSelectionChanged({selectedItems:i,selectedItemKeys:o,currentSelectedItemKeys:[].concat(o),currentDeselectedItemKeys:n})}},h._selectItemMultipleSelection=function(e){var t=e.fileItem;if(!this._filesView.isRowSelected(t.key)){var n=this._filesView.getController("selection").isSelectionWithCheckboxes();this._filesView.selectRows([t.key],n)}},h._setSelectedItemKeys=function(e){this._filesView.option("selectedRowKeys",e)},h._setFocusedItemKey=function(e){var t;null===(t=this._filesView)||void 0===t||t.option("focusedRowKey",e)},h.clearSelection=function(){this._isMultipleSelectionMode()?this._filesView.clearSelection():this._filesView.option("focusedRowIndex",-1)},h.refresh=function(e){var t={dataSource:this._createDataSource()};return e&&Object.prototype.hasOwnProperty.call(e,"focusedItemKey")&&((0,r.isDefined)(e.focusedItemKey)?t.focusedRowKey=e.focusedItemKey:t.focusedRowIndex=-1),this._filesView.option(t),this._refreshDeferred=new c.Deferred,this._refreshDeferred.promise()},h.getSelectedItems=function(){return this._isMultipleSelectionMode()?this._filesView.getSelectedRowsData():this._focusedItem&&!this._isParentDirectoryItem(this._focusedItem)?[this._focusedItem]:[]},u}(u.default);t.default=g,e.exports=t.default,e.exports.default=t.default},43785:function(e,t,n){t.default=void 0;var i=n(13306),o=n(62754),a=n(85272),r=n(39611),s=c(n(55994)),l=n(44899),u=c(n(20530)),d=c(n(88036));function c(e){return e&&e.__esModule?e:{default:e}}function h(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){var t,n;function c(){return e.apply(this,arguments)||this}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,g(t,n);var f,m,_=c.prototype;return _._init=function(){this._initActions(),this._lockFocusedItemProcessing=!1,this._focusedItemKey=this.option("focusedItemKey"),e.prototype._init.call(this)},_._initMarkup=function(){this.$element().addClass("dx-filemanager-files-view");var t=(0,r.addNamespace)(a.name,"dxFileManager_open");s.default.on(this.$element(),t,this._getItemSelector(),this._onItemDblClick.bind(this)),e.prototype._initMarkup.call(this)},_._initActions=function(){this._actions={onError:this._createActionByOption("onError"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged"),onSelectedItemOpened:this._createActionByOption("onSelectedItemOpened"),onContextMenuShowing:this._createActionByOption("onContextMenuShowing")}},_._getDefaultOptions=function(){return(0,i.extend)(e.prototype._getDefaultOptions.call(this),{selectionMode:"single",selectedItemKeys:[],focusedItemKey:void 0,contextMenu:null,getItems:null,getItemThumbnail:null,onError:null,onSelectionChanged:null,onFocusedItemChanged:null,onSelectedItemOpened:null,onContextMenuShowing:null})},_._optionChanged=function(t){var n=t.name;switch(n){case"selectionMode":case"contextMenu":case"getItems":case"getItemThumbnail":this.repaint();break;case"selectedItemKeys":this._setSelectedItemKeys(t.value);break;case"focusedItemKey":this._lockFocusedItemProcessing||this._setFocusedItemKey(t.value);break;case"onError":case"onSelectedItemOpened":case"onSelectionChanged":case"onFocusedItemChanged":case"onContextMenuShowing":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},_._getItems=function(){var e=this;return this._getItemsInternal().done((function(t){e._itemCount=t.length,0===e._itemCount&&e._resetFocus();var n=e._findParentDirectoryItem(t);e._hasParentDirectoryItem=!!n,e._parentDirectoryItemKey=n?n.fileItem.key:null}))},_._getItemsInternal=function(){var e=this.option("getItems"),t=e?e():[];return(0,o.when)(t)},_._raiseOnError=function(e){this._actions.onError({error:e})},_._raiseSelectionChanged=function(e){this._actions.onSelectionChanged(e)},_._raiseFocusedItemChanged=function(e){this._actions.onFocusedItemChanged(e)},_._raiseSelectedItemOpened=function(e){this._actions.onSelectedItemOpened({fileItemInfo:e})},_._raiseContextMenuShowing=function(e){this._actions.onContextMenuShowing(e)},_._tryRaiseSelectionChanged=function(e){var t=this,n=e.selectedItemInfos,i=e.selectedItems,o=e.selectedItemKeys,a=e.currentSelectedItemKeys,r=e.currentDeselectedItemKeys,s=this._findParentDirectoryItem(this.getSelectedItems());s&&this._deselectItem(s);var l=!this._hasParentDirectoryItem;(l=l||this._hasValidKeys(a)||this._hasValidKeys(r))&&(n=this._filterOutItemByPredicate(n,(function(e){return e.fileItem.key===t._parentDirectoryItemKey})),i=this._filterOutParentDirectory(i),o=this._filterOutParentDirectoryKey(o,!0),a=this._filterOutParentDirectoryKey(a,!0),r=this._filterOutParentDirectoryKey(r,!0),this._raiseSelectionChanged({selectedItemInfos:n,selectedItems:i,selectedItemKeys:o,currentSelectedItemKeys:a,currentDeselectedItemKeys:r}))},_._onFocusedItemChanged=function(e){this._focusedItemKey!==e.itemKey&&(this._focusedItemKey=e.itemKey,this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",e.itemKey),this._lockFocusedItemProcessing=!1,this._raiseFocusedItemChanged(e))},_._resetFocus=function(){},_._getItemThumbnail=function(e){var t=this.option("getItemThumbnail");return t?t(e):{thumbnail:""}},_._getItemThumbnailContainer=function(e){var t=this._getItemThumbnail(e),n=t.thumbnail,i=t.cssClass,o=(0,l.getImageContainer)(n).addClass(this._getItemThumbnailCssClass());return i&&o.addClass(i),o},_._getItemThumbnailCssClass=function(){return""},_._getItemSelector=function(){},_._onItemDblClick=function(e){},_._isDesktop=function(){return"desktop"===u.default.real().deviceType},_._showContextMenu=function(e,t,n,i){this._contextMenu.showAt(e,t,n,i)},_._findParentDirectoryItem=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(this._isParentDirectoryItem(n))return n}return null},_._getFileItemsForContextMenu=function(e){var t=this.getSelectedItems();return this._isParentDirectoryItem(e)&&t.push(e),t},_._isParentDirectoryItem=function(e){return e.fileItem.isParentFolder},_._hasValidKeys=function(e){return e.length>1||1===e.length&&e[0]!==this._parentDirectoryItemKey},_._filterOutParentDirectory=function(e,t){var n=this;return this._filterOutItemByPredicate(e,(function(e){return e.key===n._parentDirectoryItemKey}),t)},_._filterOutParentDirectoryKey=function(e,t){var n=this;return this._filterOutItemByPredicate(e,(function(e){return e===n._parentDirectoryItemKey}),t)},_._filterOutItemByPredicate=function(e,t,n){for(var i=e,o=-1,a=0;a<e.length;a++)if(t(e[a])){o=a;break}return-1!==o&&(n&&(i=h(e)),i.splice(o,1)),i},_._isMultipleSelectionMode=function(){return"multiple"===this.option("selectionMode")},_._deselectItem=function(e){},_._setSelectedItemKeys=function(e){},_._setFocusedItemKey=function(e){},_._createDataSource=function(){return{store:new d.default({key:"fileItem.key",load:this._getItems.bind(this)})}},_.getSelectedItems=function(){},_.clearSelection=function(){},_.selectItem=function(){},f=c,(m=[{key:"_contextMenu",get:function(){return this.option("contextMenu")}}])&&p(f.prototype,m),c}(c(n(14390)).default);t.default=m,e.exports=t.default,e.exports.default=t.default},6339:function(e,t,n){t.default=void 0;var i=h(n(68374)),o=n(13306),a=n(62754),r=h(n(55994)),s=n(39611),l=n(49166),u=n(75084),d=h(n(28109)),c=h(n(99338));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){var t,n;function h(){return e.apply(this,arguments)||this}n=e,(t=h).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var p=h.prototype;return p._initMarkup=function(){e.prototype._initMarkup.call(this),this.$element().addClass("dx-filemanager-thumbnails");var t=(0,s.addNamespace)(l.name,"dxFileManager_thumbnails");r.default.on(this.$element(),t,this._onContextMenu.bind(this)),this._createItemList()},p._createItemList=function(){var e=this,t=this._isMultipleSelectionMode()?"multiple":"single",n=(0,i.default)("<div>").appendTo(this.$element());this._itemList=this._createComponent(n,c.default,{dataSource:this._createDataSource(),selectionMode:t,selectedItemKeys:this.option("selectedItemKeys"),focusedItemKey:this.option("focusedItemKey"),activeStateEnabled:!0,hoverStateEnabled:!0,loopItemFocus:!1,focusStateEnabled:!0,onItemEnterKeyPressed:this._tryOpen.bind(this),itemThumbnailTemplate:this._getItemThumbnailContainer.bind(this),getTooltipText:this._getTooltipText.bind(this),onSelectionChanged:this._onItemListSelectionChanged.bind(this),onFocusedItemChanged:this._onItemListFocusedItemChanged.bind(this),onContentReady:function(){var t;return null===(t=e._refreshDeferred)||void 0===t?void 0:t.resolve()}})},p._onContextMenu=function(e){if(e.preventDefault(),e.stopPropagation(),this._isDesktop()){var t=null,n=(0,i.default)(e.target).closest(this._getItemSelector()),o=null;n.length>0&&(o=this._itemList.getItemByItemElement(n),this._itemList.selectItem(o),t=this._getFileItemsForContextMenu(o));var a={itemData:o,itemElement:n.length?n:void 0};this._showContextMenu(t,e.target,e,a)}},p._getItemThumbnailCssClass=function(){return"dx-filemanager-thumbnails-item-thumbnail"},p._getItemSelector=function(){return".".concat("dx-filemanager-thumbnails-item")},p._getTooltipText=function(e){var t=e.fileItem;if(t.tooltipText)return t.tooltipText;var n="".concat(t.name,"\r\n");return t.isDirectory||(n+="".concat(d.default.format("dxFileManager-listThumbnailsTooltipTextSize"),": ").concat((0,u.getDisplayFileSize)(t.size),"\r\n")),n+"".concat(d.default.format("dxFileManager-listThumbnailsTooltipTextDateModified"),": ").concat(t.dateModified)},p._onItemDblClick=function(e){var t=(0,i.default)(e.currentTarget),n=this._itemList.getItemByItemElement(t);this._tryOpen(n)},p._tryOpen=function(e){e&&this._raiseSelectedItemOpened(e)},p._getItemsInternal=function(){return e.prototype._getItemsInternal.call(this).then((function(e){var t=new a.Deferred;return setTimeout((function(){return t.resolve(e)})),t.promise()}))},p._disableDragging=function(){return!1},p._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{focusStateEnabled:!0})},p._onItemListSelectionChanged=function(e){var t=e.addedItemKeys,n=e.removedItemKeys,i=this.getSelectedItems(),o=i.map((function(e){return e.fileItem})),a=o.map((function(e){return e.key}));this._tryRaiseSelectionChanged({selectedItemInfos:i,selectedItems:o,selectedItemKeys:a,currentSelectedItemKeys:t,currentDeselectedItemKeys:n})},p._onItemListFocusedItemChanged=function(e){var t=e.item,n=e.itemElement;this._isMultipleSelectionMode()||this._selectItemSingleSelection(t);var i=(null==t?void 0:t.fileItem)||null;this._onFocusedItemChanged({item:i,itemKey:null==i?void 0:i.key,itemElement:n||void 0})},p._setSelectedItemKeys=function(e){this._itemList.option("selectedItemKeys",e)},p._setFocusedItemKey=function(e){this._itemList.option("focusedItemKey",e)},p.refresh=function(e){var t={dataSource:this._createDataSource()};return e&&Object.prototype.hasOwnProperty.call(e,"focusedItemKey")&&(t.focusedItemKey=e.focusedItemKey),this._itemList.option(t),this._refreshDeferred=new a.Deferred,this._refreshDeferred.promise()},p._deselectItem=function(e){var t=this._itemList.getItemElementByItem(e);this._itemList.unselectItem(t)},p._selectItemSingleSelection=function(e){e?this._itemList.selectItem(e):this._itemList.clearSelection()},p.clearSelection=function(){this._itemList.clearSelection()},p.getSelectedItems=function(){return this._itemList.getSelectedItems()},h}(h(n(43785)).default);t.default=p,e.exports=t.default,e.exports.default=t.default},99338:function(e,t,n){t.default=void 0;var i=n(58664),o=m(n(68374)),a=n(13306),r=n(89386),s=n(35922),l=n(62754),u=m(n(11699)),d=n(39611),c=m(n(55994)),h=n(93280),f=m(n(4741)),p=m(n(11050)),g=m(n(68198));function m(e){return e&&e.__esModule?e:{default:e}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=(0,d.addNamespace)(u.default.name,"dxFileManagerThumbnailsListBox"),y=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,_(t,n);var u=i.prototype;return u._initMarkup=function(){this._initActions(),this._lockFocusedItemProcessing=!1,this.$element().addClass("dx-filemanager-thumbnails-view-port"),this._renderScrollView(),this._renderItemsContainer(),this._createScrollViewControl(),e.prototype._initMarkup.call(this),this.onFocusedItemChanged=this._onFocusedItemChanged.bind(this),this._layoutUtils=new x(this._scrollView,this.$element(),this._$itemContainer,this.itemElements().first()),this._syncFocusedItemKey()},u._initActions=function(){this._actions={onItemEnterKeyPressed:this._createActionByOption("onItemEnterKeyPressed"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged")}},u._initTemplates=function(){e.prototype._initTemplates.call(this),this._itemThumbnailTemplate=this.option("itemThumbnailTemplate"),this._getTooltipText=this.option("getTooltipText"),this._templateManager.addDefaultTemplates({item:new h.BindableTemplate(function(e,t,n){var i=this._getDefaultItemTemplate(n,e);e.append(i)}.bind(this),["fileItem"],this.option("integrationOptions.watchMethod"))})},u._createScrollViewControl=function(){this._scrollView||(this._scrollView=this._createComponent(this._$scrollView,f.default,{scrollByContent:!0,scrollByThumb:!0,useKeyboard:!1,showScrollbar:"onHover"}))},u._renderScrollView=function(){this._$scrollView||(this._$scrollView=(0,o.default)("<div>").appendTo(this.$element()))},u._renderItemsContainer=function(){this._$itemContainer||(this._$itemContainer=(0,o.default)("<div>").addClass("dx-filemanager-thumbnails-container").appendTo(this._$scrollView))},u._render=function(){e.prototype._render.call(this),this._detachEventHandlers(),this._attachEventHandlers()},u._clean=function(){this._detachEventHandlers(),e.prototype._clean.call(this)},u._supportedKeys=function(){return(0,a.extend)(e.prototype._supportedKeys.call(this),{upArrow:function(e){this._beforeKeyProcessing(e),this._processArrowKeys(-1,!1,e)},downArrow:function(e){this._beforeKeyProcessing(e),this._processArrowKeys(1,!1,e)},home:function(e){this._beforeKeyProcessing(e),this._processHomeEndKeys(0,!0,e)},end:function(e){this._beforeKeyProcessing(e),this._processHomeEndKeys(this._getItemsLength()-1,!0,e)},pageUp:function(e){this._beforeKeyProcessing(e),this._processPageChange(!0,e)},pageDown:function(e){this._beforeKeyProcessing(e),this._processPageChange(!1,e)},enter:function(e){this._beforeKeyProcessing(e),this._actions.onItemEnterKeyPressed(this._getFocusedItem())},A:function(e){this._beforeKeyProcessing(e),(0,d.isCommandKeyPressed)(e)&&this.selectAll()}})},u._beforeKeyProcessing=function(e){e.preventDefault(),this._layoutUtils.reset()},u._processArrowKeys=function(e,t,n){var i=this._getFocusedItem();if(i){if(!t){var o=this._layoutUtils.getLayoutModel();if(!o)return;e*=o.itemPerRowCount}var a=this._getIndexByItem(i)+e;this._focusItemByIndex(a,!0,n)}},u._processHomeEndKeys=function(e,t,n){this._focusItemByIndex(e,t,n)},u._processPageChange=function(e,t){var n=this._getFocusedItem();if(n){var i=this._layoutUtils.getLayoutModel();if(i){var o=this._layoutUtils.createItemLayoutModel(this._getIndexByItem(n)),a=e?i.rowPerPageRate:-i.rowPerPageRate,r=o.itemRowIndex-a,s=(e?Math.ceil:Math.floor)(r)*i.itemPerRowCount+o.itemColumnIndex;s<0?s=0:s>=this._getItemsLength()&&(s=this._getItemsLength()-1),this._focusItemByIndex(s,!0,t)}}},u._processLongTap=function(e){var t=this._closestItemElement((0,o.default)(e.target)),n=this._getIndexByItemElement(t);this._selection.changeItemSelection(n,{control:!0})},u._attachEventHandlers=function(){var e=this;"multiple"===this.option("selectionMode")&&c.default.on(this._itemContainer(),v,".".concat(this._itemContentClass()),(function(t){e._processLongTap(t),t.stopPropagation()})),c.default.on(this._itemContainer(),"mousedown selectstart",(function(e){e.shiftKey&&e.preventDefault()}))},u._detachEventHandlers=function(){c.default.off(this._itemContainer(),v),c.default.off(this._itemContainer(),"mousedown selectstart")},u._itemContainer=function(){return this._$itemContainer},u._itemClass=function(){return"dx-filemanager-thumbnails-item"},u._itemDataKey=function(){return"dxFileManagerItemData"},u._getDefaultItemTemplate=function(e,t){t.attr("title",this._getTooltipText(e));var n=this._itemThumbnailTemplate(e),i=(0,o.default)("<div>").addClass("dx-filemanager-thumbnails-item-spacer"),a=(0,o.default)("<div>").addClass("dx-filemanager-thumbnails-item-name").text(e.fileItem.name);t.append(n,i,a)},u._itemSelectHandler=function(e){var t={};"multiple"===this.option("selectionMode")&&(this._isPreserveSelectionMode||(this._isPreserveSelectionMode=(0,d.isCommandKeyPressed)(e)||e.shiftKey),t={control:this._isPreserveSelectionMode,shift:e.shiftKey});var n=this._getIndexByItemElement(e.currentTarget);this._selection.changeItemSelection(n,t)},u._initSelectionModule=function(){var t=this;e.prototype._initSelectionModule.call(this);var n=(0,a.extend)(this._selection.options,{selectedKeys:this.option("selectedItemKeys"),onSelectionChanged:function(e){t.option("selectedItems",t._getItemsByKeys(e.selectedItemKeys,e.selectedItems)),t._updateSelectedItems(e)}});this._selection=new g.default(n)},u._updateSelectedItems=function(e){var t=this,n=e.addedItemKeys,i=e.removedItemKeys;if(this._rendered&&(n.length||i.length)){var o=this._selectionChangePromise;if(!this._rendering){var a,r=[],s=[];this._editStrategy.beginCache();for(var u=0;u<i.length;u++)a=this._getIndexByKey(i[u]),s.push(a),this._removeSelection(a);for(var d=0;d<n.length;d++)a=this._getIndexByKey(n[d]),r.push(a),this._addSelection(a);this._editStrategy.endCache(),this._updateSelection(r,s)}(0,l.when)(o).done((function(){return t._fireSelectionChangeEvent(e)}))}},u._fireSelectionChangeEvent=function(e){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})(e)},u._updateSelection=function(e,t){0===this.getSelectedItems().length&&(this._isPreserveSelectionMode=!1)},u._normalizeSelectedItems=function(){var e=this._getKeysByItems(this.option("selectedItems")),t=this._selection.getSelectedItemKeys();return this._compareKeys(t,e)||this._selection.setSelection(e),(new l.Deferred).resolve().promise()},u._focusOutHandler=function(){},u._getItems=function(){return this.option("items")||[]},u._getItemsLength=function(){return this._getItems().length},u._getIndexByItemElement=function(e){return this._editStrategy.getNormalizedIndex(e)},u._getItemByIndex=function(e){return this._getItems()[e]},u._getFocusedItem=function(){return this.getItemByItemElement(this.option("focusedElement"))},u._focusItem=function(e,t){this.option("focusedElement",this.getItemElementByItem(e)),t&&this._layoutUtils.scrollToItem(this._getIndexByItem(e))},u._focusItemByIndex=function(e,t,n){if(e>=0&&e<this._getItemsLength()){var i=this._getItemByIndex(e);this._focusItem(i,t,n)}},u._syncFocusedItemKey=function(){var e=this;this._syncFocusedItemKeyDeferred||(this._syncFocusedItemKeyDeferred=new l.Deferred);var t=this._syncFocusedItemKeyDeferred;if(this._dataSource&&this._dataSource.isLoading())return t.promise();var n=this.option("focusedItemKey");if((0,s.isDefined)(n)){var i=this.option("items"),o=(0,r.find)(i,(function(t){return e.keyOf(t)===n}));o?(this._focusItem(o,!0),t.resolve()):(this.option("focusedItemKey",void 0),t.reject())}else t.resolve();return this._syncFocusedItemKeyDeferred=null,t.promise()},u._onFocusedItemChanged=function(){var e=this._getFocusedItem(),t=this.keyOf(e);t!==this.option("focusedItemKey")&&(this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",t),this._lockFocusedItemProcessing=!1,this._raiseFocusedItemChanged(e))},u._raiseFocusedItemChanged=function(e){var t={item:e,itemElement:this.option("focusedElement")};this._actions.onFocusedItemChanged(t)},u._changeItemSelection=function(e,t){if(this.isItemSelected(e)!==t){var n=this.getItemElementByItem(e),i=this._getIndexByItemElement(n);this._selection.changeItemSelection(i,{control:this._isPreserveSelectionMode})}},u._chooseSelectOption=function(){return"selectedItemKeys"},u.getSelectedItems=function(){return this._selection.getSelectedItems()},u.getItemElementByItem=function(e){return this._editStrategy.getItemElement(e)},u.getItemByItemElement=function(e){return this._getItemByIndex(this._getIndexByItemElement(e))},u.selectAll=function(){"multiple"===this.option("selectionMode")&&(this._selection.selectAll(),this._isPreserveSelectionMode=!0)},u.selectItem=function(e){this._changeItemSelection(e,!0)},u.deselectItem=function(e){this._changeItemSelection(e,!1)},u.clearSelection=function(){this._selection.deselectAll()},u._optionChanged=function(t){var n=this;switch(t.name){case"items":this._layoutUtils&&this._layoutUtils.updateItems(this.itemElements().first()),e.prototype._optionChanged.call(this,t);break;case"focusedItemKey":if(this._lockFocusedItemProcessing)break;(0,s.isDefined)(t.value)?this._syncFocusedItemKey().done((function(){var e=n._getFocusedItem();n._raiseFocusedItemChanged(e)})):(this.option("focusedElement",null),this._raiseFocusedItemChanged(null));break;case"onItemEnterKeyPressed":case"onFocusedItemChanged":this._actions[t.name]=this._createActionByOption(t.name);break;default:e.prototype._optionChanged.call(this,t)}},i}(p.default),x=function(){function e(e,t,n,i){this._layoutModel=null,this._scrollView=e,this._$viewPort=t,this._$itemContainer=n,this._$item=i}var t=e.prototype;return t.updateItems=function(e){this._$item=e},t.reset=function(){this._layoutModel=null},t.getLayoutModel=function(){return this._layoutModel||(this._layoutModel=this._createLayoutModel()),this._layoutModel},t._createLayoutModel=function(){if(!this._$item)return null;var e=(0,i.getOuterWidth)(this._$item,!0);if(0===e)return null;var t=(0,i.getOuterHeight)(this._$item,!0),n=(0,i.getInnerWidth)(this._$itemContainer),o=(0,i.getInnerHeight)(this._$viewPort),a=this._scrollView.scrollTop();return{itemWidth:e,itemHeight:t,viewPortWidth:n,viewPortHeight:o,viewPortScrollTop:a,viewPortScrollBottom:a+o,itemPerRowCount:Math.floor(n/e),rowPerPageRate:o/t}},t.createItemLayoutModel=function(e){var t=this.getLayoutModel();if(!t)return null;var n=Math.floor(e/t.itemPerRowCount),i=e%t.itemPerRowCount,o=n*t.itemHeight;return{itemRowIndex:n,itemColumnIndex:i,itemTop:o,itemBottom:o+t.itemHeight}},t.scrollToItem=function(e){var t=this.getLayoutModel();if(t){var n=Math.floor(e/t.itemPerRowCount)*t.itemHeight,i=n+t.itemHeight,o=t.viewPortScrollTop;n<t.viewPortScrollTop?o=n:i>t.viewPortScrollBottom&&(o=i-t.viewPortHeight),this._scrollView.scrollTo(o)}},e}(),b=y;t.default=b,e.exports=t.default,e.exports.default=t.default},32737:function(e,t,n){t.default=void 0;var i=S(n(68374)),o=n(13306),a=n(35922),r=n(62754),s=n(20576),l=S(n(28109)),u=S(n(99393)),d=S(n(14390)),c=S(n(59958)),h=n(75084),f=S(n(57289)),p=n(77311),g=S(n(2681)),m=S(n(48156)),_=S(n(99386)),v=S(n(6339)),y=S(n(70166)),x=S(n(17723)),b=S(n(86471)),w=S(n(47565)),C=S(n(52666));function S(e){return e&&e.__esModule?e:{default:e}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var I="dx-filemanager-container",T="itemView",E=function(e){var t,n;function u(){return e.apply(this,arguments)||this}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,D(t,n);var d=u.prototype;return d._initTemplates=function(){},d._init=function(){e.prototype._init.call(this),this._initActions(),this._controller=new f.default({currentPath:this.option("currentPath"),currentPathKeys:this.option("currentPathKeys"),rootText:this.option("rootFolderName"),fileProvider:this.option("fileSystemProvider"),allowedFileExtensions:this.option("allowedFileExtensions"),uploadMaxFileSize:this.option("upload").maxFileSize,uploadChunkSize:this.option("upload").chunkSize,onInitialized:this._onControllerInitialized.bind(this),onDataLoading:this._onDataLoading.bind(this),onSelectedDirectoryChanged:this._onSelectedDirectoryChanged.bind(this),editingEvents:this._actions.editing})},d._initMarkup=function(){e.prototype._initMarkup.call(this),this._firstItemViewLoad=!0,this._lockSelectionProcessing=!1,this._lockFocusedItemProcessing=!1,this._itemKeyToFocus=void 0,this._commandManager=new p.FileManagerCommandManager(this.option("permissions")),this.$element().addClass("dx-filemanager"),this._createNotificationControl(),this._initCommandManager()},d._createNotificationControl=function(){var e=this,t=(0,i.default)("<div>").addClass("dx-filemanager-notification-container").appendTo(this.$element());this._notificationControl=this._createComponent(t,x.default,{progressPanelContainer:this.$element(),contentTemplate:function(t,n){return e._createWrapper(t,n)},onActionProgress:function(t){return e._onActionProgress(t)},positionTarget:".".concat(I),showProgressPanel:this.option("notifications.showPanel"),showNotificationPopup:this.option("notifications.showPopup")})},d._createWrapper=function(e,t){var n=this;this._$wrapper=(0,i.default)("<div>").addClass("dx-filemanager-wrapper").appendTo(e),this._createEditing(t);var o=(0,i.default)("<div>").appendTo(this._$wrapper);this._toolbar=this._createComponent(o,y.default,{commandManager:this._commandManager,generalItems:this.option("toolbar.items"),fileItems:this.option("toolbar.fileSelectionItems"),itemViewMode:this.option("itemView").mode,onItemClick:function(e){return n._actions.onToolbarItemClick(e)}}),this._createAdaptivityControl()},d._createAdaptivityControl=function(){var e=this,t=(0,i.default)("<div>").addClass(I).appendTo(this._$wrapper);this._adaptivityControl=this._createComponent(t,C.default,{drawerTemplate:function(t){return e._createFilesTreeView(t)},contentTemplate:function(t){return e._createItemsPanel(t)},onAdaptiveStateChanged:function(t){return e._onAdaptiveStateChanged(t)}}),this._editing.setUploaderSplitterElement(this._adaptivityControl.getSplitterElement())},d._createEditing=function(e){var t=this,n=(0,i.default)("<div>").addClass("dx-filemanager-editing-container").appendTo(this.$element());this._editing=this._createComponent(n,b.default,{controller:this._controller,model:{getMultipleSelectedItems:this._getSelectedItemInfos.bind(this)},getItemThumbnail:this._getItemThumbnailInfo.bind(this),notificationControl:e,uploadDropZonePlaceholderContainer:this.$element(),rtlEnabled:this.option("rtlEnabled"),onSuccess:function(e){var n=e.updatedOnlyFiles;return t._redrawComponent(n)},onError:function(e){return t._onEditingError(e)}})},d._createItemsPanel=function(e){this._$itemsPanel=(0,i.default)("<div>").addClass("dx-filemanager-items-panel").appendTo(e),this._createBreadcrumbs(this._$itemsPanel),this._createItemView(this._$itemsPanel),this._commandManager.isCommandAvailable("upload")&&this._editing.setUploaderDropZone(this._$itemsPanel)},d._createFilesTreeView=function(e){var t=this;this._filesTreeViewContextMenu=this._createContextMenu(!1,"navPane");var n=(0,i.default)("<div>").addClass("dx-filemanager-dirs-panel").appendTo(e);this._filesTreeView=this._createComponent(n,m.default,{storeExpandedState:!0,contextMenu:this._filesTreeViewContextMenu,getDirectories:this.getDirectories.bind(this),getCurrentDirectory:this._getCurrentDirectory.bind(this),onDirectoryClick:function(e){var n=e.itemData;return t._setCurrentDirectory(n)}}),this._filesTreeView.updateCurrentDirectory()},d._createItemView=function(e,t){var n=this;this._itemViewContextMenu=this._createContextMenu(!0,T);var o=this.option("itemView"),a={selectionMode:this.option("selectionMode"),selectedItemKeys:this.option("selectedItemKeys"),focusedItemKey:this.option("focusedItemKey"),contextMenu:this._itemViewContextMenu,getItems:this._getItemViewItems.bind(this),onError:function(e){var t=e.error;return n._showError(t)},onSelectionChanged:this._onItemViewSelectionChanged.bind(this),onFocusedItemChanged:this._onItemViewFocusedItemChanged.bind(this),onSelectedItemOpened:this._onSelectedItemOpened.bind(this),onContextMenuShowing:function(e){return n._onContextMenuShowing(T,e)},getItemThumbnail:this._getItemThumbnailInfo.bind(this),customizeDetailColumns:this.option("customizeDetailColumns"),detailColumns:this.option("itemView.details.columns")},r=(0,i.default)("<div>").appendTo(e),s="thumbnails"===(t=t||o.mode)?v.default:_.default;this._itemView=this._createComponent(r,s,a)},d._createBreadcrumbs=function(e){var t=this,n=(0,i.default)("<div>").appendTo(e);this._breadcrumbs=this._createComponent(n,w.default,{rootFolderDisplayName:this.option("rootFolderName"),onCurrentDirectoryChanging:function(e){var n=e.currentDirectory;return t._setCurrentDirectory(n,!0)}}),this._breadcrumbs.setCurrentDirectory(this._getCurrentDirectory())},d._createContextMenu=function(e,t){var n=this,o=(0,i.default)("<div>").appendTo(this._$wrapper);return this._createComponent(o,g.default,{commandManager:this._commandManager,items:this.option("contextMenu.items"),onItemClick:function(e){return n._actions.onContextMenuItemClick(e)},onContextMenuShowing:function(e){return n._onContextMenuShowing(t,e)},isolateCreationItemCommands:e,viewArea:t})},d._initCommandManager=function(){var e=this,t=(0,o.extend)(this._editing.getCommandActions(),{refresh:function(){return e._refreshAndShowProgress()},thumbnails:function(){return e.option("itemView.mode","thumbnails")},details:function(){return e.option("itemView.mode","details")},clearSelection:function(){return e._clearSelection()},showNavPane:function(){return e._adaptivityControl.toggleDrawer()}});this._commandManager.registerActions(t)},d._onItemViewSelectionChanged=function(e){var t=e.selectedItemInfos,n=e.selectedItems,i=e.selectedItemKeys,o=e.currentSelectedItemKeys,a=e.currentDeselectedItemKeys;this._lockSelectionProcessing=!0,this.option("selectedItemKeys",i),this._lockSelectionProcessing=!1,this._actions.onSelectionChanged({selectedItems:n,selectedItemKeys:i,currentSelectedItemKeys:o,currentDeselectedItemKeys:a}),this._updateToolbar(t)},d._onItemViewFocusedItemChanged=function(e){this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",e.itemKey),this._lockFocusedItemProcessing=!1,this._actions.onFocusedItemChanged({item:e.item,itemElement:e.itemElement})},d._onAdaptiveStateChanged=function(e){var t=e.enabled;this._commandManager.setCommandEnabled("showNavPane",t),this._updateToolbar()},d._onActionProgress=function(e){var t=e.message,n=e.status;this._toolbar.updateRefreshItem(t,n),this._updateToolbar()},d._onEditingError=function(e){var t=(0,h.extendAttributes)({},e,["errorCode","errorText","fileSystemItem"]);this._actions.onErrorOccurred(t),e.errorText=t.errorText},d._refreshAndShowProgress=function(){var e=this;return(0,r.when)(this._notificationControl.tryShowProgressPanel(),this._controller.refresh()).then((function(){return e._filesTreeView.refresh()}))},d._updateToolbar=function(e){var t=e||this._getSelectedItemInfos();this._toolbar.option("contextItems",(0,s.ensureDefined)(t,[]))},d._switchView=function(e){this._disposeWidget(this._itemView.option("contextMenu")),this._disposeWidget(this._itemView),this._createItemView(this._$itemsPanel,e),this._toolbar.option({itemViewMode:e})},d._disposeWidget=function(e){e.dispose(),e.$element().remove()},d._clearSelection=function(){this._itemView.clearSelection()},d._showError=function(e){this._showNotification(e,!1)},d._showNotification=function(e,t){(0,c.default)({message:e,width:450},t?"success":"error",5e3)},d._redrawComponent=function(e){var t=this;this._itemView.refresh().then((function(){return!e&&t._filesTreeView.refresh()}))},d._getItemViewItems=function(){var e=this,t=this.option("itemView").showFolders,n=this._controller.getCurrentItems(!t);return this._updateToolbarWithSelectionOnFirstLoad(n),this.option("itemView.showParentFolder")&&(n=(0,r.when)(n).then((function(t){return e._getPreparedItemViewItems(t)}))),n},d._updateToolbarWithSelectionOnFirstLoad=function(e){var t=this;if(this._firstItemViewLoad){this._firstItemViewLoad=!1;var n=this.option("selectedItemKeys");n.length>0&&(0,r.when)(e).done((function(e){var i=(0,h.findItemsByKeys)(e,n);i.length>0&&t._updateToolbar(i)}))}},d._getPreparedItemViewItems=function(e){var t=this._getCurrentDirectory();if(t.fileItem.isRoot())return e;var n=t.fileItem.createClone();n.isParentFolder=!0,n.name="..",n.relativeName="..",n.key="".concat("[*DXPDK*]$40F96F03-FBD8-43DF-91BE-F55F4B8BA871$").concat(t.fileItem.key);var i=function(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e);return i.unshift({fileItem:n,icon:"parentfolder"}),i},d._onContextMenuShowing=function(e,t){var n,i=(0,h.extendAttributes)({},t,["targetElement","cancel","event"]);i=(0,o.extend)(i,{viewArea:e,fileSystemItem:null===(n=t.itemData)||void 0===n?void 0:n.fileItem,_isActionButton:t.isActionButton}),this._actions.onContextMenuShowing(i),t.cancel=(0,s.ensureDefined)(i.cancel,!1)},d._getItemThumbnailInfo=function(e){var t=this.option("customizeThumbnail"),n=(0,a.isFunction)(t)?t(e.fileItem):e.fileItem.thumbnail;return n?{thumbnail:n,cssClass:"dx-filemanager-item-custom-thumbnail"}:{thumbnail:e.icon}},d._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{fileSystemProvider:null,currentPath:"",currentPathKeys:[],rootFolderName:l.default.format("dxFileManager-rootDirectoryName"),selectionMode:"multiple",selectedItemKeys:[],focusedItemKey:void 0,toolbar:{items:["showNavPane","create","upload","switchView",{name:"separator",location:"after"},"refresh"],fileSelectionItems:["download","separator","move","copy","rename","separator","delete","clearSelection",{name:"separator",location:"after"},"refresh"]},contextMenu:{items:["create","upload","rename","move","copy","delete","refresh","download"]},itemView:{details:{columns:["thumbnail","name","dateModified","size"]},mode:"details",showFolders:!0,showParentFolder:!0},customizeThumbnail:null,customizeDetailColumns:null,onContextMenuItemClick:null,onContextMenuShowing:null,onCurrentDirectoryChanged:null,onSelectedFileOpened:null,onSelectionChanged:null,onFocusedItemChanged:null,onToolbarItemClick:null,onErrorOccurred:null,onDirectoryCreating:null,onDirectoryCreated:null,onItemRenaming:null,onItemRenamed:null,onItemDeleting:null,onItemDeleted:null,onItemCopying:null,onItemCopied:null,onItemMoving:null,onItemMoved:null,onFileUploading:null,onFileUploaded:null,onItemDownloading:null,allowedFileExtensions:[],upload:{maxFileSize:0,chunkSize:2e5},permissions:{create:!1,copy:!1,move:!1,delete:!1,rename:!1,upload:!1,download:!1},notifications:{showPanel:!0,showPopup:!0}})},d._optionChanged=function(t){var n=this,i=t.name;switch(i){case"currentPath":this._controller.setCurrentPath(t.value);break;case"currentPathKeys":this._controller.setCurrentPathByKeys(t.value);break;case"selectedItemKeys":!this._lockSelectionProcessing&&this._itemView&&this._itemView.option("selectedItemKeys",t.value);break;case"focusedItemKey":!this._lockFocusedItemProcessing&&this._itemView&&this._itemView.option("focusedItemKey",t.value);break;case"rootFolderName":this._controller.setRootText(t.value),this.repaint();break;case"fileSystemProvider":this._controller.updateProvider(t.value,this.option("currentPath")).then((function(){return n.repaint()}));break;case"allowedFileExtensions":this._controller.setAllowedFileExtensions(t.value),this.repaint();break;case"upload":this._controller.setUploadOptions(this.option("upload")),this.repaint();break;case"permissions":case"selectionMode":case"customizeThumbnail":case"customizeDetailColumns":this.repaint();break;case"itemView":"itemView.mode"===t.fullName?this._switchView(t.value):this.repaint();break;case"toolbar":var o={};"toolbar"===t.fullName&&(t.value.items&&(o.generalItems=t.value.items),t.value.fileSelectionItems&&(o.fileItems=t.value.fileSelectionItems)),0===t.fullName.indexOf("toolbar.items")&&(o.generalItems=this.option("toolbar.items")),0===t.fullName.indexOf("toolbar.fileSelectionItems")&&(o.fileItems=this.option("toolbar.fileSelectionItems")),this._toolbar.option(o);break;case"contextMenu":if("contextMenu"===t.fullName&&t.value.items||0===t.fullName.indexOf("contextMenu.items")){var a=this.option("contextMenu.items");this._filesTreeViewContextMenu.option("items",a),this._itemViewContextMenu.option("items",a)}break;case"notifications":this._notificationControl.option("showProgressPanel",this.option("notifications.showPanel")),this._notificationControl.option("showNotificationPopup",this.option("notifications.showPopup"));break;case"onContextMenuItemClick":case"onContextMenuShowing":case"onCurrentDirectoryChanged":case"onSelectedFileOpened":case"onSelectionChanged":case"onFocusedItemChanged":case"onToolbarItemClick":case"onErrorOccurred":this._actions[i]=this._createActionByOption(i);break;case"onDirectoryCreating":case"onDirectoryCreated":case"onItemRenaming":case"onItemRenamed":case"onItemDeleting":case"onItemDeleted":case"onItemCopying":case"onItemCopied":case"onItemMoving":case"onItemMoved":case"onFileUploading":case"onFileUploaded":case"onItemDownloading":this._actions.editing[i]=this._createActionByOption(i);break;case"rtlEnabled":this._editing.updateDialogRtl(t.value),e.prototype._optionChanged.call(this,t);break;default:e.prototype._optionChanged.call(this,t)}},d._initActions=function(){this._actions={onContextMenuItemClick:this._createActionByOption("onContextMenuItemClick"),onContextMenuShowing:this._createActionByOption("onContextMenuShowing"),onCurrentDirectoryChanged:this._createActionByOption("onCurrentDirectoryChanged"),onSelectedFileOpened:this._createActionByOption("onSelectedFileOpened"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged"),onToolbarItemClick:this._createActionByOption("onToolbarItemClick"),onErrorOccurred:this._createActionByOption("onErrorOccurred"),editing:{onDirectoryCreating:this._createActionByOption("onDirectoryCreating"),onDirectoryCreated:this._createActionByOption("onDirectoryCreated"),onItemRenaming:this._createActionByOption("onItemRenaming"),onItemRenamed:this._createActionByOption("onItemRenamed"),onItemDeleting:this._createActionByOption("onItemDeleting"),onItemDeleted:this._createActionByOption("onItemDeleted"),onItemCopying:this._createActionByOption("onItemCopying"),onItemCopied:this._createActionByOption("onItemCopied"),onItemMoving:this._createActionByOption("onItemMoving"),onItemMoved:this._createActionByOption("onItemMoved"),onFileUploading:this._createActionByOption("onFileUploading"),onFileUploaded:this._createActionByOption("onFileUploaded"),onItemDownloading:this._createActionByOption("onItemDownloading")}}},d.executeCommand=function(e){return this._commandManager.executeCommand(e)},d._setCurrentDirectory=function(e,t){this._controller.setCurrentDirectory(e,t)},d._getCurrentDirectory=function(){return this._controller.getCurrentDirectory()},d._onControllerInitialized=function(e){var t=e.controller;this._controller=this._controller||t,t.getCurrentDirectory().fileItem.isRoot()||this._syncToCurrentDirectory()},d._onDataLoading=function(e){var t=null;"navigation"===e.operation&&(t={focusedItemKey:this._itemKeyToFocus},this._itemKeyToFocus=void 0),this._itemView.refresh(t)},d._onSelectedDirectoryChanged=function(){var e=this._getCurrentDirectory();this._syncToCurrentDirectory(),this._actions.onCurrentDirectoryChanged({directory:e.fileItem})},d._syncToCurrentDirectory=function(){var e=this._getCurrentDirectory(),t=this._controller.getCurrentPath(),n=e.fileItem.pathKeys;this._filesTreeView&&this._filesTreeView.updateCurrentDirectory(),this._breadcrumbs&&this._breadcrumbs.setCurrentDirectory(e);var i={currentPath:t};(0,s.equalByValue)(this.option("currentPathKeys"),n)||(i.currentPathKeys=n),this.option(i)},d.getDirectories=function(e,t){return this._controller.getDirectories(e,t)},d._getSelectedItemInfos=function(){return this._itemView?this._itemView.getSelectedItems():[]},d.refresh=function(){return this.executeCommand("refresh")},d.getCurrentDirectory=function(){var e=this._getCurrentDirectory();return e&&e.fileItem||null},d.getSelectedItems=function(){return this._getSelectedItemInfos().map((function(e){return e.fileItem}))},d._onSelectedItemOpened=function(e){var t=e.fileItemInfo,n=t.fileItem;if(n.isDirectory){n.isParentFolder&&(this._itemKeyToFocus=this._getCurrentDirectory().fileItem.key);var i=n.isParentFolder?this._getCurrentDirectory().parentDirectory:t;this._setCurrentDirectory(i),i&&this._filesTreeView.toggleDirectoryExpandedState(i.parentDirectory,!0)}else this._actions.onSelectedFileOpened({file:n})},u}(d.default);(0,u.default)("dxFileManager",E);var A=E;t.default=A,e.exports=t.default,e.exports.default=t.default},17053:function(e,t,n){Object.defineProperty(t,"ErrorCode",{enumerable:!0,get:function(){return o.default}}),t.FileManagerMessages=void 0;var i=a(n(28109)),o=a(n(41011));function a(e){return e&&e.__esModule?e:{default:e}}var r={get:function(e,t){switch(e){case o.default.NoAccess:return i.default.format("dxFileManager-errorNoAccess");case o.default.FileExists:return i.default.format("dxFileManager-errorFileExistsFormat",t);case o.default.FileNotFound:return i.default.format("dxFileManager-errorFileNotFoundFormat",t);case o.default.DirectoryExists:return i.default.format("dxFileManager-errorDirectoryExistsFormat",t);case o.default.DirectoryNotFound:return i.default.format("dxFileManager-errorDirectoryNotFoundFormat",t);case o.default.WrongFileExtension:return i.default.format("dxFileManager-errorWrongFileExtension");case o.default.MaxFileSizeExceeded:return i.default.format("dxFileManager-errorMaxFileSizeExceeded");case o.default.InvalidSymbols:return i.default.format("dxFileManager-errorInvalidSymbols")}return i.default.format("dxFileManager-errorDefault")}};t.FileManagerMessages=r},17723:function(e,t,n){t.default=void 0;var i=n(58664),o=f(n(68374)),a=n(13306),r=n(35922),s=n(62754),l=n(58201),u=f(n(14390)),d=f(n(39114)),c=f(n(32089)),h=n(35226);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g=(0,l.getWindow)(),m="dx-filemanager-notification",_="".concat(m,"-drawer"),v="".concat(_,"-panel"),y="".concat(m,"-popup"),x="".concat(m,"-popup-error"),b="".concat(m,"-common"),w="".concat(m,"-separator"),C="".concat(m,"-details"),S="".concat(m,"-common-no-item"),k=function(e){var t,n;function u(){return e.apply(this,arguments)||this}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var f=u.prototype;return f._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this),this._initActions(),this._isInAdaptiveState=this._isSmallScreen(),this._managerMap={},this._notificationManagerStubId=null,this._setNotificationManager();var n=this.option("progressPanelContainer"),i=(0,o.default)("<div>").addClass(_).appendTo(n);(0,o.default)("<div>").addClass(v).appendTo(i);var s=(0,a.extend)({opened:!1,position:"right",template:function(e){return t._ensureProgressPanelCreated(e)}},this._getProgressDrawerAdaptiveOptions());this._progressDrawer=this._createComponent(i,c.default,s);var l=i.find(".".concat(v)).first(),u=this.option("contentTemplate");(0,r.isFunction)(u)&&u(l,this)},f._setNotificationManager=function(e){if(e=(0,a.extend)({onActionProgressStatusChanged:this._raiseActionProgress.bind(this)},e),!this._notificationManagerStubId){var t=new h.NotificationManagerStub(e);this._notificationManagerStubId=t.getId(),this._managerMap[this._notificationManagerStubId]=t}if(!this._isProgressDrawerDisabled()){var n=this._getProgressManagerComponent();e.isActual=!0;var i=new n(e);this._managerMap[i.getId()]=i}},f._getNotificationManager=function(e){var t=(null==e?void 0:e[h.MANAGER_ID_NAME])||this._getActualNotificationManagerId();return this._managerMap[t]||this._managerMap[this._notificationManagerStubId]},f._clearManagerMap=function(){var e,t,n,i=this._managerMap[this._notificationManagerStubId];delete this._managerMap,this._managerMap=(e={},n=i,(t=this._notificationManagerStubId)in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)},f._getActualNotificationManagerId=function(){var e=this;return Object.keys(this._managerMap).filter((function(t){return e._managerMap[t].isActual()}))[0]},f.tryShowProgressPanel=function(){var e=this,t=new s.Deferred,n=this._getNotificationManager();return n.isActionProgressStatusDefault()||this._isProgressDrawerOpened()||this._isProgressDrawerDisabled()?t.resolve().promise():(setTimeout((function(){e._progressDrawer.show().done(t.resolve),e._hidePopup(),n.tryHideActionProgress()})),t.promise())},f.addOperation=function(e,t,n){return this._getNotificationManager().addOperation(e,t,n)},f.addOperationDetails=function(e,t,n){this._getNotificationManager(e).addOperationDetails(e,t,n)},f.updateOperationItemProgress=function(e,t,n,i){this._getNotificationManager(e).updateOperationItemProgress(e,t,n,i)},f.completeOperationItem=function(e,t,n){this._getNotificationManager(e).completeOperationItem(e,t,n)},f.completeOperation=function(e,t,n,i){var o=this._getNotificationManager(e);n||this._showPopup(t),o.completeOperation(e,t,n,i),this._isProgressDrawerOpened()&&o.hasNoOperations()?o.tryHideActionProgress():o.updateActionProgressStatus(e)},f.completeSingleOperationWithError=function(e,t){this._getNotificationManager(e).completeSingleOperationWithError(e,t),this._showPopupError(t)},f.addOperationDetailsError=function(e,t){this._getNotificationManager(e).addOperationDetailsError(e,t),this._showPopupError(t)},f._hideProgressPanel=function(){var e=this;setTimeout((function(){return e._progressDrawer.hide()}))},f._isSmallScreen=function(){return!!(0,l.hasWindow)()&&(0,i.getWidth)(g)<=1e3},f._dimensionChanged=function(e){e&&"height"===e||this._checkAdaptiveState()},f._checkAdaptiveState=function(){var e=this._isInAdaptiveState;if(this._isInAdaptiveState=this._isSmallScreen(),e!==this._isInAdaptiveState&&this._progressDrawer&&this._getNotificationManager().handleDimensionChanged()){var t=this._getProgressDrawerAdaptiveOptions();this._progressDrawer.option(t)}},f._getProgressDrawerAdaptiveOptions=function(){return this._isInAdaptiveState?{openedStateMode:"overlap",shading:!0,closeOnOutsideClick:!0}:{openedStateMode:"shrink",shading:!1,closeOnOutsideClick:!1}},f._ensureProgressPanelCreated=function(e){var t=this;this._getNotificationManager().ensureProgressPanelCreated(e,{onOperationCanceled:function(e){var n=e.info;return t._raiseOperationCanceled(n)},onOperationItemCanceled:function(e){var n=e.item,i=e.itemIndex;return t._raiseOperationItemCanceled(n,i)},onPanelClosed:function(){return t._hideProgressPanel()}})},f._getProgressManagerComponent=function(){return h.NotificationManager},f._isProgressDrawerDisabled=function(){return!this.option("showProgressPanel")},f._isProgressDrawerOpened=function(){return this._progressDrawer.option("opened")},f._hidePopup=function(e){(this.option("showNotificationPopup")||e)&&this._getNotificationPopup().hide()},f._showPopup=function(e,t){!this._isProgressDrawerOpened()&&this.option("showNotificationPopup")&&(this._getNotificationPopup().$wrapper().toggleClass(x,!!t),this._getNotificationPopup().option("contentTemplate",e),this._getNotificationPopup().option("visible")||this._getNotificationPopup().show())},f._showPopupError=function(e){if(this.option("showNotificationPopup")){var t=this._getNotificationManager(),n=(0,o.default)("<div>"),i=(0,o.default)("<div>").addClass(b).text(e.commonErrorText),a=(0,o.default)("<div>").addClass(w);(0,o.default)("<div>").appendTo(a);var r=(0,o.default)("<div>").addClass(C);e.item?t.createErrorDetailsProgressBox(r,e.item,e.detailErrorText):(i.addClass(S),t.renderError(r,e.detailErrorText)),n.append(i,a,r),this._showPopup(n,!0)}},f._getNotificationPopup=function(){if(!this._notificationPopup){var e=(0,o.default)("<div>").addClass(y).appendTo(this.$element());this._notificationPopup=this._createComponent(e,d.default,{container:this.$element(),width:"auto",height:"auto",showTitle:!1,dragEnabled:!1,shading:!1,visible:!1,closeOnOutsideClick:!0,animation:{duration:0},position:{my:"right top",at:"right top",of:this.option("positionTarget"),offset:"-10 -5"}})}return this._notificationPopup},f._raiseActionProgress=function(e,t){this._actions.onActionProgress({message:e,status:t})},f._raiseOperationCanceled=function(e){this._actions.onOperationCanceled({info:e})},f._raiseOperationItemCanceled=function(e,t){this._actions.onOperationItemCanceled({item:e,itemIndex:t})},f._initActions=function(){this._actions={onActionProgress:this._createActionByOption("onActionProgress"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled")}},f._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{progressPanelContainer:null,contentTemplate:null,onActionProgress:null,onOperationCanceled:null,onOperationItemCanceled:null,showProgressPanel:!0,showNotificationPopup:!0})},f._optionChanged=function(t){var n=t.name;switch(n){case"progressPanelContainer":case"contentTemplate":break;case"showProgressPanel":this._setNotificationManager(),this._getNotificationManager().updateActionProgressStatus(),t.value||(this._hideProgressPanel(),this._clearManagerMap()),this._progressDrawer.repaint();break;case"showNotificationPopup":t.value||this._hidePopup(!0);break;case"onActionProgress":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},u}(u.default);t.default=k,e.exports=t.default,e.exports.default=t.default},55817:function(e,t,n){t.default=void 0;var i=h(n(68374)),o=n(13306),a=n(20576),r=n(44899),s=h(n(28109)),l=h(n(14390)),u=h(n(28080)),d=h(n(63008)),c=h(n(4741));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p="dx-filemanager-progress-panel",g="".concat(p,"-container"),m="".concat(p,"-title"),_="".concat(p,"-title-text"),v="".concat(p,"-close-button"),y="".concat(p,"-infos-container"),x="".concat(p,"-separator"),b="".concat(p,"-info"),w="".concat(p,"-common"),C="".concat(p,"-info-with-details"),S="".concat(p,"-details"),k="dx-filemanager-progress-box",D="".concat(k,"-error"),I="".concat(k,"-without-close-button"),T="".concat(k,"-image"),E="".concat(k,"-wrapper"),A="".concat(k,"-common"),O="".concat(k,"-progress-bar"),P="".concat(k,"-close-button"),M=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var h=l.prototype;return h._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this),this._initActions(),this._operationCount=0,this.$element().addClass(p);var n=(0,i.default)("<div>").appendTo(this.$element()),o=(0,i.default)("<div>").addClass(g).appendTo(n);this._scrollView=this._createComponent(n,c.default,{scrollByContent:!0,scrollByThumb:!0,showScrollbar:"onScroll"});var a=(0,i.default)("<div>").addClass(m).appendTo(o);(0,i.default)("<div>").text(s.default.format("dxFileManager-notificationProgressPanelTitle")).addClass(_).appendTo(a);var r=(0,i.default)("<div>").addClass(v).appendTo(a);this._createComponent(r,d.default,{icon:"close",stylingMode:"text",onClick:function(){return t._raisePanelClosed()}}),this._$infosContainer=(0,i.default)("<div>").addClass(y).appendTo(o),this._renderEmptyListText()},h._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{onOperationClosed:null,onOperationCanceled:null,onOperationItemCanceled:null,onPanelClosed:null})},h._initActions=function(){this._actions={onOperationClosed:this._createActionByOption("onOperationClosed"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled"),onPanelClosed:this._createActionByOption("onPanelClosed")}},h._optionChanged=function(t){var n=t.name;switch(n){case"test":break;case"onOperationClosed":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[n]=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},h.addOperation=function(e,t,n){var o=this;this._operationCount?(0,i.default)("<div>").addClass(x).prependTo(this._$infosContainer):this._$infosContainer.empty(),this._operationCount++;var r={customCloseHandling:t,allowProgressAutoUpdate:(0,a.ensureDefined)(n,!0)},s=(0,i.default)("<div>").addClass(b).prependTo(this._$infosContainer);r.$info=s;var l=(0,i.default)("<div>").addClass(w).appendTo(s);return r.common=this._createProgressBox(l,{commonText:e,showCloseButton:!0,showCloseButtonAlways:t,onCloseButtonClick:function(){return o._closeOperation(r)}}),r},h.addOperationDetails=function(e,t,n){var o=this;e.$info.addClass(C);var a=(0,i.default)("<div>").addClass(S).appendTo(e.$info);e.details=t.map((function(t,i){return t.info=e,o._createDetailsItem(a,t,i,!1,n)}))},h._createDetailsItem=function(e,t,n,o,a){var r=this,s=(0,i.default)("<div>").appendTo(e);return-1!==n&&s.addClass("dx-card"),this._createProgressBox(s,{commonText:t.commonText,imageUrl:t.imageUrl,skipProgressBox:o,showCloseButton:a,showCloseButtonAlways:a,onCloseButtonClick:function(){return r._cancelOperationItem(t,n)}})},h.completeOperationItem=function(e,t,n){e.allowProgressAutoUpdate&&this.updateOperationItemProgress(e,t,100,n),this._setCloseButtonVisible(e.details[t],!1)},h.updateOperationItemProgress=function(e,t,n,i){e.common.progressBar.option("value",i),e.details&&e.details[t].progressBar.option("value",n)},h.completeOperation=function(e,t,n,i){e.completed=!0,e.common.$commonText.text(t),n?this._removeProgressBar(e.common):e.allowProgressAutoUpdate&&e.common.progressBar.option("value",100),i&&this._setProgressBarText(e.common,i),this._setCloseButtonVisible(e.common,!0)},h.completeSingleOperationWithError=function(e,t){var n,i=null===(n=e.details)||void 0===n?void 0:n[0];e.completed=!0,this._renderOperationError(i||e.common,t),this._setCloseButtonVisible(e.common,!0),i&&this._setCloseButtonVisible(i,!1)},h.addOperationDetailsError=function(e,t,n){var i=e.details[t];this._renderOperationError(i,n),this._setCloseButtonVisible(i,!1)},h._renderError=function(e,t,n){(0,i.default)("<div>").text(n).addClass(D).appendTo(e)},h._renderEmptyListText=function(){this._$infosContainer.text(s.default.format("dxFileManager-notificationProgressPanelEmptyListText"))},h._renderOperationError=function(e,t){this._removeProgressBar(e),this._renderError(e.$wrapper,e.$commonText,t)},h._removeProgressBar=function(e){e.progressBar&&(e.progressBar.dispose(),e.progressBar.$element().remove(),e.progressBar=null)},h._createProgressBox=function(e,t){var n=this;e.addClass(k),t.showCloseButtonAlways||e.addClass(I),t.imageUrl&&(0,r.getImageContainer)(t.imageUrl).addClass(T).appendTo(e);var o=(0,i.default)("<div>").addClass(E).appendTo(e),a=(0,i.default)("<div>").addClass(A).text(t.commonText).appendTo(o),s=null;if(!t.skipProgressBox){var l=(0,i.default)("<div>").addClass(O).appendTo(o);s=this._createComponent(l,u.default,{min:0,max:100,width:"100%",validationMessageMode:"always",statusFormat:function(e,t){return n._getStatusString(e,t)}})}var c=null;if(t.showCloseButton){var h=(0,i.default)("<div>").addClass(P).appendTo(e);c=this._createComponent(h,d.default,{icon:"dx-filemanager-i dx-filemanager-i-cancel",stylingMode:"text",visible:t.showCloseButtonAlways,onClick:t.onCloseButtonClick})}return{$commonText:a,progressBar:s,$element:e,$wrapper:o,closeButton:c}},h._setCloseButtonVisible=function(e,t){e.closeButton&&(e.$element.toggleClass(I,!t),e.closeButton.option("visible",t))},h._setProgressBarText=function(e,t){e.progressBar.option("statusFormat",(function(){return t}))},h._closeOperation=function(e){var t=this;e.customCloseHandling&&!e.completed?(this._raiseOperationCanceled(e),this._setCloseButtonVisible(e.common,!1),e.details.forEach((function(e){return t._displayClosedOperationItem(e)}))):(this._raiseOperationClosed(e),e.$info.next(".".concat(x)).remove(),e.$info.remove(),this._operationCount--,this._operationCount||this._renderEmptyListText())},h._cancelOperationItem=function(e,t){this._raiseOperationItemCanceled(e,t);var n=e.info.details[t];this._displayClosedOperationItem(n)},h._displayClosedOperationItem=function(e){this._setProgressBarText(e,s.default.format("dxFileManager-notificationProgressPanelOperationCanceled")),this._setCloseButtonVisible(e,!1)},h._getStatusString=function(e,t){return 1===e?s.default.format("Done"):Math.round(100*e)+"%"},h._raiseOperationClosed=function(e){this._actions.onOperationClosed({info:e})},h._raiseOperationCanceled=function(e){this._actions.onOperationCanceled({info:e})},h._raiseOperationItemCanceled=function(e,t){this._actions.onOperationItemCanceled({item:e,itemIndex:t})},h._raisePanelClosed=function(){this._actions.onPanelClosed()},l}(l.default);t.default=M,e.exports=t.default,e.exports.default=t.default},35226:function(e,t,n){t.NotificationManagerStub=t.NotificationManager=t.MANAGER_ID_NAME=void 0;var i=l(n(73176)),o=l(n(68374)),a=n(13306),r=n(44899),s=l(n(55817));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f="dx-filemanager-progress-box",p="".concat(f,"-error"),g="".concat(f,"-image"),m="".concat(f,"-wrapper"),_="".concat(f,"-common"),v="__operationInfoManager";t.MANAGER_ID_NAME=v;var y="default",x="progress",b="error",w=function(){function e(e){var t=e.onActionProgressStatusChanged,n=e.isActual;this._id=(new i.default).toString(),this._isActual=n||!1,this._actionProgressStatus=y,this._raiseActionProgress=t}var t=e.prototype;return t.getId=function(){return this._id},t.isActual=function(){return this._isActual},t.createErrorDetailsProgressBox=function(e,t,n){var i=this._createDetailsItem(e,t);this.renderError(i.$wrapper,n)},t.renderError=function(e,t){(0,o.default)("<div>").text(t).addClass(p).appendTo(e)},t.isActionProgressStatusDefault=function(){return this._actionProgressStatus===y},t._createDetailsItem=function(e,t){var n=(0,o.default)("<div>").appendTo(e);return this._createProgressBox(n,{commonText:t.commonText,imageUrl:t.imageUrl})},t._createProgressBox=function(e,t){e.addClass(f),t.imageUrl&&(0,r.getImageContainer)(t.imageUrl).addClass(g).appendTo(e);var n=(0,o.default)("<div>").addClass(m).appendTo(e);return{$commonText:(0,o.default)("<div>").addClass(_).text(t.commonText).appendTo(n),$element:e,$wrapper:n}},e}(),C=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.addOperation=function(){return e={},t=v,n=this._id,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n},n.addOperationDetails=function(){},n.updateOperationItemProgress=function(){},n.completeOperationItem=function(){},n.completeOperation=function(){},n.completeSingleOperationWithError=function(){},n.addOperationDetailsError=function(){},n.handleDimensionChanged=function(){return!1},n.ensureProgressPanelCreated=function(){},n.tryHideActionProgress=function(){this._updateActionProgress("",y)},n.updateActionProgressStatus=function(){this._updateActionProgress("",y)},n._updateActionProgress=function(e,t){t!==y&&t!==x||(this._actionProgressStatus=t,this._raiseActionProgress(e,t))},n.hasNoOperations=function(){return!0},d(t,[{key:"_operationInProgressCount",get:function(){return 0},set:function(e){}},{key:"_failedOperationCount",get:function(){return 0},set:function(e){}}]),t}(w);t.NotificationManagerStub=C;var S=function(e){function t(t){var n;return(n=e.call(this,t)||this)._failedOperationCount=0,n._operationInProgressCount=0,n}c(t,e);var n=t.prototype;return n.addOperation=function(e,t,n){this._operationInProgressCount++;var i=this._progressPanel.addOperation(e,t,n);return i[v]=this._id,this._updateActionProgress(e,x),i},n.addOperationDetails=function(e,t,n){this._progressPanel.addOperationDetails(e,t,n)},n.updateOperationItemProgress=function(e,t,n,i){this._progressPanel.updateOperationItemProgress(e,t,n,i)},n.completeOperationItem=function(e,t,n){this._progressPanel.completeOperationItem(e,t,n)},n.completeOperation=function(e,t,n,i){this._operationInProgressCount--,n&&this._failedOperationCount++,this._progressPanel.completeOperation(e,t,n,i)},n.completeSingleOperationWithError=function(e,t){this._progressPanel.completeSingleOperationWithError(e,t.detailErrorText),this._notifyError(t)},n.addOperationDetailsError=function(e,t){this._progressPanel.addOperationDetailsError(e,t.itemIndex,t.detailErrorText),this._notifyError(t)},n.handleDimensionChanged=function(){return this._progressPanel&&this._progressPanel.$element().detach(),!0},n.ensureProgressPanelCreated=function(e,t){var n=this;if(this._progressPanel)this._progressPanel.$element().appendTo(e);else{var i=(0,o.default)("<div>").appendTo(e),r=this._getProgressPanelComponent();this._progressPanel=new r(i,(0,a.extend)({},t,{onOperationClosed:function(e){var t=e.info;return n._onProgressPanelOperationClosed(t)}}))}},n._getProgressPanelComponent=function(){return s.default},n._onProgressPanelOperationClosed=function(e){e.hasError&&(this._failedOperationCount--,this.tryHideActionProgress())},n.tryHideActionProgress=function(){this.hasNoOperations()&&this._updateActionProgress("",y)},n.updateActionProgressStatus=function(e){if(e){var t=0===this._failedOperationCount?"success":b;this._updateActionProgress("",t)}},n._notifyError=function(e){var t=this.hasNoOperations()?y:b;this._updateActionProgress(e.commonErrorText,t)},n._updateActionProgress=function(e,t){this._actionProgressStatus=t,this._raiseActionProgress(e,t)},n.hasNoOperations=function(){return 0===this._operationInProgressCount&&0===this._failedOperationCount},d(t,[{key:"_operationInProgressCount",get:function(){return this._operationInProgressCountInternal},set:function(e){this._operationInProgressCountInternal=e}},{key:"_failedOperationCount",get:function(){return this._failedOperationCountInternal},set:function(e){this._failedOperationCountInternal=e}}]),t}(w);t.NotificationManager=S},70166:function(e,t,n){t.default=void 0;var i=n(58664),o=h(n(68374)),a=n(13306),r=n(35922),s=n(20576),l=h(n(28109)),u=n(75084),d=h(n(14390)),c=h(n(71042));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n(45231);var p={showNavPane:{location:"before"},create:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},upload:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},refresh:{location:"after",showText:"inMenu",cssClass:"dx-filemanager-toolbar-has-large-icon",compactMode:{showText:"inMenu",locateInMenu:"auto"}},switchView:{location:"after"},download:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},move:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},copy:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},rename:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},delete:{location:"before",compactMode:{showText:"inMenu"}},clearSelection:{location:"after",locateInMenu:"never",compactMode:{showText:"inMenu"}},separator:{location:"before"}},g=["visible","location","locateInMenu","disabled","showText"],m=["accessKey","elementAttr","height","hint","icon","stylingMode","tabIndex","text","width"],_=["separator","switchView"],v={default:"dx-filemanager-i dx-filemanager-i-refresh",progress:"dx-filemanager-i dx-filemanager-i-progress",success:"dx-filemanager-i dx-filemanager-i-done",error:"dx-filemanager-i dx-filemanager-i-danger"},y=function(e){var t,n;function d(){return e.apply(this,arguments)||this}n=e,(t=d).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var h=d.prototype;return h._init=function(){e.prototype._init.call(this),this._generalToolbarVisible=!0},h._initMarkup=function(){this._commandManager=this.option("commandManager"),this._createItemClickedAction(),this._$viewSwitcherPopup=(0,o.default)("<div>").addClass("dx-filemanager-view-switcher-popup"),this._generalToolbar=this._createToolbar(this.option("generalItems"),!this._generalToolbarVisible),this._fileToolbar=this._createToolbar(this.option("fileItems"),this._generalToolbarVisible),this._$viewSwitcherPopup.appendTo(this.$element()),this.$element().addClass("dx-filemanager-toolbar dx-filemanager-general-toolbar")},h._render=function(){e.prototype._render.call(this);var t=this._getVisibleToolbar();this._checkCompactMode(t)},h._clean=function(){delete this._commandManager,delete this._itemClickedAction,delete this._$viewSwitcherPopup,delete this._generalToolbar,delete this._fileToolbar,e.prototype._clean.call(this)},h._dimensionChanged=function(e){if(!e||"height"!==e){var t=this._getVisibleToolbar();this._checkCompactMode(t)}},h._getVisibleToolbar=function(){return this._generalToolbarVisible?this._generalToolbar:this._fileToolbar},h._createToolbar=function(e,t){var n=this,i=this._getPreparedItems(e),a=(0,o.default)("<div>").appendTo(this.$element()),r=this._createComponent(a,c.default,{items:i,visible:!t,onItemClick:function(e){return n._raiseItemClicked(e)}});return r.compactMode=!1,r},h._getPreparedItems=function(e){var t=this;return e=e.map((function(e){var n=e;(0,r.isString)(e)&&(n={name:e});var i=n.name,o=t._configureItemByCommandName(i,n);return o.originalItemData=e,"separator"!==i&&t._setItemVisibleAvailable(o),o})),this._updateSeparatorsVisibility(e),e},h._updateSeparatorsVisibility=function(e,t){var n=this,i=!1,o=this._getMenuItems(t),a={before:!1,center:!1,after:!1},r={before:this._getItemsInGroup(e,o,"before"),center:this._getItemsInGroup(e,o,"center"),after:this._getItemsInGroup(e,o,"after")};return e.forEach((function(e,t){var s=e.location;if("separator"===e.name){var l=a[s]&&n._groupHasItemsAfter(r[s]);e.visible!==l&&(i=!0,e.visible=l),a[s]=!1}else n._isItemInMenu(o,e)||(a[s]=a[s]||e.visible),r[s].shift()})),t&&i&&t.repaint(),i},h._getMenuItems=function(e){return(e?e._getMenuItems():[]).map((function(e){return e.originalItemData}))},h._isItemInMenu=function(e,t){return!!e.length&&"never"!==(0,s.ensureDefined)(t.locateInMenu,"never")&&-1!==e.indexOf(t.originalItemData)},h._getItemsInGroup=function(e,t,n){var i=this;return e.filter((function(e){return e.location===n&&!i._isItemInMenu(t,e)}))},h._groupHasItemsAfter=function(e){for(var t=0;t<e.length;t++)if("separator"!==e[t].name&&e[t].visible)return!0;return!1},h._configureItemByCommandName=function(e,t){var n,i={},o=this._commandManager.getCommandByName(e);switch(o&&(i=this._createCommandItem(o)),e){case"separator":i=this._createSeparatorItem();break;case"switchView":i=this._createViewModeItem()}if(this._isDefaultItem(e)){var l=p[e];(0,a.extend)(!0,i,l);var d=i.cssClass||"";(0,u.extendAttributes)(i,t,g),(0,r.isDefined)(t.options)&&(0,u.extendAttributes)(i.options,t.options,m),(0,u.extendAttributes)(i.options,t,["text","icon"]),t.cssClass&&(d="".concat(d," ").concat(t.cssClass)),d&&(i.cssClass=d),(0,r.isDefined)(t.visible)||(i._autoHide=!0),"dxButton"===i.widget&&("inMenu"!==i.showText||(0,r.isDefined)(i.options.hint)||(i.options.hint=i.options.text),i.compactMode&&!(0,r.isDefined)(i.options.hint)&&this._configureHintForCompactMode(i))}else(0,a.extend)(!0,i,t),i.widget||(i.widget="dxButton"),"dxButton"===i.widget&&!i.compactMode&&!i.showText&&i.options&&i.options.icon&&i.options.text&&(i.compactMode={showText:"inMenu"});return e&&!i.name&&(0,a.extend)(i,{name:e}),i.location=(0,s.ensureDefined)(i.location,"before"),(0,r.isDefined)(null===(n=i.options)||void 0===n?void 0:n.stylingMode)||("dxButton"===i.widget&&(0,a.extend)(!0,i,{options:{stylingMode:"text"}}),"dxSelectBox"===i.widget&&(0,a.extend)(!0,i,{options:{stylingMode:"filled"}})),i},h._isDefaultItem=function(e){return!!p[e]},h._createCommandItem=function(e){var t=this;return{widget:"dxButton",options:{text:e.text,hint:e.hint,commandText:e.text,icon:e.icon,stylingMode:"text",onClick:function(n){return t._executeCommand(e)}}}},h._createSeparatorItem=function(){return{template:function(e,t,n){(0,o.default)(n).addClass("dx-filemanager-toolbar-separator-item")}}},h._createViewModeItem=function(){var e=this,t=["details","thumbnails"].map((function(t){var n=e._commandManager.getCommandByName(t);return{name:t,text:n.text,icon:n.icon}})),n="thumbnails"===this.option("itemViewMode")?1:0;return{cssClass:"dx-filemanager-toolbar-viewmode-item",widget:"dxDropDownButton",options:{items:t,keyExpr:"name",selectedItemKey:this.option("itemViewMode"),displayExpr:" ",hint:t[n].text,stylingMode:"text",showArrowIcon:!1,useSelectMode:!0,dropDownOptions:{container:this._$viewSwitcherPopup},onItemClick:function(t){return e._executeCommand(t.itemData.name)}}}},h._configureHintForCompactMode=function(e){e.options.hint="",e.compactMode.options=e.compactMode.options||{},e.compactMode.options.hint=e.options.text},h._checkCompactMode=function(e){e.compactMode&&this._toggleCompactMode(e,!1);var t=this._toolbarHasItemsOverflow(e);e.compactMode!==t?(e.compactMode||this._toggleCompactMode(e,t),e.compactMode=t):e.compactMode&&this._toggleCompactMode(e,!0)},h._toolbarHasItemsOverflow=function(e){return(0,i.getWidth)(e.$element())<e._getItemsWidth()},h._toggleCompactMode=function(e,t){var n=this,i=!1,o=e.option("items");o.forEach((function(e){if(e.compactMode){var o=null;t?(e.saved=n._getCompactModeOptions(e,e._available),o=e.compactMode):o=e.saved;var r=n._getCompactModeOptions(o,e._available);(0,a.extend)(!0,e,r),i=!0}})),(i=this._updateSeparatorsVisibility(o)||i)&&e.repaint(),this._updateSeparatorsVisibility(o,e)},h._getCompactModeOptions=function(e,t){var n=e.showText,i=e.locateInMenu,o=e.options;return{visible:t,showText:(0,s.ensureDefined)(n,"always"),locateInMenu:(0,s.ensureDefined)(i,"never"),options:{hint:null==o?void 0:o.hint}}},h._ensureAvailableCommandsVisible=function(e){var t=this,n=!1,i=e.option("items");i.forEach((function(e){if("separator"!==e.name){var i=e._available;t._setItemVisibleAvailable(e),e._available!==i&&(n=!0)}})),(n=this._updateSeparatorsVisibility(i)||n)&&e.repaint(),this._updateSeparatorsVisibility(i,e)},h._setItemVisibleAvailable=function(e){var t,n=null===(t=e.originalItemData)||void 0===t?void 0:t.visible;e._available=this._isToolbarItemAvailable(e),e.visible=(0,r.isDefined)(n)?n:e._available},h._fileToolbarHasEffectiveItems=function(){var e=this;return this._fileToolbar.option("items").some((function(t){return e._isFileToolbarItemAvailable(t)}))},h._executeCommand=function(e){this._commandManager.executeCommand(e)},h._isToolbarItemAvailable=function(e){return this._isDefaultItem(e.name)&&e._autoHide?"refresh"===e.name?this._generalToolbarVisible||!!this._isRefreshVisibleInFileToolbar:_.indexOf(e.name)>-1||this._isCommandAvailable(e.name):(0,s.ensureDefined)(e.visible,!0)},h._isFileToolbarItemAvailable=function(e){var t=e.name,n=e.visible;return!this._isDefaultItem(t)&&(0,s.ensureDefined)(n,!0)||"clearSelection"!==t&&"refresh"!==t&&this._isCommandAvailable(t)},h._isCommandAvailable=function(e){return this._commandManager.isCommandAvailable(e,this.option("contextItems"))},h._updateItemInToolbar=function(e,t,n){e.beginUpdate();for(var i=e.option("items"),o=0;o<i.length;o++)if(i[o].name===t){e.option("items[".concat(o,"]"),n);break}e.endUpdate()},h._raiseItemClicked=function(e){var t=(0,a.extend)(!0,{},e);t.itemData=e.itemData.originalItemData,this._itemClickedAction(t)},h._createItemClickedAction=function(){this._itemClickedAction=this._createActionByOption("onItemClick")},h._getDefaultOptions=function(){return(0,a.extend)(e.prototype._getDefaultOptions.call(this),{commandManager:null,generalItems:[],fileItems:[],contextItems:[],itemViewMode:"details",onItemClick:null})},h._optionChanged=function(t){var n=t.name;switch(n){case"commandManager":case"itemViewMode":case"generalItems":case"fileItems":this.repaint();break;case"contextItems":this._update();break;case"onItemClick":this._itemClickedAction=this._createActionByOption(n);break;default:e.prototype._optionChanged.call(this,t)}},h.updateRefreshItem=function(e,t){var n=null,i=l.default.format("dxFileManager-commandRefresh"),o="inMenu";this._isRefreshVisibleInFileToolbar=!1,"default"===t?n={options:{icon:v.default}}:(n={options:{icon:v[t]}},this._isRefreshVisibleInFileToolbar=!0,i=e,o="always");var r=(0,a.extend)({},n,{visible:this._isRefreshVisibleInFileToolbar});this._applyRefreshItemOptions(n,r),this._refreshItemTextTimeout=this._updateRefreshItemText("progress"===t,i,o)},h._updateRefreshItemText=function(e,t,n){var i=this,o={showText:n,options:{text:t}};return e?setTimeout((function(){i._applyRefreshItemOptions(o),i._refreshItemTextTimeout=void 0}),500):(this._refreshItemTextTimeout&&clearTimeout(this._refreshItemTextTimeout),void this._applyRefreshItemOptions(o))},h._applyRefreshItemOptions=function(e,t){t||(t=(0,a.extend)({},e)),this._updateItemInToolbar(this._generalToolbar,"refresh",e),this._updateItemInToolbar(this._fileToolbar,"refresh",t)},h._update=function(){var e=0===this.option("contextItems").length||!this._fileToolbarHasEffectiveItems();this._generalToolbarVisible!==e&&(this._generalToolbar.option("visible",e),this._fileToolbar.option("visible",!e),this._generalToolbarVisible=e,this.$element().toggleClass("dx-filemanager-general-toolbar",e),this.$element().toggleClass("dx-filemanager-file-toolbar",!e));var t=this._getVisibleToolbar();this._ensureAvailableCommandsVisible(t),this._checkCompactMode(t)},d}(d.default);t.default=y,e.exports=t.default,e.exports.default=t.default},53749:function(e,t,n){t.default=void 0;var i=n(58664),o=k(n(68374)),a=k(n(73176)),r=n(58201),s=k(n(55994)),l=k(n(99393)),u=k(n(44504)),d=n(35922),c=n(95479),h=n(13306),f=n(89386),p=n(62754),g=k(n(37208)),m=k(n(96452)),_=k(n(63008)),v=k(n(28080)),y=k(n(20530)),x=n(39611),b=n(95429),w=k(n(28109)),C=n(75811),S=k(n(73349));function k(e){return e&&e.__esModule?e:{default:e}}function D(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,I(e,t)}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var T=(0,r.getWindow)(),E="dx-fileuploader-dragover",A="dx-fileuploader-button",O="dx-fileuploader-button-container",P=function(){return!!T.FormData},M=function(e){function t(){return e.apply(this,arguments)||this}D(t,e);var n=t.prototype;return n._supportedKeys=function(){var t=this,n=function(e){e.preventDefault();var n=t._selectButton.$element();s.default.trigger(n,b.name)};return(0,h.extend)(e.prototype._supportedKeys.call(this),{space:n,enter:n})},n._setOptionsByReference=function(){e.prototype._setOptionsByReference.call(this),(0,h.extend)(this._optionsByReference,{value:!0})},n._getDefaultOptions=function(){return(0,h.extend)(e.prototype._getDefaultOptions.call(this),{chunkSize:0,value:[],selectButtonText:w.default.format("dxFileUploader-selectFile"),uploadButtonText:w.default.format("dxFileUploader-upload"),labelText:w.default.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,dialogTrigger:void 0,dropZone:void 0,readyToUploadMessage:w.default.format("dxFileUploader-readyToUpload"),uploadedMessage:w.default.format("dxFileUploader-uploaded"),uploadFailedMessage:w.default.format("dxFileUploader-uploadFailedMessage"),uploadAbortedMessage:w.default.format("dxFileUploader-uploadAbortedMessage"),uploadMode:"instantly",uploadMethod:"POST",uploadHeaders:{},uploadCustomData:{},onBeforeSend:null,onUploadStarted:null,onUploaded:null,onFilesUploaded:null,onProgress:null,onUploadError:null,onUploadAborted:null,onDropZoneEnter:null,onDropZoneLeave:null,allowedFileExtensions:[],maxFileSize:0,minFileSize:0,inputAttr:{},invalidFileExtensionMessage:w.default.format("dxFileUploader-invalidFileExtension"),invalidMaxFileSizeMessage:w.default.format("dxFileUploader-invalidMaxFileSize"),invalidMinFileSizeMessage:w.default.format("dxFileUploader-invalidMinFileSize"),extendSelection:!0,validationMessageMode:"always",uploadFile:null,uploadChunk:null,abortUpload:null,validationMessageOffset:{h:0,v:0},hoverStateEnabled:!0,useNativeInputClick:!1,useDragOver:!0,nativeDropSupported:!0,_uploadButtonType:"normal"})},n._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:function(){return"desktop"===y.default.real().deviceType&&!y.default.isSimulator()},options:{focusStateEnabled:!0}},{device:[{platform:"android"}],options:{validationMessageOffset:{v:0}}},{device:function(){return"desktop"!==y.default.real().deviceType},options:{useDragOver:!1}},{device:function(){return!P()},options:{uploadMode:"useForm"}},{device:function(){return"desktop"!==y.default.real().deviceType},options:{nativeDropSupported:!1}},{device:function(){return(0,C.isMaterial)()},options:{_uploadButtonType:"default"}}])},n._initOptions=function(t){var n="labelText"in t;e.prototype._initOptions.call(this,t),n||this._shouldDragOverBeRendered()||this.option("labelText","")},n._init=function(){e.prototype._init.call(this),this._initFileInput(),this._initLabel(),this._setUploadStrategy(),this._createFiles(),this._createBeforeSendAction(),this._createUploadStartedAction(),this._createUploadedAction(),this._createFilesUploadedAction(),this._createProgressAction(),this._createUploadErrorAction(),this._createUploadAbortedAction(),this._createDropZoneEnterAction(),this._createDropZoneLeaveAction()},n._setUploadStrategy=function(){var e=null;if(this.option("chunkSize")>0){var t=this.option("uploadChunk");e=t&&(0,d.isFunction)(t)?new L(this):new F(this)}else{var n=this.option("uploadFile");e=n&&(0,d.isFunction)(n)?new z(this):new N(this)}this._uploadStrategy=e},n._initFileInput=function(){var e=this;this._isCustomClickEvent=!1,this._$fileInput||(this._$fileInput=(0,o.default)("<input>").attr("type","file"),s.default.on(this._$fileInput,"change",this._inputChangeHandler.bind(this)),s.default.on(this._$fileInput,"click",(function(t){return t.stopPropagation(),e._resetInputValue(),e.option("useNativeInputClick")||e._isCustomClickEvent}))),this._$fileInput.prop({multiple:this.option("multiple"),accept:this.option("accept"),tabIndex:-1})},n._inputChangeHandler=function(){if(!this._doPreventInputChange){var e=this._$fileInput.val().replace(/^.*\\/,""),t=this._$fileInput.prop("files");if(!t||t.length||"useForm"===this.option("uploadMode")){var n=t?this._getFiles(t):[{name:e}];this._changeValue(n),"instantly"===this.option("uploadMode")&&this._uploadFiles()}}},n._shouldFileListBeExtended=function(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")},n._changeValue=function(e){var t=this._shouldFileListBeExtended()?this.option("value").slice():[];this.option("value",t.concat(e))},n._getFiles=function(e){var t=[];return(0,c.each)(e,(function(e,n){return t.push(n)})),t},n._getFile=function(e){var t=(0,d.isNumeric)(e)?this.option("value")[e]:e;return this._files.filter((function(e){return e.value===t}))[0]},n._initLabel=function(){this._$inputLabel||(this._$inputLabel=(0,o.default)("<div>")),this._updateInputLabelText()},n._updateInputLabelText=function(){var e=this._isInteractionDisabled()?"":this.option("labelText");this._$inputLabel.text(e)},n._focusTarget=function(){return this.$element().find(".dx-fileuploader-button")},n._getSubmitElement=function(){return this._$fileInput},n._initMarkup=function(){e.prototype._initMarkup.call(this),this.$element().addClass("dx-fileuploader"),this._renderWrapper(),this._renderInputWrapper(),this._renderSelectButton(),this._renderInputContainer(),this._renderUploadButton(),this._preventRecreatingFiles=!0,this._activeDropZone=null},n._render=function(){this._preventRecreatingFiles=!1,this._attachDragEventHandlers(this._$inputWrapper),this._attachDragEventHandlers(this.option("dropZone")),this._renderFiles(),e.prototype._render.call(this)},n._createFileProgressBar=function(e){e.progressBar=this._createProgressBar(e.value.size),e.progressBar.$element().appendTo(e.$file),this._initStatusMessage(e),this._ensureCancelButtonInitialized(e)},n._setStatusMessage=function(e,t){var n=this;setTimeout((function(){n.option("showFileList")&&e.$statusMessage&&(e.$statusMessage.text(t),e.$statusMessage.css("display",""),e.progressBar.$element().remove())}),400)},n._getUploadAbortedStatusMessage=function(){return"instantly"===this.option("uploadMode")?this.option("uploadAbortedMessage"):this.option("readyToUploadMessage")},n._createFiles=function(){var e=this,t=this.option("value");!this._files||0!==t.length&&this._shouldFileListBeExtended()||(this._preventFilesUploading(this._files),this._files=null),this._files||(this._files=[]),(0,c.each)(t.slice(this._files.length),(function(t,n){var i=e._createFile(n);e._validateFile(i),e._files.push(i)}))},n._preventFilesUploading=function(e){var t=this;e.forEach((function(e){return t._uploadStrategy.abortUpload(e)}))},n._validateFile=function(e){e.isValidFileExtension=this._validateFileExtension(e),e.isValidMinSize=this._validateMinFileSize(e),e.isValidMaxSize=this._validateMaxFileSize(e)},n._validateFileExtension=function(e){var t=this.option("allowedFileExtensions"),n=e.value.name.substring(e.value.name.lastIndexOf(".")).toLowerCase();if(0===t.length)return!0;for(var i=0;i<t.length;i++)if(n===t[i].toLowerCase())return!0;return!1},n._validateMaxFileSize=function(e){var t=e.value.size,n=this.option("maxFileSize");return!(n>0)||t<=n},n._validateMinFileSize=function(e){var t=e.value.size,n=this.option("minFileSize");return!(n>0)||t>=n},n._createBeforeSendAction=function(){this._beforeSendAction=this._createActionByOption("onBeforeSend",{excludeValidators:["readOnly"]})},n._createUploadStartedAction=function(){this._uploadStartedAction=this._createActionByOption("onUploadStarted",{excludeValidators:["readOnly"]})},n._createUploadedAction=function(){this._uploadedAction=this._createActionByOption("onUploaded",{excludeValidators:["readOnly"]})},n._createFilesUploadedAction=function(){this._filesUploadedAction=this._createActionByOption("onFilesUploaded",{excludeValidators:["readOnly"]})},n._createProgressAction=function(){this._progressAction=this._createActionByOption("onProgress",{excludeValidators:["readOnly"]})},n._createUploadAbortedAction=function(){this._uploadAbortedAction=this._createActionByOption("onUploadAborted",{excludeValidators:["readOnly"]})},n._createUploadErrorAction=function(){this._uploadErrorAction=this._createActionByOption("onUploadError",{excludeValidators:["readOnly"]})},n._createDropZoneEnterAction=function(){this._dropZoneEnterAction=this._createActionByOption("onDropZoneEnter")},n._createDropZoneLeaveAction=function(){this._dropZoneLeaveAction=this._createActionByOption("onDropZoneLeave")},n._createFile=function(e){return{value:e,loadedSize:0,onProgress:(0,u.default)(),onAbort:(0,u.default)(),onLoad:(0,u.default)(),onError:(0,u.default)(),onLoadStart:(0,u.default)(),isValidFileExtension:!0,isValidMaxSize:!0,isValidMinSize:!0,isValid:function(){return this.isValidFileExtension&&this.isValidMaxSize&&this.isValidMinSize},isInitialized:!1}},n._resetFileState=function(e){e.isAborted=!1,e.uploadStarted=!1,e.isStartLoad=!1,e.loadedSize=0,e.chunksData=void 0,e.request=void 0},n._renderFiles=function(){var e,t=this,n=this.option("value");this._$filesContainer?this._shouldFileListBeExtended()&&0!==n.length||this._$filesContainer.empty():this._$filesContainer=(0,o.default)("<div>").addClass("dx-fileuploader-files-container").appendTo(this._$content);var i=this.option("showFileList");i&&(0,c.each)(this._files,(function(e,n){n.$file||t._renderFile(n)})),this.$element().toggleClass("dx-fileuploader-show-file-list",i),this._toggleFileUploaderEmptyClassName(),this._updateFileNameMaxWidth(),null===(e=this._validationMessage)||void 0===e||e.repaint()},n._renderFile=function(e){var t=e.value,n=(0,o.default)("<div>").addClass("dx-fileuploader-file-container").appendTo(this._$filesContainer);this._renderFileButtons(e,n),e.$file=(0,o.default)("<div>").addClass("dx-fileuploader-file").appendTo(n);var i=(0,o.default)("<div>").addClass("dx-fileuploader-file-info").appendTo(e.$file);e.$statusMessage=(0,o.default)("<div>").addClass("dx-fileuploader-file-status-message").appendTo(e.$file),(0,o.default)("<div>").addClass("dx-fileuploader-file-name").text(t.name).appendTo(i),(0,d.isDefined)(t.size)&&(0,o.default)("<div>").addClass("dx-fileuploader-file-size").text(this._getFileSize(t.size)).appendTo(i),e.isValid()?e.$statusMessage.text(this.option("readyToUploadMessage")):(e.isValidFileExtension||e.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")),e.isValidMaxSize||e.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")),e.isValidMinSize||e.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")),n.addClass("dx-fileuploader-invalid"))},n._createValidationElement=function(e){return(0,o.default)("<span>").text(this.option(e))},n._updateFileNameMaxWidth=function(){var e=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,t="useButtons"===this.option("uploadMode")?1:0,n=(0,i.getWidth)(this._$filesContainer.find(".dx-fileuploader-file-container").first())||(0,i.getWidth)(this._$filesContainer),o=this._$filesContainer.find(".dx-fileuploader-button-container").eq(0),a=(0,i.getWidth)(o)*(e+t),r=this._$filesContainer.find(".dx-fileuploader-file-size").eq(0),s=r.text();r.text("1000 Mb");var l=(0,i.getWidth)(r);r.text(s),this._$filesContainer.find(".dx-fileuploader-file-name").css("maxWidth",n-a-l)},n._renderFileButtons=function(e,t){var n=this._getCancelButton(e);n&&t.append(n);var i=this._getUploadButton(e);i&&t.append(i)},n._getCancelButton=function(e){var t=this;return"useForm"===this.option("uploadMode")?null:(e.cancelButton=this._createComponent((0,o.default)("<div>").addClass("dx-fileuploader-button dx-fileuploader-cancel-button"),_.default,{onClick:function(){return t._removeFile(e)},icon:"close",visible:this.option("allowCanceling"),disabled:this.option("readOnly"),integrationOptions:{},hoverStateEnabled:this.option("hoverStateEnabled")}),(0,o.default)("<div>").addClass(O).append(e.cancelButton.$element()))},n._getUploadButton=function(e){var t=this;return e.isValid()&&"useButtons"===this.option("uploadMode")?(e.uploadButton=this._createComponent((0,o.default)("<div>").addClass("dx-fileuploader-button dx-fileuploader-upload-button"),_.default,{onClick:function(){return t._uploadFile(e)},icon:"upload",hoverStateEnabled:this.option("hoverStateEnabled")}),e.onLoadStart.add((function(){return e.uploadButton.option({visible:!1,disabled:!0})})),e.onAbort.add((function(){return e.uploadButton.option({visible:!0,disabled:!1})})),(0,o.default)("<div>").addClass(O).append(e.uploadButton.$element())):null},n._removeFile=function(e){var t;null===(t=e.$file)||void 0===t||t.parent().remove(),this._files.splice((0,f.inArray)(e,this._files),1);var n=this.option("value").slice();n.splice((0,f.inArray)(e.value,n),1),this._preventRecreatingFiles=!0,this.option("value",n),this._preventRecreatingFiles=!1,this._toggleFileUploaderEmptyClassName(),this._resetInputValue(!0)},n.removeFile=function(e){if("useForm"!==this.option("uploadMode")&&(0,d.isDefined)(e)){var t=this._getFile(e);t&&(t.uploadStarted&&this._preventFilesUploading([t]),this._removeFile(t))}},n._toggleFileUploaderEmptyClassName=function(){this.$element().toggleClass("dx-fileuploader-empty",!this._files.length||this._hasInvalidFile(this._files))},n._hasInvalidFile=function(e){for(var t=0;t<e.length;t++)if(!e[t].isValid())return!0;return!1},n._getFileSize=function(e){for(var t=0,n=[w.default.format("dxFileUploader-bytes"),w.default.format("dxFileUploader-kb"),w.default.format("dxFileUploader-Mb"),w.default.format("dxFileUploader-Gb")],i=n.length-1;t<i&&e>=1024;)e/=1024,t++;return Math.round(e)+" "+n[t]},n._renderSelectButton=function(){var e=(0,o.default)("<div>").addClass(A).appendTo(this._$inputWrapper);this._selectButton=this._createComponent(e,_.default,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{},disabled:this.option("readOnly"),hoverStateEnabled:this.option("hoverStateEnabled")}),this._selectFileDialogHandler=this._selectButtonClickHandler.bind(this),"desktop"===y.default.real().deviceType?this._selectButton.option("onClick",this._selectFileDialogHandler):this._attachSelectFileDialogHandler(this._selectButton.$element()),this._attachSelectFileDialogHandler(this.option("dialogTrigger"))},n._selectButtonClickHandler=function(){if(!this.option("useNativeInputClick")){if(this._isInteractionDisabled())return!1;this._isCustomClickEvent=!0,s.default.trigger(this._$fileInput,"click"),this._isCustomClickEvent=!1}},n._attachSelectFileDialogHandler=function(e){(0,d.isDefined)(e)&&(this._detachSelectFileDialogHandler(e),s.default.on((0,o.default)(e),"click",this._selectFileDialogHandler))},n._detachSelectFileDialogHandler=function(e){(0,d.isDefined)(e)&&s.default.off((0,o.default)(e),"click",this._selectFileDialogHandler)},n._renderUploadButton=function(){if("useButtons"===this.option("uploadMode")){var e=(0,o.default)("<div>").addClass(A).addClass("dx-fileuploader-upload-button").appendTo(this._$content);this._uploadButton=this._createComponent(e,_.default,{text:this.option("uploadButtonText"),onClick:this._uploadButtonClickHandler.bind(this),type:this.option("_uploadButtonType"),integrationOptions:{},hoverStateEnabled:this.option("hoverStateEnabled")})}},n._uploadButtonClickHandler=function(){this._uploadFiles()},n._shouldDragOverBeRendered=function(){return!this.option("readOnly")&&("useForm"!==this.option("uploadMode")||this.option("nativeDropSupported"))},n._isInteractionDisabled=function(){return this.option("readOnly")||this.option("disabled")},n._renderInputContainer=function(){this._$inputContainer=(0,o.default)("<div>").addClass("dx-fileuploader-input-container").appendTo(this._$inputWrapper),this._$fileInput.addClass("dx-fileuploader-input"),this._renderInput();var e="dx-fileuploader-input-label-".concat(new a.default);this._$inputLabel.attr("id",e).addClass("dx-fileuploader-input-label").appendTo(this._$inputContainer),this.setAria("labelledby",e,this._$fileInput)},n._renderInput=function(){this.option("useNativeInputClick")?this._selectButton.option("template",this._selectButtonInputTemplate.bind(this)):(this._$fileInput.appendTo(this._$inputContainer),this._selectButton.option("template","content")),this._applyInputAttributes(this.option("inputAttr"))},n._selectButtonInputTemplate=function(e,t){var n=(0,o.default)(t),i=(0,o.default)("<span>").addClass("dx-button-text").text(e.text);return n.append(i).append(this._$fileInput),n},n._renderInputWrapper=function(){this._$inputWrapper=(0,o.default)("<div>").addClass("dx-fileuploader-input-wrapper").appendTo(this._$content)},n._detachDragEventHandlers=function(e){(0,d.isDefined)(e)&&s.default.off((0,o.default)(e),(0,x.addNamespace)("",this.NAME))},n._attachDragEventHandlers=function(e){var t=e!==this._$inputWrapper;(0,d.isDefined)(e)&&this._shouldDragOverBeRendered()&&(this._detachDragEventHandlers(e),e=(0,o.default)(e),s.default.on(e,(0,x.addNamespace)("dragenter",this.NAME),this._dragEnterHandler.bind(this,t)),s.default.on(e,(0,x.addNamespace)("dragover",this.NAME),this._dragOverHandler.bind(this,t)),s.default.on(e,(0,x.addNamespace)("dragleave",this.NAME),this._dragLeaveHandler.bind(this,t)),s.default.on(e,(0,x.addNamespace)("drop",this.NAME),this._dropHandler.bind(this,t)))},n._applyInputAttributes=function(e){this._$fileInput.attr(e)},n._useInputForDrop=function(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")},n._getDropZoneElement=function(e,t){var n=e?Array.from((0,o.default)(this.option("dropZone"))):[this._$inputWrapper];return(n=n.map((function(e){return(0,o.default)(e).get(0)})))[n.indexOf(t.currentTarget)]},n._dragEnterHandler=function(e,t){if(this.option("disabled"))return!1;this._useInputForDrop()||t.preventDefault();var n=this._getDropZoneElement(e,t);(0,d.isDefined)(n)&&null===this._activeDropZone&&this.isMouseOverElement(t,n,!1)&&(this._activeDropZone=n,this._tryToggleDropZoneActive(!0,e,t))},n._dragOverHandler=function(e,t){if(this._useInputForDrop()||t.preventDefault(),t.originalEvent.dataTransfer.dropEffect="copy",!e){var n=this._getDropZoneElement(!1,t);null===this._activeDropZone&&this.isMouseOverElement(t,n,!1)&&this._dragEnterHandler(!1,t),null!==this._activeDropZone&&this._shouldRaiseDragLeave(t,!1)&&this._dragLeaveHandler(!1,t)}},n._dragLeaveHandler=function(e,t){this._useInputForDrop()||t.preventDefault(),null!==this._activeDropZone&&this._shouldRaiseDragLeave(t,e)&&(this._tryToggleDropZoneActive(!1,e,t),this._activeDropZone=null)},n._shouldRaiseDragLeave=function(e,t){return!this.isMouseOverElement(e,this._activeDropZone,!t)},n._tryToggleDropZoneActive=function(e,t,n){var i=e?"addClass":"removeClass";this[e?"_dropZoneEnterAction":"_dropZoneLeaveAction"]({event:n,dropZoneElement:this._activeDropZone}),t||this.$element()[i](E)},n._dropHandler=function(e,t){if(this._activeDropZone=null,e||this.$element().removeClass(E),!(this._useInputForDrop()||e&&this._isInteractionDisabled())){t.preventDefault();var n=t.originalEvent.dataTransfer.files,i=this._getFiles(n);!this.option("multiple")&&i.length>1||(this._changeValue(this._filterFiles(i)),"instantly"===this.option("uploadMode")&&this._uploadFiles())}},n._handleAllFilesUploaded=function(){this._files.every((function(e){return!e.isValid()||e._isError||e._isLoaded||e.isAborted}))&&this._filesUploadedAction()},n._filterFiles=function(e){if(!e.length)return e;var t=this.option("accept");if(!t.length)return e;for(var n=[],i=this._getAllowedFileTypes(t),o=0,a=e.length;o<a;o++)this._isFileTypeAllowed(e[o],i)&&n.push(e[o]);return n},n._getAllowedFileTypes=function(e){return e.length?e.split(",").map((function(e){return e.trim()})):[]},n._isFileTypeAllowed=function(e,t){for(var n=0,i=t.length;n<i;n++){var o=t[n];if("."===o[0]){if(o=o.replace(".","\\."),e.name.match(new RegExp(o+"$","i")))return!0}else if(o=o.replace(new RegExp("\\*","g"),""),e.type.match(new RegExp(o,"i")))return!0}return!1},n._renderWrapper=function(){var e=(0,o.default)("<div>").addClass("dx-fileuploader-wrapper").appendTo(this.$element()),t=(0,o.default)("<div>").addClass("dx-fileuploader-container").appendTo(e);this._$content=(0,o.default)("<div>").addClass("dx-fileuploader-content").appendTo(t)},n._clean=function(){this._$fileInput.detach(),delete this._$filesContainer,this._detachSelectFileDialogHandler(this.option("dialogTrigger")),this._detachDragEventHandlers(this.option("dropZone")),this._files&&this._files.forEach((function(e){e.$file=null,e.$statusMessage=null})),e.prototype._clean.call(this)},n.abortUpload=function(e){if("useForm"!==this.option("uploadMode"))if((0,d.isDefined)(e)){var t=this._getFile(e);t&&this._preventFilesUploading([t])}else this._preventFilesUploading(this._files)},n.upload=function(e){if("useForm"!==this.option("uploadMode"))if((0,d.isDefined)(e)){var t=this._getFile(e);t&&P()&&this._uploadFile(t)}else this._uploadFiles()},n._uploadFiles=function(){var e=this;P()&&(0,c.each)(this._files,(function(t,n){return e._uploadFile(n)}))},n._uploadFile=function(e){this._uploadStrategy.upload(e)},n._updateProgressBar=function(e,t){e.progressBar&&e.progressBar.option({value:t.loaded,showStatus:!0}),this._progressAction({file:e.value,segmentSize:t.currentSegmentSize,bytesLoaded:t.loaded,bytesTotal:t.total,event:t.event,request:e.request})},n._updateTotalProgress=function(e,t){var n=e?this._getProgressValue(t/e):0;this.option("progress",n),this._setLoadedSize(t)},n._getProgressValue=function(e){return Math.floor(100*e)},n._initStatusMessage=function(e){e.$statusMessage.css("display","none")},n._ensureCancelButtonInitialized=function(e){var t=this;if(!e.isInitialized){e.cancelButton.option("onClick",(function(){t._preventFilesUploading([e]),t._removeFile(e)}));var n=function(){setTimeout((function(){e.cancelButton.option({visible:!1})}),400)};e.onLoad.add(n),e.onError.add(n)}},n._createProgressBar=function(e){var t=this;return this._createComponent((0,o.default)("<div>"),v.default,{value:void 0,min:0,max:e,statusFormat:function(e){return t._getProgressValue(e)+"%"},showStatus:!1,statusPosition:"right"})},n._getTotalFilesSize=function(){var e=this;return this._totalFilesSize||(this._totalFilesSize=0,(0,c.each)(this._files,(function(t,n){e._totalFilesSize+=n.value.size}))),this._totalFilesSize},n._getTotalLoadedFilesSize=function(){var e=this;return this._totalLoadedFilesSize||(this._totalLoadedFilesSize=0,(0,c.each)(this._files,(function(t,n){e._totalLoadedFilesSize+=n.loadedSize}))),this._totalLoadedFilesSize},n._setLoadedSize=function(e){this._totalLoadedFilesSize=e},n._recalculateProgress=function(){this._totalFilesSize=0,this._totalLoadedFilesSize=0,this._updateTotalProgress(this._getTotalFilesSize(),this._getTotalLoadedFilesSize())},n.isMouseOverElement=function(e,t,n){if(!t)return!1;var o=n?parseFloat(T.getComputedStyle(t,":before").height):0,a=n?parseFloat(T.getComputedStyle(t,":after").height):0,r=(0,i.getOffset)(t).left,s=(0,i.getOffset)(t).top+o,l=t.offsetWidth,u=t.offsetHeight-o-a,d=this._getEventX(e),c=this._getEventY(e);return d>=r&&d<r+l&&c>=s&&c<s+u},n._getEventX=function(e){return(0,x.isTouchEvent)(e)?this._getTouchEventX(e):e.clientX+this._getDocumentScrollLeft()},n._getEventY=function(e){return(0,x.isTouchEvent)(e)?this._getTouchEventY(e):e.clientY+this._getDocumentScrollTop()},n._getTouchEventX=function(e){var t=null;return e.changedTouches.length>0?t=e.changedTouches:e.targetTouches.length>0&&(t=e.targetTouches),t?t[0].pageX:0},n._getTouchEventY=function(e){var t=null;return e.changedTouches.length>0?t=e.changedTouches:e.targetTouches.length>0&&(t=e.targetTouches),t?t[0].pageY:0},n._getDocumentScrollTop=function(){var e=S.default.getDocument();return e.documentElement.scrollTop||e.body.scrollTop},n._getDocumentScrollLeft=function(){var e=S.default.getDocument();return e.documentElement.scrollLeft||e.body.scrollLeft},n._updateReadOnlyState=function(){var e=this.option("readOnly");this._selectButton.option("disabled",e),this._files.forEach((function(t){var n;return null===(n=t.cancelButton)||void 0===n?void 0:n.option("disabled",e)})),this._updateInputLabelText(),this._attachDragEventHandlers(this._$inputWrapper)},n._updateHoverState=function(){var e,t,n=this.option("hoverStateEnabled");null===(e=this._selectButton)||void 0===e||e.option("hoverStateEnabled",n),null===(t=this._uploadButton)||void 0===t||t.option("hoverStateEnabled",n),this._files.forEach((function(e){var t,i;null===(t=e.uploadButton)||void 0===t||t.option("hoverStateEnabled",n),null===(i=e.cancelButton)||void 0===i||i.option("hoverStateEnabled",n)}))},n._optionChanged=function(t){var n=t.name,i=t.value,o=t.previousValue;switch(n){case"height":case"width":this._updateFileNameMaxWidth(),e.prototype._optionChanged.call(this,t);break;case"value":!i.length&&this._$fileInput.val(""),this._preventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),e.prototype._optionChanged.call(this,t);break;case"name":this._initFileInput(),e.prototype._optionChanged.call(this,t);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),t.value||this.reset();break;case"readOnly":this._updateReadOnlyState(),e.prototype._optionChanged.call(this,t);break;case"selectButtonText":this._selectButton.option("text",i);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",i);break;case"_uploadButtonType":this._uploadButton&&this._uploadButton.option("type",i);break;case"dialogTrigger":this._detachSelectFileDialogHandler(o),this._attachSelectFileDialogHandler(i);break;case"dropZone":this._detachDragEventHandlers(o),this._attachDragEventHandlers(i);break;case"maxFileSize":case"minFileSize":case"allowedFileExtensions":case"invalidFileExtensionMessage":case"invalidMaxFileSizeMessage":case"invalidMinFileSizeMessage":case"readyToUploadMessage":case"uploadedMessage":case"uploadFailedMessage":case"uploadAbortedMessage":case"nativeDropSupported":this._invalidate();break;case"labelText":this._updateInputLabelText();break;case"showFileList":this._preventRecreatingFiles||this._renderFiles();break;case"uploadFile":case"uploadChunk":case"chunkSize":this._setUploadStrategy();break;case"abortUpload":case"uploadUrl":case"progress":case"uploadMethod":case"uploadHeaders":case"uploadCustomData":case"extendSelection":break;case"hoverStateEnabled":this._updateHoverState(),e.prototype._optionChanged.call(this,t);break;case"allowCanceling":case"uploadMode":this.reset(),this._invalidate();break;case"onBeforeSend":this._createBeforeSendAction();break;case"onUploadStarted":this._createUploadStartedAction();break;case"onUploaded":this._createUploadedAction();break;case"onFilesUploaded":this._createFilesUploadedAction();break;case"onProgress":this._createProgressAction();break;case"onUploadError":this._createUploadErrorAction();break;case"onUploadAborted":this._createUploadAbortedAction();break;case"onDropZoneEnter":this._createDropZoneEnterAction();break;case"onDropZoneLeave":this._createDropZoneLeaveAction();break;case"useNativeInputClick":this._renderInput();break;case"useDragOver":this._attachDragEventHandlers(this._$inputWrapper);break;case"inputAttr":this._applyInputAttributes(this.option(n));break;default:e.prototype._optionChanged.call(this,t)}},n._resetInputValue=function(e){("useForm"!==this.option("uploadMode")||e)&&(this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1)},n.reset=function(){this.option("value",[])},t}(m.default),R=function(){function e(e,t){this.file=e,this.chunkSize=t,this.index=0}var t=e.prototype;return t.read=function(){if(!this.file)return null;var e=this.createBlobResult(this.file,this.index,this.chunkSize);return e.isCompleted&&(this.file=null),this.index++,e},t.createBlobResult=function(e,t,n){var i=t*n;return{blob:this.sliceFile(e,i,n),index:t,isCompleted:i+n>=e.size}},t.sliceFile=function(e,t,n){return e.slice?e.slice(t,t+n):e.webkitSlice?e.webkitSlice(t,t+n):null},e}(),B=function(){function e(e){this.fileUploader=e}var t=e.prototype;return t.upload=function(e){e.isInitialized&&e.isAborted&&this.fileUploader._resetFileState(e),e.isValid()&&!e.uploadStarted&&(this._prepareFileBeforeUpload(e),this._uploadCore(e))},t.abortUpload=function(e){var t=this;if(!(e._isError||e._isLoaded||e.isAborted)&&e.uploadStarted&&(e.isAborted=!0,e.request&&e.request.abort(),this._isCustomCallback("abortUpload"))){var n=this.fileUploader.option("abortUpload"),i=this._createUploadArgument(e),o=null;try{var a=n(e.value,i);o=(0,p.fromPromise)(a)}catch(e){o=(new p.Deferred).reject(e).promise()}o.done((function(){return e.onAbort.fire()})).fail((function(n){return t._handleFileError(e,n)}))}},t._beforeSend=function(e,t){var n=this._createUploadArgument(t);this.fileUploader._beforeSendAction({request:e,file:t.value,uploadInfo:n}),t.request=e},t._createUploadArgument=function(e){},t._uploadCore=function(e){},t._isCustomCallback=function(e){var t=this.fileUploader.option(e);return t&&(0,d.isFunction)(t)},t._handleFileError=function(e,t){e._isError=!0,e.onError.fire(t)},t._prepareFileBeforeUpload=function(e){var t;e.$file&&(null===(t=e.progressBar)||void 0===t||t.dispose(),this.fileUploader._createFileProgressBar(e)),e.isInitialized||(e.onLoadStart.add(this._onUploadStarted.bind(this,e)),e.onLoad.add(this._onLoadedHandler.bind(this,e)),e.onError.add(this._onErrorHandler.bind(this,e)),e.onAbort.add(this._onAbortHandler.bind(this,e)),e.onProgress.add(this._onProgressHandler.bind(this,e)),e.isInitialized=!0)},t._isStatusError=function(e){return 400<=e&&e<500||500<=e&&e<600},t._onUploadStarted=function(e,t){e.uploadStarted=!0,this.fileUploader._uploadStartedAction({file:e.value,event:t,request:e.request})},t._onAbortHandler=function(e,t){var n={file:e.value,event:t,request:e.request,message:this.fileUploader._getUploadAbortedStatusMessage()};this.fileUploader._uploadAbortedAction(n),this.fileUploader._setStatusMessage(e,n.message),this.fileUploader._handleAllFilesUploaded()},t._onErrorHandler=function(e,t){var n={file:e.value,event:void 0,request:e.request,error:t,message:this.fileUploader.option("uploadFailedMessage")};this.fileUploader._uploadErrorAction(n),this.fileUploader._setStatusMessage(e,n.message),this.fileUploader._handleAllFilesUploaded()},t._onLoadedHandler=function(e,t){var n={file:e.value,event:t,request:e.request,message:this.fileUploader.option("uploadedMessage")};e._isLoaded=!0,this.fileUploader._uploadedAction(n),this.fileUploader._setStatusMessage(e,n.message),this.fileUploader._handleAllFilesUploaded()},t._onProgressHandler=function(e,t){if(e){var n=this.fileUploader._getTotalFilesSize(),i=this.fileUploader._getTotalLoadedFilesSize(),o=Math.min(t.loaded,e.value.size),a=o-e.loadedSize;e.loadedSize=o,this.fileUploader._updateTotalProgress(n,i+a),this.fileUploader._updateProgressBar(e,this._getLoadedData(o,t.total,a,t))}},t._getLoadedData=function(e,t,n,i){return{loaded:e,total:t,currentSegmentSize:n}},t._extendFormData=function(e){var t=this.fileUploader.option("uploadCustomData");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(0,d.isDefined)(t[n])&&e.append(n,t[n])},e}(),V=function(e){function t(t){var n;return(n=e.call(this,t)||this).chunkSize=n.fileUploader.option("chunkSize"),n}D(t,e);var n=t.prototype;return n._uploadCore=function(e){var t=e.value,n={name:t.name,loadedBytes:0,type:t.type,blobReader:new R(t,this.chunkSize),guid:new a.default,fileSize:t.size,count:Math.ceil(t.size/this.chunkSize),customData:{}};e.chunksData=n,this._sendChunk(e,n)},n._sendChunk=function(e,t){var n=this,i=t.blobReader.read();t.currentChunk=i,i&&this._sendChunkCore(e,t,i).done((function(){e.isAborted||(t.loadedBytes+=i.blob.size,e.onProgress.fire({loaded:t.loadedBytes,total:e.value.size}),i.isCompleted&&e.onLoad.fire(),setTimeout((function(){return n._sendChunk(e,t)})))})).fail((function(t){n._shouldHandleError(t)&&n._handleFileError(e,t)}))},n._sendChunkCore=function(e,t,n){},n._shouldHandleError=function(e){},n._tryRaiseStartLoad=function(e){e.isStartLoad||(e.isStartLoad=!0,e.onLoadStart.fire())},n._getEvent=function(e){return null},n._createUploadArgument=function(e){return this._createChunksInfo(e.chunksData)},n._createChunksInfo=function(e){return{bytesUploaded:e.loadedBytes,chunkCount:e.count,customData:e.customData,chunkBlob:e.currentChunk.blob,chunkIndex:e.currentChunk.index}},t}(B),F=function(e){function t(){return e.apply(this,arguments)||this}D(t,e);var n=t.prototype;return n._sendChunkCore=function(e,t,n){var i=this;return g.default.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:function(t){return i._beforeSend(t,e)},upload:{onloadstart:function(){return i._tryRaiseStartLoad(e)},onabort:function(){return e.onAbort.fire()}},data:this._createFormData({fileName:t.name,blobName:this.fileUploader.option("name"),blob:n.blob,index:n.index,count:t.count,type:t.type,guid:t.guid,size:t.fileSize})})},n._shouldHandleError=function(e){return this._isStatusError(e.status)},n._createFormData=function(e){var t=new T.FormData;return t.append(e.blobName,e.blob),t.append("chunkMetadata",JSON.stringify({FileName:e.fileName,Index:e.index,TotalCount:e.count,FileSize:e.size,FileType:e.type,FileGuid:e.guid})),this._extendFormData(t),t},t}(V),L=function(e){function t(){return e.apply(this,arguments)||this}D(t,e);var n=t.prototype;return n._sendChunkCore=function(e,t){this._tryRaiseStartLoad(e);var n=this._createChunksInfo(t),i=this.fileUploader.option("uploadChunk");try{var o=i(e.value,n);return(0,p.fromPromise)(o)}catch(e){return(new p.Deferred).reject(e).promise()}},n._shouldHandleError=function(e){return!0},t}(V),H=function(e){function t(){return e.apply(this,arguments)||this}D(t,e);var n=t.prototype;return n._uploadCore=function(e){var t=this;e.loadedSize=0,this._uploadFile(e).done((function(){e.isAborted||e.onLoad.fire()})).fail((function(n){t._shouldHandleError(e,n)&&t._handleFileError(e,n)}))},n._uploadFile=function(e){},n._shouldHandleError=function(e,t){},n._handleProgress=function(e,t){e._isError||(e._isProgressStarted=!0,e.onProgress.fire(t))},n._getLoadedData=function(t,n,i,o){var a=e.prototype._getLoadedData.call(this,t,n,i,o);return a.event=o,a},t}(B),N=function(e){function t(){return e.apply(this,arguments)||this}D(t,e);var n=t.prototype;return n._uploadFile=function(e){var t=this;return g.default.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:function(n){return t._beforeSend(n,e)},upload:{onprogress:function(n){return t._handleProgress(e,n)},onloadstart:function(){return e.onLoadStart.fire()},onabort:function(){return e.onAbort.fire()}},data:this._createFormData(this.fileUploader.option("name"),e.value)})},n._shouldHandleError=function(e,t){return(this._isStatusError(t.status)||!e._isProgressStarted)&&!e.isAborted},n._createFormData=function(e,t){var n=new T.FormData;return n.append(e,t,t.name),this._extendFormData(n),n},t}(H),z=function(e){function t(){return e.apply(this,arguments)||this}D(t,e);var n=t.prototype;return n._uploadFile=function(e){var t=this;e.onLoadStart.fire();var n=this.fileUploader.option("uploadFile");try{var i=n(e.value,(function(n){var i={loaded:n,total:e.size};t._handleProgress(e,i)}));return(0,p.fromPromise)(i)}catch(e){return(new p.Deferred).reject(e).promise()}},n._shouldHandleError=function(e,t){return!0},t}(H);(0,l.default)("dxFileUploader",M);var W=M;t.default=W,e.exports=t.default,e.exports.default=t.default},20301:function(e,t,n){var i;t.default=void 0;var o=((i=n(18476))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},25460:function(e,t,n){t.getConfig=function(e,t){return{name:"between",caption:e,icon:"range",valueSeparator:"\u2013",dataTypes:["number","date","datetime"],editorTemplate:r.bind(t),notForLookup:!0}};var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(13306);function r(e,t){var n=(0,o.default)("<div>").addClass("dx-filterbuilder-range-start"),i=(0,o.default)("<div>").addClass("dx-filterbuilder-range-end"),r=e.value||[],s=function(e){return e&&e.length>0?e[0]:null},l=function(e){return e&&2===e.length?e[1]:null};t.append(n),t.append((0,o.default)("<span>").addClass("dx-filterbuilder-range-separator").text("\u2013")),t.append(i),t.addClass("dx-filterbuilder-range"),this._editorFactory.createEditor.call(this,n,(0,a.extend)({},e.field,e,{value:s(r),parentType:"filterBuilder",setValue:function(t){r=[t,l(r)],e.setValue(r)}})),this._editorFactory.createEditor.call(this,i,(0,a.extend)({},e.field,e,{value:l(r),parentType:"filterBuilder",setValue:function(t){r=[s(r),t],e.setValue(r)}}))}},18476:function(e,t,n){t.default=void 0;var i=y(n(68374)),o=y(n(73349)),a=y(n(38377)),r=y(n(55994)),s=y(n(14390)),l=y(n(99393)),u=n(13306),d=y(n(28109)),c=n(62754),h=n(35922),f=y(n(30254)),p=y(n(39114)),g=n(13660),m=y(n(15653)),_=n(39611),v=n(59423);function y(e){return e&&e.__esModule?e:{default:e}}var x="dx-filterbuilder-group",b="dx-filterbuilder-group-item",w="dx-filterbuilder-action",C="dx-filterbuilder-action-icon",S="dx-filterbuilder-text",k="dx-state-active",D="filterBuilder",I="enter",T="escape",E=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],A={and:"and",or:"or",notAnd:"!and",notOr:"!or"},O=a.default.inherit(m.default),P=s.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:d.default.format("dxFilterBuilder-and"),or:d.default.format("dxFilterBuilder-or"),notAnd:d.default.format("dxFilterBuilder-notAnd"),notOr:d.default.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:d.default.format("dxFilterBuilder-filterOperationBetween"),equal:d.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:d.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:d.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:d.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:d.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:d.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:d.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:d.default.format("dxFilterBuilder-filterOperationContains"),notContains:d.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:d.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:d.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:d.default.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(e){switch(e.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(e.value!==e.previousValue){var t=this._disableInvalidateForValue;t||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:e.value,previousValue:e.previousValue}),this._disableInvalidateForValue=t}break;default:this.callBase(e)}},getFilterExpression:function(){var e=this._getNormalizedFields(),t=(0,u.extend)(!0,[],this._model);return(0,v.getFilterExpression)((0,v.getNormalizedFilter)(t),e,this._customOperations,D)},_getNormalizedFields:function(){return(0,v.getNormalizedFields)(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var e=(0,u.extend)(!0,[],this._model),t=(0,v.getNormalizedFilter)(e),n=(0,v.getNormalizedFilter)(this._getModel(this.option("value")));JSON.stringify(n)!==JSON.stringify(t)&&this.option("value",t),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new O},_initCustomOperations:function(){this._customOperations=(0,v.getMergedOperations)(this.option("customOperations"),this.option("filterOperationDescriptions.between"),this)},_getDefaultGroupOperation:function(){var e,t;return null!==(e=null===(t=this.option("groupOperations"))||void 0===t?void 0:t[0])&&void 0!==e?e:A.and},_getModel:function(e){return(0,v.convertToInnerStructure)(e,this._customOperations,this._getDefaultGroupOperation())},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var e=this;e._actions={},E.forEach((function(t){var n=(0,u.extend)({},t.config);e._actions[t.name]=e._createActionByOption(t.name,n)}))},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},_initMarkup:function(){this.$element().addClass("dx-filterbuilder"),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(e,t){return(0,i.default)("<div>").addClass(x).append(this._createConditionItem(e,t))},_createGroupElementByCriteria:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._createGroupElement(e,t,n),o=i.find(".dx-filterbuilder-group-content"),a=(0,v.getGroupCriteria)(e),r=0;r<a.length;r++){var s=a[r];(0,v.isGroup)(s)?this._createGroupElementByCriteria(s,e,n+1).appendTo(o):(0,v.isCondition)(s)&&this._createConditionElement(s,e).appendTo(o)}return i},_createGroupElement:function(e,t,n){var o=this,a=(0,i.default)("<div>").addClass(b),r=(0,i.default)("<div>").addClass("dx-filterbuilder-group-content"),s=(0,i.default)("<div>").addClass(x).append(a).append(r);return null!=t&&this._createRemoveButton((function(){(0,v.removeItem)(t,e),s.remove(),o._updateFilter()})).appendTo(a),this._createGroupOperationButton(e).appendTo(a),this._createAddButton((function(){var t=(0,v.createEmptyGroup)(o._getDefaultGroupOperation());(0,v.addItem)(t,e),o._createGroupElement(t,e,n+1).appendTo(r),o._updateFilter()}),(function(){var t=o.option("fields")[0],n=(0,v.createCondition)(t,o._customOperations);(0,v.addItem)(n,e),o._createConditionElement(n,e).appendTo(r),o._updateFilter()}),n).appendTo(a),s},_createButton:function(e){return(0,i.default)("<div>").text(e)},_createGroupOperationButton:function(e){var t=this,n=this._getGroupOperations(e),i=(0,v.getGroupMenuItem)(e,n),o=i.text,a=n&&n.length<2?this._createButton(o).addClass("dx-state-disabled"):this._createButtonWithMenu({caption:o,menu:{items:n,displayExpr:"text",keyExpr:"value",onItemClick:function(n){i!==n.itemData&&((0,v.setGroupValue)(e,n.itemData.value),a.text(n.itemData.text),i=n.itemData,t._updateFilter())},onContentReady:function(e){e.component.selectItem(i)},cssClass:"dx-filterbuilder-group-operations"}});return a.addClass(S).addClass("dx-filterbuilder-group-operation").attr("tabindex",0)},_createButtonWithMenu:function(e){var t,n=this,o=function(){n.$element().find("."+k).removeClass(k),n.$element().find(".dx-overlay .dx-treeview").remove(),n.$element().find(".dx-overlay").remove()},a=this.option("rtlEnabled"),s=a?"right":"left",l=this._createButton(e.caption);return(0,u.extend)(e.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:(t=e.menu.onItemClick,function(e){t(e),"dxclick"===e.event.type&&o()}),onHiding:function(e){l.removeClass(k)},position:{my:s+" top",at:s+" bottom",offset:"0 1",of:l,collision:"flip"},animation:null,onHidden:function(){o()},cssClass:"dx-filterbuilder-overlay "+e.menu.cssClass,rtlEnabled:a}),e.popup={onShown:function(t){var n=(0,i.default)(t.component.content()).find(".dx-treeview"),o=n.dxTreeView("instance");r.default.on(n,"keyup keydown",(function(n){var i=(0,_.normalizeKeyName)(n);("keydown"===n.type&&"tab"===i||"keyup"===n.type&&(i===T||i===I))&&(t.component.hide(),r.default.trigger(e.menu.position.of,"focus"))})),o.focus(),o.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(l,(function(){o(),n._createPopupWithTreeView(e,n.$element()),l.addClass(k)})),l},_hasValueButton:function(e){var t=(0,v.getCustomOperation)(this._customOperations,e[1]);return t?!1!==t.hasValue:null!==e[2]},_createOperationButtonWithMenu:function(e,t){var n=this,o=this,a=(0,v.getAvailableOperations)(t,this.option("filterOperationDescriptions"),this._customOperations),r=(0,v.getOperationFromAvailable)((0,v.getOperationValue)(e),a),s=this._createButtonWithMenu({caption:r.text,menu:{items:a,displayExpr:"text",onItemRendered:function(e){e.itemData.isCustom&&(0,i.default)(e.itemElement).addClass("dx-filterbuilder-menu-custom-operation")},onContentReady:function(e){e.component.selectItem(r)},onItemClick:function(i){if(r!==i.itemData){r=i.itemData,(0,v.updateConditionByOperation)(e,r.value,o._customOperations);var a=s.siblings().filter(".dx-filterbuilder-item-value");o._hasValueButton(e)?(0!==a.length&&a.remove(),o._createValueButton(e,t).appendTo(s.parent())):a.remove(),s.html(r.text),n._updateFilter()}},cssClass:"dx-filterbuilder-operations"}}).addClass(S).addClass("dx-filterbuilder-item-operation").attr("tabindex",0);return s},_createOperationAndValueButtons:function(e,t,n){this._createOperationButtonWithMenu(e,t).appendTo(n),this._hasValueButton(e)&&this._createValueButton(e,t).appendTo(n)},_createFieldButtonWithMenu:function(e,t,n){var i=this,o=this,a=this.option("allowHierarchicalFields"),r=(0,v.getItems)(e,a),s=(0,v.getField)(n.name||n.dataField,r),l=function(e,t){return a?(0,v.getCaptionWithParents)(e,t):e.caption},u=this._createButtonWithMenu({caption:l(s,r),menu:{items:r,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:function(e){if(s!==e.itemData){s=e.itemData,t[0]=s.name||s.dataField,t[2]="object"===s.dataType?null:"",(0,v.updateConditionByOperation)(t,(0,v.getDefaultOperation)(s),o._customOperations),u.siblings().filter(".dx-filterbuilder-text").remove(),o._createOperationAndValueButtons(t,s,u.parent());var n=l(s,e.component.option("items"));u.html(n),i._updateFilter()}},onContentReady:function(e){e.component.selectItem(s)},cssClass:"dx-filterbuilder-fields"}}).addClass(S).addClass("dx-filterbuilder-item-field").attr("tabindex",0);return u},_createConditionItem:function(e,t){var n=this,o=(0,i.default)("<div>").addClass(b),a=this._getNormalizedFields(),r=(0,v.getField)(e[0],a);return this._createRemoveButton((function(){(0,v.removeItem)(t,e),1===o.parent().children().length?o.parent().remove():o.remove(),n._updateFilter()})).appendTo(o),this._createFieldButtonWithMenu(a,e,r).appendTo(o),this._createOperationAndValueButtons(e,r,o),o},_getGroupOperations:function(e){var t=this.option("groupOperations"),n=this.option("groupOperationDescriptions");return t&&t.length||(t=[(0,v.getGroupValue)(e).replace("!","not")]),t.map((function(e){return{text:n[e],value:A[e]}}))},_createRemoveButton:function(e){var t=(0,i.default)("<div>").addClass(C).addClass("dx-icon-remove").addClass(w).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(t,e),t},_createAddButton:function(e,t,n){var i,o=this.option("maxGroupLevel");return(0,h.isDefined)(o)&&n>=o?(i=this._createButton(),this._subscribeOnClickAndEnterKey(i,t)):i=this._createButtonWithMenu({menu:{items:[{caption:d.default.format("dxFilterBuilder-addCondition"),click:t},{caption:d.default.format("dxFilterBuilder-addGroup"),click:e}],displayExpr:"caption",onItemClick:function(e){e.itemData.click()},cssClass:"dx-filterbuilder-add-condition"}}),i.addClass(C).addClass("dx-icon-plus").addClass(w).attr("tabindex",0)},_createValueText:function(e,t,n){var o=this,a=(0,i.default)("<div>").html("&nbsp;").addClass("dx-filterbuilder-item-value-text").attr("tabindex",0).appendTo(n),r=e[2],s=(0,v.getCustomOperation)(o._customOperations,e[1]);return!s&&t.lookup?(0,v.getCurrentLookupValueText)(t,r,(function(e){(0,v.renderValueText)(a,e)})):(0,c.when)((0,v.getCurrentValueText)(t,r,s)).done((function(e){(0,v.renderValueText)(a,e,s)})),o._subscribeOnClickAndEnterKey(a,(function(i){"keyup"===i.type&&i.stopPropagation(),o._createValueEditorWithEvents(e,t,n)})),a},_updateConditionValue:function(e,t,n){e[2]!==t&&(e[2]=t),n(),this._updateFilter()},_addDocumentKeyUp:function(e,t){var n=!1,i=!1,a=o.default.getDocument(),s=function(e){n||i?i=!1:t(e)};r.default.on(a,"keyup",s);var l=e.find("input");r.default.on(l,"compositionstart",(function(){n=!0})),r.default.on(l,"compositionend",(function(){n=!1,i=!0})),r.default.on(l,"keydown",(function(e){229!==e.which&&(i=!1)})),this._documentKeyUpHandler=s},_addDocumentClick:function(e,t){var n=this,i=o.default.getDocument(),a=function(i){n._isFocusOnEditorParts(e,i.target)||(r.default.trigger(e.find("input"),"change"),t())};r.default.on(i,"dxpointerdown",a),this._documentClickHandler=a},_isFocusOnEditorParts:function(e,t){var n=t||o.default.getActiveElement();return(0,i.default)(n).closest(e.children()).length||(0,i.default)(n).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var e=o.default.getDocument();(0,h.isDefined)(this._documentKeyUpHandler)&&r.default.off(e,"keyup",this._documentKeyUpHandler),(0,h.isDefined)(this._documentClickHandler)&&r.default.off(e,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(e,t,n){var i=this,o=e[2],a=function(){return n.empty(),i._removeEvents(),i._createValueText(e,t,n)},s=function(){i._updateConditionValue(e,o,(function(){a()}))},l={value:""===o?null:o,filterOperation:(0,v.getOperationValue)(e),setValue:function(e){o=null===e?"":e},closeEditor:s,text:n.text()};n.empty();var u=this._createValueEditor(n,t,l);r.default.trigger(u.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(u,s),this._addDocumentKeyUp(u,(function(t){var s=(0,_.normalizeKeyName)(t);if("tab"===s){if(i._isFocusOnEditorParts(u))return;i._updateConditionValue(e,o,(function(){a(),t.shiftKey&&r.default.trigger(n.prev(),"focus")}))}s===T&&r.default.trigger(a(),"focus"),s===I&&i._updateConditionValue(e,o,(function(){r.default.trigger(a(),"focus")}))})),this._fireContentReadyAction()},_createValueButton:function(e,t){var n=(0,i.default)("<div>").addClass(S).addClass("dx-filterbuilder-item-value");return this._createValueText(e,t,n),n},_createValueEditor:function(e,t,n){var o=(0,i.default)("<div>").attr("tabindex",0).appendTo(e),a=(0,v.getCustomOperation)(this._customOperations,n.filterOperation),r=a&&a.editorTemplate?a.editorTemplate:t.editorTemplate;return r?this._getTemplate(r).render({model:(0,u.extend)({field:t},n),container:o}):this._editorFactory.createEditor.call(this,o,(0,u.extend)({},t,n,{parentType:D})),o},_createPopupWithTreeView:function(e,t){var n=this,o=(0,i.default)("<div>").addClass(e.menu.cssClass).appendTo(t);this._createComponent(o,p.default,{wrapperAttr:{class:e.menu.cssClass},onHiding:e.menu.onHiding,onHidden:e.menu.onHidden,rtlEnabled:e.menu.rtlEnabled,position:e.menu.position,animation:e.menu.animation,contentTemplate:function(t){var o=(0,i.default)("<div>").appendTo(t);n._createComponent(o,f.default,e.menu),this.repaint()},_ignoreFunctionValueDeprecation:!0,maxHeight:function(){return(0,g.getElementMaxHeightByWindow)(e.menu.position.of)},visible:!0,focusStateEnabled:!1,hideOnParentScroll:this.option("closePopupOnTargetScroll"),closeOnOutsideClick:!0,onShown:e.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1})},_subscribeOnClickAndEnterKey:function(e,t){r.default.on(e,"dxclick",t),r.default.on(e,"keyup",(function(e){(0,_.normalizeKeyName)(e)===I&&t(e)}))}});(0,l.default)("dxFilterBuilder",P);var M=P;t.default=M,e.exports=t.default,e.exports.default=t.default},8859:function(e,t){t.default=void 0;var n={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},i={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"},o={getIconByFilterOperation:function(e){return n[e]},getNameByFilterOperation:function(e){return i[e]}};t.default=o,e.exports=t.default,e.exports.default=t.default},59423:function(e,t,n){t.addItem=function(e,t){var n=D(t),i=T(n);return 1===n.length?n.unshift(e):n.push(e,i),t},t.convertToInnerStructure=j,t.createCondition=function(e,t){var n=[e.dataField,"",""];return te(n,P(e),t),n},t.createEmptyGroup=R,t.filterHasField=function e(t,n){return null!==t&&0!==t.length&&(F(t)?t[0]===n:t.some((function(t){return(F(t)||V(t))&&e(t,n)})))},t.getAvailableOperations=function(e,t,n){var i=E(e),o=!!e.lookup;return n.forEach((function(t){if(!e.filterOperations&&-1===i.indexOf(t.name)){var n=t&&t.dataTypes;(!o||!t.notForLookup)&&n&&n.indexOf(e.dataType||v)>=0&&i.push(t.name)}})),i.map((function(e){var i=O(n,e);return i?{icon:i.icon||y,text:i.caption||(0,h.captionize)(i.name),value:i.name,isCustom:!0}:{icon:m.default.getIconByFilterOperation(e)||y,text:A(e,t),value:e}}))},t.getCaptionByOperation=A,t.getCaptionWithParents=function e(t,n){if(J(t.dataField))for(var i=ee(t.dataField),o=0;o<n.length;o++)if(n[o].dataField===i)return e(n[o],n)+"."+t.caption;return t.caption},t.getCurrentLookupValueText=function(e,t,n){if(""!==t){var i=e.lookup;if(i.items)n(i.calculateCellValue(t)||"");else{var o=(0,r.isFunction)(i.dataSource)?i.dataSource({}):i.dataSource;new g.DataSource(o).loadSingle(i.valueExpr,t).done((function(o){var a="";o&&(a=i.displayExpr?(0,s.compileGetter)(i.displayExpr)(o):o),e.customizeText&&(a=e.customizeText({value:t,valueText:a})),n(a)})).fail((function(){n("")}))}}else n("")},t.getCurrentValueText=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(U(t))return"";if(Array.isArray(t)){var a=new o.Deferred;return o.when.apply(this,K(e,t,n,i)).done((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.some((function(e){return!U(e)}))?t.map((function(e){return U(e)?"?":e})):"";a.resolve(i)})),a}return $(e,t,n,i)},t.getCustomOperation=O,t.getDefaultOperation=P,t.getField=B,t.getFilterExpression=function e(t,n,i,o){if(!(0,r.isDefined)(t))return null;if(k(t))return["!",e(t[1],n,i,o)];var a=D(t);if(F(a))return q(a,n,i,o)||null;for(var s,l=[],u=T(a),d=0;d<a.length;d++)V(a[d])?(s=e(a[d],n,i,o))&&(d&&l.push(u),l.push(s)):F(a[d])&&(s=q(a[d],n,i,o))&&(l.length&&l.push(u),l.push(s));return 1===l.length&&(l=l[0]),l.length?l:null},t.getFilterOperations=E,t.getGroupCriteria=D,t.getGroupMenuItem=function(e,t){var n=T(e);return t.filter((function(e){return e.value===n}))[0]},t.getGroupValue=T,t.getItems=Q,t.getMatchedConditions=function(e,t){return null===e||0===e.length?[]:F(e)?ie(e,t)?[e]:[]:T(e)!==x?[]:e.filter((function(e){return F(e)&&ie(e,t)}))},t.getMergedOperations=function(e,t,n){var i=(0,c.extend)(!0,[],e),o=-1;return i.some((function(e,t){if("between"===e.name)return o=t,!0})),-1!==o?i[o]=(0,c.extend)((0,f.getConfig)(t,n),i[o]):i.unshift((0,f.getConfig)(t,n)),i},t.getNormalizedFields=function(e){return e.reduce((function(e,t){if((0,r.isDefined)(t.dataField)){var n={};for(var i in t)t[i]&&S.indexOf(i)>-1&&(n[i]=t[i]);n.defaultCalculateFilterExpression=u.default.defaultCalculateFilterExpression,(0,r.isDefined)(n.dataType)||(n.dataType=v),(0,r.isDefined)(n.trueText)||(n.trueText=p.default.format("dxDataGrid-trueText")),(0,r.isDefined)(n.falseText)||(n.falseText=p.default.format("dxDataGrid-falseText")),e.push(n)}return e}),[])},t.getNormalizedFilter=function e(t){var n,i=D(t);if(0===i.length)return null;var o=[];for(n=0;n<i.length;n++)if(V(i[n])){var a=e(i[n]);a?i[n]=a:o.push(i[n])}else F(i[n])&&(ne(i[n])||o.push(i[n]));for(n=0;n<o.length;n++)M(i,o[n]);return 1===i.length?null:(i.splice(i.length-1,1),1===i.length&&(t=function(e,t){return k(e)?e[1]=t:e=t,e}(t,i[0])),0===t.length?null:t)},t.getOperationFromAvailable=function(e,t){for(var n=0;n<t.length;n++)if(t[n].value===e)return t[n];throw new l.default.Error("E1048",e)},t.getOperationValue=function(e){return null===e[2]?"="===e[1]?"isblank":"isnotblank":e[1]},t.isCondition=F,t.isEmptyGroup=function(e){var t=D(e);return!F(t)&&!t.some((function(e){return F(e)}))},t.isGroup=V,t.isValidCondition=ne,t.removeFieldConditionsFromFilter=function(e,t){return e&&0!==e.length?F(e)?ie(e,t)?null:e:oe(e,[t],!1):null},t.removeItem=M,t.renderValueText=void 0,t.setGroupValue=function(e,t){var n;return function(e,t){!function(e){return-1!==e.indexOf("!")}(t)?k(e)&&function(e){var t=D(e);e.length=0,[].push.apply(e,t)}(e):k(e)||function(e){var t=e.slice(0);e.length=0,e.push("!",t)}(e)}(e,t),function(e,t){for(n=0;n<e.length;n++)Array.isArray(e[n])||(e[n]=t)}(D(e),t=function(e){return-1===e.indexOf("!")?e:e.substring(1)}(t)),e},t.syncFilters=function(e,t){return null===e||0===e.length?t:F(e)?ie(e,t[0])?t:[e,x,t]:T(e)!==x?[t,"and",e]:oe(e,t,!0)},t.updateConditionByOperation=te;var i=_(n(68374)),o=n(62754),a=n(18438),r=n(35922),s=n(47617),l=_(n(96688)),u=_(n(18740)),d=_(n(30343)),c=n(13306),h=n(78008),f=n(25460),p=_(n(28109)),g=n(85273),m=_(n(8859));function _(e){return e&&e.__esModule?e:{default:e}}var v="string",y="icon-none",x="and",b={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],boolean:["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},w={date:"shortDate",datetime:"shortDateShortTime"},C=["=","<>","isblank","isnotblank"],S=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"];function k(e){return e&&e.length>1&&"!"===e[0]&&!F(e)}function D(e){return k(e)?e[1]:e}function I(e){if(F(e))return x;for(var t="",n=0;n<e.length;n++){var i=e[n];if(!Array.isArray(i)){if(t&&t!==i)throw new a.errors.Error("E4019");"!"!==i&&(t=i)}}return t}function T(e){var t=D(e),n=I(t);return n||(n=x),t!==e&&(n="!"+n),n}function E(e){var t,n=(t=e.filterOperations,Array.isArray(t)&&t.length?e.filterOperations:function(e){return e.lookup&&C||b[e.dataType||v]}(e));return(0,c.extend)([],n)}function A(e,t){var n=m.default.getNameByFilterOperation(e);return t&&t[n]?t[n]:n}function O(e,t){var n=e.filter((function(e){return e.name===t}));return n.length?n[0]:null}function P(e){return e.defaultFilterOperation||E(e)[0]}function M(e,t){var n=D(e),i=n.indexOf(t);return n.splice(i,1),1!==n.length&&n.splice(i,1),e}function R(e){var t=N(e),n=t?z(e):e;return t?["!",[n]]:[n]}function B(e,t){for(var n=0;n<t.length;n++){if(t[n].name===e)return t[n];if(t[n].dataField.toLowerCase()===e.toLowerCase())return t[n]}var i=Q(t,!0).filter((function(t){return t.dataField.toLowerCase()===e.toLowerCase()}));if(i.length>0)return i[0];throw new l.default.Error("E1047",e)}function V(e){return!!Array.isArray(e)&&(e.length<2||Array.isArray(e[0])||Array.isArray(e[1]))}function F(e){return!!Array.isArray(e)&&e.length>1&&!Array.isArray(e[0])&&!Array.isArray(e[1])}function L(e,t,n){n=n||x;for(var i=I(e).toLowerCase()||n,o=[],a=0;a<e.length;a++)V(e[a])?(o.push(j(e[a],t,n)),o=G(o,i)):F(e[a])&&(o.push(H(e[a],t)),o=G(o,i));return 0===o.length&&(o=G(o,i)),o}function H(e,t){return function(e,t){var n=O(t,e[1]);return n&&n.name===e[1]}(e,t)||e.length<3&&(e[2]=e[1],e[1]="="),e}function N(e){return-1!==e.indexOf("not")}function z(e){return e.substring(3).toLowerCase()}function W(e,t){var n=N(t);return t=n?z(t):t,n?["!",e,t]:[e,t]}function G(e,t){var n=N(t);t=n?z(t):t,e.push(t);var i=e;return n&&(i=["!",i]),i}function j(e,t,n){return n=n||x,e?F(e=(0,c.extend)(!0,[],e))?W(H(e,t),n):k(e)?["!",F(e[1])?W(H(e[1],t),n):k(e[1])?W(j(e[1],t),n):L(e[1],t,n)]:L(e,t,n):R(n)}function q(e,t,n,i){var o=B(e[0],t),a=H(e,n),r=n.length&&O(n,a[1]);return r&&r.calculateFilterExpression?r.calculateFilterExpression.apply(r,[a[2],o,t]):o.createFilterExpression?o.createFilterExpression.apply(o,[a[2],a[1],i]):o.calculateFilterExpression?o.calculateFilterExpression.apply(o,[a[2],a[1],i]):o.defaultCalculateFilterExpression.apply(o,[a[2],a[1],i])}function $(e,t,n,i,o){var a;return a=!0===t?e.trueText||p.default.format("dxDataGrid-trueText"):!1===t?e.falseText||p.default.format("dxDataGrid-falseText"):function(e,t){var n=e.format||w[e.dataType];return d.default.format(t,n)}(e,t),e.customizeText&&(a=e.customizeText.call(e,{value:t,valueText:a,target:i})),n&&n.customizeText&&(a=n.customizeText.call(n,{value:t,valueText:a,field:e,target:i},o)),a}function K(e,t,n,i){var o={values:t};return t.map((function(t){return $(e,t,n,i,o)}))}function U(e){return""===e||null===e}function Y(e,t){return e.some((function(e){return e.dataField===t}))}function Z(e,t,n){var i=n.dataField;J(i)&&(n.parentId=ee(i),Y(t,n.parentId)||Y(e,n.parentId)||Z(e,t,{id:n.parentId,dataType:"object",dataField:n.parentId,caption:X(n.parentId,!0),filterOperations:["isblank","isnotblank"]})),t.push(n)}function X(e,t){var n="";if(t)e=e.substring(e.lastIndexOf(".")+1);else if(J(e))return e.split(".").forEach((function(e,t,i){n+=(0,h.captionize)(e),t!==i.length-1&&(n+=".")})),n;return(0,h.captionize)(e)}function Q(e,t){for(var n=[],i=0;i<e.length;i++){var o=(0,c.extend)(!0,{caption:X(e[i].dataField,t)},e[i]);o.id=o.name||o.dataField,t?Z(e,n,o):n.push(o)}return n}function J(e){return-1!==e.lastIndexOf(".")}function ee(e){return e.substring(0,e.lastIndexOf("."))}function te(e,t,n){var i=O(n,t);return i?(!1===i.hasValue?(e[1]=t,e.length=2):(e[1]=t,e[2]=""),e):("isblank"===t?(e[1]="=",e[2]=null):"isnotblank"===t?(e[1]="<>",e[2]=null):(((i=O(n,e[1]))||2===e.length||null===e[2])&&(e[2]=""),e[1]=t),e)}function ne(e){return""!==e[2]}function ie(e,t){return e[0]===t}function oe(e,t,n){var i=[];return e.forEach((function(e){F(e)?ie(e,t[0])?n?(i.push(t),n=!1):i.splice(i.length-1,1):i.push(e):(i.length||V(e))&&i.push(e)})),0===i.length?null:(n&&(i.push(x),i.push(t)),1===i.length?i[0]:i)}t.renderValueText=function(e,t,n){if(Array.isArray(t)){var o=t.length-1;e.empty(),t.forEach((function(t,a){(0,i.default)("<span>").addClass("dx-filterbuilder-text-part").text(t).appendTo(e),a!==o&&(0,i.default)("<span>").addClass("dx-filterbuilder-text-separator").text(n&&n.valueSeparator?n.valueSeparator:"|").addClass("dx-filterbuilder-text-separator-empty").appendTo(e)}))}else t?e.text(t):e.text(p.default.format("dxFilterBuilder-enterValueText"))}},17737:function(e,t,n){var i;t.default=void 0;var o=((i=n(20763))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},77509:function(e,t,n){t.renderButtonItem=function(e){var t,n=e.item,i=e.$parent,s=e.rootElementCssClassList,l=e.validationGroup,u=e.createComponentCallback,d=(0,o.default)("<div>").appendTo(i).addClass(s.join(" ")).addClass("dx-field-button-item").css("textAlign",(t=n.horizontalAlignment,(0,a.isDefined)(t)?t:"right"));return i.css("justifyContent",function(e){switch(e){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}}(n.verticalAlignment)),{$rootElement:d,buttonInstance:u((0,o.default)("<div>").appendTo(d),"dxButton",(0,r.extend)({validationGroup:l},n.buttonOptions))}};var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(35922),r=n(13306)},46193:function(e,t,n){t.FIELD_EMPTY_ITEM_CLASS=void 0,t.renderEmptyItem=function(e){var t=e.$parent,n=e.rootElementCssClassList;return(0,o.default)("<div>").addClass(a).html("&nbsp;").addClass(n.join(" ")).appendTo(t)};var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a="dx-field-empty-item";t.FIELD_EMPTY_ITEM_CLASS=a},21014:function(e,t,n){t.LABEL_VERTICAL_ALIGNMENT_CLASS=t.LABEL_HORIZONTAL_ALIGNMENT_CLASS=t.FLEX_LAYOUT_CLASS=t.FIELD_ITEM_REQUIRED_CLASS=t.FIELD_ITEM_OPTIONAL_CLASS=t.FIELD_ITEM_LABEL_ALIGN_CLASS=t.FIELD_ITEM_HELP_TEXT_CLASS=t.FIELD_ITEM_CONTENT_WRAPPER_CLASS=t.FIELD_ITEM_CONTENT_LOCATION_CLASS=void 0,t.renderFieldItem=function(e){var t=e.$parent,n=e.rootElementCssClassList,p=e.parentComponent,S=e.createComponentCallback,k=e.useFlexLayout,D=e.labelOptions,I=e.labelNeedBaselineAlign,T=e.labelLocation,E=e.needRenderLabel,A=e.formLabelLocation,O=e.item,P=e.editorOptions,M=e.isSimpleItem,R=e.isRequired,B=e.template,V=e.helpID,F=e.labelID,L=e.name,H=e.helpText,N=e.requiredMessageTemplate,z=e.validationGroup,W=(0,i.default)("<div>").addClass(n.join(" ")).appendTo(t);W.addClass(R?_:m),M&&k&&W.addClass(g),M&&I&&W.addClass(x);var G=(0,i.default)("<div>");G.data("dx-form-item",O),G.addClass(h.FIELD_ITEM_CONTENT_CLASS).addClass(y+{right:"left",left:"right",top:"bottom"}[A]);var j,q=E?(0,f.renderLabel)(D):null;if(q?(W.append(q),"top"!==T&&"left"!==T||W.append(G),"right"===T&&W.prepend(G),"top"===T?W.addClass(w):W.addClass(C),"dxCheckBox"!==O.editorType&&"dxSwitch"!==O.editorType||o.default.on(q,a.name,(function(){o.default.trigger(G.children(),a.name)}))):W.append(G),B)B.render({container:(0,r.getPublicElement)(G),model:{dataField:O.dataField,editorType:O.editorType,editorOptions:P,component:p,name:O.name}});else{var $=(0,i.default)("<div>").appendTo(G);try{(j=S($,O.editorType,P)).setAria("describedby",V),j.setAria("labelledby",F),j.setAria("required",R)}catch(e){d.default.log("E1035",e.message)}}var K=G.children().first(),U=K.hasClass("dx-template-wrapper")?K.children().first():K,Y=U&&U.data("dx-validation-target");if(Y){var Z,X=O.label&&O.label.text,Q=X?null:L,J=X?O.label.text:Q&&(0,s.captionize)(Q);if(M)if(O.validationRules)Z=O.validationRules;else{var ee=(0,l.format)(N,J||"");Z=O.isRequired?[{type:"required",message:ee}]:null}if(Array.isArray(Z)&&Z.length&&S(U,c.default,{validationRules:Z,validationGroup:z,dataGetter:function(){return{formItem:O}}}),(0,u.isMaterial)()){var te=function(e){(0,i.default)(e.element).parents(".dx-field-item-content-wrapper").toggleClass("dx-invalid",!1===e.component.option("isValid")&&(e.component._isFocused()||"always"===e.component.option("validationMessageMode")))};Y.on("optionChanged",(function(e){"isValid"===e.name&&te(e)})),Y.on("focusIn",te).on("focusOut",te).on("enterKey",te)}}return H&&M&&G.parent().append((0,i.default)("<div>").addClass(v).append(G).append((0,i.default)("<div>").addClass(b).attr("id",V).text(H))),{$fieldEditorContainer:G,$rootElement:W,widgetInstance:j}};var i=p(n(68374)),o=p(n(55994)),a=n(95429),r=n(6415),s=n(78008),l=n(68752),u=n(75811),d=p(n(96688)),c=p(n(39562)),h=n(31093),f=n(11042);function p(e){return e&&e.__esModule?e:{default:e}}var g="dx-flex-layout";t.FLEX_LAYOUT_CLASS=g;var m="dx-field-item-optional";t.FIELD_ITEM_OPTIONAL_CLASS=m;var _="dx-field-item-required";t.FIELD_ITEM_REQUIRED_CLASS=_;var v="dx-field-item-content-wrapper";t.FIELD_ITEM_CONTENT_WRAPPER_CLASS=v;var y="dx-field-item-content-location-";t.FIELD_ITEM_CONTENT_LOCATION_CLASS=y;var x="dx-field-item-label-align";t.FIELD_ITEM_LABEL_ALIGN_CLASS=x;var b="dx-field-item-help-text";t.FIELD_ITEM_HELP_TEXT_CLASS=b;var w="dx-label-v-align";t.LABEL_VERTICAL_ALIGNMENT_CLASS=w;var C="dx-label-h-align";t.LABEL_HORIZONTAL_ALIGNMENT_CLASS=C},11042:function(e,t,n){t.GET_LABEL_WIDTH_BY_TEXT_CLASS=t.FIELD_ITEM_REQUIRED_MARK_CLASS=t.FIELD_ITEM_OPTIONAL_MARK_CLASS=t.FIELD_ITEM_LABEL_TEXT_CLASS=t.FIELD_ITEM_LABEL_LOCATION_CLASS=void 0,t.renderLabel=g,t.setLabelWidthByMaxLabelWidth=function(e,t,n){var i,o,a="".concat(t," > .").concat(l.FIELD_ITEM_LABEL_CLASS,":not(.").concat(h,"top) > .").concat(l.FIELD_ITEM_LABEL_CONTENT_CLASS),r=e.find(a),s=r.length,u=0;for(o=0;o<s;o++)(i=m({$FIELD_ITEM_LABEL_CONTENT_CLASS:r[o],location:"left",markOptions:n}))>u&&(u=i);for(o=0;o<s;o++)r[o].style.width=u+"px"};var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(35922),r=n(68752),s=n(61961),l=n(31093),u=["$FIELD_ITEM_LABEL_CONTENT_CLASS"];var d="dx-layout-manager-hidden-label";t.GET_LABEL_WIDTH_BY_TEXT_CLASS=d;var c="dx-field-item-required-mark";t.FIELD_ITEM_REQUIRED_MARK_CLASS=c;var h="dx-field-item-label-location-";t.FIELD_ITEM_LABEL_LOCATION_CLASS=h;var f="dx-field-item-optional-mark";t.FIELD_ITEM_OPTIONAL_MARK_CLASS=f;var p="dx-field-item-label-text";function g(e){var t=e.text,n=e.id,i=e.location,r=e.alignment,u=e.labelID,d=void 0===u?null:u,g=e.markOptions,m=void 0===g?{}:g;return!(0,a.isDefined)(t)||t.length<=0?null:(0,o.default)("<label>").addClass(l.FIELD_ITEM_LABEL_CLASS+" "+h+i).attr("for",n).attr("id",d).css("textAlign",r).append((0,o.default)("<span>").addClass(l.FIELD_ITEM_LABEL_CONTENT_CLASS).append((0,o.default)("<span>").addClass(p).text(t),function(e){var t=(0,s.getLabelMarkText)(e);return""===t?null:(0,o.default)("<span>").addClass(e.showRequiredMark?c:f).text(t)}(m)))}function m(e){var t=e.$FIELD_ITEM_LABEL_CONTENT_CLASS,n=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u),i=(0,o.default)("<div>").addClass(l.WIDGET_CLASS).addClass(d).appendTo("body");n.text=" ";var a=g(n).appendTo(i).find(".dx-field-item-label-text")[0];a.innerHTML=function(e){var t,n,i=e.children.length,o="";for(n=0;n<i;n++)t=e.children[n],o+=(0,r.isEmpty)(t.innerText)?t.innerHTML:t.innerText;return o}(t);var s=a.offsetWidth;return i.remove(),s}t.FIELD_ITEM_LABEL_TEXT_CLASS=p},31093:function(e,t){t.WIDGET_CLASS=t.SINGLE_COLUMN_ITEM_CONTENT=t.SIMPLE_ITEM_TYPE=t.ROOT_SIMPLE_ITEM_CLASS=t.LAYOUT_MANAGER_ONE_COLUMN=t.GROUP_COL_COUNT_CLASS=t.GROUP_COL_COUNT_ATTR=t.FORM_VALIDATION_SUMMARY=t.FORM_UNDERLINED_CLASS=t.FORM_LAYOUT_MANAGER_CLASS=t.FORM_GROUP_WITH_CAPTION_CLASS=t.FORM_GROUP_CONTENT_CLASS=t.FORM_GROUP_CLASS=t.FORM_GROUP_CAPTION_CLASS=t.FORM_FIELD_ITEM_COL_CLASS=t.FORM_CLASS=t.FIELD_ITEM_TAB_CLASS=t.FIELD_ITEM_LABEL_CONTENT_CLASS=t.FIELD_ITEM_LABEL_CLASS=t.FIELD_ITEM_CONTENT_HAS_TABS_CLASS=t.FIELD_ITEM_CONTENT_HAS_GROUP_CLASS=t.FIELD_ITEM_CONTENT_CLASS=t.FIELD_ITEM_CLASS=void 0,t.WIDGET_CLASS="dx-widget",t.FORM_CLASS="dx-form",t.FORM_GROUP_CLASS="dx-form-group",t.FORM_GROUP_CAPTION_CLASS="dx-form-group-caption",t.FORM_FIELD_ITEM_COL_CLASS="dx-col-",t.FIELD_ITEM_CLASS="dx-field-item",t.LAYOUT_MANAGER_ONE_COLUMN="dx-layout-manager-one-col",t.FIELD_ITEM_LABEL_CONTENT_CLASS="dx-field-item-label-content",t.FORM_LAYOUT_MANAGER_CLASS="dx-layout-manager",t.FIELD_ITEM_LABEL_CLASS="dx-field-item-label",t.FIELD_ITEM_CONTENT_CLASS="dx-field-item-content",t.SINGLE_COLUMN_ITEM_CONTENT="dx-single-column-item-content",t.ROOT_SIMPLE_ITEM_CLASS="dx-root-simple-item",t.FORM_GROUP_CONTENT_CLASS="dx-form-group-content",t.FIELD_ITEM_CONTENT_HAS_GROUP_CLASS="dx-field-item-has-group",t.FIELD_ITEM_CONTENT_HAS_TABS_CLASS="dx-field-item-has-tabs",t.FORM_GROUP_WITH_CAPTION_CLASS="dx-form-group-with-caption",t.FIELD_ITEM_TAB_CLASS="dx-field-item-tab",t.GROUP_COL_COUNT_CLASS="dx-group-colcount-",t.GROUP_COL_COUNT_ATTR="group-col-count",t.FORM_VALIDATION_SUMMARY="dx-form-validation-summary",t.FORM_UNDERLINED_CLASS="dx-form-styling-mode-underlined",t.SIMPLE_ITEM_TYPE="simple"},58887:function(e,t,n){t.default=void 0;var i,o=(i=n(38377))&&i.__esModule?i:{default:i},a=function(){function e(e){this._options=e,this._itemsRunTimeInfo=this._options.itemsRunTimeInfo}var t=e.prototype;return t.findInstance=function(){return this._itemsRunTimeInfo.findWidgetInstanceByItem(this._options.item)},t.findItemContainer=function(){return this._itemsRunTimeInfo.findItemContainerByItem(this._options.item)},t.tryExecute=function(){o.default.abstract()},e}();t.default=a,e.exports=t.default,e.exports.default=t.default},83702:function(e,t,n){t.default=void 0;var i,o=(i=n(58887))&&i.__esModule?i:{default:i},a=n(97906),r=n(13306),s=n(35459);function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.tryExecute=function(){var e=this._options.value,t=this.findInstance();return!!t&&(t.option(e),!0)},t}(o.default),c=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.tryExecute=function(){var e=this.findInstance();if(e){var t=this._options,n=t.optionName,i=t.item,o=t.value,a=this._itemsRunTimeInfo.findItemIndexByItem(i);if(a>=0)return e.option((0,s.getFullOptionName)("items[".concat(a,"]"),n),o),!0}return!1},t}(o.default),h=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.tryExecute=function(){var e=this.findInstance();if(e){var t=this._options.value;return e.option("dataSource",t),!0}return!1},t}(o.default),f=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.tryExecute=function(){var e=this._options.item,t=this.findInstance(),n=t&&(0,a.data)(t.$element()[0],"dxValidator");if(n&&e){var i=function(e){return"required"===e.type},o=(n.option("validationRules")||[]).some(i),r=(e.validationRules||[]).some(i);if(!o&&!r||o&&r)return n.option("validationRules",e.validationRules),!0}return!1},t}(o.default),p=function(e){function t(){return e.apply(this,arguments)||this}return l(t,e),t.prototype.tryExecute=function(){var e=this.findItemContainer(),t=this._options,n=t.previousValue,i=t.value;return!!e&&(e.removeClass(n).addClass(i),!0)},t}(o.default);t.default=function(e,t){switch(e){case"editorOptions":case"buttonOptions":return new d(t);case"validationRules":return new f(t);case"cssClass":return new p(t);case"badge":case"disabled":case"icon":case"template":case"tabTemplate":case"title":return new c((0,r.extend)(t,{optionName:e}));case"tabs":return new h(t);default:return null}},e.exports=t.default,e.exports.default=t.default},10291:function(e,t,n){t.default=void 0;var i,o=(i=n(73176))&&i.__esModule?i:{default:i},a=n(95479),r=n(13306),s=n(35922),l=function(){function e(){this._map={}}var t=e.prototype;return t._findWidgetInstance=function(e){var t;return(0,a.each)(this._map,(function(n,i){var o=i.widgetInstance,a=i.item;if(e(a))return t=o,!1})),t},t._findFieldByCondition=function(e,t){var n;return(0,a.each)(this._map,(function(i,o){if(e(o))return n="guid"===t?i:o[t],!1})),n},t.clear=function(){this._map={}},t.removeItemsByItems=function(e){var t=this;(0,a.each)(e.getItems(),(function(e){return t.removeItemByKey(e)}))},t.removeItemByKey=function(e){delete this._map[e]},t.add=function(e){var t=e.guid||new o.default;return this._map[t]=e,t},t.addItemsOrExtendFrom=function(e){var t=this;e.each((function(e,n){t._map[e]?(n.widgetInstance&&(t._map[e].widgetInstance=n.widgetInstance),t._map[e].$itemContainer=n.$itemContainer):t.add({item:n.item,widgetInstance:n.widgetInstance,guid:e,$itemContainer:n.$itemContainer})}))},t.extendRunTimeItemInfoByKey=function(e,t){this._map[e]&&(this._map[e]=(0,r.extend)(this._map[e],t))},t.findWidgetInstanceByItem=function(e){return this._findWidgetInstance((function(t){return t===e}))},t.findGroupOrTabLayoutManagerByPath=function(e){return this._findFieldByCondition((function(t){return t.path===e}),"layoutManager")},t.findKeyByPath=function(e){return this._findFieldByCondition((function(t){return t.path===e}),"guid")},t.findWidgetInstanceByName=function(e){return this._findWidgetInstance((function(t){return e===t.name}))},t.findWidgetInstanceByDataField=function(e){return this._findWidgetInstance((function(t){return e===((0,s.isString)(t)?t:t.dataField)}))},t.findItemContainerByItem=function(e){for(var t in this._map)if(this._map[t].item===e)return this._map[t].$itemContainer;return null},t.findItemIndexByItem=function(e){return this._findFieldByCondition((function(t){return t.item===e}),"itemIndex")},t.getItems=function(){return this._map},t.each=function(e){(0,a.each)(this._map,(function(t,n){e(t,n)}))},t.removeItemsByPathStartWith=function(e){var t=this;Object.keys(this._map).filter((function(n){return!!t._map[n].path&&t._map[n].path.indexOf(e,0)>-1})).forEach((function(e){return t.removeItemByKey(e)}))},e}();t.default=l,e.exports=t.default,e.exports.default=t.default},20763:function(e,t,n){t.default=void 0;var i=O(n(68374)),o=O(n(55994)),a=O(n(99393)),r=O(n(73176)),s=n(20576),l=O(n(80209)),u=n(35922),d=n(95479),c=n(89386),h=n(13306),f=n(80506),p=n(6415),g=O(n(28109)),m=O(n(14390)),_=O(n(96452)),v=n(58201),y=O(n(90964)),x=O(n(10291)),b=O(n(21807)),w=O(n(41183)),C=n(62754),S=n(75811),k=O(n(83702));n(85532);var D=n(35459),I=n(61961),T=n(11042);n(97289),n(4401);var E=n(31093),A=n(10329);function O(e){return e&&e.__esModule?e:{default:e}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var M=["items","isRequired","validationRules","visible"],R=m.default.inherit({_init:function(){this.callBase(),this._cachedColCountOptions=[],this._itemsRunTimeInfo=new x.default,this._groupsColCount=[],this._attachSyncSubscriptions()},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{formID:"dx-"+new r.default,formData:{},colCount:1,screenByWidth:v.defaultScreenFactorFunc,colCountByScreen:void 0,labelLocation:"left",readOnly:!1,onFieldDataChanged:null,customizeItem:null,onEditorEnterKey:null,minColWidth:200,alignItemLabels:!0,alignItemLabelsInAllGroups:!0,alignRootItemLabels:!0,showColonAfterLabel:!0,showRequiredMark:!0,showOptionalMark:!1,requiredMark:"*",optionalMark:g.default.format("dxForm-optionalMark"),requiredMessage:g.default.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0,stylingMode:(0,l.default)().editorStylingMode,labelMode:"outside"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,S.isMaterial)()},options:{showColonAfterLabel:!1,labelLocation:"top"}}])},_setOptionsByReference:function(){this.callBase(),(0,h.extend)(this._optionsByReference,{formData:!0,validationGroup:!0})},_getGroupColCount:function(e){return parseInt(e.attr(E.GROUP_COL_COUNT_ATTR))},_applyLabelsWidthByCol:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o=n.inOneColumn?E.FIELD_ITEM_CLASS:E.FORM_FIELD_ITEM_COL_CLASS+t,a=n.excludeTabbed?":not(.".concat(E.FIELD_ITEM_TAB_CLASS,")"):"";(0,T.setLabelWidthByMaxLabelWidth)(e,".".concat(o).concat(a),i)},_applyLabelsWidth:function(e,t,n,i,o){i=n?1:i||this._getGroupColCount(e);var a,r={excludeTabbed:t,inOneColumn:n};for(a=0;a<i;a++)this._applyLabelsWidthByCol(e,a,r,o)},_getGroupElementsInColumn:function(e,t,n){var i=(0,u.isDefined)(n)?"."+E.GROUP_COL_COUNT_CLASS+n:"",o="."+E.FORM_FIELD_ITEM_COL_CLASS+t+" > ."+E.FIELD_ITEM_CONTENT_CLASS+" > ."+E.FORM_GROUP_CLASS+i;return e.find(o)},_applyLabelsWidthWithGroups:function(e,t,n,i){if(!0===this.option("alignRootItemLabels"))for(var o=e.find(".".concat(E.ROOT_SIMPLE_ITEM_CLASS)),a=0;a<t;a++)this._applyLabelsWidthByCol(o,a,n,i);if(this.option("alignItemLabelsInAllGroups"))this._applyLabelsWidthWithNestedGroups(e,t,n,i);else{var r,s=this.$element().find("."+E.FORM_GROUP_CLASS);for(r=0;r<s.length;r++)this._applyLabelsWidth(s.eq(r),n,void 0,void 0,i)}},_applyLabelsWidthWithNestedGroups:function(e,t,n,i){var o,a,r,s,l={excludeTabbed:n};for(o=0;o<t;o++)for(s=this._getGroupElementsInColumn(e,o),this._applyLabelsWidthByCol(s,0,l,i),a=0;a<this._groupsColCount.length;a++){s=this._getGroupElementsInColumn(e,o,this._groupsColCount[a]);var u=this._getGroupColCount(s);for(r=1;r<u;r++)this._applyLabelsWidthByCol(s,r,l,i)}},_labelLocation:function(){return this.option("labelLocation")},_alignLabelsInColumn:function(e){var t=e.layoutManager,n=e.inOneColumn,i=e.$container,o=e.excludeTabbed,a=e.items;if((0,v.hasWindow)()&&"top"!==this._labelLocation()){var r=(0,I.convertToLabelMarkOptions)(t._getMarkOptions());n?this._applyLabelsWidth(i,o,!0,void 0,r):this._checkGrouping(a)?this._applyLabelsWidthWithGroups(i,t._getColCount(),o,r):this._applyLabelsWidth(i,o,!1,t._getColCount(),r)}},_prepareFormData:function(){(0,u.isDefined)(this.option("formData"))||this.option("formData",{})},_setStylingModeClass:function(){"underlined"===this.option("stylingMode")&&this.$element().addClass(E.FORM_UNDERLINED_CLASS)},_initMarkup:function(){y.default.addGroup(this._getValidationGroup()),this._clearCachedInstances(),this._prepareFormData(),this.$element().addClass(E.FORM_CLASS),this._setStylingModeClass(),this.callBase(),this.setAria("role","form",this.$element()),this.option("scrollingEnabled")&&this._renderScrollable(),this._renderLayout(),this._renderValidationSummary(),this._lastMarkupScreenFactor=this._targetScreenFactor||this._getCurrentScreenFactor()},_getCurrentScreenFactor:function(){return(0,v.hasWindow)()?(0,v.getCurrentScreenFactor)(this.option("screenByWidth")):"lg"},_clearCachedInstances:function(){this._itemsRunTimeInfo.clear(),this._cachedLayoutManagers=[]},_alignLabels:function(e,t){this._alignLabelsInColumn({$container:this.$element(),layoutManager:e,excludeTabbed:!0,items:this.option("items"),inOneColumn:t}),(0,f.triggerResizeEvent)(this.$element().find(".".concat(A.TOOLBAR_CLASS)))},_clean:function(){this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],this._lastMarkupScreenFactor=void 0},_renderScrollable:function(){var e=this.option("useNativeScrolling");this._scrollable=new w.default(this.$element(),{useNative:!!e,useSimulatedScrollbar:!e,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent:function(){return this.option("scrollingEnabled")?(0,i.default)(this._scrollable.content()):this.$element()},_renderValidationSummary:function(){var e=this.$element().find("."+E.FORM_VALIDATION_SUMMARY);if(e.length>0&&e.remove(),this.option("showValidationSummary")){var t=(0,i.default)("<div>").addClass(E.FORM_VALIDATION_SUMMARY).appendTo(this._getContent());this._validationSummary=t.dxValidationSummary({validationGroup:this._getValidationGroup()}).dxValidationSummary("instance")}},_prepareItems:function(e,t,n,i){if(e){for(var o=[],a=0;a<e.length;a++){var r=e[a],s=(0,D.concatPaths)(n,(0,D.createItemPathByIndex)(a,i)),l=this._itemsRunTimeInfo.add({item:r,itemIndex:a,path:s});if((0,u.isString)(r)&&(r={dataField:r}),(0,u.isObject)(r)){var d=(0,h.extend)({},r);d.guid=l,this._tryPrepareGroupItem(d),this._tryPrepareTabbedItem(d,s),this._tryPrepareItemTemplate(d),t&&(d.cssItemClass=E.FIELD_ITEM_TAB_CLASS),d.items&&(d.items=this._prepareItems(d.items,t,s)),o.push(d)}else o.push(r)}return o}},_tryPrepareGroupItem:function(e){"group"===e.itemType&&(e.alignItemLabels=(0,s.ensureDefined)(e.alignItemLabels,!0),e.template&&(e.groupContentTemplate=this._getTemplate(e.template)),e.template=this._itemGroupTemplate.bind(this,e))},_tryPrepareTabbedItem:function(e,t){"tabbed"===e.itemType&&(e.template=this._itemTabbedTemplate.bind(this,e),e.tabs=this._prepareItems(e.tabs,!0,t,!0))},_tryPrepareItemTemplate:function(e){e.template&&(e.template=this._getTemplate(e.template))},_checkGrouping:function(e){if(e)for(var t=0;t<e.length;t++)if("group"===e[t].itemType)return!0},_renderLayout:function(){var e=this,t=e.option("items"),n=e._getContent();t=e._prepareItems(t),e._rootLayoutManager=e._renderLayoutManager(t,n,{isRoot:!0,colCount:e.option("colCount"),alignItemLabels:e.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged:function(t){e._alignLabels.bind(e)(e._rootLayoutManager,t)},onContentReady:function(t){e._alignLabels(t.component,t.component.isSingleColumnMode())}})},_tryGetItemsForTemplate:function(e){return e.items||[]},_itemTabbedTemplate:function(e,t,n){var o=this,a=(0,i.default)("<div>").appendTo(n),r=(0,h.extend)({},e.tabPanelOptions,{dataSource:e.tabs,onItemRendered:function(e){return(0,f.triggerShownEvent)(e.itemElement)},itemTemplate:function(e,t,n){var a=(0,i.default)(n),r=(0,s.ensureDefined)(e.alignItemLabels,!0),l=o._renderLayoutManager(o._tryGetItemsForTemplate(e),a,{colCount:e.colCount,alignItemLabels:r,screenByWidth:o.option("screenByWidth"),colCountByScreen:e.colCountByScreen,cssItemClass:e.cssItemClass,onLayoutChanged:function(t){o._alignLabelsInColumn({$container:a,layoutManager:l,items:e.items,inOneColumn:t})}});o._itemsRunTimeInfo&&o._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{layoutManager:l}),r&&o._alignLabelsInColumn({$container:a,layoutManager:l,items:e.items,inOneColumn:l.isSingleColumnMode()})}}),l=function(e,t){Array.isArray(e)&&e.forEach((function(e){return o._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{widgetInstance:t})}))},u=this._createComponent(a,b.default,r);(0,i.default)(n).parent().addClass(E.FIELD_ITEM_CONTENT_HAS_TABS_CLASS),u.on("optionChanged",(function(e){"dataSource"===e.fullName&&l(e.value,e.component)})),l([{guid:e.guid}].concat(function(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.tabs)),u)},_itemGroupTemplate:function(e,t,n){var o,a,r=(0,i.default)("<div>").toggleClass(E.FORM_GROUP_WITH_CAPTION_CLASS,(0,u.isDefined)(e.caption)&&e.caption.length).addClass(E.FORM_GROUP_CLASS).appendTo(n);(0,i.default)(n).parent().addClass(E.FIELD_ITEM_CONTENT_HAS_GROUP_CLASS),e.caption&&(0,i.default)("<span>").addClass(E.FORM_GROUP_CAPTION_CLASS).text(e.caption).appendTo(r);var s=(0,i.default)("<div>").addClass(E.FORM_GROUP_CONTENT_CLASS).appendTo(r);if(e.groupContentTemplate){var l={formData:this.option("formData"),component:this};e.groupContentTemplate.render({model:l,container:(0,p.getPublicElement)(s)})}else a=this._renderLayoutManager(this._tryGetItemsForTemplate(e),s,{colCount:e.colCount,colCountByScreen:e.colCountByScreen,alignItemLabels:e.alignItemLabels,cssItemClass:e.cssItemClass}),this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{layoutManager:a}),o=a._getColCount(),-1===(0,c.inArray)(o,this._groupsColCount)&&this._groupsColCount.push(o),r.addClass(E.GROUP_COL_COUNT_CLASS+o),r.attr(E.GROUP_COL_COUNT_ATTR,o)},_renderLayoutManager:function(e,t,n){var o=(0,i.default)("<div>"),a=this,r=a._getLayoutManagerConfig(e,n),s={lg:n.colCount,md:n.colCount,sm:n.colCount,xs:1};a._cachedColCountOptions.push({colCountByScreen:(0,h.extend)(s,n.colCountByScreen)}),o.appendTo(t);var l=a._createComponent(o,"dxLayoutManager",r);return l.on("autoColCountChanged",(function(){a._refresh()})),a._cachedLayoutManagers.push(l),l},_getValidationGroup:function(){return this.option("validationGroup")||this},_getLayoutManagerConfig:function(e,t){var n=this,i={form:this,isRoot:t.isRoot,validationGroup:this._getValidationGroup(),showRequiredMark:this.option("showRequiredMark"),showOptionalMark:this.option("showOptionalMark"),requiredMark:this.option("requiredMark"),optionalMark:this.option("optionalMark"),requiredMessage:this.option("requiredMessage"),screenByWidth:this.option("screenByWidth"),layoutData:this.option("formData"),labelLocation:this.option("labelLocation"),customizeItem:this.option("customizeItem"),minColWidth:this.option("minColWidth"),showColonAfterLabel:this.option("showColonAfterLabel"),onEditorEnterKey:this.option("onEditorEnterKey"),labelMode:this.option("labelMode"),onFieldDataChanged:function(e){n._isDataUpdating||n._triggerOnFieldDataChanged(e)},validationBoundary:this.option("scrollingEnabled")?this.$element():void 0};return(0,h.extend)(i,{items:e,onContentReady:function(e){n._itemsRunTimeInfo.addItemsOrExtendFrom(e.component._itemsRunTimeInfo),t.onContentReady&&t.onContentReady(e)},onDisposing:function(e){var t=e.component.getItemsRunTimeInfo();n._itemsRunTimeInfo.removeItemsByItems(t)},colCount:t.colCount,alignItemLabels:t.alignItemLabels,cssItemClass:t.cssItemClass,colCountByScreen:t.colCountByScreen,onLayoutChanged:t.onLayoutChanged,width:t.width})},_createComponent:function(e,t,n){var i=this;return n=n||{},i._extendConfig(n,{readOnly:i.option("readOnly")}),i.callBase(e,t,n)},_attachSyncSubscriptions:function(){var e=this;e.on("optionChanged",(function(t){var n=t.fullName;"formData"===n&&((0,u.isDefined)(t.value)||e._options.silent("formData",t.value={}),e._triggerOnFieldDataChangedByDataSet(t.value)),e._cachedLayoutManagers.length&&(0,d.each)(e._cachedLayoutManagers,(function(i,o){"formData"===n&&(e._isDataUpdating=!0,o.option("layoutData",t.value),e._isDataUpdating=!1),"readOnly"!==t.name&&"disabled"!==t.name||o.option(n,t.value)}))}))},_optionChanged:function(e){var t=e.fullName.split(".");t.length>1&&-1!==t[0].search("items")&&this._itemsOptionChangedHandler(e)||t.length>1&&-1!==t[0].search("formData")&&this._formDataOptionChangedHandler(e)||this._defaultOptionChangedHandler(e)},_defaultOptionChangedHandler:function(e){switch(e.name){case"formData":this.option("items")?(0,u.isEmptyObject)(e.value)&&this._resetValues():this._invalidate();break;case"onFieldDataChanged":case"alignRootItemLabels":case"readOnly":break;case"items":case"colCount":case"onEditorEnterKey":case"labelLocation":case"labelMode":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":case"stylingMode":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"width":this.callBase(e),this._rootLayoutManager.option(e.name,e.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"visible":this.callBase(e),e.value&&(0,f.triggerShownEvent)(this.$element());break;case"validationGroup":y.default.removeGroup(e.previousValue||this),this._invalidate();break;default:this.callBase(e)}},_itemsOptionChangedHandler:function(e){var t=e.fullName.split("."),n=e.value,i=this._getItemPath(t),o=this.option(i),a=e.fullName.replace(i+".",""),r=a.split(".")[0].replace(/\[\d+]/,""),s=this._tryCreateItemOptionAction(r,o,o[r],e.previousValue,i),l=this._tryExecuteItemOptionAction(s)||this._tryChangeLayoutManagerItemOption(e.fullName,n);if(!l&&o){this._changeItemOption(o,a,n);var u=this._generateItemsFromData(this.option("items"));this.option("items",u),l=!0}return l},_formDataOptionChangedHandler:function(e){var t=e.fullName.split("."),n=e.value,i=t.slice(1).join("."),o=this.getEditor(i);return o?o.option("value",n):this._triggerOnFieldDataChanged({dataField:i,value:n}),!0},_tryCreateItemOptionAction:function(e,t,n,i,o){return"tabs"===e&&(this._itemsRunTimeInfo.removeItemsByPathStartWith("".concat(o,".tabs")),n=this._prepareItems(n,!0,o,!0)),(0,k.default)(e,{item:t,value:n,previousValue:i,itemsRunTimeInfo:this._itemsRunTimeInfo})},_tryExecuteItemOptionAction:function(e){return e&&e.tryExecute()},_updateValidationGroupAndSummaryIfNeeded:function(e){var t=(0,D.getOptionNameFromFullName)(e);M.indexOf(t)>-1&&(y.default.addGroup(this._getValidationGroup()),this.option("showValidationSummary")&&this._validationSummary&&this._validationSummary._initGroupRegistration())},_setLayoutManagerItemOption:function(e,t,n,i){var o=this;if(this._updateLockCount>0){!e._updateLockCount&&e.beginUpdate();var a=this._itemsRunTimeInfo.findKeyByPath(i);this.postponedOperations.add(a,(function(){return!e._disposed&&e.endUpdate(),(new C.Deferred).resolve()}))}e.on("contentReady",(function e(t){if(t.component.off("contentReady",e),(0,D.isFullPathContainsTabs)(i)){var n=(0,D.tryGetTabPath)(i),a=o._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(n);a&&o._alignLabelsInColumn({items:a.option("items"),layoutManager:a,$container:a.$element(),inOneColumn:a.isSingleColumnMode()})}else o._alignLabels(o._rootLayoutManager,o._rootLayoutManager.isSingleColumnMode())})),e.option(t,n),this._updateValidationGroupAndSummaryIfNeeded(t)},_tryChangeLayoutManagerItemOption:function(e,t){var n=e.split("."),i=(0,D.getOptionNameFromFullName)(e);if("items"===i&&n.length>1){var o=this._getItemPath(n),a=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(o);if(a){this._itemsRunTimeInfo.removeItemsByItems(a.getItemsRunTimeInfo());var r=this._prepareItems(t,!1,o);return this._setLayoutManagerItemOption(a,i,r,o),!0}}else if(n.length>2){var s=n.length-2,l=this._getItemPath(n.slice(0,s)),u=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(l);if(u){var d=(0,D.getFullOptionName)(n[s],i);if("editorType"===i&&u.option(d)!==t)return!1;if("visible"===i){var c=this.option((0,D.getFullOptionName)(l,"items"));if(c&&c.length){var h=u.option("items");c.forEach((function(e,t){h[t].visibleIndex=e.visibleIndex}))}}return this._setLayoutManagerItemOption(u,d,t,l),!0}}return!1},_tryChangeLayoutManagerItemOptions:function(e,t){var n,i=this;return this.beginUpdate(),(0,d.each)(t,(function(t,o){if(!(n=i._tryChangeLayoutManagerItemOption((0,D.getFullOptionName)(e,t),o)))return!1})),this.endUpdate(),n},_getItemPath:function(e){var t,n=e[0];for(t=1;t<e.length&&-1!==e[t].search(/items\[\d+]|tabs\[\d+]/);t++)n+="."+e[t];return n},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_triggerOnFieldDataChangedByDataSet:function(e){var t=this;e&&(0,u.isObject)(e)&&(0,d.each)(e,(function(e,n){t._triggerOnFieldDataChanged({dataField:e,value:n})}))},_updateFieldValue:function(e,t){if((0,u.isDefined)(this.option("formData"))){var n=this.getEditor(e);this.option("formData."+e,t),n&&n.option("value")!==t&&n.option("value",t)}},_generateItemsFromData:function(e){var t=this.option("formData"),n=[];return!e&&(0,u.isDefined)(t)&&(0,d.each)(t,(function(e){n.push({dataField:e})})),e&&(0,d.each)(e,(function(e,t){(0,u.isObject)(t)?n.push(t):n.push({dataField:t})})),n},_getItemByField:function(e,t){var n,i=this,o=(0,u.isObject)(e)?e:i._getFieldParts(e),a=o.fieldName,r=o.fieldPath;return t.length&&(0,d.each)(t,(function(e,t){var o=t.itemType;if(r.length){var s=r.slice();t=i._getItemByFieldPath(s,a,t)}else if("group"===o&&!t.caption&&!t.name||"tabbed"===o&&!t.name){var l=i._getSubItemField(o);t.items=i._generateItemsFromData(t.items),t=i._getItemByField({fieldName:a,fieldPath:r},t[l])}if((0,D.isExpectedItem)(t,a))return n=t,!1})),n},_getFieldParts:function(e){for(var t=e,n=t.indexOf("."),i=[];-1!==n;)i.push(t.substr(0,n)),n=(t=t.substr(n+1)).indexOf(".");return{fieldName:t,fieldPath:i.reverse()}},_getItemByFieldPath:function(e,t,n){var i,o=this,a=n.itemType,r=o._getSubItemField(a),s="group"===a||"tabbed"===a||n.title;do{if(!s)break;var l=n.name||n.caption||n.title,d=(0,u.isDefined)(l),c=(0,D.getTextWithoutSpaces)(l),h=void 0;if(n[r]=o._generateItemsFromData(n[r]),d&&(h=e.pop()),!e.length&&(i=o._getItemByField(t,n[r])))break;(!d||d&&c===h)&&e.length&&(i=o._searchItemInEverySubItem(e,t,n[r]))}while(e.length&&!(0,u.isDefined)(i));return i},_getSubItemField:function(e){return"tabbed"===e?"tabs":"items"},_searchItemInEverySubItem:function(e,t,n){var i,o=this;return(0,d.each)(n,(function(n,a){if(i=o._getItemByFieldPath(e.slice(),t,a))return!1})),i||(i=!1),i},_changeItemOption:function(e,t,n){(0,u.isObject)(e)&&(e[t]=n)},_dimensionChanged:function(){var e=this._getCurrentScreenFactor();this._lastMarkupScreenFactor!==e&&(this._isColCountChanged(this._lastMarkupScreenFactor,e)&&(this._targetScreenFactor=e,this._refresh(),this._targetScreenFactor=void 0),this._lastMarkupScreenFactor=e)},_isColCountChanged:function(e,t){var n=!1;return(0,d.each)(this._cachedColCountOptions,(function(i,o){if(o.colCountByScreen[e]!==o.colCountByScreen[t])return n=!0,!1})),n},_refresh:function(){o.default.trigger(this.$element().find(".dx-state-focused input, .dx-state-focused textarea"),"change"),this.callBase()},_resetValues:function(){this._itemsRunTimeInfo.each((function(e,t){(0,u.isDefined)(t.widgetInstance)&&_.default.isEditor(t.widgetInstance)&&(t.widgetInstance.reset(),t.widgetInstance.option("isValid",!0))})),y.default.resetGroup(this._getValidationGroup())},_updateData:function(e,t,n){var i=this,o=n?t:e;(0,u.isObject)(o)?(0,d.each)(o,(function(t,o){i._updateData(n?e+"."+t:t,o,(0,u.isObject)(o))})):(0,u.isString)(e)&&i._updateFieldValue(e,t)},registerKeyHandler:function(e,t){this.callBase(e,t),this._itemsRunTimeInfo.each((function(n,i){(0,u.isDefined)(i.widgetInstance)&&i.widgetInstance.registerKeyHandler(e,t)}))},_focusTarget:function(){return this.$element().find("."+E.FIELD_ITEM_CONTENT_CLASS+" [tabindex]").first()},_visibilityChanged:function(){},_dispose:function(){y.default.removeGroup(this._getValidationGroup()),this.callBase()},resetValues:function(){this._resetValues()},updateData:function(e,t){this._updateData(e,t)},getEditor:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(e)||this._itemsRunTimeInfo.findWidgetInstanceByName(e)},getButton:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByName(e)},updateDimensions:function(){var e=this,t=new C.Deferred;return e._scrollable?e._scrollable.update().done((function(){t.resolveWith(e)})):t.resolveWith(e),t.promise()},itemOption:function(e,t,n){var i=this,o=this._generateItemsFromData(this.option("items")),a=this._getItemByField(e,o),r=(0,D.getItemPath)(o,a);if(a)switch(arguments.length){case 1:return a;case 3:var s=this._tryCreateItemOptionAction(t,a,n,a[t],r);this._changeItemOption(a,t,n);var l=(0,D.getFullOptionName)(r,t);this._tryExecuteItemOptionAction(s)||this._tryChangeLayoutManagerItemOption(l,n)||this.option("items",o);break;default:var c;(0,u.isObject)(t)&&(this._tryChangeLayoutManagerItemOptions(r,t)||((0,d.each)(t,(function(e,t){var n=i._tryCreateItemOptionAction(e,a,t,a[e],r);i._changeItemOption(a,e,t),c||i._tryExecuteItemOptionAction(n)||(c=!0)})),c&&this.option("items",o)))}},validate:function(){return y.default.validateGroup(this._getValidationGroup())},getItemID:function(e){return"dx_"+this.option("formID")+"_"+(e||new r.default)},getTargetScreenFactor:function(){return this._targetScreenFactor}});(0,a.default)("dxForm",R);var B=R;t.default=B,e.exports=t.default,e.exports.default=t.default},85532:function(e,t,n){t.default=void 0;var i=n(58664),o=k(n(68374)),a=k(n(55994)),r=k(n(10291)),s=k(n(99393)),l=n(35922),u=k(n(26974)),d=n(58201),c=n(95479),h=n(13306),f=n(89386),p=n(47617),g=n(29007),m=k(n(28109)),_=n(80968),v=k(n(14390)),y=k(n(21643)),x=n(31093);n(29837),n(34171),n(18859),n(29589),n(63008);var b=n(21014),w=n(77509),C=n(46193),S=n(61961);function k(e){return e&&e.__esModule?e:{default:e}}function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var T="flex",E=v.default.inherit({_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{layoutData:{},readOnly:!1,colCount:1,colCountByScreen:void 0,labelLocation:"left",onFieldDataChanged:null,onEditorEnterKey:null,customizeItem:null,alignItemLabels:!0,minColWidth:200,showRequiredMark:!0,screenByWidth:null,showOptionalMark:!1,requiredMark:"*",labelMode:"outside",optionalMark:m.default.format("dxForm-optionalMark"),requiredMessage:m.default.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference:function(){this.callBase(),(0,h.extend)(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init:function(){var e=this.option("layoutData");this.callBase(),this._itemWatchers=[],this._itemsRunTimeInfo=new r.default,this._updateReferencedOptions(e),this._initDataAndItems(e)},_dispose:function(){this.callBase(),this._cleanItemWatchers()},_initDataAndItems:function(e){this._syncDataWithItems(),this._updateItems(e)},_syncDataWithItems:function(){var e=this,t=this.option("layoutData"),n=this.option("items");(0,l.isDefined)(n)&&n.forEach((function(n){var i;n.dataField&&void 0===e._getDataByField(n.dataField)&&(n.editorOptions&&(i=n.editorOptions.value),((0,l.isDefined)(i)||n.dataField in t)&&e._updateFieldValue(n.dataField,i))}))},_getDataByField:function(e){return e?this.option("layoutData."+e):null},_isCheckboxUndefinedStateEnabled:function(e){var t=e.allowIndeterminateState,n=e.editorType,i=e.dataField;if(!0===t&&"dxCheckBox"===n){var o=["layoutData"].concat(function(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i.split("."))),a=o.pop(),r=this.option(o.join("."));return r&&a in r}return!1},_updateFieldValue:function(e,t){var n=this.option("layoutData"),i=t;!u.default.isWrapped(n[e])&&(0,l.isDefined)(e)?this.option("layoutData."+e,i):u.default.isWritableWrapped(n[e])&&(i=(0,l.isFunction)(i)?i():i,n[e](i)),this._triggerOnFieldDataChanged({dataField:e,value:i})},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_updateItems:function(e){var t=this,n=this.option("items"),i=(0,l.isDefined)(n),o=t.option("customizeItem"),a=i?n:this._generateItemsByData(e);if((0,l.isDefined)(a)){var r=[];(0,c.each)(a,(function(e,n){t._isAcceptableItem(n)&&(n=t._processItem(n),o&&o(n),(0,l.isObject)(n)&&!1!==u.default.unwrap(n.visible)&&r.push(n))})),t._itemWatchers.length&&i||t._updateItemWatchers(a),this._setItems(r),this._sortItems()}},_cleanItemWatchers:function(){this._itemWatchers.forEach((function(e){e()})),this._itemWatchers=[]},_updateItemWatchers:function(e){var t=this,n=t._getWatch();e.forEach((function(e){(0,l.isObject)(e)&&(0,l.isDefined)(e.visible)&&(0,l.isFunction)(n)&&t._itemWatchers.push(n((function(){return u.default.unwrap(e.visible)}),(function(){t._updateItems(t.option("layoutData")),t.repaint()}),{skipImmediate:!0}))}))},_generateItemsByData:function(e){var t=[];return(0,l.isDefined)(e)&&(0,c.each)(e,(function(e){t.push({dataField:e})})),t},_isAcceptableItem:function(e){var t=e.dataField||e,n=this._getDataByField(t);return!((0,l.isFunction)(n)&&!u.default.isWrapped(n))},_processItem:function(e){if("string"==typeof e&&(e={dataField:e}),"object"!==D(e)||e.itemType||(e.itemType=x.SIMPLE_ITEM_TYPE),!(0,l.isDefined)(e.editorType)&&(0,l.isDefined)(e.dataField)){var t=this._getDataByField(e.dataField);e.editorType=(0,l.isDefined)(t)?this._getEditorTypeByDataType((0,l.type)(t)):"dxTextBox"}var n;return"dxCheckBox"===e.editorType&&(e.allowIndeterminateState=null===(n=e.allowIndeterminateState)||void 0===n||n),e},_getEditorTypeByDataType:function(e){switch(e){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems:function(){(0,f.normalizeIndexes)(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes:function(){this._items.sort((function(e,t){var n=e.visibleIndex,i=t.visibleIndex;return n>i?1:n<i?-1:0}))},_initMarkup:function(){this._itemsRunTimeInfo.clear(),this.$element().addClass(x.FORM_LAYOUT_MANAGER_CLASS),this.callBase(),this._renderResponsiveBox()},_hasBrowserFlex:function(){return(0,_.styleProp)(T)===T},_renderResponsiveBox:function(){var e=this,t=[];if(e._items&&e._items.length){var n=e._getColCount(),i=(0,o.default)("<div>").appendTo(e.$element());e._prepareItemsWithMerging(n);var a=e._generateLayoutItems();e._responsiveBox=e._createComponent(i,y.default,e._getResponsiveBoxConfig(a,n,t)),(0,d.hasWindow)()||e._renderTemplates(t)}},_itemStateChangedHandler:function(e){this._refresh()},_renderTemplates:function(e){var t=this;(0,c.each)(e,(function(e,n){switch(n.itemType){case"empty":(0,C.renderEmptyItem)(n);break;case"button":t._renderButtonItem(n);break;default:t._renderFieldItem(n)}}))},_getResponsiveBoxConfig:function(e,t,n){var i=this,a=i.option("colCountByScreen"),r=a&&a.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),_layoutStrategy:i._hasBrowserFlex()?T:"fallback",onLayoutChanged:function(){var e=i.option("onLayoutChanged"),t=i.isSingleColumnMode();e&&(i.$element().toggleClass(x.LAYOUT_MANAGER_ONE_COLUMN,t),e(t))},onContentReady:function(e){(0,d.hasWindow)()&&i._renderTemplates(n),i.option("onLayoutChanged")&&i.$element().toggleClass(x.LAYOUT_MANAGER_ONE_COLUMN,i.isSingleColumnMode(e.component))},itemTemplate:function(e,a,r){if(e.location){var s=(0,o.default)(r),u=e.location.row*t,d=i._items[e.location.col+u];if(d){var c=[d.cssClass];s.toggleClass(x.SINGLE_COLUMN_ITEM_CONTENT,i.isSingleColumnMode(this)),0===e.location.row&&c.push("dx-first-row"),0===e.location.col&&c.push("dx-first-col"),d.itemType===x.SIMPLE_ITEM_TYPE&&i.option("isRoot")&&s.addClass(x.ROOT_SIMPLE_ITEM_CLASS);var h=e.location.col===t-1||e.location.col+e.location.colspan===t,f=i._getRowsCount(),p=e.location.row===f-1;h&&c.push("dx-last-col"),p&&c.push("dx-last-row"),"empty"!==d.itemType&&(c.push(x.FIELD_ITEM_CLASS),c.push(i.option("cssItemClass")),(0,l.isDefined)(d.col)&&c.push("dx-col-"+d.col)),n.push({itemType:d.itemType,item:d,$parent:s,rootElementCssClassList:c})}}},cols:i._generateRatio(t),rows:i._generateRatio(i._getRowsCount(),!0),dataSource:e,screenByWidth:i.option("screenByWidth"),singleColumnScreen:!r&&"xs"}},_getColCount:function(){var e=this.option("colCount"),t=this.option("colCountByScreen");if(t){var n=this.option("form").getTargetScreenFactor();n||(n=(0,d.hasWindow)()?(0,d.getCurrentScreenFactor)(this.option("screenByWidth")):"lg"),e=t[n]||e}if("auto"===e){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=e=this._getMaxColCount()}return e<1?1:e},_getMaxColCount:function(){if(!(0,d.hasWindow)())return 1;var e=this.option("minColWidth"),t=(0,i.getWidth)(this.$element()),n=this._items.length,o=Math.floor(t/e)||1;return n<o?n:o},isCachedColCountObsolete:function(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging:function(e){var t,n,i,o,a=this._items.slice(0),r=[];for(o=0;o<a.length;o++)if(t=a[o],r.push(t),(this.option("alignItemLabels")||t.alignItemLabels||t.colSpan)&&(t.col=this._getColByIndex(r.length-1,e)),t.colSpan>1&&t.col+t.colSpan<=e){for(n=[],i=0;i<t.colSpan-1;i++)n.push({merged:!0});r=r.concat(n)}else delete t.colSpan;this._setItems(r)},_getColByIndex:function(e,t){return e%t},_setItems:function(e){this._items=e,this._cashedColCount=null},_generateLayoutItems:function(){var e,t,n=this._items,i=this._getColCount(),o=[];for(t=0;t<n.length;t++)if(!(e=n[t]).merged){var a={location:{row:parseInt(t/i),col:this._getColByIndex(t,i)}};(0,l.isDefined)(e.disabled)&&(a.disabled=e.disabled),(0,l.isDefined)(e.visible)&&(a.visible=e.visible),(0,l.isDefined)(e.colSpan)&&(a.location.colspan=e.colSpan),(0,l.isDefined)(e.rowSpan)&&(a.location.rowspan=e.rowSpan),o.push(a)}return o},_renderEmptyItem:function(e){(0,C.renderEmptyItem)({$container:e})},_renderButtonItem:function(e){var t=e.item,n=e.$parent,i=e.rootElementCssClassList,o=(0,w.renderButtonItem)({item:t,$parent:n,rootElementCssClassList:i,validationGroup:this.option("validationGroup"),createComponentCallback:this._createComponent.bind(this)}),a=o.$rootElement,r=o.buttonInstance;this._itemsRunTimeInfo.add({item:t,widgetInstance:r,guid:t.guid,$itemContainer:a})},_renderFieldItem:function(e){var t=e.item,n=e.$parent,i=e.rootElementCssClassList,o=this._getDataByField(t.dataField),a=!1;if(void 0===o){var r=t.allowIndeterminateState,s=t.editorType,l=t.dataField;a=this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:r,editorType:s,dataField:l})}var u=t.dataField||t.name,d=(0,b.renderFieldItem)((0,S.convertToRenderFieldItemOptions)({$parent:n,rootElementCssClassList:i,item:t,name:u,editorValue:o,canAssignUndefinedValueToEditor:a,parentComponent:this._getComponentOwner(),createComponentCallback:this._createComponent.bind(this),useFlexLayout:this._hasBrowserFlex(),formLabelLocation:this.option("labelLocation"),requiredMessageTemplate:this.option("requiredMessage"),validationGroup:this.option("validationGroup"),editorValidationBoundary:this.option("validationBoundary"),editorStylingMode:this.option("form")&&this.option("form").option("stylingMode"),showColonAfterLabel:this.option("showColonAfterLabel"),managerLabelLocation:this.option("labelLocation"),template:t.template?this._getTemplate(t.template):null,itemId:this.option("form")&&this.option("form").getItemID(u),managerMarkOptions:this._getMarkOptions(),labelMode:this.option("labelMode")})),c=d.$fieldEditorContainer,h=d.widgetInstance,f=d.$rootElement;h&&t.dataField&&this._bindDataField(h,t.dataField,t.editorType,c),this._itemsRunTimeInfo.add({item:t,widgetInstance:h,guid:t.guid,$itemContainer:f})},_getMarkOptions:function(){return{showRequiredMark:this.option("showRequiredMark"),requiredMark:this.option("requiredMark"),showOptionalMark:this.option("showOptionalMark"),optionalMark:this.option("optionalMark")}},_getComponentOwner:function(){return this.option("form")||this},_bindDataField:function(e,t,n,i){var o=this._getComponentOwner();e.on("enterKey",(function(e){o._createActionByOption("onEditorEnterKey")((0,h.extend)(e,{dataField:t}))})),this._createWatcher(e,i,t),this.linkEditorToDataField(e,t,n)},_createWatcher:function(e,t,n){var i=this,o=i._getWatch();if((0,l.isFunction)(o)){var r=o((function(){return i._getDataByField(n)}),(function(){e.option("value",i._getDataByField(n))}),{deep:!0,skipImmediate:!0});a.default.on(t,g.removeEvent,r)}},_getWatch:function(){if(!(0,l.isDefined)(this._watch)){var e=this.option("form");this._watch=e&&e.option("integrationOptions.watchMethod")}return this._watch},_createComponent:function(e,t,n){var i=this.option("readOnly"),o=this.callBase(e,t,n);return i&&o.option("readOnly",i),this.on("optionChanged",(function(e){"readOnly"!==e.name||(0,l.isDefined)(n.readOnly)||o.option(e.name,e.value)})),o},_generateRatio:function(e,t){var n,i,o=[];for(i=0;i<e;i++)n={ratio:1},t&&(n.baseSize="auto"),o.push(n);return o},_getRowsCount:function(){return Math.ceil(this._items.length/this._getColCount())},_updateReferencedOptions:function(e){var t=this,n=this.option("layoutData");(0,l.isObject)(n)&&Object.getOwnPropertyNames(n).forEach((function(e){return delete t._optionsByReference["layoutData."+e]})),(0,l.isObject)(e)&&Object.getOwnPropertyNames(e).forEach((function(e){return t._optionsByReference["layoutData."+e]=!0}))},_resetWidget:function(e){this._disableEditorValueChangedHandler=!0,e.reset(),this._disableEditorValueChangedHandler=!1,e.option("isValid",!0)},_optionChanged:function(e){var t=this;if(0!==e.fullName.search("layoutData."))switch(e.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this._updateReferencedOptions(e.value),this.option("items")?(0,l.isEmptyObject)(e.value)||this._itemsRunTimeInfo.each((function(n,i){if((0,l.isDefined)(i.item)){var o=i.item.dataField;if(o&&(0,l.isDefined)(i.widgetInstance)){var a=(0,p.compileGetter)(o)(e.value),r=i.item,s=r.allowIndeterminateState,u=r.editorType;void 0!==a||t._isCheckboxUndefinedStateEnabled({allowIndeterminateState:s,editorType:u,dataField:o})?i.widgetInstance.option("value",a):t._resetWidget(i.widgetInstance)}}})):(this._initDataAndItems(e.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(e.value),this._invalidate();break;case"alignItemLabels":case"labelLocation":case"labelMode":case"requiredMessage":this._invalidate();break;case"customizeItem":this._updateItems(this.option("layoutData")),this._invalidate();break;case"colCount":this._resetColCount();break;case"minColWidth":"auto"===this.option("colCount")&&this._resetColCount();break;case"readOnly":case"onFieldDataChanged":break;case"width":this.callBase(e),"auto"===this.option("colCount")&&this._resetColCount();break;default:this.callBase(e)}},_resetColCount:function(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField:function(e,t){var n=this;this.on("optionChanged",(function(n){n.fullName==="layoutData.".concat(t)&&e._setOptionWithoutOptionChange("value",n.value)})),e.on("valueChanged",(function(e){var i=(0,l.isObject)(e.value)||Array.isArray(e.value);n._disableEditorValueChangedHandler||i&&e.value===e.previousValue||n._updateFieldValue(t,e.value)}))},_dimensionChanged:function(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this._eventsStrategy.fireEvent("autoColCountChanged")},updateData:function(e,t){var n=this;(0,l.isObject)(e)?(0,c.each)(e,(function(e,t){n._updateFieldValue(e,t)})):"string"==typeof e&&n._updateFieldValue(e,t)},getEditor:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(e)||this._itemsRunTimeInfo.findWidgetInstanceByName(e)},isSingleColumnMode:function(e){var t=this._responsiveBox||e;if(t)return t.option("currentScreenFactor")===t.option("singleColumnScreen")},getItemsRunTimeInfo:function(){return this._itemsRunTimeInfo}});(0,s.default)("dxLayoutManager",E);var A=E;t.default=A,e.exports=t.default,e.exports.default=t.default},61961:function(e,t,n){t.EDITORS_WITHOUT_LABELS=void 0,t.convertToLabelMarkOptions=f,t.convertToRenderFieldItemOptions=function(e){var t=e.$parent,n=e.rootElementCssClassList,i=e.parentComponent,p=e.createComponentCallback,g=e.useFlexLayout,m=e.item,_=e.template,v=e.name,y=e.formLabelLocation,x=e.requiredMessageTemplate,b=e.validationGroup,w=e.editorValue,C=e.canAssignUndefinedValueToEditor,S=e.editorValidationBoundary,k=e.editorStylingMode,D=e.showColonAfterLabel,I=e.managerLabelLocation,T=e.itemId,E=e.managerMarkOptions,A=e.labelMode,O=(0,a.isDefined)(m.isRequired)?m.isRequired:!!function(e){var t;return e&&e.length&&(0,r.each)(e,(function(e,n){if("required"===n.type)return t=!0,!1})),t}(m.validationRules),P=m.itemType===d.SIMPLE_ITEM_TYPE,M=m.helpText?"dx-"+new u.default:null,R=function(e){var t=e.item,n=e.id,i=e.isRequired,a=e.managerMarkOptions,r=e.showColonAfterLabel,d=e.labelLocation,c=e.formLabelMode,p=-1!==(0,l.inArray)(t.editorType,h),g=(0,o.extend)({showColon:r,location:d,id:n,visible:"outside"===c||p&&"hidden"!==c,isRequired:i},t?t.label:{},{markOptions:f(a,i)});return-1!==(0,l.inArray)(t.editorType,["dxRadioGroup","dxCheckBox","dxLookup","dxSlider","dxRangeSlider","dxSwitch","dxHtmlEditor"])&&(g.labelID="dx-label-".concat(new u.default)),!g.text&&t.dataField&&(g.text=(0,s.captionize)(t.dataField)),g.text&&(g.textWithoutColon=g.text,g.text+=g.showColon?":":""),g}({item:m,id:T,isRequired:O,managerMarkOptions:E,showColonAfterLabel:D,labelLocation:I,formLabelMode:A}),B=R.visible&&R.text,V=R.location,F=R.labelID,L="top"!==V&&(!!m.helpText&&!g||-1!==(0,l.inArray)(m.editorType,["dxTextArea","dxRadioGroup","dxCalendar","dxHtmlEditor"])),H=function(e){var t=e.editorType,n=e.defaultEditorName,i=e.editorValue,r=e.externalEditorOptions,s=e.editorInputId,l=e.editorValidationBoundary,u=e.editorStylingMode,d=e.formLabelMode,h=e.labelText,f=e.labelMark,p={};(void 0!==i||e.canAssignUndefinedValueToEditor)&&(p.value=i),-1!==c.indexOf(t)&&(p.value=p.value||[]);var g=null==r?void 0:r.labelMode;(0,a.isDefined)(g)||(g="outside"===d?"hidden":d);var m=(null==r?void 0:r.stylingMode)||u,_=(0,o.extend)(!0,p,r,{inputAttr:{id:s},validationBoundary:l,stylingMode:m,label:h,labelMode:g,labelMark:f});return r&&(_.dataSource&&(_.dataSource=r.dataSource),_.items&&(_.items=r.items)),n&&!_.name&&(_.name=n),_}({editorType:m.editorType,editorValue:w,defaultEditorName:m.dataField,canAssignUndefinedValueToEditor:C,externalEditorOptions:m.editorOptions,editorInputId:T,editorValidationBoundary:S,editorStylingMode:k,formLabelMode:A,labelText:R.textWithoutColon,labelMark:R.markOptions.showRequiredMark?String.fromCharCode(160)+R.markOptions.requiredMark:""});return{$parent:t,rootElementCssClassList:n,parentComponent:i,createComponentCallback:p,useFlexLayout:g,labelOptions:R,labelNeedBaselineAlign:L,labelLocation:V,needRenderLabel:B,item:m,isSimpleItem:P,isRequired:O,template:_,helpID:M,labelID:F,name:v,helpText:!R.markOptions.showOptionalMark||R.visible||"hidden"===H.labelMode||(0,a.isDefined)(m.helpText)?m.helpText:R.markOptions.optionalMark,formLabelLocation:y,requiredMessageTemplate:x,validationGroup:b,editorOptions:H}},t.getLabelMarkText=function(e){var t=e.showRequiredMark,n=e.requiredMark,i=e.showOptionalMark,o=e.optionalMark;return t||i?String.fromCharCode(160)+(t?n:o):""};var i,o=n(13306),a=n(35922),r=n(95479),s=n(78008),l=n(89386),u=(i=n(73176))&&i.__esModule?i:{default:i},d=n(31093),c=["dxTagBox","dxRangeSlider"],h=["dxCalendar","dxCheckBox","dxHtmlEditor","dxRadioGroup","dxRangeSlider","dxSlider","dxSwitch"];function f(e,t){return{showRequiredMark:e.showRequiredMark&&t,requiredMark:e.requiredMark,showOptionalMark:e.showOptionalMark&&!t,optionalMark:e.optionalMark}}t.EDITORS_WITHOUT_LABELS=h},35459:function(e,t,n){t.tryGetTabPath=t.isFullPathContainsTabs=t.isExpectedItem=t.getTextWithoutSpaces=t.getOptionNameFromFullName=t.getItemPath=t.getFullOptionName=t.createItemPathByIndex=t.concatPaths=void 0;var i=n(35922);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var a=function(e,t){return"".concat(t?"tabs":"items","[").concat(e,"]")};t.createItemPathByIndex=a;var r=function(e,t){return(0,i.isDefined)(e)&&(0,i.isDefined)(t)?"".concat(e,".").concat(t):e||t};t.concatPaths=r;var s=function(e){return e?e.replace(/\s/g,""):void 0};t.getTextWithoutSpaces=s,t.isExpectedItem=function(e,t){return e&&(e.dataField===t||e.name===t||s(e.title)===t||"group"===e.itemType&&s(e.caption)===t)},t.getFullOptionName=function(e,t){return"".concat(e,".").concat(t)},t.getOptionNameFromFullName=function(e){var t=e.split(".");return t[t.length-1].replace(/\[\d+]/,"")},t.tryGetTabPath=function(e){for(var t=e.split("."),n=function(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t),i=t.length-1;i>=0;i--){if(l(t[i]))return n.join(".");n.splice(i,1)}return""};var l=function(e){return e.indexOf("tabs")>-1};t.isFullPathContainsTabs=l,t.getItemPath=function e(t,n,i){var o=t.indexOf(n);if(o>-1)return a(o,i);for(var s=0;s<t.length;s++){var l=t[s],u=l.tabs||l.items;if(u){var d=e(u,n,l.tabs);if(d)return r(a(s,i),d)}}}},49433:function(e,t,n){t.default=void 0;var i=n(58664),o=w(n(68374)),a=w(n(55994)),r=w(n(99393)),s=n(20576),l=n(35922),u=n(58201),d=n(13306),c=n(6415),h=w(n(87209)),f=n(95429),p=n(31648),g=w(n(20530)),m=w(n(14390)),_=n(39611),v=w(n(11050)),y=w(n(66894)),x=n(93280),b=n(62754);function w(e){return e&&e.__esModule?e:{default:e}}var C="dx-gallery-loop",S="dx-gallery-active",k="dx-gallery-item-invisible",D="dx-gallery-item-loop",I="dx-gallery-item-selected",T=".dx-gallery-indicator-item",E="dx-gallery-indicator-item-selected",A=m.default.inherit({_supportedKeys:function(){return(0,d.extend)(this.callBase(),{pageUp:s.noop,pageDown:s.noop})},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{direction:"next",onClick:null,hoverStateEnabled:!0,activeStateEnabled:!0})},_render:function(){this.callBase();var e=this,t=this.$element(),n=(0,_.addNamespace)(f.name,this.NAME);t.addClass("dx-gallery-nav-button-"+this.option("direction")),a.default.off(t,n),a.default.on(t,n,(function(t){e._createActionByOption("onClick")({event:t})}))},_optionChanged:function(e){switch(e.name){case"onClick":case"direction":this._invalidate();break;default:this.callBase(e)}}}),O=v.default.inherit({_activeStateUnit:".dx-gallery-item",_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{activeStateEnabled:!1,animationDuration:400,animationEnabled:!0,loop:!1,swipeEnabled:!0,indicatorEnabled:!0,showIndicator:!0,selectedIndex:0,slideshowDelay:0,showNavButtons:!1,wrapAround:!1,initialItemWidth:void 0,stretchImages:!1,_itemAttributes:{role:"option"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===g.default.real().deviceType&&!g.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.option("loopItemFocus",this.option("loop"))},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new x.BindableTemplate(function(e,t){var n=(0,o.default)("<img>").addClass("dx-gallery-item-image");(0,l.isPlainObject)(t)?(this._prepareDefaultItemTemplate(t,e),n.attr({src:t.imageSrc,alt:t.imageAlt}).appendTo(e)):n.attr("src",String(t)).appendTo(e)}.bind(this),["imageSrc","imageAlt","text","html"],this.option("integrationOptions.watchMethod"))})},_dataSourceOptions:function(){return{paginate:!1}},_itemContainer:function(){return this._$container},_itemClass:function(){return"dx-gallery-item"},_itemDataKey:function(){return"dxGalleryItemData"},_actualItemWidth:function(){var e=this.option("wrapAround");return this.option("stretchImages")?1/(e?this._itemsPerPage()+1:this._itemsPerPage()):e?this._itemPercentWidth()*this._itemsPerPage()/(this._itemsPerPage()+1):this._itemPercentWidth()},_itemPercentWidth:function(){var e=(0,i.getOuterWidth)(this.$element()),t=this.option("initialItemWidth");return t&&t<=e?t/e:1},_itemsPerPage:function(){var e=(0,u.hasWindow)()?Math.floor(1/this._itemPercentWidth()):1;return Math.min(e,this._itemsCount())},_pagesCount:function(){return Math.ceil(this._itemsCount()/this._itemsPerPage())},_itemsCount:function(){return(this.option("items")||[]).length},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_initMarkup:function(){this._renderWrapper(),this._renderItemsContainer(),this.$element().addClass("dx-gallery"),this.$element().toggleClass(C,this.option("loop")),this.callBase(),this.setAria({role:"listbox",label:"gallery"})},_render:function(){this._renderDragHandler(),this._renderContainerPosition(),this._renderItemSizes(),this._renderItemPositions(),this._renderNavButtons(),this._renderIndicator(),this._renderSelectedItem(),this._renderItemVisibility(),this._renderUserInteraction(),this._setupSlideShow(),this._reviseDimensions(),this.callBase()},_dimensionChanged:function(){var e=this.option("selectedIndex")||0;this._stopItemAnimations(),this._clearCacheWidth(),this._cloneDuplicateItems(),this._renderItemSizes(),this._renderItemPositions(),this._renderIndicator(),this._renderContainerPosition(this._calculateIndexOffset(e),!0),this._renderItemVisibility()},_renderDragHandler:function(){var e=(0,_.addNamespace)("dragstart",this.NAME);a.default.off(this.$element(),e),a.default.on(this.$element(),e,"img",(function(){return!1}))},_renderWrapper:function(){this._$wrapper||(this._$wrapper=(0,o.default)("<div>").addClass("dx-gallery-wrapper").appendTo(this.$element()))},_renderItems:function(e){if(!(0,u.hasWindow)()){var t=this.option("selectedIndex");e=e.length>t?e.slice(t,t+1):e.slice(0,1)}this.callBase(e),this._loadNextPageIfNeeded()},_renderItemsContainer:function(){this._$container||(this._$container=(0,o.default)("<div>").addClass("dx-gallery-container").appendTo(this._$wrapper))},_cloneDuplicateItems:function(){if(this.option("loop")){var e,t=(this.option("items")||[]).length,n=t-1;if(t){this._getLoopedItems().remove();var i=Math.min(this._itemsPerPage(),t),o=this._getRealItems(),a=this._itemContainer();for(e=0;e<i;e++)this._cloneItemForDuplicate(o[e],a);for(e=0;e<i;e++)this._cloneItemForDuplicate(o[n-e],a)}}},_cloneItemForDuplicate:function(e,t){e&&(0,o.default)(e).clone(!0).addClass(D).css("margin",0).appendTo(t)},_getRealItems:function(){return this.$element().find(".dx-gallery-item:not(.dx-gallery-item-loop)")},_getLoopedItems:function(){return this.$element().find(".dx-gallery-item-loop")},_emptyMessageContainer:function(){return this._$wrapper},_renderItemSizes:function(e){var t=this._itemElements(),n=this._actualItemWidth();void 0!==e&&(t=t.slice(e)),t.each((function(e){(0,i.setOuterWidth)((0,o.default)(t[e]),100*n+"%")}))},_renderItemPositions:function(){var e=this._actualItemWidth(),t=this._itemsCount(),n=this._itemsPerPage(),i=this.$element().find(".dx-gallery-item-loop").length,a=t+i-1,r=this.option("wrapAround")?.5:0,s=this._itemFreeSpace(),l=!!s,u=this.option("rtlEnabled"),d=this.option("selectedIndex"),c=u?"Right":"Left";this._itemElements().each((function(i){var u=i,d=(0,o.default)(this).hasClass(D);if(i>t+n-1&&(u=a-u-n),d||0===u){var h=e*(u+r)+s*(u+1-r),f=d?c.toLowerCase():"margin"+c;(0,o.default)(this).css(f,100*h+"%")}else l&&(0,o.default)(this).css("margin"+c,100*s+"%")})),this._relocateItems(d,d,!0)},_itemFreeSpace:function(){var e=this._itemsPerPage();return this.option("wrapAround")&&(e+=1),(1-this._actualItemWidth()*e)/(e+1)},_renderContainerPosition:function(e,t,n){this._releaseInvisibleItems(),e=e||0;var i,o=this,a=this._actualItemWidth(),r=e,s=this._offsetDirection()*r*(a+this._itemFreeSpace());return(0,l.isDefined)(this._animationOverride)&&(n=this._animationOverride,delete this._animationOverride),n?(o._startSwipe(),i=o._animate(s).done(o._endSwipe.bind(o))):((0,p.move)(this._$container,{left:s*this._elementWidth(),top:0}),i=(new b.Deferred).resolveWith(o)),i.done((function(){this._deferredAnimate&&o._deferredAnimate.resolveWith(o),t&&this._renderItemVisibility()})),i.promise()},_startSwipe:function(){this.$element().addClass(S)},_endSwipe:function(){this.$element().removeClass(S)},_animate:function(e,t){var n=this,i=this._$container,o=new b.Deferred;return h.default.animate(this._$container,(0,d.extend)({type:"slide",to:{left:e*this._elementWidth()},duration:n.option("animationDuration"),complete:function(){n._needMoveContainerForward()&&(0,p.move)(i,{left:0,top:0}),n._needMoveContainerBack()&&(0,p.move)(i,{left:n._maxContainerOffset()*n._elementWidth(),top:0}),o.resolveWith(n)}},t||{})),o},_needMoveContainerForward:function(){return this._$container.position().left*this._offsetDirection()<=-this._maxItemWidth()*this._elementWidth()*this._itemsCount()+1},_needMoveContainerBack:function(){return this._$container.position().left*this._offsetDirection()>=this._actualItemWidth()*this._elementWidth()-1},_maxContainerOffset:function(){return-this._maxItemWidth()*(this._itemsCount()-this._itemsPerPage())*this._offsetDirection()},_maxItemWidth:function(){return this._actualItemWidth()+this._itemFreeSpace()},_reviseDimensions:function(){var e=this,t=e._itemElements().first().find(".dx-item-content");t&&!t.is(":hidden")&&(e.option("height")||e.option("height",(0,i.getOuterHeight)(t)),e.option("width")||e.option("width",(0,i.getOuterWidth)(t)),this._dimensionChanged())},_renderIndicator:function(){if(this._cleanIndicators(),this.option("showIndicator")){for(var e=this._$indicator=(0,o.default)("<div>").addClass("dx-gallery-indicator").appendTo(this._$wrapper),t=this.option("indicatorEnabled"),n=0;n<this._pagesCount();n++){var i=(0,o.default)("<div>").addClass("dx-gallery-indicator-item").appendTo(e);t&&this._attachIndicatorClickHandler(i,n)}this._renderSelectedPageIndicator()}},_attachIndicatorClickHandler:function(e,t){a.default.on(e,(0,_.addNamespace)(f.name,this.NAME),function(e){this._indicatorSelectHandler(e,t)}.bind(this))},_detachIndicatorClickHandler:function(e){a.default.off(e,(0,_.addNamespace)(f.name,this.NAME))},_toggleIndicatorInteraction:function(e){var t,n=(null===(t=this._$indicator)||void 0===t?void 0:t.find(T))||[];n.length&&n.each(function(t,n){e?this._attachIndicatorClickHandler((0,o.default)(n),t):this._detachIndicatorClickHandler((0,o.default)(n))}.bind(this))},_cleanIndicators:function(){this._$indicator&&this._$indicator.remove()},_renderSelectedItem:function(){var e=this.option("selectedIndex");this._itemElements().removeClass(I).eq(e).addClass(I)},_renderItemVisibility:function(){this.option("initialItemWidth")||this.option("wrapAround")?this._releaseInvisibleItems():(this._itemElements().each(function(e,t){this.option("selectedIndex")===e?(0,o.default)(t).removeClass(k):(0,o.default)(t).addClass(k)}.bind(this)),this._getLoopedItems().addClass(k))},_releaseInvisibleItems:function(){this._itemElements().removeClass(k),this._getLoopedItems().removeClass(k)},_renderSelectedPageIndicator:function(){if(this._$indicator){var e=this.option("selectedIndex"),t=this._pagesCount()-1,n=Math.ceil(e/this._itemsPerPage());n=Math.min(t,n),this._$indicator.find(T).removeClass(E).eq(n).addClass(E)}},_renderUserInteraction:function(){var e=this.$element(),t=this.option("swipeEnabled")&&this._itemsCount()>1;this._createComponent(e,y.default,{disabled:this.option("disabled")||!t,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._elementWidth.bind(this)})},_indicatorSelectHandler:function(e,t){if(this.option("indicatorEnabled")){var n=this._fitPaginatedIndex(t*this._itemsPerPage());this._needLongMove=!0,this.option("selectedIndex",n),this._loadNextPageIfNeeded(n)}},_renderNavButtons:function(){var e=this;e.option("showNavButtons")?(e._prevNavButton=(0,o.default)("<div>").appendTo(this._$wrapper),e._createComponent(e._prevNavButton,A,{direction:"prev",onClick:function(){e._prevPage()}}),e._nextNavButton=(0,o.default)("<div>").appendTo(this._$wrapper),e._createComponent(e._nextNavButton,A,{direction:"next",onClick:function(){e._nextPage()}}),this._renderNavButtonsVisibility()):e._cleanNavButtons()},_prevPage:function(){var e=this._itemsPerPage(),t=this.option("selectedIndex")-e;return t===-e&&e===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t))},_nextPage:function(){var e=this._itemsPerPage(),t=this.option("selectedIndex")+e;return t===e&&e===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t)).done(this._loadNextPageIfNeeded)},_loadNextPageIfNeeded:function(e){e=void 0===e?this.option("selectedIndex"):e,this._dataSource&&this._dataSource.paginate()&&this._shouldLoadNextPage(e)&&!this._isDataSourceLoading()&&!this._isLastPage()&&this._loadNextPage().done(function(){this._renderIndicator(),this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility(),this._renderItemSizes(e)}.bind(this))},_shouldLoadNextPage:function(e){return e+2*this._itemsPerPage()>this.option("items").length},_allowDynamicItemsAppend:function(){return!0},_fitPaginatedIndex:function(e){var t=this._itemsPerPage(),n=e<0?t+e:this._itemsCount()-e;return e>this._itemsCount()-1?(e=0,this._goToGhostItem=!0):n<t&&n>0&&(e>0?e-=t-n:e+=t-n),e},_cleanNavButtons:function(){this._prevNavButton&&(this._prevNavButton.remove(),delete this._prevNavButton),this._nextNavButton&&(this._nextNavButton.remove(),delete this._nextNavButton)},_renderNavButtonsVisibility:function(){if(this.option("showNavButtons")&&this._prevNavButton&&this._nextNavButton){var e=this.option("selectedIndex"),t=this.option("loop"),n=this._itemsCount();if(this._prevNavButton.show(),this._nextNavButton.show(),0===n&&(this._prevNavButton.hide(),this._nextNavButton.hide()),!t){var i=e===n-this._itemsPerPage(),o=n<2||0===e;i=this._dataSource&&this._dataSource.paginate()?i&&this._isLastPage():i||n<2,o&&this._prevNavButton.hide(),i&&this._nextNavButton.hide()}}},_setupSlideShow:function(){var e=this,t=e.option("slideshowDelay");clearTimeout(e._slideshowTimer),t&&(e._slideshowTimer=setTimeout((function(){e._userInteraction?e._setupSlideShow():e.nextItem(!0).done(e._setupSlideShow)}),t))},_elementWidth:function(){return this._cacheElementWidth||(this._cacheElementWidth=(0,i.getWidth)(this.$element())),this._cacheElementWidth},_clearCacheWidth:function(){delete this._cacheElementWidth},_swipeStartHandler:function(e){this._releaseInvisibleItems(),this._clearCacheWidth(),this._elementWidth();var t=this._itemsCount();if(t){if(this._stopItemAnimations(),this._startSwipe(),this._userInteraction=!0,!this.option("loop")){var n=this.option("selectedIndex"),i=t-n-this._itemsPerPage(),o=n,a=this.option("rtlEnabled");e.event.maxLeftOffset=a?o:i,e.event.maxRightOffset=a?i:o}}else e.event.cancel=!0},_stopItemAnimations:function(){h.default.stop(this._$container,!0)},_swipeUpdateHandler:function(e){var t=this.option("wrapAround")?1:0,n=this._offsetDirection()*e.event.offset*(this._itemsPerPage()+t)-this.option("selectedIndex");n<0&&this._loadNextPageIfNeeded(Math.ceil(Math.abs(n))),this._renderContainerPosition(n)},_swipeEndHandler:function(e){var t=e.event.targetOffset*this._offsetDirection()*this._itemsPerPage(),n=this.option("selectedIndex"),i=this._fitIndex(n-t),o=this._fitPaginatedIndex(i);Math.abs(t)<this._itemsPerPage()?this._relocateItems(n):this._itemsPerPage()!==this._itemsCount()?this.option("selectedIndex",o):t>0?this._relocateItems(-t):this._relocateItems(0)},_setFocusOnSelect:function(){this._userInteraction=!0;var e=this.itemElements().filter(".dx-gallery-item-selected");this.option("focusedElement",(0,c.getPublicElement)(e)),this._userInteraction=!1},_flipIndex:function(e){var t=this._itemsCount();return(e%=t)>(t+1)/2&&(e-=t),e<-(t-1)/2&&(e+=t),e},_fitIndex:function(e){if(!this.option("loop"))return e;var t=this._itemsCount();return(e>=t||e<0)&&(this._goToGhostItem=!0),e>=t&&(e=t-e),(e%=t)<0&&(e+=t),e},_clean:function(){this.callBase(),this._cleanIndicators(),this._cleanNavButtons()},_dispose:function(){clearTimeout(this._slideshowTimer),this.callBase()},_updateSelection:function(e,t){this._stopItemAnimations(),this._renderNavButtonsVisibility(),this._renderSelectedItem(),this._relocateItems(e[0],t[0]),this._renderSelectedPageIndicator()},_relocateItems:function(e,t,n){void 0===t&&(t=e);var i=this._calculateIndexOffset(e,t);this._renderContainerPosition(i,!0,this.option("animationEnabled")&&!n).done((function(){this._setFocusOnSelect(),this._userInteraction=!1,this._setupSlideShow()}))},_focusInHandler:function(){h.default.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_focusOutHandler:function(){h.default.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_selectFocusedItem:s.noop,_moveFocus:function(){this._stopItemAnimations(),this.callBase.apply(this,arguments);var e=this.itemElements().index((0,o.default)(this.option("focusedElement")));this.goToItem(e,this.option("animationEnabled"))},_visibilityChanged:function(e){e&&this._reviseDimensions()},_calculateIndexOffset:function(e,t){void 0===t&&(t=e);var n=t-e;return this.option("loop")&&!this._needLongMove&&this._goToGhostItem&&(this._isItemOnFirstPage(e)&&this._isItemOnLastPage(t)?n=-this._itemsPerPage():this._isItemOnLastPage(e)&&this._isItemOnFirstPage(t)&&(n=this._itemsPerPage()),this._goToGhostItem=!1),this._needLongMove=!1,n-t},_isItemOnLastPage:function(e){return e>=this._itemsCount()-this._itemsPerPage()},_isItemOnFirstPage:function(e){return e<=this._itemsPerPage()},_optionChanged:function(e){switch(e.name){case"width":case"initialItemWidth":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"animationDuration":this._renderNavButtonsVisibility();break;case"animationEnabled":break;case"loop":this.$element().toggleClass(C,e.value),this.option("loopItemFocus",e.value),(0,u.hasWindow)()&&(this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility());break;case"showIndicator":this._renderIndicator();break;case"showNavButtons":this._renderNavButtons();break;case"slideshowDelay":this._setupSlideShow();break;case"wrapAround":case"stretchImages":(0,u.hasWindow)()&&(this._renderItemSizes(),this._renderItemPositions(),this._renderItemVisibility());break;case"swipeEnabled":this._renderUserInteraction();break;case"indicatorEnabled":this._toggleIndicatorInteraction(e.value);break;default:this.callBase(e)}},goToItem:function(e,t){var n=this.option("selectedIndex"),i=this._itemsCount();return void 0!==t&&(this._animationOverride=t),e=this._fitIndex(e),this._deferredAnimate=new b.Deferred,e>i-1||e<0||n===e?this._deferredAnimate.resolveWith(this).promise():(this.option("selectedIndex",e),this._deferredAnimate.promise())},prevItem:function(e){return this.goToItem(this.option("selectedIndex")-1,e)},nextItem:function(e){return this.goToItem(this.option("selectedIndex")+1,e)}});(0,r.default)("dxGallery",O);var P=O;t.default=P,e.exports=t.default,e.exports.default=t.default},33465:function(e,t,n){var i;t.default=void 0;var o=((i=n(85183))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},70382:function(e,t,n){t.getGanttViewCore=function(){if(!o.default)throw i.default.Error("E1041","devexpress-gantt");return o.default};var i=a(n(96688)),o=a(n(27353));function a(e){return e&&e.__esModule?e:{default:e}}},87110:function(e,t){t.GanttActionsManager=void 0;var n="tasks",i="dependencies",o="resources",a="resourceAssignments",r=function(){function e(e){this._gantt=e,this._mappingHelper=e._mappingHelper,this._customFieldsManager=e._customFieldsManager}var t=e.prototype;return t._createActionByOption=function(e){return this._gantt._createActionByOption(e)},t._getTaskData=function(e){return this._gantt.getTaskData(e)},t._convertCoreToMappedData=function(e,t){return this._mappingHelper.convertCoreToMappedData(e,t)},t._convertMappedToCoreData=function(e,t){return this._mappingHelper.convertMappedToCoreData(e,t)},t._convertMappedToCoreFields=function(e,t){return this._mappingHelper.convertMappedToCoreFields(e,t)},t._convertCoreToMappedFields=function(e,t){return this._mappingHelper.convertCoreToMappedFields(e,t)},t._saveCustomFieldsDataToCache=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this._customFieldsManager.saveCustomFieldsDataToCache(e,t,n,i)},t.createTaskDblClickAction=function(){this._taskDblClickAction=this._createActionByOption("onTaskDblClick")},t.taskDblClickAction=function(e){this._taskDblClickAction||this.createTaskDblClickAction(),this._taskDblClickAction(e)},t.raiseTaskDblClickAction=function(e,t){var n={cancel:!1,data:this._getTaskData(e),event:t,key:e};return this.taskDblClickAction(n),!n.cancel},t.createTaskClickAction=function(){this._taskClickAction=this._createActionByOption("onTaskClick")},t.taskClickAction=function(e){this._taskClickAction||this.createTaskClickAction(),this._taskClickAction(e)},t.raiseTaskClickAction=function(e,t){var n={key:e,event:t,data:this._getTaskData(e)};this.taskClickAction(n)},t.createSelectionChangedAction=function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},t.selectionChangedAction=function(e){this._selectionChangedAction||this.createSelectionChangedAction(),this._selectionChangedAction(e)},t.raiseSelectionChangedAction=function(e){this.selectionChangedAction({selectedRowKey:e})},t.createCustomCommandAction=function(){this._customCommandAction=this._createActionByOption("onCustomCommand")},t.customCommandAction=function(e){this._customCommandAction||this.createCustomCommandAction(),this._customCommandAction(e)},t.raiseCustomCommand=function(e){this.customCommandAction({name:e})},t.createContextMenuPreparingAction=function(){this._contextMenuPreparingAction=this._createActionByOption("onContextMenuPreparing")},t.contextMenuPreparingAction=function(e){this._contextMenuPreparingAction||this.createContextMenuPreparingAction(),this._contextMenuPreparingAction(e)},t.raiseContextMenuPreparing=function(e){this.contextMenuPreparingAction(e)},t._getInsertingAction=function(e){switch(e){case n:return this._getTaskInsertingAction();case i:return this._getDependencyInsertingAction();case o:return this._getResourceInsertingAction();case a:return this._getResourceAssigningAction()}return function(){}},t.raiseInsertingAction=function(e,t){var i=this._getInsertingAction(e);if(i){var o={cancel:!1,values:this._convertCoreToMappedData(e,t.values)};i(o),t.cancel=o.cancel,t.values=this._convertMappedToCoreData(e,o.values),e===n&&this._saveCustomFieldsDataToCache("gantt_new_task_key",o.values)}},t.createTaskInsertingAction=function(){this._taskInsertingAction=this._createActionByOption("onTaskInserting")},t.taskInsertingAction=function(e){this._getTaskInsertingAction()(e)},t._getTaskInsertingAction=function(){return this._taskInsertingAction||this.createTaskInsertingAction(),this._taskInsertingAction},t.createDependencyInsertingAction=function(){this._dependencyInsertingAction=this._createActionByOption("onDependencyInserting")},t.dependencyInsertingAction=function(e){this._getDependencyInsertingAction()(e)},t._getDependencyInsertingAction=function(){return this._dependencyInsertingAction||this.createDependencyInsertingAction(),this._dependencyInsertingAction},t.createResourceInsertingAction=function(){this._resourceInsertingAction=this._createActionByOption("onResourceInserting")},t.resourceInsertingAction=function(e){this._getResourceInsertingAction()(e)},t._getResourceInsertingAction=function(){return this._resourceInsertingAction||this.createResourceInsertingAction(),this._resourceInsertingAction},t.createResourceAssigningAction=function(){this._resourceAssigningAction=this._createActionByOption("onResourceAssigning")},t.resourceAssigningAction=function(e){this._getResourceAssigningAction()(e)},t._getResourceAssigningAction=function(){return this._resourceAssigningAction||this.createResourceAssigningAction(),this._resourceAssigningAction},t._getInsertedAction=function(e){switch(e){case n:return this._getTaskInsertedAction();case i:return this._getDependencyInsertedAction();case o:return this._getResourceInsertedAction();case a:return this._getResourceAssignedAction()}return function(){}},t.raiseInsertedAction=function(e,t,n){var i=this._getInsertedAction(e);i&&i({values:t,key:n})},t.createTaskInsertedAction=function(){this._taskInsertedAction=this._createActionByOption("onTaskInserted")},t.taskInsertedAction=function(e){this._getTaskInsertedAction()(e)},t._getTaskInsertedAction=function(){return this._taskInsertedAction||this.createTaskInsertedAction(),this._taskInsertedAction},t.createDependencyInsertedAction=function(){this._dependencyInsertedAction=this._createActionByOption("onDependencyInserted")},t.dependencyInsertedAction=function(e){this._getDependencyInsertedAction()(e)},t._getDependencyInsertedAction=function(){return this._dependencyInsertedAction||this.createDependencyInsertedAction(),this._dependencyInsertedAction},t.createResourceInsertedAction=function(){this._resourceInsertedAction=this._createActionByOption("onResourceInserted")},t.resourceInsertedAction=function(e){this._getResourceInsertedAction()(e)},t._getResourceInsertedAction=function(){return this._resourceInsertedAction||this.createResourceInsertedAction(),this._resourceInsertedAction},t.createResourceAssignedAction=function(){this._resourceAssignedAction=this._createActionByOption("onResourceAssigned")},t.resourceAssignedAction=function(e){this._getResourceAssignedAction()(e)},t._getResourceAssignedAction=function(){return this._resourceAssignedAction||this.createResourceAssignedAction(),this._resourceAssignedAction},t._getDeletingAction=function(e){switch(e){case n:return this._getTaskDeletingAction();case i:return this._getDependencyDeletingAction();case o:return this._getResourceDeletingAction();case a:return this._getResourceUnassigningAction()}return function(){}},t.raiseDeletingAction=function(e,t){var n=this._getDeletingAction(e);if(n){var i={cancel:!1,key:t.key,values:this._convertCoreToMappedData(e,t.values)};n(i),t.cancel=i.cancel}},t.createTaskDeletingAction=function(){this._taskDeletingAction=this._createActionByOption("onTaskDeleting")},t.taskDeletingAction=function(e){this._getTaskDeletingAction()(e)},t._getTaskDeletingAction=function(){return this._taskDeletingAction||this.createTaskDeletingAction(),this._taskDeletingAction},t.createDependencyDeletingAction=function(){this._dependencyDeletingAction=this._createActionByOption("onDependencyDeleting")},t.dependencyDeletingAction=function(e){this._getDependencyDeletingAction()(e)},t._getDependencyDeletingAction=function(){return this._dependencyDeletingAction||this.createDependencyDeletingAction(),this._dependencyDeletingAction},t.createResourceDeletingAction=function(){this._resourceDeletingAction=this._createActionByOption("onResourceDeleting")},t.resourceDeletingAction=function(e){this._getResourceDeletingAction()(e)},t._getResourceDeletingAction=function(){return this._resourceDeletingAction||this.createResourceDeletingAction(),this._resourceDeletingAction},t.createResourceUnassigningAction=function(){this._resourceUnassigningAction=this._createActionByOption("onResourceUnassigning")},t.resourceUnassigningAction=function(e){this._getResourceUnassigningAction()(e)},t._getResourceUnassigningAction=function(){return this._resourceUnassigningAction||this.createResourceUnassigningAction(),this._resourceUnassigningAction},t._getDeletedAction=function(e){switch(e){case n:return this._getTaskDeletedAction();case i:return this._getDependencyDeletedAction();case o:return this._getResourceDeletedAction();case a:return this._getResourceUnassignedAction()}return function(){}},t.raiseDeletedAction=function(e,t,n){var i=this._getDeletedAction(e);i&&i({key:t,values:n})},t.createTaskDeletedAction=function(){this._taskDeletedAction=this._createActionByOption("onTaskDeleted")},t.taskDeletedAction=function(e){this._getTaskDeletedAction()(e)},t._getTaskDeletedAction=function(){return this._taskDeletedAction||this.createTaskDeletedAction(),this._taskDeletedAction},t.createDependencyDeletedAction=function(){this._dependencyDeletedAction=this._createActionByOption("onDependencyDeleted")},t.dependencyDeletedAction=function(e){this._getDependencyDeletedAction()(e)},t._getDependencyDeletedAction=function(){return this._dependencyDeletedAction||this.createDependencyDeletedAction(),this._dependencyDeletedAction},t.createResourceDeletedAction=function(){this._resourceDeletedAction=this._createActionByOption("onResourceDeleted")},t.resourceDeletedAction=function(e){this._getResourceDeletedAction()(e)},t._getResourceDeletedAction=function(){return this._resourceDeletedAction||this.createResourceDeletedAction(),this._resourceDeletedAction},t.createResourceUnassignedAction=function(){this._resourceUnassignedAction=this._createActionByOption("onResourceUnassigned")},t.resourceUnassignedAction=function(e){this._getResourceUnassignedAction()(e)},t._getResourceUnassignedAction=function(){return this._resourceUnassignedAction||this.createResourceUnassignedAction(),this._resourceUnassignedAction},t._getUpdatingAction=function(e){return e===n?this._getTaskUpdatingAction():function(){}},t.raiseUpdatingAction=function(e,t,i){if(i=i||this._getUpdatingAction(e)){var o=e===n,a={cancel:!1,key:t.key,newValues:this._convertCoreToMappedData(e,t.newValues),values:o?this._getTaskData(t.key):this._convertCoreToMappedData(e,t.values)};if(o&&this._customFieldsManager.cache.hasData(a.key)&&this._customFieldsManager.addCustomFieldsDataFromCache(a.key,a.newValues),i(a),t.cancel=a.cancel,t.newValues=this._convertMappedToCoreData(e,a.newValues),o)if(a.cancel)this._customFieldsManager.resetCustomFieldsDataCache(a.key);else{var r=!Object.keys(t.newValues).length;this._saveCustomFieldsDataToCache(a.key,a.newValues,r)}}},t.createTaskUpdatingAction=function(){this._taskUpdatingAction=this._createActionByOption("onTaskUpdating")},t.taskUpdatingAction=function(e){this._getTaskUpdatingAction()(e)},t._getTaskUpdatingAction=function(){return this._taskUpdatingAction||this.createTaskUpdatingAction(),this._taskUpdatingAction},t._getUpdatedAction=function(e){return e===n?this._getTaskUpdatedAction():function(){}},t.raiseUpdatedAction=function(e,t,n){var i=this._getUpdatedAction(e);i&&i({values:t,key:n})},t.createTaskUpdatedAction=function(){this._taskUpdatedAction=this._createActionByOption("onTaskUpdated")},t.taskUpdatedAction=function(e){this._getTaskUpdatedAction()(e)},t._getTaskUpdatedAction=function(){return this._taskUpdatedAction||this.createTaskUpdatedAction(),this._taskUpdatedAction},t.createTaskEditDialogShowingAction=function(){this._taskEditDialogShowingAction=this._createActionByOption("onTaskEditDialogShowing")},t.taskEditDialogShowingAction=function(e){this._getTaskEditDialogShowingAction()(e)},t._getTaskEditDialogShowingAction=function(){return this._taskEditDialogShowingAction||this.createTaskEditDialogShowingAction(),this._taskEditDialogShowingAction},t.raiseTaskEditDialogShowingAction=function(e){var t=this._getTaskEditDialogShowingAction();if(t){var i={cancel:!1,key:e.key,values:this._convertCoreToMappedData(n,e.values),readOnlyFields:this._convertCoreToMappedFields(n,e.readOnlyFields),hiddenFields:this._convertCoreToMappedFields(n,e.hiddenFields)};t(i),e.cancel=i.cancel,e.values=this._convertMappedToCoreData(n,i.values),e.readOnlyFields=this._convertMappedToCoreFields(n,i.readOnlyFields),e.hiddenFields=this._convertMappedToCoreFields(n,i.hiddenFields)}},t.createResourceManagerDialogShowingAction=function(){this._resourceManagerDialogShowingAction=this._createActionByOption("onResourceManagerDialogShowing")},t.resourceManagerDialogShowingAction=function(e){this._getResourceManagerDialogShowingAction()(e)},t._getResourceManagerDialogShowingAction=function(){return this._resourceManagerDialogShowingAction||this.createResourceManagerDialogShowingAction(),this._resourceManagerDialogShowingAction},t.raiseResourceManagerDialogShowingAction=function(e){var t=this,n=this._getResourceManagerDialogShowingAction();if(n){var i={cancel:!1,values:e.values.resources.items.map((function(e){return t._convertMappedToCoreData(o,e)}))};n(i),e.cancel=i.cancel}},t.createTaskMovingAction=function(){this._taskMovingAction=this._createActionByOption("onTaskMoving")},t.taskMovingAction=function(e){this.getTaskMovingAction()(e)},t.getTaskMovingAction=function(){return this._taskMovingAction||this.createTaskMovingAction(),this._taskMovingAction},e}();t.GanttActionsManager=r},73630:function(e,t,n){t.GanttToolbar=t.GanttContextMenuBar=void 0;var i=l(n(68374)),o=l(n(71042)),a=l(n(10042)),r=l(n(28109)),s=n(13306);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,d(e,t)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(){function e(e,t){this._element=e,this._owner=t,this._items=[],this._createControl()}var t=e.prototype;return t.createItems=function(e){this._cache=null,this._items=this._createItemsCore(e),this._menu.option("items",this._items)},t._createItemsCore=function(e){var t=this;return e.map((function(e){var n;return n="string"==typeof e?t._createItemByText(e):e.name?(0,s.extend)(t._createItemByText(e.name),e):(0,s.extend)(t._getDefaultItemOptions(),e),e.items&&(n.items=t._createItemsCore(e.items)),n}))},t._createItemByText=function(e){switch(e.toLowerCase()){case"separator":return this._createSeparator();case"undo":return this._createDefaultItem(6,r.default.format("dxGantt-undo"),this._getIcon("undo"));case"redo":return this._createDefaultItem(7,r.default.format("dxGantt-redo"),this._getIcon("redo"));case"expandall":return this._createDefaultItem(12,r.default.format("dxGantt-expandAll"),this._getIcon("expand"));case"collapseall":return this._createDefaultItem(11,r.default.format("dxGantt-collapseAll"),this._getIcon("collapse"));case"addtask":return this._createDefaultItem(0,r.default.format("dxGantt-addNewTask"),this._getIcon("add"));case"addsubtask":return this._createDefaultItem(1,r.default.format("dxGantt-contextMenuNewSubtask"),this._getIcon("add-sub-task"));case"deletetask":return this._createDefaultItem(2,r.default.format("dxGantt-deleteSelectedTask"),this._getIcon("delete"));case"deletedependency":return this._createDefaultItem(3,r.default.format("dxGantt-contextMenuDeleteDependency"),this._getIcon("delete-dependency"));case"zoomin":return this._createDefaultItem(8,r.default.format("dxGantt-zoomIn"),this._getIcon("zoom-in"));case"zoomout":return this._createDefaultItem(9,r.default.format("dxGantt-zoomOut"),this._getIcon("zoom-out"));case"fullscreen":return this._createDefaultItem(10,r.default.format("dxGantt-fullScreen"),this._getIcon("full-screen"));case"taskdetails":return this._createDefaultItem(4,r.default.format("dxGantt-dialogTaskDetailsTitle")+"...",this._getIcon("task-details"));case"resourcemanager":return this._createDefaultItem(13,r.default.format("dxGantt-dialogResourceManagerTitle"),this._getIcon("resource-manager"));case"showresources":return this._createDefaultItem(14,r.default.format("dxGantt-showResources"),this._getIcon("toggle-resources"));case"showdependencies":return this._createDefaultItem(15,r.default.format("dxGantt-showDependencies"),this._getIcon("toggle-dependencies"));default:return(0,s.extend)(this._getDefaultItemOptions(),{options:{text:e}})}},t._getDefaultItemOptions=function(){return{}},t._getItemsCache=function(){return this._cache||(this._cache={},this._fillCache(this._items)),this._cache},t._fillCache=function(e){var t=this;e.forEach((function(e){var n=e.commandId;void 0!==n&&(t._cache[n]||(t._cache[n]=[]),t._cache[n].push(e)),e.items&&t._fillCache(e.items)}))},t._getIcon=function(e){return"dx-gantt-i dx-gantt-i-"+e},t.getCommandKeys=function(){var e=this._getItemsCache(),t=[];for(var n in e)t.push(parseInt(n));return t},t.setItemEnabled=function(e,t){this._getItemsCache()[e].forEach((function(e){e.disabled=!t}))},t.setItemVisible=function(e,t){this._getItemsCache()[e].forEach((function(e){e.visible=t}))},t.setItemValue=function(e,t){},t.setEnabled=function(e){this._menu.option("disabled",!e)},t.updateItemsList=function(){},t.isVisible=function(){return!0},t.isContextMenu=function(){return!1},t.completeUpdate=function(){},e}(),h=function(e){function t(){return e.apply(this,arguments)||this}u(t,e);var n=t.prototype;return n._createControl=function(){var e=this;this._menu=this._owner._createComponent(this._element,o.default,{onItemClick:function(t){void 0!==t.itemData.commandId&&e._executeCommand(t.itemData.commandId)}})},n._executeCommand=function(e){switch(e){case 14:this._owner.option("showResources",!this._owner.option("showResources"));break;case 15:this._owner.option("showDependencies",!this._owner.option("showDependencies"));break;default:this._owner._executeCoreCommand(e)}},n._createDefaultItem=function(e,t,n){return{commandId:e,disabled:!0,widget:"dxButton",location:"before",options:{icon:n,stylingMode:"text",hint:t}}},n._createSeparator=function(){return{location:"before",template:function(e,t,n){(0,i.default)(n).addClass("dx-gantt-toolbar-separator")}}},n._getDefaultItemOptions=function(){return{location:"before",widget:"dxButton"}},n.completeUpdate=function(){this._menu.option("items",this._items)},t}(c);t.GanttToolbar=h;var f=function(e){function t(){return e.apply(this,arguments)||this}u(t,e);var n=t.prototype;return n._createControl=function(){var e=this;this._menu=this._owner._createComponent(this._element,a.default,{showEvent:void 0,onItemClick:function(t){void 0!==t.itemData.commandId?e._owner._executeCoreCommand(t.itemData.commandId):void 0!==t.itemData.name&&e._owner._actionsManager.raiseCustomCommand(t.itemData.name)}})},n.createItems=function(t){t&&0!==t.length||(t=this._getDefaultItems()),e.prototype.createItems.call(this,t)},n._getDefaultItems=function(){return[{text:r.default.format("dxGantt-dialogButtonAdd"),commandId:5,icon:this._getIcon("add"),items:[{text:r.default.format("dxGantt-contextMenuNewTask"),commandId:0,icon:this._getIcon("add-task")},{text:r.default.format("dxGantt-contextMenuNewSubtask"),commandId:1,icon:this._getIcon("add-sub-task")}]},{text:r.default.format("dxGantt-dialogTaskDetailsTitle")+"...",commandId:4,icon:this._getIcon("task-details")},{text:r.default.format("dxGantt-contextMenuDeleteTask"),commandId:2,icon:this._getIcon("delete")},{text:r.default.format("dxGantt-contextMenuDeleteDependency"),commandId:3,icon:this._getIcon("delete-dependency")}]},n._createDefaultItem=function(e,t,n){return{commandId:e,text:t,icon:n}},n.show=function(e,t){this._menu.option("items",t||this._items),this._menu.option("position.offset",{x:e.x,y:e.y}),this._menu.option("position.collision","fit"),this._menu.show()},n.isContextMenu=function(){return!0},t}(c);t.GanttContextMenuBar=f},81278:function(e,t,n){t.GanttDataCache=void 0;var i=n(13306),o=function(){function e(){this._cache={},this._timers={}}var t=e.prototype;return t.saveData=function(e,t,n){if(t){this._clearTimer(e);var o=this._getCache(e,!0);(0,i.extendFromObject)(o,t,!0),n&&this._setExpireTimer(e,n)}},t.pullDataFromCache=function(e,t){var n=this._getCache(e);n&&(0,i.extendFromObject)(t,n),this._onKeyExpired(e)},t.hasData=function(e){return!!this._cache[e]},t.resetCache=function(e){this._onKeyExpired(e)},t._getCache=function(e,t){return!this._cache[e]&&t&&(this._cache[e]={}),this._cache[e]},t._setExpireTimer=function(e,t){var n=this;this._timers[e]=setTimeout((function(){t(e,n._getCache(e)),n._onKeyExpired(e)}),200)},t._onKeyExpired=function(e){this._clearCache(e),this._clearTimer(e)},t._clearCache=function(e){delete this._cache[e]},t._clearTimer=function(e){var t=this._timers;t&&t[e]&&(clearTimeout(t[e]),delete t[e])},e}();t.GanttDataCache=o},74320:function(e,t,n){t.GanttCustomFieldsManager=void 0;var i=n(47617),o=n(81278),a=n(30631),r="tasks",s=function(){function e(e){this._gantt=e,this._mappingHelper=e._mappingHelper,this.cache=new o.GanttDataCache}var t=e.prototype;return t._getTaskCustomFields=function(){var e=this._gantt.option("columns"),t=e&&e.map((function(e){return e.dataField})),n=this._mappingHelper.getTaskMappedFieldNames();return t?t.filter((function(e){return n.indexOf(e)<0})):[]},t._getCustomFieldsData=function(e){return this._getTaskCustomFields().reduce((function(t,n){return e&&void 0!==e[n]&&(t[n]=e[n]),t}),{})},t.addCustomFieldsData=function(e,t){if(t){var n=this._gantt._tasksOption&&this._gantt._tasksOption._getItems(),o=(0,i.compileGetter)(this._gantt.option("".concat(r,".keyExpr"))),a=n&&n.filter((function(t){return o(t)===e}))[0],s=this._getTaskCustomFields();if(a)for(var l=0;l<s.length;l++){var u=s[l];Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}}},t.appendCustomFields=function(e){var t=this._gantt._tasksOption&&this._gantt._tasksOption._getItems(),n=this._gantt._getTaskKeyGetter(),i=a.GanttHelper.getInvertedData(t,n);return e.reduce((function(e,t){var o=n(t),a=i[o];if(a){var r={};for(var s in a)r[s]=Object.prototype.hasOwnProperty.call(t,s)?t[s]:a[s];e.push(r)}else e.push(t);return e}),[])},t.addCustomFieldsDataFromCache=function(e,t){this.cache.pullDataFromCache(e,t)},t.saveCustomFieldsDataToCache=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=this._getCustomFieldsData(t);if(Object.keys(a).length>0){var s=function(e,t){var i=n._gantt["_".concat(r,"Option")];i&&t&&i.update(e,t,(function(e,t){var a={};n.addCustomFieldsData(t,a),i._reloadDataSource().done((function(e){n._gantt._ganttTreeList.updateDataSource(null!=e?e:i._dataSource,!1,o)}));var s=n._gantt.option("selectedRowKey");n._gantt._ganttView._selectTask(s),n._gantt._actionsManager.raiseUpdatedAction(r,a,t)}))};this.cache.saveData(e,a,i?s:null)}},t.resetCustomFieldsDataCache=function(e){this.cache.resetCache(e)},e}();t.GanttCustomFieldsManager=s},52609:function(e,t,n){t.default=void 0;var i,o=n(44297),a=(i=n(53305))&&i.__esModule?i:{default:i};function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(e){var t,n;function i(t,n,i){var o;return(o=e.call(this)||this)._optionName=t,o._getLoadPanel=n,o._dataSourceChangedCallback=i,o}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=i.prototype;return o.insert=function(e,t,n){var i=this;this._showLoadPanel(),this._getStore().insert(e).done((function(e){t&&t(e),i._hideLoadPanel()})).fail((function(e){n&&n(e),i._hideLoadPanel()}))},o.update=function(e,t,n,i){var o=this;this._showLoadPanel(),this._getStore().update(e,t).done((function(e,t){n&&n(e,t),o._hideLoadPanel()})).fail((function(e){i&&i(e),o._hideLoadPanel()}))},o.remove=function(e,t,n){var i=this;this._showLoadPanel(),this._getStore().remove(e).done((function(e){t&&t(e),i._hideLoadPanel()})).fail((function(e){n&&n(e),i._hideLoadPanel()}))},o._dataSourceChangedHandler=function(e,t){this._dataSourceChangedCallback(this._optionName,e)},o._dataSourceOptions=function(){return{paginate:!1}},o._dataSourceLoadingChangedHandler=function(e){e&&!this._dataSource.isLoaded()?this._showLoadPanel():this._hideLoadPanel()},o._showLoadPanel=function(){var e;null===(e=this._getLoadPanel())||void 0===e||e.show()},o._hideLoadPanel=function(){var e;null===(e=this._getLoadPanel())||void 0===e||e.hide()},o._getStore=function(){return this._dataSource.store()},o._getItems=function(){return this._getStore()._array||this._dataSource.items()},o._reloadDataSource=function(){return this._dataSource.load()},o.dispose=function(){this._disposeDataSource()},o._optionChanged=function(e){e.name},i}(o.Component);s.include(a.default);var l=s;t.default=l,e.exports=t.default,e.exports.default=t.default},10612:function(e,t,n){t.GanttDialog=void 0;var i=s(n(39114)),o=s(n(17737));n(31362),n(14305);var a=s(n(91500)),r=s(n(28109));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n(56757),n(15728);var d=function(){function e(e,t){this._popupInstance=e._createComponent(t,i.default),this.infoMap={TaskEdit:h,Resources:f,Confirmation:p,ConstraintViolation:g}}var t=e.prototype;return t._apply=function(){if(this._dialogInfo.isValidated()){var e=this._dialogInfo.getResult();this._callback(e),this.hide()}},t.show=function(e,t,n,i,o){this._callback=n,this._afterClosing=i,this.infoMap[e]&&(this._dialogInfo=new this.infoMap[e](t,this._apply.bind(this),this.hide.bind(this),o),this._popupInstance.option({showTitle:!!this._dialogInfo.getTitle(),title:this._dialogInfo.getTitle(),toolbarItems:this._dialogInfo.getToolbarItems(),maxWidth:this._dialogInfo.getMaxWidth(),height:this._dialogInfo.getHeight(),contentTemplate:this._dialogInfo.getContentTemplate()}),this._popupInstance.show())},t.hide=function(){this._popupInstance.hide(),this._afterClosing&&this._afterClosing()},e}();t.GanttDialog=d;var c=function(){function e(e,t,n,i){this._parameters=e,this._applyAction=t,this._hideAction=n,this._editingOptions=i}var t=e.prototype;return t._getFormItems=function(){return{}},t._getFormCssClass=function(){return""},t._getFormData=function(){return this._parameters},t._updateParameters=function(){},t._getOkToolbarItem=function(){return this._getToolbarItem("OK",this._applyAction)},t._getCancelToolbarItem=function(){return this._getToolbarItem("Cancel",this._hideAction)},t._getYesToolbarItem=function(){return this._getToolbarItem("Yes",this._applyAction)},t._getNoToolbarItem=function(){return this._getToolbarItem("No",this._hideAction)},t._getToolbarItem=function(e,t){return{widget:"dxButton",toolbar:"bottom",options:{text:r.default.format(e),onClick:t}}},t.getTitle=function(){return""},t.getToolbarItems=function(){return this._editingOptions.enabled?[this._getOkToolbarItem(),this._getCancelToolbarItem()]:[this._getCancelToolbarItem()]},t.getMaxWidth=function(){return 400},t.getHeight=function(){return"auto"},t.getContentTemplate=function(){var e=this;return function(t){return e._form=new o.default(t,{formData:e._getFormData(),items:e._getFormItems(),elementAttr:{class:e._getFormCssClass()}}),t}},t.getResult=function(){var e=this.getFormData();return this._updateParameters(e),this._parameters},t.getFormData=function(){return this._form&&this._form.option("formData")},t.isValidated=function(){return!0},e}(),h=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.getTitle=function(){return r.default.format("dxGantt-dialogTaskDetailsTitle")},n._getFormItems=function(){var e=this,t=!this._editingOptions.enabled||!this._editingOptions.allowTaskUpdating,n=t||!this._parameters.enableRangeEdit;return[{dataField:"title",editorType:"dxTextBox",label:{text:r.default.format("dxGantt-dialogTitle")},editorOptions:{readOnly:t||this._isReadOnlyField("title")},visible:!this._isHiddenField("title")},{dataField:"start",editorType:"dxDateBox",label:{text:r.default.format("dxGantt-dialogStartTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:n||this._isReadOnlyField("start")},visible:!this._isHiddenField("start"),validationRules:[{type:"required",message:r.default.format("validation-required-formatted",r.default.format("dxGantt-dialogStartTitle"))},{type:"custom",validationCallback:function(t){if(e._parameters.isValidationRequired){var n=e._parameters.getCorrectDateRange(e._parameters.id,t.value,e._parameters.end);if(n.start.getTime()!==t.value.getTime())return t.rule.message=e._getValidationMessage(!0,n.start),!1}return!0}}]},{dataField:"end",editorType:"dxDateBox",label:{text:r.default.format("dxGantt-dialogEndTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:n||this._isReadOnlyField("end")},visible:!this._isHiddenField("end"),validationRules:[{type:"required",message:r.default.format("validation-required-formatted",r.default.format("dxGantt-dialogEndTitle"))},{type:"custom",validationCallback:function(t){if(e._parameters.isValidationRequired){var n=e._parameters.getCorrectDateRange(e._parameters.id,e._parameters.start,t.value);if(n.end.getTime()!==t.value.getTime())return t.rule.message=e._getValidationMessage(!1,n.end),!1}return!0}}]},{dataField:"progress",editorType:"dxNumberBox",label:{text:r.default.format("dxGantt-dialogProgressTitle")},editorOptions:{showSpinButtons:!0,min:0,max:1,format:"#0%",step:.01,readOnly:n||this._isReadOnlyField("progress")},visible:!this._isHiddenField("progress")},{dataField:"assigned.items",editorType:"dxTagBox",label:{text:r.default.format("dxGantt-dialogResourcesTitle")},editorOptions:{readOnly:t||!this._editingOptions.allowTaskResourceUpdating,dataSource:this._parameters.resources.items,displayExpr:"text",buttons:[{name:"editResources",location:"after",options:{disabled:!this._editingOptions.allowResourceAdding&&!this._editingOptions.allowResourceDeleting,text:"...",hint:r.default.format("dxGantt-dialogEditResourceListHint"),onClick:function(){e._parameters.showResourcesDialogCommand.execute((function(){e._parameters.showTaskEditDialogCommand.execute()}))}}}]}}]},n._getValidationMessage=function(e,t){return e?r.default.format("dxGantt-dialogStartDateValidation",this._getFormattedDateText(t)):r.default.format("dxGantt-dialogEndDateValidation",this._getFormattedDateText(t))},n._getFormattedDateText=function(e){var t="";return e&&(t=a.default.format(e,"shortDate")+" "+a.default.format(e,"hh:mm")),t},n._isReadOnlyField=function(e){return this._parameters.readOnlyFields.indexOf(e)>-1},n._isHiddenField=function(e){return this._parameters.hiddenFields.indexOf(e)>-1},n._getFormData=function(){var e={};for(var t in this._parameters)e[t]="progress"===t?this._parameters[t]/100:this._parameters[t];return e},n._updateParameters=function(e){this._parameters.title=e.title,this._parameters.start=e.start,this._parameters.end=e.end,this._parameters.progress=100*e.progress,this._parameters.assigned=e.assigned},n.isValidated=function(){var e,t=null===(e=this._form)||void 0===e?void 0:e.validate();return null==t?void 0:t.isValid},t}(c),f=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.getTitle=function(){return r.default.format("dxGantt-dialogResourceManagerTitle")},n._getFormItems=function(){var e=this;return[{label:{visible:!1},dataField:"resources.items",editorType:"dxList",editorOptions:{allowItemDeleting:this._editingOptions.enabled&&this._editingOptions.allowResourceDeleting,itemDeleteMode:"static",selectionMode:"none",items:this._parameters.resources.items,height:250,noDataText:r.default.format("dxGantt-dialogEditNoResources"),onInitialized:function(t){e.list=t.component},onItemDeleted:function(t){e._parameters.resources.remove(t.itemData)}}},{label:{visible:!1},editorType:"dxTextBox",editorOptions:{readOnly:!this._editingOptions.enabled||!this._editingOptions.allowResourceAdding,onInitialized:function(t){e.textBox=t.component},onInput:function(e){var t=e.component.getButton("addResource"),n=e.component.option("text");t.option("disabled",0===n.length)},buttons:[{name:"addResource",location:"after",options:{text:r.default.format("dxGantt-dialogButtonAdd"),disabled:!0,onClick:function(t){var n=e._parameters.resources.createItem();n.text=e.textBox.option("text"),e._parameters.resources.add(n),e.list.option("items",e._parameters.resources.items),e.list.scrollToItem(n),e.textBox.reset(),t.component.option("disabled",!0)}}}]}}]},t}(c),p=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.getContentTemplate=function(){var e=this;return function(t){return e._getConfirmMessage()}},n._getConfirmMessage=function(){switch(this._parameters.type){case 0:return r.default.format("dxGantt-dialogTaskDeleteConfirmation");case 1:return r.default.format("dxGantt-dialogDependencyDeleteConfirmation");case 2:return r.default.format("dxGantt-dialogResourcesDeleteConfirmation",this._parameters.message);default:return""}},n.getToolbarItems=function(){return[this._getYesToolbarItem(),this._getNoToolbarItem()]},t}(c),g=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n._getFormItems=function(){var e=[];return e.push({text:r.default.format("dxGantt-dialogCancelOperationMessage"),value:0}),e.push({text:r.default.format("dxGantt-dialogDeleteDependencyMessage"),value:1}),this._parameters.validationError.critical||e.push({text:r.default.format("dxGantt-dialogMoveTaskAndKeepDependencyMessage"),value:2}),[{template:this._parameters.validationError.critical?r.default.format("dxGantt-dialogConstraintCriticalViolationMessage"):r.default.format("dxGantt-dialogConstraintViolationMessage")},{cssClass:"dx-cv-dialog-row",dataField:"option",label:{visible:!1},editorType:"dxRadioGroup",editorOptions:{items:e,valueExpr:"value",value:0}}]},n._getFormCssClass=function(){return"dx-cv-dialog"},n._updateParameters=function(e){this._parameters.option=e.option},t}(c)},83553:function(e,t,n){t.GanttExportHelper=void 0;var i=n(58201),o=l(n(13615)),a=n(35922),r=l(n(91500)),s=l(n(18016));function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,i.getWindow)(),d=function(){function e(e){this._gantt=e,this._treeList=e._treeList,this._cache={}}var t=e.prototype;return t.reset=function(){this._cache={}},t.getTreeListTableStyle=function(){var e=this._getTreeListTable(),t=u.getComputedStyle(e);return{color:t.color,backgroundColor:t.backgroundColor,fontSize:t.fontSize,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontStyle:t.fontStyle,textAlign:"left",verticalAlign:"middle"}},t.getTreeListColCount=function(){return this._getHeaderView().getColumnWidths().filter((function(e){return e>0})).length},t.getTreeListHeaderInfo=function(e){var t=this._getHeaderElement(e);if(!t)return null;var n=u.getComputedStyle(t),i={color:n.color,padding:n.padding,paddingLeft:n.paddingLeft,paddingTop:n.paddingTop,paddingRight:n.paddingRight,paddingBottom:n.paddingBottom,verticalAlign:n.verticalAlign,width:this._getColumnWidth(e)};return{content:t.textContent,styles:i}},t.getTreeListCellInfo=function(e,t){var n,i=this._getDataCell(e,t),o=this._getNodeByRowIndex(e),a=i?u.getComputedStyle(i):this._getColumnCellStyle(t),r={color:a.color,padding:a.padding,paddingLeft:a.paddingLeft,paddingTop:a.paddingTop,paddingRight:a.paddingRight,paddingBottom:a.paddingBottom,width:this._getColumnWidth(t)};return 0===t&&(r.extraLeftPadding=this._getEmptySpaceWidth(o.level)),{content:null!==(n=null==i?void 0:i.textContent)&&void 0!==n?n:this._getDisplayText(e,t),styles:r}},t._ensureColumnWidthCache=function(e){var t,n;if(null!==(n=(t=this._cache).columnWidths)&&void 0!==n||(t.columnWidths={}),!this._cache.columnWidths[e]){var i,o=this._getHeaderElement(e);this._cache.columnWidths[e]=null!==(i=null==o?void 0:o.clientWidth)&&void 0!==i?i:0}},t._getColumnWidth=function(e){this._ensureColumnWidthCache(e);var t=this._cache.columnWidths;return t&&t[e]},t._getEmptySpaceWidth=function(e){if(!this._cache.emptyWidth){var t,n,i,o=this._getTreeListElement("dx-treelist-empty-space");null!==(n=(t=this._cache).emptyWidth)&&void 0!==n||(t.emptyWidth=null!==(i=o.offsetWidth)&&void 0!==i?i:0)}return this._cache.emptyWidth*(e+1)},t._getColumnCellStyle=function(e){return this._ensureColumnCellStyleCache(e),this._cache.columnStyles[e]},t._ensureColumnCellStyleCache=function(e){var t,n;if(null!==(n=(t=this._cache).columnStyles)&&void 0!==n||(t.columnStyles={}),!this._cache.columnStyles[e]){var i=this._getDataCell(0,e);this._cache.columnStyles[e]=u.getComputedStyle(i)}},t._getTreeListTable=function(){return this._getTreeListElement("dx-treelist-table")},t._getTreeListElement=function(e){return this._treeList._$element.find("."+e).get(0)},t._getDataCell=function(e,t){var n=this._treeList.getCellElement(e,t);return n&&n.length?n[0]:n},t._getHeaderElement=function(e){return this._getHeaderView().getHeaderElement(e).get(0)},t._getHeaderView=function(){return this._treeList._views.columnHeadersView},t._getNodeByRowIndex=function(e){var t,n=this._treeList,i=null!==(t=n.getKeyByRowIndex(e))&&void 0!==t?t:this._findTaskKeyByRowIndex(e);return n.getNodeByKey(i)},t._findTaskKeyByRowIndex=function(e){var t=this._getGanttTasks();return this._gantt._getTaskKeyGetter()(t[e])},t._getGanttTasks=function(){var e;return null===(e=this._gantt._tasksOption)||void 0===e?void 0:e._getItems()},t._getDisplayText=function(e,t){var n=this._getGanttTasks()[e];return n&&this._getGridDisplayText(t,n)},t._getGridDisplayText=function(e,t){var n=this._treeList.getController("columns").getColumns()[e],i=null==n?void 0:n.dataField,l=null==n?void 0:n.format,u=o.default.getDisplayValue(n,t[i],t,"data");if((0,a.isDefined)(l)){if((0,a.isDate)(u))return r.default.format(u,l);if((0,a.isNumeric)(u))return s.default.format(u,l)}return"string"==typeof u?u:null==u?void 0:u.toString()},e}();t.GanttExportHelper=d},30631:function(e,t,n){t.GanttHelper=void 0;var i,o=n(47617),a=(i=n(28109))&&i.__esModule?i:{default:i},r={prepareMapHandler:function(e){return function(t){return Object.keys(e).reduce((function(n,i){return n["key"===i?"id":i]=e[i](t),n}),{})}},prepareSetterMapHandler:function(e){return function(t){return Object.keys(e).reduce((function(n,i){var o="key"===i?"id":i;return e[i](n,t[o]),n}),{})}},compileGettersByOption:function(e){var t={};for(var n in e){var i=n.match(/(\w*)Expr/);i&&(t[i[1]]=(0,o.compileGetter)(e[i[0]]))}return t},compileSettersByOption:function(e){var t={};for(var n in e){var i=n.match(/(\w*)Expr/);i&&(t[i[1]]=(0,o.compileSetter)(e[i[0]]))}return t},getStoreObject:function(e,t){var n=r.compileSettersByOption(e);return Object.keys(n).reduce((function(e,i){return"key"!==i&&n[i](e,t[i]),e}),{})},getInvertedData:function(e,t){var n={};if(e)for(var i=0;i<e.length;i++){var o=e[i];n[t(o)]=o}return n},getArrayFromOneElement:function(e){return null==e?[]:[e]},getSelectionMode:function(e){return e?"single":"none"},convertTreeToList:function(e,t){null!=e&&e.data&&null!=e&&e.visible&&t.push(e.data);for(var n=0;n<(null===(i=e.children)||void 0===i?void 0:i.length);n++){var i,o=e.children[n];r.convertTreeToList(o,t)}},getAllParentNodesKeys:function(e,t){var n;null!=e&&e.data&&t.push(e.key),null!=e&&null!==(n=e.parent)&&void 0!==n&&n.data&&r.getAllParentNodesKeys(e.parent,t)},getDefaultOptions:function(){return{tasks:{dataSource:null,keyExpr:"id",parentIdExpr:"parentId",startExpr:"start",endExpr:"end",progressExpr:"progress",titleExpr:"title",colorExpr:"color"},dependencies:{dataSource:null,keyExpr:"id",predecessorIdExpr:"predecessorId",successorIdExpr:"successorId",typeExpr:"type"},resources:{dataSource:null,keyExpr:"id",textExpr:"text",colorExpr:"color"},resourceAssignments:{dataSource:null,keyExpr:"id",taskIdExpr:"taskId",resourceIdExpr:"resourceId"},columns:void 0,taskListWidth:300,showResources:!0,showDependencies:!0,taskTitlePosition:"inside",firstDayOfWeek:void 0,selectedRowKey:void 0,onSelectionChanged:null,onTaskClick:null,onTaskDblClick:null,onTaskInserting:null,onTaskInserted:null,onTaskDeleting:null,onTaskDeleted:null,onTaskUpdating:null,onTaskUpdated:null,onTaskMoving:null,onTaskEditDialogShowing:null,onDependencyInserting:null,onDependencyInserted:null,onDependencyDeleting:null,onDependencyDeleted:null,onResourceInserting:null,onResourceInserted:null,onResourceDeleting:null,onResourceDeleted:null,onResourceAssigning:null,onResourceAssigned:null,onResourceUnassigning:null,onResourceUnassigned:null,onCustomCommand:null,onContextMenuPreparing:null,allowSelection:!0,showRowLines:!0,stripLines:void 0,scaleType:"auto",scaleTypeRange:{min:"minutes",max:"years"},editing:{enabled:!1,allowTaskAdding:!0,allowTaskDeleting:!0,allowTaskUpdating:!0,allowDependencyAdding:!0,allowDependencyDeleting:!0,allowResourceAdding:!0,allowResourceDeleting:!0,allowResourceUpdating:!0,allowTaskResourceUpdating:!0},validation:{validateDependencies:!1,autoUpdateParentTasks:!1,enablePredecessorGap:!1},toolbar:null,contextMenu:{enabled:!0,items:void 0},taskTooltipContentTemplate:null,taskProgressTooltipContentTemplate:null,taskTimeTooltipContentTemplate:null,taskContentTemplate:null,rootValue:0,sorting:{ascendingText:a.default.format("dxGantt-sortingAscendingText"),descendingText:a.default.format("dxGantt-sortingDescendingText"),clearText:a.default.format("dxGantt-sortingClearText"),mode:"single",showSortIndexes:!1},filterRow:void 0,headerFilter:void 0}}};t.GanttHelper=r},85183:function(e,t,n){t.default=void 0;var i=n(58664),o=D(n(68374)),a=n(47617),r=n(13306),s=n(58201),l=n(35922),u=n(48604),d=D(n(52609)),c=D(n(97218)),h=D(n(99393)),f=D(n(93288)),p=D(n(14390)),g=n(87110),m=n(74320),_=n(10612),v=n(83553),y=n(30631),x=n(32679),b=n(28990),w=n(23638),C=n(73630),S=n(87367),k=n(21347);function D(e){return e&&e.__esModule?e:{default:e}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var T=(0,s.getWindow)(),E="tasks",A="dependencies",O="resources",P="resourceAssignments",M="gantt_new_task_key",R=function(e){var t,n;function s(){return e.apply(this,arguments)||this}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,I(t,n);var h=s.prototype;return h._init=function(){e.prototype._init.call(this),this._initGantt(),this._isGanttRendered=!1,this._initHelpers()},h._initGantt=function(){this._refreshDataSources()},h._initMarkup=function(){e.prototype._initMarkup.call(this),this.$element().addClass("dx-gantt"),this._$toolbarWrapper=(0,o.default)("<div>").addClass("dx-gantt-toolbar-wrapper").appendTo(this.$element()),this._$toolbar=(0,o.default)("<div>").appendTo(this._$toolbarWrapper),this._$mainWrapper=(0,o.default)("<div>").addClass("dx-gantt-main-wrapper").appendTo(this.$element()),this._$treeListWrapper=(0,o.default)("<div>").addClass("dx-gantt-treelist-wrapper").appendTo(this._$mainWrapper),this._$treeList=(0,o.default)("<div>").appendTo(this._$treeListWrapper),this._$splitter=(0,o.default)("<div>").appendTo(this._$mainWrapper),this._$ganttView=(0,o.default)("<div>").addClass("dx-gantt-view").appendTo(this._$mainWrapper),this._$dialog=(0,o.default)("<div>").appendTo(this.$element()),this._$loadPanel=(0,o.default)("<div>").appendTo(this.$element()),this._$contextMenu=(0,o.default)("<div>").appendTo(this.$element())},h._clean=function(){var t;null===(t=this._ganttView)||void 0===t||t._ganttViewCore.cleanMarkup(),delete this._ganttView,delete this._dialogInstance,delete this._loadPanel,delete this._exportHelper,e.prototype._clean.call(this)},h._refresh=function(){this._isGanttRendered=!1,e.prototype._refresh.call(this)},h._refreshDataSources=function(){this._refreshDataSource(E),this._refreshDataSource(A),this._refreshDataSource(O),this._refreshDataSource(P)},h._renderContent=function(){this._isMainElementVisible=this.$element().is(":visible"),this._isMainElementVisible&&!this._isGanttRendered&&(this._isGanttRendered=!0,this._renderBars(),this._renderTreeList(),this._renderSplitter())},h._renderTreeList=function(){this._ganttTreeList=new S.GanttTreeList(this),this._treeList=this._ganttTreeList.getTreeList(),this._ganttTreeList.onAfterTreeListCreate()},h._renderSplitter=function(){var e=this;this._splitter=this._createComponent(this._$splitter,f.default,{container:this.$element(),leftElement:this._$treeListWrapper,rightElement:this._$ganttView,onApplyPanelSize:function(t){e._sizeHelper.onApplyPanelSize(t)}}),this._splitter.option("initialLeftPanelWidth",this.option("taskListWidth"))},h._renderBars=function(){this._bars=[],this._toolbar=new C.GanttToolbar(this._$toolbar,this),this._updateToolbarContent(),this._bars.push(this._toolbar),this._contextMenuBar=new C.GanttContextMenuBar(this._$contextMenu,this),this._updateContextMenu(),this._bars.push(this._contextMenuBar)},h._initHelpers=function(){this._mappingHelper=new x.GanttMappingHelper(this),this._customFieldsManager=new m.GanttCustomFieldsManager(this),this._actionsManager=new g.GanttActionsManager(this),this._ganttTemplatesManager=new w.GanttTemplatesManager(this),this._sizeHelper=new b.GanttSizeHelper(this)},h._initGanttView=function(){var e=this;this._ganttView||(this._ganttView=this._createComponent(this._$ganttView,k.GanttView,{width:"100%",height:this._ganttTreeList.getOffsetHeight(),rowHeight:this._ganttTreeList.getRowHeight(),headerHeight:this._ganttTreeList.getHeaderHeight(),tasks:this._tasks,dependencies:this._dependencies,resources:this._resources,resourceAssignments:this._resourceAssignments,allowSelection:this.option("allowSelection"),selectedRowKey:this.option("selectedRowKey"),showResources:this.option("showResources"),showDependencies:this.option("showDependencies"),startDateRange:this.option("startDateRange"),endDateRange:this.option("endDateRange"),taskTitlePosition:this.option("taskTitlePosition"),firstDayOfWeek:this.option("firstDayOfWeek"),showRowLines:this.option("showRowLines"),scaleType:this.option("scaleType"),scaleTypeRange:this.option("scaleTypeRange"),editing:this.option("editing"),validation:this.option("validation"),stripLines:this.option("stripLines"),bars:this._bars,mainElement:this.$element(),onSelectionChanged:function(t){e._ganttTreeList.selectRows(y.GanttHelper.getArrayFromOneElement(t.id))},onScroll:function(t){e._ganttTreeList.scrollBy(t.scrollTop)},onDialogShowing:this._showDialog.bind(this),onPopupMenuShowing:this._showPopupMenu.bind(this),onExpandAll:this._expandAll.bind(this),onCollapseAll:this._collapseAll.bind(this),modelChangesListener:u.ModelChangesListener.create(this),exportHelper:this._getExportHelper(),taskTooltipContentTemplate:this._ganttTemplatesManager.getTaskTooltipContentTemplateFunc(this.option("taskTooltipContentTemplate")),taskProgressTooltipContentTemplate:this._ganttTemplatesManager.getTaskProgressTooltipContentTemplateFunc(this.option("taskProgressTooltipContentTemplate")),taskTimeTooltipContentTemplate:this._ganttTemplatesManager.getTaskTimeTooltipContentTemplateFunc(this.option("taskTimeTooltipContentTemplate")),taskContentTemplate:this._ganttTemplatesManager.getTaskContentTemplateFunc(this.option("taskContentTemplate")),onTaskClick:function(t){e._ganttTreeList.onRowClick(t)},onTaskDblClick:function(t){e._ganttTreeList.onRowDblClick(t)},onAdjustControl:function(){e._sizeHelper.onAdjustControl()}}),this._fireContentReadyAction())},h._refreshDataSource=function(e){var t=this,n=this["_".concat(e,"Option")];n&&(n.dispose(),delete this["_".concat(e,"Option")],delete this["_".concat(e)]),(n=new d.default(e,this._getLoadPanel.bind(this),(function(e,n){t._dataSourceChanged(e,n)}))).option("dataSource",this._getSpecificDataSourceOption(e)),n._refreshDataSource(),this["_".concat(e,"Option")]=n},h._getSpecificDataSourceOption=function(e){var t=this.option("".concat(e,".dataSource"));return!t||Array.isArray(t)?{store:{type:"array",data:null!=t?t:[],key:this.option("".concat(e,".keyExpr"))}}:t},h._dataSourceChanged=function(e,t){var n=y.GanttHelper.compileGettersByOption(this.option(e)),i=this._validateSourceData(e,t),o=i.map(y.GanttHelper.prepareMapHandler(n));if(this["_".concat(e)]=o,this._setGanttViewOption(e,o),e===E){var a,r;this._tasksRaw=i;var s=!(null!==(a=this._ganttTreeList)&&void 0!==a&&a.getDataSource()||this._ganttView);null===(r=this._ganttTreeList)||void 0===r||r.updateDataSource(i,s)}},h._validateSourceData=function(e,t){return t&&e===E?this._validateTaskData(t):t},h._validateTaskData=function(e){for(var t,n=(0,a.compileGetter)(this.option("".concat(E,".keyExpr"))),i=(0,a.compileGetter)(this.option("".concat(E,".parentIdExpr"))),o=null!==(t=this.option("rootValue"))&&void 0!==t?t:"dx_dxt_gantt_default_root_value",r={},s=0;s<e.length;s++){var l=e[s];if(l){var u,d=n(l),c=d===o,h=null!==(u=r[d])&&void 0!==u?u:r[d]={key:d,children:[]};if(!c){var f,p,g=null!==(f=i(l))&&void 0!==f?f:o,m=null!==(p=r[g])&&void 0!==p?p:r[g]={key:g,children:[]};m.children.push(h),h.parent=m}}}var _=[o];return this._appendChildKeys(r[o],_),e.filter((function(e){return _.indexOf(n(e))>-1}))},h._appendChildKeys=function(e,t){for(var n=null==e?void 0:e.children,i=0;i<(null==n?void 0:n.length);i++){var o=n[i];t.push(o.key),this._appendChildKeys(o,t)}},h._onRecordInserted=function(e,t,n){var i=this,o=this["_".concat(e,"Option")];if(o){var r=y.GanttHelper.getStoreObject(this.option(e),t),s=e===E;s&&this._customFieldsManager.addCustomFieldsDataFromCache(M,r),o.insert(r,(function(l){var u=(0,a.compileGetter)(i.option("".concat(e,".keyExpr")))(l);n(u),o._reloadDataSource().done((function(e){s&&i._ganttTreeList.onTaskInserted(u,t.parentId)})),i._actionsManager.raiseInsertedAction(e,r,u)}))}},h._onRecordUpdated=function(e,t,n,i){var o=this,r=this["_".concat(e,"Option")],s=e===E;if(r){var l=(0,a.compileSetter)(this.option("".concat(e,".").concat(n,"Expr"))),u={};l(u,i),s&&this._customFieldsManager.cache.hasData(t)&&this._customFieldsManager.addCustomFieldsDataFromCache(t,u),r.update(t,u,(function(){r._reloadDataSource(),o._actionsManager.raiseUpdatedAction(e,u,t)}))}},h._onRecordRemoved=function(e,t,n){var i=this,o=this["_".concat(e,"Option")];o&&o.remove(t,(function(){o._reloadDataSource(),i._actionsManager.raiseDeletedAction(e,t,i._mappingHelper.convertCoreToMappedData(e,n))}))},h._onParentTaskUpdated=function(e){var t=this.getTaskDataByCoreData(e);this._actionsManager.raiseUpdatedAction(E,t,e.id)},h._onParentTasksRecalculated=function(e){if(!this.isSieving){var t,n=y.GanttHelper.compileSettersByOption(this.option(E)),i=this._customFieldsManager.appendCustomFields(e.map(y.GanttHelper.prepareSetterMapHandler(n)));null===(t=this._ganttTreeList)||void 0===t||t.setOption("dataSource",i)}this.isSieving=!1},h._sortAndFilter=function(){var e=this._treeList.getVisibleColumns(),t=e.filter((function(e){return 0===e.sortIndex}))[0],n=e.filter((function(e){var t;return(0,l.isDefined)(e.filterValue)||(null===(t=e.filterValues)||void 0===t?void 0:t.length)}))[0],i=t||n,o=this.sieveColumn&&!i;if(i||o){var a={sievedItems:this._ganttTreeList.getSievedItems(),sieveColumn:i};this.isSieving=!o,this._setGanttViewOption("sieve",o?void 0:a)}this.sieveColumn=i},h._getToolbarItems=function(){return this.option("toolbar.items")||[]},h._updateToolbarContent=function(){var e=this._getToolbarItems();e.length?this._$toolbarWrapper.show():this._$toolbarWrapper.hide(),this._toolbar&&this._toolbar.createItems(e),this._updateBarItemsState()},h._updateContextMenu=function(){var e=this.option("contextMenu");e.enabled&&this._contextMenuBar&&(this._contextMenuBar.createItems(e.items),this._updateBarItemsState())},h._updateBarItemsState=function(){this._ganttView&&this._ganttView.updateBarItemsState()},h._showDialog=function(e){this._dialogInstance||(this._dialogInstance=new _.GanttDialog(this,this._$dialog)),this._dialogInstance.show(e.name,e.parameters,e.callback,e.afterClosing,this.option("editing"))},h._showPopupMenu=function(e){if(this.option("contextMenu.enabled")){this._ganttView.getBarManager().updateContextMenu();var t={cancel:!1,event:e.event,targetType:e.type,targetKey:e.key,items:(0,r.extend)(!0,[],this._contextMenuBar._items),data:"task"===e.type?this.getTaskData(e.key):this.getDependencyData(e.key)};this._actionsManager.raiseContextMenuPreparing(t),t.cancel||this._contextMenuBar.show(e.position,t.items)}},h._getLoadPanel=function(){return this._loadPanel||(this._loadPanel=this._createComponent(this._$loadPanel,c.default,{position:{of:this.$element()}})),this._loadPanel},h._getTaskKeyGetter=function(){return(0,a.compileGetter)(this.option("".concat(E,".keyExpr")))},h._setGanttViewOption=function(e,t){this._ganttView&&this._ganttView.option(e,t)},h._getGanttViewOption=function(e,t){var n;return null===(n=this._ganttView)||void 0===n?void 0:n.option(e)},h._getExportHelper=function(){var e;return null!==(e=this._exportHelper)&&void 0!==e||(this._exportHelper=new v.GanttExportHelper(this)),this._exportHelper},h._executeCoreCommand=function(e){this._ganttView.executeCoreCommand(e)},h._expandAll=function(){this._changeExpandAll(!0)},h._collapseAll=function(){this._changeExpandAll(!1)},h._onTreeListRowExpandChanged=function(e,t){this._lockRowExpandEvent||(this._ganttView.changeTaskExpanded(e.key,t),this._sizeHelper.adjustHeight())},h._changeExpandAll=function(e,t,n){var i,o,a=this,r=[],s=[];if(this._treeList.forEachNode((function(e){var t;null!==(t=e.children)&&void 0!==t&&t.length&&r.push(e)})),n){var l=this._treeList.getNodeByKey(n);y.GanttHelper.getAllParentNodesKeys(l,s)}this._lockRowExpandEvent=r.length>0;var u=r.reduce((function(i,l,u){n?e=s.includes(l.key):t&&(e=l.level<t),i[l.key]=e;var d=e?a._treeList.expandRow:a._treeList.collapseRow;return u===r.length-1?o=d(l.key):d(l.key),i}),{});null===(i=o)||void 0===i||i.then((function(){a._ganttView._ganttViewCore.applyTasksExpandedState(u),a._sizeHelper.adjustHeight(),delete a._lockRowExpandEvent}))},h.getTaskResources=function(e){var t=this;return(0,l.isDefined)(e)?this._ganttView._ganttViewCore.getTaskResources(e).map((function(e){return t._mappingHelper.convertCoreToMappedData(O,e)})):null},h.getVisibleTaskKeys=function(){return this._ganttView._ganttViewCore.getVisibleTaskKeys()},h.getVisibleDependencyKeys=function(){return this._ganttView._ganttViewCore.getVisibleDependencyKeys()},h.getVisibleResourceKeys=function(){return this._ganttView._ganttViewCore.getVisibleResourceKeys()},h.getVisibleResourceAssignmentKeys=function(){return this._ganttView._ganttViewCore.getVisibleResourceAssignmentKeys()},h.getTaskData=function(e){if(!(0,l.isDefined)(e))return null;var t=this._ganttView._ganttViewCore.getTaskData(e);return this.getTaskDataByCoreData(t)},h.getTaskDataByCoreData=function(e){var t=e?this._mappingHelper.convertCoreToMappedData(E,e):null;return this._customFieldsManager.addCustomFieldsData(e.id,t),t},h.insertTask=function(e){this._customFieldsManager.saveCustomFieldsDataToCache(M,e),this._ganttView._ganttViewCore.insertTask(this._mappingHelper.convertMappedToCoreData(E,e))},h.deleteTask=function(e){this._ganttView._ganttViewCore.deleteTask(e)},h.updateTask=function(e,t){var n=this._mappingHelper.convertMappedToCoreData(E,t),i=!Object.keys(n).length;if(this._customFieldsManager.saveCustomFieldsDataToCache(e,t,!0,i),i){var o=this._customFieldsManager._getCustomFieldsData(t);Object.keys(o).length>0&&this._actionsManager.raiseUpdatingAction(E,{cancel:!1,key:e,newValues:{}})}else this._ganttView._ganttViewCore.updateTask(e,n)},h.getDependencyData=function(e){if(!(0,l.isDefined)(e))return null;var t=this._ganttView._ganttViewCore.getDependencyData(e);return t?this._mappingHelper.convertCoreToMappedData(A,t):null},h.insertDependency=function(e){this._ganttView._ganttViewCore.insertDependency(this._mappingHelper.convertMappedToCoreData(A,e))},h.deleteDependency=function(e){this._ganttView._ganttViewCore.deleteDependency(e)},h.getResourceData=function(e){var t=this._ganttView._ganttViewCore.getResourceData(e);return t?this._mappingHelper.convertCoreToMappedData(O,t):null},h.deleteResource=function(e){this._ganttView._ganttViewCore.deleteResource(e)},h.insertResource=function(e,t){this._ganttView._ganttViewCore.insertResource(this._mappingHelper.convertMappedToCoreData(O,e),t)},h.getResourceAssignmentData=function(e){var t=this._ganttView._ganttViewCore.getResourceAssignmentData(e);return t?this._mappingHelper.convertCoreToMappedData(P,t):null},h.assignResourceToTask=function(e,t){this._ganttView._ganttViewCore.assignResourceToTask(e,t)},h.unassignResourceFromTask=function(e,t){this._ganttView._ganttViewCore.unassignResourceFromTask(e,t)},h.unassignAllResourcesFromTask=function(e){this._ganttView._ganttViewCore.unassignAllResourcesFromTask(e)},h.updateDimensions=function(){this._sizeHelper.onAdjustControl()},h.scrollToDate=function(e){this._ganttView._ganttViewCore.scrollToDate(e)},h.showResourceManagerDialog=function(){this._ganttView._ganttViewCore.showResourcesDialog()},h.showTaskDetailsDialog=function(e){this._ganttView._ganttViewCore.showTaskDetailsDialog(e)},h.exportToPdf=function(e){return this._exportToPdf(e)},h._exportToPdf=function(e){var t,n,i,o,a,s=this;this._exportHelper.reset();var l=(0,r.extend)({},e);return l.createDocumentMethod&&(l.docCreateMethod=l.createDocumentMethod),null!==(t=l.pdfDocument)&&void 0!==t||(l.pdfDocument=l.jsPDFDocument),null!==(n=l.docCreateMethod)&&void 0!==n||(l.docCreateMethod=null!==(i=null===(o=T.jspdf)||void 0===o?void 0:o.jsPDF)&&void 0!==i?i:T.jsPDF),null!==(a=l.format)&&void 0!==a||(l.format="a4"),new Promise((function(e){var t;e(null===(t=s._ganttView)||void 0===t?void 0:t._ganttViewCore.exportToPdf(l))}))},h.refresh=function(){var e=this;return new Promise((function(t,n){try{e._refreshDataSources(),e._refresh(),t()}catch(e){n(e.message)}}))},h.expandAll=function(){this._expandAll()},h.collapseAll=function(){this._collapseAll()},h.expandAllToLevel=function(e){this._changeExpandAll(!1,e)},h.expandToTask=function(e){var t,n=this._treeList.getNodeByKey(e);this._changeExpandAll(!1,0,null==n||null===(t=n.parent)||void 0===t?void 0:t.key)},h.collapseTask=function(e){this._treeList.collapseRow(e)},h.expandTask=function(e){this._treeList.expandRow(e)},h.showResources=function(e){this.option("showResources",e)},h.showDependencies=function(e){this.option("showDependencies",e)},h.zoomIn=function(){this._ganttView._ganttViewCore.zoomIn()},h.zoomOut=function(){this._ganttView._ganttViewCore.zoomOut()},h._getDefaultOptions=function(){return(0,r.extend)(e.prototype._getDefaultOptions.call(this),y.GanttHelper.getDefaultOptions())},h._optionChanged=function(t){var n,o,a,r,s,l,u,d,c,h,f,p,g,m,_,v,x,b,w,C,S,k,D,I,T,M,R,B,V,F,L,H,N,z,W,G,j,q,$,K,U;switch(t.name){case"tasks":this._refreshDataSource(E);break;case"dependencies":this._refreshDataSource(A);break;case"resources":this._refreshDataSource(O);break;case"resourceAssignments":this._refreshDataSource(P);break;case"columns":null===(n=this._ganttTreeList)||void 0===n||n.setOption("columns",this._ganttTreeList.getColumns());break;case"taskListWidth":null===(o=this._sizeHelper)||void 0===o||o.setInnerElementsWidth();break;case"showResources":this._setGanttViewOption("showResources",t.value);break;case"showDependencies":this._setGanttViewOption("showDependencies",t.value);break;case"taskTitlePosition":this._setGanttViewOption("taskTitlePosition",t.value);break;case"firstDayOfWeek":this._setGanttViewOption("firstDayOfWeek",t.value);break;case"startDateRange":this._setGanttViewOption("startDateRange",t.value);break;case"endDateRange":this._setGanttViewOption("endDateRange",t.value);break;case"selectedRowKey":null===(a=this._ganttTreeList)||void 0===a||a.selectRows(y.GanttHelper.getArrayFromOneElement(t.value));break;case"onSelectionChanged":null===(r=this._actionsManager)||void 0===r||r.createSelectionChangedAction();break;case"onTaskClick":null===(s=this._actionsManager)||void 0===s||s.createTaskClickAction();break;case"onTaskDblClick":null===(l=this._actionsManager)||void 0===l||l.createTaskDblClickAction();break;case"onTaskInserting":null===(u=this._actionsManager)||void 0===u||u.createTaskInsertingAction();break;case"onTaskInserted":null===(d=this._actionsManager)||void 0===d||d.createTaskInsertedAction();break;case"onTaskDeleting":null===(c=this._actionsManager)||void 0===c||c.createTaskDeletingAction();break;case"onTaskDeleted":null===(h=this._actionsManager)||void 0===h||h.createTaskDeletedAction();break;case"onTaskUpdating":null===(f=this._actionsManager)||void 0===f||f.createTaskUpdatingAction();break;case"onTaskUpdated":null===(p=this._actionsManager)||void 0===p||p.createTaskUpdatedAction();break;case"onTaskMoving":null===(g=this._actionsManager)||void 0===g||g.createTaskMovingAction();break;case"onTaskEditDialogShowing":null===(m=this._actionsManager)||void 0===m||m.createTaskEditDialogShowingAction();break;case"onResourceManagerDialogShowing":null===(_=this._actionsManager)||void 0===_||_.createResourceManagerDialogShowingAction();break;case"onDependencyInserting":null===(v=this._actionsManager)||void 0===v||v.createDependencyInsertingAction();break;case"onDependencyInserted":null===(x=this._actionsManager)||void 0===x||x.createDependencyInsertedAction();break;case"onDependencyDeleting":null===(b=this._actionsManager)||void 0===b||b.createDependencyDeletingAction();break;case"onDependencyDeleted":null===(w=this._actionsManager)||void 0===w||w.createDependencyDeletedAction();break;case"onResourceInserting":null===(C=this._actionsManager)||void 0===C||C.createResourceInsertingAction();break;case"onResourceInserted":null===(S=this._actionsManager)||void 0===S||S.createResourceInsertedAction();break;case"onResourceDeleting":null===(k=this._actionsManager)||void 0===k||k.createResourceDeletingAction();break;case"onResourceDeleted":null===(D=this._actionsManager)||void 0===D||D.createResourceDeletedAction();break;case"onResourceAssigning":null===(I=this._actionsManager)||void 0===I||I.createResourceAssigningAction();break;case"onResourceAssigned":null===(T=this._actionsManager)||void 0===T||T.createResourceAssignedAction();break;case"onResourceUnassigning":null===(M=this._actionsManager)||void 0===M||M.createResourceUnassigningAction();break;case"onResourceUnassigned":null===(R=this._actionsManager)||void 0===R||R.createResourceUnassignedAction();break;case"onCustomCommand":null===(B=this._actionsManager)||void 0===B||B.createCustomCommandAction();break;case"onContextMenuPreparing":null===(V=this._actionsManager)||void 0===V||V.createContextMenuPreparingAction();break;case"allowSelection":null===(F=this._ganttTreeList)||void 0===F||F.setOption("selection.mode",y.GanttHelper.getSelectionMode(t.value)),this._setGanttViewOption("allowSelection",t.value);break;case"showRowLines":null===(L=this._ganttTreeList)||void 0===L||L.setOption("showRowLines",t.value),this._setGanttViewOption("showRowLines",t.value);break;case"stripLines":this._setGanttViewOption("stripLines",t.value);break;case"scaleType":this._setGanttViewOption("scaleType",t.value);break;case"scaleTypeRange":this._setGanttViewOption("scaleTypeRange",this.option(t.name));break;case"editing":this._setGanttViewOption("editing",this.option(t.name));break;case"validation":this._setGanttViewOption("validation",this.option(t.name));break;case"toolbar":this._updateToolbarContent();break;case"contextMenu":this._updateContextMenu();break;case"taskTooltipContentTemplate":this._setGanttViewOption("taskTooltipContentTemplate",null===(H=this._ganttTemplatesManager)||void 0===H?void 0:H.getTaskTooltipContentTemplateFunc(t.value));break;case"taskProgressTooltipContentTemplate":this._setGanttViewOption("taskProgressTooltipContentTemplate",null===(N=this._ganttTemplatesManager)||void 0===N?void 0:N.getTaskProgressTooltipContentTemplateFunc(t.value));break;case"taskTimeTooltipContentTemplate":this._setGanttViewOption("taskTimeTooltipContentTemplate",null===(z=this._ganttTemplatesManager)||void 0===z?void 0:z.getTaskTimeTooltipContentTemplateFunc(t.value));break;case"taskContentTemplate":this._setGanttViewOption("taskContentTemplate",null===(W=this._ganttTemplatesManager)||void 0===W?void 0:W.getTaskContentTemplateFunc(t.value));break;case"rootValue":null===(G=this._ganttTreeList)||void 0===G||G.setOption("rootValue",t.value);break;case"width":e.prototype._optionChanged.call(this,t),null===(j=this._sizeHelper)||void 0===j||j.updateGanttWidth();break;case"height":e.prototype._optionChanged.call(this,t),null===(q=this._sizeHelper)||void 0===q||q.setGanttHeight((0,i.getHeight)(this._$element));break;case"sorting":null===($=this._ganttTreeList)||void 0===$||$.setOption("sorting",this.option(t.name));break;case"filterRow":null===(K=this._ganttTreeList)||void 0===K||K.setOption("filterRow",this.option(t.name));break;case"headerFilter":null===(U=this._ganttTreeList)||void 0===U||U.setOption("headerFilter",this.option(t.name));break;default:e.prototype._optionChanged.call(this,t)}},s}(p.default);(0,h.default)("dxGantt",R);var B=R;t.default=B,e.exports=t.default,e.exports.default=t.default},32679:function(e,t,n){t.GanttMappingHelper=void 0;var i=n(47617),o=/(\w*)Expr/,a=function(){function e(e){this._gantt=e}var t=e.prototype;return t._getMappedFieldName=function(e,t){var n=t;return"id"===t&&(n="key"),this._gantt.option("".concat(e,".").concat(n,"Expr"))},t.getTaskMappedFieldNames=function(){var e=[],t=this._gantt.option("tasks");for(var n in t){var i=n.match(o),a=i&&t[i[0]];a&&e.push(a)}return e},t.convertCoreToMappedData=function(e,t){var n=this;return Object.keys(t).reduce((function(o,a){var r=n._getMappedFieldName(e,a);return r&&(0,i.compileSetter)(r)(o,t[a]),o}),{})},t.convertMappedToCoreData=function(e,t){var n={};if(t){var a=this._gantt.option(e);for(var r in a){var s=r.match(o),l=s&&a[s[0]];if(l&&void 0!==t[l]){var u=(0,i.compileGetter)(l);n[s[1]]=u(t)}}}return n},t.convertCoreToMappedFields=function(e,t){var n=this;return t.reduce((function(t,i){var o=n._getMappedFieldName(e,i);return o&&t.push(o),t}),[])},t.convertMappedToCoreFields=function(e,t){var n=[],i=this._gantt.option(e);for(var a in i){var r=a.match(o),s=r&&i[r[0]];if(s&&t.indexOf(s)>-1){var l=r[1];n.push(l)}}return n},e}();t.GanttMappingHelper=a},48604:function(e,t){t.ModelChangesListener=void 0;var n="tasks",i="dependencies",o="resources",a="resourceAssignments",r={create:function(e){return{NotifyTaskCreated:function(t,i,o){e._onRecordInserted(n,t,i)},NotifyTaskRemoved:function(t,i,o){e._onRecordRemoved(n,t,o)},NotifyTaskTitleChanged:function(t,i,o){e._onRecordUpdated(n,t,"title",i)},NotifyTaskDescriptionChanged:function(t,i,o){e._onRecordUpdated(n,t,"description",i)},NotifyTaskStartChanged:function(t,i,o){e._onRecordUpdated(n,t,"start",i)},NotifyTaskEndChanged:function(t,i,o){e._onRecordUpdated(n,t,"end",i)},NotifyTaskProgressChanged:function(t,i,o){e._onRecordUpdated(n,t,"progress",i)},NotifyTaskColorChanged:function(t,i,o){e._onRecordUpdated(n,t,"color",i)},NotifyParentTaskUpdated:function(t,n){e._onParentTaskUpdated(t)},NotifyDependencyInserted:function(t,n,o){e._onRecordInserted(i,t,n)},NotifyDependencyRemoved:function(t,n,o){e._onRecordRemoved(i,t,o)},NotifyResourceCreated:function(t,n,i){e._onRecordInserted(o,t,n)},NotifyResourceRemoved:function(t,n,i){e._onRecordRemoved(o,t,i)},NotifyResourceAssigned:function(t,n,i){e._onRecordInserted(a,t,n)},NotifyResourceUnassigned:function(t,n,i){e._onRecordRemoved(a,t,i)},NotifyParentDataRecalculated:function(t){e._onParentTasksRecalculated(t)},NotifyTaskCreating:function(t){e._actionsManager.raiseInsertingAction(n,t)},NotifyTaskRemoving:function(t){e._actionsManager.raiseDeletingAction(n,t)},NotifyTaskUpdating:function(t){e._actionsManager.raiseUpdatingAction(n,t)},NotifyTaskMoving:function(t){e._actionsManager.raiseUpdatingAction(n,t,e._actionsManager.getTaskMovingAction())},NotifyTaskEditDialogShowing:function(t){e._actionsManager.raiseTaskEditDialogShowingAction(t)},NotifyResourceManagerDialogShowing:function(t){e._actionsManager.raiseResourceManagerDialogShowingAction(t)},NotifyDependencyInserting:function(t){e._actionsManager.raiseInsertingAction(i,t)},NotifyDependencyRemoving:function(t){e._actionsManager.raiseDeletingAction(i,t)},NotifyResourceCreating:function(t){e._actionsManager.raiseInsertingAction(o,t)},NotifyResourceRemoving:function(t){e._actionsManager.raiseDeletingAction(o,t)},NotifyResourceAssigning:function(t){e._actionsManager.raiseInsertingAction(a,t)},NotifyResourceUnassigning:function(t){e._actionsManager.raiseDeletingAction(a,t)}}}};t.ModelChangesListener=r},28990:function(e,t,n){t.GanttSizeHelper=void 0;var i=n(58664),o=n(58201),a=function(){function e(e){this._gantt=e}var t=e.prototype;return t._setTreeListDimension=function(e,t){var n,o="width"===e?i.setWidth:i.setHeight,a="width"===e?i.getWidth:i.getHeight;o(this._gantt._$treeListWrapper,t),null===(n=this._gantt._ganttTreeList)||void 0===n||n.setOption(e,a(this._gantt._$treeListWrapper))},t._setGanttViewDimension=function(e,t){var n="width"===e?i.setWidth:i.setHeight,o="width"===e?i.getWidth:i.getHeight;n(this._gantt._$ganttView,t),this._gantt._setGanttViewOption(e,o(this._gantt._$ganttView))},t._getPanelsWidthByOption=function(){return{leftPanelWidth:this._gantt.option("taskListWidth"),rightPanelWidth:(0,i.getWidth)(this._gantt._$element)-this._gantt.option("taskListWidth")}},t.onAdjustControl=function(){var e=(0,i.getHeight)(this._gantt._$element);this.updateGanttWidth(),this.setGanttHeight(e)},t.onApplyPanelSize=function(e){this.setInnerElementsWidth(e),this.updateGanttRowHeights()},t.updateGanttRowHeights=function(){var e,t=this._gantt._ganttTreeList.getRowHeight();this._gantt._getGanttViewOption("rowHeight")!==t&&(this._gantt._setGanttViewOption("rowHeight",t),null===(e=this._gantt._ganttView)||void 0===e||e._ganttViewCore.updateRowHeights(t))},t.adjustHeight=function(){this._gantt._hasHeight||(this._gantt._setGanttViewOption("height",0),this._gantt._setGanttViewOption("height",this._gantt._ganttTreeList.getOffsetHeight()))},t.setInnerElementsWidth=function(e){(0,o.hasWindow)()&&(e||(e=this._getPanelsWidthByOption()),this._setTreeListDimension("width",e.leftPanelWidth),this._setGanttViewDimension("width",e.rightPanelWidth))},t.updateGanttWidth=function(){this._gantt._splitter._dimensionChanged()},t.setGanttHeight=function(e){var t,n=e-this._gantt._$toolbarWrapper.get(0).offsetHeight;this._setTreeListDimension("height",n),this._setGanttViewDimension("height",n),null===(t=this._gantt._ganttView)||void 0===t||t._ganttViewCore.resetAndUpdate()},e}();t.GanttSizeHelper=a},77133:function(e,t,n){t.TaskAreaContainer=void 0;var i,o=(i=n(4741))&&i.__esModule?i:{default:i};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=function(){function e(e,t){this._element=e,this._scrollView=t._createComponent(this._element,o.default,{scrollByContent:!1,scrollByThumb:!0,showScrollbar:"onHover",direction:"both",onScroll:function(){t.updateView()}})}var t,n,i=e.prototype;return i.getWidth=function(){return this._element.offsetWidth},i.getHeight=function(){return this._element.offsetHeight},i.getElement=function(){return this._element},t=e,(n=[{key:"scrollTop",get:function(){return this._scrollView.scrollTop()},set:function(e){var t=e-this._scrollView.scrollTop();0!==t&&this._scrollView.scrollBy({left:0,top:t})}},{key:"scrollLeft",get:function(){return this._scrollView.scrollLeft()},set:function(e){var t=e-this._scrollView.scrollLeft();0!==t&&this._scrollView.scrollBy({left:t,top:0})}},{key:"scrollWidth",get:function(){return this._scrollView.scrollWidth()}},{key:"scrollHeight",get:function(){return this._scrollView.scrollHeight()}},{key:"isExternal",get:function(){return!0}}])&&a(t.prototype,n),e}();t.TaskAreaContainer=r},23638:function(e,t,n){t.GanttTemplatesManager=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(6415),r=function(){function e(e){this._gantt=e}var t=e.prototype;return t.getTaskTooltipContentTemplateFunc=function(e){var t=this,n=e&&this._gantt._getTemplate(e);return n&&function(e,i,r){return n.render({model:t._gantt.getTaskDataByCoreData(i),container:(0,a.getPublicElement)((0,o.default)(e)),onRendered:function(){r()}}),!0}},t.getTaskProgressTooltipContentTemplateFunc=function(e){var t=e&&this._gantt._getTemplate(e);return t&&function(e,n,i){return t.render({model:n,container:(0,a.getPublicElement)((0,o.default)(e)),onRendered:function(){i()}}),!0}},t.getTaskTimeTooltipContentTemplateFunc=function(e){var t=e&&this._gantt._getTemplate(e);return t&&function(e,n,i){return t.render({model:n,container:(0,a.getPublicElement)((0,o.default)(e)),onRendered:function(){i()}}),!0}},t.getTaskContentTemplateFunc=function(e){var t=this,n=e&&this._gantt._getTemplate(e);return n&&function(e,i,r,s){return i.taskData=t._gantt.getTaskDataByCoreData(i.taskData),n.render({model:i,container:(0,a.getPublicElement)((0,o.default)(e)),onRendered:function(){r(e,s)}}),!0}},e}();t.GanttTemplatesManager=r},87367:function(e,t,n){t.GanttTreeList=void 0;var i=n(58664),o=u(n(68374)),a=u(n(82655)),r=n(37518),s=n(35922),l=n(30631);function u(e){return e&&e.__esModule?e:{default:e}}var d="tasks",c=function(){function e(e){this._gantt=e,this._$treeList=this._gantt._$treeList}var t=e.prototype;return t.getTreeList=function(){var e=this,t=this._gantt.option(d),n=t.keyExpr,i=t.parentIdExpr;return this._treeList=this._gantt._createComponent(this._$treeList,a.default,{dataSource:this._gantt._tasksRaw,keyExpr:n,parentIdExpr:i,columns:this.getColumns(),columnResizingMode:"nextColumn",height:this._getHeight(),width:this._gantt.option("taskListWidth"),selection:{mode:l.GanttHelper.getSelectionMode(this._gantt.option("allowSelection"))},selectedRowKeys:l.GanttHelper.getArrayFromOneElement(this._gantt.option("selectedRowKey")),sorting:this._gantt.option("sorting"),filterRow:this._gantt.option("filterRow"),headerFilter:this._gantt.option("headerFilter"),scrolling:{showScrollbar:"onHover",mode:"virtual"},allowColumnResizing:!0,autoExpandAll:!0,showRowLines:this._gantt.option("showRowLines"),rootValue:this._gantt.option("rootValue"),onContentReady:function(t){e._onContentReady(t)},onSelectionChanged:function(t){e._onSelectionChanged(t)},onRowCollapsed:function(t){e._onRowCollapsed(t)},onRowExpanded:function(t){e._onRowExpanded(t)},onRowPrepared:function(t){e._onRowPrepared(t)},onContextMenuPreparing:function(t){e._onContextMenuPreparing(t)},onRowClick:function(t){e.onRowClick(t)},onRowDblClick:function(t){e.onRowDblClick(t)}}),this._treeList},t.onAfterTreeListCreate=function(){this._postponedGanttInitRequired&&(this._initGanttOnContentReady({component:this._treeList}),delete this._postponedGanttInitRequired)},t._onContentReady=function(e){this._treeList?this._initGanttOnContentReady(e):this._postponedGanttInitRequired=!0},t._initGanttOnContentReady=function(e){e.component.getDataSource()&&(this._gantt._initGanttView(),this._initScrollSync(e.component)),this._gantt._sortAndFilter(),this._gantt._sizeHelper.updateGanttRowHeights()},t._onSelectionChanged=function(e){var t=e.currentSelectedRowKeys[0];this._gantt._setGanttViewOption("selectedRowKey",t),this._gantt._setOptionWithoutOptionChange("selectedRowKey",t),this._gantt._actionsManager.raiseSelectionChangedAction(t)},t._onRowCollapsed=function(e){this._gantt._onTreeListRowExpandChanged(e,!1)},t._onRowExpanded=function(e){this._gantt._onTreeListRowExpandChanged(e,!0)},t._onRowPrepared=function(e){"data"===e.rowType&&e.node.children.length>0&&(0,o.default)(e.rowElement).addClass("dx-gantt-collapsable-row")},t._onContextMenuPreparing=function(e){var t,n;if("header"!==e.target){"data"===(null===(t=e.row)||void 0===t?void 0:t.rowType)&&this.setOption("selectedRowKeys",[e.row.data[this._gantt.option("tasks.keyExpr")]]),e.items=[];var i={cancel:!1,event:e.event,type:"task",key:null===(n=e.row)||void 0===n?void 0:n.key,position:{x:e.event.pageX,y:e.event.pageY}};this._gantt._showPopupMenu(i)}},t._getHeight=function(){return(0,i.getHeight)(this._$treeList)?(0,i.getHeight)(this._$treeList):(this._gantt._hasHeight=(0,s.isDefined)(this._gantt.option("height"))&&""!==this._gantt.option("height"),this._gantt._hasHeight?"100%":"")},t._initScrollSync=function(e){var t=this,n=e.getScrollable();n&&(n.off("scroll"),n.on("scroll",(function(e){t._onScroll(e)})))},t._onScroll=function(e){var t=this._gantt._ganttView.getTaskAreaContainer();t.scrollTop!==e.component.scrollTop()&&(t.scrollTop=e.component.scrollTop())},t._correctRowsViewRowHeight=function(e){var t=this._treeList._views&&this._treeList._views.rowsView;(null==t?void 0:t._rowHeight)!==e&&(t._rowHeight=e)},t._skipUpdateTreeListDataSource=function(){return this._gantt.option("validation.autoUpdateParentTasks")},t.selectRows=function(e){this.setOption("selectedRowKeys",e)},t.scrollBy=function(e){var t=this._treeList.getScrollable();if(t){var n=e-t.scrollTop();0!==n&&t.scrollBy({left:0,top:n})}},t.updateDataSource=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.getOption("expandedRowKeys");if(!this._skipUpdateTreeListDataSource()||t)this.setOption("dataSource",e);else if(n){var o=this._treeList.option("dataSource");this._gantt._onParentTasksRecalculated(o)}this.setOption("expandedRowKeys",i)},t.onRowClick=function(e){this._gantt._actionsManager.raiseTaskClickAction(e.key,e.event)},t.onRowDblClick=function(e){this._gantt._actionsManager.raiseTaskDblClickAction(e.key,e.event)&&this._gantt._ganttView._ganttViewCore.showTaskEditDialog()},t.getOffsetHeight=function(){return this._gantt._treeList._$element.get(0).offsetHeight},t.getRowHeight=function(){var e=this._treeList._$element.find(".dx-data-row"),t=e.length?(0,r.getBoundingRect)(e.last().get(0)).height:34;return t||(t=34),this._correctRowsViewRowHeight(t),t},t.getHeaderHeight=function(){return(0,r.getBoundingRect)(this._treeList._$element.find(".dx-treelist-headers").get(0)).height},t.getColumns=function(){var e=this._gantt.option("columns");if(e)for(var t=0;t<e.length;t++){var n=e[t];(n.dataField===this._gantt.option("".concat(d,".keyExpr"))||n.dataField===this._gantt.option("".concat(d,".parentIdExpr")))&&!n.dataType&&(n.dataType="object")}return e},t.getSievedItems=function(){var e=this._treeList.getRootNode();if(e){var t=[];l.GanttHelper.convertTreeToList(e,t);var n=l.GanttHelper.compileGettersByOption(this._gantt.option(d));return this._gantt._validateSourceData(d,t).map(l.GanttHelper.prepareMapHandler(n))}},t.setOption=function(e,t){this._treeList&&this._treeList.option(e,t)},t.getOption=function(e){return this._treeList.option(e)},t.onTaskInserted=function(e,t){if((0,s.isDefined)(t)){var n=this.getOption("expandedRowKeys");-1===n.indexOf(t)&&(n.push(t),this.setOption("expandedRowKeys",n))}this.selectRows(l.GanttHelper.getArrayFromOneElement(e)),this.setOption("focusedRowKey",e)},t.getDataSource=function(){var e;return null===(e=this._treeList)||void 0===e?void 0:e.getDataSource()},e}();t.GanttTreeList=c},21347:function(e,t,n){t.GanttView=void 0;var i=c(n(68374)),o=c(n(14390)),a=n(70382),r=n(77133),s=c(n(91500)),l=n(35922),u=c(n(28109)),d=n(68752);function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var c,p,g=o.prototype;return g._init=function(){e.prototype._init.call(this),this._onSelectionChanged=this._createActionByOption("onSelectionChanged"),this._onScroll=this._createActionByOption("onScroll"),this._onDialogShowing=this._createActionByOption("onDialogShowing"),this._onPopupMenuShowing=this._createActionByOption("onPopupMenuShowing"),this._expandAll=this._createActionByOption("onExpandAll"),this._collapseAll=this._createActionByOption("onCollapseAll"),this._taskClick=this._createActionByOption("onTaskClick"),this._taskDblClick=this._createActionByOption("onTaskDblClick"),this._onAdjustControl=this._createActionByOption("onAdjustControl")},g._initMarkup=function(){var e=(0,a.getGanttViewCore)();this._ganttViewCore=new e(this.$element().get(0),this,{showResources:this.option("showResources"),showDependencies:this.option("showDependencies"),taskTitlePosition:this._getTaskTitlePosition(this.option("taskTitlePosition")),firstDayOfWeek:this._getFirstDayOfWeek(this.option("firstDayOfWeek")),allowSelectTask:this.option("allowSelection"),startDateRange:this.option("startDateRange"),endDateRange:this.option("endDateRange"),editing:this._parseEditingSettings(this.option("editing")),validation:this.option("validation"),stripLines:{stripLines:this.option("stripLines")},areHorizontalBordersEnabled:this.option("showRowLines"),areAlternateRowsEnabled:!1,viewType:this._getViewTypeByScaleType(this.option("scaleType")),viewTypeRange:this._parseViewTypeRangeSettings(this.option("scaleTypeRange")),cultureInfo:this._getCultureInfo(),taskTooltipContentTemplate:this.option("taskTooltipContentTemplate"),taskProgressTooltipContentTemplate:this.option("taskProgressTooltipContentTemplate"),taskTimeTooltipContentTemplate:this.option("taskTimeTooltipContentTemplate"),taskContentTemplate:this.option("taskContentTemplate"),sieve:this.option("sieve")}),this._selectTask(this.option("selectedRowKey")),this.updateBarItemsState()},g._getFirstDayOfWeek=function(e){return(0,l.isDefined)(e)?e:s.default.firstDayOfWeekIndex()},g.getTaskAreaContainer=function(){return this._ganttViewCore.getTaskAreaContainer()},g.getBarManager=function(){return this._ganttViewCore.barManager},g.executeCoreCommand=function(e){var t=this._ganttViewCore.getCommandByKey(e);t&&t.execute()},g.changeTaskExpanded=function(e,t){this._ganttViewCore.changeTaskExpanded(e,t)},g.updateView=function(){this._ganttViewCore.updateView()},g.updateBarItemsState=function(){this._ganttViewCore.barManager.updateItemsState([])},g.setWidth=function(e){this._ganttViewCore.setWidth(e)},g._selectTask=function(e){this._ganttViewCore.selectTaskById(e)},g._update=function(e){var t;null===(t=this._ganttViewCore)||void 0===t||t.updateWithDataReload(e)},g._getCultureInfo=function(){return{monthNames:s.default.getMonthNames("wide"),dayNames:s.default.getDayNames("wide"),abbrMonthNames:s.default.getMonthNames("abbreviated"),abbrDayNames:s.default.getDayNames("abbreviated"),quarterNames:this._getQuarterNames(),amText:s.default.getPeriodNames()[0],pmText:s.default.getPeriodNames()[1]}},g._getQuarterNames=function(){var e=u.default.format("dxGantt-quarter");return e?[(0,d.format)(e,1),(0,d.format)(e,2),(0,d.format)(e,3),(0,d.format)(e,4)]:s.default.getQuarterNames()},g._getTaskTitlePosition=function(e){switch(e){case"outside":return 1;case"none":return 2;default:return 0}},g._getViewTypeByScaleType=function(e){switch(e){case"minutes":return 0;case"hours":return 1;case"days":return 3;case"weeks":return 4;case"months":return 5;case"quarters":return 6;case"years":return 7;default:return}},g._parseEditingSettings=function(e){return{enabled:e.enabled,allowDependencyDelete:e.allowDependencyDeleting,allowDependencyInsert:e.allowDependencyAdding,allowTaskDelete:e.allowTaskDeleting,allowTaskInsert:e.allowTaskAdding,allowTaskUpdate:e.allowTaskUpdating,allowResourceDelete:e.allowResourceDeleting,allowResourceInsert:e.allowResourceAdding,allowResourceUpdate:e.allowResourceUpdating,allowTaskResourceUpdate:e.allowTaskResourceUpdating}},g._parseViewTypeRangeSettings=function(e){return{min:this._getViewTypeByScaleType(e.min),max:this._getViewTypeByScaleType(e.max)}},g._optionChanged=function(t){switch(t.name){case"width":e.prototype._optionChanged.call(this,t),this._ganttViewCore.setWidth(t.value);break;case"height":this._ganttViewCore.setHeight(t.value);break;case"tasks":case"dependencies":case"resources":case"resourceAssignments":this._sieveOptions=void 0,this._update(!0);break;case"showResources":this._ganttViewCore.setShowResources(t.value);break;case"showDependencies":this._ganttViewCore.setShowDependencies(t.value);break;case"taskTitlePosition":this._ganttViewCore.setTaskTitlePosition(this._getTaskTitlePosition(t.value));break;case"firstDayOfWeek":this._ganttViewCore.setFirstDayOfWeek(this._getFirstDayOfWeek(t.value));break;case"startDateRange":this._ganttViewCore.setStartDateRange(t.value);break;case"endDateRange":this._ganttViewCore.setEndDateRange(t.value);break;case"allowSelection":this._ganttViewCore.setAllowSelection(t.value);break;case"selectedRowKey":this._selectTask(t.value);break;case"editing":this._ganttViewCore.setEditingSettings(this._parseEditingSettings(t.value));break;case"validation":this._ganttViewCore.setValidationSettings(t.value),this._update(!0);break;case"showRowLines":this._ganttViewCore.setRowLinesVisible(t.value);break;case"scaleType":this._ganttViewCore.setViewType(this._getViewTypeByScaleType(t.value));break;case"scaleTypeRange":this._ganttViewCore.setViewTypeRange(this._getViewTypeByScaleType(t.value.min),this._getViewTypeByScaleType(t.value.max));break;case"stripLines":this._ganttViewCore.setStripLines({stripLines:t.value});break;case"taskTooltipContentTemplate":this._ganttViewCore.setTaskTooltipContentTemplate(t.value);break;case"taskProgressTooltipContentTemplate":this._ganttViewCore.setTaskProgressTooltipContentTemplate(t.value);break;case"taskTimeTooltipContentTemplate":this._ganttViewCore.setTaskTimeTooltipContentTemplate(t.value);break;case"taskContentTemplate":this._ganttViewCore.setTaskContentTemplate(t.value);break;case"sieve":this._sortAndFilter(t.value);break;default:e.prototype._optionChanged.call(this,t)}},g.getRowHeight=function(){return this.option("rowHeight")},g.getHeaderHeight=function(){return this.option("headerHeight")},g.getGanttTasksData=function(){var e=this.option("tasks"),t=this.getSieveOptions();return null!=t&&t.sievedItems&&null!=t&&t.sieveColumn?t.sievedItems:e},g._sortAndFilter=function(e){this._sieveOptions=e,this._update(!0);var t=this.option("selectedRowKey");this._selectTask(t)},g.getSieveOptions=function(){return this._sieveOptions},g.getGanttDependenciesData=function(){return this.option("dependencies")},g.getGanttResourcesData=function(){return this.option("resources")},g.getGanttResourceAssignmentsData=function(){return this.option("resourceAssignments")},g.getGanttWorkTimeRules=function(){return{}},g.getExternalTaskAreaContainer=function(e){return this._taskAreaContainer||(this._taskAreaContainer=new r.TaskAreaContainer(e,this)),this._taskAreaContainer},g.prepareExternalTaskAreaContainer=function(e,t){null!=t&&t.height&&this._taskAreaContainer._scrollView.option("height",t.height)},g.changeGanttTaskSelection=function(e,t){this._onSelectionChanged({id:e,selected:t})},g.onGanttScroll=function(e){this._onScroll({scrollTop:e})},g.showDialog=function(e,t,n,i){this._onDialogShowing({name:e,parameters:t,callback:n,afterClosing:i})},g.getModelChangesListener=function(){return this.option("modelChangesListener")},g.getExportInfo=function(){return this.option("exportInfo")},g.showPopupMenu=function(e){this._onPopupMenuShowing(e)},g.getMainElement=function(){return this.option("mainElement").get(0)},g.adjustControl=function(){this._onAdjustControl()},g.getRequireFirstLoadParentAutoCalc=function(){return this.option("validation.autoUpdateParentTasks")},g.collapseAll=function(){this._collapseAll()},g.expandAll=function(){this._expandAll()},g.onTaskClick=function(e,t){return this._taskClick({key:e,event:t}),!0},g.onTaskDblClick=function(e,t){return this._taskDblClick({key:e,event:t})},g.onGanttViewContextMenu=function(e,t,n){return!0},g.getFormattedDateText=function(e){var t="";return e&&(t=s.default.format(e,"shortDate")+" "+s.default.format(e,"hh:mm")),t},g.destroyTemplate=function(e){(0,i.default)(e).empty()},g.getTreeListTableStyle=function(){return this.callExportHelperMethod("getTreeListTableStyle")},g.getTreeListColCount=function(){return this.callExportHelperMethod("getTreeListColCount")},g.getTreeListHeaderInfo=function(e){return this.callExportHelperMethod("getTreeListHeaderInfo",e)},g.getTreeListCellInfo=function(e,t){return this.callExportHelperMethod("getTreeListCellInfo",e,t)},g.callExportHelperMethod=function(e){for(var t=this.option("exportHelper"),n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t[e].apply(t,i)},c=o,(p=[{key:"bars",get:function(){return this.option("bars")}}])&&h(c.prototype,p),o}(o.default);t.GanttView=p},31142:function(e,t,n){t.VirtualDataLoader=void 0;var i=n(62754),o=n(35922),a="scrolling.legacyMode",r=function(e){return e.option("scrolling.loadTwoPagesOnStart")||e._controller.isVirtual()||e._controller.getViewportItemIndex()>0},s=function(e){return e._cache.length?e._cache[0].pageIndex:-1},l=function(e){return e._cache.length?e._cache[e._cache.length-1].pageIndex:-1},u=function(e,t,n){e._isChangedFiring=!0,t(n),e._isChangedFiring=!1},d=function(e,t,n){if(e._isDelayChanged)return e._isDelayChanged=!1,u(e,t,n),!0},c=function(e,t){var n=e.option("scrolling.preloadEnabled"),i=function(e){var t=e._dataOptions.pageSize();if(e.option("scrolling.preventPreload"))return 0;var n=e._controller.viewportSize();if(e._controller.isVirtualMode()&&e.option("scrolling.removeInvisiblePages")){n=0;for(var i=e._controller.viewportSize()*e._controller.viewportItemSize(),o=e._controller.getContentOffset(),a=e._controller.getViewportPosition(),r=e._controller.virtualItemsCount(),s=e._dataOptions.totalItemsCount(),l=r.begin;l<s&&!(o>=a+i);l++)(o+=e._controller.getItemSizes()[l]||e._controller.viewportItemSize())>=a&&n++}return t&&n>0?Math.ceil(n/t):1}(e),o=e._controller.isAppendMode();return i&&(t?i=n?1:0:(n&&i++,!o&&r(e)||i--)),i},h=function(e,t,n,i,a){var r=e._dataOptions,s=r.items().slice(),l=(0,o.isObject)(n)?n:void 0,d="prepend"===n,c=r.viewportItems();n&&(0,o.isString)(n)&&!e._isDelayChanged&&(l={changeType:n,items:s},a&&(l.removeCount=a.itemsCount,l.removeCount&&r.correctCount&&(l.removeCount=r.correctCount(c,l.removeCount,d))));var h=a?a.itemsLength:0;h&&r.correctCount&&(h=r.correctCount(c,h,d)),"append"===n?(c.push.apply(c,s),a&&c.splice(0,h)):d?(c.unshift.apply(c,s),a&&c.splice(-h)):e._dataOptions.viewportItems(s),r.updateLoading(),e._lastPageIndex=e.pageIndex(),e._isDelayChanged=i,i||u(e,t,l)},f=function(){function e(e,t){this._controller=e,this._dataOptions=t,this._pageIndex=this._lastPageIndex=t.pageIndex(),this._cache=[],this._loadingPageIndexes={}}var t=e.prototype;return t.option=function(){return this._controller.option.apply(this._controller,arguments)},t.viewportItemIndexChanged=function(e){var t,n=this._dataOptions.pageSize(),i=this._dataOptions.pageCount(),o=this._controller.isVirtualMode(),a=this._controller.isAppendMode(),r=this._dataOptions.totalItemsCount();if(n&&(o||a)&&r>=0){var s=this._controller.viewportSize();if(s&&e+s>=r&&!this._controller.isVirtual())if(this._dataOptions.hasKnownLastPage()){var l=r%n;(t=i-1)>0&&l>0&&l<s&&t--}else t=i;else{t=Math.floor(e/n);var u=i-1;t=Math.max(t,0),t=Math.min(t,u)}return this.pageIndex(t),this.load()}},t.pageIndex=function(e){var t=this._controller.isVirtualMode(),n=this._controller.isAppendMode();return!1!==this.option(a)&&(t||n)?(void 0!==e&&(this._pageIndex=e),this._pageIndex):this._dataOptions.pageIndex(e)},t.beginPageIndex=function(e){var t=s(this);return t<0&&(t=void 0!==e?e:this.pageIndex()),t},t.endPageIndex=function(){var e=l(this);return e>0?e:this._lastPageIndex},t.pageSize=function(){return this._dataOptions.pageSize()},t.load=function(){var e,t=this,n=this._dataOptions,o=this._controller.isVirtualMode(),r=this._controller.isAppendMode();if(!1!==this.option(a)&&(o||r)){var u=function(e){var t=-1,n=s(e),i=e._dataOptions;return n<0?t=e._pageIndex:e._cache[e._pageIndex-n]?n>=0&&e._controller.viewportSize()>=0&&(n>0&&(l(e)+1===i.pageCount()&&e._cache.length<c(e)+1||e._pageIndex===n&&c(e,!0))&&(t=n-1),t<0&&n+e._cache.length<=e._pageIndex+c(e)&&(t=n+e._cache.length)):t=e._pageIndex,e._loadingPageIndexes[t]&&(t=-1),t}(this);if(u>=0){var d=function(e,t){var n=e._dataOptions;if(t===e.pageIndex()||!n.isLoading()&&t<n.pageCount()||!n.hasKnownLastPage()&&t===n.pageCount())return n.pageIndex(t),e._loadingPageIndexes[t]=!0,(0,i.when)(n.load()).always((function(){e._loadingPageIndexes[t]=!1}))}(this,u);d&&(e=new i.Deferred,d.done((function(){var n=t._delayDeferred;n?n.done(e.resolve).fail(e.reject):e.resolve()})).fail(e.reject),n.updateLoading())}}else e=n.load();return e||this._lastPageIndex===this.pageIndex()||this._dataOptions.onChanged({changeType:"pageIndex"}),e||(new i.Deferred).resolve()},t.loadIfNeed=function(){var e=this._controller.isVirtualMode(),t=this._controller.isAppendMode();if((e||t)&&!this._dataOptions.isLoading()&&(!this._isChangedFiring||this._controller.isVirtual())){var n=this._controller.getViewportPosition();n>0?this._controller._setViewportPositionCore(n):this.load()}},t.handleDataChanged=function(e,t){var n,i,o=this,f=this._dataOptions,p=this._cache.length,g=this._controller.isVirtualMode(),m=this._controller.isAppendMode();if(t&&t.changes)u(this,e,t);else if(!1!==this.option(a)&&(g||m)){var _=s(this);if(_>=0&&(g&&_+this._cache.length!==f.pageIndex()&&_-1!==f.pageIndex()&&(p=0,this._cache=[]),m))if(0===f.pageIndex())this._cache=[];else if(f.pageIndex()<l(this))return void u(this,e,{changeType:"append",items:[]});var v,y={pageIndex:f.pageIndex(),itemsLength:f.items(!0).length,itemsCount:this.itemsCount(!0)};this.option("scrolling.removeInvisiblePages")&&g?i=this._cache.length>Math.max(c(this)+(this.option("scrolling.preloadEnabled")?1:0),2):d(this,e,{isDelayed:!0}),_===f.pageIndex()+1?(i&&(v=this._cache.pop()),n="prepend",this._cache.unshift(y)):(i&&(v=this._cache.shift()),n="append",this._cache.push(y));var x=g&&0===p&&r(this);h(this,e,this._cache.length>1?n:void 0,x,v),this._delayDeferred=this.load().done((function(){d(o,e)&&o.load()}))}else h(this,e,t)},t.getDelayDeferred=function(){return this._delayDeferred},t.itemsCount=function(e){var t=0,n=this._controller.isVirtualMode();return!e&&n?this._cache.forEach((function(e){t+=e.itemsCount})):t=this._dataOptions.itemsCount(),t},t.virtualItemsCount=function(){var e=s(this);e<0&&(e=this._dataOptions.pageIndex());var t=e*this._dataOptions.pageSize(),n=this._cache.length*this._dataOptions.pageSize();return{begin:t,end:Math.max(0,this._dataOptions.totalItemsCount()-n-t)}},t.reset=function(){this._loadingPageIndexes={},this._cache=[]},e}();t.VirtualDataLoader=f},25337:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.registerKeyboardAction=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(56756));t.registerKeyboardAction=function(e,t,n,i,a){var r=t.getController("keyboardNavigation");t.option("useLegacyKeyboardNavigation")||r&&!r.isKeyboardEnabled()||(t.createAction("onKeyDown"),o.registerKeyboardAction(e,t,n,i,a,(function(e){t.executeAction("onKeyDown",e)})))}},47766:function(e,t,n){t.adaptivityModule=void 0;var i=n(58664),o=x(n(68374)),a=x(n(55994)),r=n(39611),s=n(95429),l=n(35922),u=x(n(73176)),d=x(n(12310)),c=x(n(17737)),h=x(n(13615)),f=n(75811),p=n(58201),g=n(20576),m=n(95479),_=n(13306),v=n(62754),y=x(n(28109));function x(e){return e&&e.__esModule?e:{default:e}}var b="columnHeadersView",w="rowsView",C=[b,w,"footerView"],S="adaptiveHidden",k="detailAdaptive",D="hidden-column",I="dx-command-adaptive-hidden",T="dx-adaptive-detail-row",E="dx-adaptive-item-text",A="adaptive",O="row",P="dx-group-cell",M="dxDataGrid-ariaAdaptiveExpand",R="scrolling.legacyMode";function B(e,t){return e._columnsController.getColumnId(t)}function V(e){return e.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}function F(e,t){var n,i=(0,o.default)(e),l=t.component.getController("adaptiveColumns");"data"===t.rowType?(n=(0,o.default)("<span>").addClass(l.addWidgetPrefix("adaptive-more")),a.default.on(n,(0,r.addNamespace)(s.name,"dxDataGridAdaptivity"),l.createAction((function(){l.toggleExpandAdaptiveDetailRow(t.key)}))),n.appendTo(i)):h.default.setEmptyText(i)}var L={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:d.default.ViewController.inherit({_isRowEditMode:function(){return this._getEditMode()===O},_isItemModified:function(e,t){var n=this._columnsController.getVisibleIndex(e.column.index),i=this._dataController.getRowIndexByKey(t.key),o=this._dataController.items()[i+1];return o&&o.modifiedValues&&(0,l.isDefined)(o.modifiedValues[n])},_renderFormViewTemplate:function(e,t,n){var i=this,o=e.column,r=i.createAction((function(){a.default.trigger(n,s.name)})),u=o.calculateCellValue(t.data),d=h.default.getDisplayValue(o,u,t.data,t.rowType),c=h.default.formatValue(d,o),f=this._editingController.isCellOrBatchEditMode(),g=i._rowsView;if(o.allowEditing&&i.getController("keyboardNavigation").isKeyboardEnabled()&&(n.attr("tabIndex",i.option("tabIndex")),f&&(a.default.off(n,"focus",r),a.default.on(n,"focus",r))),o.cellTemplate){var m=(0,_.extend)({},t,{value:u,displayValue:d,text:c,column:o}),v=!!n.closest((0,p.getWindow)().document).length;g.renderTemplate(n,o.cellTemplate,m,v).done((function(){g._cellPrepared(n,t)}))}else{var y=n.get(0);o.encodeHtml?y.textContent=c:y.innerHTML=c,n.addClass(E),(0,l.isDefined)(c)&&""!==c||n.html("&nbsp;"),i._isRowEditMode()||i._isItemModified(e,t)&&n.addClass("dx-item-modified"),g._cellPrepared(n,t)}},_getTemplate:function(e,t){var n=this,i=e.column,a=this.getController("editing");return function(r,s){var l=(0,o.default)(s),u=n._columnsController.getVisibleIndex(i.index),d=(0,_.extend)({},t),c=function(){var o=n._isItemEdited(e);d.value=t.row.values[u],o||i.showEditorAlways?a.renderFormEditTemplate(d,e,r,l,!o):(d.column=i,d.columnIndex=u,n._renderFormViewTemplate(e,d,l))};c(),d.watch&&d.watch((function(){return{isItemEdited:n._isItemEdited(e),value:t.row.values[u]}}),(function(){l.contents().remove(),l.removeClass(E),c()}))}},_isVisibleColumnsValid:function(e){return!(e<2||e.length-function(){for(var t=0,n=0;n<e.length;n++)e[n].command&&t++;return t}()<=1)},_calculatePercentWidths:function(e,t){var n=this,i=0;return t.forEach((function(t,o){e[o]!==S&&(i+=n._getItemPercentWidth(t))})),i},_isPercentWidth:function(e){return(0,l.isString)(e)&&"%"===e.slice(-1)},_isColumnHidden:function(e){return this._hiddenColumns.filter((function(t){return t.index===e.index})).length>0},_getAverageColumnsWidth:function(e,t,n){var i=this,o=0,a=0;return t.forEach((function(r){if(!i._isColumnHidden(r)){var s=r.width;(0,l.isDefined)(s)&&!isNaN(parseFloat(s))?o+=i._isPercentWidth(s)?i._calculatePercentWidth({visibleIndex:r.visibleIndex,columnsCount:t.length,columnsCanFit:n,bestFitWidth:r.bestFitWidth,columnWidth:s,containerWidth:e}):parseFloat(s):a++}})),(e-o)/a},_calculateColumnWidth:function(e,t,n,i){var o,a=B(this,e),r=this._columnsController.columnOption(a,"width"),s=this._columnsController.columnOption(a,"bestFitWidth"),l=n.length;if(r&&"auto"!==r){if(!this._isPercentWidth(r))return parseFloat(r);o=this._calculatePercentWidth({visibleIndex:e.visibleIndex,columnsCount:l,columnsCanFit:i,bestFitWidth:s,columnWidth:r,containerWidth:t})}else o=this.option("columnAutoWidth")||e.command?s:this._getAverageColumnsWidth(t,n,i);return o},_calculatePercentWidth:function(e){var t=e.visibleIndex<e.columnsCount-1&&e.columnsCanFit,n=e.containerWidth*parseFloat(e.columnWidth)/100,i=e.columnsCanFit&&n<e.bestFitWidth?e.bestFitWidth:n;return t?e.containerWidth*parseFloat(e.columnWidth)/100:i},_getNotTruncatedColumnWidth:function(e,t,n,i){var o=B(this,e),a=this._columnsController.columnOption(o,"width"),r=this._columnsController.columnOption(o,"bestFitWidth");if(a&&"auto"!==a&&!this._isPercentWidth(a))return parseFloat(a);var s=this._calculateColumnWidth(e,t,n,i);return s<r?null:s},_getItemPercentWidth:function(e){var t=0;return e.width&&this._isPercentWidth(e.width)&&(t=parseFloat(e.width)),t},_getCommandColumnsWidth:function(){var e=this,t=e._columnsController.getVisibleColumns(),n=0;return(0,m.each)(t,(function(t,i){(i.index<0||i.command)&&(n+=e._columnsController.columnOption(B(e,i),"bestFitWidth")||0)})),n},_isItemEdited:function(e){if(this.isFormOrPopupEditMode())return!1;if(!this._isRowEditMode()){var t=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,n=this._columnsController.getVisibleIndex(e.column.index);return this._editingController.isEditCell(t,n)}var i=this.option("editing.editRowKey");return!!(0,g.equalByValue)(i,this._dataController.adaptiveExpandedKey())||void 0},_getFormItemsByHiddenColumns:function(e){var t=[];return(0,m.each)(e,(function(e,n){t.push({column:n,name:n.name,dataField:n.dataField,visibleIndex:n.visibleIndex})})),t},_getAdaptiveColumnVisibleIndex:function(e){for(var t=0;t<e.length;t++)if(e[t].command===A)return t},_hideAdaptiveColumn:function(e,t){var n=this._getAdaptiveColumnVisibleIndex(t);(0,l.isDefined)(n)&&(e[n]=S,this._hideVisibleColumn({isCommandColumn:!0,visibleIndex:n}))},_showHiddenCellsInView:function(e){var t=e.$cells,n=e.isCommandColumn?I:this.addWidgetPrefix(D);t.removeClass(n)},_showHiddenColumns:function(){for(var e=0;e<C.length;e++){var t=this.getView(C[e]);if(t&&t.isVisible()&&t.element()){var n=t.name,i=t.element().find(".dx-command-adaptive-hidden");this._showHiddenCellsInView({viewName:n,$cells:i,isCommandColumn:!0});var o=t.element().find("."+this.addWidgetPrefix(D));this._showHiddenCellsInView({viewName:n,$cells:o})}}},_isCellValid:function(e){return e&&e.length&&!e.hasClass("dx-master-detail-cell")&&!e.hasClass(P)},_hideVisibleColumn:function(e){var t=e.isCommandColumn,n=e.visibleIndex,i=this;C.forEach((function(e){var o=i.getView(e);o&&i._hideVisibleColumnInView({view:o,isCommandColumn:t,visibleIndex:n})}))},_hideVisibleColumnInView:function(e){var t,n=e.view,i=e.isCommandColumn,o=e.visibleIndex,a=n.name,r=this._columnsController.getVisibleColumns()[o],s=this._editingController&&this._editingController.getEditFormRowIndex();if(n&&n.isVisible()&&r)for(var l=n.getRowsCount(),u=n._getRowElements(),d=0;d<l;d++)if(d!==s||a!==w||"popup"===this.option("editing.mode")){var c=a===b?this._columnsController.getVisibleIndex(r.index,d):o;if(c>=0){var h=u.eq(d);t=this._findCellElementInRow(h,c),this._isCellValid(t)&&this._hideVisibleCellInView({viewName:a,isCommandColumn:i,$cell:t})}}},_findCellElementInRow:function(e,t){var n=e.children(),i=t,o=!1;if(e.hasClass("dx-group-row")){var a=e.find(".".concat(P)),r=a.attr("colspan");if(a.length&&(0,l.isDefined)(r)){var s=parseInt(r);t>a.index()+s-1?i=t-s+1:o=!0}}return o?void 0:n.eq(i)},_hideVisibleCellInView:function(e){var t=e.$cell,n=e.isCommandColumn?I:this.addWidgetPrefix(D);t.addClass(n)},_getEditMode:function(){return this._editingController.getEditMode()},isFormOrPopupEditMode:function(){var e=this._getEditMode();return"form"===e||"popup"===e},hideRedundantColumns:function(e,t,n){var o=this;if(this._hiddenColumns=[],o._isVisibleColumnsValid(t)&&n.length){var a,r,s,l=0,u=o.component.$element(),d=(0,i.getWidth)(u)-o._getCommandColumnsWidth(),c=function(){var e=this;return t.filter((function(t){return!t.command&&0===e._hiddenColumns.filter((function(e){return e.index===t.index})).length}))}.bind(this),h=c(),f=h.length;do{s=!1,l=0;var p=o._calculatePercentWidths(e,t),g=p<100&&0!==p;for(a=0;a<t.length;a++){var m=t[a],_=o._getNotTruncatedColumnWidth(m,d,h,g),v=B(o,m),y=o._columnsController.columnOption(v,"width"),x=o._columnsController.columnOption(v,"minWidth"),b=o._columnsController.columnOption(v,"bestFitWidth");if(e[a]!==S){if(!_&&!m.command&&!m.fixed){s=!0;break}y&&"auto"!==y||(_=Math.max(b||0,x||0)),(m.command!==A||r)&&(l+=_)}else r=!0}if(s=s||l>(0,i.getWidth)(u)){var w=n.pop(),C=o._columnsController.getVisibleIndex(w.index);d+=o._calculateColumnWidth(w,d,h,g),o._hideVisibleColumn({visibleIndex:C}),e[C]=S,this._hiddenColumns.push(w),h=c()}}while(s&&h.length>1&&n.length);f===h.length&&o._hideAdaptiveColumn(e,t)}else o._hideAdaptiveColumn(e,t)},getItemContentByColumnIndex:function(e){for(var t,n=0;n<this._$itemContents.length;n++){var i=(t=this._$itemContents.eq(n)).data("dx-form-item");if(i&&i.column&&this._columnsController.getVisibleIndex(i.column.index)===e)return t}},toggleExpandAdaptiveDetailRow:function(e,t){this.isFormOrPopupEditMode()&&this._editingController.isEditing()||this.getController("data").toggleExpandAdaptiveDetailRow(e,t)},createFormByHiddenColumns:function(e,t){var n=this,i=(0,o.default)(e),a={items:n._getFormItemsByHiddenColumns(n._hiddenColumns),formID:"dx-"+new u.default},r=(0,f.isMaterial)()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:a}),n._$itemContents=null,n._form=n._createComponent((0,o.default)("<div>").appendTo(i),c.default,(0,_.extend)(r,a,{customizeItem:function(e){var i=e.column||n._columnsController.columnOption(e.name||e.dataField);i&&(e.label=e.label||{},e.label.text=e.label.text||i.caption,e.column=i,e.template=n._getTemplate(e,t,n.updateForm.bind(n))),a.customizeItem&&a.customizeItem.call(this,e)},onContentReady:function(e){a.onContentReady&&a.onContentReady.call(this,e),n._$itemContents=i.find(".dx-field-item-content")}}))},hasAdaptiveDetailRowExpanded:function(){return(0,l.isDefined)(this._dataController.adaptiveExpandedKey())},updateForm:function(e){this.hasAdaptiveDetailRowExpanded()&&this._form&&(0,l.isDefined)(this._form._contentReadyAction)&&(e&&e.length?this._form.option("items",this._getFormItemsByHiddenColumns(e)):this._form.repaint())},updateHidingQueue:function(e){var t,n,i=this,o=e.filter((function(e){return e.visible&&!e.type&&!e.fixed&&!((0,l.isDefined)(e.groupIndex)&&e.groupIndex>=0)}));if(i._hidingColumnsQueue=[],i.option("allowColumnResizing")&&"widget"===i.option("columnResizingMode"))return i._hidingColumnsQueue;for(n=0;n<o.length;n++)(0,l.isDefined)(o[n].hidingPriority)&&o[n].hidingPriority>=0&&(t=!0,i._hidingColumnsQueue[o[n].hidingPriority]=o[n]);if(t)i._hidingColumnsQueue.reverse();else if(i.option("columnHidingEnabled"))for(n=0;n<o.length;n++){var a=i._columnsController.getVisibleIndex(o[n].index);i._hidingColumnsQueue[a]=o[n]}return i._hidingColumnsQueue=i._hidingColumnsQueue.filter(Object),i._hidingColumnsQueue},getHiddenColumns:function(){return this._hiddenColumns},hasHiddenColumns:function(){return this._hiddenColumns.length>0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var e=this;e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._columnsController.addCommandColumn({type:A,command:A,visible:!0,adaptiveHidden:!0,cssClass:"dx-command-adaptive",alignment:"center",width:"auto",cellTemplate:F,fixedPosition:"right"}),e._columnsController.columnsChanged.add((function(){var t=!!e.updateHidingQueue(e._columnsController.getColumns()).length;e._columnsController.columnOption("command:adaptive","adaptiveHidden",!t,!0)})),e._editingController=e.getController("editing"),e._hidingColumnsQueue=[],e._hiddenColumns=[],e.createAction("onAdaptiveDetailRowPreparing"),e.callBase()},optionChanged:function(e){"columnHidingEnabled"===e.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e.value),this.callBase(e)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(e){return this._dataController.adaptiveExpandedKey()&&(0,g.equalByValue)(this._dataController.adaptiveExpandedKey(),e)},expandAdaptiveDetailRow:function(e){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(e)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()},updateCommandAdaptiveAriaLabel:function(e,t){var n=this._dataController.getRowIndexByKey(e);if(-1!==n){var i=(0,o.default)(this.component.getRowElement(n));this.setCommandAdaptiveAriaLabel(i,t)}},setCommandAdaptiveAriaLabel:function(e,t){e.find(".dx-command-adaptive").attr("aria-label",y.default.format(t))}})},extenders:{views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column;return e.rowType===k&&"detail"===n.command?function(e,n){t._adaptiveColumnsController.createFormByHiddenColumns((0,o.default)(e),n)}:t.callBase(e)},_createRow:function(e){var t=this.callBase.apply(this,arguments);return e&&e.rowType===k&&e.key===this._dataController.adaptiveExpandedKey()&&t.addClass(T),t},_renderCells:function(e,t){this.callBase(e,t);var n=this._adaptiveColumnsController,i=n.getHidingColumnsQueue().length,o=n.getHiddenColumns().length;i&&!o&&V(e).last().addClass("dx-last-data-cell"),"data"===t.row.rowType&&n.setCommandAdaptiveAriaLabel(e,M)},_getColumnIndexByElementCore:function(e){var t=e.closest(".dx-field-item-content");if(t.length&&t.closest(this.component.$element()).length){var n=t.length?t.first().data("dx-form-item"):null;return n&&n.column&&this._columnsController.getVisibleIndex(n.column.index)}return this.callBase(e)},_cellPrepared:function(e,t){this.callBase.apply(this,arguments),t.row.rowType!==k&&t.column.visibleWidth===S&&e.addClass(this.addWidgetPrefix(D))},_getCellElement:function(e,t){var n=this._dataController.items()[e];return n&&n.rowType===k?this._adaptiveColumnsController.getItemContentByColumnIndex(t):this.callBase.apply(this,arguments)},getContextMenuItems:function(e){if(e.row&&"detailAdaptive"===e.row.rowType){var t=this.component.getView("columnHeadersView"),n=(0,o.default)(e.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return e.column=n?n.column:e.column,t.getContextMenuItems&&t.getContextMenuItems(e)}return this.callBase&&this.callBase(e)},isClickableElement:function(e){return!!this.callBase&&this.callBase(e)||!!e.closest(".dx-command-adaptive").length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{export:{_updateColumnWidth:function(e,t){this.callBase(e,e.visibleWidth===S?e.bestFitWidth:t)}},columnsResizer:{_pointCreated:function(e,t,n){var i=this.callBase(e,t,n),o=n[e.columnIndex]||{},a=this._getNextColumnIndex(e.columnIndex),r=n[a]||{},s=a!==e.columnIndex+1&&r.command,l=o.visibleWidth===S||s;return i||l},_getNextColumnIndex:function(e){for(var t=this._columnsController.getVisibleColumns(),n=this.callBase(e);t[n]&&t[n].visibleWidth===S;)n++;return n}},draggingHeader:{_pointCreated:function(e,t,n,i){var o=this.callBase(e,t,n,i),a=(t[e.columnIndex-1]||{}).visibleWidth===S;return o||a}},editing:{_isRowEditMode:function(){return this.getEditMode()===O},_getFormEditItemTemplate:function(e,t){return this.getEditMode()!==O&&"detailAdaptive"===e.rowType?(e.columnIndex=this._columnsController.getVisibleIndex(t.index),this.getColumnTemplate(e)):this.callBase(e,t)},_closeEditItem:function(e){var t=e.closest(".dx-field-item-content"),n=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=t.length?t.first().data("dx-form-item"):null,o=i&&i.column&&this._columnsController.getVisibleIndex(i.column.index);this.isEditCell(n,o)||this.callBase(e)},_beforeUpdateItems:function(e,t){if(!this._adaptiveController.isFormOrPopupEditMode()&&this._adaptiveController.hasHiddenColumns()){var n=this._dataController.items(),i=n[t],o=h.default.getIndexByKey(this._dataController.adaptiveExpandedKey(),n);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),o>=0&&e.push(o+1),e.push(t+1),this._dataController.adaptiveExpandedKey(i.key)}},_afterInsertRow:function(e){this.callBase.apply(this,arguments),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(e,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)},_collapseAdaptiveDetailRow:function(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){var e=this;this.callBase.apply(this,arguments);var t=new v.Deferred;return this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()?(0,v.when)(this.getController("validating").validate(!0)).done((function(n){n&&e._cancelEditAdaptiveDetailRow(),t.resolve()})):t.resolve(),t.promise()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(e){var t=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(e.key)&&t.push(e.rowType===k?e.rowIndex-1:e.rowIndex+1),t},_beforeCloseEditCellInBatchMode:function(e){var t=this._dataController._adaptiveExpandedKey;if(t){var n=h.default.getIndexByKey(t,this._dataController.items());n>-1&&e.unshift(n)}},editRow:function(e){this._adaptiveController.isFormOrPopupEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},deleteRow:function(e){var t=this._dataController.getKeyByRowIndex(e);"batch"===this.getEditMode()&&this._adaptiveController.isAdaptiveDetailRowExpanded(t)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_correctColumnWidths:function(e,t){var n=this._adaptiveColumnsController,i=n.getHiddenColumns(),o=n.updateHidingQueue(this._columnsController.getColumns());n.hideRedundantColumns(e,t,o);var a=n.getHiddenColumns();return n.hasAdaptiveDetailRowExpanded()&&i.length!==a.length&&n.updateForm(a),!a.length&&n.collapseAdaptiveDetailRow(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(e){e&&this._adaptiveColumnsController._showHiddenColumns(),this.callBase(e)},_needStretch:function(){var e=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||e.getHidingColumnsQueue().length||e.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}},data:{_processItems:function(e,t){var n=t.changeType;if(e=this.callBase.apply(this,arguments),"loadingAll"===n||!(0,l.isDefined)(this._adaptiveExpandedKey))return e;var i=h.default.getIndexByKey(this._adaptiveExpandedKey,e),o=!1===this.option(R);if(i>=0){var a=e[i];e.splice(i+1,0,{visible:!0,rowType:k,key:a.key,data:a.data,node:a.node,modifiedValues:a.modifiedValues,isNewRow:a.isNewRow,values:a.values})}else"refresh"!==n||o&&t.repaintChangesOnly||(this._adaptiveExpandedKey=void 0);return e},_getRowIndicesForExpand:function(e){var t=this.callBase.apply(this,arguments);if(this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(e)){var n=t[t.length-1];t.push(n+1)}return t},adaptiveExpandedKey:function(e){if(!(0,l.isDefined)(e))return this._adaptiveExpandedKey;this._adaptiveExpandedKey=e},toggleExpandAdaptiveDetailRow:function(e,t){var n=this,i=h.default.getIndexByKey(n._adaptiveExpandedKey,n._items),o=h.default.getIndexByKey(e,n._items);i>=0&&i===o&&!t&&(e=void 0,o=-1);var a=n._adaptiveExpandedKey;n._adaptiveExpandedKey=e,i>=0&&i++,o>=0&&o++;var r=n.getRowIndexDelta();n.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[i-r,o-r]});var s=this.getController("adaptiveColumns");s.updateCommandAdaptiveAriaLabel(e,"dxDataGrid-ariaAdaptiveCollapse"),s.updateCommandAdaptiveAriaLabel(a,M)},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content ."+this.addWidgetPrefix("revert-tooltip")}},columns:{_isColumnVisible:function(e){return this.callBase(e)&&!e.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(e){return this.callBase.apply(this,arguments)&&!e.hasClass(this.addWidgetPrefix(D))},_processNextCellInMasterDetail:function(e){this.callBase(e);var t=this._editingController.isCellOrBatchEditMode();!this._isInsideEditForm(e)&&e&&t&&a.default.on(e,"focus",(function t(){a.default.off(e,"focus",t),a.default.trigger(e,"dxclick")}))},_handleTabKeyOnMasterDetailCell:function(e,t){var n=this.callBase(e,t),i=this._getFocusedCell(),o=i&&i.parent();if(!n&&o&&o.length){var a=V(o),r="next"===t?a.last():a.first(),s=o.get(0).rowIndex,l=this._adaptiveController,u=this._dataController.getKeyByRowIndex("next"===t?s:s-1),d=i&&r&&i.get(0)===r.get(0);return l.isAdaptiveDetailRowExpanded(u)&&d}return n},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}};t.adaptivityModule=L},7922:function(e,t,n){t.columnChooserModule=void 0;var i=n(58664),o=_(n(68374)),a=n(20576),r=_(n(12310)),s=n(10980),l=_(n(28109)),u=n(75811),d=_(n(63008)),c=_(n(30254)),h=_(n(20530)),f=_(n(39114)),p=n(35922),g=n(13306),m=n(95479);function _(e){return e&&e.__esModule?e:{default:e}}var v="column-chooser-button",y="notouch-action",x="column-chooser",b=function(e,t){var n=[],i="select"===e.option("columnChooser.mode");return t.length&&(0,m.each)(t,(function(e,t){var o={text:t.caption,cssClass:t.cssClass,allowHiding:t.allowHiding,expanded:!0,id:t.index,disabled:!1,disableCheckBox:!1===t.allowHiding,parentId:(0,p.isDefined)(t.ownerBand)?t.ownerBand:null};i&&(o.selected=t.visible),n.push(o)})),n},w={defaultOptions:function(){return{columnChooser:{enabled:!1,allowSearch:!1,searchTimeout:500,mode:"dragAndDrop",width:250,height:260,title:l.default.format("dxDataGrid-columnChooserTitle"),emptyPanelText:l.default.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}},controllers:{columnChooser:r.default.ViewController.inherit({renderShowColumnChooserButton:function(e){var t,n=this,i=n.addWidgetPrefix(v),a=n.option("columnChooser.enabled"),r=e.find("."+i);a?r.length?r.show():(t=(0,o.default)("<div>").addClass(i).appendTo(e),n._createComponent(t,d.default,{icon:x,onClick:function(){n.getView("columnChooserView").showColumnChooser()},hint:n.option("columnChooser.title"),integrationOptions:{}})):r.hide()},getPosition:function(){var e=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:e&&e.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}})},views:{columnChooserView:s.ColumnsView.inherit({_resizeCore:a.noop,_isWinDevice:function(){return!!h.default.real().win},_updateList:function(e){var t,n=this._popupContainer.$content(),i="select"===this.option("columnChooser.mode"),o=this._columnChooserList,a=this._columnsController.getChooserColumns(i);if(i&&o&&e&&"selection"===e.changeType){t=b(this,a);for(var r=0;r<t.length;r++){var s=t[r].selected,l=t[r].id;l===e.columnIndex&&(s?o.selectItem(l,s):o.unselectItem(l,s))}}else i&&o&&"full"!==e||(this._popupContainer.$wrapper().toggleClass(this.addWidgetPrefix("column-chooser-mode-drag"),!i).toggleClass(this.addWidgetPrefix("column-chooser-mode-select"),i),t=b(this,a),this._renderTreeView(n,t))},_initializePopupContainer:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix("column-chooser")),n=e.option("columnChooser"),i=(0,u.current)(),a=(0,u.isGeneric)(i),r=(0,u.isMaterial)(i),s={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{text:n.title,toolbar:"top",location:a||r?"before":"center"}],position:e.getController("columnChooser").getPosition(),width:n.width,height:n.height,rtlEnabled:e.option("rtlEnabled"),onHidden:function(){e._isWinDevice()&&(0,o.default)("body").removeClass(e.addWidgetPrefix(y))},container:n.container};a||r?(0,g.extend)(s,{showCloseButton:!0}):s.toolbarItems[s.toolbarItems.length]={shortcut:"cancel"},(0,p.isDefined)(this._popupContainer)?this._popupContainer.option(s):(e._popupContainer=e._createComponent(t,f.default,s),e._popupContainer.on("optionChanged",(function(t){"visible"===t.name&&e.renderCompleted.fire()})))},_renderCore:function(e){this._popupContainer&&this._updateList(e)},_renderTreeView:function(e,t){var n=this,i=this.option("columnChooser"),r="select"===i.mode,s={items:t,dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:i.allowSearch,searchTimeout:i.searchTimeout,onItemRendered:function(e){if(e.itemData.disableCheckBox){var t,n=(0,o.default)(e.itemElement).closest(".dx-treeview-node");if(n.length&&(t=n.find(".dx-checkbox")).length){var i=t.data("dxCheckBox");i&&i.option("disabled",!0)}}}},l=e.find(".dx-scrollable").data("dxScrollable"),u=l&&l.scrollTop();r&&!this._columnsController.isBandColumnsUsed()&&e.addClass(this.addWidgetPrefix("column-chooser-plain")),s.onContentReady=function(e){(0,a.deferUpdate)((function(){if(u){var t=(0,o.default)(e.element).find(".dx-scrollable").data("dxScrollable");t&&t.scrollTo({y:u})}n.renderCompleted.fire()}))},this._isWinDevice()&&(s.useNativeScrolling=!1),(0,g.extend)(s,r?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList?(s.searchEnabled||(s.searchValue=""),this._columnChooserList.option(s)):(this._columnChooserList=this._createComponent(e,c.default,s),e.addClass(this.addWidgetPrefix("column-chooser-list")))},_prepareDragModeConfig:function(){return{noDataText:this.option("columnChooser").emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate:function(e,t,n){(0,o.default)(n).text(e.text).parent().addClass(e.cssClass).addClass("dx-column-chooser-item")}}},_prepareSelectModeConfig:function(){var e=this;return{selectNodesRecursive:!1,showCheckBoxesMode:"normal",onItemSelectionChanged:function(t){1!==e._columnsController.getVisibleColumns().filter((function(e){return!e.command})).length||t.itemData.selected?setTimeout((function(){e._columnsController.columnOption(t.itemData.id,"visible",t.itemData.selected)}),300):t.component.selectItem(t.itemElement)}}},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames,i="select"===this.option("columnChooser.mode");if(this.callBase(e),i){var o=n.visible&&1===n.length&&void 0!==e.columnIndex,a=n.showInColumnChooser||n.caption||n.visible||t.columns&&n.all;o?this.render(null,{changeType:"selection",columnIndex:e.columnIndex}):a&&this.render(null,"full")}},optionChanged:function(e){"columnChooser"===e.name?(this._initializePopupContainer(),this.render(null,"full")):this.callBase(e)},getColumnElements:function(){var e,t=[],n="select"===this.option("columnChooser.mode"),i=this._columnsController.getChooserColumns(n),a=this._popupContainer&&this._popupContainer.$content(),r=a&&a.find(".dx-treeview-node");return r&&i.forEach((function(n){var i=(e=r.filter("[data-item-id = '"+n.index+"']")).length?e.children(".dx-column-chooser-item").get(0):null;t.push(i)})),(0,o.default)(t)},getName:function(){return"columnChooser"},getColumns:function(){return this._columnsController.getChooserColumns()},allowDragging:function(e,t){var n=e&&e.allowHiding&&("columnChooser"!==t||!e.visible&&this._columnsController.isParentColumnVisible(e.index));return this.isColumnChooserVisible()&&n},getBoundingRect:function(){var e=this._popupContainer&&this._popupContainer.$overlayContent();if(e&&e.is(":visible")){var t=e.offset();return{left:t.left,top:t.top,right:t.left+(0,i.getOuterWidth)(e),bottom:t.top+(0,i.getOuterHeight)(e)}}return null},showColumnChooser:function(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&(0,o.default)("body").addClass(this.addWidgetPrefix(y))},hideColumnChooser:function(){this._popupContainer&&this._popupContainer.hide()},isColumnChooserVisible:function(){var e=this._popupContainer;return e&&e.option("visible")},publicMethods:function(){return["showColumnChooser","hideColumnChooser"]}})},extenders:{views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendColumnChooserItem(e)},_appendColumnChooserItem:function(e){var t=this;if(t.option("columnChooser.enabled")){var n=t.option("columnChooser.title"),i={widget:"dxButton",options:{icon:x,onClick:function(){t.component.getView("columnChooserView").showColumnChooser()},hint:n,text:n,onInitialized:function(e){(0,o.default)(e.element).addClass(t._getToolbarButtonClass(t.addWidgetPrefix(v)))}},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40};e.push(i)}return e},optionChanged:function(e){"columnChooser"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)},isVisible:function(){var e=this.option("columnChooser.enabled");return this.callBase()||e}}},controllers:{columns:{allowMoveColumn:function(e,t,n,i){return!("select"===this.option("columnChooser.mode")&&"columnChooser"===i)&&this.callBase(e,t,n,i)}}}}};t.columnChooserModule=w},42182:function(e,t,n){t.columnFixingModule=void 0;var i=n(58664),o=m(n(68374)),a=m(n(55994)),r=n(765),s=m(n(28109)),l=m(n(13615)),u=n(35922),d=n(13306),c=n(95479),h=m(n(47810)),f=n(37518),p=n(31648),g=m(n(41183));function m(e){return e&&e.__esModule?e:{default:e}}var _,v="content",y="content-fixed",x="dx-master-detail-cell",b="dx-first-cell",w="dx-last-cell",C="dx-state-hover",S="dx-col-fixed",k="dx-pointer-events-none",D="transparent",I="dx-group-row",T=function(e){var t=-1;return(0,c.each)(e,(function(e,n){if(n.command===D)return t=e,!1})),t},E=function(e,t,n){var i=0;if(e&&t&&n)for(var o=0;o<e.length;o++)e[o].command===D?i+=e[o].colspan:(t[i]<n[o]&&(t[i]=n[o]),i++);return t},A={init:function(){this.callBase(),this._isFixedTableRendering=!1,this._isFixedColumns=!1},_createCol:function(e){return this.callBase(e).toggleClass(S,!(!this._isFixedTableRendering||!(e.fixed||e.command&&e.command!==D)))},_correctColumnIndicesForFixedColumns:function(e,t){var n=T(e),i=e[n].colspan,o=t&&t.columnIndices;o&&(t.columnIndices=o.map((function(e){if(e)return e.map((function(e){return e<n?e:e>=n+i?e-i+1:-1})).filter((function(e){return e>=0}))})))},_partialUpdateFixedTable:function(e){var t=this._fixedTableElement,n=T(e),i=e[n],o=this._columnsController.getColumnIndexOffset(),a=this._getRowElementsCore(t);t.children("colgroup").replaceWith(this._createColGroup(e));for(var r=0;r<a.length;r++)for(var s=a[r].childNodes,l=o+1,u=0;u<s.length;u++)s[u].setAttribute("aria-colindex",l),u===n?(s[u].setAttribute("colspan",i.colspan),l+=i.colspan):l++},_renderTable:function(e){var t,n=this.getFixedColumns();this._isFixedColumns=!!n.length;var i=this.callBase(e);if(this._isFixedColumns){var o=null==e?void 0:e.change;if(this._isFixedTableRendering=!0,null!=o&&o.virtualColumnsScrolling&&!0!==this.option("scrolling.legacyMode"))this._partialUpdateFixedTable(n);else{var a=null==o?void 0:o.columnIndices;this._correctColumnIndicesForFixedColumns(n,o),t=this._createTable(n),this._renderRows(t,(0,d.extend)({},e,{columns:n})),this._updateContent(t,o),a&&(o.columnIndices=a)}this._isFixedTableRendering=!1}else this._fixedTableElement&&this._fixedTableElement.parent().remove(),this._fixedTableElement=null;return i},_renderRow:function(e,t){var n,i=t.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&i&&i.length){n=0;var o=t.row.cells||[];i=i.slice(),t.row.cells=i;for(var a=0;a<o.length;a++)o[a].column&&o[a].column.command===D?n=(o[a].column.colspan||1)-1:i[a+n]=o[a]}},_createCell:function(e){var t,n,i,o=this,a=e.column,r=a&&a.command,s=e.rowType,u=o.callBase.apply(o,arguments);(o._isFixedTableRendering||"filter"===s)&&(n=(t=o.getFixedColumns())[(i=T(t))-1]),o._isFixedTableRendering?r===D&&(u.addClass(k).toggleClass(b,0===i||n&&"expand"===n.command).toggleClass(w,t.length&&i===t.length-1),"freeSpace"!==s&&l.default.setEmptyText(u)):"filter"===s&&u.toggleClass(b,e.columnIndex===i);var d=o.option("rowAlternationEnabled")&&e.isAltRow;return h.default.mozilla&&e.column.fixed&&"group"!==e.rowType&&!d&&u.addClass(S),u},_wrapTableInScrollContainer:function(){var e=this.callBase.apply(this,arguments);return this._isFixedTableRendering&&e.addClass(this.addWidgetPrefix(y)),e},_renderCellContent:function(e,t){var n,i=t.column,o=this._isFixedTableRendering,a="group"===t.rowType&&(0,u.isDefined)(i.groupIndex);if(o&&a&&!i.command&&!i.groupCellTemplate&&e.css("pointerEvents","none"),!o&&this._isFixedColumns){if(n=i.fixed||i.command&&!1!==i.fixed,a&&(n=!1,t.row.summaryCells&&t.row.summaryCells.length)){var r=this._columnsController.getVisibleColumns(),s=this._getAlignByColumnCellCount?this._getAlignByColumnCellCount(i.colspan,{columns:r,row:t.row,isFixed:!0}):0;if(s>0){var l=T(this._columnsController.getFixedColumns());n=r.length-s<l}}if(n){if(i.command&&"buttons"!==i.type||"group"===t.rowType)return void e.html("&nbsp;").addClass(i.cssClass);e.addClass("dx-hidden-cell")}}i.command!==D&&this.callBase(e,t)},_getCellElementsCore:function(e){var t=this,n=this.callBase.apply(this,arguments),i=n.parent().hasClass(I),o="columnHeadersView"===this.name?e:void 0;if(this._fixedTableElement&&n){var a=this.getFixedColumns(o),r=this._getRowElements(this._fixedTableElement).eq(e).children("td");(0,c.each)(r,(function(e,s){if(i)n[e]&&"hidden"!==s.style.visibility&&(n[e]=s);else{var l=a[e];if(l)if(l.command===D)r.eq(e).hasClass(x)&&(n[e]=s||n[e]);else{var u=t._columnsController.getVisibleIndexByColumn(l,o);n[u]=s||n[u]}}}))}return n},getColumnWidths:function(){var e,t=this,n=t.callBase(),i=t.getFixedColumns();return t._fixedTableElement&&n.length&&(e=t.callBase(t._fixedTableElement)),E(i,n,e)},getTableElement:function(){return this._isFixedTableRendering?this._fixedTableElement:this.callBase()},setTableElement:function(e){this._isFixedTableRendering?this._fixedTableElement=e.addClass(k):this.callBase(e)},getColumns:function(e,t){return t=t||this.getTableElement(),this._isFixedTableRendering||t&&t.closest("table").parent("."+this.addWidgetPrefix(y)).length?this.getFixedColumns(e):this.callBase(e,t)},getRowIndex:function(e){var t=this._fixedTableElement;return t&&t.find(e).length?this._getRowElements(t).index(e):this.callBase(e)},getTableElements:function(){var e=this.callBase.apply(this,arguments);return this._fixedTableElement&&(e=(0,o.default)([e.get(0),this._fixedTableElement.get(0)])),e},getFixedColumns:function(e){return this._columnsController.getFixedColumns(e)},getFixedColumnsOffset:function(){var e,t={left:0,right:0};if(this._fixedTableElement){var n=(e=this.getTransparentColumnElement()).position();t={left:n.left,right:(0,i.getOuterWidth)(this.element(),!0)-((0,i.getOuterWidth)(e,!0)+n.left)}}return t},getTransparentColumnElement:function(){return this._fixedTableElement&&this._fixedTableElement.find(".dx-pointer-events-none").first()},getFixedTableElement:function(){return this._fixedTableElement},isFixedColumns:function(){return this._isFixedColumns},_resizeCore:function(){this.callBase(),this.synchronizeRows()},setColumnWidths:function(e){var t,n=this._columnsController.getVisibleColumns(),i=e.widths,o=i&&i.length&&(0,u.isDefined)(n[0].visibleWidth),a=e.optionNames,r=a&&a.width;if(this.callBase.apply(this,arguments),this._fixedTableElement){var s=i&&i.some((function(e){return"auto"===e}));s&&(!o||!this.isScrollbarVisible(!0))&&(t=n),this.callBase((0,d.extend)({},e,{$tableElement:this._fixedTableElement,columns:t,fixed:!0}))}(o||r&&this.option("wordWrapEnabled"))&&this.synchronizeRows()},_createColGroup:function(e){if(this._isFixedTableRendering&&!this.option("columnAutoWidth")){var t=this._columnsController.getVisibleColumns();t.filter((function(e){return!e.width})).length&&(e=t)}return this.callBase(e)},_getClientHeight:function(e){var t=e.getBoundingClientRect&&(0,f.getBoundingRect)(e);return t&&t.height?t.height:e.clientHeight},synchronizeRows:function(){var e,t,n,i,o=this,a=[],r=[];if(o._isFixedColumns&&o._tableElement&&o._fixedTableElement){var s=o._getClientHeight(o._tableElement.get(0)),l=o._getClientHeight(o._fixedTableElement.get(0));if(t=o._getRowElements(o._tableElement),n=o._getRowElements(o._fixedTableElement),i=o._findContentElement(),s!==l){for(i&&i.css("height",s),t.css("height",""),n.css("height",""),e=0;e<t.length;e++)a.push(o._getClientHeight(t.get(e))),r.push(o._getClientHeight(n.get(e)));for(e=0;e<t.length;e++){var u=a[e],d=r[e];u>d?n.eq(e).css("height",u):u<d&&t.eq(e).css("height",d)}i&&i.css("height","")}}},setScrollerSpacing:function(e){var t=this.option("rtlEnabled");this.callBase(e),this.element().children("."+this.addWidgetPrefix(y)).css({paddingLeft:t?e:"",paddingRight:t?"":e})}},O={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:s.default.format("dxDataGrid-columnFixingFix"),unfix:s.default.format("dxDataGrid-columnFixingUnfix"),leftPosition:s.default.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:s.default.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:(0,d.extend)({},A,{_getRowVisibleColumns:function(e){return this._isFixedTableRendering?this.getFixedColumns(e):this.callBase(e)},getContextMenuItems:function(e){var t=this,n=e.column,i=this.option("columnFixing"),o=this.callBase(e);if(e.row&&"header"===e.row.rowType&&!0===i.enabled&&n&&n.allowFixing){var a=function(e){switch(e.itemData.value){case"none":t._columnsController.columnOption(n.index,"fixed",!1);break;case"left":t._columnsController.columnOption(n.index,{fixed:!0,fixedPosition:"left"});break;case"right":t._columnsController.columnOption(n.index,{fixed:!0,fixedPosition:"right"})}};(o=o||[]).push({text:i.texts.fix,beginGroup:!0,items:[{text:i.texts.leftPosition,value:"left",disabled:n.fixed&&(!n.fixedPosition||"left"===n.fixedPosition),onItemClick:a},{text:i.texts.rightPosition,value:"right",disabled:n.fixed&&"right"===n.fixedPosition,onItemClick:a}]},{text:i.texts.unfix,value:"none",disabled:!n.fixed,onItemClick:a})}return o},getFixedColumnElements:function(e){var t=this;if((0,u.isDefined)(e))return this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(e).children();var n=t.getColumnElements(),i=t.getTransparentColumnElement();if(n&&i&&i.length){var o=T(t.getFixedColumns());n.splice(o,i.get(0).colSpan,i.get(0))}return n},getColumnWidths:function(){var e,t=this,n=t.callBase(),i=t.getFixedColumnElements(),o=t.getFixedColumns();return t._fixedTableElement&&(e=i&&i.length?t._getWidths(i):t.callBase(t._fixedTableElement)),E(o,n,e)}}),rowsView:(0,d.extend)({},A,{_detachHoverEvents:function(){this._fixedTableElement&&a.default.off(this._fixedTableElement,"mouseover mouseout",".dx-data-row"),this._tableElement&&a.default.off(this._tableElement,"mouseover mouseout",".dx-data-row")},_attachHoverEvents:function(){var e=this,t=function(t){a.default.on(t,"mouseover mouseout",".dx-data-row",e.createAction((function(t){var n=t.event,i=e.getRowIndex((0,o.default)(n.target).closest(".dx-row")),a="mouseover"===n.type;i>=0&&(e._tableElement&&e._getRowElements(e._tableElement).eq(i).toggleClass(C,a),e._fixedTableElement&&e._getRowElements(e._fixedTableElement).eq(i).toggleClass(C,a))})))};e._fixedTableElement&&e._tableElement&&(t(e._fixedTableElement),t(e._tableElement))},_findContentElement:function(){var e,t,n=this,i=n.addWidgetPrefix(v),s=n.element(),l=h.default.mozilla?60:0;if(s&&n._isFixedTableRendering){e=s.children("."+i);var u=n.getScrollable();return!e.length&&u&&(e=(0,o.default)("<div>").addClass(i),a.default.on(e,"scroll",(function(e){clearTimeout(n._fixedScrollTimeout),n._fixedScrollTimeout=setTimeout((function(){t=(0,o.default)(e.target).scrollTop(),u.scrollTo({y:t})}),l)})),a.default.on(e,r.name,(function(e){var i=(0,o.default)(e.target).closest(".dx-scrollable"),a=!1;if(u&&u.$element().is(i))a=!0;else{var r=i.length&&g.default.getInstance(i.get(0)),s=r&&r.scrollHeight()-r.clientHeight()>0;a=r&&!s}if(a&&(t=u.scrollTop(),u.scrollTo({y:t-e.delta}),u.scrollTop()>0&&u.scrollTop()+u.clientHeight()<u.scrollHeight()+n.getScrollbarWidth()))return!1})),e.appendTo(s)),e}return n.callBase()},_updateScrollable:function(){this.callBase();var e=this.getScrollable();if(null==e||!e._disposed){var t=e&&e.scrollOffset().top;this._updateFixedTablePosition(t)}},_renderContent:function(e,t){return this._isFixedTableRendering?e.empty().addClass(this.addWidgetPrefix(v)+" "+this.addWidgetPrefix(y)).append(t):this.callBase(e,t)},_getGroupCellOptions:function(e){return this._isFixedTableRendering?this.callBase((0,d.extend)({},e,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e)},_renderGroupedCells:function(e,t){return this.callBase(e,(0,d.extend)({},t,{columns:this._columnsController.getVisibleColumns()}))},_renderGroupSummaryCells:function(e,t){this._isFixedTableRendering?this.callBase(e,(0,d.extend)({},t,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e,t)},_hasAlignByColumnSummaryItems:function(e,t){var n=this.callBase.apply(this,arguments),i=t.columns[e];return t.isFixed?i.fixed&&(n||"right"===i.fixedPosition):n&&(!this._isFixedColumns||!i.fixed)},_renderGroupSummaryCellsCore:function(e,t,n,i){var o;if(this._isFixedTableRendering){t.isFixed=!0,o=this._getAlignByColumnCellCount(n,t),t.isFixed=!1;var a=t.columns.length-o;t=(0,d.extend)({},t,{columns:this.getFixedColumns()});var r=T(t.columns);a<r?(o-=t.columns[r].colspan-1||0,n-=t.columns[r].colspan-1||0):i>0&&e.css("visibility","hidden"),i=o}this.callBase(e,t,n,i)},_getSummaryCellIndex:function(e,t){if(this._isFixedTableRendering){var n=T(t);return e>n&&(e+=t[n].colspan-1),e}return this.callBase.apply(this,arguments)},_renderCore:function(e){this._detachHoverEvents(),this.callBase(e);var t=this._isFixedColumns;this.element().toggleClass("dx-fixed-columns",t),this.option("hoverStateEnabled")&&t&&this._attachHoverEvents()},setRowsOpacity:function(e,t){this.callBase(e,t);var n=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(n,this.getFixedColumns(),e,t)},optionChanged:function(e){this.callBase(e),"hoverStateEnabled"===e.name&&this._isFixedColumns&&(e.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(e){var t=this._fixedTableElement,n=0;if(t&&e.is("td")&&e.closest(t).length){var i=this.getFixedColumns();return(0,c.each)(i,(function(t,i){if(t===e[0].cellIndex)return!1;i.colspan?n+=i.colspan:n++})),n}return this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(e,t){if(this._fixedTableElement&&this._tableElement){var n,i=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(e),t&&i&&(n=i.focus())&&i.focus(n)}},setScrollerSpacing:function(e,t){var n=this,i={marginBottom:0},o=n.element().children("."+this.addWidgetPrefix(y));o.length&&n._fixedTableElement&&(o.css(i),n._fixedTableElement.css(i),i[n.option("rtlEnabled")?"marginLeft":"marginRight"]=e,i.marginBottom=t,(n._scrollable&&n._scrollable.option("useNative")?o:n._fixedTableElement).css(i))},_getElasticScrollTop:function(e){var t=0,n=this.getScrollbarWidth(!0);if(e.scrollOffset.top<0)t=-e.scrollOffset.top;else if(e.reachedBottom){var a=this._findContentElement(),r=(0,o.default)(e.component.container());t=Math.max((0,i.getHeight)(a)+n-(0,i.getHeight)(r),0)-e.scrollOffset.top}return t},_applyElasticScrolling:function(e){if(this._fixedTableElement){var t=this._getElasticScrollTop(e);0!==Math.ceil(t)?(0,p.move)(this._fixedTableElement,{top:t}):this._fixedTableElement.css("transform","")}},_handleScroll:function(e){this._updateFixedTablePosition(e.scrollOffset.top,!0),this._applyElasticScrolling(e),this.callBase(e)},_updateContentPosition:function(e){this.callBase.apply(this,arguments),e||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(e){this._isFixedTableRendering||this.callBase(e)},_scrollToElement:function(e){this.callBase(e,this.getFixedColumnsOffset())},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),footerView:A},controllers:(_=function(e,t,n){var i=T(t),o=e.length-t.length;return(0,c.each)(n,(function(e,t){t.index>i&&(t.columnIndex+=o,t.index+=o)})),n},{draggingHeader:{_generatePointsByColumns:function(e){var t=e.columns,n=e.targetDraggingPanel;if(n&&"headers"===n.getName()&&n.isFixedColumns()&&e.sourceColumn.fixed){e.rowIndex||(e.columnElements=n.getFixedColumnElements(0)),e.columns=n.getFixedColumns(e.rowIndex);var i=this.callBase(e);return _(t,e.columns,i),i}return this.callBase(e)},_pointCreated:function(e,t,n,i){var o=this.callBase.apply(this,arguments),a=t[e.columnIndex],r=this._columnHeadersView.getTransparentColumnElement();if(!o&&"headers"===n&&r&&r.length){var s=(0,f.getBoundingRect)(r.get(0));return i&&i.fixed?"right"===i.fixedPosition?e.x<s.right:e.x>s.left:!(!a||!a.fixed||"right"===a.fixedPosition)||e.x<s.left||e.x>s.right}return o}},columnsResizer:{_generatePointsByColumns:function(){var e=this,t=e._columnsController,n=t&&e._columnsController.getVisibleColumns(),i=t&&e._columnsController.getFixedColumns(),o=e._columnHeadersView.getFixedColumnElements(),a=[];e.callBase(),o&&o.length>0&&(a=l.default.getPointsByColumns(o,(function(t){return e._pointCreated(t,o.length,i)})),e._pointsByFixedColumns=_(n,i,a))},_pointCreated:function(e,t,n){var i="widget"===this.option("columnResizingMode");if(e.index>0&&e.index<t){var o=n[e.columnIndex-1]||{},a=n[e.columnIndex]||{};if(o.fixed||a.fixed)return e.columnIndex-=1,!((o.allowResizing||o.command===D)&&(i||a.allowResizing||a.command===D))}return this.callBase.apply(this,arguments)},_getTargetPoint:function(e,t,n){var i=this._columnHeadersView.getTransparentColumnElement();if(i&&i.length){var o=(0,f.getBoundingRect)(i.get(0));if(t<=o.left||t>=o.right)return this.callBase(this._pointsByFixedColumns,t,n)}return this.callBase(e,t,n)}}})}};t.columnFixingModule=O},2366:function(e,t,n){t.columnHeadersModule=void 0;var i=n(58664),o=h(n(68374)),a=h(n(55994)),r=n(10980),s=h(n(28109)),l=n(35922),u=n(95479),d=n(13306),c=n(25337);function h(e){return e&&e.__esModule?e:{default:e}}var f="text-content",p="headers",g="nowrap",m="dx-header-row",_="dx-column-lines",v="dx-text-content-alignment-",y="dx-header-multi-row",x={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:r.ColumnsView.inherit(function(){var e=function(e,n,i){var a=(0,o.default)("<div>").addClass(e.addWidgetPrefix(f));e.setAria("role","presentation",a),t(e,n,i.column,a);var r=e.option("showColumnLines"),s=e.getController("columns").getHeaderContentAlignment(i.column.alignment);return a[r||"right"===s?"appendTo":"prependTo"](n)};function t(e,t,n,i){var o=e._getIndicatorElements(t,!0),a=e._getIndicatorElements(t),r=o&&o.length,s=e._getColumnAlignment(n.alignment),l=".".concat(e._getIndicatorClassName("sort")),u=".".concat(e._getIndicatorClassName("sortIndex")),d=a.filter(l),c=a.children().filter(u);(i=i||t.children("."+e.addWidgetPrefix(f))).toggleClass(v+s,r>0).toggleClass(v+("left"===s?"right":"left"),r>0&&"center"===n.alignment).toggleClass("dx-sort-indicator",!!d.length).toggleClass("dx-sort-index-indicator",!!c.length).toggleClass("dx-header-filter-indicator",!!a.filter("."+e._getIndicatorClassName("headerFilter")).length)}return{_createTable:function(){var e=this.callBase.apply(this,arguments);return a.default.on(e,"mousedown selectstart",this.createAction((function(e){var t=e.event;t.shiftKey&&t.preventDefault()}))),e},_isLegacyKeyboardNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDefaultTemplate:function(t){var n=this;return function(i,o){var a=t.command?i:e(n,i,o),r="expand"!==t.command&&t.caption;r?a.text(r):t.command&&i.html("&nbsp;")}},_getHeaderTemplate:function(e){return e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}},_processTemplate:function(t,n){var i=this,o=n.column,a=i.callBase(t);return"header"===n.rowType&&a&&o.headerCellTemplate&&!o.command?{render:function(t){var n=e(i,t.container,t.model);a.render((0,d.extend)({},t,{container:n}))}}:a},_handleDataChanged:function(e){"refresh"===e.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(e,t){var n=this.callBase(e,t);return"header"===t.row.rowType&&(n.addClass("dx-cell-focus-disabled"),this._isLegacyKeyboardNavigation()||t.column&&!t.column.type&&n.attr("tabindex",this.option("tabindex")||0)),n},_setCellAriaAttributes:function(e,t){this.callBase(e,t),"header"===t.rowType&&(this.setAria("role","columnheader",e),!t.column||t.column.command||t.column.isBand||(e.attr("id",t.column.headerId),this.setAria("label",s.default.format("dxDataGrid-ariaColumn")+" "+t.column.caption,e)))},_createRow:function(e){var t=this.callBase.apply(this,arguments);return t.toggleClass(_,this.option("showColumnLines")),"header"===e.rowType&&(t.addClass(m),this._isLegacyKeyboardNavigation()||(0,c.registerKeyboardAction)("columnHeaders",this,t,"td",this._handleActionKeyDown.bind(this))),t},_handleActionKeyDown:function(e){var t=e.event,n=(0,o.default)(t.target);if(this._lastActionElement=t.target,n.is(".dx-header-filter")){var i=this.getController("headerFilter"),a=n.closest("td"),r=this.getColumnIndexByElement(a);r>=0&&i.showHeaderFilterMenu(r,!1)}else{var s=n.closest(".dx-row");this._processHeaderAction(t,s)}t.preventDefault()},_renderCore:function(){var e=this,t=e.element();(!e._tableElement||e._dataController.isLoaded()||e._hasRowElements)&&(t.addClass(e.addWidgetPrefix(p)).toggleClass(e.addWidgetPrefix(g),!e.option("wordWrapEnabled")).empty(),e.setAria("role","presentation",t),e._updateContent(e._renderTable()),e.getRowCount()>1&&t.addClass(y),e.callBase.apply(e,arguments))},_renderRows:function(){var e=this;(e._dataController.isLoaded()||e._hasRowElements)&&(e.callBase.apply(e,arguments),e._hasRowElements=!0)},_getRowVisibleColumns:function(e){return this._columnsController.getVisibleColumns(e)},_renderRow:function(e,t){t.columns=this._getRowVisibleColumns(t.row.rowIndex),this.callBase(e,t)},_createCell:function(e){var t=e.column,n=this.callBase.apply(this,arguments);return t.rowspan>1&&"header"===e.rowType&&n.attr("rowSpan",t.rowspan),n},_getRows:function(){var e=[],t=this.getRowCount();if(this.option("showColumnHeaders"))for(var n=0;n<t;n++)e.push({rowType:"header",rowIndex:n});return e},_getCellTemplate:function(e){if("header"===e.rowType)return this._getHeaderTemplate(e.column)},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames;t.grouping||t.groupExpanding?t.grouping&&(this._isGroupingChanged=!0):(this.callBase(e),(n.width||n.visible)&&this.resizeCompleted.fire())},_isElementVisible:function(e){return e&&e.visible},_alignCaptionByCenter:function(e){var t=this._getIndicatorContainer(e,!0);t&&t.length&&(t.filter(".dx-visibility-hidden").remove(),(t=this._getIndicatorContainer(e)).clone().addClass("dx-visibility-hidden").css("float","").insertBefore(e.children("."+this.addWidgetPrefix(f))))},_updateCell:function(e,t){"header"===t.rowType&&"center"===t.column.alignment&&this._alignCaptionByCenter(e),this.callBase.apply(this,arguments)},_updateIndicator:function(e,n,i){var o=this.callBase.apply(this,arguments);return"center"===n.alignment&&this._alignCaptionByCenter(e),t(this,e,n),o},_getIndicatorContainer:function(e,t){var n=this.callBase(e);return t?n:n.filter(":not(.dx-visibility-hidden)")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var e=this.getTableElement(),t=e&&e.find(".dx-header-row");return t&&t.toArray().reduce((function(e,t){return e+(0,i.getHeight)(t)}),0)||0},getHeaderElement:function(e){var t=this.getColumnElements();return t&&t.eq(e)},getColumnElements:function(e,t){var n,i=this,a=i._columnsController,r=i.getRowCount();if(i.option("showColumnHeaders")){if(r>1&&(!(0,l.isDefined)(e)||(0,l.isDefined)(t))){var s=[],d=(0,l.isDefined)(t)?a.getChildrenByBandColumn(t,!0):a.getVisibleColumns();return(0,u.each)(d,(function(t,o){var r=(0,l.isDefined)(e)?e:a.getRowIndex(o.index);(n=i._getCellElement(r,a.getVisibleIndex(o.index,r)))&&s.push(n.get(0))})),(0,o.default)(s)}if(!e||e<r)return i.getCellElements(e||0)}},getColumnIndexByElement:function(e){var t=this.getCellIndex(e),n=e.closest(".dx-row")[0].rowIndex,i=this.getColumns(n)[t];return i?i.index:-1},getVisibleColumnIndex:function(e,t){var n=this.getColumns()[e];return n?this._columnsController.getVisibleIndex(n.index,t):-1},getColumnWidths:function(){var e=this.getColumnElements();return e&&e.length?this._getWidths(e):this.callBase.apply(this,arguments)},allowDragging:function(e,t,n){var i,o=0,a=e&&this._columnsController.getRowIndex(e.index),r=this.getColumns(0===a?0:null),s=(null==e?void 0:e.allowHiding)&&r.length>1,l=function(e){return e.allowReordering||e.allowGrouping||e.allowHiding};for(i=0;i<r.length;i++)l(r[i])&&o++;if(o<=1&&!s)return!1;if(!n)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&e&&e.allowReordering;for(i=0;i<n.length;i++){var u=n[i];if(u&&u.allowDragging(e,t))return!0}return!1},getBoundingRect:function(){var e=this.getColumnElements();return e&&e.length?{top:this.getTableElement().offset().top}:null},getName:function(){return"headers"},getColumnCount:function(){var e=this.getColumnElements();return e?e.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(e){switch(e.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:this.callBase(e)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(e){var t=this,n=e.column;if(e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)){var i=t.option("sorting");if(i&&"none"!==i.mode&&n&&n.allowSorting){var o=function(e){setTimeout((function(){t._columnsController.changeSortOrder(n.index,e.itemData.value)}))};return[{text:i.ascendingText,value:"asc",disabled:"asc"===n.sortOrder,icon:"context-menu-sort-asc",onItemClick:o},{text:i.descendingText,value:"desc",disabled:"desc"===n.sortOrder,icon:"context-menu-sort-desc",onItemClick:o},{text:i.clearText,value:"none",disabled:!n.sortOrder,icon:"context-menu-sort-none",onItemClick:o}]}}},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(e,t,n){var i,o,a=this,r=a.getRowCount(),s=a._columnsController.getColumns(),d=s&&s[e],c=d&&d.isBand&&d.index,h=function(e,n){n.ownerBand===c&&(o.eq(e).css({opacity:t}),n.isBand&&a.setRowsOpacity(n.index,t,i+1))};if((0,l.isDefined)(c))for(i=n=n||0;i<r;i++)o=a.getCellElements(i),(0,u.each)(a.getColumns(i),h)}}}())}};t.columnHeadersModule=x},78725:function(e,t,n){t.default=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(20576),r=n(13306),s=n(37518),l={_applyColumnState:function(e){var t,n=this,i=this.option("rtlEnabled"),a=n._getColumnAlignment(e.column.alignment,i),s=(0,r.extend)(!0,{columnAlignment:a},e),l=s.rootElement.hasClass("dx-group-panel-item"),u=n._createIndicatorContainer(s,l),d=(0,o.default)("<span>").addClass(n._getIndicatorClassName(e.name)),c=null===(t=n.component)||void 0===t?void 0:t.getController("columns"),h=(null==c?void 0:c.getHeaderContentAlignment(a))||a;return s.container=u,s.indicator=d,n._renderIndicator(s),u[!l&&e.showColumnLines||"left"!==h?"prependTo":"appendTo"](e.rootElement),d},_getIndicatorClassName:a.noop,_getColumnAlignment:function(e,t){return t=t||this.option("rtlEnabled"),e&&"center"!==e?e:(0,s.getDefaultAlignment)(t)},_createIndicatorContainer:function(e,t){var n=this._getIndicatorContainer(e.rootElement),i="left"===e.columnAlignment?"right":"left";return n.length||(n=(0,o.default)("<div>").addClass("dx-column-indicators")),this.setAria("role","presentation",n),n.css("float",e.showColumnLines&&!t?i:null)},_getIndicatorContainer:function(e){return e&&e.find(".dx-column-indicators")},_getIndicatorElements:function(e){var t=this._getIndicatorContainer(e);return t&&t.children()},_renderIndicator:function(e){var t=e.container,n=e.indicator;t&&n&&t.append(n)},_updateIndicators:function(e){var t,n=this,i=n.getColumns(),o=n.getColumnElements();if(o&&i.length===o.length)for(var a=0;a<i.length;a++){t=o.eq(a),n._updateIndicator(t,i[a],e);var r=t.parent().data("options");r&&r.cells&&(r.cells[t.index()].column=i[a])}},_updateIndicator:function(e,t,n){if(!t.command)return this._applyColumnState({name:n,rootElement:e,column:t,showColumnLines:this.option("showColumnLines")})}};t.default=l,e.exports=t.default,e.exports.default=t.default},459:function(e,t,n){t.columnsControllerModule=void 0;var i=I(n(68374)),o=I(n(44504)),a=I(n(26974)),r=n(47617),s=n(35922),l=n(95479),u=n(37518),d=n(13306),c=n(89386),h=I(n(80209)),f=n(48013),p=I(n(96688)),g=I(n(12310)),m=I(n(13615)),_=n(78008),v=I(n(69434)),y=I(n(18016)),x=I(n(91500)),b=I(n(28109)),w=n(62754),C=I(n(67403)),S=n(85273),k=n(9234),D=I(n(18740));function I(e){return e&&e.__esModule?e:{default:e}}function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var E=["filterValues","filterType","fixed","fixedPosition"],A=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","selectedFilterOperation","added"].concat(E),O={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},P=Number.MAX_SAFE_INTEGER||9007199254740991,M="groupExpand",R=/columns\[(\d+)\]\.?/gi,B=1,V={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:b.default.format("dxDataGrid-trueText"),falseText:b.default.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:g.default.Controller.inherit(function(){var e={visible:!0,showInColumnChooser:!0},t={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},n={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},g="group",b="columnChooser",I=function(e){e.filterOperations=e.defaultFilterOperations},V=function(t,n,i,o){var a={};if(n){(0,s.isString)(n)&&(n={dataField:n}),t.setName(n);var r={};if(n.command)r=(0,f.deepExtendArraySafe)(a,n);else{a=t.getCommonSettings(n),i&&i.name&&i.dataField&&(n=(0,d.extend)({},n,{dataField:i.dataField}));var l=t._createCalculatedColumnOptions(n,o);n.type||(r={headerId:"dx-col-".concat(B++)}),r=(0,f.deepExtendArraySafe)(r,e),(0,f.deepExtendArraySafe)(r,a),(0,f.deepExtendArraySafe)(r,l),(0,f.deepExtendArraySafe)(r,n),(0,f.deepExtendArraySafe)(r,{selector:null})}return n.filterOperations===n.defaultFilterOperations&&I(r),r}},F=function e(t,n,i){var o=[];return n&&(0,l.each)(n,(function(n,a){var r=t._columnsUserState&&Z(a,t._columnsUserState[n])&&t._columnsUserState[n],s=V(t,a,r,i);s&&(i&&(s.ownerBand=i),o.push(s),s.columns&&(o=o.concat(e(t,s.columns,s)),delete s.columns,s.hasColumns=!0))})),o},L=function(e,t){for(var n=[],i=t[e];i;)n.unshift(i),i=t[e=i.index];return n},H=function(e,t,n){var i=[],o=t[e];if(o)for(var a=0;a<o.length;a++){var r=o[a];(0,s.isDefined)(r.groupIndex)&&!r.showWhenGrouped||(i.push(r),n&&r.isBand&&(i=i.concat(H(r.index,t,n))))}return i},N=function(e,t){var n,i=[],o=e.getBandColumnsCache(),a=function(e){return e.ownerBand===t.ownerBand};if(o.isPlain){var r=e._columns.indexOf(t);r>=0&&(i=["columns[".concat(r,"]")])}else for(n=e._columns.filter(a);n.length&&-1!==n.indexOf(t);)i.unshift("columns[".concat(n.indexOf(t),"]")),n=(t=o.columnParentByIndex[t.index])?e._columns.filter(a):[];return i.join(".")},z=function e(t,n){var i=0,o=t.getChildrenByBandColumn(n,!0);return(0,l.each)(o,(function(n,o){o.isBand?(o.colspan=o.colspan||e(t,o.index),i+=o.colspan||1):i+=1})),i},W=function(e){var t=(0,s.type)(e);return"string"!==t&&"boolean"!==t&&"number"!==t&&"date"!==t&&"object"!==t&&(t=void 0),t},G=function(e,t){switch(e){case"date":case"datetime":return v.default.getDateSerializationFormat(t);case"number":if((0,s.isString)(t))return"string";if((0,s.isNumeric)(t))return null}},j=function(e,t){e.deserializeValue||(m.default.isDateType(t)&&(e.deserializeValue=function(e){return v.default.deserializeDate(e)},e.serializeValue=function(e){return(0,s.isString)(e)?e:v.default.serializeDate(e,this.serializationFormat)}),"number"===t&&(e.deserializeValue=function(e){var t=parseFloat(e);return isNaN(t)?e:t},e.serializeValue=function(e,t){return"filter"===t?e:(0,s.isDefined)(e)&&"string"===this.serializationFormat?e.toString():e}))},q=function(e){return!0===e.value?this.trueText||"true":!1===e.value?this.falseText||"false":e.valueText||""},$=function(e){if("boolean"===e)return q},K=function(e){(0,l.each)(e._columns,(function(e,t){t.index=e})),(0,l.each)(e._columns,(function(e,t){(0,s.isObject)(t.ownerBand)&&(t.ownerBand=t.ownerBand.index)})),(0,l.each)(e._commandColumns,(function(e,t){t.index=-(e+1)}))},U=function(e,t){(0,c.normalizeIndexes)(e._columns,"groupIndex",t,(function(e){var t=e.grouped;return delete e.grouped,t}))},Y=function(e,t,n){var i,o=(0,s.isObject)(t)?t.rowIndex:null,a=n===g?e.getGroupColumns():n===b?e.getChooserColumns():e.getVisibleColumns(o);return t=(0,s.isObject)(t)?t.columnIndex:t,(i=a[t])&&i.type===M&&(i=e._columns.filter((function(e){return i.type===e.type}))[0]||i),i&&(0,s.isDefined)(i.index)?i.index:-1};function Z(e,t){return e&&t&&t.name===(e.name||e.dataField)&&(t.dataField===e.dataField||e.name)}var X=function(e){var t,n,i,o=e._columnsUserState,a=e._ignoreColumnOptionNames||[],r=e._columns,l={},u=[],d=!0,h=[];function f(e,t){if(t)for(var n=0;n<A.length;n++){var i=A[n];(0,c.inArray)(i,a)>=0||("dataType"===i?e[i]=e[i]||t[i]:(0,c.inArray)(i,E)>=0?i in t&&(e[i]=t[i]):("selectedFilterOperation"===i&&t[i]&&(e.defaultSelectedFilterOperation=e[i]||null),e[i]=t[i]))}}function p(e,t){for(var n=t.name||t.dataField,i=l[n]||0,o=0;o<e.length;o++)if(Z(t,e[o])){if(!i)return l[n]=l[n]||0,l[n]++,o;i--}return-1}if(o){for(i=0;i<r.length;i++)n=p(o,r[i]),d=d&&n>=0,h.push(n);for(i=0;i<r.length;i++)t=r[i],n=h[i],(e._hasUserState||d)&&f(t,o[n]),n>=0&&(0,s.isDefined)(o[n].initialIndex)?u[n]=t:u.push(t);var g=!1;for(i=0;i<o.length;i++){var m=o[i];m.added&&p(r,m)<0&&(f(t=V(e,m.added),m),u.push(t),m.added.columns&&(g=!0))}g&&(K(e),u=F(e,u)),ee(e,u)}},Q=function(e,t){K(e),U(e,t),function(e,t){(0,l.each)(e._columns,(function(e,t){(0,s.isDefined)(t.sortIndex)&&!re(t.sortOrder)&&delete t.sortIndex})),(0,c.normalizeIndexes)(e._columns,"sortIndex",t,(function(e){return!(0,s.isDefined)(e.groupIndex)&&re(e.sortOrder)}))}(e,t),pe(e),function(e,t){for(var n,i,o={},a=[],r=e.getBandColumnsCache(),s=e._columns.filter((function(e){return!e.command})),l=0;l<s.length;l++){i=s[l];var u=L(l,r.columnParentByIndex);if(u.length){var d=u[u.length-1].index;o[d]=o[d]||[],o[d].push(i)}else a.push(i)}for(n in o)(0,c.normalizeIndexes)(o[n],"visibleIndex",t);(0,c.normalizeIndexes)(a,"visibleIndex",t)}(e,t)},J=function(e){e.resetColumnsCache()};function ee(e,t){e._columns=t,J(e),e.updateColumnDataTypes()}var te=function(e,t,n,i){var o=e._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:i};n=(n=n||"all").split(".")[0];var a=o.changeTypes;t&&!a[t]&&(a[t]=!0,a.length++);var r=o.optionNames;n&&!r[n]&&(r[n]=!0,r.length++),void 0!==i&&i===o.columnIndex||delete o.columnIndex,e._columnChanges=o,J(e)},ne=function(e){var t,n=e.option("onColumnsChanging"),i=e._columnChanges;e.isInitialized()&&!e._updateLockCount&&i&&(n&&(e._updateLockCount++,n((0,d.extend)({component:e.component},i)),e._updateLockCount--),e._columnChanges=void 0,(t=i.optionNames)&&["dataField","lookup","dataType","columns"].some((function(e){return t[e]}))?e.reinit():e.columnsChanged.fire(i))},ie=function(e,t,n,i){if(n>=0)i>=0||(t.lastSortOrder=t.sortOrder);else{var o=e.option("sorting.mode"),a=t.lastSortOrder;"single"===o&&e._columns.some((function(e){return e!==t&&(0,s.isDefined)(e.sortIndex)}))&&(a=void 0),t.sortOrder=a}},oe=function(e,t){var n=t.value,i=t.optionName,o=t.prevValue,a=t.fullOptionName,r="".concat(a,".").concat(i);O[i]||e._skipProcessingColumnsChange===r||(e._skipProcessingColumnsChange=r,e.component._notifyOptionChanged(r,n,o),e._skipProcessingColumnsChange=!1)},ae=function(e,t,i,o,a){var l,u,d,h=(0,r.compileGetter)(i),f=t.index;if(3===arguments.length)return h(t,{functionsAsIs:!0});var p=h(t,{functionsAsIs:!0});if(p!==o){"groupIndex"===i||"calculateGroupValue"===i?(u="grouping",ie(e,t,o,p)):u="sortIndex"===i||"sortOrder"===i||"calculateSortValue"===i?"sorting":"columns";var g=(0,r.compileSetter)(i);g(t,o,{functionsAsIs:!0});var m=N(e,t);n[i]&&(Q(e,t),o=h(t)),"name"!==i&&"allowEditing"!==i||e._checkColumns(),m&&oe(e,{fullOptionName:m,optionName:i,value:o,prevValue:p}),(0,s.isDefined)(p)||(0,s.isDefined)(o)||0===i.indexOf("buffer")||(a=!0),a?J(e):((0,c.inArray)(i,A)<0&&"visibleWidth"!==i&&(l=e.option("columns"),d=e.getColumnByPath(m,l),(0,s.isString)(d)&&(d=l[f]={dataField:d}),d&&Z(d,t)&&g(d,o,{functionsAsIs:!0})),te(e,u,i,f))}};function re(e){return"asc"===e||"desc"===e}var se=function(e,t){var n=this.dataField.split("."),i=n.length-1;this.serializeValue&&(t=this.serializeValue(t));for(var o=0;o<i;o++){var a=n[o];e=e[a]=e[a]||{}}e[n[i]]=t},le=function(e,t){return!!e._columns.filter((function(e){return e.type===t.type})).length},ue=function(e,t){var n=e.option("rtlEnabled");return t.command&&!le(e,t)||!t.fixedPosition?n?"right":"left":t.fixedPosition},de=function(e,t,n,i){var o,a=this.getRowCount(),r=e[i]&&e[i].rowspan,u=t.filter((function(e){return e.type===n}));return e.forEach((function(t,i){t.type===n&&(o=i,r=e[i+1]?e[i+1].rowspan:a)})),r>1&&(u=(0,l.map)(u,(function(e){return(0,d.extend)({},e,{rowspan:r})}))),u.unshift.apply(u,(0,s.isDefined)(o)?[o,1]:[i,0]),e.splice.apply(e,u),r||1},ce=function(e,t){for(var n=e?e.toString():"0";n.length<t;)n="0"+n;return n},he=function(e,t,n,i){for(var o,a,r=t.slice().map((function(e){return(0,d.extend)({},e)})),s=e._isColumnFixing(),l=n.slice().map((function(e){return(0,d.extend)({fixed:s},e)})),u=function(e){return n.reduce((function(t,n,o){var a=i&&e.type===M?"expand":e.type;return n.type===a||n.command===e.command?o:t}),-1)},c=function(e){return e.command!==n[a].command},h=0;h<t.length;h++)if(o=t[h],(a=o&&(o.type||o.command)?u(o):-1)>=0)if(i)r[h]=(0,d.extend)({fixed:s},n[a],o),o.type!==M&&(l=l.filter(c));else{var f={visibleIndex:o.visibleIndex,index:o.index,headerId:o.headerId,allowFixing:0===o.groupIndex,allowReordering:0===o.groupIndex,groupIndex:o.groupIndex};r[h]=(0,d.extend)({},o,n[a],o.type===M&&f)}return t.length&&i&&l.length&&(r=r.concat(l)),r},fe=function(e,t){return(0,s.isDefined)(t.fixed)||!t.type?t.fixed:e._isColumnFixing()},pe=function(e){e._bandColumnsCache=void 0},ge=function(e,t){var n,i=(0,s.isString)(t)&&t.substr(0,t.indexOf(":"));if(void 0!==t)return i&&(t=t.substr(i.length+1)),i?n=e.filter((function(e){return""+e[i]===t}))[0]:["index","name","dataField","caption"].some((function(i){return!!(n=e.filter((function(e){return e[i]===t}))[0])})),n};return{_getExpandColumnOptions:function(){return{type:"expand",command:"expand",width:"auto",cssClass:"dx-command-expand",allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(e){var t,n=[];return e&&e.items().length>0&&(t=m.default.normalizeSortingInfo(e.group()).length,n=function e(t,n){if(!t||!n)return t;for(var i=0;i<t.length;i++){var o=e(t[i].items||t[i].collapsedItems,n-1);if(o&&o.length)return o}}(e.items(),t)||[]),n},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&ne(this)},init:function(){var e=this,t=e.option("columns");e._commandColumns=e._commandColumns||[],e._columns=e._columns||[],e._isColumnsFromOptions=!!t,e._isColumnsFromOptions?(ee(e,t?F(e,t):[]),X(e)):ee(e,e._columnsUserState?F(e,e._columnsUserState):e._columns),function(e){var t=e._getExpandColumnOptions();e.addCommandColumn(t)}(e),e._dataSourceApplied?e.applyDataSource(e._dataSource,!0):Q(e),e._checkColumns()},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(e,t){var n,i=[];return e.replace(R,(function(e,t){return i.push(parseInt(t)),""})),i.length&&(n=t?i.reduce((function(e,t){return e&&e.columns&&e.columns[t]}),{columns:t}):function(e,t){var n,i,o=function(e){var t=n?n.index:void 0;return e.ownerBand===t};if(e.getBandColumnsCache().isPlain)n=e._columns[t[0]];else{i=e._columns.filter(o);for(var a=0;a<t.length;a++)(n=i[t[a]])&&(i=e._columns.filter(o))}return n}(this,i)),n},optionChanged:function(e){var t;switch(e.name){case"adaptColumnWidthByRatio":e.handled=!0;break;case"dataSource":e.value===e.previousValue||this.option("columns")||Array.isArray(e.value)&&Array.isArray(e.previousValue)||(this._columns=[]);break;case"columns":t=this._skipProcessingColumnsChange,e.handled=!0,this._skipProcessingColumnsChange||(e.name===e.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):(this._columnOptionChanged(e),t=!0)),t&&this._updateRequireResize(e);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":e.handled=!0;var n="columnWidth"===e.fullName&&["width"];this.reinit(n);break;case"rtlEnabled":this.reinit();break;default:this.callBase(e)}},_columnOptionChanged:function(e){var t={},n=this.getColumnByPath(e.fullName),i=e.fullName.replace(R,"");n&&(i?t[i]=e.value:t=e.value,this._skipProcessingColumnsChange=e.fullName,this.columnOption(n.index,t),this._skipProcessingColumnsChange=!1)},_updateRequireResize:function(e){var t=this.component;"width"===e.fullName.replace(R,"")&&t._updateLockCount&&(t._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns","getVisibleColumnIndex"]},applyDataSource:function(e,t){var n=this,i=e&&e.isLoaded();if(n._dataSource=e,!n._dataSourceApplied||0===n._dataSourceColumnsCount||t||n.option("regenerateColumnsByVisibleItems")){if(i){if(!n._isColumnsFromOptions){var o=function(e,t){for(var n,i=e._getFirstItems(t),o={},r=[],l=0;l<i.length;l++)if(i[l])for(n in i[l])(0,s.isFunction)(i[l][n])&&!a.default.isWrapped(i[l][n])||(o[n]=!0);for(n in o)if(0!==n.indexOf("__")){var u=V(e,n);r.push(u)}return r}(n,e);o.length&&(ee(n,o),n._dataSourceColumnsCount=n._columns.length,X(n))}return n.updateColumns(e,t)}n._dataSourceApplied=!1}else if(i&&!n.isAllDataTypesDefined(!0)&&n.updateColumnDataTypes(e))return te(n,"columns"),ne(n),(new w.Deferred).reject().promise()},reset:function(){this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},resetColumnsCache:function(){var e=this;e._visibleColumns=void 0,e._fixedColumns=void 0,e._rowCount=void 0,pe(e)},reinit:function(e){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=e||null,this.init(),e&&(this._ignoreColumnOptionNames=null)},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(e){var t=(!e||!e.type)&&this.option("commonColumnSettings")||{},n=this.option("grouping")||{},i=this.option("groupPanel")||{};return(0,d.extend)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:n.autoExpandAll,allowCollapsing:n.allowCollapsing,allowGrouping:i.allowColumnDragging&&i.visible||n.contextMenuEnabled},t)},isColumnOptionUsed:function(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t][e])return!0},isAllDataTypesDefined:function(e){var t=this._columns;if(!t.length)return!1;for(var n=0;n<t.length;n++)if((t[n].dataField||t[n].calculateCellValue!==t[n].defaultCalculateCellValue)&&(!t[n].dataType||e&&t[n].deserializeValue&&void 0===t[n].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some((function(e){return e.isBand}))},getGroupColumns:function(){var e=[];return(0,l.each)(this._columns,(function(){var t=this;(0,s.isDefined)(t.groupIndex)&&(e[t.groupIndex]=t)})),e},getVisibleColumns:function(e){return this._visibleColumns=this._visibleColumns||this._getVisibleColumnsCore(),e=(0,s.isDefined)(e)?e:this._visibleColumns.length-1,this._visibleColumns[e]||[]},getFixedColumns:function(e){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),e=(0,s.isDefined)(e)?e:this._fixedColumns.length-1,this._fixedColumns[e]||[]},getFilteringColumns:function(){return this.getColumns().filter((function(e){return(e.dataField||e.name)&&(e.allowFiltering||e.allowHeaderFiltering)})).map((function(e){var t=(0,d.extend)(!0,{},e);return(0,s.isDefined)(t.dataField)||(t.dataField=t.name),t.filterOperations=e.filterOperations!==e.defaultFilterOperations?t.filterOperations:null,t}))},getColumnIndexOffset:function(){return 0},_getFixedColumnsCore:function(){var e,t,n,i=this,o=[],a=i.getRowCount(),r={command:"transparent"},l=0;if(i._isColumnFixing())for(var u=0;u<=a;u++){e=0,n=null,t=null;for(var d=i.getVisibleColumns(u,!0),c=0;c<d.length;c++){var h=d[c-1],f=d[c];f.fixed?h&&h.fixed&&ue(i,h)!==ue(i,f)?(0,s.isDefined)(t)||(t=c):n=f.fixedPosition:(0===u&&(f.isBand&&f.colspan?l+=f.colspan:l++),e++,(0,s.isDefined)(t)||(t=c))}if(0===u&&(0===e||e>=d.length))return[];(0,s.isDefined)(t)||(t="right"===n?0:d.length),o[u]=d.slice(0),r.colspan||(r.colspan=l),o[u].splice(t,e,r)}return o.map((function(e){return e.map((function(e){var t=T({},e);return t.headerId&&(t.headerId+="-fixed"),t}))}))},_isColumnFixing:function(){var e=this.option("columnFixing.enabled");return!e&&(0,l.each)(this._columns,(function(t,n){if(n.fixed)return e=!0,!1})),e},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var e,t=this._getExpandColumnsCore(),n=t.filter((function(e){return 0===e.groupIndex}))[0],i=n&&n.fixed,o=this._isColumnFixing();return t.length&&(e=this.columnOption("command:expand")),(0,l.map)(t,(function(t){return(0,d.extend)({},t,{visibleWidth:null,minWidth:null,cellTemplate:(0,s.isDefined)(t.groupIndex)?null:t.cellTemplate,headerCellTemplate:null,fixed:!(!(0,s.isDefined)(t.groupIndex)||!i)||o},e,{index:t.index,type:t.type||M})}))},getBandColumnsCache:function(){if(!this._bandColumnsCache){var e=this._columns,t={},n={},i=!0;e.forEach((function(o){var a=o.ownerBand,r=e[a];o.hasColumns&&(i=!1),o.colspan&&(o.colspan=void 0),o.rowspan&&(o.rowspan=void 0),r?n[o.index]=r:a=-1,t[a]=t[a]||[],t[a].push(o)})),this._bandColumnsCache={isPlain:i,columnChildrenByIndex:t,columnParentByIndex:n}}return this._bandColumnsCache},_isColumnVisible:function(e){return e.visible&&this.isParentColumnVisible(e.index)},_getVisibleColumnsCore:function(){var e,t,n=this,i=[],o=0,a=0,r=n.getRowCount(),u=[],d=[],c=0,h=n.option("rtlEnabled"),p=n.getBandColumnsCache(),g=he(n,n.getExpandColumns(),n._columns),m=he(n,n._columns,n._commandColumns,!0),_=function(e){var t;for(t=0;e>1;t++)e/=10;return t}(m.length);for(function(e,t,n){for(var i,o=0;o<t.length;o++){var a=t[o];(a.visible||a.command)&&(a.isBand&&(a.colspan=a.colspan||z(e,a.index)),a.isBand&&a.colspan||(i=e.getRowCount(),a.command||(0,s.isDefined)(a.groupIndex)&&!a.showWhenGrouped||(i-=L(a.index,n.columnParentByIndex).length),i>1&&(a.rowspan=i)))}}(n,m,p),e=0;e<r;e++)i[e]=[],d[e]=[{}],u[e]=[{},{},{}];return(0,l.each)(m,(function(){var i,o=this,a=o.visibleIndex,r=L(o.index,p.columnParentByIndex);if(n._isColumnVisible(o)&&(!(0,s.isDefined)(o.groupIndex)||o.showWhenGrouped)){var l=r.length;if(a<0?(a=-a,i=d[l]):(o.fixed=r.length?r[0].fixed:o.fixed,o.fixedPosition=r.length?r[0].fixedPosition:o.fixedPosition,o.fixed?(t="right"===o.fixedPosition,!h||o.command&&!le(n,o)||(t=!t),i=t?u[l][2]:u[l][0]):i=u[l][1]),r.length)for(a=ce(a,_),e=r.length-1;e>=0;e--)a=ce(r[e].visibleIndex,_)+a;i[a]=i[a]||[],i[a].push(o),c++}})),(0,l.each)(i,(function(e){(0,f.orderEach)(d[e],(function(t,n){i[e].unshift.apply(i[e],n)}));var t=i[e].length;(0,l.each)(u[e],(function(t,n){(0,f.orderEach)(n,(function(t,n){i[e].push.apply(i[e],n)}))})),a<e+1&&(a+=de.call(n,i[e],g,"detailExpand",t)),o<e+1&&(o+=de.call(n,i[e],g,M,t))})),i.push(function e(t,n,i){var o=[];return t[n=n||0]&&(0,l.each)(t[n],(function(a,r){r.ownerBand!==i&&r.type!==M||(r.isBand&&r.colspan?o.push.apply(o,e(t,n+1,r.index)):(!r.command||n<1)&&o.push(r))})),o}(i)),!c&&n._columns.length&&i[r].push({command:"empty"}),i},getInvisibleColumns:function(e,t){var n,i=this,o=[];return e=e||i._columns,(0,l.each)(e,(function(e,a){a.ownerBand===t&&(a.isBand?(n=a.visible?i.getInvisibleColumns(i.getChildrenByBandColumn(a.index),a.index):i.getChildrenByBandColumn(a.index)).length&&(o.push(a),o=o.concat(n)):a.visible||o.push(a))})),o},getChooserColumns:function(e){return function(e,t){if("asc"!==t&&"desc"!==t)return e;var n="asc"===t?1:-1;return e.sort((function(e,t){var i=e.caption||"",o=t.caption||"";return n*i.localeCompare(o)})),e}((e?this.getColumns():this.getInvisibleColumns()).filter((function(e){return e.showInColumnChooser})),this.option("columnChooser.sortOrder"))},allowMoveColumn:function(e,t,n,i){var o=Y(this,e,n),a=this._columns[o];return!(!a||!(a.allowReordering||a.allowGrouping||a.allowHiding))&&(n===i?n!==b&&(e=(0,s.isObject)(e)?e.columnIndex:e)!==(t=(0,s.isObject)(t)?t.columnIndex:t)&&e+1!==t:n===g&&i!==b||i===g?a&&a.allowGrouping:n!==b&&i!==b||a&&a.allowHiding)},moveColumn:function(e,t,n,i){var o,a,r=this,l={},u=Y(r,e,n),d=Y(r,t,i);if(u>=0){var c=r._columns[u];if(t=(0,s.isObject)(t)?t.columnIndex:t,a=d>=0?r._columns[d].groupIndex:-1,(0,s.isDefined)(c.groupIndex)&&n===g&&(a>c.groupIndex&&a--,i!==g?l.groupIndex=void 0:(o=c.groupIndex,delete c.groupIndex,U(r))),i===g)l.groupIndex=function(e,t,n){var i,o=e.getGroupColumns();if(n>=0)for(i=0;i<o.length;i++)o[i].groupIndex>=n&&o[i].groupIndex++;else for(n=0,i=0;i<o.length;i++)n=Math.max(n,o[i].groupIndex+1);return n}(r,0,a),c.groupIndex=o;else if(t>=0){var h=r._columns[d];h&&c.ownerBand===h.ownerBand?fe(r,c)^fe(r,h)?l.visibleIndex=P:l.visibleIndex=h.visibleIndex:l.visibleIndex=P}var f=i!==b;c.visible!==f&&(l.visible=f),r.columnOption(c.index,l)}},changeSortOrder:function(e,t){var n=this,i={},o=n.option("sorting"),a=o&&o.mode,r="single"===a||!t,u="single"===a||"multiple"===a,d=n._columns[e];u&&d&&d.allowSorting&&(r&&!(0,s.isDefined)(d.groupIndex)&&(0,l.each)(n._columns,(function(t){t!==e&&this.sortOrder&&((0,s.isDefined)(this.groupIndex)||delete this.sortOrder,delete this.sortIndex)})),re(t)?d.sortOrder!==t&&(i.sortOrder=t):"none"===t?d.sortOrder&&(i.sortIndex=void 0,i.sortOrder=void 0):function(e){if("ctrl"===t){if(!("sortOrder"in e)||!("sortIndex"in e))return!1;i.sortOrder=void 0,i.sortIndex=void 0}else(0,s.isDefined)(e.groupIndex)||(0,s.isDefined)(e.sortIndex)?i.sortOrder="desc"===e.sortOrder?"asc":"desc":i.sortOrder="asc"}(d)),n.columnOption(d.index,i)},getSortDataSourceParameters:function(e){var t=[],n=[];return(0,l.each)(this._columns,(function(){(this.dataField||this.selector||this.calculateCellValue)&&(0,s.isDefined)(this.sortIndex)&&!(0,s.isDefined)(this.groupIndex)&&(t[this.sortIndex]=this)})),(0,l.each)(t,(function(){if(re(this&&this.sortOrder)){var t={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(t.compare=this.sortingMethod.bind(this)),n.push(t)}})),n.length>0?n:null},getGroupDataSourceParameters:function(e){var t=[];return(0,l.each)(this.getGroupColumns(),(function(){var n=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue;if(n){var i={selector:n,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(i.compare=this.sortingMethod.bind(this)),t.push(i)}})),t.length>0?t:null},refresh:function(e){var t=[];return(0,l.each)(this._columns,(function(){var n=this.lookup;if(n&&!this.calculateDisplayValue){if(e&&n.valueMap)return;n.update&&t.push(n.update())}})),w.when.apply(i.default,t).done(J.bind(null,this))},_updateColumnOptions:function(e,n){e.selector=e.selector||function(t){return e.calculateCellValue(t)},(0,l.each)(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],(function(t,i){var o=e[i];if((0,s.isFunction)(o))if(o.originalCallback)e[i].context.column=e;else{var a={column:e};e[i]=function(e){return o.call(a.column,e)},e[i].originalCallback=o,e[i].columnIndex=n,e[i].context=a}})),(0,s.isString)(e.calculateDisplayValue)&&(e.displayField=e.calculateDisplayValue,e.calculateDisplayValue=(0,r.compileGetter)(e.displayField)),e.calculateDisplayValue&&(e.displayValueMap=e.displayValueMap||{}),j(e,e.dataType);var i=e.lookup;i&&j(i,i.dataType);var o=i?i.dataType:e.dataType;o&&(e.alignment=e.alignment||function(e,t){switch(e){case"number":return"right";case"boolean":return"center";default:return(0,u.getDefaultAlignment)(t)}}(o,this.option("rtlEnabled")),e.format=e.format||m.default.getFormatByDataType(o),e.customizeText=e.customizeText||$(o),e.defaultFilterOperations=e.defaultFilterOperations||!i&&t[o]||[],(0,s.isDefined)(e.filterOperations)||I(e),e.defaultFilterOperation=e.filterOperations&&e.filterOperations[0]||"=",e.showEditorAlways=(0,s.isDefined)(e.showEditorAlways)?e.showEditorAlways:"boolean"===o&&!e.cellTemplate)},updateColumnDataTypes:function(e){var t=this,n=t.option("dateSerializationFormat"),i=t._getFirstItems(e),o=!1;return(0,l.each)(t._columns,(function(e,a){var r,s,l,u,d,c=a.lookup;if(m.default.isDateType(a.dataType)&&void 0===a.serializationFormat&&(a.serializationFormat=n),c&&m.default.isDateType(c.dataType)&&void 0===a.serializationFormat&&(c.serializationFormat=n),a.calculateCellValue&&i.length){if(!a.dataType||c&&!c.dataType){for(r=0;r<i.length;r++)s=a.calculateCellValue(i[r]),a.dataType||(d=W(s),(l=l||d)&&d&&l!==d&&(l="string")),c&&!c.dataType&&(d=W(m.default.getDisplayValue(a,s,i[r])),(u=u||d)&&d&&u!==d&&(u="string"));(l||u)&&(l&&(a.dataType=l),c&&u&&(c.dataType=u),o=!0)}if(void 0===a.serializationFormat||c&&void 0===c.serializationFormat)for(r=0;r<i.length;r++)s=a.calculateCellValue(i[r],!0),void 0===a.serializationFormat&&(a.serializationFormat=G(a.dataType,s)),c&&void 0===c.serializationFormat&&(c.serializationFormat=G(c.dataType,c.calculateCellValue(s,!0)))}t._updateColumnOptions(a,e)})),o},_customizeColumns:function(e){var t=this,n=t.option("customizeColumns");n&&(e.some((function(e){return(0,s.isObject)(e.ownerBand)}))&&Q(t),n(e),ee(t,F(t,e)))},updateColumns:function(e,t){var n=this;if(t||this.updateSortingGrouping(e),!e||e.isLoaded()){var i=e?e.sort()||[]:this.getSortDataSourceParameters(),o=e?e.group()||[]:this.getGroupDataSourceParameters(),a=null==e?void 0:e.lastLoadOptions().filter;this._customizeColumns(this._columns),Q(this);var r=this._columns;return(0,w.when)(this.refresh(!0)).always((function(){n._columns===r&&(n._updateChanges(e,{sorting:i,grouping:o,filtering:a}),ne(n))}))}},_updateChanges:function(e,t){e&&(this.updateColumnDataTypes(e),this._dataSourceApplied=!0),m.default.equalSortParameters(t.sorting,this.getSortDataSourceParameters())||te(this,"sorting"),m.default.equalSortParameters(t.grouping,this.getGroupDataSourceParameters())||te(this,"grouping");var n=this.getController("data");n&&!m.default.equalFilterParameters(t.filtering,n.getCombinedFilter())&&te(this,"filtering"),te(this,"columns")},updateSortingGrouping:function(e,t){var n,i,o=this,a=function(e,t,n){(0,l.each)(e,(function(e,i){if(delete i[n],t)for(var o=0;o<t.length;o++){var a=t[o].selector,r=t[o].isExpanded;if(a===i.dataField||a===i.name||a===i.selector||a===i.calculateCellValue||a===i.calculateGroupValue||a===i.calculateDisplayValue){i.sortOrder=i.sortOrder||(t[o].desc?"desc":"asc"),void 0!==r&&(i.autoExpandGroup=r),i[n]=o;break}}}))};if(e){n=m.default.normalizeSortingInfo(e.sort());var r=m.default.normalizeSortingInfo(e.group()),s=o.getGroupDataSourceParameters(),u=o.getSortDataSourceParameters(),d=!m.default.equalSortParameters(r,s,!0),c=!d&&!m.default.equalSortParameters(r,s);o._columns.length||((0,l.each)(r,(function(e,t){o._columns.push(t.selector)})),(0,l.each)(n,(function(e,t){o._columns.push(t.selector)})),ee(o,F(o,o._columns))),!t&&(s||o._hasUserState)||!d&&!c||(a(o._columns,r,"groupIndex"),t&&(d&&te(o,"grouping"),c&&te(o,"groupExpanding"),i=!0)),!t&&(u||o._hasUserState)||m.default.equalSortParameters(n,u)||(a(o._columns,n,"sortIndex"),t&&(te(o,"sorting"),i=!0)),i&&ne(o)}},updateFilter:function(e,t,n,i){if(!Array.isArray(e))return e;if(n=void 0!==(e=(0,d.extend)([],e)).columnIndex?e.columnIndex:n,i=void 0!==e.filterValue?e.filterValue:i,(0,s.isString)(e[0])&&"!"!==e[0]){var o=this.columnOption(e[0]);t?(0,h.default)().forceIsoDateParsing&&o&&o.serializeValue&&e.length>1&&(e[e.length-1]=o.serializeValue(e[e.length-1],"filter")):o&&o.selector&&(e[0]=o.selector,e[0].columnIndex=o.index)}else(0,s.isFunction)(e[0])&&(e[0].columnIndex=n,e[0].filterValue=i);for(var a=0;a<e.length;a++)e[a]=this.updateFilter(e[a],t,n,i);return e},columnCount:function(){return this._columns?this._columns.length:0},columnOption:function(e,t,n,i){var o=this,a=o._columns.concat(o._commandColumns),r=ge(a,e);if(r){if(1===arguments.length)return(0,d.extend)({},r);if((0,s.isString)(t)){if(2===arguments.length)return ae(o,r,t);ae(o,r,t,n,i)}else(0,s.isObject)(t)&&(0,l.each)(t,(function(e,t){ae(o,r,e,t,i)}));ne(o)}},clearSorting:function(){var e=this,t=this.columnCount();e.beginUpdate();for(var n=0;n<t;n++)e.columnOption(n,"sortOrder",void 0);e.endUpdate()},clearGrouping:function(){var e=this,t=this.columnCount();e.beginUpdate();for(var n=0;n<t;n++)e.columnOption(n,"groupIndex",void 0);e.endUpdate()},getVisibleIndex:function(e,t){for(var n=this.getVisibleColumns(t),i=n.length-1;i>=0;i--)if(n[i].index===e)return i;return-1},getVisibleIndexByColumn:function(e,t){var n=this.getVisibleColumns(t),i=n.filter((function(t){return t.index===e.index&&t.command===e.command}))[0];return n.indexOf(i)},getVisibleColumnIndex:function(e,t){var n=this.columnOption(e,"index");return this.getVisibleIndex(n,t)},addColumn:function(e){var t=this,n=V(t,e),i=t._columns.length;t._columns.push(n),n.isBand&&(t._columns=F(t,t._columns),n=t._columns[i]),n.added=e,Q(t,n),t.updateColumns(t._dataSource),t._checkColumns()},deleteColumn:function(e){var t,n=this,i=n.columnOption(e);if(i&&i.index>=0){if((t=n._columns).forEach((function(e){(0,s.isDefined)(e.ownerBand)&&(e.ownerBand=t[e.ownerBand])})),n._columns.splice(i.index,1),i.isBand){var o=n.getChildrenByBandColumn(i.index).map((function(e){return e.index}));n._columns=n._columns.filter((function(e){return o.indexOf(e.index)<0}))}Q(n),n.updateColumns(n._dataSource)}},addCommandColumn:function(e){var t=this._commandColumns.filter((function(t){return t.command===e.command}))[0];t||(t=e,this._commandColumns.push(t))},getUserState:function(){var e,t=this._columns,n=[];function i(i,o){void 0!==t[e][o]&&(n[e][o]=t[e][o])}for(e=0;e<t.length;e++)n[e]={},(0,l.each)(A,i);return n},setName:function(e){e.name=e.name||e.dataField||e.type},setUserState:function(e){var t=this,n=t._dataSource,i=t.option("stateStoring.ignoreColumnOptionNames");if(null==e||e.forEach(this.setName),!i){i=[];var o=t.getCommonSettings();t.option("columnChooser.enabled")||i.push("visible"),"none"===t.option("sorting.mode")&&i.push("sortIndex","sortOrder"),o.allowGrouping||i.push("groupIndex"),o.allowFixing||i.push("fixed","fixedPosition"),o.allowResizing||i.push("width","visibleWidth");var a=!t.option("filterPanel.visible");!t.option("filterRow.visible")&&a&&i.push("filterValue","selectedFilterOperation"),!t.option("headerFilter.visible")&&a&&i.push("filterValues","filterType")}t._columnsUserState=e,t._ignoreColumnOptionNames=i,t._hasUserState=!!e,te(t,"filtering"),t.init(),n&&(n.sort(t.getSortDataSourceParameters()),n.group(t.getGroupDataSourceParameters()))},_checkColumns:function(){var e={},t=!1,n=[];this._columns.forEach((function(i){var o,a=i.name,r=null===(o=i.columns)||void 0===o?void 0:o.length,s=i.allowEditing&&(i.dataField||i.setCellValue)&&!r;a?(e[a]&&n.push('"'.concat(a,'"')),e[a]=!0):s&&(t=!0)})),n.length&&p.default.log("E1059",n.join(", ")),t&&p.default.log("E1060")},_createCalculatedColumnOptions:function(e,t){var n={},i=e.dataField;if((Array.isArray(e.columns)&&e.columns.length||e.isBand)&&(n.isBand=!0,i=null),i){if((0,s.isString)(i)){var u=(0,r.compileGetter)(i);n={caption:(0,_.captionize)(i),calculateCellValue:function(e,t){var n=u(e);return this.deserializeValue&&!t?this.deserializeValue(n):n},setCellValue:se,parseValue:function(e){var t,n,i=this;return"number"===i.dataType?(0,s.isString)(e)&&i.format?t=function(e,t){var n=y.default.parse(e,t);if((0,s.isNumeric)(n)){var i=y.default.format(n,t),o=y.default.format(n,"decimal");if(i===e||o===e)return n}}(e.trim(),i.format):(0,s.isDefined)(e)&&(0,s.isNumeric)(e)&&(t=Number(e)):"boolean"===i.dataType?e===i.trueText?t=!0:e===i.falseText&&(t=!1):m.default.isDateType(i.dataType)?(n=x.default.parse(e,i.format))&&(t=n):t=e,t}}}n.allowFiltering=!0}else n.allowFiltering=!!e.calculateFilterExpression;return n.calculateFilterExpression=function(){return D.default.defaultCalculateFilterExpression.apply(this,arguments)},n.createFilterExpression=function(e){var t;return this.calculateFilterExpression&&(t=this.calculateFilterExpression.apply(this,arguments)),(0,s.isFunction)(t)&&(t=[t,"=",!0]),t&&(t.columnIndex=this.index,t.filterValue=e),t},i&&(0,s.isString)(i)||(0,d.extend)(!0,n,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),t&&(n.allowFixing=!1),e.dataType&&(n.userDataType=e.dataType),e.selectedFilterOperation&&!("defaultSelectedFilterOperation"in n)&&(n.defaultSelectedFilterOperation=e.selectedFilterOperation),e.lookup&&(n.lookup={calculateCellValue:function(e,t){return this.valueExpr&&(e=this.valueMap&&this.valueMap[e]),this.deserializeValue&&!t?this.deserializeValue(e):e},updateValueMap:function(){if(this.valueMap={},this.items)for(var e=(0,r.compileGetter)(this.valueExpr),t=(0,r.compileGetter)(this.displayExpr),n=0;n<this.items.length;n++){var i=this.items[n],o=t(i);this.valueMap[e(i)]=o,this.dataType=this.dataType||W(o)}},update:function(){var e=this,t=e.dataSource;if(t)if((0,s.isFunction)(t)&&!a.default.isWrapped(t)&&(t=t({})),(0,s.isPlainObject)(t)||t instanceof C.default||Array.isArray(t)){if(e.valueExpr){var n=(0,k.normalizeDataSourceOptions)(t);return n.paginate=!1,(t=new S.DataSource(n)).load().done((function(t){e.items=t,e.updateValueMap&&e.updateValueMap()}))}}else p.default.log("E1016");else e.updateValueMap&&e.updateValueMap()}}),n.resizedCallbacks=(0,o.default)(),e.resized&&n.resizedCallbacks.add(e.resized.bind(e)),(0,l.each)(n,(function(e){if((0,s.isFunction)(n[e])&&0!==e.indexOf("default")){var t="default"+e.charAt(0).toUpperCase()+e.substr(1);n[t]=n[e]}})),n},getRowCount:function(){var e,t,n;return this._rowCount=this._rowCount||(t=1,n=(e=this).getBandColumnsCache().columnParentByIndex,e._columns.forEach((function(e){var i=L(e.index,n),o=i.filter((function(e){return!e.visible}));e.visible&&!o.length&&(t=Math.max(t,i.length+1))})),t),this._rowCount},getRowIndex:function(e,t){var n=this._columns[e],i=this.getBandColumnsCache();return n&&(t||n.visible&&!n.command&&!(0,s.isDefined)(n.groupIndex))?L(e,i.columnParentByIndex).length:0},getChildrenByBandColumn:function(e,t){var n=this.getBandColumnsCache(),i=H(e,n.columnChildrenByIndex,!t);return t?i.filter((function(e){return e.visible&&!e.command})).sort((function(e,t){return e.visibleIndex-t.visibleIndex})):i},isParentBandColumn:function(e,t){var n=!1,i=this._columns[e],o=this.getBandColumnsCache(),a=i&&L(e,o.columnParentByIndex);return a&&(0,l.each)(a,(function(e,i){if(i.index===t)return n=!0,!1})),n},isParentColumnVisible:function(e){var t=!0,n=this.getBandColumnsCache(),i=e>=0&&L(e,n.columnParentByIndex);return i&&(0,l.each)(i,(function(e,n){return t=t&&n.visible})),t},getColumnId:function(e){return e.command&&e.type===M?le(this,e)?"type:"+e.type:"command:"+e.command:e.index},getCustomizeTextByDataType:$,getHeaderContentAlignment:function(e){return this.option("rtlEnabled")?"left"===e?"right":"left":e}}}())}};t.columnsControllerModule=V},84268:function(e,t,n){t.columnsResizingReorderingModule=void 0;var i=n(58664),o=y(n(68374)),a=y(n(73349)),r=y(n(55994)),s=y(n(44504)),l=n(35922),u=n(95479),d=n(13306),c=n(37518),h=n(39611),f=y(n(93786)),p=n(23174),g=y(n(12310)),m=y(n(13615)),_=y(n(87209)),v=y(n(92591));function y(e){return e&&e.__esModule?e:{default:e}}var x="columns-separator-transparent",b="drag-header",w="drag-action",C="tracker",S="drop-highlight",k="dxDataGridResizingReordering",D=function(e){return e.option("allowColumnResizing")||e.getController("columns").isColumnOptionUsed("allowResizing")},I=function(e){return e.option("allowColumnReordering")||e.getController("columns").isColumnOptionUsed("allowReordering")},T=g.default.View.inherit({_renderCore:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix(C)),this.hide()},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var e=this;e._positionChanged=function(t){var n=e.element();n&&n.hasClass(e.addWidgetPrefix(C))&&(n.css({top:t.top}),(0,i.setHeight)(n,t.height))},this._tablePositionController.positionChanged.add(e._positionChanged)},optionChanged:function(e){"allowColumnResizing"===e.name&&(this._unsubscribeFromCallback(),e.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return D(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(e){(0,i.setHeight)(this.element(),e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),E=g.default.View.inherit({_renderSeparator:function(){},_renderCore:function(e){this.callBase(e),this._isShown=!0,this._renderSeparator(),this.hide()},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(e){var t=this.element();if(t){if(!(0,l.isDefined)(e))return(0,i.getHeight)(t);(0,i.setHeight)(t,e)}},width:function(e){var t=this.element();if(t){if(!(0,l.isDefined)(e))return(0,i.getWidth)(t);(0,i.setWidth)(t,e)}}}),A=E.inherit({_renderSeparator:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix("columns-separator"))},_subscribeToCallback:function(){var e,t=this;t._positionChanged=function(n){(e=t.element())&&(e.css({top:n.top}),(0,i.setHeight)(e,n.height))},t._tablePositionController.positionChanged.add(t._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=D(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(I(this)||D(this))},optionChanged:function(e){"allowColumnResizing"===e.name&&(e.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=D(this),this.hide(!0))),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var e=this,t=this.element();t&&!e._isShown&&(e._isTransparent?t.removeClass(e.addWidgetPrefix(x)):t.show()),this.callBase()},hide:function(e){var t=this.element(),n=this.addWidgetPrefix(x);t&&(this._isShown||e)&&(this._isTransparent?(t.addClass(n),t.css("left",""),t.show()):(t.hasClass(n)&&t.removeClass(n),t.hide())),this.callBase()},moveByX:function(e){var t=this.element();t&&t.css("left",null===e?0:e-this._parentElement().offset().left)},changeCursor:function(e){e=(0,l.isDefined)(e)?e:"";var t=this.element();t&&t.css("cursor",e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),O=E.inherit({init:function(){var e=this;this.callBase(),this.getController("data").loadingChanged.add((function(t){t||e.hide()}))},_renderSeparator:function(){this.callBase(),this.element().addClass("dx-block-separator").html("&nbsp;")},hide:function(){var e=this._parentElement(),t=this.element();t&&this._isShown&&t.css("display","none"),e&&!e.children(".dx-block-separator").length&&e.prepend(this.element()),this.callBase()},isVisible:function(){var e=this.option("groupPanel"),t=this.option("columnChooser");return e&&e.visible||t&&t.enabled},show:function(e){var t=this.element(),n=function(e){_.default.stop(t,!0),_.default.animate(t,{type:"slide",from:{width:0,display:e.display},to:e,duration:300,easing:"swing"})};if(t&&!this._isShown)switch(e){case"group":n({width:"50px",display:"inline-block"});break;case"columnChooser":n({width:"100%",display:"block"});break;default:t.css("display","")}this.callBase()}}),P=g.default.View.inherit({_isDragging:!1,isDragging:function(){return this._isDragging},_getDraggingPanelByPos:function(e){var t;return(0,u.each)(this._dragOptions.draggingPanels,(function(n,i){if(i){var o=i.getBoundingRect();if(o&&(void 0===o.bottom||e.y<o.bottom)&&(void 0===o.top||e.y>o.top)&&(void 0===o.left||e.x>o.left)&&(void 0===o.right||e.x<o.right))return t=i,!1}})),t},_renderCore:function(){this.element().addClass(this.addWidgetPrefix(b)+" "+this.addWidgetPrefix("text-content")+" dx-widget").hide()},_resetTargetColumnOptions:function(){var e=this._dropOptions;e.targetColumnIndex=-1,delete e.targetColumnElement,delete e.isLast,delete e.posX,delete e.posY},_getVisibleIndexObject:function(e,t){return(0,l.isDefined)(e)?{columnIndex:t,rowIndex:e}:t},dispose:function(){var e=this.element();this._dragOptions=null,e&&e.parent().find("."+this.addWidgetPrefix(b)).remove()},isVisible:function(){var e=this.getController("columns").getCommonSettings();return this.option("showColumnHeaders")&&(I(this)||e.allowGrouping||e.allowHiding)},init:function(){var e=this;this.callBase(),this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this.getController("data").loadingChanged.add((function(t){var n=e.element();!t&&n&&n.hide()}))},dragHeader:function(e){var t=this,n=e.columnElement,o=!!e.sourceColumn.type;t._isDragging=!0,t._dragOptions=e,t._dropOptions={sourceIndex:e.index,sourceColumnIndex:t._getVisibleIndexObject(e.rowIndex,e.columnIndex),sourceColumnElement:e.columnElement,sourceLocation:e.sourceLocation};var r=a.default.getDocument();t._onSelectStart=r.onselectstart,r.onselectstart=function(){return!1},t._controller.drag(t._dropOptions),t.element().css({textAlign:n&&n.css("textAlign"),height:n&&(o&&n.get(0).clientHeight||(0,i.getHeight)(n)),width:n&&(o&&n.get(0).clientWidth||(0,i.getWidth)(n)),whiteSpace:n&&n.css("whiteSpace")}).addClass(t.addWidgetPrefix(w)).toggleClass("dx-drag-command-cell",o).text(o?"":e.sourceColumn.caption),t.element().appendTo(v.default.getSwatchContainer(n))},moveHeader:function(e){var t=e.event,n=t.data.that,i=(0,h.eventData)(t),o=!!n._columnsResizerViewController&&n._columnsResizerViewController.isResizing(),a=n._dragOptions;if(n._isDragging&&!o){var r=n.element(),s=Math.abs(i.x-a.columnElement.offset().left-a.deltaX),l=Math.abs(i.y-a.columnElement.offset().top-a.deltaY);if(r.is(":visible")||s>5||l>5){r.show();var u=i.x-a.deltaX,d=i.y-a.deltaY;r.css({left:u,top:d}),n.dockHeader(i)}t.preventDefault()}},dockHeader:function(e){var t=this,n=t._getDraggingPanelByPos(e),i=t._controller,a=t._dropOptions,r=t._dragOptions;if(n){var s=t.option("rtlEnabled"),l="columnChooser"===n.getName(),u=l?"y":"x",c=n.getName(),h="headers"===c?r.rowIndex:void 0,f=r.sourceColumn,p=n.getColumnElements(h,null==f?void 0:f.ownerBand)||[],g=r.pointsByTarget=r.pointsByTarget||{},m="columnChooser"===c?[]:g[c]||i._generatePointsByColumns((0,d.extend)({},r,{targetDraggingPanel:n,columns:n.getColumns(h),columnElements:p,isVerticalOrientation:l,startColumnIndex:"headers"===c&&(0,o.default)(p[0]).index()}));if(g[c]=m,a.targetLocation=c,m.length>0)for(var _=0;_<m.length;_++){var v=m[_+1]&&(m[_][u]+m[_+1][u])/2;if(void 0===v||(s&&"x"===u?e[u]>v:e[u]<v)){a.targetColumnIndex=t._getVisibleIndexObject(h,m[_].columnIndex),p[_]?(a.targetColumnElement=p.eq(_),a.isLast=!1):(a.targetColumnElement=p.last(),a.isLast=!0),a.posX=m[_].x,a.posY=m[_].y,i.dock(a);break}}else t._resetTargetColumnOptions(),i.dock(a)}},dropHeader:function(e){var t=e.event.data.that,n=t._controller;t.element().hide(),n&&t._isDragging&&n.drop(t._dropOptions),t.element().appendTo(t._parentElement()),t._dragOptions=null,t._dropOptions=null,t._isDragging=!1,a.default.getDocument().onselectstart=t._onSelectStart||null}}),M=function(e){return"widget"!==e.option("columnResizingMode")},R=g.default.ViewController.inherit({_isHeadersRowArea:function(e){if(this._columnHeadersView){var t=this._columnHeadersView.element();if(t){var n=t.offset().top,i=this._columnHeadersView.getHeadersRowHeight();return e>=n&&e<=n+i}}return!1},_isRtlParentStyle:function(){var e;return this.option("rtlEnabled")&&"rtl"===(null===(e=this._$parentContainer)||void 0===e?void 0:e.parent().css("direction"))},_pointCreated:function(e,t,n){var i=M(this),o=this.option("rtlEnabled"),a=this._isRtlParentStyle(),r=i||!o||a?1:0;if(e.index>=r&&e.index<t+(i||o&&!a?0:1)){e.columnIndex-=r;var s=n[e.columnIndex]||{},l=n[e.columnIndex+1]||{};return!(i?s.allowResizing&&l.allowResizing:s.allowResizing)}return!0},_getTargetPoint:function(e,t,n){if(e)for(var i=0;i<e.length;i++)if((e[i].x!==e[0].x||!e[i+1]||e[i].x!==e[i+1].x)&&e[i].x-n<=t&&t<=e[i].x+n)return e[i];return null},_moveSeparator:function(e){var t,n=e.event,o=n.data,a=o._columnsSeparatorView.width(),r=M(o),s=a/2,l=o._$parentContainer.offset(),u=l.left,d=(0,h.eventData)(n),c=o.option("rtlEnabled"),f=this._isRtlParentStyle(),p=null===(t=o._draggingHeaderView)||void 0===t?void 0:t.isDragging();if(o._isResizing&&o._resizingInfo){if((u<=d.x||!r&&f)&&(!r||d.x<=u+(0,i.getWidth)(o._$parentContainer))&&o._updateColumnsWidthIfNeeded(d.x)){var g=o._columnHeadersView.getColumnElements().eq(o._resizingInfo.currentColumnIndex),m=g[0];if(m){var _=m.getBoundingClientRect().width;o._columnsSeparatorView.moveByX(g.offset().left+((r||f)&&c?0:_)),o._tablePositionController.update(o._targetPoint.y),n.preventDefault()}}}else p||(o._isHeadersRowArea(d.y)?(o._previousParentOffset&&(o._previousParentOffset.left===l.left&&o._previousParentOffset.top===l.top||o.pointsByColumns(null)),o._targetPoint=o._getTargetPoint(o.pointsByColumns(),d.x,a),o._previousParentOffset=l,o._isReadyResizing=!1,o._targetPoint?(o._columnsSeparatorView.changeCursor("col-resize"),o._columnsSeparatorView.moveByX(o._targetPoint.x-s),o._tablePositionController.update(o._targetPoint.y),o._isReadyResizing=!0,n.preventDefault()):(o._columnsSeparatorView.changeCursor(),o._columnsSeparatorView.moveByX(null))):(o.pointsByColumns(null),o._isReadyResizing=!1,o._columnsSeparatorView.changeCursor(),o._columnsSeparatorView.moveByX(null)))},_endResizing:function(e){var t=e.event.data;t._isResizing&&(t.pointsByColumns(null),t._resizingInfo=null,t._columnsSeparatorView.hide(),t._columnsSeparatorView.changeCursor(),t._trackerView.hide(),t._isReadyResizing=!1,t._isResizing=!1)},_getNextColumnIndex:function(e){return e+1},_setupResizingInfo:function(e){var t=this,n=t._targetPoint.columnIndex,i=t._getNextColumnIndex(n),o=t._columnHeadersView.getHeaderElement(n),a=t._columnHeadersView.getHeaderElement(i);t._resizingInfo={startPosX:e,currentColumnIndex:n,currentColumnWidth:o&&o.length>0?(0,c.getBoundingRect)(o[0]).width:0,nextColumnIndex:i,nextColumnWidth:a&&a.length>0?(0,c.getBoundingRect)(a[0]).width:0}},_startResizing:function(e){var t=e.event,n=t.data,o=(0,h.eventData)(t);if((0,h.isTouchEvent)(t)&&(n._isHeadersRowArea(o.y)?(n._targetPoint=n._getTargetPoint(n.pointsByColumns(),o.x,10),n._targetPoint&&(n._columnsSeparatorView.moveByX(n._targetPoint.x-n._columnsSeparatorView.width()/2),n._isReadyResizing=!0)):n._isReadyResizing=!1),n._isReadyResizing){n._setupResizingInfo(o.x),n._isResizing=!0,n._tablePositionController.update(n._targetPoint.y),n._columnsSeparatorView.show(),n._trackerView.show();var a=n.component.getScrollable();a&&n._isRtlParentStyle()&&(n._scrollRight=(0,i.getWidth)(a.$content())-(0,i.getWidth)(a.container())-a.scrollLeft()),t.preventDefault(),t.stopPropagation()}this.isResizing()&&this.getController("editorFactory").loseFocus()},_generatePointsByColumns:function(){var e=this,t=e._columnsController?e._columnsController.getVisibleColumns():[],n=e._columnHeadersView.getColumnElements(),i=[];n&&n.length>0&&(i=m.default.getPointsByColumns(n,(function(i){return e._pointCreated(i,n.length,t)}))),e._pointsByColumns=i},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&r.default.off(a.default.getDocument(),(0,h.addNamespace)(f.default.move,k),this._moveSeparatorHandler),this._startResizingHandler&&r.default.off(this._$parentContainer,(0,h.addNamespace)(f.default.down,k),this._startResizingHandler),this._endResizingHandler&&(r.default.off(this._columnsSeparatorView.element(),(0,h.addNamespace)(f.default.up,k),this._endResizingHandler),r.default.off(a.default.getDocument(),(0,h.addNamespace)(f.default.up,k),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),r.default.on(a.default.getDocument(),(0,h.addNamespace)(f.default.move,k),this,this._moveSeparatorHandler),r.default.on(this._$parentContainer,(0,h.addNamespace)(f.default.down,k),this,this._startResizingHandler),r.default.on(this._columnsSeparatorView.element(),(0,h.addNamespace)(f.default.up,k),this,this._endResizingHandler),r.default.on(a.default.getDocument(),(0,h.addNamespace)(f.default.up,k),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(e){var t,n,o,a,r,s=!1,u=this._resizingInfo,d=this._columnsController,c=d.getVisibleColumns(),h=this._columnsSeparatorView.width(),f=this._rowsView.contentWidth(),p=M(this),g=p&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth"),_=this.option("rtlEnabled"),v=this._isRtlParentStyle();function y(e){return(0,l.isString)(e)&&"%"===e.slice(-1)}function x(e,t,n,i){if(e){var o=e.width;o&&(i=y(o)),i?(d.columnOption(e.index,"visibleWidth",t),d.columnOption(e.index,"width",(t/n*100).toFixed(3)+"%")):(d.columnOption(e.index,"visibleWidth",null),d.columnOption(e.index,"width",t))}}t=e-u.startPosX,(p||v)&&_&&(t=-t),r=u.currentColumnWidth+t;var b=c[u.currentColumnIndex];if(s=r>=(o=b&&b.minWidth||h),p&&(n=u.nextColumnWidth-t,o=(a=c[u.nextColumnIndex])&&a.minWidth||h,s=s&&n>=o),s){if(d.beginUpdate(),x(b,r=Math.floor(r),f=function(e,t){if(t.every((function(e){return e.width}))){var n=t.reduce((function(e,t){return y(t.width)&&(e+=parseFloat(t.width)),e}),0);n>100&&(e=e/n*100)}return e}(f,c),g),p)x(a,n=Math.floor(n),f,g);else{var w=this._columnHeadersView.getColumnWidths();if(w[u.currentColumnIndex]=r,!(w.reduce((function(e,t){return e+t}),0)>this._rowsView.contentWidth())){var C=m.default.getLastResizableColumnIndex(c);C>=0&&d.columnOption(c[C].index,"visibleWidth","auto")}for(var S=0;S<w.length;S++)c[S]&&c[S]!==b&&void 0===c[S].width&&d.columnOption(c[S].index,"width",w[S])}if(d.endUpdate(),!p){this.component.updateDimensions();var k=this.component.getScrollable();if(k&&v){var D=(0,i.getWidth)(k.$content())-(0,i.getWidth)(k.container())-this._scrollRight;k.scrollTo({left:D})}}}return s},_subscribeToCallback:function(e,t){e.add(t),this._subscribesToCallbacks.push({callback:e,handler:t})},_unsubscribeFromCallbacks:function(){for(var e=0;e<this._subscribesToCallbacks.length;e++){var t=this._subscribesToCallbacks[e];t.callback.remove(t.handler)}this._subscribesToCallbacks=[]},_unsubscribes:function(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()},_init:function(){var e=this,t=function(){e._isResizing||e.pointsByColumns(null)},n=function(t){e._scrollLeft!==t.left&&(e._scrollLeft=t.left,e.pointsByColumns(null))};e._columnsSeparatorView=e.getView("columnsSeparatorView"),e._columnHeadersView=e.getView("columnHeadersView"),e._trackerView=e.getView("trackerView"),e._rowsView=e.getView("rowsView"),e._columnsController=e.getController("columns"),e._tablePositionController=e.getController("tablePosition"),e._$parentContainer=e.component.$element(),e._draggingHeaderView=e.component.getView("draggingHeaderView"),e._subscribeToCallback(e._columnHeadersView.renderCompleted,t),e._subscribeToCallback(e._columnHeadersView.resizeCompleted,t),e._subscribeToCallback(e._columnsSeparatorView.renderCompleted,(function(){e._unsubscribeFromEvents(),e._subscribeToEvents()})),e._subscribeToCallback(e._rowsView.renderCompleted,(function(){e._rowsView.scrollChanged.remove(n),e._rowsView.scrollChanged.add(n)}));var i=0!==e._rowsView.getScrollbarWidth(),o=0;e._subscribeToCallback(e.getController("tablePosition").positionChanged,(function(t){if(e._isResizing&&!e._rowsView.isResizing){var n=0!==e._rowsView.getScrollbarWidth();i!==n||o&&o!==t.height?(i=n,o=t.height,e.component.updateDimensions()):e._rowsView.updateFreeSpaceRowHeight()}o=t.height}))},optionChanged:function(e){this.callBase(e),"allowColumnResizing"===e.name&&(e.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())},isResizing:function(){return this._isResizing},init:function(){this._subscribesToCallbacks=[],D(this)&&this._init()},pointsByColumns:function(e){if(void 0===e)return this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns;this._pointsByColumns=e},dispose:function(){this._unsubscribes(),this.callBase()}}),B=g.default.ViewController.inherit({update:function(e){var t=this,n={},i=t._columnHeadersView.element(),o=i&&i.offset(),a=o&&o.top||0,r=(0,l.isDefined)(e)?Math.abs(e-a):0,s=t._columnHeadersView?t._columnHeadersView.getHeight():0,u=t._rowsView.getScrollbarWidth(!0),d=t._rowsView?t._rowsView.height()-u:0,c=t.component.getController("columnsResizer"),h=t.component.getView("draggingHeaderView");n.height=s,(!1!==c.isResizing()||h.isDragging())&&(n.height+=d-r),null!==e&&i&&i.length&&(n.top=i[0].offsetTop+r),t.positionChanged.fire(n)},init:function(){var e=this;e.callBase(),e._columnHeadersView=this.getView("columnHeadersView"),e._rowsView=this.getView("rowsView"),e._pagerView=this.getView("pagerView"),e._rowsView.resizeCompleted.add((function(){if(e.option("allowColumnResizing")){var t=e.getController("columnsResizer")._targetPoint;e.update(t?t.y:null)}}))},ctor:function(e){this.callBase(e),this.positionChanged=(0,s.default)()}}),V={views:{columnsSeparatorView:A,blockSeparatorView:O,draggingHeaderView:P,trackerView:T},controllers:{draggingHeader:g.default.ViewController.inherit({_generatePointsByColumns:function(e){var t=this;return m.default.getPointsByColumns(e.columnElements,(function(n){return t._pointCreated(n,e.columns,e.targetDraggingPanel.getName(),e.sourceColumn)}),e.isVerticalOrientation,e.startColumnIndex)},_pointCreated:function(e,t,n,i){var o=t[e.columnIndex],a=t[e.columnIndex-1];switch(n){case"columnChooser":return!0;case"headers":return i&&!i.allowReordering||(!o||!o.allowReordering)&&(!a||!a.allowReordering);default:return 0===t.length}},_subscribeToEvents:function(e,t){var n=this;(0,u.each)(t,(function(i,a){if(a)for(var s,l=a.getRowCount?a.getRowCount():1,d=a.getName(),c=function(i,l){if(l){var u=(0,o.default)(l),c=s[i];a.allowDragging(c,d,t)&&(u.addClass(n.addWidgetPrefix(w)),r.default.on(u,(0,h.addNamespace)(p.start,k),n.createAction((function(a){var r=a.event,s=(0,h.eventData)(r);e.dragHeader({deltaX:s.x-(0,o.default)(r.currentTarget).offset().left,deltaY:s.y-(0,o.default)(r.currentTarget).offset().top,sourceColumn:c,index:c.index,columnIndex:i,columnElement:u,sourceLocation:d,draggingPanels:t,rowIndex:n._columnsController.getRowIndex(c.index,!0)})}))),r.default.on(u,(0,h.addNamespace)(p.move,k),{that:e},n.createAction(e.moveHeader)),r.default.on(u,(0,h.addNamespace)(p.end,k),{that:e},n.createAction(e.dropHeader)))}},f=0;f<l;f++){var g=a.getColumnElements(f)||[];g.length&&(s=a.getColumns(f)||[],(0,u.each)(g,c))}}))},_unsubscribeFromEvents:function(e,t){var n=this;(0,u.each)(t,(function(e,t){if(t){var i=t.getColumnElements()||[];(0,u.each)(i,(function(e,t){var i=(0,o.default)(t);r.default.off(i,(0,h.addNamespace)(p.start,k)),r.default.off(i,(0,h.addNamespace)(p.move,k)),r.default.off(i,(0,h.addNamespace)(p.end,k)),i.removeClass(n.addWidgetPrefix(w))}))}}))},_getSeparator:function(e){return"headers"===e?this._columnsSeparatorView:this._blockSeparatorView},hideSeparators:function(e){var t=this._blockSeparatorView,n=this._columnsSeparatorView;this._animationColumnIndex=null,t&&t.hide(),"block"!==e&&n&&n.hide()},init:function(){var e=this;e.callBase(),e._columnsController=e.getController("columns"),e._columnHeadersView=e.getView("columnHeadersView"),e._columnsSeparatorView=e.getView("columnsSeparatorView"),e._draggingHeaderView=e.getView("draggingHeaderView"),e._rowsView=e.getView("rowsView"),e._blockSeparatorView=e.getView("blockSeparatorView"),e._headerPanelView=e.getView("headerPanel"),e._columnChooserView=e.getView("columnChooserView");var t=function(){if(e._draggingHeaderView){var t=[e._columnChooserView,e._columnHeadersView,e._headerPanelView];e._unsubscribeFromEvents(e._draggingHeaderView,t),e._subscribeToEvents(e._draggingHeaderView,t)}};e._columnHeadersView.renderCompleted.add(t),e._headerPanelView&&e._headerPanelView.renderCompleted.add(t),e._columnChooserView&&e._columnChooserView.renderCompleted.add(t)},allowDrop:function(e){return this._columnsController.allowMoveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)},drag:function(e){var t=e.sourceIndex,n=e.sourceLocation,i=e.sourceColumnElement,o=this._columnHeadersView,a=this._rowsView;i&&(i.css({opacity:.5}),"headers"===n&&(o&&o.setRowsOpacity(t,.5),a&&a.setRowsOpacity(t,.5)))},dock:function(e){var t=this,n=(0,l.isObject)(e.targetColumnIndex)?e.targetColumnIndex.columnIndex:e.targetColumnIndex,i=e.sourceLocation,o=e.targetLocation,a=t._getSeparator(o),r=n>=0;t._columnHeadersView.element().find(".dx-header-row").toggleClass(t.addWidgetPrefix(S),"headers"!==i&&"headers"===o&&!r),a&&(t.allowDrop(e)&&r?"group"===o||"columnChooser"===o?t._animationColumnIndex!==n&&(t.hideSeparators(),a.element()[e.isLast?"insertAfter":"insertBefore"](e.targetColumnElement),t._animationColumnIndex=n,a.show(o)):(t.hideSeparators("block"),t.getController("tablePosition").update(e.posY),a.moveByX(e.posX-a.width()),a.show()):t.hideSeparators())},drop:function(e){var t=e.sourceColumnElement;if(t&&(t.css({opacity:""}),this._columnHeadersView.setRowsOpacity(e.sourceIndex,""),this._rowsView.setRowsOpacity(e.sourceIndex,""),this._columnHeadersView.element().find(".dx-header-row").removeClass(this.addWidgetPrefix(S))),this.allowDrop(e)){var n=this._getSeparator(e.targetLocation);n&&n.hide(),this._columnsController.moveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}}),tablePosition:B,columnsResizer:R},extenders:{views:{rowsView:{_needUpdateRowHeight:function(e){var t=this.option("wordWrapEnabled"),n=this.getController("columnsResizer"),i=n.isResizing();return this.callBase.apply(this,arguments)||e>0&&t&&i}}},controllers:{editorFactory:{renderFocusOverlay:function(){if(!this.getController("columnsResizer").isResizing())return this.callBase.apply(this,arguments)}}}}};t.columnsResizingReorderingModule=V},10980:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.ColumnsView=void 0;var o=n(58664),a=D(n(68374)),r=D(n(73349)),s=n(58201),l=D(n(55994)),u=n(97906),d=D(n(93786)),c=n(95429),h=n(85272),f=D(n(47810)),p=n(20576),g=n(80968),m=n(6415),_=n(35922),v=n(37518),y=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(95479)),x=n(13306),b=D(n(12310)),w=D(n(13615)),C=D(n(78725)),S=n(62754),k=n(60137);function D(e){return e&&e.__esModule?e:{default:e}}var I="scroll-container",T="dx-master-detail-row",E="0.0001px",A="dxCellHintVisible",O={render:function(e){e.container.append(e.content)}},P=function(e){return"auto"===e?"":(0,_.isNumeric)(e)?e+"px":e},M=function(e,t,n){e.style.width=e.style.maxWidth="auto"===t.width?"":n},R=b.default.View.inherit(C.default).inherit({_createScrollableOptions:function(){var e=this.option("scrolling"),t=this.option("scrolling.useNative"),n=(0,x.extend)({},e,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===t&&(t=!0),"auto"===t?(delete n.useNative,delete n.useSimulatedScrollbar):(n.useNative=!!t,n.useSimulatedScrollbar=!t),n},_updateCell:function(e,t){t.rowType&&this._cellPrepared(e,t)},_createCell:function(e){var t=e.column,n=t.alignment||(0,v.getDefaultAlignment)(this.option("rtlEnabled")),i=r.default.createElement("td");i.style.textAlign=n;var o=(0,a.default)(i);return"data"===e.rowType&&t.headerId&&!t.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",t.headerId,o),t.cssClass&&o.addClass(t.cssClass),"expand"===t.command&&(o.addClass(t.cssClass),o.addClass(this.addWidgetPrefix("group-space"))),t.colspan>1?o.attr("colSpan",t.colspan):!t.isBand&&"auto"!==t.visibleWidth&&this.option("columnAutoWidth")&&((t.width||t.minWidth)&&(i.style.minWidth=P(t.minWidth||t.width)),t.width&&M(i,t,P(t.width))),o},_createRow:function(e,t){t=t||"tr";var n=(0,a.default)("<".concat(t,">")).addClass("dx-row");return this.setAria("role","row",n),n},_isAltRow:function(e){return e&&e.dataIndex%2==1},_createTable:function(e,t){var n=this,i=(0,a.default)("<table>").addClass(n.addWidgetPrefix("table")).addClass(n.addWidgetPrefix("table-fixed"));if(e&&!t?(i.append(n._createColGroup(e)),f.default.safari&&i.append((0,a.default)("<thead>").append("<tr>")),n.setAria("role","presentation",i)):n.setAria("hidden",!0,i),this.setAria("role","presentation",(0,a.default)("<tbody>").appendTo(i)),t)return i;f.default.mozilla&&l.default.on(i,"mousedown","td",(function(e){e.ctrlKey&&e.preventDefault()})),n.option("cellHintEnabled")&&l.default.on(i,"mousemove",".dx-row > td",this.createAction((function(e){var t=e.event,i=(0,a.default)(t.target),o=(0,a.default)(t.currentTarget),r=o.parent(),s=r.hasClass("dx-data-row"),l=r.hasClass("dx-header-row"),u=r.hasClass("dx-group-row"),d=r.hasClass(T),c=r.hasClass(n.addWidgetPrefix("filter-row")),h=n._columnsController.getVisibleColumns(),f=r.data("options"),p=o.index(),g=f&&f.cells&&f.cells[p],m=g?g.column:h[p];d||c||s&&(!s||!m||m.cellTemplate)||l&&(!l||!m||m.headerCellTemplate)||u&&(!u||!m||void 0!==m.groupIndex&&m.groupCellTemplate)||(i.data(A)&&(i.removeAttr("title"),i.data(A,!1)),i[0].scrollWidth-i[0].clientWidth>0&&!(0,_.isDefined)(i.attr("title"))&&(i.attr("title",i.text()),i.data(A,!0)))})));var o=function(e){var t=(0,a.default)(e.currentTarget),i=(0,a.default)(e.target).closest(".dx-field-item-content"),o=t.parent(),r=o.data("options"),s=r&&r.cells&&r.cells[t.index()];if(t.closest("table").is(e.delegateTarget)){var l=(0,x.extend)({},s,{cellElement:(0,m.getPublicElement)(t),event:e,eventType:e.type});if(l.rowIndex=n.getRowIndex(o),i.length){var u=i.data("dx-form-item");u.column&&(l.column=u.column,l.columnIndex=n._columnsController.getVisibleIndex(l.column.index))}return l}};return l.default.on(i,"mouseover",".dx-row > td",(function(e){var t=o(e);t&&n.executeAction("onCellHoverChanged",t)})),l.default.on(i,"mouseout",".dx-row > td",(function(e){var t=o(e);t&&n.executeAction("onCellHoverChanged",t)})),l.default.on(i,c.name,".dx-row > td",(function(e){var t=o(e);t&&n.executeAction("onCellClick",t)})),l.default.on(i,h.name,".dx-row > td",(function(e){var t=o(e);t&&n.executeAction("onCellDblClick",t)})),function(e,t){var n,i,o;function r(e){return setTimeout((function(){n=i=null}),e)}l.default.on(t,"touchstart touchend",".dx-row",(function(e){clearTimeout(o),"touchstart"===e.type?(n=e.target,i=e.currentTarget,o=r(1e3)):o=r()})),l.default.on(t,[c.name,h.name,d.default.down].join(" "),".dx-row",{useNative:e._isNativeClick()},e.createAction((function(t){var o=t.event;n&&(o.target=n,o.currentTarget=i),(0,a.default)(o.target).closest("a").length||(t.rowIndex=e.getRowIndex(o.currentTarget),t.rowIndex>=0&&(t.rowElement=(0,m.getPublicElement)((0,a.default)(o.currentTarget)),t.columns=e.getColumns(),o.type===d.default.down?e._rowPointerDown(t):o.type===c.name?e._rowClick(t):e._rowDblClick(t)))})))}(n,i),i},_isNativeClick:p.noop,_rowPointerDown:p.noop,_rowClick:p.noop,_rowDblClick:p.noop,_createColGroup:function(e){for(var t=(0,a.default)("<colgroup>"),n=0;n<e.length;n++)for(var i=e[n].colspan||1,o=0;o<i;o++)t.append(this._createCol(e[n]));return t},_createCol:function(e){var t=e.visibleWidth||e.width;"adaptiveHidden"===t&&(t=E);var n=(0,a.default)("<col>");return(0,g.setWidth)(n,t),n},renderDelayedTemplates:function(e){var t=this._delayedTemplates,n=t.filter((function(e){return!e.async})),i=t.filter((function(e){return e.async}));this._delayedTemplates=[],this._renderDelayedTemplatesCore(n,!1,e),this._renderDelayedTemplatesCoreAsync(i)},_renderDelayedTemplatesCoreAsync:function(e){var t=this;e.length&&(0,s.getWindow)().setTimeout((function(){t._renderDelayedTemplatesCore(e,!0)}))},_renderDelayedTemplatesCore:function(e,t,n){for(var i=new Date;e.length;){var o=e.shift(),s=o.options,l=r.default.getDocument();if(t&&!(0,a.default)(s.container).closest(l).length||(n&&(s.change=n),o.template.render(s)),t&&new Date-i>30){this._renderDelayedTemplatesCoreAsync(e);break}}!e.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()},_processTemplate:function(e){var t,n=this;if(e&&e.render&&!(0,_.isRenderer)(e))t={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model,t.change),t.deferred&&t.deferred.resolve()}};else if((0,_.isFunction)(e))t={render:function(t){var n=e((0,m.getPublicElement)(t.container),t.model,t.change);n&&(n.nodeType||(0,_.isRenderer)(n))&&t.container.append(n),t.deferred&&t.deferred.resolve()}};else{var i=(0,_.isString)(e)?e:(0,a.default)(e).attr("id");i?(n._templatesCache[i]||(n._templatesCache[i]=n.getTemplate(e)),t=n._templatesCache[i]):t=n.getTemplate(e)}return t},renderTemplate:function(e,t,n,i,o){var a=this,r=a._processTemplate(t,n),s=n.column,l="data"===n.rowType,u=new S.Deferred,d={container:e,model:n,deferred:u,onRendered:function(){u.resolve()}};if(r){n.component=a.component;var c=s&&(s.renderAsync&&l||a.option("renderAsync")&&(!1!==s.renderAsync&&(s.command||s.showEditorAlways)&&l||"filter"===n.rowType));!r.allowRenderToDetachedContainer&&!i||c?a._delayedTemplates.push({template:r,options:d,async:c}):r.render(d),o&&(o.templateDeferreds=o.templateDeferreds||[],o.templateDeferreds.push(u))}else u.reject();return u.promise()},_getBodies:function(e){return(0,a.default)(e).children("tbody").not(".dx-header").not(".dx-footer")},_wrapRowIfNeed:function(e,t){var n=(this.option().rowTemplate||this.option("dataRowTemplate"))&&this._getBodies(this._tableElement||e);if(n&&n.filter(".dx-row").length){var i=(0,a.default)("<tbody>").addClass(t.attr("class"));return this.setAria("role","presentation",i),i.append(t)}return t},_appendRow:function(e,t,n){(n=n||O).render({content:t,container:e})},_resizeCore:function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},_renderCore:function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates(e)},_renderTable:function(e){(e=e||{}).columns=this._columnsController.getVisibleColumns();var t=e.change&&e.change.changeType,n=this._createTable(e.columns,"append"===t||"prepend"===t||"update"===t);return this._renderRows(n,e),n},_renderRows:function(e,t){for(var n=this._getRows(t.change),i=t.change&&t.change.columnIndices||[],o=t.change&&t.change.changeTypes||[],a=0;a<n.length;a++)this._renderRow(e,(0,x.extend)({row:n[a],columnIndices:i[a],changeType:o[a]},t))},_renderRow:function(e,t){t.columnIndices||(t.row.cells=[]);var n=this._createRow(t.row),i=this._wrapRowIfNeed(e,n);"remove"!==t.changeType&&this._renderCells(n,t),this._appendRow(e,i);var o=(0,x.extend)({columns:t.columns},t.row);this._addWatchMethod(o,t.row),this._rowPrepared(i,o,t.row)},_needRenderCell:function(e,t){return!t||t.indexOf(e)>=0},_renderCells:function(e,t){for(var n=0,i=t.row,o=t.columns,a=0;a<o.length;a++)this._needRenderCell(a,t.columnIndices)&&this._renderCell(e,(0,x.extend)({column:o[a],columnIndex:n,value:i.values&&i.values[n],oldValue:i.oldValues&&i.oldValues[n]},t)),o[a].colspan>1?n+=o[a].colspan:n++},_updateCells:function(e,t,n){var i=e.children(),o=t.children(),a=this.option("highlightChanges"),r=this.addWidgetPrefix("cell-updated-animation");n.forEach((function(e,t){var n=i.eq(e),s=o.eq(t);n.replaceWith(s),a&&!s.hasClass("dx-command-expand")&&s.addClass(r)})),function(e,t){if(e&&t){var n,i=e.attributes,o=t.attributes;for(n=0;n<i.length;n++){var a=i[n].nodeName;t.hasAttribute(a)||e.removeAttribute(a)}for(n=0;n<o.length;n++)e.setAttribute(o[n].nodeName,o[n].nodeValue)}}(e.get(0),t.get(0))},_setCellAriaAttributes:function(e,t){if("freeSpace"!==t.rowType){this.setAria("selected",!1,e),this.setAria("role","gridcell",e);var n=this._columnsController.getColumnIndexOffset(),i=t.columnIndex+n+1;this.setAria("colindex",i,e)}},_renderCell:function(e,t){var n=this._getCellOptions(t);t.columnIndices?t.row.cells&&(t.row.cells[n.columnIndex]=n):t.row.cells.push(n);var i=this._createCell(n);return this._setCellAriaAttributes(i,n),this._renderCellContent(i,n),e.get(0).appendChild(i.get(0)),i},_renderCellContent:function(e,t){var n=this,i=this._getCellTemplate(t);(0,S.when)(!i||this.renderTemplate(e,i,t)).done((function(){n._updateCell(e,t)}))},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(e){var t={column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType,isAltRow:this._isAltRow(e.row)};return this._addWatchMethod(t),t},_addWatchMethod:function(e,t){if(this.option("repaintChangesOnly")){var n=[];return(t=t||e).watch=t.watch||function(e,i){var o=e(t.data),a=function(n){var a=e(t.data);JSON.stringify(o)!==JSON.stringify(a)&&(n&&i(a,n),o=a)};return n.push(a),function(){var e=n.indexOf(a);e>=0&&n.splice(e,1)}},t.update=t.update||function(t,i){t&&(this.data=e.data=t.data,this.rowIndex=e.rowIndex=t.rowIndex,this.dataIndex=e.dataIndex=t.dataIndex,this.isExpanded=e.isExpanded=t.isExpanded,e.row&&!i&&(e.row=t)),n.forEach((function(e){e(t)}))},t!==e&&(e.watch=t.watch.bind(t)),e}},_cellPrepared:function(e,t){t.cellElement=(0,m.getPublicElement)((0,a.default)(e)),this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){(0,u.data)(e.get(0),"options",t),t.rowElement=(0,m.getPublicElement)(e),this.executeAction("onRowPrepared",t)},_columnOptionChanged:function(e){var t=e.optionNames;if(w.default.checkChanges(t,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),i=y.map(n,(function(e){var t=e.visibleWidth||e.width;return(0,_.isDefined)(t)?t:"auto"}));this.setColumnWidths({widths:i,optionNames:t})}else this._requireReady||this.render()},getCellIndex:function(e){return e.length?e[0].cellIndex:-1},getTableElements:function(){return this._tableElement||(0,a.default)()},getTableElement:function(){return this._tableElement},setTableElement:function(e){this._tableElement=e},optionChanged:function(e){switch(this.callBase(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0}},init:function(){var e=this;e._scrollLeft=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._delayedTemplates=[],e._templatesCache={},e.createAction("onCellClick"),e.createAction("onRowClick"),e.createAction("onCellDblClick"),e.createAction("onRowDblClick"),e.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(t){e._afterRowPrepared(t)}}),e._columnsController.columnsChanged.add(e._columnOptionChanged.bind(e)),e._dataController&&e._dataController.changed.add(e._handleDataChanged.bind(e))},_afterRowPrepared:p.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},_updateScrollLeftPosition:function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},scrollTo:function(e){var t=this.element(),n=t&&t.children("."+this.addWidgetPrefix(I)).not("."+this.addWidgetPrefix("content-fixed"));(0,_.isDefined)(e)&&(0,_.isDefined)(e.left)&&this._scrollLeft!==e.left&&(this._scrollLeft=e.left,n&&n.scrollLeft(e.left))},_wrapTableInScrollContainer:function(e){var t=this,n=(0,a.default)("<div>"),i=this.option("scrolling.useNative");return(!1===i||"auto"===i&&!k.nativeScrolling)&&n.addClass(this.addWidgetPrefix("scrollable-simulated")),l.default.on(n,"scroll",(function(){var e=n.scrollLeft();e!==t._scrollLeft&&t.scrollChanged.fire({left:e},t.name)})),n.addClass(this.addWidgetPrefix("content")).addClass(this.addWidgetPrefix(I)).append(e).appendTo(this.element()),this.setAria("role","presentation",n),n},_updateContent:function(e){this.setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:p.noop,_getWidths:function(e){var t,n=[];return e&&y.each(e,(function(e,i){if(t=i.offsetWidth,i.getBoundingClientRect){var o=(0,v.getBoundingRect)(i);o.width>t-1&&(t=o.width)}n.push(t)})),n},getColumnWidths:function(e){var t,n,i=[];if((this.option("forceApplyBindings")||p.noop)(),e=e||this.getTableElement()){t=e.children("tbody:not(.dx-header)").children();for(var o=0;o<t.length;o++){var a=t.eq(o),r="none"!==a.get(0).style.display&&!a.hasClass("dx-state-invisible");if(!a.is(".dx-group-row")&&!a.is("."+T)&&r){n=a.children("td");break}}i=this._getWidths(n)}return i},getVisibleColumnIndex:function(e,t){return e},setColumnWidths:function(e){var t,n,i,o,a=e.widths,r=e.$tableElement,s=e.columns,l=e.fixed,u=this.option("columnAutoWidth");if((r=r||this.getTableElement())&&r.length&&a){o=0,t=r.children("colgroup").children("col"),(0,g.setWidth)(t,"auto"),s=s||this.getColumns(null,r);for(var d=0;d<s.length;d++){if(u&&!l&&(n=s[d].width)&&!s[d].command){n=s[d].visibleWidth||n,n=P(n),i=P(s[d].minWidth||n);for(var c=c||r.children().children(".dx-row").not(".dx-group-row").not("."+T),h=0;h<c.length;h++){var f=this.getVisibleColumnIndex(d,h),p=c[h].cells[f];p&&(M(p,s[d],n),p.style.minWidth=i)}}s[d].colspan?o+=s[d].colspan:("adaptiveHidden"===(n=a[o])&&(n=E),"number"==typeof n&&(n=n.toFixed(3)+"px"),(0,g.setWidth)(t.eq(o),(0,_.isDefined)(n)?n:"auto"),o++)}}},getCellElements:function(e){return this._getCellElementsCore(e)},_getCellElementsCore:function(e){return this._getRowElements().eq(e).children()},_getCellElement:function(e,t){var n,i=this.getCellElements(e),o=this._getVisibleColumnIndex(i,e,t);if(i.length&&o>=0&&(n=i.eq(o)),n&&n.length)return n},_getRowElement:function(e){var t=this,n=(0,a.default)(),i=t.getTableElements();if(y.each(i,(function(i,o){n=n.add(t._getRowElements((0,a.default)(o)).eq(e))})),n.length)return n},getCellElement:function(e,t){return(0,m.getPublicElement)(this._getCellElement(e,t))},getRowElement:function(e){var t=this._getRowElement(e),n=[];if(t&&!(0,m.getPublicElement)(t).get)for(var i=0;i<t.length;i++)n.push(t[i]);else n=t;return n},_getVisibleColumnIndex:function(e,t,n){if((0,_.isString)(n)){var i=this._columnsController.columnOption(n,"index");return this._columnsController.getVisibleIndex(i)}return n},getColumnElements:function(){},getColumns:function(e){return this._columnsController.getVisibleColumns(e)},getCell:function(e,t){var n,i=t||this._getRowElements();if(i.length>0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&"virtual"!==this.option("scrolling.rowRenderingMode")&&(e.rowIndex=e.rowIndex<i.length?e.rowIndex:i.length-1),(n=this.getCellElements(e.rowIndex))&&n.length>0))return n.eq(n.length>e.columnIndex?e.columnIndex:n.length-1)},getRowsCount:function(){var e=this.getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElementsCore:function(e){if(e=e||this.getTableElement()){var t=(this.option().rowTemplate||this.option("dataRowTemplate"))&&e.find("> tbody.dx-row");return t&&t.length?t:e.find("> tbody > .dx-row, > .dx-row")}return(0,a.default)()},_getRowElements:function(e){return this._getRowElementsCore(e)},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this.element(),n=this.option("rtlEnabled");t&&t.css({paddingLeft:n?e:"",paddingRight:n?"":e})},isScrollbarVisible:function(e){var t=this.element(),n=this._tableElement;return!(!t||!n)&&(e?(0,o.getOuterWidth)(n)-(0,o.getWidth)(t)>0:(0,o.getOuterHeight)(n)-(0,o.getHeight)(t)>0)}});t.ColumnsView=R},1826:function(e,t,n){t.contextMenuModule=void 0;var i=u(n(68374)),o=n(6415),a=n(20576),r=n(95479),s=u(n(12310)),l=u(n(10042));function u(e){return e&&e.__esModule?e:{default:e}}var d={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},c=["columnHeadersView","rowsView","footerView","headerPanel"],h={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:s.default.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(e){if(!e)return!1;var t,n,a,s,l=this,u=(0,i.default)(e.target);return(0,r.each)(c,(function(){var i=l.getView(this);if((t=i&&i.element())&&(t.is(u)||t.find(u).length)){var r;a=u.closest(".dx-row > td, .dx-row > tr"),n=a.parent();var c=i.getRowIndex(n),h=a[0]&&a[0].cellIndex,f=n.data("options"),p={event:e,targetElement:(0,o.getPublicElement)(u),target:d[this],rowIndex:c,row:i._getRows()[c],columnIndex:h,column:null==f||null===(r=f.cells)||void 0===r?void 0:r[h].column};if(p.items=i.getContextMenuItems&&i.getContextMenuItems(p),l.executeAction("onContextMenuPreparing",p),l._contextMenuPrepared(p),s=p.items)return!1}})),s},_contextMenuPrepared:a.noop})},views:{contextMenuView:s.default.View.inherit({_renderCore:function(){var e=this,t=e.element().addClass("dx-context-menu");this.setAria("role","presentation",t),this._createComponent(t,l.default,{onPositioning:function(t){var n=t.event,i=t.component,o=e.getController("contextMenu").getContextMenuItems(n);o?(i.option("items",o),n.stopPropagation()):t.cancel=!0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:e.getWidgetContainerClass(),target:e.component.$element()})}})}};t.contextMenuModule=h},46958:function(e,t,n){t.dataControllerModule=void 0;var i=m(n(68374)),o=m(n(12310)),a=m(n(13615)),r=m(n(26562)),s=m(n(88036)),l=m(n(96688)),u=n(20576),d=n(95479),c=n(35922),h=n(13306),f=m(n(53305)),p=n(62754),g=n(34671);function m(e){return e&&e.__esModule?e:{default:e}}var _,v,y={defaultOptions:function(){return{loadingTimeout:0,dataSource:null,cacheEnabled:!0,repaintChangesOnly:!1,highlightChanges:!1,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}},controllers:{data:o.default.Controller.inherit({}).include(f.default).inherit((_=function(e,t,n){var i=e._dataSource;if(i){if(void 0!==n){if(e._getPagingOptionValue(t)!==n){"pageSize"===t&&i.pageIndex(0),i[t](n),e._skipProcessingPagingChange=!0,e.option("paging."+t,n),e._skipProcessingPagingChange=!1;var o=i.pageIndex();return i["pageIndex"===t?"load":"reload"]().done((function(){return e.pageChanged.fire(o)}))}return(0,p.Deferred)().resolve().promise()}return i[t]()}return 0},v={init:function(){var e=this,t=this;t._items=[],t._columnsController=t.getController("columns"),t._currentOperationTypes=null,t._dataChangedHandler=function(n){t._currentOperationTypes=e._dataSource.operationTypes(),t._handleDataChanged(n),t._currentOperationTypes=null},t._columnsChangedHandler=t._handleColumnsChanged.bind(t),t._loadingChangedHandler=t._handleLoadingChanged.bind(t),t._loadErrorHandler=t._handleLoadError.bind(t),t._customizeStoreLoadOptionsHandler=t._handleCustomizeStoreLoadOptions.bind(t),t._changingHandler=t._handleChanging.bind(t),t._dataPushedHandler=t._handleDataPushed.bind(t),t._columnsController.columnsChanged.add(t._columnsChangedHandler),t._isLoading=!1,t._isCustomLoading=!1,t._repaintChangesOnly=void 0,t._changes=[],t.createAction("onDataErrorOccurred"),t.dataErrorOccurred.add((function(e){return t.executeAction("onDataErrorOccurred",{error:e})})),t._refreshDataSource()},_getPagingOptionValue:function(e){return this._dataSource[e]()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged","pushed"]},callbackFlags:function(e){if("dataErrorOccurred"===e)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},reset:function(){this._columnsController.reset(),this._items=[],this._refreshDataSource()},optionChanged:function(e){var t,n=this;function i(){e.handled=!0}if("dataSource"===e.name&&e.name===e.fullName&&(e.value===e.previousValue||n.option("columns")&&Array.isArray(e.value)&&Array.isArray(e.previousValue))){if(e.value!==e.previousValue){var o=n.store();o&&(o._array=e.value)}return i(),void n.refresh(n.option("repaintChangesOnly"))}switch(e.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":i();break;case"remoteOperations":case"keyExpr":case"dataSource":case"scrolling":i(),n.reset();break;case"paging":if((t=n.dataSource())&&n._setPagingOptions(t)){var a=t.pageIndex();t.load().done((function(){return n.pageChanged.fire(a)}))}i();break;case"rtlEnabled":n.reset();break;case"columns":(t=n.dataSource())&&t.isLoading()&&e.name===e.fullName&&(this._useSortingGroupingFromColumns=!0,t.load());break;default:n.callBase(e)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(e){return this.combinedFilter(void 0,e)},combinedFilter:function(e,t){var n=this,i=n._dataSource,o=n._columnsController;if(i){void 0===e&&(e=i.filter());var r=n._calculateAdditionalFilter();r&&(o.isDataSourceApplied()||o.isAllDataTypesDefined())&&(e=a.default.combineFilters([r,e])),e=o.updateFilter(e,t||i.remoteOperations().filtering)}return e},waitReady:function(){return this._updateLockCount?(this._readyDeferred=new p.Deferred,this._readyDeferred):(0,p.when)()},_endUpdateCore:function(){var e=this._changes;if(e.length){this._changes=[];var t=e.every((function(e){return e.repaintChangesOnly}));this.updateItems(1===e.length?e[0]:{repaintChangesOnly:t})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)},_handleCustomizeStoreLoadOptions:function(e){var t=this._columnsController,n=this._dataSource,i=e.storeLoadOptions;e.isCustomLoading&&!i.isLoadingAll||(i.filter=this.combinedFilter(i.filter),t.isDataSourceApplied()||t.updateColumnDataTypes(n),this._columnsUpdating=!0,t.updateSortingGrouping(n,!this._useSortingGroupingFromColumns),this._columnsUpdating=!1,i.sort=t.getSortDataSourceParameters(),i.group=t.getGroupDataSourceParameters(),n.sort(i.sort),n.group(i.group),i.sort=t.getSortDataSourceParameters(!n.remoteOperations().sorting),e.group=t.getGroupDataSourceParameters(!n.remoteOperations().grouping))},_handleColumnsChanged:function(e){var t,n,i,o=this,r=e.changeTypes,s=e.optionNames;if(r.sorting||r.grouping)o._dataSource&&!o._columnsUpdating&&(o._dataSource.group(o._columnsController.getGroupDataSourceParameters()),o._dataSource.sort(o._columnsController.getSortDataSourceParameters()),o.reload());else if(r.columns&&(n=o._columnsController.columnOption(e.columnIndex,"filterValues"),(s.filterValues||s.filterType&&Array.isArray(n)||s.filterValue||s.selectedFilterOperation||s.allowFiltering)&&(t=o._columnsController.columnOption(e.columnIndex,"filterValue"),(Array.isArray(n)||void 0===e.columnIndex||(0,c.isDefined)(t)||!s.selectedFilterOperation||s.filterValue)&&(o._applyFilter(),i=!0)),o._needApplyFilter||a.default.checkChanges(s,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])||o._columnsController.columnsChanged.add((function t(){o._columnsController.columnsChanged.remove(t),o.updateItems({virtualColumnsScrolling:e.changeTypes.virtualColumnsScrolling})})),(0,c.isDefined)(s.visible))){var l=o._columnsController.columnOption(e.columnIndex);l&&((0,c.isDefined)(l.filterValue)||(0,c.isDefined)(l.filterValues))&&(o._applyFilter(),i=!0)}!i&&r.filtering&&o.reload()},_handleDataChanged:function(e){var t=this,n=t._dataSource,i=t._columnsController,o=!1;this._useSortingGroupingFromColumns=!1,n&&!t._isDataSourceApplying&&(t._isDataSourceApplying=!0,(0,p.when)(t._columnsController.applyDataSource(n)).done((function(){t._isLoading&&t._handleLoadingChanged(!1),o&&e&&e.isDelayed&&(e.isDelayed=!1),t._isDataSourceApplying=!1;var n,i=t._needApplyFilter;t._needApplyFilter=!1,i&&!t._isAllDataTypesDefined&&(n=t._calculateAdditionalFilter())&&n.length?(l.default.log("W1005",t.component.NAME),t._applyFilter()):t.updateItems(e,!0)})).fail((function(){t._isDataSourceApplying=!1})),t._isDataSourceApplying&&(o=!0,t._handleLoadingChanged(!0)),t._needApplyFilter=!t._columnsController.isDataSourceApplied(),t._isAllDataTypesDefined=i.isAllDataTypesDefined())},_handleLoadingChanged:function(e){this._isLoading=e,this._fireLoadingChanged()},_handleLoadError:function(e){this.dataErrorOccurred.fire(e)},_handleDataPushed:function(e){this.pushed.fire(e)},fireError:function(){this.dataErrorOccurred.fire(l.default.Error.apply(l.default,arguments))},_setPagingOptions:function(e){var t=this.option("paging.pageIndex"),n=this.option("paging.pageSize"),i=this.option("paging.enabled"),o=this.option("scrolling.mode"),a="infinite"===o,r=i||"virtual"===o||a,s=!1;return e.requireTotalCount(!a),void 0!==i&&e.paginate()!==r&&(e.paginate(r),s=!0),void 0!==n&&e.pageSize()!==n&&(e.pageSize(n),s=!0),void 0!==t&&e.pageIndex()!==t&&(e.pageIndex(t),s=!0),s},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("keyExpr")}}:e},_initDataSource:function(){var e=this,t=this.option("dataSource"),n=this._dataSource;e.callBase(),t=e._dataSource,e._useSortingGroupingFromColumns=!0,t?(e._setPagingOptions(t),e.setDataSource(t)):n&&e.updateItems()},_loadDataSource:function(){var e=this._dataSource,t=new p.Deferred;return(0,p.when)(this._columnsController.refresh(!0)).always((function(){e?e.load().done(t.resolve).fail(t.reject):t.resolve()})),t.promise()},_beforeProcessItems:function(e){return e.slice(0)},getRowIndexDelta:function(){return 0},_processItems:function(e,t){var n=this,i=n.getRowIndexDelta(),o=t.changeType,a=n._columnsController.getVisibleColumns(null,"loadingAll"===o),r=n._items,s="append"===o&&r.length>0?r[r.length-1]:null,l={visibleColumns:a,dataIndex:(0,c.isDefined)(null==s?void 0:s.dataIndex)?s.dataIndex+1:0},u=[];return(0,d.each)(e,(function(e,t){(0,c.isDefined)(t)&&(l.rowIndex=e-i,t=n._processItem(t,l),u.push(t))})),u},_processItem:function(e,t){return e=this._generateDataItem(e,t),(e=this._processDataItem(e,t)).dataIndex=t.dataIndex++,e},_generateDataItem:function(e){return{rowType:"data",data:e,key:this.keyOf(e)}},_processDataItem:function(e,t){return e.values=this.generateDataValues(e.data,t.visibleColumns),e},generateDataValues:function(e,t,n){for(var i,o=[],a=0;a<t.length;a++){var r=t[a];i=n?void 0:null,r.command||(r.calculateCellValue?i=r.calculateCellValue(e):r.dataField&&(i=e[r.dataField])),o.push(i)}return o},_applyChange:function(e){var t=this;"update"===e.changeType?t._applyChangeUpdate(e):t.items().length&&e.repaintChangesOnly&&"refresh"===e.changeType?t._applyChangesOnly(e):"refresh"===e.changeType&&t._applyChangeFull(e)},_applyChangeFull:function(e){this._items=e.items.slice(0)},_getRowIndices:function(e){var t=e.rowIndices.slice(0),n=this.getRowIndexDelta();t.sort((function(e,t){return e-t}));for(var i=0;i<t.length;i++){var o=t[i];e.allowInvisibleRowIndices&&(o+=n),o<0&&(t.splice(i,1),i--)}return t},_applyChangeUpdate:function(e){var t,n=this,i=e.items,o=n._getRowIndices(e),a=n.getRowIndexDelta(),r=n.option("repaintChangesOnly"),s=-1,l=0;e.items=[],e.rowIndices=[],e.columnIndices=[],e.changeTypes=[];var c=function(e,t,n){var i=e&&t&&(0,u.equalByValue)(e.key,t.key);return i&&n&&(i=e.rowType===t.rowType&&("detail"!==t.rowType||e.isEditing===t.isEditing)),i};(0,d.each)(o,(function(o,u){var d;if(s!==(u+=l+a)){s=u;var h=n._items[u],f=n._items[u+1],p=i[u],g=i[u+1],m=c(h,f)||c(p,g);if(p&&(p.rowIndex=u,e.items.push(p)),h&&p&&c(h,p,m))t="update",n._items[u]=p,h.visible!==p.visible?e.items.splice(-1,1,{visible:p.visible}):r&&!e.isFullUpdate&&(d=n._partialUpdateRow(h,p,u-a));else if(p&&!h||g&&c(h,g,m))t="insert",n._items.splice(u,0,p),l++;else if(h&&!p||f&&c(p,f,m))t="remove",n._items.splice(u,1),l--,s=-1;else{if(!p)return;t="update",n._items[u]=p}e.rowIndices.push(u-a),e.changeTypes.push(t),e.columnIndices.push(d)}}))},_isCellChanged:function(e,t,n,i,o){if(JSON.stringify(e.values[i])!==JSON.stringify(t.values[i]))return!0;function a(e,t){return!!e.modifiedValues&&void 0!==e.modifiedValues[t]}return a(e,i)!==a(t,i)},_getChangedColumnIndices:function(e,t,n,i){var o;if(e.rowType===t.rowType){if("group"!==t.rowType&&"groupFooter"!==t.rowType&&(o=[],"detail"!==t.rowType))for(var a=0;a<e.values.length;a++)this._isCellChanged(e,t,n,a,i)&&o.push(a);"group"===t.rowType&&t.isExpanded===e.isExpanded&&e.cells&&(o=e.cells.map((function(e,t){var n;return"groupExpand"!==(null===(n=e.column)||void 0===n?void 0:n.type)?t:-1})).filter((function(e){return e>=0})))}return o},_partialUpdateRow:function(e,t,n,i){var o,a=this._getChangedColumnIndices(e,t,n,i);return null!==(o=a)&&void 0!==o&&o.length&&this.option("dataRowTemplate")&&(a=void 0),a&&(e.cells&&e.cells.forEach((function(e,n){!(a.indexOf(n)>=0)&&e&&e.update&&e.update(t)})),t.update=e.update,t.watch=e.watch,t.cells=e.cells,i&&(t.oldValues=e.values),e.update&&e.update(t)),a},_isItemEquals:function(e,t){if(JSON.stringify(e.values)!==JSON.stringify(t.values))return!1;if(["modified","isNewRow","removed","isEditing"].some((function(n){return e[n]!==t[n]})))return!1;if("group"===e.rowType||"groupFooter"===e.rowType){var n,i,o,a,r=e.isExpanded===t.isExpanded,s=JSON.stringify(e.summaryCells)===JSON.stringify(t.summaryCells),l=(null===(n=e.data)||void 0===n?void 0:n.isContinuation)===(null===(i=t.data)||void 0===i?void 0:i.isContinuation)&&(null===(o=e.data)||void 0===o?void 0:o.isContinuationOnNextPage)===(null===(a=t.data)||void 0===a?void 0:a.isContinuationOnNextPage);if(!r||!s||!l)return!1}return!0},_applyChangesOnly:function(e){var t=this,n=[],i=[],o=[],a=[],r={};function s(e){if(e)return e.rowType+","+JSON.stringify(e.key)}var l=this._items,u=l.slice();e.items.forEach((function(e,t){var n=s(e);r[n]=t,e.rowIndex=t}));var d=(0,g.findChanges)(u,e.items,s,(function(e,n){return!!t._isItemEquals(e,n)&&(e.cells&&(e.update&&e.update(n),e.cells.forEach((function(e){e&&e.update&&e.update(n,!0)}))),!0)}));d?(d.forEach((function(e){switch(e.type){case"update":var r=e.index,s=e.data,u=e.oldItem,d=t._partialUpdateRow(u,s,r,!0);n.push(r),o.push("update"),a.push(s),l[r]=s,i.push(d);break;case"insert":n.push(e.index),o.push("insert"),a.push(e.data),i.push(void 0),l.splice(e.index,0,e.data);break;case"remove":n.push(e.index),o.push("remove"),l.splice(e.index,1),a.push(e.oldItem),i.push(void 0)}})),e.repaintChangesOnly=!0,e.changeType="update",e.rowIndices=n,e.columnIndices=i,e.changeTypes=o,e.items=a,u.length&&(e.isLiveUpdate=!0),this._correctRowIndices((function(e){var n=t._rowIndexOffset||0,i=t.getRowIndexOffset(),o=s(u[e-n]),a=r[o];return a>=0?a+i-e:0}))):this._applyChangeFull(e)},_correctRowIndices:u.noop,_afterProcessItems:function(e){return e},_updateItemsCore:function(e){var t,n=this._dataSource,i=e.changeType||"refresh";if(e.changeType=i,n){var o=this._cachedProcessedItems;e.useProcessedItemsCache&&o?t=o:(t=e.items||n.items(),t=this._beforeProcessItems(t),t=this._processItems(t,e),this._cachedProcessedItems=t),t=this._afterProcessItems(t,e),e.items=t;var a=this._items.length===t.length&&this._items;this._applyChange(e);var r=this.getRowIndexDelta();(0,d.each)(this._items,(function(e,n){n.rowIndex=e-r,a&&(n.cells=a[e].cells||[]);var i=t[e];i&&(n.loadIndex=i.loadIndex)})),this._rowIndexOffset=this.getRowIndexOffset()}else this._items=[]},_handleChanging:function(e){var t=this.getVisibleRows();this.dataSource()&&e.changes.forEach((function(e){if("insert"===e.type&&e.index>=0){for(var n=0,i=0;i<e.index;i++){var o=t[i];!o||"data"!==o.rowType&&"group"!==o.rowType||n++}e.index=n}}))},updateItems:function(e,t){e=e||{};var n=this;if(void 0!==n._repaintChangesOnly)e.repaintChangesOnly=n._repaintChangesOnly,e.needUpdateDimensions=e.needUpdateDimensions||n._needUpdateDimensions;else if(e.changes)e.repaintChangesOnly=n.option("repaintChangesOnly");else if(t){var i=n.dataSource().operationTypes();e.repaintChangesOnly=i&&!i.grouping&&!i.filtering&&n.option("repaintChangesOnly"),e.isDataChanged=!0,i&&(i.reload||i.paging||i.groupExpanding)&&(e.needUpdateDimensions=!0)}n._updateLockCount?n._changes.push(e):(n._updateItemsCore(e),e.cancel||n._fireChanged(e))},loadingOperationTypes:function(){var e=this.dataSource();return e&&e.loadingOperationTypes()||{}},_fireChanged:function(e){var t=this;this._currentOperationTypes&&(e.operationTypes=this._currentOperationTypes,this._currentOperationTypes=null),(0,u.deferRender)((function(){t.changed.fire(e)}))},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var e=this,t=e._dataSource;if(t)return t.pageIndex(0),e.reload().done(e.pageChanged.fire.bind(e.pageChanged))},filter:function(e){var t=this._dataSource,n=t&&t.filter();if(0===arguments.length)return n;e=arguments.length>1?Array.prototype.slice.call(arguments,0):e,a.default.equalFilterParameters(n,e)||(t&&t.filter(e),this._applyFilter())},clearFilter:function(e){var t=this,n=t._columnsController,i=function(e){for(var t=n.columnCount(),i=0;i<t;i++)n.columnOption(i,e,void 0)};if(t.component.beginUpdate(),arguments.length>0)switch(e){case"dataSource":t.filter(null);break;case"search":t.searchByText("");break;case"header":i("filterValues");break;case"row":i("filterValue")}else t.filter(null),t.searchByText(""),i("filterValue"),i("bufferedFilterValue"),i("filterValues");t.component.endUpdate()},_fireDataSourceChanged:function(){var e=this;e.changed.add((function t(){e.changed.remove(t),e.dataSourceChanged.fire()}))},_getDataSourceAdapter:u.noop,_createDataSourceAdapterCore:function(e,t){var n=this._getDataSourceAdapter().create(this.component);return n.init(e,t),n},isLocalStore:function(e){return(e=e||this.store())instanceof r.default},isCustomStore:function(e){return(e=e||this.store())instanceof s.default},_createDataSourceAdapter:function(e){var t=this.option("remoteOperations"),n=e.store(),i={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return t&&t.groupPaging&&(t=(0,h.extend)({},i,t)),"auto"===t&&(t=this.isLocalStore(n)||this.isCustomStore(n)?{}:{filtering:!0,sorting:!0,paging:!0}),!0===t&&(t=i),this._createDataSourceAdapterCore(e,t)},setDataSource:function(e){var t=this,n=t._dataSource;!e&&n&&(n.cancelAll(),n.changed.remove(t._dataChangedHandler),n.loadingChanged.remove(t._loadingChangedHandler),n.loadError.remove(t._loadErrorHandler),n.customizeStoreLoadOptions.remove(t._customizeStoreLoadOptionsHandler),n.changing.remove(t._changingHandler),n.pushed.remove(t._dataPushedHandler),n.dispose(t._isSharedDataSource)),e&&(e=t._createDataSourceAdapter(e)),t._dataSource=e,e&&(t._fireDataSourceChanged(),t._isLoading=!e.isLoaded(),t._needApplyFilter=!0,t._isAllDataTypesDefined=t._columnsController.isAllDataTypesDefined(),e.changed.add(t._dataChangedHandler),e.loadingChanged.add(t._loadingChangedHandler),e.loadError.add(t._loadErrorHandler),e.customizeStoreLoadOptions.add(t._customizeStoreLoadOptionsHandler),e.changing.add(t._changingHandler),e.pushed.add(t._dataPushedHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var e=this._dataSource;return e&&e.store()},loadAll:function(e){var t=this,n=new p.Deferred,i=t._dataSource;if(i)if(e){var o={data:e,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:t.getCombinedFilter(),group:i.group(),sort:i.sort()}};i._handleDataLoaded(o),(0,p.when)(o.data).done((function(e){e=t._beforeProcessItems(e),n.resolve(t._processItems(e,{changeType:"loadingAll"}),o.extra&&o.extra.summary)})).fail(n.reject)}else if(i.isLoading())n.reject();else{var a=(0,h.extend)({},i.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});i.load(a).done((function(e,i){e=t._beforeProcessItems(e),e=t._processItems(e,{changeType:"loadingAll"}),n.resolve(e,i&&i.summary)})).fail(n.reject)}else n.resolve([]);return n},getKeyByRowIndex:function(e,t){var n=this.items(t)[e];if(n)return n.key},getRowIndexByKey:function(e,t){return a.default.getIndexByKey(e,this.items(t))},keyOf:function(e){var t=this.store();if(t)return t.keyOf(e)},byKey:function(e){var t,n=this.store(),i=this.getRowIndexByKey(e);if(n)return i>=0&&(t=(new p.Deferred).resolve(this.items()[i].data)),t||n.byKey(e)},key:function(){var e=this.store();if(e)return e.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(e){var t=this,n=new p.Deferred,o=[],a=[];return(0,d.each)(e,(function(e,n){o.push(t.byKey(n).done((function(t){a[e]=t})))})),p.when.apply(i.default,o).always((function(){n.resolve(a)})),n},pageIndex:function(e){return _(this,"pageIndex",e)},pageSize:function(e){return _(this,"pageSize",e)},beginCustomLoading:function(e){this._isCustomLoading=!0,this._loadingText=e||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(e){!0===e?e={reload:!0,changesOnly:!0}:e||(e={lookup:!0,selection:!0,reload:!0});var t=this,n=t.getDataSource(),i=e.changesOnly,o=new p.Deferred,a=function(){t._repaintChangesOnly=!!i};return(0,p.when)(!e.lookup||t._columnsController.refresh()).always((function(){e.load||e.reload?(n&&n.on("customizeLoadResult",a),(0,p.when)(t.reload(e.reload,i)).always((function(){n&&n.off("customizeLoadResult",a),t._repaintChangesOnly=void 0})).done(o.resolve).fail(o.reject)):(t.updateItems({repaintChangesOnly:e.changesOnly}),o.resolve())})),o.promise()},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},repaintRows:function(e,t){((e=Array.isArray(e)?e:[e]).length>1||(0,c.isDefined)(e[0]))&&this.updateItems({changeType:"update",rowIndices:e,isFullUpdate:!t})},skipProcessingPagingChange:function(e){return this._skipProcessingPagingChange&&("paging.pageIndex"===e||"paging.pageSize"===e)},getUserState:function(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}},getCachedStoreData:function(){return this._dataSource&&this._dataSource.getCachedStoreData()},isLastPageLoaded:function(){return this.pageIndex()===this.pageCount()-1}},a.default.proxyMethod(v,"load"),a.default.proxyMethod(v,"reload"),a.default.proxyMethod(v,"push"),a.default.proxyMethod(v,"itemsCount",0),a.default.proxyMethod(v,"totalItemsCount",0),a.default.proxyMethod(v,"hasKnownLastPage",!0),a.default.proxyMethod(v,"isLoaded",!0),a.default.proxyMethod(v,"totalCount",0),v))}};t.dataControllerModule=y},83567:function(e,t,n){t.default=void 0;var i=h(n(44504)),o=h(n(39941)),a=n(20576),r=n(35922),s=n(95479),l=n(13306),u=h(n(26562)),d=n(60637),c=n(62754);function h(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var p=o.default.Controller.inherit(function(){function e(t,n){if(t&&(t=t.slice(0),n))for(var i=0;i<t.length;i++)t[i]=(0,l.extend)({key:t[i].key},t[i]),t[i].items=e(t[i].items,n-1);return t}function t(e,t,n){var i={reload:!0,fullReload:!0};return t&&((i={sorting:!o.default.equalSortParameters(e.sort,t.sort),grouping:!o.default.equalSortParameters(e.group,t.group,!0),groupExpanding:!o.default.equalSortParameters(e.group,t.group)||t.groupExpand,filtering:!o.default.equalFilterParameters(e.filter,t.filter),pageIndex:e.pageIndex!==t.pageIndex,skip:e.skip!==t.skip,take:e.take!==t.take,pageSize:e.pageSize!==t.pageSize,fullReload:n}).reload=n||i.sorting||i.grouping||i.filtering,i.paging=i.pageIndex||i.pageSize||i.take),i}function n(e,t){var n=o.default.normalizeSortingInfo(e.group||e.storeLoadOptions.group||e.loadOptions.group).length,i=[];if(h(i,e,n))return i;t&&function(e,t,n){var i=e.length,o=t.storeLoadOptions;if(void 0!==o.skip&&o.take&&!n){var a=[];h(a,t,n,!0);var r,s,l=a.length;(i||l)&&(t.skip=null!==(r=t.skip)&&void 0!==r?r:o.skip,t.take=null!==(s=t.take)&&void 0!==s?s:o.take),i&&(o.skip+=i,o.take-=i,t.cachedDataPartBegin=e),l&&(o.take-=l,t.cachedDataPartEnd=a.reverse())}}(i,e,n)}function h(e,t,n,i){var o,a,r,s=t.storeLoadOptions,l=null!==(o=null!==(a=t.take)&&void 0!==a?a:s.take)&&void 0!==o?o:0,u=null===(r=t.cachedData)||void 0===r?void 0:r.items;if(l&&u){for(var d,c,h=null!==(d=null!==(c=t.skip)&&void 0!==c?c:s.skip)&&void 0!==d?d:0,f=0;f<l;f++){var g=i?l-1-f:f,m=p(t,u[g+h],n,g,l);if(!m)return!1;e.push(m)}return!0}return!1}function p(e,t,n,i,o){return n&&t?function e(t,n,i,o){if(n&&t){var a=f({},t),r=i[0]||0,s=o[0],l=t.items;if(l){if(void 0===s&&!l[r])return;a.items=[],i.length&&(a.isContinuation=!0),o.length&&(a.isContinuationOnNextPage=!0);for(var u=0;void 0===s?l[u+r]:u<s;u++){var d=e(l[u+r],n-1,i.slice(1),o.slice(1));if(void 0===d)return;a.items.push(d)}}return a}return t}(t,n,0===i&&e.skips||[],i===o-1&&e.takes||[]):t}function g(e,t,n,i){if(n&&t){var o=f({},t);delete o.isContinuation,delete o.isContinuationOnNextPage;var a=i[0]||0;return t.items&&(o.items=(null==e?void 0:e.items)||{},t.items.forEach((function(e,t){var r=t+a,s=0===t?i.slice(1):[];o.items[r]=g(o.items[r],e,n-1,s)}))),o}return t}return{init:function(e,t){var n=this;n._dataSource=e,n._remoteOperations=t||{},n._isLastPage=!e.isLastPage(),n._hasLastPage=!1,n._currentTotalCount=0,n._cachedData={items:{}},n._lastOperationTypes={},n._eventsStrategy=e._eventsStrategy,n._totalCountCorrection=0,n._isLoadingAll=!1,n.changed=(0,i.default)(),n.loadingChanged=(0,i.default)(),n.loadError=(0,i.default)(),n.customizeStoreLoadOptions=(0,i.default)(),n.changing=(0,i.default)(),n.pushed=(0,i.default)(),n._dataChangedHandler=n._handleDataChanged.bind(n),n._customizeStoreLoadOptionsHandler=n._handleCustomizeStoreLoadOptions.bind(n),n._dataLoadedHandler=n._handleDataLoaded.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._loadErrorHandler=n._handleLoadError.bind(n),n._pushHandler=n._handlePush.bind(n),n._changingHandler=n._handleChanging.bind(n),e.on("changed",n._dataChangedHandler),e.on("customizeStoreLoadOptions",n._customizeStoreLoadOptionsHandler),e.on("customizeLoadResult",n._dataLoadedHandler),e.on("loadingChanged",n._loadingChangedHandler),e.on("loadError",n._loadErrorHandler),e.on("changing",n._changingHandler),e.store().on("beforePush",n._pushHandler),(0,s.each)(e,(function(e,t){!n[e]&&(0,r.isFunction)(t)&&(n[e]=function(){return this._dataSource[e].apply(this._dataSource,arguments)})}))},remoteOperations:function(){return this._remoteOperations},dispose:function(e){var t=this,n=t._dataSource,i=n.store();n.off("changed",t._dataChangedHandler),n.off("customizeStoreLoadOptions",t._customizeStoreLoadOptionsHandler),n.off("customizeLoadResult",t._dataLoadedHandler),n.off("loadingChanged",t._loadingChangedHandler),n.off("loadError",t._loadErrorHandler),n.off("changing",t._changingHandler),i&&i.off("beforePush",t._pushHandler),e||n.dispose()},refresh:function(e,t){var n=this,i=n._dataSource;t.reload&&(n.resetCurrentTotalCount(),n._isLastPage=!i.paginate(),n._hasLastPage=n._isLastPage)},resetCurrentTotalCount:function(){this._currentTotalCount=0,this._totalCountCorrection=0},resetCache:function(){this._cachedStoreData=void 0,this._cachedPagingData=void 0},resetPagesCache:function(){this._cachedData={items:{}}},_needClearStoreDataCache:function(){var e=this.remoteOperations(),n=t(this._lastLoadOptions||{},{});return!Object.keys(e).every((function(t){return!n[t]||!e[t]}))},push:function(e,t){var n=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&(0,d.applyBatch)({keyInfo:n,data:this._cachedStoreData,changes:e}),t||this._applyBatch(e),this.pushed.fire(e)},getDataIndexGetter:function(){var e=this;if(!this._dataIndexGetter){var t,n,i=this.store();this._dataIndexGetter=function(o){var r=n&&n!==e._cachedStoreData;if(!t||r){n=e._cachedStoreData||[],t={};for(var s=0;s<n.length;s++)t[(0,a.getKeyHash)(i.keyOf(n[s]))]=s}return t[(0,a.getKeyHash)(i.keyOf(o))]}}return this._dataIndexGetter},_getKeyInfo:function(){return this.store()},_applyBatch:function(e){var t=this,n=this._getKeyInfo(),i=this._dataSource,a=o.default.normalizeSortingInfo(this.group()).length,r=this.totalCount(),s="virtual"===this.option("scrolling.mode");e=e.filter((function(e){return!i.paginate()||"insert"!==e.type||void 0!==e.index}));var l=function(){return a?t.itemsCount():t.items().length},u=l();(0,d.applyBatch)({keyInfo:n,data:this._items,changes:e,groupCount:a,useInsertIndex:!0}),(0,d.applyBatch)({keyInfo:n,data:i.items(),changes:e,groupCount:a,useInsertIndex:!0}),(this._currentTotalCount>0||s&&r===u)&&(this._totalCountCorrection+=l()-u),e.splice(0,e.length)},_handlePush:function(e){var t=e.changes;this.push(t,!0)},_handleChanging:function(e){this.changing.fire(e),this._applyBatch(e.changes)},_needCleanCacheByOperation:function(e,t){var n=["filtering","sorting","paging"],i=n.indexOf(e);return(i>=0?n.slice(i):[e]).some((function(e){return t[e]}))},_customizeRemoteOperations:function(e,t){var n=this,i=this._cachedStoreData,o=this._cachedPagingData,a=this._cachedData;(e.storeLoadOptions.filter&&!e.remoteOperations.filtering||e.storeLoadOptions.sort&&!e.remoteOperations.sorting)&&(e.remoteOperations={filtering:e.remoteOperations.filtering}),t.fullReload?(i=void 0,o=void 0,a={items:{}}):(t.reload?(o=void 0,a={items:{}}):t.groupExpanding&&(a={items:{}}),(0,s.each)(t,(function(t,a){a&&n._needCleanCacheByOperation(t,e.remoteOperations)&&(i=void 0,o=void 0)}))),o&&(e.remoteOperations.paging=!1),e.cachedStoreData=i,e.cachedPagingData=o,e.cachedData=a,e.isCustomLoading||(this._cachedStoreData=i,this._cachedPagingData=o,this._cachedData=a)},_handleCustomizeStoreLoadOptions:function(e){this._handleDataLoading(e),e.data=n(e,!0)||e.cachedStoreData},_handleDataLoading:function(e){var n=this,i=this._dataSource,o=this._lastLoadOptions;this.customizeStoreLoadOptions.fire(e),e.delay=this.option("loadingTimeout"),e.originalStoreLoadOptions=e.storeLoadOptions,e.remoteOperations=(0,l.extend)({},this.remoteOperations());var a=!this.isLoaded()&&!this._isRefreshing;this.option("integrationOptions.renderedOnServer")&&!this.isLoaded()&&(e.delay=void 0);var r=(0,l.extend)({pageIndex:this.pageIndex(),pageSize:this.pageSize()},e.storeLoadOptions),s=t(r,o,a);if(this._customizeRemoteOperations(e,s),!e.isCustomLoading){var u=this._isRefreshing;e.pageIndex=i.pageIndex(),e.lastLoadOptions=r,e.operationTypes=s,this._loadingOperationTypes=s,this._isRefreshing=!0,(0,c.when)(u||this._isRefreshed||this.refresh(e,s)).done((function(){n._lastOperationId===e.operationId&&(n._isRefreshed=!0,n.load().always((function(){n._isRefreshed=!1})))})).fail((function(){i.cancel(e.operationId)})).always((function(){n._isRefreshing=!1})),i.cancel(this._lastOperationId),this._lastOperationId=e.operationId,this._isRefreshing&&i.cancel(this._lastOperationId)}this._handleDataLoadingCore(e)},_handleDataLoadingCore:function(e){var t=e.remoteOperations;e.loadOptions={};var n=e.cachedData.extra,i={filter:!t.filtering,sort:!t.sorting,group:!t.grouping,summary:!t.summary,skip:!t.paging,take:!t.paging,requireTotalCount:n&&"totalCount"in n||!t.paging};(0,s.each)(e.storeLoadOptions,(function(t,n){i[t]&&(e.loadOptions[t]=n,delete e.storeLoadOptions[t])})),n&&(e.extra=n)},_handleDataLoaded:function(t){var i=this,a=t.loadOptions,s=t.remoteOperations&&!t.remoteOperations.paging,d=t.cachedData,h=t.storeLoadOptions,f=!1!==this.option("cacheEnabled")&&h,p=f&&!t.isCustomLoading&&d&&(!s||h.group),m=f&&s,_=m&&!t.isCustomLoading;if(a){s&&(t.skip=a.skip,t.take=a.take,delete a.skip,delete a.take),a.group&&(a.group=t.group||a.group);var v=o.default.normalizeSortingInfo(t.group||h.group||a.group).length;t.cachedDataPartBegin&&(t.data=t.cachedDataPartBegin.concat(t.data)),t.cachedDataPartEnd&&(t.data=t.data.concat(t.cachedDataPartEnd)),p&&n(t)||(m&&t.cachedPagingData?t.data=e(t.cachedPagingData,v):(_&&(this._cachedStoreData?t.mergeStoreLoadData&&(t.data=this._cachedStoreData=this._cachedStoreData.concat(t.data)):this._cachedStoreData=e(t.data,o.default.normalizeSortingInfo(h.group).length)),new u.default(t.data).load(a).done((function(n){t.data=n,_&&(i._cachedPagingData=e(t.data,v))})).fail((function(e){t.data=(new c.Deferred).reject(e)}))),a.requireTotalCount&&s&&(t.extra=(0,r.isPlainObject)(t.extra)?t.extra:{},t.extra.totalCount=t.data.length),t.extra&&t.extra.totalCount>=0&&(!1===h.requireTotalCount||!1===a.requireTotalCount)&&(t.extra.totalCount=-1),this._handleDataLoadedCore(t),p&&(d.extra=d.extra||(0,l.extend)({},t.extra),(0,c.when)(t.data).done((function(e){!function(e,t,n){for(var i,o,a,r,s=e.storeLoadOptions,l=null!==(i=null!==(o=e.skip)&&void 0!==o?o:s.skip)&&void 0!==i?i:0,u=null!==(a=null!==(r=e.take)&&void 0!==r?r:s.take)&&void 0!==a?a:0,d=0;d<u;d++){var c=d+l,h=e.cachedData.items,f=0===d&&e.skips||[];h[c]=g(h[c],t[d],n,f)}}(t,e,v)})))),(0,c.when)(t.data).done((function(){t.lastLoadOptions&&(i._lastLoadOptions=t.lastLoadOptions,Object.keys(t.operationTypes).forEach((function(e){i._lastOperationTypes[e]=i._lastOperationTypes[e]||t.operationTypes[e]})))})),t.storeLoadOptions=t.originalStoreLoadOptions}else this._dataSource.cancel(t.operationId)},_handleDataLoadedCore:function(e){e.remoteOperations&&!e.remoteOperations.paging&&Array.isArray(e.data)&&(void 0!==e.skip&&(e.data=e.data.slice(e.skip)),void 0!==e.take&&(e.data=e.data.slice(0,e.take)))},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleLoadError:function(e){this.loadError.fire(e),this.changed.fire({changeType:"loadError",error:e})},_loadPageSize:function(){return this.pageSize()},_handleDataChanged:function(e){var t,n=this._dataSource,i=!1,o=this.itemsCount();this._isLastPage=!o||!this._loadPageSize()||o<this._loadPageSize(),this._isLastPage&&(this._hasLastPage=!0),n.totalCount()>=0?n.pageIndex()>=this.pageCount()&&(n.pageIndex(this.pageCount()-1),this.pageIndex(n.pageIndex()),this.resetPagesCache(),n.load(),i=!0):e&&!(0,r.isDefined)(e.changeType)||((t=n.pageIndex()*this.pageSize()+o)>this._currentTotalCount&&(this._currentTotalCount=t,this._totalCountCorrection=0),0===o&&n.pageIndex()>=this.pageCount()&&(n.pageIndex(this.pageCount()-1),"infinite"!==this.option("scrolling.mode")&&(n.load(),i=!0))),i||(this._operationTypes=this._lastOperationTypes,this._lastOperationTypes={},this.component._optionCache={},this.changed.fire(e),this.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(e){var t=this;t._isCustomLoading=!0,e.always((function(){t._isCustomLoading=!1}))},loadingOperationTypes:function(){return this._loadingOperationTypes},operationTypes:function(){return this._operationTypes},lastLoadOptions:function(){return this._lastLoadOptions||{}},isLastPage:function(){return this._isLastPage},totalCount:function(){return parseInt((this._currentTotalCount||this._dataSource.totalCount())+this._totalCountCorrection)},totalCountCorrection:function(){return this._totalCountCorrection},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var e=this._dataSource;return arguments.length||e.paginate()?e.pageSize.apply(e,arguments):0},pageCount:function(){var e=this,t=e.totalItemsCount()-e._totalCountCorrection,n=e.pageSize();return n&&t>0?Math.max(1,Math.ceil(t/n)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(e,t){var n=this._dataSource,i=new c.Deferred;if(n)return(t=t||n.store()).load(e).done((function(e,t){e&&!Array.isArray(e)&&Array.isArray(e.data)&&(t=e,e=e.data),i.resolve(e,t)})).fail(i.reject),i},isCustomLoading:function(){return!!this._isCustomLoading},load:function(e){var t,n,i=this,o=this,l=o._dataSource,u=new c.Deferred;if(e){var d=l.store(),h=l.loadOptions(),f={storeLoadOptions:e,isCustomLoading:!0};return(0,s.each)(d._customLoadOptions()||[],(function(e,t){t in f.storeLoadOptions||(f.storeLoadOptions[t]=h[t])})),this._isLoadingAll=e.isLoadingAll,o._scheduleCustomLoadCallbacks(u),l._scheduleLoadCallbacks(u),o._handleCustomizeStoreLoadOptions(f),t=function(){if(!l.store())return u.reject("canceled");(0,c.when)(f.data||o.loadFromStore(f.storeLoadOptions)).done((function(t,n){f.data=t,f.extra=n||{},o._handleDataLoaded(f),e.requireTotalCount&&void 0===f.extra.totalCount&&(f.extra.totalCount=d.totalCount(f.storeLoadOptions)),(0,c.when)(f.data,f.extra.totalCount).done((function(e,t){f.extra.totalCount=t,u.resolve(e,f.extra)})).fail(u.reject)})).fail(u.reject)},n=o.option("loadingTimeout"),(0,r.isDefined)(n)?(0,a.executeAsync)(t,n):t(),u.fail((function(){o._eventsStrategy.fireEvent("loadError",arguments)})).always((function(){i._isLoadingAll=!1})).promise()}return l.load()},reload:function(e){return e?this._dataSource.reload():this._dataSource.load()},getCachedStoreData:function(){return this._cachedStoreData}}}());t.default=p,e.exports=t.default,e.exports.default=t.default},6447:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.editingModule=void 0;var o=k(n(68374)),a=k(n(73349)),r=k(n(55994)),s=k(n(73176)),l=n(3532),u=n(35922),d=n(95479),c=n(13306),h=k(n(12310)),f=n(95429),p=k(n(93786)),g=k(n(13615)),m=n(60637),_=n(39611),v=n(15029),y=k(n(28109)),x=k(n(20530)),b=n(62754),w=n(20576),C=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(44899)),S=n(35917);function k(e){return e&&e.__esModule?e:{default:e}}function D(){return(D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function I(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var E="readonly",A="dx-selection",O="__DX_INSERT_INDEX__",P="dx-row-inserted",M="dx-row-modified",R="dx-cell-modified",B="dx-cell-focus-disabled",V="update",F="click",L={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete",delete:"dx-link-delete",add:"dx-link-add"},H={save:"save",cancel:"revert",edit:"edit",undelete:"revert",delete:"trash",add:"add"},N={edit:"editRow",delete:"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},z={add:"allowAdding",edit:"allowUpdating",delete:"allowDeleting"},W=["edit","save","cancel","delete","undelete"],G="editing.changes",j=function(e){return function(t){var n=t instanceof Error?t:new Error(t&&String(t)||"Unknown error");e.reject(n)}},q=function(e,t){return t.isEditing||e&&t.column.allowEditing},$=function(e,t){var n=!!t.column.command,i=q(e,t),o=!n&&(i||t.column.showEditorAlways);return"data"===t.rowType&&o},K={defaultOptions:function(){return{editing:{mode:"row",refreshMode:"full",newRowPosition:S.VIEWPORT_TOP_NEW_ROW_POSITION,allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,confirmDelete:!0,texts:{editRow:y.default.format("dxDataGrid-editingEditRow"),saveAllChanges:y.default.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:y.default.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:y.default.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:y.default.format("dxDataGrid-editingCancelRowChanges"),addRow:y.default.format("dxDataGrid-editingAddRow"),deleteRow:y.default.format("dxDataGrid-editingDeleteRow"),undeleteRow:y.default.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:y.default.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click",editRowKey:null,editColumnName:null,changes:[]},useLegacyColumnButtonTemplate:!1}},controllers:{editing:h.default.ViewController.inherit(function(){var e=function(e,n){var i=-1;return e.some((function(e,o){if(t(e)===n)return i=o,!0})),i};function t(e){return(0,u.isObject)(e)?e.name:e}return{init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._rowsView=this.getView("rowsView"),this._lastOperation=null,this._deferreds&&this._deferreds.forEach((function(e){return e.reject("cancel")})),this._deferreds=[],this._dataChangedHandler||(this._dataChangedHandler=this._handleDataChanged.bind(this),this._dataController.changed.add(this._dataChangedHandler)),this._saveEditorHandler||(this.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceling",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceled",{excludeValidators:["disabled","readOnly"]})),this._updateEditColumn(),this._updateEditButtons(),this._internalState||(this._internalState=[]),this.component._optionsByReference[S.EDITING_EDITROWKEY_OPTION_NAME]=!0,this.component._optionsByReference["editing.changes"]=!0},getEditMode:function(){var e=this.option("editing.mode");return-1!==S.EDIT_MODES.indexOf(e)?e:S.EDIT_MODE_ROW},_getDefaultEditorTemplate:function(){var e=this;return function(t,n){var i=(0,o.default)("<div>").appendTo(t);e.getController("editorFactory").createEditor(i,(0,c.extend)({},n.column,{value:n.value,setValue:n.setValue,row:n.row,parentType:"dataRow",width:null,readOnly:!n.setValue,isOnForm:n.isOnForm,id:n.id}))}},_getNewRowPosition:function(){var e=this.option("editing.newRowPosition");if("virtual"===this.option("scrolling.mode"))switch(e){case S.PAGE_TOP_NEW_ROW_POSITION:return S.VIEWPORT_TOP_NEW_ROW_POSITION;case S.PAGE_BOTTOM_NEW_ROW_POSITION:return S.VIEWPORT_BOTTOM_NEW_ROW_POSITION;default:return e}return e},getChanges:function(){return this.option(G)},getInsertRowCount:function(){return this.option(G).filter((function(e){return"insert"===e.type})).length},resetChanges:function(){var e=this.getChanges();(null==e?void 0:e.length)&&this._silentOption(G,[])},_getInternalData:function(e){return this._internalState.filter((function(t){return(0,w.equalByValue)(t.key,e)}))[0]},_addInternalData:function(e){var t=this._getInternalData(e.key);return t?(0,c.extend)(t,e):(this._internalState.push(e),e)},_getOldData:function(e){var t;return null===(t=this._getInternalData(e))||void 0===t?void 0:t.oldData},getUpdatedData:function(e){var t=this._dataController.keyOf(e),n=this.getChanges(),i=g.default.getIndexByKey(t,n);return n[i]?(0,m.createObjectWithChanges)(e,n[i].data):e},getInsertedData:function(){return this.getChanges().filter((function(e){return e.data&&e.type===S.DATA_EDIT_DATA_INSERT_TYPE})).map((function(e){return e.data}))},getRemovedData:function(){var e=this;return this.getChanges().filter((function(t){return e._getOldData(t.key)&&t.type===S.DATA_EDIT_DATA_REMOVE_TYPE})).map((function(t){return e._getOldData(t.key)}))},_fireDataErrorOccurred:function(e){if("cancel"!==e){var t=this.getPopupContent();this._dataController.dataErrorOccurred.fire(e,t)}},_needToCloseEditableCell:w.noop,_closeEditItem:w.noop,_handleDataChanged:w.noop,_isDefaultButtonVisible:function(e,t){var n=!0;switch(e.name){case"delete":n=this.allowDeleting(t);break;case"undelete":n=!1}return n},_isButtonVisible:function(e,t){var n=e.visible;return(0,u.isDefined)(n)?(0,u.isFunction)(n)?n.call(e,{component:t.component,row:t.row,column:t.column}):n:this._isDefaultButtonVisible(e,t)},_isButtonDisabled:function(e,t){var n=e.disabled;return(0,u.isFunction)(n)?n.call(e,{component:t.component,row:t.row,column:t.column}):!!n},_getButtonConfig:function(e,n){var i=this,o=(0,u.isObject)(e)?e:{},a=t(e),r=function(e){var t=e.component.option("editing.texts")||{};return{save:t.saveRowChanges,cancel:t.cancelRowChanges,edit:t.editRow,undelete:t.undeleteRow,delete:t.deleteRow,add:t.addRowToNode}}(n),s=N[a],l=this.option("editing"),d=z[a],h=!d||l[d];return(0,c.extend)({name:a,text:r[a],cssClass:L[a]},{onClick:s&&function(e){var t=e.event;t.stopPropagation(),t.preventDefault(),setTimeout((function(){n.row&&h&&i[s]&&i[s](n.row.rowIndex)}))}},o)},_getEditingButtons:function(t){var n,i=this,o=!!t.column.buttons,a=(t.column.buttons||[]).slice();return o?((n=e(a,"edit"))>=0&&(e(a,"save")<0&&a.splice(n+1,0,"save"),e(a,"cancel")<0&&a.splice(e(a,"save")+1,0,"cancel")),(n=e(a,"delete"))>=0&&e(a,"undelete")<0&&a.splice(n+1,0,"undelete")):a=W.slice(),a.map((function(e){return i._getButtonConfig(e,t)}))},_renderEditingButtons:function(e,t,n,i){var o=this;t.forEach((function(t){o._isButtonVisible(t,n)&&o._createButton(e,t,n,i)}))},_getEditCommandCellTemplate:function(){var e=this;return function(t,n,i){var a=(0,o.default)(t);if("data"===n.rowType){var r=e._getEditingButtons(n);e._renderEditingButtons(a,r,n,i),n.watch&&n.watch((function(){return r.map((function(t){return e._isButtonVisible(t,n)}))}),(function(){a.empty(),e._renderEditingButtons(a,r,n)}))}else g.default.setEmptyText(a)}},isRowBasedEditMode:function(){var e=this.getEditMode();return-1!==S.ROW_BASED_MODES.indexOf(e)},getFirstEditableColumnIndex:function(){var e,t=this.getController("columns").getVisibleColumns();return(0,d.each)(t,(function(t,n){if(n.allowEditing)return e=t,!1})),e},getFirstEditableCellInRow:function(e){var t=this.getView("rowsView");return t&&t._getCellElement(e||0,this.getFirstEditableColumnIndex())},getFocusedCellInRow:function(e){return this.getFirstEditableCellInRow(e)},getIndexByKey:function(e,t){return g.default.getIndexByKey(e,t)},hasChanges:function(e){for(var t=this.getChanges(),n=!1,i=0;i<(null==t?void 0:t.length);i++)if(t[i].type&&(!(0,u.isDefined)(e)||this._dataController.getRowIndexByKey(t[i].key)===e)){n=!0;break}return n},dispose:function(){this.callBase(),clearTimeout(this._inputFocusTimeoutID),r.default.off(a.default.getDocument(),p.default.up,this._pointerUpEditorHandler),r.default.off(a.default.getDocument(),p.default.down,this._pointerDownEditorHandler),r.default.off(a.default.getDocument(),f.name,this._saveEditorHandler)},optionChanged:function(e){if("editing"===e.name){var t=e.fullName;t===S.EDITING_EDITROWKEY_OPTION_NAME?this._handleEditRowKeyChange(e):t===G?this._handleChangesChange(e):e.handled||(this._columnsController.reinit(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey()),e.handled=!0}else this.callBase(e)},_handleEditRowKeyChange:function(e){var t=this._dataController.getRowIndexByKey(e.value),n=this._getEditRowIndexCorrection(),i=this._dataController.getRowIndexByKey(e.previousValue)+n;(0,u.isDefined)(e.value)?e.value!==e.previousValue&&this._editRowFromOptionChanged(t,i):this.cancelEditData()},_handleChangesChange:function(e){var t=this._dataController;(e.value.length||e.previousValue.length)&&(this._processInsertChanges(e.value),t.updateItems({repaintChangesOnly:!0}))},_processInsertChanges:function(e){var t=this;e.forEach((function(e){"insert"===e.type&&t._addInsertInfo(e)}))},publicMethods:function(){return["addRow","deleteRow","undeleteRow","editRow","saveEditData","cancelEditData","hasEditData"]},refresh:function(e){(0,u.isDefined)(this._pageIndex)&&this._refreshCore(e)},_refreshCore:w.noop,isEditing:function(){return(0,u.isDefined)(this.option(S.EDITING_EDITROWKEY_OPTION_NAME))},isEditRow:function(){return!1},_setEditRowKey:function(e,t){t?this._silentOption(S.EDITING_EDITROWKEY_OPTION_NAME,e):this.option(S.EDITING_EDITROWKEY_OPTION_NAME,e)},_setEditRowKeyByIndex:function(e,t){var n=this._dataController.getKeyByRowIndex(e);void 0!==n?this._setEditRowKey(n,t):this._dataController.fireError("E1043")},getEditRowIndex:function(){return this._getVisibleEditRowIndex()},getEditFormRowIndex:function(){return-1},_isEditRowByIndex:function(e){var t=this._dataController.getKeyByRowIndex(e),n=(0,u.isDefined)(t)&&(0,w.equalByValue)(this.option(S.EDITING_EDITROWKEY_OPTION_NAME),t);return n?this._getVisibleEditRowIndex()===e:n},isEditCell:function(e,t){return this._isEditRowByIndex(e)&&this._getVisibleEditColumnIndex()===t},getPopupContent:w.noop,_isProcessedItem:function(e){return!1},_getInsertRowIndex:function(e,t,n){var i=this,o=-1,a=this._dataController,r=this._getInsertAfterOrBeforeKey(t);return(0,u.isDefined)(r)||0!==e.length?(0,u.isDefined)(r)&&e.some((function(s,l){var d=n||i._isProcessedItem(s);if((0,u.isObject)(s)&&(d||(0,u.isDefined)(s[O])?(0,w.equalByValue)(s.key,r)&&(o=l):(0,w.equalByValue)(a.keyOf(s),r)&&(o=l)),o>=0){var c=e[o+1];if(c&&("detail"===c.rowType||"detailAdaptive"===c.rowType)&&(0,u.isDefined)(t.insertAfterKey))return;return(0,u.isDefined)(t.insertAfterKey)&&(o+=1),!0}})):o=0,o},_generateNewItem:function(e){var t,n={key:e},i=null===(t=this._getInternalData(e))||void 0===t?void 0:t.insertInfo;return null!=i&&i[O]&&(n[O]=i[O]),n},_getLoadedRowIndex:function(e,t,n){var i=this._getInsertRowIndex(e,t,n),o=this._dataController;if(i<0){var a=this._getNewRowPosition(),r=o.pageIndex(),s=this._getInsertAfterOrBeforeKey(t);a===S.LAST_NEW_ROW_POSITION||0!==r||(0,u.isDefined)(s)?a===S.LAST_NEW_ROW_POSITION&&o.isLastPageLoaded()&&(i=e.length):i=0}return i},processItems:function(e,t){var n=this,i=t.changeType;return this.update(i),this.getChanges().forEach((function(t){var i;if(t.type===S.DATA_EDIT_DATA_INSERT_TYPE){var o=t.key,a=null===(i=n._getInternalData(o))||void 0===i?void 0:i.insertInfo;(0,u.isDefined)(o)&&(0,u.isDefined)(a)||(o=(a=n._addInsertInfo(t)).key);var r=n._getLoadedRowIndex(e,t),s=n._generateNewItem(o);r>=0&&e.splice(r,0,s)}})),e},processDataItem:function(e,t,n){var i=t.visibleColumns,o=e.data[O]?e.data.key:e.key,a=this.getChanges(),r=g.default.getIndexByKey(o,a);e.isEditing=!1,r>=0&&this._processDataItemCore(e,a[r],o,i,n)},_processDataItemCore:function(e,t,n,i,o){var a=t.data;switch(t.type){case S.DATA_EDIT_DATA_INSERT_TYPE:e.isNewRow=!0,e.key=n,e.data=a;break;case V:e.modified=!0,e.oldData=e.data,e.data=(0,m.createObjectWithChanges)(e.data,a),e.modifiedValues=o(a,i,!0);break;case S.DATA_EDIT_DATA_REMOVE_TYPE:e.removed=!0}},_initNewRow:function(e){var t=this;if(this.executeAction("onInitNewRow",e),e.promise){var n=new b.Deferred;return(0,b.when)((0,b.fromPromise)(e.promise)).done(n.resolve).fail(j(n)).fail((function(e){return t._fireDataErrorOccurred(e)})),n}},_createInsertInfo:function(){var e={};return e[O]=this._getInsertIndex(),e},_addInsertInfo:function(e,t){var n,i,o=e.key;if((0,u.isDefined)(o)||(o=String(new s.default),e.key=o),i=null===(n=this._getInternalData(o))||void 0===n?void 0:n.insertInfo,!(0,u.isDefined)(i)){var a=this._getInsertAfterOrBeforeKey(e);i=this._createInsertInfo(),(0,u.isDefined)(a)||this._setInsertAfterOrBeforeKey(e,t)}return this._addInternalData({insertInfo:i,key:o}),{insertInfo:i,key:o}},_setInsertAfterOrBeforeKey:function(e,t){var n=this._dataController,i=n.items(!0),o=this.getView("rowsView"),a=this._getNewRowPosition();switch(a){case S.FIRST_NEW_ROW_POSITION:case S.LAST_NEW_ROW_POSITION:break;case S.PAGE_TOP_NEW_ROW_POSITION:case S.PAGE_BOTTOM_NEW_ROW_POSITION:if(i.length){var r=a===S.PAGE_TOP_NEW_ROW_POSITION?0:i.length-1;e[0===r?"insertBeforeKey":"insertAfterKey"]=i[r].key}break;default:var s=a===S.VIEWPORT_BOTTOM_NEW_ROW_POSITION?null==o?void 0:o.getBottomVisibleItemIndex():null==o?void 0:o.getTopVisibleItemIndex(),l=n.getVisibleRows()[s];l&&(!l.isEditing&&"detail"===l.rowType||"detailAdaptive"===l.rowType)&&s++;var d=n.getKeyByRowIndex(s);(0,u.isDefined)(d)&&(e.insertBeforeKey=d)}},_getInsertIndex:function(){var e=this,t=0;return this.getChanges().forEach((function(n){var i,o=null===(i=e._getInternalData(n.key))||void 0===i?void 0:i.insertInfo;(0,u.isDefined)(o)&&n.type===S.DATA_EDIT_DATA_INSERT_TYPE&&o[O]>t&&(t=o[O])})),t+1},_getInsertAfterOrBeforeKey:function(e){var t;return null!==(t=e.insertAfterKey)&&void 0!==t?t:e.insertBeforeKey},_getPageIndexToInsertRow:function(){var e=this._getNewRowPosition(),t=this._dataController,n=t.pageIndex(),i=t.pageCount()-1;return e===S.FIRST_NEW_ROW_POSITION&&0!==n?0:e===S.LAST_NEW_ROW_POSITION&&n!==i?i:-1},addRow:function(e){var t=this._dataController;return t.store()?this._addRow(e):(t.fireError("E1052",this.component.NAME),(new b.Deferred).reject())},_addRow:function(e){var t=this,n=this._dataController.store(),i=n&&n.key(),o={data:{}},a=this._getVisibleEditRowIndex(),r=new b.Deferred;return this.refresh(),this._allowRowAdding()?(i||(o.data.__KEY__=String(new s.default)),(0,b.when)(this._initNewRow(o,e)).done((function(){t._allowRowAdding()?(0,b.when)(t._addRowCore(o.data,e,a)).done(r.resolve).fail(r.reject):r.reject("cancel")})).fail(r.reject),r.promise()):((0,b.when)(this._navigateToNewRow(a)).done(r.resolve).fail(r.reject),r.promise())},_allowRowAdding:function(){return!(this._getInsertIndex()>1)},_addRowCore:function(e,t,n){var i={data:e,type:S.DATA_EDIT_DATA_INSERT_TYPE},o=this._getVisibleEditRowIndex(),a=this._addInsertInfo(i,t).key;return this._setEditRowKey(a,!0),this._addChange(i),this._navigateToNewRow(n,i,o)},_navigateToNewRow:function(e,t,n){var i,o,a=this,r=new b.Deferred,s=this._dataController,l=this.getController("focus");if(n=null!==(i=n)&&void 0!==i?i:-1,!(t=null!==(o=t)&&void 0!==o?o:this.getChanges().filter((function(e){return e.type===S.DATA_EDIT_DATA_INSERT_TYPE}))[0]))return r.reject("cancel").promise();var d=this._getPageIndexToInsertRow(),c=this._getLoadedRowIndex(s.items(),t,!0),h=function(e){(0,b.when)(null==l?void 0:l.navigateToRow(e)).done((function(){c=s.getRowIndexByKey(t.key),r.resolve()}))},f=this._getInsertAfterOrBeforeKey(t);return d>=0?s.pageIndex(d).done((function(){h(t.key)})).fail(r.reject):c<0&&(0,u.isDefined)(f)?h(f):(s.updateItems({changeType:"update",rowIndices:[e,n,c]}),(c=s.getRowIndexByKey(t.key))<0?h(t.key):r.resolve()),r.done((function(){a._showAddedRow(c),a._afterInsertRow(t.key)})),r.promise()},_showAddedRow:function(e){this._focusFirstEditableCellInRow(e)},_beforeFocusElementInRow:w.noop,_focusFirstEditableCellInRow:function(e){var t=this,n=this._dataController,i=n.getKeyByRowIndex(e),o=this.getFirstEditableCellInRow(e);this._editCellInProgress=!0,this._delayedInputFocus(o,(function(){e=n.getRowIndexByKey(i),t._editCellInProgress=!1,t._beforeFocusElementInRow(e)}))},_isEditingStart:function(e){return this.executeAction("onEditingStart",e),e.cancel},_beforeUpdateItems:w.noop,_getVisibleEditColumnIndex:function(){var e=this.option(S.EDITING_EDITCOLUMNNAME_OPTION_NAME);return(0,u.isDefined)(e)?this._columnsController.getVisibleColumnIndex(e):-1},_setEditColumnNameByIndex:function(e,t){var n,i=this._columnsController.getVisibleColumns();this._setEditColumnName(null===(n=i[e])||void 0===n?void 0:n.name,t)},_setEditColumnName:function(e,t){t?this._silentOption(S.EDITING_EDITCOLUMNNAME_OPTION_NAME,e):this.option(S.EDITING_EDITCOLUMNNAME_OPTION_NAME,e)},_resetEditColumnName:function(){this._setEditColumnName(null,!0)},_getEditColumn:function(){var e=this.option(S.EDITING_EDITCOLUMNNAME_OPTION_NAME);return this._getColumnByName(e)},_getColumnByName:function(e){var t,n=this._columnsController.getVisibleColumns();return(0,u.isDefined)(e)&&n.some((function(n){if(n.name===e)return t=n,!0})),t},_getVisibleEditRowIndex:function(e){var t=this._dataController,n=this.option(S.EDITING_EDITROWKEY_OPTION_NAME),i=t.getRowIndexByKey(n);return-1===i?i:i+this._getEditRowIndexCorrection(e)},_getEditRowIndexCorrection:function(e){var t=e?this._getColumnByName(e):this._getEditColumn();return"adaptiveHidden"===(null==t?void 0:t.visibleWidth)?1:0},_resetEditRowKey:function(){this._setEditRowKey(null,!0)},_resetEditIndices:function(){this._resetEditColumnName(),this._resetEditRowKey()},editRow:function(e){var t,n=this._dataController,i=n.items()[e],o={data:i&&i.data,cancel:!1},a=this._getVisibleEditRowIndex();if(i)return e===a||void(void 0!==i.key?(i.isNewRow||(o.key=i.key),this._isEditingStart(o)||(this.resetChanges(),this.init(),this._resetEditColumnName(),this._pageIndex=n.pageIndex(),this._addInternalData({key:i.key,oldData:null!==(t=i.oldData)&&void 0!==t?t:i.data}),this._setEditRowKey(i.key))):this._dataController.fireError("E1043"))},_editRowFromOptionChanged:function(e,t){var n=[t,e];this._beforeUpdateItems(n,e,t),this._editRowFromOptionChangedCore(n,e,t)},_editRowFromOptionChangedCore:function(e,t,n){this._needFocusEditor=!0,this._dataController.updateItems({changeType:"update",rowIndices:e})},_focusEditorIfNeed:w.noop,_showEditPopup:w.noop,_repaintEditPopup:w.noop,_getEditPopupHiddenHandler:function(){var e=this;return function(t){e.isEditing()&&e.cancelEditData()}},_getPopupEditFormTemplate:w.noop,_getSaveButtonConfig:function(){return{text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)}},_getCancelButtonConfig:function(){return{text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)}},_removeInternalData:function(e){var t=this._getInternalData(e),n=this._internalState.indexOf(t);n>-1&&this._internalState.splice(n,1)},_updateInsertAfterOrBeforeKeys:function(e,t){var n=this,i=e[t];e.forEach((function(e){var t=n._getInsertAfterOrBeforeKey(e);(0,w.equalByValue)(t,i.key)&&(e[(0,u.isDefined)(e.insertAfterKey)?"insertAfterKey":"insertBeforeKey"]=n._getInsertAfterOrBeforeKey(i))}))},_removeChange:function(e){if(e>=0){var t=I(this.getChanges()),n=t[e].key;this._removeInternalData(n),this._updateInsertAfterOrBeforeKeys(t,e),t.splice(e,1),this._silentOption(G,t),(0,w.equalByValue)(this.option(S.EDITING_EDITROWKEY_OPTION_NAME),n)&&this._resetEditIndices()}},executeOperation:function(e,t){var n=this;this._lastOperation&&this._lastOperation.reject(),this._lastOperation=e,this.waitForDeferredOperations().done((function(){"rejected"!==e.state()&&(t(),n._lastOperation=null)})).fail((function(){e.reject(),n._lastOperation=null}))},waitForDeferredOperations:function(){return b.when.apply(void 0,I(this._deferreds))},_processCanceledEditingCell:w.noop,_repaintEditCell:function(e,t,n){this._needFocusEditor=!0,!e||!e.showEditorAlways||t&&!t.showEditorAlways?(this._editCellInProgress=!0,this.getController("editorFactory").loseFocus(),this._dataController.updateItems({changeType:"update",rowIndices:[n,this._getVisibleEditRowIndex()]})):e!==t&&this._dataController.updateItems({changeType:"update",rowIndices:[]})},_delayedInputFocus:function(e,t,n){var i=this,o=function(){if(t&&t(),e){var n=e.find(S.FOCUSABLE_ELEMENT_SELECTOR).first();g.default.focusAndSelectElement(i,n)}i._beforeFocusCallback=null};x.default.real().ios||x.default.real().android?o():(this._beforeFocusCallback&&this._beforeFocusCallback(),clearTimeout(this._inputFocusTimeoutID),n&&(this._beforeFocusCallback=t),this._inputFocusTimeoutID=setTimeout(o))},_focusEditingCell:function(e,t,n){var i=this.getView("rowsView"),o=this._getVisibleEditColumnIndex();(t=t||i&&i._getCellElement(this._getVisibleEditRowIndex(),o))&&this._delayedInputFocus(t,e,n)},deleteRow:function(e){this._checkAndDeleteRow(e)},_checkAndDeleteRow:function(e){var t=this,n=this.option("editing"),i=null==n?void 0:n.texts,o=null==n?void 0:n.confirmDelete,a=null==i?void 0:i.confirmDeleteMessage,r=this._dataController.items()[e],s=!this.isEditing()||r.isNewRow;if(r&&s)if(o&&a){var l=i&&i.confirmDeleteTitle,d=(0,u.isDefined)(l)&&l.length>0;(0,v.confirm)(a,l,d).done((function(n){n&&t._deleteRowCore(e)}))}else this._deleteRowCore(e)},_deleteRowCore:function(e){var t=this._dataController.items()[e],n=t&&t.key,i=this._getVisibleEditRowIndex();this.refresh();var o=this.getChanges(),a=g.default.getIndexByKey(n,o);return a>=0?o[a].type===S.DATA_EDIT_DATA_INSERT_TYPE?this._removeChange(a):this._addChange({key:n,type:S.DATA_EDIT_DATA_REMOVE_TYPE}):this._addChange({key:n,oldData:t.data,type:S.DATA_EDIT_DATA_REMOVE_TYPE}),this._afterDeleteRow(e,i)},_afterDeleteRow:function(e,t){return this.saveEditData()},undeleteRow:function(e){var t=this._dataController,n=t.items()[e],i=this._getVisibleEditRowIndex(),o=n&&n.key,a=this.getChanges();if(n){var r=g.default.getIndexByKey(o,a);if(r>=0){var s=a[r].data;(0,u.isEmptyObject)(s)?this._removeChange(r):this._addChange({key:o,type:V}),t.updateItems({changeType:"update",rowIndices:[i,e]})}}},_fireOnSaving:function(){var e=this,t={cancel:!1,promise:null,changes:I(this.getChanges())};this.executeAction("onSaving",t);var n=new b.Deferred;return(0,b.when)((0,b.fromPromise)(t.promise)).done((function(){n.resolve(t)})).fail((function(t){j(n),e._fireDataErrorOccurred(t),n.resolve({cancel:!0})})),n},_executeEditingAction:function(e,t,n){if(this.component._disposed)return null;var i=new b.Deferred;return this.executeAction(e,t),(0,b.when)((0,b.fromPromise)(t.cancel)).done((function(e){e?setTimeout((function(){i.resolve("cancel")})):n(t).done(i.resolve).fail(j(i))})).fail(j(i)),i},_processChanges:function(e,t,n,i){var o=this,a=this._dataController.store();(0,d.each)(i,(function(r,s){var l,d,c=o._getOldData(s.key),h=s.data,f=s.type,p=D({},s);if(!o._beforeSaveEditData(s,r)){switch(f){case S.DATA_EDIT_DATA_REMOVE_TYPE:d={data:c,key:s.key,cancel:!1},l=o._executeEditingAction("onRowRemoving",d,(function(){return a.remove(s.key).done((function(e){n.push({type:"remove",key:e})}))}));break;case S.DATA_EDIT_DATA_INSERT_TYPE:d={data:h,cancel:!1},l=o._executeEditingAction("onRowInserting",d,(function(){return a.insert(d.data).done((function(e,t){(0,u.isDefined)(t)&&(p.key=t),e&&(0,u.isObject)(e)&&e!==d.data&&(p.data=e),n.push({type:"insert",data:e,index:0})}))}));break;case V:d={newData:h,oldData:c,key:s.key,cancel:!1},l=o._executeEditingAction("onRowUpdating",d,(function(){return a.update(s.key,d.newData).done((function(e,t){e&&(0,u.isObject)(e)&&e!==d.newData&&(p.data=e),n.push({type:"update",key:t,data:e})}))}))}if(i[r]=p,l){var g=new b.Deferred;l.always((function(e){t.push({key:s.key,result:e})})).always(g.resolve),e.push(g.promise())}}}))},_processRemoveIfError:function(e,t){var n=e[t];return(null==n?void 0:n.type)===S.DATA_EDIT_DATA_REMOVE_TYPE&&t>=0&&e.splice(t,1),!0},_processRemove:function(e,t,n){var i=e[t];if(!n||!i||i.type===S.DATA_EDIT_DATA_REMOVE_TYPE)return this._processRemoveCore(e,t,!n||!i)},_processRemoveCore:function(e,t){return t>=0&&e.splice(t,1),!0},_processSaveEditDataResult:function(e){for(var t=!1,n=I(this.getChanges()),i=n.length,o=0;o<e.length;o++){var a=e[o].result,r="cancel"===a,s=g.default.getIndexByKey(e[o].key,n),l=n[s];if(a&&a instanceof Error){if(l&&this._addInternalData({key:l.key,error:a}),this._fireDataErrorOccurred(a),this._processRemoveIfError(n,s))break}else this._processRemove(n,s,r)&&(t=!r)}return n.length<i&&this._silentOption(G,n),t},_fireSaveEditDataEvents:function(e){var t=this;(0,d.each)(e,(function(e,n){var i=n.data,o=n.key,a=n.type,r=t._addInternalData({key:o}),s={key:o,data:i};switch(r.error&&(s.error=r.error),a){case S.DATA_EDIT_DATA_REMOVE_TYPE:t.executeAction("onRowRemoved",(0,c.extend)({},s,{data:r.oldData}));break;case S.DATA_EDIT_DATA_INSERT_TYPE:t.executeAction("onRowInserted",s);break;case V:t.executeAction("onRowUpdated",s)}})),this.executeAction("onSaved",{changes:e})},saveEditData:function(){var e=this,t=new b.Deferred;return this.waitForDeferredOperations().done((function(){e.isSaving()?e._resolveAfterSave(t):(0,b.when)(e._beforeSaveEditData()).done((function(n){if(n)e._resolveAfterSave(t,{cancel:n});else{e._saving=!0;var i={};e._saveEditDataInner(i).always((function(){e._saving=!1,i.needFocusEditCell&&e._focusEditingCell()})).done(t.resolve).fail(t.reject)}})).fail(t.reject)})).fail(t.reject),t.promise()},_resolveAfterSave:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.cancel,i=t.error;(0,b.when)(this._afterSaveEditData(n)).done((function(){e.resolve(i)})).fail(e.reject)},_saveEditDataInner:function(e){var t=this,n=[],i=[],o=[],a=this._dataController.dataSource(),r=new b.Deferred;return(0,b.when)(this._fireOnSaving()).done((function(s){var l=s.cancel,u=s.changes;return l?r.resolve().promise():(t._processChanges(i,n,o,u),i.length?(null==a||a.beginLoading(),b.when.apply(void 0,i).done((function(){t._processSaveEditDataResult(n)?t._endSaving(o,u,r):(null==a||a.endLoading(),r.resolve())})).fail((function(e){null==a||a.endLoading(),r.resolve(e)})),r.always((function(){e.needFocusEditCell=!0})).promise()):void t._cancelSaving(r))})).fail(r.reject),r.promise()},_beforeEndSaving:function(e){this._resetEditIndices()},_endSaving:function(e,t,n){var i=this._dataController.dataSource();this._beforeEndSaving(t),null==i||i.endLoading(),this._refreshDataAfterSave(e,t,n)},_cancelSaving:function(e){this.executeAction("onSaved",{changes:[]}),this._resolveAfterSave(e)},_refreshDataAfterSave:function(e,t,n){var i=this,o=this._dataController,a=this.option("editing.refreshMode"),r="reshape"!==a&&"repaint"!==a;r||o.push(e),(0,b.when)(o.refresh({selection:r,reload:r,load:"reshape"===a,changesOnly:this.option("repaintChangesOnly")})).always((function(){i._fireSaveEditDataEvents(t)})).done((function(){i._resolveAfterSave(n)})).fail((function(e){i._resolveAfterSave(n,{error:e})}))},isSaving:function(){return this._saving},_updateEditColumn:function(){var e=this._isEditColumnVisible(),t="dx-command-edit"+(this.option("editing.useIcons")?" dx-command-edit-with-icons":"");this._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:e,cssClass:t,width:"auto",alignment:"center",cellTemplate:this._getEditCommandCellTemplate(),fixedPosition:"right"}),this._columnsController.columnOption("command:edit",{visible:e,cssClass:t})},_isEditColumnVisible:function(){return this.option("editing").allowDeleting},_isEditButtonDisabled:function(){var e=this.hasChanges();return!((0,u.isDefined)(this.option("editing.editRowKey"))||e)},_updateEditButtons:function(){var e=this.getView("headerPanel"),t=this._isEditButtonDisabled();e&&(e.setToolbarItemDisabled("saveButton",t),e.setToolbarItemDisabled("revertButton",t))},_applyModified:function(e){e&&e.addClass(R)},_beforeCloseEditCellInBatchMode:w.noop,cancelEditData:function(){var e=this.getChanges(),t={cancel:!1,changes:e};this.executeAction("onEditCanceling",t),t.cancel||(this._cancelEditDataCore(),this.executeAction("onEditCanceled",{changes:e}))},_cancelEditDataCore:function(){var e=this._getVisibleEditRowIndex();this._beforeCancelEditData(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey(),this._afterCancelEditData(e)},_afterCancelEditData:function(e){this._dataController.updateItems({repaintChangesOnly:this.option("repaintChangesOnly")})},_hideEditPopup:w.noop,hasEditData:function(){return this.hasChanges()},update:function(e){var t=this._dataController;t&&this._pageIndex!==t.pageIndex()&&("refresh"===e&&this.refresh(!0),this._pageIndex=t.pageIndex()),this._updateEditButtons()},_getRowIndicesForCascadeUpdating:function(e,t){return t?[]:[e.rowIndex]},addDeferred:function(e){var t=this;this._deferreds.indexOf(e)<0&&(this._deferreds.push(e),e.always((function(){var n=t._deferreds.indexOf(e);n>=0&&t._deferreds.splice(n,1)})))},_prepareChange:function(e,t,n){var i,o=this,a={},r=null===(i=e.row)||void 0===i?void 0:i.data,s=e.key,l=new b.Deferred;return void 0!==s&&(e.value=t,(0,b.fromPromise)(e.column.setCellValue(a,t,(0,c.extend)(!0,{},r),n)).done((function(){l.resolve({data:a,key:s,oldData:r,type:V})})).fail(j(l)).fail((function(e){return o._fireDataErrorOccurred(e)})),(0,u.isDefined)(n)&&e.column.displayValueMap&&(e.column.displayValueMap[t]=n),this._updateRowValues(e),this.addDeferred(l)),l},_updateRowValues:function(e){if(e.values){var t=this._dataController,n=t.getRowIndexByKey(e.key),i=t.getVisibleRows()[n];i&&(e.values=i.values),e.values[e.columnIndex]=e.value}},updateFieldValue:function(e,t,n,i){var o=this,a=e.key,r=new b.Deferred;return void 0===a&&this._dataController.fireError("E1043"),e.column.setCellValue?this._prepareChange(e,t,n).done((function(t){(0,b.when)(o._applyChange(e,t,i)).always((function(){r.resolve()}))})):r.resolve(),r.promise()},_focusPreviousEditingCellIfNeed:function(e){if(this.hasEditData()&&!this.isEditCell(e.rowIndex,e.columnIndex))return this._focusEditingCell(),this._updateEditRow(e.row,!0),!0},_needUpdateRow:function(e){var t=this._columnsController.getVisibleColumns();e||(e=this._getEditColumn());var n=e&&e.setCellValue!==e.defaultSetCellValue,i=t.some((function(e){return e.calculateCellValue!==e.defaultCalculateCellValue}));return n||i},_applyChange:function(e,t,n){var i=D({},e,{forceUpdateRow:n});return this._addChange(t,i),this._updateEditButtons(),this._applyChangeCore(e,i.forceUpdateRow)},_applyChangeCore:function(e,t){var n=e.column.setCellValue!==e.column.defaultSetCellValue,i=e.row;i&&(t||n?this._updateEditRow(i,t,n):i.update&&i.update())},_updateEditRowCore:function(e,t,n){this._dataController.updateItems({changeType:"update",rowIndices:this._getRowIndicesForCascadeUpdating(e,t)})},_updateEditRow:function(e,t,n){t?this._updateRowImmediately(e,t,n):this._updateRowWithDelay(e,n)},_updateRowImmediately:function(e,t,n){this._updateEditRowCore(e,!t,n),this._validateEditFormAfterUpdate(e,n),t||this._focusEditingCell()},_updateRowWithDelay:function(e,t){var n=this,i=new b.Deferred;this.addDeferred(i),setTimeout((function(){var r=(0,o.default)(a.default.getActiveElement()),s=n._rowsView.getCellIndex(r,e.rowIndex),l=r.get(0),u=g.default.getSelectionRange(l);if(n._updateEditRowCore(e,!1,t),n._validateEditFormAfterUpdate(e,t),s>=0){var d=n._rowsView._getCellElement(e.rowIndex,s);n._delayedInputFocus(d,(function(){setTimeout((function(){l=a.default.getActiveElement(),u.selectionStart>=0&&g.default.setSelectionRange(l,u)}))}))}i.resolve()}))},_validateEditFormAfterUpdate:w.noop,_addChange:function(e,t){var n,i=null==t?void 0:t.row,o=I(this.getChanges()),a=g.default.getIndexByKey(e.key,o);a<0&&(a=o.length,this._addInternalData({key:e.key,oldData:e.oldData}),delete e.oldData,o.push(e));var r=D({},o[a]);return r&&(e.data&&(r.data=(0,m.createObjectWithChanges)(r.data,e.data)),r.type&&e.data||!e.type||(r.type=e.type),i&&(i.oldData=this._getOldData(i.key),i.data=(0,m.createObjectWithChanges)(i.data,e.data))),o[a]=r,this._silentOption(G,o),t&&r!==(null===(n=this.getChanges())||void 0===n?void 0:n[a])&&(t.forceUpdateRow=!0),r},_getFormEditItemTemplate:function(e,t){return t.editCellTemplate||this._getDefaultEditorTemplate()},getColumnTemplate:function(e){var t,n,i=this,o=e.column,a=e.row&&e.row.rowIndex,r=this.isRowBasedEditMode(),s=this.isEditRow(a),l=this.isEditCell(a,e.columnIndex);return!(o.showEditorAlways||o.setCellValue&&(s&&o.allowEditing||l))||"data"!==e.rowType&&"detailAdaptive"!==e.rowType||o.command?"detail"===o.command&&"detail"===e.rowType&&s&&(t=null==this?void 0:this.getEditFormTemplate(e)):(!((this.allowUpdating(e)||s)&&o.allowEditing||l)||!s&&r||(o.showEditorAlways&&!r&&(n={cancel:!1,key:e.row.isNewRow?void 0:e.row.key,data:e.row.data,column:o},this._isEditingStart(n)),n&&n.cancel||(e.setValue=function(t,n){i.updateFieldValue(e,t,n)})),t=o.editCellTemplate||this._getDefaultEditorTemplate()),t},_createButton:function(e,t,n,i){var a=H[t.name],s=this.option("editing.useIcons"),l=this.option("useLegacyColumnButtonTemplate"),d=(0,o.default)("<a>").attr("href","#").addClass("dx-link").addClass(t.cssClass);if(t.template&&l)this._rowsView.renderTemplate(e,t.template,n,!0);else{if(t.template)d=(0,o.default)("<span>").addClass(t.cssClass);else if(s&&a||t.icon){a=t.icon||a;var h=C.getImageSourceType(a);"image"===h||"svg"===h?d=C.getImageContainer(a).addClass(t.cssClass):d.addClass("dx-icon"+("dxIcon"===h?"-":" ")+a).attr("title",t.text),d.addClass("dx-link-icon"),e.addClass("dx-command-edit-with-icons");var f=this.getButtonLocalizationNames()[t.name];f&&d.attr("aria-label",y.default.format(f))}else d.text(t.text);(0,u.isDefined)(t.hint)&&d.attr("title",t.hint),this._isButtonDisabled(t,n)?d.addClass("dx-state-disabled"):t.template&&!t.onClick||r.default.on(d,(0,_.addNamespace)("click","dxDataGridEditing"),this.createAction((function(e){var i;null===(i=t.onClick)||void 0===i||i.call(t,(0,c.extend)({},e,{row:n.row,column:n.column})),e.event.preventDefault(),e.event.stopPropagation()}))),e.append(d,"&nbsp;"),t.template&&this._rowsView.renderTemplate(d,t.template,n,!0,i)}},getButtonLocalizationNames:function(){return{edit:"dxDataGrid-editingEditRow",save:"dxDataGrid-editingSaveRowChanges",delete:"dxDataGrid-editingDeleteRow",undelete:"dxDataGrid-editingUndeleteRow",cancel:"dxDataGrid-editingCancelRowChanges"}},prepareButtonItem:function(e,t,n,i){var a=this,r=this.option("editing.texts")||{},s={revert:r.cancelAllChanges,save:r.saveAllChanges,addRow:r.addRow},l={revert:"cancel",save:"save",addRow:"addrow"}[t],u=s[t],d=("save"===l||"cancel"===l)&&this._isEditButtonDisabled();return{widget:"dxButton",options:{onInitialized:function(t){(0,o.default)(t.element).addClass(e._getToolbarButtonClass("dx-edit-button "+a.addWidgetPrefix(l)+"-button"))},icon:"edit-button-"+l,disabled:d,onClick:function(){setTimeout((function(){a[n]()}))},text:u,hint:u},showText:"inMenu",name:t+"Button",location:"after",locateInMenu:"auto",sortIndex:i}},prepareEditButtons:function(e){var t=[];return(this.option("editing")||{}).allowAdding&&t.push(this.prepareButtonItem(e,"addRow","addRow",20)),t},highlightDataCell:function(e,t){this.isCellModified(t)&&t.column.setCellValue&&e.addClass(R)},_afterInsertRow:w.noop,_beforeSaveEditData:function(e){if(e&&!(0,u.isDefined)(e.key)&&(0,u.isDefined)(e.type))return!0},_afterSaveEditData:w.noop,_beforeCancelEditData:w.noop,_allowEditAction:function(e,t){var n=this.option("editing."+e);return(0,u.isFunction)(n)&&(n=n({component:this.component,row:t.row})),n},allowUpdating:function(e,t){var n=this.option("editing.startEditAction")||F,i=!(arguments.length>1)||n===t||"down"===t;return i&&this._allowEditAction("allowUpdating",e)},allowDeleting:function(e){return this._allowEditAction("allowDeleting",e)},isCellModified:function(e){var t=e.columnIndex,n=e.row&&(e.row.isNewRow?e.row.values:e.row.modifiedValues);return!!n&&void 0!==n[t]},isNewRowInEditMode:function(){var e=this._getVisibleEditRowIndex(),t=this._dataController.items();return e>=0&&t[e].isNewRow}}}())},extenders:{controllers:{data:{init:function(){this._editingController=this.getController("editing"),this.callBase()},reload:function(e,t){return!t&&this._editingController.refresh(),this.callBase.apply(this,arguments)},repaintRows:function(){if(!this.getController("editing").isSaving())return this.callBase.apply(this,arguments)},_updateEditRow:function(e){var t,n=this.option(S.EDITING_EDITROWKEY_OPTION_NAME),i=e[g.default.getIndexByKey(n,e)];i&&(i.isEditing=!0,null===(t=this._updateEditItem)||void 0===t||t.call(this,i))},_updateItemsCore:function(e){this.callBase(e),this._updateEditRow(this.items(!0))},_applyChangeUpdate:function(e){this._updateEditRow(e.items),this.callBase(e)},_applyChangesOnly:function(e){this._updateEditRow(e.items),this.callBase(e)},_processItems:function(e,t){return e=this._editingController.processItems(e,t),this.callBase(e,t)},_processDataItem:function(e,t){return this._editingController.processDataItem(e,t,this.generateDataValues),this.callBase(e,t)},_processItem:function(e,t){return(e=this.callBase(e,t)).isNewRow&&(t.dataIndex--,delete e.dataIndex),e},_getChangedColumnIndices:function(e,t,n,i){if(e.isNewRow===t.isNewRow&&e.removed===t.removed)return this.callBase.apply(this,arguments)},_isCellChanged:function(e,t,n,i,o){var a=this.getController("editing"),r=e.cells&&e.cells[i],s=a&&a.isEditCell(n,i);return(!o||!s)&&(!(!r||!r.column||r.column.showEditorAlways||r.isEditing===s)||this.callBase.apply(this,arguments))}}},views:{rowsView:{init:function(){this.callBase(),this._editingController=this.getController("editing")},getCellIndex:function(e,t){if(!e.is("td")&&t>=0){var n=this.getCellElements(t),i=-1;return(0,d.each)(n,(function(t,n){(0,o.default)(n).find(e).length&&(i=t)})),i}return this.callBase.apply(this,arguments)},publicMethods:function(){return this.callBase().concat(["cellValue"])},_getCellTemplate:function(e){return this._editingController.getColumnTemplate(e)||this.callBase(e)},_isNativeClick:function(){return(x.default.real().ios||x.default.real().android)&&this.option("editing.allowUpdating")},_createRow:function(e){var t=this.callBase.apply(this,arguments);if(e){var n=!!e.removed,i=!!e.isNewRow,o=!!e.modified;i&&t.addClass(P),o&&t.addClass(M),(i||n)&&t.removeClass(A)}return t},_getColumnIndexByElement:function(e){for(var t=e.closest("table"),n=this.getTableElements();t.length&&!n.filter(t).length;)e=t.closest("td"),t=e.closest("table");return this._getColumnIndexByElementCore(e)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+S.ROW_CLASS+"> td:not(.dx-master-detail-cell)");return this.getCellIndex(t)},_editCellByClick:function(e,t){var n=this._editingController,i=(0,o.default)(e.event.target),a=this._getColumnIndexByElement(i),r=this._dataController.items()[e.rowIndex],s=n.allowUpdating({row:r},t)||r&&r.isNewRow,u=this._columnsController.getVisibleColumns()[a],d=n.isEditCell(e.rowIndex,a),c=s&&u&&(u.allowEditing||d),h=this.option("editing.startEditAction")||"click";return"down"===t?(!x.default.real().ios&&!x.default.real().android||d||(0,l.resetActiveElement)(),u&&u.showEditorAlways&&c&&n.editCell(e.rowIndex,a)):("click"!==t||"dblClick"!==h||d||n.closeEditCell(),c&&t===h?n.editCell(e.rowIndex,a)||n.isEditRow(e.rowIndex):void 0)},_rowPointerDown:function(e){var t=this;this._pointerDownTimeout=setTimeout((function(){t._editCellByClick(e,"down")}))},_rowClick:function(e){var t=(0,o.default)(e.rowElement).hasClass(this.addWidgetPrefix(S.EDIT_FORM_CLASS));e.event[S.TARGET_COMPONENT_NAME]=this.component,this._editCellByClick(e,"click")||t||this.callBase.apply(this,arguments)},_rowDblClick:function(e){this._editCellByClick(e,"dblClick")||this.callBase.apply(this,arguments)},_cellPrepared:function(e,t){var n=this._editingController,i=!!t.column.command,o=t.setValue,a=n.isEditRow(t.rowIndex),r=q(a,t);if($(a,t)){var s=t.column.alignment;e.toggleClass(this.addWidgetPrefix(E),!o).toggleClass(B,!o),s&&e.find(S.EDITORS_INPUT_SELECTOR).first().css("textAlign",s)}r&&this._editCellPrepared(e),t.column&&!i&&n.highlightDataCell(e,t),this.callBase.apply(this,arguments)},_editCellPrepared:w.noop,_formItemPrepared:w.noop,_getCellOptions:function(e){var t=this.callBase(e);return t.isEditing=this._editingController.isEditCell(t.rowIndex,t.columnIndex),t},_createCell:function(e){var t=this.callBase(e),n=this._editingController.isEditRow(e.rowIndex);return $(n,e)&&t.addClass(S.EDITOR_CELL_CLASS),t},cellValue:function(e,t,n,i){var o=this.getCellOptions(e,t);if(o){if(void 0===n)return o.value;this._editingController.updateFieldValue(o,n,i,!0)}},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._pointerDownTimeout)},_renderCore:function(){this.callBase.apply(this,arguments),this._editingController._focusEditorIfNeed()}},headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this.getController("editing").prepareEditButtons(this).concat(e)},optionChanged:function(e){var t=e.fullName;switch(e.name){case"editing":var n=[S.EDITING_POPUP_OPTION_NAME,G,S.EDITING_EDITCOLUMNNAME_OPTION_NAME,S.EDITING_EDITROWKEY_OPTION_NAME];t&&!n.some((function(e){return e===t}))&&this._invalidate(),this.callBase(e);break;case"useLegacyColumnButtonTemplate":e.handled=!0;break;default:this.callBase(e)}},isVisible:function(){var e=this.getController("editing").option("editing");return this.callBase()||(null==e?void 0:e.allowAdding)}}}}};t.editingModule=K},68004:function(e,t,n){t.default=void 0;var i=m(n(68374)),o=m(n(73349)),a=n(58201),r=m(n(55994)),s=n(35922),l=n(95429),u=m(n(93786)),d=n(39611),c=m(n(11699)),h=n(62754),f=n(20576),p=n(60637),g=n(35917);function m(e){return e&&e.__esModule?e:{default:e}}var _="focus-overlay",v="addrow-button",y="dx-dropdowneditor-overlay",x="dx-row-removed",b="editing.editRowKey",w="editing.editColumnName",C="remove",S={extenders:{controllers:{editing:{init:function(){var e,t,n=this,s=!this._saveEditorHandler;this.callBase.apply(this,arguments),s&&(this._pointerUpEditorHandler=function(){var e;t=null===(e=n.getController("columnsResizer"))||void 0===e?void 0:e.isResizing()},this._pointerDownEditorHandler=function(t){return e=(0,i.default)(t.target)},this._saveEditorHandler=this.createAction((function(n){var o=n.event,r=(0,i.default)(o.target),s=o[g.TARGET_COMPONENT_NAME];if((!e||!e.is("input")||e.is(r))&&this.isCellOrBatchEditMode()&&!this._editCellInProgress){var l=p(r)||p(null==s?void 0:s.$element()),u=!!r.closest((0,a.getWindow)().document).length,d=s&&!s._disposed&&s!==this.component,c=!!r.closest(".".concat(this.addWidgetPrefix(v))).length,h=r.hasClass(this.addWidgetPrefix(_)),f=this.isCellEditMode();t||l||h||c&&f&&this.isEditing()||!u&&!d||this._closeEditItem.bind(this)(r)}function p(e){return e&&!!e.closest(".".concat(y)).length}})),r.default.on(o.default.getDocument(),u.default.up,this._pointerUpEditorHandler),r.default.on(o.default.getDocument(),u.default.down,this._pointerDownEditorHandler),r.default.on(o.default.getDocument(),l.name,this._saveEditorHandler))},isCellEditMode:function(){return this.option("editing.mode")===g.EDIT_MODE_CELL},isBatchEditMode:function(){return this.option("editing.mode")===g.EDIT_MODE_BATCH},isCellOrBatchEditMode:function(){return this.isCellEditMode()||this.isBatchEditMode()},_needToCloseEditableCell:function(e){var t=this.component.$element(),n=this.isEditing(),i=!t||!!e.closest(t).length;if(i){var o=e.closest(".dx-data-row").length;if(o){var a=this.getView("rowsView"),r=e.closest(".dx-row> td"),s=a.getRowIndex(r.parent()),l=a.getCellElements(s).index(r),u=this._columnsController.getVisibleColumns(),d=u[l]&&u[l].allowEditing;n=n&&!d&&!this.isEditCell(s,l)}}return n||this.callBase.apply(this,arguments)},_closeEditItem:function(e){this._needToCloseEditableCell(e)&&this.closeEditCell()},_focusEditorIfNeed:function(){var e=this;if(this._needFocusEditor&&this.isCellOrBatchEditMode()){var t,n=this._getVisibleEditColumnIndex(),i=null===(t=this._rowsView)||void 0===t?void 0:t._getCellElement(this._getVisibleEditRowIndex(),n);i&&!i.find(":focus").length?this._focusEditingCell((function(){e._editCellInProgress=!1}),i,!0):this._editCellInProgress=!1,this._needFocusEditor=!1}else this.callBase.apply(this,arguments)},isEditing:function(){if(this.isCellOrBatchEditMode()){var e=(0,s.isDefined)(this.option(b)),t=(0,s.isDefined)(this.option(w));return e&&t}return this.callBase.apply(this,arguments)},_handleEditColumnNameChange:function(e){var t=this._getVisibleEditRowIndex(e.previousValue);if(this.isCellOrBatchEditMode()&&-1!==t&&(0,s.isDefined)(e.value)&&e.value!==e.previousValue){var n=this._columnsController.getVisibleColumnIndex(e.value),i=this._columnsController.getVisibleColumnIndex(e.previousValue);this._editCellFromOptionChanged(n,i,t)}},_addRow:function(e,t){var n=this;if(this.isCellEditMode()&&this.hasChanges()){var i=new h.Deferred;return this.saveEditData().done((function(){n.hasChanges()?i.reject("cancel"):n.addRow(e).done(i.resolve).fail(i.reject)})),i.promise()}return this.callBase.apply(this,arguments)},editCell:function(e,t){return this._editCell({rowIndex:e,columnIndex:t})},_editCell:function(e){var t,n=this,i=new h.Deferred;return this.executeOperation(i,(function(){t=n._editCellCore(e),(0,h.when)(t).done(i.resolve).fail(i.reject)})),void 0!==t?t:i.promise()},_editCellCore:function(e){var t=this,n=this._dataController,i=(0,s.isDefined)(e.oldColumnIndex)||(0,s.isDefined)(e.oldRowIndex),o=this._getNormalizedEditCellOptions(e),a=o.columnIndex,r=o.rowIndex,l=o.column,u=o.item,d={data:null==u?void 0:u.data,cancel:!1,column:l};if(void 0!==u.key){if(l&&("data"===u.rowType||"detailAdaptive"===u.rowType)&&!u.removed&&this.isCellOrBatchEditMode()){if(!i&&this.isEditCell(r,a))return!0;var c=r+n.getRowIndexOffset();return(0,h.when)(this._beforeEditCell(r,a,u)).done((function(e){e||t._prepareEditCell(d,u,a,c)||t._processCanceledEditingCell()}))}return!1}this._dataController.fireError("E1043")},_beforeEditCell:function(e,t,n){var i=this;if(this.isCellEditMode()&&!n.isNewRow&&this.hasChanges()){var o=new h.Deferred;return this.saveEditData().always((function(){o.resolve(i.hasChanges())})),o}},publicMethods:function(){var e=this.callBase.apply(this,arguments);return e.concat(["editCell","closeEditCell"])},_getNormalizedEditCellOptions:function(e){var t,n=e.oldColumnIndex,i=e.oldRowIndex,o=e.columnIndex,a=e.rowIndex,r=this._columnsController,l=r.getVisibleColumns(),u=this._dataController.items()[a];return t=(0,s.isDefined)(n)?l[n]:this._getEditColumn(),(0,s.isDefined)(i)||(i=this._getVisibleEditRowIndex()),(0,s.isString)(o)&&(o=r.columnOption(o,"index"),o=r.getVisibleIndex(o)),{oldColumn:t,columnIndex:o,oldRowIndex:i,rowIndex:a,column:l[o],item:u}},_prepareEditCell:function(e,t,n,i){return t.isNewRow||(e.key=t.key),!this._isEditingStart(e)&&(this._pageIndex=this._dataController.pageIndex(),this._setEditRowKey(t.key),this._setEditColumnNameByIndex(n),e.column.showEditorAlways||this._addInternalData({key:t.key,oldData:null!==(o=t.oldData)&&void 0!==o?o:t.data}),!0);var o},closeEditCell:function(e,t){var n=this,i=(0,h.when)(),o=this._getVisibleEditRowIndex();if(this.isCellOrBatchEditMode()){var a=new h.Deferred;i=new h.Deferred,this.executeOperation(a,(function(){n._closeEditCellCore(e,o,t).always(i.resolve)}))}return i.promise()},_closeEditCellCore:function(e,t,n){var i=this,o=this._dataController,a=new h.Deferred,r=a.promise();if(this.isCellEditMode()&&this.hasChanges()){if(!n)return this.saveEditData().done((function(e){i.hasChanges()?a.resolve():i.closeEditCell(!!e).always(a.resolve)})),r}else if(this._resetEditRowKey(),this._resetEditColumnName(),t>=0){var s=[t];this._beforeCloseEditCellInBatchMode(s),e||o.updateItems({changeType:"update",rowIndices:s})}return a.resolve(),r},_resetModifiedClassCells:function(e){var t=this;if(this.isBatchEditMode()){var n=this._columnsController.getVisibleColumns().length;e.forEach((function(e){var i=e.key,o=t._dataController.getRowIndexByKey(i);if(-1!==o)for(var a=0;a<n;a++)t._rowsView._getCellElement(o,a).removeClass("dx-cell-modified")}))}},_prepareChange:function(e,t,n){var o=(0,i.default)(e.cellElement);return this.isBatchEditMode()&&void 0!==e.key&&this._applyModified(o,e),this.callBase.apply(this,arguments)},_cancelSaving:function(){var e=this._dataController;this.isCellOrBatchEditMode()&&(this.isBatchEditMode()&&this._resetEditIndices(),e.updateItems()),this.callBase.apply(this,arguments)},optionChanged:function(e){var t=e.fullName;"editing"===e.name&&t===w?(this._handleEditColumnNameChange(e),e.handled=!0):this.callBase(e)},_editCellFromOptionChanged:function(e,t,n){var i=this,o=this._columnsController.getVisibleColumns();e>-1&&(0,f.deferRender)((function(){i._repaintEditCell(o[e],o[t],n)}))},_handleEditRowKeyChange:function(e){if(this.isCellOrBatchEditMode()){var t,n=this._getVisibleEditColumnIndex(),i=this._getEditRowIndexCorrection(),o=this._dataController.getRowIndexByKey(e.previousValue)+i;(0,s.isDefined)(e.value)&&e.value!==e.previousValue&&(null===(t=this._editCellFromOptionChanged)||void 0===t||t.call(this,n,n,o))}else this.callBase.apply(this,arguments)},deleteRow:function(e){var t=this;if(this.isCellEditMode()&&this.isEditing()){var n=this._dataController.items()[e].isNewRow,i=this._dataController.getKeyByRowIndex(e);this.closeEditCell(null,n).always((function(){e=t._dataController.getRowIndexByKey(i),t._checkAndDeleteRow(e)}))}else this.callBase.apply(this,arguments)},_checkAndDeleteRow:function(e){this.isBatchEditMode()?this._deleteRowCore(e):this.callBase.apply(this,arguments)},_refreshCore:function(e){var t=this.isBatchEditMode()||e&&"virtual"!==this.option("scrolling.mode");this.isCellOrBatchEditMode()?t&&(this._resetEditColumnName(),this._resetEditRowKey()):this.callBase.apply(this,arguments)},_allowRowAdding:function(e){return!!this.isBatchEditMode()||this.callBase.apply(this,arguments)},_afterDeleteRow:function(e,t){var n=this._dataController;return this.isBatchEditMode()?(n.updateItems({changeType:"update",rowIndices:[t,e]}),(new h.Deferred).resolve()):this.callBase.apply(this,arguments)},_updateEditRow:function(e,t,n){this.isCellOrBatchEditMode()?this._updateRowImmediately(e,t,n):this.callBase.apply(this,arguments)},_isDefaultButtonVisible:function(e,t){if(this.isCellOrBatchEditMode()){var n=this.isBatchEditMode();switch(e.name){case"save":case"cancel":case"edit":return!1;case"delete":return this.callBase.apply(this,arguments)&&(!n||!t.row.removed);case"undelete":return n&&this.allowDeleting(t)&&t.row.removed;default:return this.callBase.apply(this,arguments)}}return this.callBase.apply(this,arguments)},_isRowDeleteAllowed:function(){var e=this.callBase.apply(this,arguments);return e||this.isBatchEditMode()},_beforeEndSaving:function(e){var t;this.isCellEditMode()?"update"!==(null===(t=e[0])||void 0===t?void 0:t.type)&&this.callBase.apply(this,arguments):(this.isBatchEditMode()&&this._resetModifiedClassCells(e),this.callBase.apply(this,arguments))},prepareEditButtons:function(e){var t=this.option("editing")||{},n=this.callBase.apply(this,arguments);return(t.allowUpdating||t.allowAdding||t.allowDeleting)&&this.isBatchEditMode()&&(n.push(this.prepareButtonItem(e,"save","saveEditData",21)),n.push(this.prepareButtonItem(e,"revert","cancelEditData",22))),n},_saveEditDataInner:function(){var e,t,n=this._dataController.getVisibleRows()[this.getEditRowIndex()],i=this._getEditColumn(),o=null==i?void 0:i.showEditorAlways,a=this.isCellEditMode()&&!(null!=n&&n.isNewRow);return a&&o&&(t=new h.Deferred,this.addDeferred(t)),this.callBase.apply(this,arguments).always(null===(e=t)||void 0===e?void 0:e.resolve)},_applyChange:function(e,t,n){var i=this.isCellEditMode()&&e.row&&!e.row.isNewRow,o=e.column.showEditorAlways,a=e.column.setCellValue!==e.column.defaultSetCellValue,r=o&&!n&&i&&this.hasEditData()&&!this.isEditCell(e.rowIndex,e.columnIndex);return r?(this._focusEditingCell(),void this._updateEditRow(e.row,!0,a)):this.callBase.apply(this,arguments)},_applyChangeCore:function(e,t){var n=e.column.showEditorAlways,i=this.isCellEditMode()&&e.row&&!e.row.isNewRow;if(n&&!t){if(i)return this._setEditRowKey(e.row.key,!0),this._setEditColumnNameByIndex(e.columnIndex,!0),this.saveEditData();if(this.isBatchEditMode())return t=this._needUpdateRow(e.column),this.callBase(e,t)}return this.callBase.apply(this,arguments)},_processDataItemCore:function(e,t){var n=t.data,i=t.type;this.isBatchEditMode()&&i===C&&(e.data=(0,p.createObjectWithChanges)(e.data,n)),this.callBase.apply(this,arguments)},_processRemoveCore:function(e,t,n){if(!this.isBatchEditMode()||n)return this.callBase.apply(this,arguments)},_processRemoveIfError:function(){if(!this.isBatchEditMode())return this.callBase.apply(this,arguments)},_beforeFocusElementInRow:function(e){this.callBase.apply(this,arguments);var t=e>=0?e:0,n=this.getFirstEditableColumnIndex();n>=0&&this.editCell(t,n)}}},views:{rowsView:{_createTable:function(){var e=this.callBase.apply(this,arguments),t=this._editingController;return t.isCellOrBatchEditMode()&&this.option("editing.allowUpdating")&&r.default.on(e,(0,d.addNamespace)(c.default.name,"dxDataGridRowsView"),"td:not(.dx-editor-cell)",this.createAction((function(){t.isEditing()&&t.closeEditCell()}))),e},_createRow:function(e){var t=this.callBase.apply(this,arguments);if(e){var n=this._editingController,i=!!e.removed;n.isBatchEditMode()&&i&&t.addClass(x)}return t}},headerPanel:{isVisible:function(){var e=this.getController("editing").option("editing");return this.callBase()||e&&(e.allowUpdating||e.allowDeleting)&&e.mode===g.EDIT_MODE_BATCH}}}}};t.default=S,e.exports=t.default,e.exports.default=t.default},35917:function(e,t){t.VIEWPORT_TOP_NEW_ROW_POSITION=t.VIEWPORT_BOTTOM_NEW_ROW_POSITION=t.TARGET_COMPONENT_NAME=t.ROW_SELECTED_CLASS=t.ROW_CLASS=t.ROW_BASED_MODES=t.PAGE_TOP_NEW_ROW_POSITION=t.PAGE_BOTTOM_NEW_ROW_POSITION=t.MODES_WITH_DELAYED_FOCUS=t.LAST_NEW_ROW_POSITION=t.FOCUSABLE_ELEMENT_SELECTOR=t.FIRST_NEW_ROW_POSITION=t.EDIT_MODE_ROW=t.EDIT_MODE_POPUP=t.EDIT_MODE_FORM=t.EDIT_MODE_CELL=t.EDIT_MODE_BATCH=t.EDIT_MODES=t.EDIT_FORM_CLASS=t.EDITOR_CELL_CLASS=t.EDITORS_INPUT_SELECTOR=t.EDITING_POPUP_OPTION_NAME=t.EDITING_FORM_OPTION_NAME=t.EDITING_EDITROWKEY_OPTION_NAME=t.EDITING_EDITCOLUMNNAME_OPTION_NAME=t.DATA_EDIT_DATA_REMOVE_TYPE=t.DATA_EDIT_DATA_INSERT_TYPE=t.CELL_MODIFIED_CLASS=void 0,t.EDITOR_CELL_CLASS="dx-editor-cell",t.ROW_CLASS="dx-row",t.CELL_MODIFIED_CLASS="dx-cell-modified",t.ROW_SELECTED_CLASS="dx-selection",t.EDIT_FORM_CLASS="edit-form",t.DATA_EDIT_DATA_INSERT_TYPE="insert",t.DATA_EDIT_DATA_REMOVE_TYPE="remove",t.EDITING_POPUP_OPTION_NAME="editing.popup",t.EDITING_FORM_OPTION_NAME="editing.form",t.EDITING_EDITROWKEY_OPTION_NAME="editing.editRowKey",t.EDITING_EDITCOLUMNNAME_OPTION_NAME="editing.editColumnName",t.TARGET_COMPONENT_NAME="targetComponent";t.EDITORS_INPUT_SELECTOR="input:not([type='hidden'])",t.FOCUSABLE_ELEMENT_SELECTOR="[tabindex], input:not([type='hidden'])";var n="batch";t.EDIT_MODE_BATCH=n;var i="row";t.EDIT_MODE_ROW=i;var o="cell";t.EDIT_MODE_CELL=o;var a="form";t.EDIT_MODE_FORM=a;var r="popup";t.EDIT_MODE_POPUP=r,t.FIRST_NEW_ROW_POSITION="first",t.LAST_NEW_ROW_POSITION="last",t.PAGE_BOTTOM_NEW_ROW_POSITION="pageBottom",t.PAGE_TOP_NEW_ROW_POSITION="pageTop",t.VIEWPORT_BOTTOM_NEW_ROW_POSITION="viewportBottom",t.VIEWPORT_TOP_NEW_ROW_POSITION="viewportTop";var s=[n,i,o,a,r];t.EDIT_MODES=s;var l=[i,a,r];t.ROW_BASED_MODES=l;var u=[i,a];t.MODES_WITH_DELAYED_FOCUS=u},42252:function(e,t,n){t.editingFormBasedModule=void 0;var i=_(n(68374)),o=n(58201),a=_(n(55994)),r=_(n(73176)),s=n(35922),l=n(95479),u=n(13306),d=_(n(63008)),c=_(n(20530)),h=_(n(17737)),f=n(62754),p=_(n(41183)),g=_(n(39114)),m=n(35917);function _(e){return e&&e.__esModule?e:{default:e}}var v="edit-form-item",y="edit-popup",x={extenders:{controllers:{editing:{init:function(){this._editForm=null,this._updateEditFormDeferred=null,this.callBase.apply(this,arguments)},isFormOrPopupEditMode:function(){return this.isPopupEditMode()||this.isFormEditMode()},isPopupEditMode:function(){return this.option("editing.mode")===m.EDIT_MODE_POPUP},isFormEditMode:function(){return this.option("editing.mode")===m.EDIT_MODE_FORM},getFirstEditableColumnIndex:function(){var e=this._firstFormItem;if(this.isFormEditMode()&&e){var t=this.option(m.EDITING_EDITROWKEY_OPTION_NAME),n=this._dataController.getRowIndexByKey(t),i=this._rowsView.getCellElements(n);return this._rowsView._getEditFormEditorVisibleIndex(i,e.column)}return this.callBase.apply(this,arguments)},getEditFormRowIndex:function(){return this.isFormOrPopupEditMode()?this._getVisibleEditRowIndex():this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var e=this.callBase.apply(this,arguments),t=this.option("editing");return this.isFormOrPopupEditMode()&&t.allowUpdating||e},_handleDataChanged:function(e){var t=this._editForm;"refresh"===e.changeType&&this.isPopupEditMode()&&null!=t&&t.option("visible")&&this._repaintEditPopup(),this.callBase.apply(this,arguments)},getPopupContent:function(){var e,t=null===(e=this._editPopup)||void 0===e?void 0:e.option("visible");if(this.isPopupEditMode()&&t)return this._$popupContent},_showAddedRow:function(e){this.isPopupEditMode()?this._showEditPopup(e):this.callBase.apply(this,arguments)},_cancelEditDataCore:function(){this.callBase.apply(this,arguments),this.isPopupEditMode()&&this._hideEditPopup()},_updateEditRowCore:function(e,t,n){var i,o=this._editForm;this.isPopupEditMode()?this.option("repaintChangesOnly")?null===(i=e.update)||void 0===i||i.call(e,e):o&&(this._updateEditFormDeferred=(new f.Deferred).done((function(){return o.repaint()})),this._updateLockCount||this._updateEditFormDeferred.resolve()):this.callBase.apply(this,arguments)},_showEditPopup:function(e,t){var n=this,o="desktop"!==c.default.current().deviceType,r=(0,u.extend)({showTitle:!1,fullScreen:o,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getCancelButtonConfig()}],contentTemplate:this._getPopupEditFormTemplate(e)},this.option(m.EDITING_POPUP_OPTION_NAME));if(!this._editPopup){var s=(0,i.default)("<div>").appendTo(this.component.$element()).addClass(this.addWidgetPrefix(y));this._editPopup=this._createComponent(s,g.default,{copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0}),this._editPopup.on("hiding",this._getEditPopupHiddenHandler()),this._editPopup.on("shown",(function(e){var i;a.default.trigger(e.component.$content().find(m.FOCUSABLE_ELEMENT_SELECTOR).not(".dx-scrollable-container").first(),"focus"),t&&(null===(i=n._editForm)||void 0===i||i.repaint())}))}this._editPopup.option(r),this._editPopup.show(),this.callBase.apply(this,arguments)},_getPopupEditFormTemplate:function(e){var t=this,n=this.component.getVisibleRows()[e],o={row:n,rowType:n.rowType,key:n.key};return function(e){var n=t.getEditFormTemplate(),a=t._createComponent((0,i.default)("<div>").appendTo(e),p.default);t._$popupContent=a.$content(),n(t._$popupContent,o,{renderFormOnly:!0})}},_repaintEditPopup:function(){var e,t=this._getVisibleEditRowIndex();if(null!==(e=this._editPopup)&&void 0!==e&&e.option("visible")&&t>=0){var n=this._editPopup.option("animation");this._editPopup.option("animation",null),this._showEditPopup(t,!0),this._editPopup.option("animation",n)}},_hideEditPopup:function(){var e;null===(e=this._editPopup)||void 0===e||e.option("visible",!1)},optionChanged:function(e){if("editing"===e.name&&this.isFormOrPopupEditMode()){var t=e.fullName;0===t.indexOf(m.EDITING_FORM_OPTION_NAME)?(this._handleFormOptionChange(e),e.handled=!0):0===t.indexOf(m.EDITING_POPUP_OPTION_NAME)&&(this._handlePopupOptionChange(e),e.handled=!0)}this.callBase.apply(this,arguments)},_handleFormOptionChange:function(e){var t;if(this.isFormEditMode()){var n=this._getVisibleEditRowIndex();n>=0&&this._dataController.updateItems({changeType:"update",rowIndices:[n]})}else null!==(t=this._editPopup)&&void 0!==t&&t.option("visible")&&0===e.fullName.indexOf(m.EDITING_FORM_OPTION_NAME)&&this._repaintEditPopup()},_handlePopupOptionChange:function(e){var t=this._editPopup;if(t){var n=e.fullName.slice(m.EDITING_POPUP_OPTION_NAME.length+1);n?t.option(n,e.value):t.option(e.value)}},renderFormEditTemplate:function(e,t,n,a,r){var s=this,l=this,d=(0,i.default)(a),c=t.column,h=function(e){var t,n=e.column;return e.isCustomEditorType?e.editorType:null===(t=n.formItem)||void 0===t?void 0:t.editorType}(t),f=null==e?void 0:e.row.data,p=n.component,g=(0,u.extend)({},e,{data:f,cellElement:null,isOnForm:!0,item:t,id:p.getItemID(t.name||t.dataField),column:(0,u.extend)({},c,{editorType:h,editorOptions:(0,u.extend)({},n.editorOptions,c.editorOptions,t.editorOptions)}),columnIndex:c.index,setValue:!r&&c.allowEditing&&function(e){l.updateFieldValue(g,e)}});g.value=c.calculateCellValue(f);var m=this._getFormEditItemTemplate.bind(this)(g,c);return this._rowsView.renderTemplate(d,m,g,!!d.closest((0,o.getWindow)().document).length).done((function(){s._rowsView._updateCell(d,g)})),g},getFormEditorTemplate:function(e,t){var n=this,o=this.component.columnOption(t.dataField);return function(a,r){var s,l,u=(0,i.default)(r);null===(s=(l=e.row).watch)||void 0===s||s.call(l,(function(){return o.selector(e.row.data)}),(function(){var i,o=u.find(".dx-widget").first(),r=o.data("dxValidator"),s=null===(i=r)||void 0===i?void 0:i.option();u.contents().remove(),e=n.renderFormEditTemplate.bind(n)(e,t,a,u),r=(o=u.find(".dx-widget").first()).data("dxValidator"),s&&!r&&o.dxValidator({validationRules:s.validationRules,validationGroup:s.validationGroup,dataGetter:s.dataGetter})})),e=n.renderFormEditTemplate.bind(n)(e,t,a,u)}},getEditFormOptions:function(e){var t,n=this,i=null===(t=this._getValidationGroupsInForm)||void 0===t?void 0:t.call(this,e),o=this.option("editing.form.customizeItem"),a=this.addWidgetPrefix(v),d=this.option("editing.form.items"),c={};if(d)!function e(t,n){t.forEach((function(t){t.items||t.tabs?e(t.items||t.tabs,n):n(t)}))}(d,(function(e){var t=(null==e?void 0:e.name)||(null==e?void 0:e.dataField);t&&(c[t]=!!e.editorType)}));else{var h=this.getController("columns").getColumns();d=[],(0,l.each)(h,(function(e,t){t.isBand||t.type||d.push({column:t,name:t.name,dataField:t.dataField})}))}return(0,u.extend)({},i,{items:d,formID:"dx-"+new r.default,customizeItem:function(t){var i,r=t.name||t.dataField;if((t.column||r)&&(i=t.column||n._columnsController.columnOption(t.name?"name:"+t.name:"dataField:"+t.dataField)),i){if(t.label=t.label||{},t.label.text=t.label.text||i.caption,"boolean"===i.dataType&&void 0===t.label.visible){var l=n.option("editing.form.labelMode");"floating"!==l&&"static"!==l||(t.label.visible=!0)}t.template=t.template||n.getFormEditorTemplate(e,t),t.column=i,t.isCustomEditorType=c[r],i.formItem&&(0,u.extend)(t,i.formItem),void 0===t.isRequired&&i.validationRules&&(t.isRequired=i.validationRules.some((function(e){return"required"===e.type})),t.validationRules=[]);var d=!(0,s.isDefined)(t.visible)||t.visible;!n._firstFormItem&&d&&(n._firstFormItem=t)}null==o||o.call(n,t),t.cssClass=(0,s.isString)(t.cssClass)?t.cssClass+" "+a:a}})},getEditFormTemplate:function(){var e=this;return function(t,n,o){var a=e.option(m.EDITING_FORM_OPTION_NAME),r=e.getEditFormOptions(n);if(e._firstFormItem=void 0,e._editForm=e._createComponent((0,i.default)("<div>").appendTo(t),h.default,(0,u.extend)({},a,r)),null==o||!o.renderFormOnly){var s=(0,i.default)("<div>").addClass(e.addWidgetPrefix("form-buttons-container")).appendTo(t);e._createComponent((0,i.default)("<div>").appendTo(s),d.default,e._getSaveButtonConfig()),e._createComponent((0,i.default)("<div>").appendTo(s),d.default,e._getCancelButtonConfig())}e._editForm.on("contentReady",(function(){var t;null===(t=e._editPopup)||void 0===t||t.repaint()}))}},getEditForm:function(){return this._editForm},_endUpdateCore:function(){var e;null===(e=this._updateEditFormDeferred)||void 0===e||e.resolve()},_beforeEndSaving:function(){var e;this.callBase.apply(this,arguments),this.isPopupEditMode()&&(null===(e=this._editPopup)||void 0===e||e.hide())},_processDataItemCore:function(e,t){var n=t.type;this.isPopupEditMode()&&n===m.DATA_EDIT_DATA_INSERT_TYPE&&(e.visible=!1),this.callBase.apply(this,arguments)},_editRowFromOptionChangedCore:function(e,t,n){this.isPopupEditMode()?this._showEditPopup(t):this.callBase.apply(this,arguments)}},data:{_updateEditItem:function(e){this._editingController.isFormEditMode()&&(e.rowType="detail")}}},views:{rowsView:{_renderCellContent:function(e,t){"data"===t.rowType&&this._editingController.isPopupEditMode()&&!1===t.row.visible||this.callBase.apply(this,arguments)},getCellElements:function(e){var t=this.callBase(e),n=this._editingController,i=n.getEditForm();return n.getEditFormRowIndex()===e&&t&&i?i.$element().find("."+this.addWidgetPrefix(v)+", .dx-button"):t},_getVisibleColumnIndex:function(e,t,n){var i=this._editingController.getEditFormRowIndex();if(i===t&&(0,s.isString)(n)){var o=this._columnsController.columnOption(n);return this._getEditFormEditorVisibleIndex(e,o)}return this.callBase.apply(this,arguments)},_getEditFormEditorVisibleIndex:function(e,t){var n=-1;return(0,l.each)(e,(function(e,o){var a=(0,i.default)(o).find(".dx-field-item-content").data("dx-form-item");if(null!=a&&a.column&&t&&a.column.index===t.index)return n=e,!1})),n},_isFormItem:function(e){var t="detail"===e.rowType||"detailAdaptive"===e.rowType,n="data"===e.rowType&&this._editingController.isPopupEditMode();return(t||n)&&e.item},_updateCell:function(e,t){this._isFormItem(t)?this._formItemPrepared(t,e):this.callBase(e,t)}}}}};t.editingFormBasedModule=x},27966:function(e,t,n){t.editingRowBasedModule=void 0;var i=n(35917),o="dx-edit-row",a={extenders:{controllers:{editing:{isRowEditMode:function(){return this.getEditMode()===i.EDIT_MODE_ROW},_afterCancelEditData:function(e){var t=this._dataController;this.isRowBasedEditMode()&&e>=0?t.updateItems({changeType:"update",rowIndices:[e,e+1]}):this.callBase.apply(this,arguments)},_isDefaultButtonVisible:function(e,t){var n=this.isRowBasedEditMode(),i=t.row&&t.row.rowIndex===this._getVisibleEditRowIndex();if(n)switch(e.name){case"edit":return!i&&this.allowUpdating(t);case"delete":return this.callBase.apply(this,arguments)&&!i;case"save":case"cancel":return i;default:return this.callBase.apply(this,arguments)}return this.callBase.apply(this,arguments)},isEditRow:function(e){return this.isRowBasedEditMode()&&this._isEditRowByIndex(e)},_cancelSaving:function(){this.isRowBasedEditMode()&&(this.hasChanges()||this._cancelEditDataCore()),this.callBase.apply(this,arguments)},_refreshCore:function(){this.isRowBasedEditMode()&&this.init(),this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var e=this.callBase.apply(this,arguments),t=this.option("editing"),n=this.isRowEditMode(),i=t.allowUpdating||t.allowAdding;return e||n&&i},_focusEditorIfNeed:function(){var e=this,t=this.getEditMode();if(this._needFocusEditor){if(-1!==i.MODES_WITH_DELAYED_FOCUS.indexOf(t)){var n=this.getFocusedCellInRow(this._getVisibleEditRowIndex());this._delayedInputFocus(n,(function(){n&&e.component.focus(n)}))}this._needFocusEditor=!1}}},data:{_getChangedColumnIndices:function(e,t,n,i){var o=this.getController("editing");if(!o.isRowBasedEditMode()||e.isEditing===t.isEditing)return this.callBase.apply(this,arguments)}}},views:{rowsView:{_createRow:function(e){var t=this.callBase.apply(this,arguments);if(e){var n=this._editingController,a=n.isEditRow(e.rowIndex);a&&(t.addClass(o),t.removeClass(i.ROW_SELECTED_CLASS),"detail"===e.rowType&&t.addClass(this.addWidgetPrefix(i.EDIT_FORM_CLASS)))}return t},_update:function(e){this.callBase(e),"updateSelection"===e.changeType&&this.getTableElements().children("tbody").children("."+o).removeClass(i.ROW_SELECTED_CLASS)}}}}};t.editingRowBasedModule=a},45630:function(e,t,n){t.editorFactoryModule=void 0;var i=n(58664),o=_(n(68374)),a=_(n(73349)),r=_(n(55994)),s=_(n(12310)),l=n(95429),u=_(n(93786)),d=_(n(49387)),c=n(39611),h=_(n(47810)),f=n(13306),p=n(37518),g=_(n(15653)),m=_(n(13615));function _(e){return e&&e.__esModule?e:{default:e}}var v="dx-cell-focus-disabled",y="focus-overlay",x="dx-focused",b="dxDataGridEditorFactory",w=(0,c.addNamespace)([u.default.down,"focusin",l.name].join(" "),b),C="dx-hidden",S={defaultOptions:function(){return{}},controllers:{editorFactory:s.default.ViewController.inherit({_getFocusedElement:function(e){var t=this.option("focusedRowEnabled")?"tr[tabindex]:focus":"tr[tabindex]:not(.dx-data-row):focus",n="td[tabindex]:focus, ".concat(t,", input:focus, textarea:focus, .dx-lookup-field:focus, .dx-checkbox:focus, .dx-switch:focus, .dx-dropdownbutton .dx-buttongroup:focus");return e.find(n)},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var e,t,n=this._$focusedElement,i=this.component&&this.component.$element();i&&(n=this._getFocusedElement(i)).length&&(n.hasClass(v)||n.hasClass("dx-row")||(t=(e=n.closest(this._getFocusCellSelector()+", ."+v)).get(0)!==n.get(0)&&e.hasClass("dx-editor-inline-block"),n=e),n.length&&!n.hasClass(v))?this.focus(n,t):this.loseFocus()},_updateFocus:function(e){var t=this,n=e&&e.event&&(0,o.default)(e.event.target).hasClass(t.addWidgetPrefix(y));t._isFocusOverlay=t._isFocusOverlay||n,clearTimeout(t._updateFocusTimeoutID),t._updateFocusTimeoutID=setTimeout((function(){delete t._updateFocusTimeoutID,t._isFocusOverlay||t._updateFocusCore(),t._isFocusOverlay=!1}))},_updateFocusOverlaySize:function(e,t){e.hide();var n=d.default.calculate(e,(0,f.extend)({collision:"fit"},t));n.h.oversize>0&&(0,i.setOuterWidth)(e,(0,i.getOuterWidth)(e)-n.h.oversize),n.v.oversize>0&&(0,i.setOuterHeight)(e,(0,i.getOuterHeight)(e)-n.v.oversize),e.show()},callbackNames:function(){return["focused"]},focus:function(e,t){var n=this;if(void 0===e)return n._$focusedElement;e&&(e.is(n._$focusedElement)||n._$focusedElement&&n._$focusedElement.removeClass(x),n._$focusedElement=e,clearTimeout(n._focusTimeoutID),n._focusTimeoutID=setTimeout((function(){delete n._focusTimeoutID,n.renderFocusOverlay(e,t),e.addClass(x),n.focused.fire(e)})))},refocus:function(){var e=this.focus();this.focus(e)},renderFocusOverlay:function(e,t){var n=this;if(m.default.isElementInCurrentGrid(this,e))if(n._$focusOverlay||(n._$focusOverlay=(0,o.default)("<div>").addClass(n.addWidgetPrefix(y))),t)n._$focusOverlay.addClass(C);else if(e.length){var a=h.default.mozilla?"right bottom":"left top",r=e.closest("."+n.addWidgetPrefix("content")),s=(0,p.getBoundingRect)(e.get(0));n._$focusOverlay.removeClass(C).appendTo(r),(0,i.setOuterHeight)(n._$focusOverlay,s.bottom-s.top+1),(0,i.setOuterWidth)(n._$focusOverlay,s.right-s.left+1);var l={precise:!0,my:a,at:a,of:e,boundary:r.length&&r};n._updateFocusOverlaySize(n._$focusOverlay,l),d.default.setup(n._$focusOverlay,l),n._$focusOverlay.css("visibility","visible")}},resize:function(){var e=this._$focusedElement;e&&this.focus(e)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass(x),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(C)},init:function(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),r.default.on(a.default.getDocument(),w,this._updateFocusHandler),this._attachContainerEventHandlers()},_attachContainerEventHandlers:function(){var e=this,t=e.component&&e.component.$element();t&&r.default.on(t,(0,c.addNamespace)("keydown",b),(function(t){"tab"===(0,c.normalizeKeyName)(t)&&e._updateFocusHandler(t)}))},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),r.default.off(a.default.getDocument(),w,this._updateFocusHandler)}}).include(g.default)}};t.editorFactoryModule=S},49743:function(e,t,n){t.errorHandlingModule=void 0;var i=l(n(68374)),o=l(n(55994)),a=n(95429),r=n(95479),s=l(n(12310));function l(e){return e&&e.__esModule?e:{default:e}}var u="dx-error-row",d={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:s.default.ViewController.inherit({init:function(){var e=this;e._columnHeadersView=e.getView("columnHeadersView"),e._rowsView=e.getView("rowsView")},_createErrorRow:function(e,t){var n,s,l=this,d=this._renderErrorMessage(e);return t?(n=(0,i.default)("<tr>").addClass(u),s=(0,i.default)("<div>").addClass("dx-closebutton").addClass(l.addWidgetPrefix("action")),o.default.on(s,a.name,l.createAction((function(e){var n,o=e.event,a=(0,i.default)(o.currentTarget).closest(".dx-error-row").index();o.stopPropagation(),(0,r.each)(t,(function(e,t){n=(0,i.default)(t).children("tbody").children("tr").eq(a),l.removeErrorRow(n)})),l.getController("resizing")&&l.getController("resizing").fireContentReadyAction()}))),(0,i.default)("<td>").attr({colSpan:l.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(s).append(d).appendTo(n),n):d},_renderErrorMessage:function(e){var t=e.url?e.message.replace(e.url,""):e.message||e,n=(0,i.default)("<div>").addClass("dx-error-message").text(t);return e.url&&(0,i.default)("<a>").attr("href",e.url).text(e.url).appendTo(n),n},renderErrorRow:function(e,t,n){var o,a,s=this;if(n)return n.find(".dx-error-message").remove(),o=s._createErrorRow(e),n.prepend(o),o;var l=t>=0||!s._columnHeadersView.isVisible()?s._rowsView:s._columnHeadersView,u=l.getTableElements();(0,r.each)(u,(function(n,r){if(o=s._createErrorRow(e,u),a=a||o,t>=0){var d=l._getRowElements((0,i.default)(r)).eq(t);s.removeErrorRow(d.next()),o.insertAfter(d)}else{var c=(0,i.default)(r).children("tbody"),h=c.children("tr");s._columnHeadersView.isVisible()?(s.removeErrorRow(h.last()),(0,i.default)(r).append(o)):(s.removeErrorRow(h.first()),c.first().prepend(o))}}));var d=s.getController("resizing");return d&&d.fireContentReadyAction(),a},removeErrorRow:function(e){if(!e){var t=this._columnHeadersView&&this._columnHeadersView.element();if(!(e=t&&t.find(".dx-error-row"))||!e.length){var n=this._rowsView.element();e=n&&n.find(".dx-error-row")}}e&&e.hasClass(u)&&e.remove()},optionChanged:function(e){"errorRowEnabled"===e.name?e.handled=!0:this.callBase(e)}})},extenders:{controllers:{data:{init:function(){var e=this,t=e.getController("errorHandling");e.callBase(),e.dataErrorOccurred.add((function(n,i){e.option("errorRowEnabled")&&t.renderErrorRow(n,void 0,i)})),e.changed.add((function(t){if(!t||"loadError"!==t.changeType){var n=e.getController("errorHandling"),i=e.getController("editing");i&&!i.hasChanges()&&n&&n.removeErrorRow()}}))}}}}};t.errorHandlingModule=d},72376:function(e,t,n){t.default=void 0;var i=n(13306),o={_getEmptyCell:function(){return{text:"",value:void 0,colspan:1,rowspan:1}},_defaultSetter:function(e){return e||1},_cloneItem:function(e){return(0,i.extend)({},e,this._getEmptyCell())},_prepareItems:function(e){var t=this,n=[],i=(e[0]||[]).reduce((function(e,n){return e+t._defaultSetter(n.colspan)}),0),o=function(e){var n=0,i=0;return function(){var o=e[n]||[],a=o[i++];return i>=o.length&&(n++,i=0),a&&(a.colspan=t._defaultSetter(a.colspan),a.rowspan=t._defaultSetter(a.rowspan)),a}}(e);function a(e,i,o){if((n[e]=n[e]||[])[i]=o,o.colspan>1||o.rowspan>1){for(var r=t._cloneItem(o),s=1;s<o.colspan;s++)a(e,i+s,r);for(var l=1;l<o.rowspan;l++)for(var u=0;u<o.colspan;u++)a(e+l,i+u,r)}}for(var r=o(),s=0;r;){for(var l=0;l<i&&r;l++)n[s]&&n[s][l]||(a(s,l,r),l+=r.colspan-1,r=o());s++}return n}};t.default=o,e.exports=t.default,e.exports.default=t.default},82970:function(e,t,n){t.filterBuilderModule=void 0;var i=c(n(68374)),o=c(n(12310)),a=n(13306),r=c(n(20301)),s=c(n(28109)),l=c(n(4741)),u=c(n(39114)),d=n(56756);function c(e){return e&&e.__esModule?e:{default:e}}var h={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:s.default.format("dxFilterBuilder-and"),or:s.default.format("dxFilterBuilder-or"),notAnd:s.default.format("dxFilterBuilder-notAnd"),notOr:s.default.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:s.default.format("dxFilterBuilder-filterOperationBetween"),equal:s.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:s.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:s.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:s.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:s.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:s.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:s.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:s.default.format("dxFilterBuilder-filterOperationContains"),notContains:s.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:s.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:s.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:s.default.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:o.default.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var e=this;e._disposePopup(),e._filterBuilderPopup=e._createComponent(e.element(),u.default,(0,a.extend)({title:s.default.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(t){return e._getPopupContentTemplate(t)},onOptionChanged:function(t){"visible"===t.name&&e.option("filterBuilderPopup.visible",t.value)},toolbarItems:e._getPopupToolbarItems()},e.option("filterBuilderPopup"),{onHidden:function(t){(0,d.restoreFocus)(e),e._disposePopup()}}))},_getPopupContentTemplate:function(e){var t=(0,i.default)(e),n=(0,i.default)("<div>").appendTo((0,i.default)(e));this._filterBuilder=this._createComponent(n,r.default,(0,a.extend)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(t,l.default,{direction:"both"})},_getPopupToolbarItems:function(){var e=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:s.default.format("OK"),onClick:function(t){var n=e._filterBuilder.option("value");e.option("filterValue",n),e._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:s.default.format("Cancel"),onClick:function(t){e._filterBuilderPopup.hide()}}}]},optionChanged:function(e){switch(e.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}})}};t.filterBuilderModule=h},71266:function(e,t,n){t.anyOf=function(e){return(0,a.extend)(c(e),{name:"anyof",icon:"selectall",caption:o.default.format("dxFilterBuilder-filterOperationAnyOf")})},t.noneOf=function(e){var t=c(e);return(0,a.extend)({},t,{calculateFilterExpression:function(e,n,i){var o=t.calculateFilterExpression(e,n,i);return o&&0!==o.length?"!"===o[0]?o:["!",o]:null},name:"noneof",icon:"unselectall",caption:o.default.format("dxFilterBuilder-filterOperationNoneOf")})};var i=d(n(68374)),o=d(n(28109)),a=n(13306),r=n(85273),s=n(62754),l=n(59423),u=d(n(96688));function d(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=function(e,t){return t?t+"/"+e:e},n=function e(n,i){var o=[];return n.forEach((function(n){if(n.items){var a=e(n.items,t(n.text,i));o=o.concat(a)}n.selected&&o.push(t(n.text,i))})),o},o=e&&e.getController("headerFilter");return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:function(e,t,n){var i=[],o=e.length-1;return e&&e.forEach((function(e,a){if((0,l.isCondition)(e)||(0,l.isGroup)(e)){var r=(0,l.getFilterExpression)(e,n,[],"headerFilter");i.push(r)}else i.push((0,l.getFilterExpression)([t.dataField,"=",e],n,[],"headerFilter"));a!==o&&i.push("or")})),1===i.length&&(i=i[0]),i},editorTemplate:function(t,n){var r=(0,i.default)("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(n),s=(0,a.extend)(!0,{},e.columnOption(t.field.dataField));return(0,l.renderValueText)(r,t.text&&t.text.split("|")),s.filterType="include",s.filterValues=t.value?t.value.slice():[],o.showHeaderFilterMenuBase({columnElement:r,column:s,apply:function(){var e;e=this.filterValues,t.setValue(e),o.hideHeaderFilterMenu(),t.closeEditor()},onHidden:function(){t.closeEditor()},isFilterBuilder:!0}),n},customizeText:function(t,i){i=i||{};var l=t.value,d=e.columnOption(t.field.dataField),c=d&&d.headerFilter,h=d&&d.lookup,f=i.values||[l];if(c&&c.dataSource||h&&h.dataSource){var p=new s.Deferred,g=i.items||new s.Deferred;if(!i.items){d=(0,a.extend)({},d,{filterType:"include",filterValues:f});var m=o.getDataSource(d);m.paginate=!1;var _=new r.DataSource(m),v=_.store().key();if(v){var y=i.values;if(y&&y.length>1){var x=y.reduce((function(e,t){return e.length&&e.push("or"),e.push([v,"=",t]),e}),[]);_.filter(x)}else _.filter([v,"=",t.value])}else t.field.calculateDisplayValue&&u.default.log("W1017");i.items=g,_.load().done(g.resolve)}return g.done((function(e){var i=f.indexOf(t.value);p.resolve(n(e)[i])})),p}return o.getHeaderItemText(l,d,0,e.option("headerFilter"))}}}},25065:function(e,t,n){t.filterPanelModule=void 0;var i=p(n(68374)),o=n(35922),a=p(n(12310)),r=p(n(13615)),s=p(n(55994)),l=p(n(28109)),u=p(n(18859)),d=n(59423),c=n(62754),h=n(78008),f=n(25337);function p(e){return e&&e.__esModule?e:{default:e}}var g={defaultOptions:function(){return{filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:l.default.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:l.default.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:l.default.format("dxDataGrid-filterPanelFilterEnabledHint")}}}},views:{filterPanelView:a.default.View.inherit({isVisible:function(){return this.option("filterPanel.visible")&&this.getController("data").dataSource()},init:function(){var e=this;this.getController("data").dataSourceChanged.add((function(){return e.render()}))},_renderCore:function(){var e=this,t=e.element();t.empty().addClass(e.addWidgetPrefix("filter-panel"));var n=(0,i.default)("<div>").addClass(e.addWidgetPrefix("filter-panel-left")).appendTo(t);e.option("filterValue")||e._filterValueBuffer?(n.append(e._getCheckElement()).append(e._getFilterElement()).append(e._getTextElement()),t.append(e._getRemoveButtonElement())):n.append(e._getFilterElement()).append(e._getTextElement())},_getCheckElement:function(){var e=this,t=(0,i.default)("<div>").addClass(this.addWidgetPrefix("filter-panel-checkbox"));return e._createComponent(t,u.default,{value:e.option("filterPanel.filterEnabled"),onValueChanged:function(t){e.option("filterPanel.filterEnabled",t.value)}}),t.attr("title",this.option("filterPanel.texts.filterEnabledHint")),t},_getFilterElement:function(){var e=this,t=(0,i.default)("<div>").addClass("dx-icon-filter");return s.default.on(t,"click",(function(){return e._showFilterBuilder()})),(0,f.registerKeyboardAction)("filterPanel",e,t,void 0,(function(){return e._showFilterBuilder()})),e._addTabIndexToElement(t),t},_getTextElement:function(){var e,t=this,n=(0,i.default)("<div>").addClass(t.addWidgetPrefix("filter-panel-text")),o=t.option("filterValue");return o?(0,c.when)(t.getFilterText(o,t.getController("filterSync").getCustomFilterOperations())).done((function(e){var i=t.option("filterPanel.customizeText");if(i){var a=i({component:t.component,filterValue:o,text:e});"string"==typeof a&&(e=a)}n.text(e)})):(e=t.option("filterPanel.texts.createFilter"),n.text(e)),s.default.on(n,"click",(function(){return t._showFilterBuilder()})),(0,f.registerKeyboardAction)("filterPanel",t,n,void 0,(function(){return t._showFilterBuilder()})),t._addTabIndexToElement(n),n},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var e=this,t=function(){return e.option("filterValue",null)},n=(0,i.default)("<div>").addClass(e.addWidgetPrefix("filter-panel-clear-filter")).text(e.option("filterPanel.texts.clearFilter"));return s.default.on(n,"click",t),(0,f.registerKeyboardAction)("filterPanel",this,n,void 0,t),e._addTabIndexToElement(n),n},_addTabIndexToElement:function(e){if(!this.option("useLegacyKeyboardNavigation")){var t=this.option("tabindex")||0;e.attr("tabindex",t)}},optionChanged:function(e){switch(e.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),e.handled=!0;break;case"filterPanel":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},_getConditionText:function(e,t,n){var i="[".concat(e,"] ").concat(t);return(0,o.isDefined)(n)&&(i+=n),i},_getValueMaskedText:function(e){return Array.isArray(e)?"('".concat(e.join("', '"),"')"):" '".concat(e,"'")},_getValueText:function(e,t,n){var i=this,a=new c.Deferred,s=t&&t.customizeText;if((0,o.isDefined)(n)||s)if(!s&&e.lookup)(0,d.getCurrentLookupValueText)(e,n,(function(e){a.resolve(i._getValueMaskedText(e))}));else{var l=Array.isArray(n)?n:r.default.getDisplayValue(e,n);(0,c.when)((0,d.getCurrentValueText)(e,l,t,"filterPanel")).done((function(e){a.resolve(i._getValueMaskedText(e))}))}else a.resolve("");return a.promise()},getConditionText:function(e,t){var n,i=this,o=e[1],a=new c.Deferred,r=(0,d.getCustomOperation)(t.customOperations,o),s=(0,d.getField)(e[0],t.columns),l=s.caption||"",u=e[2];return n=r?r.caption||(0,h.captionize)(r.name):null===u?(0,d.getCaptionByOperation)("="===o?"isblank":"isnotblank",t.filterOperationDescriptions):(0,d.getCaptionByOperation)(o,t.filterOperationDescriptions),this._getValueText(s,r,u).done((function(e){a.resolve(i._getConditionText(l,n,e))})),a},getGroupText:function(e,t,n){var i=this,o=new c.Deferred,a=[],r=(0,d.getGroupValue)(e);return e.forEach((function(e){(0,d.isCondition)(e)?a.push(i.getConditionText(e,t)):(0,d.isGroup)(e)&&a.push(i.getGroupText(e,t,!0))})),c.when.apply(this,a).done((function(){for(var e,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];if("!"===r[0]){var l=t.groupOperationDescriptions["not"+r.substring(1,2).toUpperCase()+r.substring(2)].split(" ");e="".concat(l[0]," ").concat(a[0])}else e=a.join(" ".concat(t.groupOperationDescriptions[r]," "));n&&(e="(".concat(e,")")),o.resolve(e)})),o},getFilterText:function(e,t){var n=this,i={customOperations:t,columns:n.getController("columns").getFilteringColumns(),filterOperationDescriptions:n.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:n.option("filterBuilder.groupOperationDescriptions")};return(0,d.isCondition)(e)?n.getConditionText(e,i):n.getGroupText(e,i)}})},extenders:{controllers:{data:{optionChanged:function(e){"filterPanel"===e.name?(this._applyFilter(),e.handled=!0):this.callBase(e)}}}}};t.filterPanelModule=g},51711:function(e,t,n){t.filterRowModule=void 0;var i=n(58664),o=_(n(68374)),a=_(n(55994)),r=n(35922),s=n(13306),l=n(39611),u=n(95479),d=_(n(12310)),c=_(n(13615)),h=_(n(28109)),f=_(n(96452)),p=_(n(89799)),g=_(n(76995)),m=n(56756);function _(e){return e&&e.__esModule?e:{default:e}}var v={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal",default:"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},y={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},x="filter-row",b="filter-range-overlay",w="filter-range-start",C="dx-editor-with-menu",S="dx-highlight-outline",k="dx-filter-modified",D="input:not([type='hidden'])",I=["date","datetime","number"];function T(e){return"onClick"===e.option("filterRow.applyFilter")}var E=function(){var e=function(e){var t=e&&e.children(),n=t&&t.data("dxComponents"),i=n&&n.length&&t.data(n[0]);if(i instanceof f.default)return i},t=function(e,t){var i="",o="",a=n(e,t),s=c.default.getFormatOptionsByColumn(t,"filterRow");return Array.isArray(a)?(i=c.default.formatValue(a[0],s),""!==(o=c.default.formatValue(a[1],s))&&(i+=" - "+o)):(0,r.isDefined)(a)&&(i=c.default.formatValue(a,s)),i};function n(e,t){if(t)return T(e)&&void 0!==t.bufferedFilterValue?t.bufferedFilterValue:t.filterValue}var d=function(e,t){if(t)return T(e)&&void 0!==t.bufferedSelectedFilterOperation?t.bufferedSelectedFilterOperation:t.selectedFilterOperation},_=function(e,t,i){var o=e._columnsController.columnOption(t),a=n(e,o),r=i.closest("."+e.addWidgetPrefix(b)).length,s=i.hasClass(e.addWidgetPrefix(w));return a&&Array.isArray(a)&&"between"===d(e,o)?s?a[0]:a[1]:!r&&function(e,t){return!(t&&I.indexOf(t.dataType)>=0&&Array.isArray(e))&&void 0!==e}(a,o)?a:null},S=function(e,t){var i=""===t.value?null:t.value,o=t.container,a=e._columnsController.columnOption(t.column.index),s=_(e,a.index,o);if((0,r.isDefined)(s)||(0,r.isDefined)(i)){e._applyFilterViewController.setHighLight(o,s!==i);var l=T(e)?"bufferedFilterValue":"filterValue",u=function(e,t,i,o){if("between"===d(e,i)){var a=n(e,i);return o.hasClass(e.addWidgetPrefix(w))?[t,Array.isArray(a)?a[1]:void 0]:[Array.isArray(a)?a[0]:a,t]}return t}(e,i,a,o),c="between"===d(e,a),h=t.notFireEvent||c&&Array.isArray(u)&&u.indexOf(void 0)>=0;e._columnsController.columnOption(a.index,l,u,h)}};return{_updateEditorValue:function(t,n){var i=e(n);i&&i.option("value",_(this,t.index,n))},_columnOptionChanged:function(e){var n,i,a,r,s=this,l=e.optionNames;if(c.default.checkChanges(l,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation"])&&void 0!==e.columnIndex){var u=s._columnsController.getVisibleIndex(e.columnIndex),h=s._columnsController.columnOption(e.columnIndex);if(i=(n=s._getCellElement(s.element().find("."+s.addWidgetPrefix(x)).index(),u)||(0,o.default)()).find(".dx-editor-container").first(),l.filterValue||l.bufferedFilterValue){s._updateEditorValue(h,i);var f=n.find("."+s.addWidgetPrefix(b)).data("dxOverlay");f&&(a=f.$content().find(".dx-editor-container"),s._updateEditorValue(h,a.first()),s._updateEditorValue(h,a.last())),f&&f.option("visible")||s._updateFilterRangeContent(n,t(s,h))}(l.selectedFilterOperation||l.bufferedSelectedFilterOperation)&&u>=0&&h&&(r=n.find(".dx-menu")).length&&(s._updateFilterOperationChooser(r,h,i),"between"===d(s,h)?s._renderFilterRangeContent(n,h):i.find(".dx-filter-range-content").length&&(s._renderEditor(i,s._getEditorOptions(i,h)),s._hideFilterRange()))}else s.callBase(e)},_renderCore:function(){this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(e,n){var i=this,r={},s=e.find(".dx-editor-container"),u=(0,o.default)("<div>").addClass(i.addWidgetPrefix(b)).appendTo(e);return i._createComponent(u,p.default,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,closeOnOutsideClick:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,animation:!1,position:{my:"top",at:"top",of:s.length&&s||e,offset:"0 -1"},contentTemplate:function(t){var s,u=(0,o.default)("<div>").addClass("dx-editor-container "+i.addWidgetPrefix(w)).appendTo(t);return n=i._columnsController.columnOption(n.index),(s=i._getEditorOptions(u,n)).sharedData=r,i._renderEditor(u,s),a.default.on(u.find(D),"keydown",(function(t){var n=e.find("[tabindex]").not(t.target).first();"tab"===(0,l.normalizeKeyName)(t)&&t.shiftKey&&(t.preventDefault(),i._hideFilterRange(),n.length||(n=e.prev().find("[tabindex]").last()),a.default.trigger(n,"focus"))})),u=(0,o.default)("<div>").addClass("dx-editor-container "+i.addWidgetPrefix("filter-range-end")).appendTo(t),(s=i._getEditorOptions(u,n)).sharedData=r,i._renderEditor(u,s),a.default.on(u.find(D),"keydown",(function(t){"tab"!==(0,l.normalizeKeyName)(t)||t.shiftKey||(t.preventDefault(),i._hideFilterRange(),a.default.trigger(e.next().find("[tabindex]").first(),"focus"))})),(0,o.default)(t).addClass(i.getWidgetContainerClass())},onShown:function(e){var t=e.component.$content().find(".dx-editor-container").first();a.default.trigger(t.find(D),"focus")},onHidden:function(){n=i._columnsController.columnOption(n.index),e.find(".dx-menu").parent().addClass(C),"between"===d(i,n)&&(i._updateFilterRangeContent(e,t(i,n)),i.component.updateDimensions())}})},_updateFilterRangeOverlay:function(e){var t=this._filterRangeOverlayInstance;t&&t.option(e)},_showFilterRange:function(e,t){var n=this,o=e.children("."+n.addWidgetPrefix(b)),a=o.length&&o.data("dxOverlay");!a&&t&&(a=n._initFilterRangeOverlay(e,t)),a.option("visible")||(n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.hide(),n._filterRangeOverlayInstance=a,n._updateFilterRangeOverlay({width:(0,i.getOuterWidth)(e,!0)+1}),n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var e=this._filterRangeOverlayInstance;e&&e.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(e){var t=this,n=this.callBase(e);return"filter"===e.rowType&&(n.addClass(this.addWidgetPrefix(x)),this.option("useLegacyKeyboardNavigation")||a.default.on(n,"keydown",(function(e){return(0,m.selectView)("filterRow",t,e)}))),n},_getRows:function(){var e=this.callBase();return this.isFilterRowVisible()&&e.push({rowType:"filter"}),e},_renderFilterCell:function(e,t){var n=this,i=t.column,a=(0,o.default)(e);n.component.option("showColumnHeaders")&&n.setAria("describedby",i.headerId,a),n.setAria("label",h.default.format("dxDataGrid-ariaFilterCell"),a),a.addClass("dx-editor-cell");var r=(0,o.default)("<div>").appendTo(a),s=(0,o.default)("<div>").addClass("dx-editor-container").appendTo(r);if("between"===d(n,i))n._renderFilterRangeContent(a,i);else{var l=n._getEditorOptions(s,i);n._renderEditor(s,l)}var u=i.alignment;u&&"center"!==u&&a.find(D).first().css("textAlign",i.alignment),i.filterOperations&&i.filterOperations.length&&n._renderFilterOperationChooser(r,i,s)},_renderCellContent:function(e,t){var n=this,i=t.column;if("filter"===t.rowType)if(i.command)e.html("&nbsp;");else if(i.allowFiltering)return void n.renderTemplate(e,n._renderFilterCell.bind(n),t).done((function(){n._updateCell(e,t)}));n.callBase(e,t)},_getEditorOptions:function(e,t){var n=this,i={editorOptions:{inputAttr:n._getFilterInputAccessibilityAttributes(t)}},o=(0,s.extend)(i,t,{value:_(n,t.index,e),parentType:"filterRow",showAllText:n.option("filterRow.showAllText"),updateValueTimeout:"onClick"===n.option("filterRow.applyFilter")?0:700,width:null,setValue:function(i,o){S(n,{column:t,value:i,container:e,notFireEvent:o})}});return"between"===d(n,t)&&(e.hasClass(n.addWidgetPrefix(w))?o.placeholder=n.option("filterRow.betweenStartText"):o.placeholder=n.option("filterRow.betweenEndText")),o},_getFilterInputAccessibilityAttributes:function(e){var t=h.default.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":t,"aria-describedby":e.headerId}:{"aria-label":t}},_renderEditor:function(e,t){return e.empty(),this.getController("editorFactory").createEditor((0,o.default)("<div>").appendTo(e),t)},_renderFilterRangeContent:function(e,n){var i=this,r=e.find(".dx-editor-container").first();r.empty();var s=(0,o.default)("<div>").addClass("dx-filter-range-content").attr("tabindex",this.option("tabIndex"));a.default.on(s,"focusin",(function(){i._showFilterRange(e,n)})),s.appendTo(r),i._updateFilterRangeContent(e,t(i,n))},_updateFilterRangeContent:function(e,t){var n=e.find(".dx-filter-range-content");n.length&&(""===t?n.html("&nbsp;"):n.text(t))},_updateFilterOperationChooser:function(t,n,i){var o,r=this,s=function(){var e=g.default.getInstance(t);e&&e.option("focusedElement",null),o&&r._focusEditor(i)};r._createComponent(t,g.default,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:r.getWidgetContainerClass()+" dx-cell-focus-disabled dx-filter-menu",showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!n.filterOperations||!n.filterOperations.length,icon:v[d(r,n)||"default"],selectable:!1,items:r._getFilterOperationMenuItems(n)}],onItemClick:function(t){var o=t.itemData.name,a=d(r,n),s=!1,l=T(r),u={};if(!(t.itemData.items||o&&o===a)){if(o?(u[l?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=o,"between"!==o&&"between"!==a||(s="between"===o,u[l?"bufferedFilterValue":"filterValue"]=null)):(u[l?"bufferedFilterValue":"filterValue"]=null,u[l?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=n.defaultSelectedFilterOperation||null),r._columnsController.columnOption(n.index,u),r._applyFilterViewController.setHighLight(i,!0),!o){var c=e(i);c&&"dxDateBox"===c.NAME&&!c.option("isValid")&&(c.reset(),c.option("isValid",!0))}s?r._showFilterRange(i.closest(".dx-editor-cell"),n):r._focusEditor(i)}},onSubmenuShown:function(){o=r._isEditorFocused(i),r.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){a.default.trigger(t,"blur"),s()},onContentReady:function(e){a.default.on(t,"blur",(function(){var t=e.component;t._hideSubmenu(t._visibleSubmenu),s()}))},rtlEnabled:r.option("rtlEnabled")})},_isEditorFocused:function(e){return e.hasClass("dx-focused")||e.parents(".dx-focused").length},_focusEditor:function(e){this.getController("editorFactory").focus(e),a.default.trigger(e.find(D),"focus")},_renderFilterOperationChooser:function(e,t,n){var i;this.option("filterRow.showOperationChooser")&&(e.addClass(C),i=(0,o.default)("<div>").prependTo(e),this._updateFilterOperationChooser(i,t,n))},_getFilterOperationMenuItems:function(e){var t=this,n=[{}],i=t.option("filterRow"),o=i&&i.operationDescriptions||{};if(e.filterOperations&&e.filterOperations.length){var a=e.filterOperations.filter((function(e){return(0,r.isDefined)(y[e])}));(n=(0,u.map)(a,(function(n){var i=y[n];return{name:n,selected:(d(t,e)||e.defaultFilterOperation)===n,text:o[i],icon:v[n]}}))).push({name:null,text:i&&i.resetOperationText,icon:v.default})}return n},optionChanged:function(e){switch(e.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:this.callBase(e)}}}}(),A={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=[this.callBase()],t=this._columnsController.getVisibleColumns(null,!0);return(0,u.each)(t,(function(){if(this.allowFiltering&&this.calculateFilterExpression&&(0,r.isDefined)(this.filterValue)){var t=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow");e.push(t)}})),c.default.combineFilters(e)}},O={defaultOptions:function(){return{filterRow:{visible:!1,showOperationChooser:!0,showAllText:h.default.format("dxDataGrid-filterRowShowAllText"),resetOperationText:h.default.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:h.default.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:h.default.format("dxDataGrid-filterRowOperationEquals"),notEqual:h.default.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:h.default.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:h.default.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:h.default.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:h.default.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:h.default.format("dxDataGrid-filterRowOperationStartsWith"),contains:h.default.format("dxDataGrid-filterRowOperationContains"),notContains:h.default.format("dxDataGrid-filterRowOperationNotContains"),endsWith:h.default.format("dxDataGrid-filterRowOperationEndsWith"),between:h.default.format("dxDataGrid-filterRowOperationBetween"),isBlank:h.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:h.default.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:h.default.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:h.default.format("dxDataGrid-filterRowOperationBetweenEndText")}}},controllers:{applyFilter:d.default.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(e,t){T(this)&&(e&&e.toggleClass(S,t)&&e.closest(".dx-editor-cell").toggleClass(k,t),this._getHeaderPanel().enableApplyButton(t))},applyFilter:function(){var e=this.getController("columns"),t=e.getColumns();e.beginUpdate();for(var n=0;n<t.length;n++){var i=t[n];void 0!==i.bufferedFilterValue&&(e.columnOption(n,"filterValue",i.bufferedFilterValue),i.bufferedFilterValue=void 0),void 0!==i.bufferedSelectedFilterOperation&&(e.columnOption(n,"selectedFilterOperation",i.bufferedSelectedFilterOperation),i.bufferedSelectedFilterOperation=void 0)}e.endUpdate(),this.removeHighLights()},removeHighLights:function(){if(T(this)){var e=this.getView("columnHeadersView").element();e.find("."+this.addWidgetPrefix(x)+" ."+S).removeClass(S),e.find("."+this.addWidgetPrefix(x)+" ."+k).removeClass(k),this._getHeaderPanel().enableApplyButton(!1)}}})},extenders:{controllers:{data:A,columnsResizer:{_startResizing:function(){var e=this;if(e.callBase.apply(e,arguments),e.isResizing()){var t=e._columnHeadersView.getFilterRangeOverlayInstance();if(t){var n=t.$element().closest("td").index();n!==e._targetPoint.columnIndex&&n!==e._targetPoint.columnIndex+1||t.$content().hide()}}},_endResizing:function(){var e,t=this;if(t.isResizing()){var n=t._columnHeadersView.getFilterRangeOverlayInstance();n&&(e=n.$element().closest("td"),t._columnHeadersView._updateFilterRangeOverlay({width:(0,i.getOuterWidth)(e,!0)+1}),n.$content().show())}t.callBase.apply(t,arguments)}}},views:{columnHeadersView:E,headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._prepareFilterItem(e).concat(e)},_prepareFilterItem:function(){var e=this,t=[];if(e._isShowApplyFilterButton()){var n=e.option("filterRow.applyFilterText"),i={widget:"dxButton",options:{icon:"apply-filter",disabled:!e._columnsController.getColumns().filter((function(e){return void 0!==e.bufferedFilterValue})).length,onClick:function(){e._applyFilterViewController.applyFilter()},hint:n,text:n,onInitialized:function(t){(0,o.default)(t.element).addClass(e._getToolbarButtonClass("dx-apply-button"))}},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10};t.push(i)}return t},_isShowApplyFilterButton:function(){var e=this.option("filterRow");return e&&e.visible&&"onClick"===e.applyFilter},init:function(){this.callBase(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")},enableApplyButton:function(e){this.setToolbarItemDisabled("applyFilterButton",!e)},isVisible:function(){return this.callBase()||this._isShowApplyFilterButton()},optionChanged:function(e){"filterRow"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}}}};t.filterRowModule=O},11276:function(e,t,n){t.filterSyncModule=void 0;var i=n(35922),o=d(n(12310)),a=n(59423),r=d(n(96688)),s=d(n(13615)),l=d(n(18740)),u=n(71266);function d(e){return e&&e.__esModule?e:{default:e}}var c=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],h="include",f="exclude";function p(e){return e.dataField||e.name}var g,m,_,v,y,x,b={isFilterSyncActive:function(){var e=this.option("filterSyncEnabled");return"auto"===e?this.option("filterPanel.visible"):e},skipCalculateColumnFilters:function(){return(0,i.isDefined)(this.option("filterValue"))&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){var e=this;if(!1===e.option("filterPanel.filterEnabled"))return e.callBase();var t=[e.callBase()],n=e.getController("columns").getFilteringColumns(),i=e.option("filterValue");if(e.isFilterSyncActive()){var o=e.getController("headerFilter").getCurrentColumn();o&&i&&(i=(0,a.removeFieldConditionsFromFilter)(i,p(o)))}var r=e.getController("filterSync").getCustomFilterOperations(),l=(0,a.getFilterExpression)(i,n,r,"filterBuilder");return l&&t.push(l),s.default.combineFilters(t)},_parseColumnPropertyName:function(e){var t=e.match(/.*\.(.*)/);return t?t[1]:null},clearFilter:function(e){this.component.beginUpdate(),arguments.length>0?("filterValue"===e&&this.option("filterValue",null),this.callBase(e)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(e){switch(e.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),e.handled=!0;break;case"filterSyncEnabled":e.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var t=this.getController("columns").getColumnByPath(e.fullName),n=this.getController("filterSync");if(t&&!n._skipSyncColumnOptions){var i=this._parseColumnPropertyName(e.fullName);n._skipSyncColumnOptions=!0,"filterType"===i?f!==e.value&&f!==e.previousValue||n.syncHeaderFilter(t):"filterValues"===i?n.syncHeaderFilter(t):["filterValue","selectedFilterOperation"].indexOf(i)>-1&&n.syncFilterRow(t,t.filterValue),n._skipSyncColumnOptions=!1}}this.callBase(e);break;default:this.callBase(e)}}},w={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:o.default.Controller.inherit((g=function(){return{filterType:h,filterValues:void 0}},m=function(e){var t=e.filterValues||[];return!l.default.getGroupInterval(e)&&!(e.headerFilter&&e.headerFilter.dataSource)||1===t.length&&null===t[0]},_=function(e){var t=e.filterValue;if((0,i.isDefined)(t)){var n=e.selectedFilterOperation||e.defaultFilterOperation||(0,a.getDefaultOperation)(e);return[p(e),n,e.filterValue]}return null},v=function(e){var t,n,i=e.filterValues;return i?(1===i.length&&m(e)&&!Array.isArray(i[0])?(t=e.filterType===f?"<>":"=",n=i[0]):(t=e.filterType===f?"noneof":"anyof",n=i),[p(e),t,n]):null},y=function(e,t,n){var i=function(e,t){if(!e)return g();var n,i=e[1],o=e[2],a=Array.isArray(o);if(!a&&!m(t))return g();switch(i){case"anyof":case"=":n=h;break;case"noneof":case"<>":n=f;break;default:return g()}return{filterType:n,filterValues:a?o:[o]}}(n,t);e.columnOption(p(t),i)},x=function(e,t,n){var o,a=null==n?void 0:n[1],r=null==n?void 0:n[2],s=t.filterOperations||t.defaultFilterOperations;(!s||s.indexOf(a)>=0||a===t.defaultFilterOperation)&&c.indexOf(a)>=0&&null!==r?(a!==t.defaultFilterOperation||(0,i.isDefined)(t.selectedFilterOperation)||(a=t.selectedFilterOperation),o={filterValue:r,selectedFilterOperation:a}):o={filterValue:void 0,selectedFilterOperation:void 0},e.columnOption(p(t),o)},{syncFilterValue:function(){var e=this,t=e.getController("columns"),n=t.getFilteringColumns();this._skipSyncColumnOptions=!0,n.forEach((function(n){var o=(0,a.getMatchedConditions)(e.option("filterValue"),p(n));if(1===o.length){var r=o[0];y(t,n,r),x(t,n,r)}else(0,i.isDefined)(n.filterValues)&&y(t,n),(0,i.isDefined)(n.filterValue)&&x(t,n)})),this._skipSyncColumnOptions=!1},_initSync:function(){var e=this.getController("columns").getColumns(),t=this.getController("data"),n=t.pageIndex();if(function(e){e.forEach((function(e){var t=p(e);if(!(0,i.isDefined)(t)&&e.allowFiltering)throw new r.default.Error("E1049",e.caption)}))}(e),!this.option("filterValue")){var o=this.getController("columns").getFilteringColumns(),a=this.getFilterValueFromColumns(o);this.option("filterValue",a)}this.syncFilterValue(),t.pageIndex(n)},init:function(){var e=this,t=this.getController("data");t.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():t.dataSourceChanged.add((function(){return e._initSync()})))},_getSyncFilterRow:function(e,t){var n=_(t);return(0,i.isDefined)(n)?(0,a.syncFilters)(e,n):(0,a.removeFieldConditionsFromFilter)(e,p(t))},_getSyncHeaderFilter:function(e,t){var n=v(t);return n?(0,a.syncFilters)(e,n):(0,a.removeFieldConditionsFromFilter)(e,p(t))},getFilterValueFromColumns:function(e){if(!this.getController("data").isFilterSyncActive())return null;var t=["and"];return e&&e.forEach((function(e){var n=v(e),i=_(e);n&&(0,a.addItem)(n,t),i&&(0,a.addItem)(i,t)})),(0,a.getNormalizedFilter)(t)},syncFilterRow:function(e,t){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),e))},syncHeaderFilter:function(e){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),e))},getCustomFilterOperations:function(){var e=this.option("filterBuilder.customOperations")||[];return[(0,u.anyOf)(this.component),(0,u.noneOf)(this.component)].concat(e)},publicMethods:function(){return["getCustomFilterOperations"]}}))},extenders:{controllers:{data:b},views:{columnHeadersView:{_isHeaderFilterEmpty:function(e){return this.getController("data").isFilterSyncActive()?!(0,a.filterHasField)(this.option("filterValue"),p(e)):this.callBase(e)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(e){"filterValue"===e.name?this._updateHeaderFilterIndicators():this.callBase(e)}}}}};t.filterSyncModule=w},8783:function(e,t,n){t.focusModule=void 0;var i=d(n(68374)),o=d(n(12310)),a=n(95479),r=d(n(13615)),s=n(20576),l=n(35922),u=n(62754);function d(e){return e&&e.__esModule?e:{default:e}}var c="dx-row-focused",h="dx-cell-focus-disabled",f={defaultOptions:function(){return{focusedRowEnabled:!1,autoNavigateToFocusedRow:!0,focusedRowKey:null,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:o.default.ViewController.inherit({init:function(){this._dataController=this.getController("data"),this._keyboardController=this.getController("keyboardNavigation"),this.component._optionsByReference.focusedRowKey=!0},optionChanged:function(e){if("focusedRowIndex"===e.name){var t=this.option("focusedRowKey");this._focusRowByIndex(e.value),this._triggerFocusedRowChangedIfNeed(t,e.value),e.handled=!0}else if("focusedRowKey"===e.name){if(e.handled=!0,Array.isArray(e.value)&&JSON.stringify(e.value)===JSON.stringify(e.previousValue))return;var n=this.option("focusedRowIndex");this._focusRowByKey(e.value),this._triggerFocusedRowChangedIfNeed(e.value,n)}else"focusedColumnIndex"===e.name||"focusedRowEnabled"===e.name||"autoNavigateToFocusedRow"===e.name?e.handled=!0:this.callBase(e)},_triggerFocusedRowChangedIfNeed:function(e,t){if(t===this.getFocusedRowIndexByKey(e)){var n=this._dataController.getRowIndexByKey(e);if(n>=0){var o=(0,i.default)(this.getView("rowsView").getRowElement(n));this.getController("keyboardNavigation")._fireFocusedRowChanged(o,t)}}},isAutoNavigateToFocusedRow:function(){return"infinite"!==this.option("scrolling.mode")&&this.option("autoNavigateToFocusedRow")},_focusRowByIndex:function(e,t){this.option("focusedRowEnabled")&&((e=void 0!==e?e:this.option("focusedRowIndex"))<0?this.isAutoNavigateToFocusedRow()&&this._resetFocusedRow():this._focusRowByIndexCore(e,t))},_focusRowByIndexCore:function(e,t){var n=this,i=this.getController("data"),o=i.pageSize(),a=function(){if(n._isValidFocusedRowIndex(e)){var o=e-i.getRowIndexOffset(!0);if(!t||t.paging&&!t.filtering){var a=i._getLastItemIndex();o=Math.min(o,a)}var r=i.getKeyByRowIndex(o,!0);(0,l.isDefined)(r)&&!n.isRowFocused(r)&&n.option("focusedRowKey",r)}};if(o>=0)if(this._isLocalRowIndex(e))a();else{var r=Math.floor(e/i.pageSize());(0,u.when)(i.pageIndex(r),i.waitReady()).done((function(){a()}))}},_isLocalRowIndex:function(e){var t=this.getController("data");if(this.getController("keyboardNavigation")._isVirtualScrolling()){var n=Math.floor(e/t.pageSize()),i=t.virtualItemsCount(),o=i?i.begin:-1,a=t.getVisibleRows().length+t.getRowIndexOffset(),r=Math.ceil(a/t.pageSize());return o<=e&&r>n}return!0},_setFocusedRowKeyByIndex:function(e){var t=this.getController("data");if(this._isValidFocusedRowIndex(e)){var n=Math.min(e-t.getRowIndexOffset(),t.items().length-1),i=t.getKeyByRowIndex(n);(0,l.isDefined)(i)&&!this.isRowFocused(i)&&this.option("focusedRowKey",i)}},_focusRowByKey:function(e){(0,l.isDefined)(e)?this._navigateToRow(e,!0):this._resetFocusedRow()},_resetFocusedRow:function(){var e=this.option("focusedRowKey"),t=(0,l.isDefined)(e);if(t||!(this.option("focusedRowIndex")<0)){var n=this.getController("keyboardNavigation");t&&this.option("focusedRowKey",null),n.setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:null}),n._fireFocusedRowChanged(void 0,-1)}},_isValidFocusedRowIndex:function(e){var t=this.getController("data").getVisibleRows()[e];return!t||"data"===t.rowType||"group"===t.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(e){return this.isAutoNavigateToFocusedRow()||this.option("focusedRowIndex",-1),this._navigateToRow(e)},_navigateToRow:function(e,t){var n=this,i=n.getController("data"),o=n.isAutoNavigateToFocusedRow(),a=new u.Deferred;if(void 0===e||!i.dataSource())return a.reject().promise();var r=n.getFocusedRowIndexByKey(e);return!o&&t||r>=0?n._navigateTo(e,a,t):i.getPageIndexByKey(e).done((function(o){o<0?a.resolve(-1):o===i.pageIndex()?i.reload().done((function(){n.isRowFocused(e)&&i.getRowIndexByKey(e)>=0?a.resolve(n.getFocusedRowIndexByKey(e)):n._navigateTo(e,a,t)})).fail(a.reject):i.pageIndex(o).done((function(){n._navigateTo(e,a,t)})).fail(a.reject)})).fail(a.reject),a.promise()},_navigateTo:function(e,t,n){var i=this.getController("data").getRowIndexByKey(e),o=r.default.isVirtualRowRendering(this);this.isAutoNavigateToFocusedRow()&&o&&i<0?this._navigateToVirtualRow(e,t,n):this._navigateToVisibleRow(e,t,n)},_navigateToVisibleRow:function(e,t,n){if(n)this._triggerUpdateFocusedRow(e,t);else{var i=this.getFocusedRowIndexByKey(e);this.getView("rowsView").scrollToRowElement(e,t).done((function(){t.resolve(i)}))}},_navigateToVirtualRow:function(e,t,n){var i=this,o=this.getController("data"),a=o._rowsScrollController,s=r.default.getIndexByKey(e,o.items(!0)),l=i.getView("rowsView").getScrollable();if(a&&l&&s>=0){var u=s+o.getRowIndexOffset(!0),d=a.getItemOffset(u);i.component.on("contentReady",(function o(){i.component.off("contentReady",o),n?i._triggerUpdateFocusedRow(e,t):t.resolve(u)})),l.scrollTo({y:d})}else t.resolve(-1)},_triggerUpdateFocusedRow:function(e,t){var n,i=this,o=this.getController("data"),a=this.getFocusedRowIndexByKey(e);this._isValidFocusedRowIndex(a)?(this.option("focusedRowEnabled")?o.updateItems({changeType:"updateFocusedRow",focusedRowKey:e}):n=this.getView("rowsView").scrollToRowElement(e),(0,u.when)(n).done((function(){i.getController("keyboardNavigation").setFocusedRowIndex(a),t&&t.resolve(a)}))):t&&t.resolve(-1)},getFocusedRowIndexByKey:function(e){var t=this.getController("data"),n=t.getRowIndexByKey(e,!0);return n>=0?n+t.getRowIndexOffset(!0):-1},_focusRowByKeyOrIndex:function(){var e=this,t=this.option("focusedRowKey"),n=this.option("focusedRowIndex"),i=this.getController("keyboardNavigation"),o=this.getController("data");if((0,l.isDefined)(t)){var a=o.getRowIndexByKey(t);a>=0?(i._isVirtualScrolling()&&(n=a+o.getRowIndexOffset()),i.setFocusedRowIndex(n),this._triggerUpdateFocusedRow(t)):this._navigateToRow(t,!0).done((function(t){n>=0&&t<0?e._focusRowByIndex():n<0&&t>=0&&i.setFocusedRowIndex(t)}))}else n>=0&&this.getController("focus")._focusRowByIndex(n)},isRowFocused:function(e){var t=this.option("focusedRowKey");if((0,l.isDefined)(t))return(0,s.equalByValue)(e,this.option("focusedRowKey"))},updateFocusedRow:function(e){var t,n=this,o=n._dataController.getRowIndexByKey(e.focusedRowKey),r=n.getView("rowsView");(0,a.each)(r.getTableElements(),(function(e,a){var r=0===e;t=(0,i.default)(a),n._clearPreviousFocusedRow(t,o),n._prepareFocusedRow({changedItem:n._dataController.getVisibleRows()[o],$tableElement:t,focusedRowIndex:o,isMainTable:r})}))},_clearPreviousFocusedRow:function(e,t){var n=this,o=e.find(".dx-row.dx-row-focused").filter((function(t,o){var a=(0,i.default)(o).closest(".".concat(n.addWidgetPrefix("table")));return e.is(a)}));o.removeClass(c).removeClass(h).removeAttr("tabindex"),o.children("td").removeAttr("tabindex"),0!==t&&(0,i.default)(this.getView("rowsView").getRowElement(0)).removeClass(h).removeAttr("tabIndex")},_prepareFocusedRow:function(e){var t,n=e.changedItem;if(n&&("data"===n.rowType||"group"===n.rowType)){var o=e.focusedRowIndex,a=e.$tableElement,r=e.isMainTable,s=this.option("tabindex")||0,l=this.getView("rowsView");(t=(0,i.default)(l._getRowElements(a).eq(o))).addClass(c).attr("tabindex",s),r&&l.scrollToElementVertically(t)}return t}})},extenders:{controllers:{keyboardNavigation:{init:function(){var e=this.option("focusedRowIndex"),t=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},(0,l.isDefined)(e)&&(this._focusedCellPosition.rowIndex=this.option("focusedRowIndex")),(0,l.isDefined)(t)&&(this._focusedCellPosition.columnIndex=this.option("focusedColumnIndex"))},setFocusedRowIndex:function(e){var t=this.getController("data");this.callBase(e);var n=e-t.getRowIndexOffset(),i=t.getVisibleRows()[n];i&&i.isNewRow||this.option("focusedRowIndex",e)},setFocusedColumnIndex:function(e){this.callBase(e),this.option("focusedColumnIndex",e)},_escapeKeyHandler:function(e,t){!t&&this.option("focusedRowEnabled")?this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(e.originalEvent.target),!0)):this.callBase(e,t)},_updateFocusedCellPosition:function(e,t){var n=this.option("focusedRowIndex"),i=this.option("focusedColumnIndex"),o=this.callBase(e,t);o&&o.columnIndex>=0&&this._fireFocusedCellChanged(e,i,n)}},editorFactory:{renderFocusOverlay:function(e,t){var n,i=this.getController("keyboardNavigation"),o=this.option("focusedRowEnabled"),a=this.getController("editing");o&&null!=i&&i.isRowFocusType()&&!a.isEditing()?o&&"row"===i._getElementType(e)&&!e.hasClass(c)&&(n=i.getFirstValidCellInRow(e),i.focus(n)):this.callBase(e,t)}},columns:{getSortDataSourceParameters:function(e,t){var n=this,i=this.callBase.apply(this,arguments),o=this.getController("data"),a=o._dataSource,r=o.store(),s=r&&r.key(),l=a&&a.remoteOperations()||{},u=Object.keys(l).every((function(e){return!l[e]}));if(s&&(this.option("focusedRowEnabled")&&!1!==this.getController("focus").isAutoNavigateToFocusedRow()||t)){var d=(s=Array.isArray(s)?s:[s]).filter((function(e){return!n.columnOption(e,"sortOrder")}));d.length&&(i=i||[],u?i.push({selector:a.getDataIndexGetter(),desc:!1}):d.forEach((function(e){return i.push({selector:e,desc:!1})})))}return i}},data:{_applyChange:function(e){if(!e||"updateFocusedRow"!==e.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(e){if(this.callBase(e),this.option("focusedRowEnabled")&&this._dataSource){var t="update"===e.changeType&&e.repaintChangesOnly&&e.changeTypes&&e.changeTypes.indexOf("remove")>=0;"refresh"===e.changeType&&e.items.length||t?(this._updatePageIndexes(),this.processUpdateFocusedRow(e)):"append"!==e.changeType&&"prepend"!==e.changeType||this._updatePageIndexes()}},_updatePageIndexes:function(){var e=this._lastRenderingPageIndex||0,t=this._rowsScrollController?this._rowsScrollController.pageIndex():0;this._lastRenderingPageIndex=t,this._isPagingByRendering=t!==e},isPagingByRendering:function(){return this._isPagingByRendering},processUpdateFocusedRow:function(e){var t=e.operationTypes||{},n=this.getController("focus"),i=t.reload,o=t.fullReload,a=this.getController("keyboardNavigation")._isVirtualScrolling(),r=this.option("focusedRowKey"),s=n.isAutoNavigateToFocusedRow();if(i&&!o&&(0,l.isDefined)(r))n._navigateToRow(r,!0).done((function(e){e<0&&n._focusRowByIndex(void 0,t)}));else if(t.paging&&!a)if(s){var u=this.getRowIndexByKey(r),d=u>=0,c=this.option("focusedRowIndex");c>=0&&(c===u||!d)&&n._focusRowByIndex(void 0,t)}else this.getRowIndexByKey(r)<0&&this.option("focusedRowIndex",-1);else t.fullReload&&n._focusRowByKeyOrIndex()},getPageIndexByKey:function(e){var t=this,n=new u.Deferred;return t.getGlobalRowIndexByKey(e).done((function(e){n.resolve(e>=0?Math.floor(e/t.pageSize()):-1)})).fail(n.reject),n.promise()},getGlobalRowIndexByKey:function(e){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(e):this._calculateGlobalRowIndexByFlatData(e)},_calculateGlobalRowIndexByFlatData:function(e,t,n){var i=this,o=new u.Deferred,a=i._dataSource;if(Array.isArray(e))return o.resolve(-1).promise();var r=i._generateFilterByKey(e);return a.load({filter:i._concatWithCombinedFilter(r),skip:0,take:1}).done((function(s){s.length>0?(r=i._generateOperationFilterByKey(e,s[0],n),a.load({filter:i._concatWithCombinedFilter(r,t),skip:0,take:1,requireTotalCount:!0}).done((function(e,t){o.resolve(t.totalCount)}))):o.resolve(-1)})),o.promise()},_concatWithCombinedFilter:function(e,t){var n=this.getCombinedFilter();return r.default.combineFilters([e,n,t])},_generateBooleanFilter:function(e,t,n){var i;return!1===t?i=[e,"=",!!n.desc||null]:(!0===t?!n.desc:n.desc)&&(i=[e,"<>",t]),i},_generateOperationFilterByKey:function(e,t,n){var i=this,o=i._dataSource,a=i._generateFilterByKey(e,"<"),r=i._columnsController.getSortDataSourceParameters(!o.remoteOperations().filtering,!0);if(n){var s=i._columnsController.getGroupDataSourceParameters(!o.remoteOperations().filtering);s&&(r=r?s.concat(r):s)}return r&&r.slice().reverse().forEach((function(e){var n,o=e.selector,r=(n="function"==typeof o?o:i._columnsController.columnOption(o,"selector"))?n(t):t[o];if(a=[[o,"=",r],"and",a],null===r||(0,l.isBoolean)(r)){var s=i._generateBooleanFilter(o,r,e);s&&(a=[s,"or",a])}else{var u=[o,e.desc?">":"<",r];e.desc||(u=[u,"or",[o,"=",null]]),a=[u,"or",a]}})),a},_generateFilterByKey:function(e,t){var n=this._dataSource.key(),i=[];if(t||(t="="),Array.isArray(n))for(var o=0;o<n.length;++o){var a=e[n[o]];a&&(i.length>0&&i.push("and"),i.push([n[o],t,a]))}else i=[n,t,e];return i},_getLastItemIndex:function(){return this.items(!0).length-1}},editing:{_deleteRowCore:function(e){var t=this,n=this.callBase.apply(this,arguments),i=this.getController("data"),o=i.getKeyByRowIndex(e);n.done((function(){var e=i.getRowIndexByKey(o),n=i.getVisibleRows();-1!==e||n.length||t.getController("focus")._resetFocusedRow()}))}}},views:{rowsView:{_createRow:function(e){var t=this.callBase.apply(this,arguments);return this.option("focusedRowEnabled")&&e&&this.getController("focus").isRowFocused(e.key)&&t.addClass(c),t},_checkRowKeys:function(e){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var t=this._dataController.store();t&&!t.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(e){"updateFocusedRow"===e.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(e):this.callBase(e)},updateFocusElementTabIndex:function(e,t){this.option("focusedRowEnabled")?this._setFocusedRowElementTabIndex(t):this.callBase(e)},_setFocusedRowElementTabIndex:function(e){var t=this,n=this.option("focusedRowKey"),i=this.option("tabIndex")||0,o=this._dataController,a=this._columnsController,r=o.getRowIndexByKey(n),s=this.option("focusedColumnIndex"),u=this._findRowElementForTabIndex();if((0,l.isDefined)(this._scrollToFocusOnResize)||(this._scrollToFocusOnResize=function(){t.scrollToElementVertically(t._findRowElementForTabIndex()),t.resizeCompleted.remove(t._scrollToFocusOnResize)}),u.attr("tabIndex",i),r>=0&&!e&&(s<0&&(s=0),r+=o.getRowIndexOffset(),s+=a.getColumnIndexOffset(),this.getController("keyboardNavigation").setFocusedCellPosition(r,s),this.getController("focus").isAutoNavigateToFocusedRow())){var d=o.dataSource(),c=d&&d.operationTypes();!c||c.paging||o.isPagingByRendering()||(this.resizeCompleted.remove(this._scrollToFocusOnResize),this.resizeCompleted.add(this._scrollToFocusOnResize))}},_findRowElementForTabIndex:function(){var e=this.option("focusedRowKey"),t=this._dataController.getRowIndexByKey(e);return(0,i.default)(this.getRowElement(t>=0?t:0))},scrollToRowElement:function(e){var t=this.getController("data").getRowIndexByKey(e),n=(0,i.default)(this.getRow(t));return this.scrollToElementVertically(n)},scrollToElementVertically:function(e){var t=this.getScrollable();if(t){var n=t.getScrollElementPosition(e,"vertical");return this._scrollTopPosition(n)}return(new u.Deferred).resolve()},_scrollTopPosition:function(e){var t=new u.Deferred,n=this.getScrollable();return n&&e!==n.scrollTop()?(n.on("scroll",(function e(){n.off("scroll",e),t.resolve()})),n.scrollTo({top:e}),t.promise()):t.resolve()}}}}};t.focusModule=f},75775:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.gridViewModule=void 0;var o=n(58664),a=_(n(68374)),r=_(n(12310)),s=n(20576),l=n(58201),u=n(95479),d=n(35922),c=n(37518),h=_(n(13615)),f=_(n(28109)),p=n(62754),g=_(n(73349)),m=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(56756));function _(e){return e&&e.__esModule?e:{default:e}}var v="borders",y="adaptiveHidden",x=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],b=function(e){return(0,d.isString)(e)&&"%"===e.slice(-1)},w=function(e,t){var n=e._rowsView.contentWidth();return n-e._getTotalWidth(t,n)},C={defaultOptions:function(){return{showBorders:!1,renderAsync:!1}},controllers:{resizing:r.default.ViewController.inherit({_initPostRenderHandlers:function(){var e=this,t=this._dataController;this._refreshSizesHandler||(this._refreshSizesHandler=function(n){t.changed.remove(e._refreshSizesHandler);var i=n&&n.templateDeferreds||[];p.when.apply(e,i).done((function(){e._refreshSizes(n)}))},t.changed.add((function(){t.changed.add(e._refreshSizesHandler)})))},_refreshSizes:function(e){var t,n=this,i=e&&e.changeType,o=e&&e.isDelayed,a=n._dataController.items();if(e&&"refresh"!==i&&"prepend"!==i&&"append"!==i){if("update"===i){var r;if(0===(null===(r=e.changeTypes)||void 0===r?void 0:r.length))return;!(a.length>1||"insert"!==e.changeTypes[0])||0===a.length&&"remove"===e.changeTypes[0]||e.needUpdateDimensions?t=n.resize():(0,s.deferUpdate)((function(){return(0,s.deferRender)((function(){return(0,s.deferUpdate)((function(){n._setScrollerSpacing(n._hasHeight),n._rowsView.resize()}))}))}))}}else o||(t=n.resize());i&&"updateSelection"!==i&&"updateFocusedRow"!==i&&"pageIndex"!==i&&!o&&(0,p.when)(t).done((function(){n._setAriaRowColCount(),n.fireContentReadyAction()}))},fireContentReadyAction:function(){this.component._fireContentReadyAction()},_setAriaRowColCount:function(){var e=this.component;e.setAria({rowCount:this._dataController.totalItemsCount(),colCount:e.columnCount()},e.$element().children(".dx-gridbase-container"))},_getBestFitWidths:function(){var e,t=this._rowsView,n=this._columnHeadersView,i=t.getColumnWidths();if(null===(e=i)||void 0===e||!e.length){var o,a=n.getTableElement();n.setTableElement(null===(o=t.getTableElement())||void 0===o?void 0:o.children(".dx-header")),i=n.getColumnWidths(),n.setTableElement(a)}return i},_setVisibleWidths:function(e,t){var n=this._columnsController;n.beginUpdate(),(0,u.each)(e,(function(e,i){var o=n.getColumnId(i);n.columnOption(o,"visibleWidth",t[e])})),n.endUpdate()},_toggleBestFitModeForView:function(e,t,n){var i=this;if(e&&e.isVisible()){var o=this._rowsView.getTableElements(),r=e.getTableElements();(0,u.each)(o,(function(e,o){var s,l=(0,a.default)(o),u=r.eq(e);u&&u.length&&((s=n?u.children("tbody").appendTo(l):l.children("."+t).appendTo(u)).toggleClass(t,n),s.toggleClass(i.addWidgetPrefix("best-fit"),n))}))}},_toggleBestFitMode:function(e){var t=this._rowsView.getTableElement(),n=this._rowsView.getTableElements().eq(1);t&&(t.css("tableLayout",e?"auto":"fixed"),t.children("colgroup").css("display",e?"none":""),n.toggleClass(this.addWidgetPrefix("table-fixed"),!e),this._toggleBestFitModeForView(this._columnHeadersView,"dx-header",e),this._toggleBestFitModeForView(this._footerView,"dx-footer",e),this._needStretch()&&(t.get(0).style.width=e?"auto":""))},_synchronizeColumns:function(){var e,t,n,i=this,o=this._columnsController,a=o.getVisibleColumns(),r=this.option("columnAutoWidth"),l=this._needBestFit(),f=!1,p=!1,_=[];!l&&(0,u.each)(a,(function(e,t){if("auto"===t.width)return l=!0,!1})),(0,u.each)(a,(function(e,t){if(t.minWidth)return f=!0,!1})),this._setVisibleWidths(a,[]),l&&(t=g.default.getActiveElement(),n=h.default.getSelectionRange(t),this._toggleBestFitMode(!0),e=!0);var v=this.component.$element();v&&v[0]&&this._maxWidth&&(delete this._maxWidth,v[0].style.maxWidth=""),(0,s.deferUpdate)((function(){var v;l?(_=i._getBestFitWidths(),(0,u.each)(a,(function(e,t){var n=o.getColumnId(t);o.columnOption(n,"bestFitWidth",_[e],!0)}))):f&&(_=i._getBestFitWidths()),(0,u.each)(a,(function(e){var t=this.width;"auto"!==t&&((0,d.isDefined)(t)?_[e]=(0,d.isNumeric)(t)||function(e){return(0,d.isString)(e)&&"px"===e.slice(-2)}(t)?parseFloat(t):t:r||(_[e]=void 0))})),e&&(i._toggleBestFitMode(!1),e=!1,t&&t!==g.default.getActiveElement()&&((0,c.getBoundingRect)(t).bottom<0||function(e,t){m.hiddenFocus(e),h.default.setSelectionRange(e,t)}(t,n))),p=i._correctColumnWidths(_,a),r&&((0,u.each)(a,(function(e,t){"groupExpand"===t.type&&(v=_[e])})),(0,u.each)(a,(function(e,t){"groupExpand"===t.type&&v&&(_[e]=v)})),i._needStretch()&&i._processStretch(_,a)),(0,s.deferRender)((function(){(l||p)&&i._setVisibleWidths(a,_)}))}))},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this._columnsController.getVisibleColumns().some((function(e){return"auto"===e.width&&!e.command}))},_getAverageColumnsWidth:function(e){return w(this,e)/e.filter((function(e){return void 0===e})).length},_correctColumnWidths:function(e,t){var n,i=this,a=!1,r=!1,s=!1,l=i.component.$element(),u=i._hasWidth,c=function(){var o=n,l=t[o],u=e[o]===y,c=e[o],h=l.minWidth;if(h)if(void 0===c){var f=i._getAverageColumnsWidth(e);c=f}else if(b(c)){(function(e,t,n,i){return w(e,i.map((function(e,i){return i===t?n:e})))})(i,o,h,e)<0&&(c=-1)}var p=i._getRealColumnWidth(o,e.map((function(e,t){return o===t?c:e})));h&&!u&&p<h&&(e[o]=h,s=!0,n=-1),(0,d.isDefined)(l.width)||(r=!0),b(l.width)&&(a=!0)};for(n=0;n<t.length;n++)c();if(!r&&e.length){var f=i._rowsView.element(),p=i._rowsView.contentWidth(),g=i._rowsView.getScrollbarWidth(),m=i._getTotalWidth(e,p);if(m<p){var _=h.default.getLastResizableColumnIndex(t,e);if(_>=0&&(e[_]="auto",s=!0,!1===u&&!a)){var v=i.option("showBorders")?Math.ceil((0,o.getOuterWidth)(f)-(0,o.getInnerWidth)(f)):0;i._maxWidth=m+g+v,l.css("maxWidth",i._maxWidth)}}}return s},_processStretch:function(e,t){var n=this._rowsView.contentWidth(),i=this._getTotalWidth(e,n),o={length:0};if(e.length){(0,u.each)(t,(function(t){(this.width||e[t]===y)&&(o[t]=!0,o.length++)}));var a=n-i,r=Math.floor(a/(e.length-o.length)),s=a-r*(e.length-o.length);if(a>=0)for(var l=0;l<e.length;l++)o[l]||(e[l]+=r,s>0&&(s<1?(e[l]+=s,s=0):(e[l]++,s--)))}},_getRealColumnWidth:function(e,t,n){var i=1,o=t[e];if(!b(o))return parseFloat(o);var a=t.reduce((function(e,t,n){return b(t)?e+parseFloat(t):e}),0),r=t.reduce((function(e,t){return!t||t===y||b(t)?e:e+parseFloat(t)}),0),s=(n=n||this._rowsView.contentWidth())-r,l=a*n/100;return r>0&&l+r>=n&&(i=l>s?s/l:1),parseFloat(o)*n*i/100},_getTotalWidth:function(e,t){for(var n=0,i=0;i<e.length;i++){var o=e[i];o&&o!==y&&(n+=this._getRealColumnWidth(i,e,t))}return Math.ceil(n)},updateSize:function(e){var t,n,i,r=this,s=(0,a.default)(e),l=r.addWidgetPrefix("important-margin");void 0===r._hasHeight&&s&&s.is(":visible")&&(0,o.getWidth)(s)&&((t=s.children("."+r.getWidgetContainerClass())).length&&t.detach(),r._hasHeight=!!((i=s).get(0).clientHeight-parseFloat(i.css("paddingTop"))-parseFloat(i.css("paddingBottom"))),n=(0,o.getWidth)(s),s.addClass(l),r._hasWidth=(0,o.getWidth)(s)===n,s.removeClass(l),t.length&&t.appendTo(s))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(e){var t=this;if(t._initPostRenderHandlers(),t._checkSize(e)){var n=t._resizeDeferred,i=t._resizeDeferred=new p.Deferred;return(0,p.when)(n).always((function(){(0,s.deferRender)((function(){t._dataController.isLoaded()&&t._synchronizeColumns(),t._resetGroupElementHeight(),(0,s.deferUpdate)((function(){(0,s.deferRender)((function(){(0,s.deferUpdate)((function(){t._updateDimensionsCore()}))}))}))})).done(i.resolve).fail(i.reject)})),i.promise()}},_resetGroupElementHeight:function(){var e=this.component.$element().children().get(0),t=this._rowsView.getScrollable();!e||!e.style.height||t&&t.scrollTop()||(e.style.height="")},_checkSize:function(e){var t=this.component.$element();return!(e&&(this._lastWidth===(0,o.getWidth)(t)&&this._lastHeight===(0,o.getHeight)(t)&&this._devicePixelRatio===(0,l.getWindow)().devicePixelRatio||!t.is(":visible")))},_setScrollerSpacingCore:function(e){var t=this,n=e?t._rowsView.getScrollbarWidth():0,i=t._rowsView.getScrollbarWidth(!0);(0,s.deferRender)((function(){t._columnHeadersView&&t._columnHeadersView.setScrollerSpacing(n),t._footerView&&t._footerView.setScrollerSpacing(n),t._rowsView.setScrollerSpacing(n,i)}))},_setScrollerSpacing:function(e){var t=this;!0===this.option("scrolling.useNative")?(0,s.deferRender)((function(){(0,s.deferUpdate)((function(){t._setScrollerSpacingCore(e)}))})):this._setScrollerSpacingCore(e)},_updateDimensionsCore:function(){var e,t=this,n=t._dataController,i=t._rowsView,r=t.component.$element(),l=r.children().get(0),d=r&&(r.get(0).clientHeight||(0,o.getHeight)(r)),c=parseInt(r.css("maxHeight")),h=c&&d>=c,f=t.option("height")||r.get(0).style.height,p=t.getController("editorFactory"),g=h&&l.scrollHeight===l.offsetHeight;t.updateSize(r);var m=t._hasHeight||h;f&&t._hasHeight^"auto"!==f&&(e=(0,a.default)("<div>"),(0,o.setHeight)(e,f),e.appendTo(r),t._hasHeight=!!(0,o.getHeight)(e),e.remove()),(0,s.deferRender)((function(){i.height(null,m),h&&!g&&(0,a.default)(l).css("height",c),n.isLoaded()?(0,s.deferUpdate)((function(){t._updateLastSizes(r),t._setScrollerSpacing(m),(0,u.each)(x,(function(e,n){var i=t.getView(n);i&&i.resize()})),p&&p.resize()})):i.setLoading(n.isLoading())}))},_updateLastSizes:function(e){this._lastWidth=(0,o.getWidth)(e),this._lastHeight=(0,o.getHeight)(e),this._devicePixelRatio=(0,l.getWindow)().devicePixelRatio},optionChanged:function(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"renderAsync":return void(e.handled=!0);default:this.callBase(e)}},init:function(){var e=this;e._dataController=e.getController("data"),e._columnsController=e.getController("columns"),e._columnHeadersView=e.getView("columnHeadersView"),e._footerView=e.getView("footerView"),e._rowsView=e.getView("rowsView")}}),synchronizeScrolling:r.default.ViewController.inherit({_scrollChangedHandler:function(e,t,n){for(var i=0;i<e.length;i++)e[i]&&e[i].name!==n&&e[i].scrollTo({left:t.left,top:t.top})},init:function(){for(var e=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")],t=0;t<e.length;t++){var n=e[t];n&&n.scrollChanged.add(this._scrollChangedHandler.bind(this,e))}}})},views:{gridView:r.default.View.inherit({_endUpdateCore:function(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},init:function(){var e=this;e._resizingController=e.getController("resizing"),e._dataController=e.getController("data")},getView:function(e){return this.component._views[e]},element:function(){return this._groupElement},optionChanged:function(e){var t=this;(0,d.isDefined)(t._groupElement)&&"showBorders"===e.name?(t._groupElement.toggleClass(t.addWidgetPrefix(v),!!e.value),e.handled=!0):t.callBase(e)},_renderViews:function(e){var t=this;(0,u.each)(x,(function(n,i){var o=t.getView(i);o&&o.render(e)}))},_getTableRoleName:function(){return"grid"},render:function(e){var t=this,n=!t._groupElement,i=t._groupElement||(0,a.default)("<div>").addClass(t.getWidgetContainerClass());i.addClass("dx-gridbase-container"),i.toggleClass(t.addWidgetPrefix(v),!!t.option("showBorders")),t.setAria("role","presentation",e),t.component.setAria({role:this._getTableRoleName(),label:f.default.format(t._getWidgetAriaLabel())},i),t._rootElement=e||t._rootElement,n&&(t._groupElement=i,(0,l.hasWindow)()&&t.getController("resizing").updateSize(e),i.appendTo(e)),t._renderViews(i)},update:function(){var e=this,t=e._rootElement,n=e._groupElement,i=e.getController("resizing");t&&n&&(i.resize(),e._dataController.isLoaded()&&e._resizingController.fireContentReadyAction())}})},VIEW_NAMES:x};t.gridViewModule=C},82228:function(e,t,n){t.headerFilterModule=void 0,t.invertFilterExpression=function(e){return["!",e]};var i=w(n(55994)),o=w(n(12310)),a=w(n(18740)),r=w(n(13615)),s=n(85589),l=w(n(28109)),u=n(95429),d=n(47617),c=n(95479),h=n(35922),f=n(37518),p=n(13306),g=n(9234),m=w(n(91500)),_=w(n(26974)),v=n(62754),y=n(56756),x=w(n(96687)),b=w(n(99236));function w(e){return e&&e.__esModule?e:{default:e}}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var S={month:function(e){return m.default.getMonthNames()[e-1]},quarter:function(e){return m.default.format(new Date(2e3,3*e-1),"quarter")}};function k(e,t){var n=function e(t,n,i){return n=n||[],i=i||[],t.forEach((function(t){if((0,h.isDefined)(t.key)){var o=1===n.length;if(n.push(o?t.key-1:t.key),t.items)e(t.items,n,i);else{var a=new Date(Date.UTC.apply(Date,n));i.push(a)}n.pop()}else i.push(null)})),i}(e),i=(0,x.default)(n),o=r.default.getHeaderFilterGroupParameters(C({},t,{calculateCellValue:function(e){return e}}));return b.default.queryByOptions(i,{group:o}).toArray()}var D=o.default.ViewController.inherit({init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(e,t){for(var n=e.length,i="exclude"===t.filterType;n--;){var o=e[n];"items"in e[n]&&this._updateSelectedState(e[n].items,t),(0,s.updateHeaderFilterItemSelectionState)(o,r.default.getIndexByKey(e[n].value,t.filterValues,null)>-1,i)}},_normalizeGroupItem:function(e,t,n){var i,o,a=n.path,r=n.valueSelector,s=n.displaySelector,l=n.column;return r&&s?(i=r(e),o=s(e)):o=i=e.key,e=(0,h.isObject)(e)?(0,p.extend)({},e):{},a.push(i),1===a.length?e.value=a[0]:e.value=a.join("/"),e.text=this.getHeaderItemText(o,l,t,n.headerFilterOptions),e},getHeaderItemText:function(e,t,n,i){var o=r.default.formatValue(e,function(e,t,n){var i=a.default.getGroupInterval(t),o=r.default.getFormatOptionsByColumn(t,"headerFilter");return i&&(o.groupInterval=i[n],r.default.isDateType(t.dataType)?o.format=S[i[n]]:"number"===t.dataType&&(o.getDisplayFormat=function(){var o={format:t.format,target:"headerFilter"},a=r.default.formatValue(e,o),s=e+i[n],l=r.default.formatValue(s,o);return a&&l?a+" - "+l:""})),o}(e,t,n));return o||(o=i.texts.emptyValue),o},_processGroupItems:function(e,t,n,i){var o,a,r=i.column.lookup,s=i.level;n=n||[],t=t||0,r&&(o=(0,d.compileGetter)(r.displayExpr),a=(0,d.compileGetter)(r.valueExpr));for(var l=0;l<e.length;l++)e[l]=this._normalizeGroupItem(e[l],t,{column:i.column,headerFilterOptions:i.headerFilterOptions,displaySelector:o,valueSelector:a,path:n}),"items"in e[l]&&(t!==s&&(0,h.isDefined)(e[l].value)?this._processGroupItems(e[l].items,t+1,n,i):delete e[l].items),n.pop()},getDataSource:function(e){var t,n=this,i=n._dataController.dataSource(),o=r.default.getHeaderFilterGroupParameters(e,null==i?void 0:i.remoteOperations().grouping),a=null===(t=e.headerFilter)||void 0===t?void 0:t.dataSource,s=n.option("headerFilter"),l=!1,u={component:n.component};if(i){if((0,h.isDefined)(a)&&!(0,h.isFunction)(a))u.dataSource=(0,g.normalizeDataSourceOptions)(a);else if(e.lookup){var d;l=!0,e.lookup.items?d=e.lookup.items:(d=e.lookup.dataSource,(0,h.isFunction)(d)&&!_.default.isWrapped(d)&&(d=d({}))),u.dataSource=(0,g.normalizeDataSourceOptions)(d)}else{var c=Array.isArray(o)?o.length-1:0;n._currentColumn=e;var f=n._dataController.getCombinedFilter();n._currentColumn=null,u.dataSource={filter:f,group:o,useDefaultSearch:!0,load:function(t){var o=new v.Deferred;return t.dataField=e.dataField||e.name,i.load(t).done((function(t){var i;("Z"===(null==(i=e.serializationFormat)?void 0:i.slice(-1))||"'Z'"===(null==i?void 0:i.slice(-3)))&&c>3&&(t=k(t,e)),n._processGroupItems(t,null,null,{level:c,column:e,headerFilterOptions:s}),o.resolve(t)})).fail(o.reject),o}}}(0,h.isFunction)(a)&&a.call(e,u);var p=u.dataSource.postProcess;return u.dataSource.postProcess=function(t){var i=t;return l&&(0!==this.pageIndex()||this.searchValue()||(i=i.slice(0)).unshift(null),n._processGroupItems(i,null,null,{level:0,column:e,headerFilterOptions:s})),i=p&&p.call(this,i)||i,n._updateSelectedState(i,e),i},u.dataSource}},getCurrentColumn:function(){return this._currentColumn},showHeaderFilterMenu:function(e,t){var n=this._columnsController,i=(0,p.extend)(!0,{},this._columnsController.getColumns()[e]);if(i){var o=n.getVisibleIndex(e),a=t?this.getView("headerPanel"):this.getView("columnHeadersView"),r=r||a.getColumnElements().eq(t?i.groupIndex:o);this.showHeaderFilterMenuBase({columnElement:r,column:i,applyFilter:!0,apply:function(){n.columnOption(e,{filterValues:this.filterValues,filterType:this.filterType})}})}},showHeaderFilterMenuBase:function(e){var t=this,n=this,i=e.column;if(i){var o=a.default.getGroupInterval(i),r=n._dataController.dataSource(),s=r&&r.remoteOperations().filtering;(0,p.extend)(e,i,{type:o&&o.length>1?"tree":"list",remoteFiltering:s,onShowing:function(t){var i=t.component.$overlayContent().dxResizable("instance");i&&i.option("onResizeEnd",(function(t){var i=n.getController("columns"),o=i.columnOption(e.dataField,"headerFilter");(o=o||{}).width=t.width,o.height=t.height,i.columnOption(e.dataField,"headerFilter",o,!0)}))},onHidden:function(){return(0,y.restoreFocus)(t)}}),e.dataSource=n.getDataSource(e),e.isFilterBuilder&&(e.dataSource.filter=null,e.alignment="right"),n._headerFilterView.showHeaderFilterMenu(e.columnElement,e)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}),I=(0,p.extend)({},s.headerFilterMixin,{_renderCellContent:function(e,t){var n,i=this,o=t.column;!o.command&&(0,s.allowHeaderFiltering)(o)&&i.option("headerFilter.visible")&&"header"===t.rowType&&(n=i._applyColumnState({name:"headerFilter",rootElement:e,column:o,showColumnLines:i.option("showColumnLines")}))&&i._subscribeToIndicatorEvent(n,o,"headerFilter"),i.callBase(e,t)},_subscribeToIndicatorEvent:function(e,t,n){var o=this;"headerFilter"===n&&i.default.on(e,u.name,o.createAction((function(e){e.event.stopPropagation(),o.getController("headerFilter").showHeaderFilterMenu(t.index,!1)})))},_updateIndicator:function(e,t,n){var i=this.callBase(e,t,n);i&&this._subscribeToIndicatorEvent(i,t,n)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(e){var t=e.optionNames;r.default.checkChanges(t,["filterValues","filterType"])?this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators():this.callBase(e)}}),T=(0,p.extend)({},s.headerFilterMixin,{_createGroupPanelItem:function(e,t){var n,o=this,a=o.callBase.apply(o,arguments);return!t.command&&(0,s.allowHeaderFiltering)(t)&&o.option("headerFilter.visible")&&(n=o._applyColumnState({name:"headerFilter",rootElement:a,column:{alignment:(0,f.getDefaultAlignment)(o.option("rtlEnabled")),filterValues:t.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}))&&i.default.on(n,u.name,o.createAction((function(e){e.event.stopPropagation(),o.getController("headerFilter").showHeaderFilterMenu(t.index,!0)}))),a}}),E={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=this,t=[e.callBase()],n=e._columnsController.getVisibleColumns(null,!0),i=e.getController("headerFilter").getCurrentColumn();return(0,c.each)(n,(function(e,n){var o;if((!i||i.index!==n.index)&&(0,s.allowHeaderFiltering)(n)&&n.calculateFilterExpression&&Array.isArray(n.filterValues)&&n.filterValues.length){var a=[];(0,c.each)(n.filterValues,(function(e,t){Array.isArray(t)?o=t:(n.deserializeValue&&!r.default.isDateType(n.dataType)&&"number"!==n.dataType&&(t=n.deserializeValue(t)),o=n.createFilterExpression(t,"=","headerFilter")),o&&(o.columnIndex=n.index),a.push(o)})),a=r.default.combineFilters(a,"or"),t.push("exclude"===n.filterType?["!",a]:a)}})),r.default.combineFilters(t)}},A={defaultOptions:function(){return{headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:l.default.format("dxDataGrid-headerFilterEmptyValue"),ok:l.default.format("dxDataGrid-headerFilterOK"),cancel:l.default.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:D},views:{headerFilterView:s.HeaderFilterView},extenders:{controllers:{data:E},views:{columnHeadersView:I,headerPanel:T}}};t.headerFilterModule=A},85589:function(e,t,n){t.headerFilterMixin=t.allowHeaderFiltering=t.HeaderFilterView=void 0,t.updateHeaderFilterItemSelectionState=function(e,t,n){if(t^n){if(e.selected=!0,n&&e.items)for(var i=0;i<e.items.length;i++)if(!e.items[i].selected){e.selected=void 0;break}}else(n||e.selected)&&(e.selected=!1,function e(t){t=t||[];for(var n=0;n<t.length;n++)t[n].selected=!1,e(t[n].items)}(e.items))};var i=h(n(68374)),o=h(n(12310)),a=h(n(13615)),r=n(35922),s=n(95479),l=n(13306),u=h(n(39114)),d=h(n(30254)),c=h(n(56757));function h(e){return e&&e.__esModule?e:{default:e}}n(68724),n(20551);function f(e,t){if(!e.component.option("searchValue")){var n=(0,i.default)(e.element).find(".dx-list-select-all-checkbox").data("dxCheckBox");n&&t&&t.length&&n.option("value",void 0)}}function p(e,t){var n=t.headerFilter;return n&&(0,r.isDefined)(n.allowSearch)?n.allowSearch:e.option("headerFilter.allowSearch")}var g=o.default.View.inherit({getPopupContainer:function(){return this._popupContainer},getListContainer:function(){return this._listContainer},applyHeaderFilter:function(e){var t=this.getListContainer(),n=t.option("searchValue"),i=[];n||e.isFilterBuilder||!t.$element().find(".dx-checkbox").eq(0).hasClass("dx-checkbox-checked")?"tree"===e.type&&(e.filterType&&(e.filterType="include"),function e(i,o,a){(0,s.each)(o,(function(o,r){if(void 0!==r.selected&&!!r.selected^a){var s=t._getNode(r),l=t._hasChildren(s)&&r.items&&r.items.some((function(e){return e.selected}));if(!n||!l)return void i.push(r.value)}r.items&&r.items.length&&e(i,r.items,a)}))}(i,t.option("items"),!1),e.filterValues=i):("tree"===e.type&&(e.filterType="exclude"),Array.isArray(e.filterValues)&&(e.filterValues=[])),e.filterValues&&!e.filterValues.length&&(e.filterValues=null),e.apply(),this.hideHeaderFilterMenu()},showHeaderFilterMenu:function(e,t){var n=this;if(t){n._initializePopupContainer(t);var i=n.getPopupContainer();n.hideHeaderFilterMenu(),n.updatePopup(e,t),i.show()}},hideHeaderFilterMenu:function(){var e=this.getPopupContainer();e&&e.hide()},updatePopup:function(e,t){var n=this,i=this.option("showColumnLines"),o="right"===t.alignment^!i?"left":"right";n._popupContainer&&(n._cleanPopupContent(),n._popupContainer.option("position",{my:o+" top",at:o+" bottom",of:e,collision:"flip fit"}))},_getSearchExpr:function(e){var t=e.lookup,n=e.useDefaultSearchExpr,i=e.headerFilter&&e.headerFilter.dataSource;if(n||(0,r.isDefined)(i)&&!(0,r.isFunction)(i))return"text";if(t)return t.displayExpr||"this";if(e.dataSource){var o=e.dataSource.group;if(Array.isArray(o)&&o.length>0)return o[0].selector;if((0,r.isFunction)(o)&&!e.remoteFiltering)return o}return e.dataField||e.selector},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.$content().empty()},_initializePopupContainer:function(e){var t=this,n=t.element(),i=t.option("headerFilter"),o={width:e.headerFilter&&e.headerFilter.width||i&&i.width,height:e.headerFilter&&e.headerFilter.height||i&&i.height,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,hideOnParentScroll:!1,dragEnabled:!1,closeOnOutsideClick:!0,focusStateEnabled:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.ok,onClick:function(){t.applyHeaderFilter(e)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.cancel,onClick:function(){t.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(n){n.component.$content().parent().addClass("dx-dropdowneditor-overlay"),t._initializeListContainer(e),e.onShowing&&e.onShowing(n)},onShown:function(){t.getListContainer().focus()},onHidden:e.onHidden,onInitialized:function(e){var t=e.component;t.option("animation",t._getDefaultOptions().animation)}};(0,r.isDefined)(t._popupContainer)?t._popupContainer.option(o):t._popupContainer=t._createComponent(n,u.default,o)},_initializeListContainer:function(e){var t=this,n=t._popupContainer.$content(),o={searchEnabled:p(t,e),searchTimeout:t.option("headerFilter.searchTimeout"),searchMode:e.headerFilter&&e.headerFilter.searchMode||"",dataSource:e.dataSource,onContentReady:function(){t.renderCompleted.fire()},itemTemplate:function(t,n,o){var a=(0,i.default)(o);return e.encodeHtml?a.text(t.text):a.html(t.text)}};function r(n){"searchValue"!==n.fullName||e.isFilterBuilder||!1===t.option("headerFilter.hideSelectAllOnSearch")||("tree"===e.type?n.component.option("showCheckBoxesMode",n.value?"normal":"selectAll"):n.component.option("selectionMode",n.value?"multiple":"all"))}"tree"===e.type?t._listContainer=t._createComponent((0,i.default)("<div>").appendTo(n),d.default,(0,l.extend)(o,{showCheckBoxesMode:e.isFilterBuilder?"normal":"selectAll",onOptionChanged:r,keyExpr:"id"})):t._listContainer=t._createComponent((0,i.default)("<div>").appendTo(n),c.default,(0,l.extend)(o,{searchExpr:t._getSearchExpr(e),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:e.isFilterBuilder?"multiple":"all",onOptionChanged:r,onSelectionChanged:function(t){var n=t.component.option("items"),i=t.component.option("selectedItems");if(!t.component._selectedItemsUpdating&&!t.component.option("searchValue")&&!e.isFilterBuilder){var o=e.filterValues||[],r="exclude"===e.filterType;0===i.length&&n.length&&(o.length<=1||r&&o.length===n.length-1)?(e.filterType="include",e.filterValues=[]):i.length===n.length&&(e.filterType="exclude",e.filterValues=[])}(0,s.each)(n,(function(t,n){var o=a.default.getIndexByKey(n,i,null)>=0;if(!!n.selected!==o){n.selected=o,e.filterValues=e.filterValues||[];var r=a.default.getIndexByKey(n.value,e.filterValues,null);r>=0&&e.filterValues.splice(r,1),o^"exclude"===e.filterType&&e.filterValues.push(n.value)}})),f(t,e.filterValues)},onContentReady:function(t){var n=t.component,i=n.option("items"),o=[];(0,s.each)(i,(function(){this.selected&&o.push(this)})),n._selectedItemsUpdating=!0,n.option("selectedItems",o),n._selectedItemsUpdating=!1,f(t,e.filterValues)}}))},_renderCore:function(){this.element().addClass("dx-header-filter-menu")}});t.HeaderFilterView=g;var m=function(e){return(0,r.isDefined)(e.allowHeaderFiltering)?e.allowHeaderFiltering:e.allowFiltering};t.allowHeaderFiltering=m;var _={_applyColumnState:function(e){var t,n=e.rootElement,i=e.column;return"headerFilter"===e.name?(n.find(".dx-header-filter").remove(),m(i)&&(t=this.callBase(e).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(i)),this.option("useLegacyKeyboardNavigation")||t.attr("tabindex",this.option("tabindex")||0)),t):this.callBase(e)},_isHeaderFilterEmpty:function(e){return!e.filterValues||!e.filterValues.length},_getIndicatorClassName:function(e){return"headerFilter"===e?"dx-header-filter":this.callBase(e)},_renderIndicator:function(e){var t=e.container,n=e.indicator;if("headerFilter"===e.name){var i=this.option("rtlEnabled");if(t.children().length&&(!i&&"right"===e.columnAlignment||i&&"left"===e.columnAlignment))return void t.prepend(n)}this.callBase(e)},optionChanged:function(e){if("headerFilter"===e.name){var t="columnHeadersView"===this.name;this._invalidate(t,t),e.handled=!0}else this.callBase(e)}};t.headerFilterMixin=_},28935:function(e,t,n){t.headerPanelModule=void 0;var i=c(n(68374)),o=c(n(71042)),a=n(10980),r=n(20576),s=n(35922),l=c(n(28109));n(79561);var u=n(13306),d=n(47617);function c(e){return e&&e.__esModule?e:{default:e}}var h="toolbar-button",f={defaultOptions:function(){return{}},views:{headerPanel:a.ColumnsView.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return(0,i.default)("<div>").addClass(this.addWidgetPrefix(h))},_getToolbarButtonClass:function(e){var t=e?" "+e:"";return this.addWidgetPrefix(h)+t},_getToolbarOptions:function(){var e=this.option("toolbar"),t={toolbarOptions:{items:this._getToolbarItems(),visible:null==e?void 0:e.visible,disabled:null==e?void 0:e.disabled,onItemRendered:function(e){var t=e.itemData.onItemRendered;t&&t(e)}}},n=null==e?void 0:e.items;if(t.toolbarOptions.items=this._normalizeToolbarItems(t.toolbarOptions.items,n),this.executeAction("onToolbarPreparing",t),t.toolbarOptions&&!(0,s.isDefined)(t.toolbarOptions.visible)){var i=t.toolbarOptions.items;t.toolbarOptions.visible=!(null==i||!i.length)}return t.toolbarOptions},_normalizeToolbarItems:function(e,t){var n={location:"after"},i=Array.isArray(t);if(!(0,s.isDefined)(t))return e;i||(t=[t]);var o={};e.forEach((function(e){o[e.name]=e}));var a=t.map((function(e){var t=!1;return(0,s.isString)(e)&&(e={name:e},t=!0),(0,s.isDefined)(e.name)&&((0,s.isDefined)(o[e.name])?e=(0,u.extend)(!0,{},o[e.name],e):t&&(e.visible=!1)),(0,u.extend)(!0,{},n,e)}));return i?a:a[0]},_renderCore:function(){if(this._toolbar)this._toolbar.option(this._toolbarOptions);else{var e=this.element();e.addClass(this.addWidgetPrefix("header-panel"));var t=l.default.format(this.component.NAME+"-ariaToolbar"),n=(0,i.default)("<div>").attr("aria-label",t).appendTo(e);this._toolbar=this._createComponent(n,o.default,this._toolbarOptions)}},_columnOptionChanged:r.noop,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(e,t){var n=this._toolbar;if(n){var i=n.option("items")||[],o=i.indexOf(i.filter((function(t){return t.name===e}))[0]);if(o>=0){var a="items["+o+"]";n.option(a+".options")?n.option(a+".options.disabled",t):n.option(a+".disabled",t)}}},updateToolbarDimensions:function(){var e;null===(e=this._toolbar)||void 0===e||e.updateDimensions()},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){if("onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),"toolbar"===e.name&&(e.handled=!0,this._toolbar)){var t=(0,d.getPathParts)(e.fullName),n=e.fullName.replace(/^toolbar\./,"");if(1===t.length){var i=this._getToolbarOptions();this._toolbar.option(i)}else if("items"===t[1])if(2===t.length){var o=this._getToolbarOptions();this._toolbar.option("items",o.items)}else if(3===t.length){var a=this._normalizeToolbarItems(this._getToolbarItems(),e.value);this._toolbar.option(n,a)}else t.length>=4&&this._toolbar.option(n,e.value);else this._toolbar.option(n,e.value)}this.callBase(e)},isVisible:function(){return this._toolbarOptions&&this._toolbarOptions.visible},allowDragging:r.noop})},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}};t.headerPanelModule=f},71402:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.keyboardNavigationModule=void 0;var o=n(58664),a=b(n(68374)),r=b(n(73349)),s=b(n(55994)),l=b(n(12310)),u=b(n(13615)),d=n(35922),c=n(89386),h=n(31421),f=n(39611),p=b(n(93786)),g=n(95429),m=n(20576),_=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(56756)),v=b(n(47810)),y=n(72918),x=b(n(20530));function b(e){return e&&e.__esModule?e:{default:e}}var w="rowsview",C="edit-form",S="dx-row",k="dx-freespace-row",D="dx-editor-cell",I="dx-command-expand",T="dx-command-select",E="[class^=dx-command]",A="dx-cell-focus-disabled",O="dx-state-focused",P="delete",M="input:not([type='hidden']), textarea, a, select, button, [tabindex], .dx-checkbox",R="".concat(M,", .dx-dropdowneditor-icon"),B="form",V="batch",F="cell",L="cell",H="columnHeadersView";function N(e){return e&&e.hasClass("dx-group-row")}function z(e){return e&&e.hasClass("dx-master-detail-row")}function W(e){return e&&!N(e)&&!z(e)}function G(e){return e.length&&"TD"===e[0].tagName}function j(e,t){return!e._isRowEditMode()&&t&&!t.hasClass(T)&&t.hasClass(D)}function q(e){return(0,d.isDefined)(e)&&e.length>0}function $(){return"desktop"!==x.default.current().deviceType}function K(e){return!!e.parent(".".concat("dx-header-row")).length}var U={defaultOptions:function(){return{useLegacyKeyboardNavigation:!1,keyboardNavigation:{enabled:!0,enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:l.default.ViewController.inherit({init:function(){var e=this;this._dataController=this.getController("data"),this._selectionController=this.getController("selection"),this._editingController=this.getController("editing"),this._headerPanel=this.getView("headerPanel"),this._columnsController=this.getController("columns"),this._editorFactory=this.getController("editorFactory"),this.isKeyboardEnabled()&&(_.subscribeVisibilityChange(),this._updateFocusTimeout=null,this._fastEditingStarted=!1,this._focusedCellPosition={},this._canceledCellPosition=null,this._editorFactory.focused.add((function(t){e.setupFocusedView(),e._isNeedScroll&&t.is(":visible")&&e._focusedView&&e._focusedView.getScrollable&&(e._focusedView._scrollToElement(t),e._isNeedScroll=!1)})),this._initViewHandlers(),this._initDocumentHandlers(),this.createAction("onKeyDown"))},_initViewHandlers:function(){var e=this,t=this.getView("rowsView"),n=function(n){var i=(0,a.default)(n.target),o=(0,a.default)(n.relatedTarget).closest(t.element()).length;if(i.hasClass("dx-link")&&!o&&e._isEventInCurrentGrid(n)){var r=e._getFocusedCell();r=q(r)?r:t.getCellElements(0).filter("[tabindex]").eq(0),i.closest(r).length||(n.preventDefault(),s.default.trigger(r,"focus"))}};t.renderCompleted.add((function(i){var o=t.element(),r=!i||"refresh"===i.changeType,l=e._focusedView&&e._focusedView.name===t.name,u=i&&("append"===i.changeType||"prepend"===i.changeType),d=(0,a.default)(":focus"),c=!d.length||d.closest(o).length;s.default.off(o,"focusin",n),s.default.on(o,"focusin",n),e._initPointerEventHandler(),e._initKeyDownHandler(),e._setRowsViewAttributes(),l&&c&&(e._isNeedFocus?!u:e._isHiddenFocus&&r)&&e._updateFocus(!0)}))},_initDocumentHandlers:function(){var e=this,t=r.default.getDocument();this._documentClickHandler=this.createAction((function(t){var n=(0,a.default)(t.event.target),i=e._isEventInCurrentGrid(t.event)&&n.closest(".".concat(e.addWidgetPrefix(w))).length,o=n.closest(".".concat("dx-dropdowneditor-overlay")).length,r=e.getController("columnsResizer"),s=!!r&&r.isResizing();i||o||s||(!(e._focusedView&&n.parents().filter(e._focusedView.element()).length>0)&&e._resetFocusedCell(!0),e._resetFocusedView())})),s.default.on(t,(0,f.addNamespace)(p.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},_setRowsViewAttributes:function(){var e=this._getRowsViewElement();!this._dataController.getVisibleRows().length&&this._applyTabIndexToElement(e)},_initPointerEventHandler:function(){var e=$()?g.name:p.default.down,t=".".concat(S," > td, .").concat(S),n=this._getRowsViewElement();(0,d.isDefined)(this._pointerEventAction)||(this._pointerEventAction=this.createAction(this._pointerEventHandler)),s.default.off(n,(0,f.addNamespace)(e,"dxDataGridKeyboardNavigation"),this._pointerEventAction),s.default.on(n,(0,f.addNamespace)(e,"dxDataGridKeyboardNavigation"),t,this._pointerEventAction)},_initKeyDownHandler:function(){var e=this,t=this._getRowsViewElement();y.keyboard.off(this._keyDownListener),this._keyDownListener=y.keyboard.on(t,null,(function(t){return e._keyDownHandler(t)}))},dispose:function(){this.callBase(),this._resetFocusedView(),y.keyboard.off(this._keyDownListener),s.default.off(r.default.getDocument(),(0,f.addNamespace)(p.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),clearTimeout(this._updateFocusTimeout),_.unsubscribeVisibilityChange()},optionChanged:function(e){switch(e.name){case"keyboardNavigation":case"useLegacyKeyboardNavigation":e.handled=!0;break;default:this.callBase(e)}},isRowFocusType:function(){return"row"===this.focusType},isCellFocusType:function(){return this.focusType===L},setRowFocusType:function(){this.option("focusedRowEnabled")&&(this.focusType="row")},setCellFocusType:function(){this.focusType=L},_keyDownHandler:function(e){var t=this._editingController.isEditing(),n=!0,i=e.originalEvent,o=this._processOnKeyDown(e);if(!i.isDefaultPrevented()&&(this._isNeedFocus=!0,this._isNeedScroll=!0,this._updateFocusedCellPositionByTarget(i.target),!o)){switch(e.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(e,t);break;case"upArrow":case"downArrow":e.ctrl?_.selectView("rowsView",this,i):this._upDownKeysHandler(e,t);break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(e);break;case"space":this._spaceKeyHandler(e,t);break;case"A":(0,f.isCommandKeyPressed)(e.originalEvent)?this._ctrlAKeyHandler(e,t):this._beginFastEditing(e.originalEvent);break;case"tab":this._tabKeyHandler(e,t);break;case"enter":this._enterKeyHandler(e,t);break;case"escape":this._escapeKeyHandler(e,t);break;case"F":(0,f.isCommandKeyPressed)(e.originalEvent)?this._ctrlFKeyHandler(e):this._beginFastEditing(e.originalEvent);break;case"F2":this._f2KeyHandler();break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&this._beginFastEditing(i,!0);break;default:this._beginFastEditing(i)||(this._isNeedFocus=!1,this._isNeedScroll=!1,n=!1)}n&&i.stopPropagation()}},_processOnKeyDown:function(e){var t=e.originalEvent,n={handled:!1,event:t};return this.executeAction("onKeyDown",n),e.ctrl=t.ctrlKey,e.alt=t.altKey,e.shift=t.shiftKey,!!n.handled},_closeEditCell:function(){var e=this;setTimeout((function(){e._editingController.closeEditCell()}))},_leftRightKeysHandler:function(e,t){var n=this.getVisibleRowIndex(),i=e.originalEvent,o=this._focusedView&&this._focusedView.getRow(n),a=this._getDirectionCodeByKey(e.keyName),r=this._isFastEditingStarted();if((!t||r)&&W(o)){this.setCellFocusType(),r&&this._closeEditCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(a);var s=this._getNextCell(a);q(s)&&this._arrowKeysHandlerFocusCell(i,s,a),i&&i.preventDefault()}},_upDownKeysHandler:function(e,t){var n=this._focusedCellPosition.rowIndex,i=this.getVisibleRowIndex(),a=this._focusedView&&this._focusedView.getRow(i),r=e.originalEvent,s="upArrow"===e.keyName,l=this._dataController.dataSource(),u=this._isFastEditingStarted();if((!t||u)&&a&&!z(a)){if(u&&this._closeEditCell(),!this._navigateNextCell(r,e.keyName)&&this._isVirtualRowRender()&&s&&l&&!l.isLoading()){var d=(0,o.getOuterHeight)(a);n=this._focusedCellPosition.rowIndex-1,this._scrollBy(0,-d,n,r)}r&&r.preventDefault()}},_pageUpDownKeyHandler:function(e){var t=this._dataController.pageIndex(),n=this._dataController.pageCount(),i=this.option("paging.enabled"),a="pageUp"===e.keyName,r=a?-1:1,s=this.getView("rowsView").getScrollable();i&&!this._isVirtualScrolling()?(a?t>0:t<n-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex(t+r),e.originalEvent.preventDefault()):s&&(0,o.getHeight)(s.container())<(0,o.getHeight)(s.$content())&&(this._scrollBy(0,(0,o.getHeight)(s.container())*r),e.originalEvent.preventDefault())},_spaceKeyHandler:function(e,t){var n=this.getVisibleRowIndex(),i=(0,a.default)(e.originalEvent&&e.originalEvent.target);if(this.option("selection")&&"none"!==this.option("selection").mode&&!t){var o="row"===this._getElementType(i)&&this.isRowFocusType()&&W(i);i.hasClass(T)&&"onClick"===this.option("selection.showCheckBoxesMode")&&this._selectionController.startSelectionWithCheckboxes(),(o||i.parent().hasClass("dx-data-row")||i.hasClass(this.addWidgetPrefix(w)))&&(this._selectionController.changeItemSelection(n,{shift:e.shift,control:e.ctrl}),e.originalEvent.preventDefault())}else this._beginFastEditing(e.originalEvent)},_ctrlAKeyHandler:function(e,t){t||e.alt||"multiple"!==this.option("selection.mode")||!this.option("selection.allowSelectAll")||(this._selectionController.selectAll(),e.originalEvent.preventDefault())},_tabKeyHandler:function(e,t){var n=this.option("editing"),i=e.shift?"previous":"next",o=!((0,d.isDefined)(this._focusedCellPosition)&&!(0,d.isEmptyObject)(this._focusedCellPosition))||!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),r=e.originalEvent.target,s=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(r,i)){if((0,a.default)(s).addClass(O),n&&r&&!o)if((0,a.default)(r).hasClass(this.addWidgetPrefix(w))&&this._resetFocusedCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(i),t){if(!this._editingCellTabHandler(e,i))return}else this._targetCellTabHandler(e,i)&&(o=!0);o?(this._editorFactory.loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(!0),this._resetFocusedView(),this._closeEditCell())):e.originalEvent.preventDefault()}},_getMaxHorizontalOffset:function(){var e=this.component.getScrollable(),t=this.getView("rowsView");return e?e.scrollWidth()-(0,o.getWidth)(t.element()):0},_isColumnRendered:function(e){var t=this._columnsController.getVisibleColumns(null,!0),n=this._columnsController.getVisibleColumns(),i=t[e],o=!1;return i&&(o=n.indexOf(i)>=0),o},_isFixedColumn:function(e){var t=this._columnsController.getVisibleColumns(null,!0)[e];return!!t&&!!t.fixed},_isColumnVirtual:function(e){var t=e-this._columnsController.getColumnIndexOffset(),n=this._columnsController.getVisibleColumns()[t];return!!n&&"virtual"===n.command},_processVirtualHorizontalPosition:function(e){var t,n=this.component.getScrollable(),i=this.getColumnIndex(),o=0,a=!1;switch(e){case"next":case"nextInRow":var r=this._getVisibleColumnCount();t=i+1,o=this.option("rtlEnabled")?this._getMaxHorizontalOffset():0,a="next"===e?r===t||this._isFixedColumn(i)&&!this._isColumnRendered(t):r>t&&this._isFixedColumn(i)&&!this._isColumnRendered(t);break;case"previous":case"previousInRow":if(t=i-1,o=this.option("rtlEnabled")?0:this._getMaxHorizontalOffset(),"previous"===e){var s=this._columnsController.getColumnIndexOffset();a=t<0&&0===s||this._isFixedColumn(i)&&!this._isColumnRendered(t)}else a=t>=0&&this._isFixedColumn(i)&&!this._isColumnRendered(t)}a?n.scrollTo({left:o}):(0,d.isDefined)(t)&&(0,d.isDefined)(e)&&this._isColumnVirtual(t)&&0!==(o=this._getHorizontalScrollPositionOffset(e))&&n.scrollBy({left:o,top:0})},_getHorizontalScrollPositionOffset:function(e){var t=0,n=this._getCell(this._focusedCellPosition),i=n&&(0,o.getOuterWidth)(n);if(i>0){var a=this.option("rtlEnabled")?-1:1;t="nextInRow"===e||"next"===e?i*a:i*a*-1}return t},_editingCellTabHandler:function(e,t){var n,i=e.originalEvent.target,o=this._getCellElementFromTarget(i),a=e.originalEvent,r=this._getElementType(i);if(o.is(E))return!this._targetCellTabHandler(e,t);this._updateFocusedCellPosition(o);var s=this._getNextCellByTabKey(a,t,r);if(!(o=s.$cell)||this._handleTabKeyOnMasterDetailCell(o,t))return!1;var l=this._columnsController,u=this.getView("rowsView").getCellIndex(o)+l.getColumnIndexOffset(),d=l.getVisibleColumns(null,!0)[u],c=o.parent(),h=this._getRowIndex(c),f=this._dataController.items()[h],p=this._editingController;if(d&&d.allowEditing){var g=!f||"data"===f.rowType;n=p.allowUpdating({row:f})?g:f&&f.isNewRow}return n||this._closeEditCell(),this._focusCell(o,!s.isHighlighted)&&(!this._isRowEditMode()&&n?this._editFocusedCell():this._focusInteractiveElement(o,e.shift)),!0},_targetCellTabHandler:function(e,t){var n,i=e.originalEvent,o=i.target,r=this._getCellElementFromTarget(o),s=this._getInteractiveElement(r,!e.shift),l=!1;if(!j(this,r)&&s.length&&o!==s.get(0))l=!0;else{void 0===this._focusedCellPosition.rowIndex&&(0,a.default)(o).hasClass(S)&&this._updateFocusedCellPosition(r),n=this._getElementType(o),this.isRowFocusType()&&(this.setCellFocusType(),"row"===n&&W((0,a.default)(o))&&(o=this.getFirstValidCellInRow((0,a.default)(o)),n=this._getElementType(o)));var u=this._getNextCellByTabKey(i,t,n);if(!(r=u.$cell))return!1;if(!(r=this._checkNewLineTransition(i,r)))return!1;this._focusCell(r,!u.isHighlighted),j(this,r)||this._focusInteractiveElement(r,e.shift)}return l},_getNextCellByTabKey:function(e,t,n){var i=this._getNextCell(t,n),o=i&&this._fireFocusedCellChanging(e,i,!0);return!o||o.cancel?{}:(o.$newCellElement&&(i=o.$newCellElement),{$cell:i,isHighlighted:o.isHighlighted})},_checkNewLineTransition:function(e,t){var n=this.getVisibleRowIndex(),i=t.parent();if(n!==this._getRowIndex(i)){var o=this._getCellPosition(t),a=this._fireFocusedRowChanging(e,i);if(a.cancel)return;a.rowIndexChanged&&(this.setFocusedColumnIndex(o.columnIndex),t=this._getFocusedCell())}return t},_enterKeyHandler:function(e,t){var n=this._getFocusedCell(),i=this.getVisibleRowIndex(),o=this._focusedView&&this._focusedView.getRow(i);if(this.option("grouping.allowCollapsing")&&N(o)||this.option("masterDetail.enabled")&&n&&n.hasClass(I)){var a=this._dataController.getKeyByRowIndex(i),r=this._dataController.items()[i];void 0!==a&&r&&r.data&&!r.data.isContinuation&&this._dataController.changeRowExpand(a)}else this._processEnterKeyForDataCell(e,t)},_processEnterKeyForDataCell:function(e,t){var n=this._getEnterKeyDirection(e),i=this._allowEditingOnEnterKey();t||!i&&n?(this._handleEnterKeyEditingCell(e.originalEvent),"next"===n||"previous"===n?this._targetCellTabHandler(e,n):"upArrow"!==n&&"downArrow"!==n||this._navigateNextCell(e.originalEvent,n)):i&&this._startEditing(e)},_getEnterKeyDirection:function(e){var t=this.option("keyboardNavigation.enterKeyDirection"),n=e.shift;return"column"===t?n?"upArrow":"downArrow":"row"===t?n?"previous":"next":void 0},_handleEnterKeyEditingCell:function(e){var t=e.target,n=this._getCellElementFromTarget(t),i=this._isRowEditMode();this._updateFocusedCellPosition(n),i?(this._focusEditFormCell(n),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(s.default.trigger((0,a.default)(t),"change"),this._closeEditCell(),e.preventDefault())},_escapeKeyHandler:function(e,t){var n=this._getCellElementFromTarget(e.originalEvent.target);t&&(this._updateFocusedCellPosition(n),this._isRowEditMode()?(this._focusEditFormCell(n),this._editingController.cancelEditData(),0===this._dataController.items().length&&(this._resetFocusedCell(),this._editorFactory.loseFocus())):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._closeEditCell(),e.originalEvent.preventDefault())},_ctrlFKeyHandler:function(e){if(this.option("searchPanel.visible")){var t=this._headerPanel.getSearchTextEditor();t&&(t.focus(),e.originalEvent.preventDefault())}},_f2KeyHandler:function(){var e=this._editingController.isEditing(),t=this.getVisibleRowIndex(),n=this._focusedView&&this._focusedView.getRow(t);!e&&W(n)&&this._startEditing()},_navigateNextCell:function(e,t){var n=this._getNextCell(t),i=this._getDirectionCodeByKey(t);return!(!n||!this._isCellValid(n))&&this._arrowKeysHandlerFocusCell(e,n,i)},_arrowKeysHandlerFocusCell:function(e,t,n){var i="prevRow"===n||"nextRow"===n,o=this._fireFocusChangingEvents(e,t,i,!0);return t=o.$newCellElement,!(o.cancel||!this._isCellValid(t)||(this._focus(t,!o.isHighlighted),0))},_beginFastEditing:function(e,t){if(!this._isFastEditingAllowed()||e.altKey||e.ctrlKey||this._editingController.isEditing())return!1;if(t)this._startEditing(e,P);else{var n=e.key,i=e.keyCode||e.which,o=n||i&&String.fromCharCode(i);!o||1!==o.length&&o!==P||this._startEditing(e,o)}return!0},_pointerEventHandler:function(e){var t=e.event||e,n=(0,a.default)(t.currentTarget),i=this.getView("rowsView"),o=i&&i.element(),r=n.parent(),s=(0,a.default)(t.target).is(M),l=!!(0,a.default)(t.target).closest(".".concat("dx-revert-button")).length,u=n.hasClass(I);this._isEventInCurrentGrid(t)&&(l||!this._isCellValid(n,!s)&&!u?n.is("td")&&this._resetFocusedCell():(n=this._isInsideEditForm(n)?(0,a.default)(t.target):n,this._focusView(),(0,a.default)(o).removeClass(O),r.hasClass(k)?(this._updateFocusedCellPosition(n),this._applyTabIndexToElement(this._focusedView.element()),this._focusedView.focus()):this._isMasterDetailCell(n)?this._updateFocusedCellPosition(n):this._clickTargetCellHandler(t,n)))},_clickTargetCellHandler:function(e,t){var n=this.getView("rowsView").getCellIndex(t),i=this._columnsController.getVisibleColumns()[n],o=this._isCellEditMode();this.setCellFocusType();var r=this._fireFocusChangingEvents(e,t,!0);if(t=r.$newCellElement,r.cancel)this.setRowFocusType(),this.setFocusedRowIndex(r.prevRowIndex),t=this._getFocusedCell(),this._editingController.isEditing()&&o&&this._closeEditCell();else{if(r.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(r.rowIndexChanged&&(t=this._getFocusedCell()),r.isHighlighted||o||this.setRowFocusType(),this._updateFocusedCellPosition(t),this._allowRowUpdating()&&o&&i&&i.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{var s=e&&(0,a.default)(e.target).closest(R+", td"),l=s&&s.not(t).is(R),u=!(i&&!i.command&&t.hasClass(D))&&(!r.isHighlighted||l);this._focus(t,u,l)}}},_allowRowUpdating:function(){var e=this.getVisibleRowIndex(),t=this._dataController.items()[e];return this._editingController.allowUpdating({row:t},"click")},focus:function(e){var t,n=this.option("focusedRowEnabled"),i=G((0,a.default)(e));e||(t=".dx-datagrid-rowsview .dx-row[tabindex]",n||(t+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),e=this.component.$element().find(t).first()),e&&this._focusElement((0,a.default)(e),i)},getFocusedView:function(){return this._focusedView},setupFocusedView:function(){this.isKeyboardEnabled()&&!(0,d.isDefined)(this._focusedView)&&this._focusView()},_focusElement:function(e,t){var n=(0,a.default)(this._getRowsViewElement()),i=e.closest(n),o=this.isRowFocusType(),r={};!i.length||G(e)&&!this._isCellValid(e)||(this._focusView(),this._isNeedFocus=!0,this._isNeedScroll=!0,(G(e)||N(e))&&(this.setCellFocusType(),e=(r=this._fireFocusChangingEvents(null,e,!1,t)).$newCellElement,o&&!r.isHighlighted&&this.setRowFocusType()),r.cancel||(this._focus(e,!r.isHighlighted),this._focusInteractiveElement(e)))},_getFocusedViewByElement:function(e){var t=this.getFocusedView(),n=t&&(0,a.default)(t.element());return e&&0!==e.closest(n).length},_focusView:function(){this._focusedView=this.getView("rowsView")},_resetFocusedView:function(){this.setRowFocusType(),this._focusedView=null},_focusInteractiveElement:function(e,t){if(e){var n=this._getInteractiveElement(e,t);u.default.focusAndSelectElement(this,n)}},_focus:function(e,t,n){var i=e&&!e.hasClass(S)?e.closest(".".concat(S)):e;if(!i||!function(e){return!e||e.hasClass(k)||e.hasClass("dx-virtual-row")}(i)){var o,a=this._focusedView,r=a&&a.element();this._isHiddenFocus=t;var l=N(i)||this.isRowFocusType();l?(o=i,a&&this.setFocusedRowIndex(this._getRowIndex(i))):G(e)&&(o=e,this._updateFocusedCellPosition(e)),o&&(r&&r.find(".dx-row[tabindex], .dx-row > td[tabindex]").not(o).removeClass(A).removeAttr("tabindex"),s.default.one(o,"blur",(function(e){e.relatedTarget&&o.removeClass(A)})),n||(this._applyTabIndexToElement(o),s.default.trigger(o,"focus")),t?(o.addClass(A),l&&e.addClass(A)):this._editorFactory.focus(o))}},_updateFocus:function(e){var t=this;this._updateFocusTimeout=setTimeout((function(){var n=t._editingController,i=n.getEditMode()===F,o=n.getEditMode()===V;if(i&&n.hasChanges()||o&&n.isNewRowInEditMode())n._focusEditingCell();else{var a=t._getFocusedCell(),r=n.isEditing();if(a&&(!t._isMasterDetailCell(a)||t._isRowEditMode())){if(t._hasSkipRow(a.parent())){var l=t._focusedCellPosition&&t._focusedCellPosition.rowIndex>0?"upArrow":"downArrow";a=t._getNextCell(l)}if(q(a)){if(e&&!r&&t._checkCellOverlapped(a))return;if(a.is("td")||a.hasClass(t.addWidgetPrefix("edit-form-item"))){var d=a.is(E),c=a.find(":focus"),h=q(c);if(!e&&d||!t._editorFactory.focus())h||!t._isNeedFocus&&!t._isHiddenFocus||t._focus(a,t._isHiddenFocus);else{if(d&&h)return void u.default.focusAndSelectElement(t,c);!h&&t._focus(a)}r&&t._focusInteractiveElement.bind(t)(a)}else s.default.trigger(a,"focus")}}}}))},_checkCellOverlapped:function(e){var t=e.offset(),n=!1;return this.component.getScrollable&&this.component.getScrollable()&&(t.left<0?n=(0,o.getWidth)(e)+t.left<=0:t.top<0&&(n=(0,o.getHeight)(e)+t.top<=0)),n},_getFocusedCell:function(){return(0,a.default)(this._getCell(this._focusedCellPosition))},_updateFocusedCellPositionByTarget:function(e){var t;if("row"===this._getElementType(e)&&(0,d.isDefined)(null===(t=this._focusedCellPosition)||void 0===t?void 0:t.columnIndex)){var n=(0,a.default)(e);this._focusedView&&N(n)&&this.setFocusedRowIndex(this._getRowIndex(n))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(e))},_updateFocusedCellPosition:function(e,t){var n=this._getCellPosition(e,t);return n&&(!e.length||n.rowIndex>=0&&n.columnIndex>=0)&&this.setFocusedCellPosition(n.rowIndex,n.columnIndex),n},_getFocusedColumnIndexOffset:function(e){var t=0,n=this._columnsController.getVisibleColumns()[e];return n&&n.fixed?t=this._getFixedColumnIndexOffset(n):e>=0&&(t=this._columnsController.getColumnIndexOffset()),t},_getFixedColumnIndexOffset:function(e){return function(e,t){return e.option("rtlEnabled")?!("right"===t.fixedPosition||(0,d.isDefined)(t.command)&&!(0,d.isDefined)(t.fixedPosition)):!(!(0,d.isDefined)(t.fixedPosition)||"left"===t.fixedPosition)}(this,e)?this._getVisibleColumnCount()-this._columnsController.getVisibleColumns().length:0},_getCellPosition:function(e,t){var n,i=q(e)&&e.closest("tr"),o=this.getView("rowsView");if(q(i)){var a=this._getRowIndex(i);return n=o.getCellIndex(e,a),n+=this._getFocusedColumnIndexOffset(n),t&&(n="previous"===t?n-1:n+1,n=this._applyColumnIndexBoundaries(n)),{rowIndex:a,columnIndex:n}}},_focusCell:function(e,t){if(this._isCellValid(e))return this._focus(e,t),!0},_focusEditFormCell:function(e){e.hasClass("dx-master-detail-cell")&&this._editorFactory.focus(e,!0)},_resetFocusedCell:function(e){var t,n=this._getFocusedCell();q(n)&&n.removeAttr("tabindex"),this._isNeedFocus=!1,this._isNeedScroll=!1,this._focusedCellPosition={},clearTimeout(this._updateFocusTimeout),null===(t=this._focusedView)||void 0===t||t.renderFocusState(e)},restoreFocusableElement:function(e,t){var n,i,o=this,a=(0,d.isDefined)(e),r=o.getView("rowsView"),l=r.element(),u=o._focusedCellPosition.columnIndex,c=o._dataController.getRowIndexOffset();e=a?e:r.getTopVisibleItemIndex()+c,a?(i=r.getRow(e-c),!(n=o._fireFocusedRowChanging(t,i)).cancel&&n.rowIndexChanged&&(e=n.newRowIndex)):(o._editorFactory.loseFocus(),o._applyTabIndexToElement(l),s.default.trigger(l,"focus")),a&&n.cancel||o.setFocusedCellPosition(e,u),a&&o._updateFocus()},_getNewPositionByCode:function(e,t,n){var i=e.columnIndex,o=e.rowIndex;if(void 0===e.rowIndex&&"next"===n)return{columnIndex:0,rowIndex:0};switch(n){case"nextInRow":case"next":i<this._getVisibleColumnCount()-1&&"row"!==t&&this._hasValidCellAfterPosition({columnIndex:i,rowIndex:o})?i++:this._isLastRow(o)||"next"!==n||(i=0,o++);break;case"previousInRow":case"previous":i>0&&"row"!==t&&this._hasValidCellBeforePosition({columnIndex:i,rowIndex:o})?i--:o>0&&"previous"===n&&(o--,i=this._getVisibleColumnCount()-1);break;case"upArrow":o=o>0?o-1:o;break;case"downArrow":o=this._isLastRow(o)?o:o+1}return{columnIndex:i,rowIndex:o}},setFocusedCellPosition:function(e,t){this.setFocusedRowIndex(e),this.setFocusedColumnIndex(t)},setFocusedRowIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=e},setFocusedColumnIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=e},getRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex:-1},getColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:-1},getVisibleRowIndex:function(){var e=this._focusedCellPosition&&this._focusedCellPosition.rowIndex;return!(0,d.isDefined)(e)||e<0?-1:e-this._dataController.getRowIndexOffset()},getVisibleColumnIndex:function(){var e=this._focusedCellPosition&&this._focusedCellPosition.columnIndex;return(0,d.isDefined)(e)?e-this._columnsController.getColumnIndexOffset():-1},_applyColumnIndexBoundaries:function(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e},_isCellByPositionValid:function(e){var t=(0,a.default)(this._getCell(e));return this._isCellValid(t)},_isLastRow:function(e){var t=this._dataController;return this._isVirtualRowRender()?e>=t.getMaxRowIndex():e===t.items().length-1},_isFirstValidCell:function(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._hasValidCellBeforePosition(e)),t},_hasValidCellBeforePosition:function(e){for(var t=e.columnIndex,n=!1;t>0&&!n;){var i={columnIndex:--t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(i)}return n},_hasValidCellAfterPosition:function(e){for(var t=e.columnIndex,n=!1,i=this._getVisibleColumnCount();t<i-1&&!n;){var o={columnIndex:++t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(o)}return n},_isLastValidCell:function(e){var t=e.columnIndex>=0?e.columnIndex+1:0,n=e.rowIndex,i={columnIndex:t,rowIndex:n},o=this._dataController.getVisibleRows(),a=o&&o[n];return!!this._isLastRow(n)&&(!!(a&&"group"===a.rowType&&e.columnIndex>0)||e.columnIndex===this._getVisibleColumnCount()-1||!this._isCellByPositionValid(i)&&this._isLastValidCell(i))},_isCellValid:function(e,t){if(q(e)){var n=this.getView("rowsView"),i=e.parent(),o=this._columnsController,a=n.getCellIndex(e)+o.getColumnIndexOffset(),r=o.getVisibleColumns(null,!0)[a],s=this._getVisibleColumnCount(),l=this._editingController,u=z(i),c=r&&r.showWhenGrouped,h=r&&!e.hasClass(I)&&W(i);if(this._isMasterDetailCell(e))return!0;if(s>a&&(!u&&r&&(!(0,d.isDefined)(r.groupIndex)||c&&h)||parseInt(e.attr("colspan"))>1)){var f=this._dataController.items(),p=n.getRowIndex(i),g=f[p],m=l&&this._isCellEditMode()&&l.isEditing(),_=l&&l.isEditRow(p),v=_||m;return r.command?this._isLegacyNavigation()?!v&&"expand"===r.command:!m&&(_?"select"!==r.command:!v):(!m||!g||"data"===g.rowType)&&(!v||r.allowEditing||t)}}},getFirstValidCellInRow:function(e,t){for(var n,i,o=e.find("> td"),a=t=t||0;a<o.length;++a)if(n=o.eq(a),this._isCellValid(n)){i=n;break}return i},_getNextCell:function(e,t,n){var i,o,r=n||this._focusedCellPosition,s=this.isRowFocusType(),l=s||(0,c.inArray)(e,["next","previous"])>-1;if(this._focusedView&&r){var u=this._getNewPositionByCode(r,t,e);i=(0,a.default)(this._getCell(u));var d="previous"===e?this._isFirstValidCell(u):this._isLastValidCell(u);if(q(i)&&!this._isCellValid(i)&&this._isCellInRow(u,l)&&!d&&(i=s?this.getFirstValidCellInRow(i.parent(),u.columnIndex):this._getNextCell(e,"cell",u)),o=q(i)&&i.parent(),this._hasSkipRow(o)){var h=this._getRowIndex(o);if(this._isLastRow(h))return null;i=this._getNextCell(e,"row",{columnIndex:r.columnIndex,rowIndex:h})}return q(i)?i:null}return null},_startEditing:function(e,t){var n=this._focusedCellPosition,i=this.getVisibleRowIndex(),o=this.getVisibleColumnIndex(),a=this._dataController.items()[i],r=this._columnsController.getVisibleColumns()[o];this._isAllowEditing(a,r)&&(this._isRowEditMode()?this._editingController.editRow(i):n&&this._startEditCell(e,t))},_isAllowEditing:function(e,t){return this._editingController.allowUpdating({row:e})&&t&&t.allowEditing},_editFocusedCell:function(){var e=this.getVisibleRowIndex(),t=this.getVisibleColumnIndex();return this._editingController.editCell(e,t)},_startEditCell:function(e,t){var n=this;this._fastEditingStarted=(0,d.isDefined)(t);var i=this._editFocusedCell();if(this._isFastEditingStarted())if(!0===i)this._editingCellHandler(e,t);else if(i&&i.done){var o=t!==P?t:"";i.done((function(){return n._editingCellHandler(e,o)}))}},_editingCellHandler:function(e,t){var n,i,o=this._getFocusedCell().find(M).eq(0),a=(0,f.createEvent)(e,{type:"keydown",target:o.get(0)}),r=(0,f.createEvent)(e,{type:"keypress",target:o.get(0)}),l=(0,f.createEvent)(e,{type:"input",target:o.get(0)});if(null===(n=(i=o.get(0)).select)||void 0===n||n.call(i),s.default.trigger(o,a),!a.isDefaultPrevented()&&(s.default.trigger(o,r),!r.isDefaultPrevented())){var u=v.default.mozilla?25:0;setTimeout((function(){o.val(t);var e=o.closest(".".concat("dx-widget"));s.default.off(e,"focusout"),s.default.one(e,"focusout",(function(){s.default.trigger(o,"change")})),s.default.trigger(o,l)}),u)}},_fireFocusChangingEvents:function(e,t,n,i){var o={},r=this._getCellPosition(t)||{};return this.isCellFocusType()&&((o=this._fireFocusedCellChanging(e,t,i)).cancel||(r.columnIndex=o.newColumnIndex,r.rowIndex=o.newRowIndex,i=o.isHighlighted,t=(0,a.default)(this._getCell(r)))),!o.cancel&&n&&t&&((o=this._fireFocusedRowChanging(e,t.parent())).cancel||(r.rowIndex=o.newRowIndex,o.isHighlighted=i)),o.$newCellElement=(0,a.default)(this._getCell(r)),o.$newCellElement.length||(o.$newCellElement=t),o},_fireFocusedCellChanging:function(e,t,n){var i=this,o=i.option("focusedColumnIndex"),r=i.option("focusedRowIndex"),s=i._getCellPosition(t),l=s?s.columnIndex:-1,u=s?s.rowIndex:-1,d={cellElement:t,prevColumnIndex:o,prevRowIndex:r,newColumnIndex:l,newRowIndex:u,rows:i._dataController.getVisibleRows(),columns:i._columnsController.getVisibleColumns(),event:e,isHighlighted:n||!1,cancel:!1};return this._canceledCellPosition=null,i.executeAction("onFocusedCellChanging",d),d.newColumnIndex===l&&d.newRowIndex===u||(d.$newCellElement=(0,a.default)(this._getCell({columnIndex:d.newColumnIndex,rowIndex:d.newRowIndex}))),d.cancel&&(this._canceledCellPosition={rowIndex:u,columnIndex:l}),d},_fireFocusedCellChanged:function(e,t,n){var i=this,o=i._dataController,a=i.getView("rowsView").getCellIndex(e),r=this._getRowIndex(e&&e.parent()),s=Math.min(r-o.getRowIndexOffset(),o.items().length-1),l=i._editingController.isEditCell(s,a),u=o.items()[s];l||t===a&&n===r||i.executeAction("onFocusedCellChanged",{cellElement:e,columnIndex:a,rowIndex:r,row:u,column:i._columnsController.getVisibleColumns()[a]})},_fireFocusedRowChanging:function(e,t){var n=this._getRowIndex(t),i=this._dataController,o=this.option("focusedRowIndex"),a=i.loadingOperationTypes(),r={rowElement:t,prevRowIndex:o,newRowIndex:n,event:e,rows:i.getVisibleRows(),cancel:!1};return!i||i.isLoading()&&(a.reload||a.paging)?(r.cancel=!0,r):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",r),r.cancel||r.newRowIndex===n||(r.resetFocusedRow=r.newRowIndex<0,r.resetFocusedRow||this.setFocusedRowIndex(r.newRowIndex),r.rowIndexChanged=!0)),r)},_fireFocusedRowChanged:function(e){var t,n=this.option("focusedRowKey"),i=this.getController("focus"),o=null==i?void 0:i.getFocusedRowIndexByKey(n);if(this.option("focusedRowEnabled")){if(o>=0){var a=this._dataController;t=o>=0&&a.getVisibleRows()[o-a.getRowIndexOffset()]}this.executeAction("onFocusedRowChanged",{rowElement:e,rowIndex:o,row:t})}},_isEventInCurrentGrid:function(e){return u.default.isElementInCurrentGrid(this,(0,a.default)(e.target))},_isRowEditMode:function(){var e=this._editingController.getEditMode();return"row"===e||e===B},_isCellEditMode:function(){var e=this._editingController.getEditMode();return e===F||e===V},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_getInteractiveElement:function(e,t){var n=e.find(M).filter(":visible");return t?n.last():n.first()},_applyTabIndexToElement:function(e){var t=this.option("tabIndex")||0;e.attr("tabindex",(0,d.isDefined)(t)?t:0)},_getCell:function(e){if(this._focusedView&&e){var t=this._dataController.getRowIndexOffset(),n=this._columnsController.getVisibleColumns(null,!0)[e.columnIndex],i=n&&n.fixed?this._getFixedColumnIndexOffset(n):this._columnsController.getColumnIndexOffset(),o=e.rowIndex>=0?e.rowIndex-t:-1,a=e.columnIndex>=0?e.columnIndex-i:-1;return this._focusedView.getCell({rowIndex:o,columnIndex:a})}},_getRowIndex:function(e){var t=this.getView("rowsView").getRowIndex(e);return t>=0&&(t+=this._dataController.getRowIndexOffset()),t},_hasSkipRow:function(e){var t=e&&e.get(0);return t&&("none"===t.style.display||e.hasClass(this.addWidgetPrefix("group-footer"))||z(e)&&!e.hasClass(this.addWidgetPrefix(C)))},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDirectionCodeByKey:function(e){var t;switch(e){case"upArrow":t="prevRow";break;case"downArrow":t="nextRow";break;case"leftArrow":t=this.option("rtlEnabled")?"nextInRow":"previousInRow";break;case"rightArrow":t=this.option("rtlEnabled")?"previousInRow":"nextInRow"}return t},_isVirtualScrolling:function(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e},_isVirtualRowRender:function(){return this._isVirtualScrolling()||u.default.isVirtualRowRendering(this)},_isVirtualColumnRender:function(){return"virtual"===this.option("scrolling.columnRenderingMode")},_scrollBy:function(e,t,n,i){var o=this,a=this.getView("rowsView").getScrollable();return o._focusedCellPosition&&a.on("scroll",(function e(){a.off("scroll",e),setTimeout(o.restoreFocusableElement.bind(o,n,i))})),a.scrollBy({left:e,top:t})},_isInsideEditForm:function(e){return(0,a.default)(e).closest("."+this.addWidgetPrefix(C)).length>0},_isMasterDetailCell:function(e){var t=(0,a.default)(e).closest(".dx-master-detail-cell"),n=t.closest("."+this.getWidgetContainerClass()).parent();return t.length&&n.is(this.component.$element())},_processNextCellInMasterDetail:function(e){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)},_handleTabKeyOnMasterDetailCell:function(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition((0,a.default)(e),t);var n=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(n),!0}return!1},_getElementType:function(e){return(0,a.default)(e).is("tr")?"row":"cell"},_isFastEditingStarted:function(){return this._isFastEditingAllowed()&&this._fastEditingStarted},_getVisibleColumnCount:function(){return this._columnsController.getVisibleColumns(null,!0).length},_isCellInRow:function(e,t){var n=e.columnIndex,i=this._getVisibleColumnCount();return t?n>=0&&n<=i-1:n>0&&n<i-1},_getCellElementFromTarget:function(e){var t=this._getElementType(e),n=(0,a.default)(e);return"cell"===t?n.closest(".".concat(S," > td")):n.children().not(".dx-command-expand").first()},_getRowsViewElement:function(){var e=this.getView("rowsView");return e&&e.element()},isKeyboardEnabled:function(){return this.option("keyboardNavigation.enabled")},_processCanceledEditCellPosition:function(e,t){if(this._canceledCellPosition){var n=this._canceledCellPosition.rowIndex===e&&this._canceledCellPosition.columnIndex===t;return this._canceledCellPosition=null,n}}})},extenders:{views:{rowsView:{_rowClick:function(e){var t=this.getController("editing").getEditRowIndex(),n=this.getController("keyboardNavigation");t===e.rowIndex&&n.setCellFocusType();var i=$()&&this.option("focusedRowEnabled");i&&this._triggerPointerDownEventHandler(e),this.callBase.apply(this,arguments)},_triggerPointerDownEventHandler:function(e){var t=e.event.originalEvent;if(t){var n=this.getController("keyboardNavigation"),i=(0,a.default)(t.target),o=this.getCellIndex(i),r=this.getController("columns").getVisibleColumns()[o],s=this.getController("data").items()[e.rowIndex];if(n._isAllowEditing(s,r)){var l=(0,f.createEvent)(t,{currentTarget:t.target});n._pointerEventHandler(l)}}},renderFocusState:function(e){var t=this.getController("keyboardNavigation"),n=this.element();n&&!(0,h.focused)(n)&&n.attr("tabindex",null);var i=t.getVisibleRowIndex();(!(0,d.isDefined)(i)||i<0)&&(i=0);var o=this.getCellElements(i);t.isKeyboardEnabled()&&o.length&&this.updateFocusElementTabIndex(o,e)},updateFocusElementTabIndex:function(e){var t=this.getController("keyboardNavigation"),n=e.eq(0).parent();if(N(n))t._applyTabIndexToElement(n);else{var i=t.getColumnIndex();(!(0,d.isDefined)(i)||i<0)&&(i=0),this._updateFocusedCellTabIndex(e,i)}},_updateFocusedCellTabIndex:function(e,t){var n=this.getController("keyboardNavigation"),i=e?e.length:-1,o=function(e){var t=n._isMasterDetailCell(e),i=n._isCellValid(e);if(!t&&i&&G(e))return n._applyTabIndexToElement(e),n.setCellFocusType(),!0},r=e.filter("[aria-colindex='".concat(t+1,"']"));if(r.length)o(r);else{i<=t&&(t=i-1);for(var s=t;s<i&&!o((0,a.default)(e[s]));++s);}},renderDelayedTemplates:function(e){this.callBase.apply(this,arguments),this._renderFocusByChange(e)},_renderFocusByChange:function(e){if(!e||!e.repaintChangesOnly){var t=!!(i=(n=this).getController("keyboardNavigation"))._isVirtualScrolling()&&n.option("focusedRowIndex")===i.getRowIndex();this.renderFocusState(t)}var n,i},_renderCore:function(e){this.callBase.apply(this,arguments),this._renderFocusByChange(e)},_editCellPrepared:function(e){var t=this._getEditorInstance(e),n=this.getController("keyboardNavigation"),i=n&&n._isFastEditingStarted();t&&i&&this._handleEditingNavigationMode(t),this.callBase.apply(this,arguments)},_handleEditingNavigationMode:function(e){["downArrow","upArrow"].forEach((function(t){var n=e._supportedKeys()[t];e.registerKeyHandler(t,(function(t){if("true"===e._input().attr("aria-expanded"))return n&&n.call(e,t)}))})),e.registerKeyHandler("leftArrow",m.noop),e.registerKeyHandler("rightArrow",m.noop),"dxDateBox"===e.NAME&&e.option("useMaskBehavior")&&e.registerKeyHandler("enter",m.noop)},_getEditorInstance:function(e){var t=e.find(".dx-texteditor").eq(0);return u.default.getWidgetInstance(t)}}},controllers:{editing:{editCell:function(e,t){var n=this.getController("keyboardNavigation");if(n._processCanceledEditCellPosition(e,t))return!1;var i=this.callBase(e,t);return i&&n.setupFocusedView(),i},editRow:function(e){var t=this.getController("keyboardNavigation"),n=t.getVisibleColumnIndex(),i=this._columnsController.getVisibleColumns()[n];(i&&i.type||this.option("editing.mode")===B)&&t._resetFocusedCell(),this.callBase(e)},addRow:function(e){var t=this.getController("keyboardNavigation");return t.setupFocusedView(),t.setCellFocusType(),this.callBase.apply(this,arguments)},getFocusedCellInRow:function(e){var t=this.getController("keyboardNavigation"),n=this.callBase(e);if(t.isKeyboardEnabled()&&t._focusedCellPosition.rowIndex===e){var i=t._getFocusedCell();q(i)&&!i.hasClass("dx-command-edit")&&(n=i)}return n},_processCanceledEditingCell:function(){var e=this;this.closeEditCell().done((function(){e.getController("keyboardNavigation")._updateFocus()}))},init:function(){this.callBase(),this._keyboardNavigationController=this.getController("keyboardNavigation")},closeEditCell:function(){var e=this._keyboardNavigationController;e._fastEditingStarted=!1;var t=this.callBase.apply(this,arguments);return e._updateFocus(),t},_delayedInputFocus:function(){this._keyboardNavigationController._isNeedScroll=!0,this.callBase.apply(this,arguments)},_isEditingStart:function(){var e=this.getController("keyboardNavigation"),t=this.callBase.apply(this,arguments);if(t&&!e._isNeedFocus){var n=e._getFocusedCell();e._focus(n,!0)}return t}},data:{_correctRowIndices:function(e){var t=this,n=t.getController("keyboardNavigation"),i=t.getController("editorFactory"),o=n._focusedCellPosition;if(t.callBase.apply(t,arguments),o&&o.rowIndex>=0){var a=e(o.rowIndex);a&&(o.rowIndex+=a,i.refocus())}},getMaxRowIndex:function(){var e=this.items().length-1,t=this.virtualItemsCount();return t&&(e+=t.begin+t.end),e}},adaptiveColumns:{_showHiddenCellsInView:function(e){var t=e.viewName,n=e.$cells,i=e.isCommandColumn;this.callBase.apply(this,arguments),t===H&&!i&&n.each((function(e,t){var n=(0,a.default)(t);K(n)&&n.attr("tabindex",0)}))},_hideVisibleCellInView:function(e){var t=e.viewName,n=e.$cell,i=e.isCommandColumn;this.callBase.apply(this,arguments),t===H&&!i&&K(n)&&n.removeAttr("tabindex")}}}}};t.keyboardNavigationModule=U},40214:function(e,t,n){t.masterDetailModule=void 0;var i=n(58664),o=d(n(68374)),a=d(n(13615)),r=n(20576),s=n(95479),l=n(35922),u=n(62754);function d(e){return e&&e.__esModule?e:{default:e}}var c,h="dx-master-detail-cell",f="dx-master-detail-row",p="dx-cell-focus-disabled",g="dx-row-lines",m={defaultOptions:function(){return{masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}},extenders:{controllers:{columns:{_getExpandColumnsCore:function(){var e=this.callBase();return this.option("masterDetail.enabled")&&e.push({type:"detailExpand",cellTemplate:a.default.getExpandCellTemplate()}),e}},data:(c=function(e){e._expandedItems=[],e._isExpandAll=e.option("masterDetail.autoExpandAll")},{init:function(){c(this),this.callBase()},expandAll:function(e){var t=this;e<0?(t._isExpandAll=!0,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},collapseAll:function(e){var t=this;e<0?(t._isExpandAll=!1,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},isRowExpanded:function(e){var t=this,n=a.default.getIndexByKey(e,t._expandedItems);return Array.isArray(e)?t.callBase.apply(t,arguments):!!(t._isExpandAll^(n>=0&&t._expandedItems[n].visible))},_getRowIndicesForExpand:function(e){var t=this.getRowIndexByKey(e);return[t,t+1]},_changeRowExpandCore:function(e){var t,n=this;if(Array.isArray(e))t=n.callBase.apply(n,arguments);else{var i=a.default.getIndexByKey(e,n._expandedItems);if(i>=0){var o=n._expandedItems[i].visible;n._expandedItems[i].visible=!o}else n._expandedItems.push({key:e,visible:!0});n.updateItems({changeType:"update",rowIndices:n._getRowIndicesForExpand(e)}),t=(new u.Deferred).resolve()}return t},_processDataItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return i.isExpanded=n.isRowExpanded(i.key),void 0===t.detailColumnIndex&&(t.detailColumnIndex=-1,(0,s.each)(t.visibleColumns,(function(e,n){if("expand"===n.command&&!(0,l.isDefined)(n.groupIndex))return t.detailColumnIndex=e,!1}))),t.detailColumnIndex>=0&&(i.values[t.detailColumnIndex]=i.isExpanded),i},_processItems:function(e,t){var n=this,i=t.changeType,o=[];return e=n.callBase.apply(n,arguments),"loadingAll"===i?e:("refresh"===i&&(n._expandedItems=(0,r.grep)(n._expandedItems,(function(e){return e.visible}))),(0,s.each)(e,(function(e,t){o.push(t);var i=a.default.getIndexByKey(t.key,n._expandedItems);"data"===t.rowType&&(t.isExpanded||i>=0)&&!t.isNewRow&&o.push({visible:t.isExpanded,rowType:"detail",key:t.key,data:t.data,values:[]})})),o)},optionChanged:function(e){var t,n,i=this;if("masterDetail"===e.name){switch(e.name="dataSource",e.fullName){case"masterDetail":var o=e.value||{},a=e.previousValue||{};t=o.enabled!==a.enabled,n=o.autoExpandAll!==a.autoExpandAll;break;case"masterDetail.template":c(i);break;case"masterDetail.enabled":t=!0;break;case"masterDetail.autoExpandAll":n=!0}(t||n)&&c(i)}i.callBase(e)}}),resizing:{fireContentReadyAction:function(){this.callBase.apply(this,arguments),this._updateParentDataGrids(this.component.$element())},_updateParentDataGrids:function(e){var t=this,n=e.closest(".dx-master-detail-row");n.length&&(0,u.when)(this._updateMasterDataGrid(n,e)).done((function(){t._updateParentDataGrids(n.parent())}))},_updateMasterDataGrid:function(e,t){var n=(0,o.default)(e).data("options"),i=(0,o.default)(e).closest("."+this.getWidgetContainerClass()).parent().data("dxDataGrid");if(n&&i){if(i.getView("rowsView").isFixedColumns())return this._updateFixedMasterDetailGrids(i,n.rowIndex,t);if(!0===i.option("scrolling.useNative"))return i.updateDimensions();var a=i.getScrollable();return null==a?void 0:a.update()}},_updateFixedMasterDetailGrids:function(e,t,n){var a=this,r=(0,o.default)(e.getRowElement(t)),s=(0,o.default)(e.getView("rowsView").getTableElements()),l=2===(null==r?void 0:r.length)&&(0,i.getHeight)(r.eq(0))!==(0,i.getHeight)(r.eq(1)),u=2===(null==s?void 0:s.length)&&(0,i.getHeight)(s.eq(0))!==(0,i.getHeight)(s.eq(1));if(l||u){var d=(0,i.getWidth)(n);return e.updateDimensions().done((function(){var t=a.option("columnAutoWidth")&&!0===e.option("scrolling.useNative"),o=t&&d!==(0,i.getWidth)(n);t&&o&&a.updateDimensions()}))}},_toggleBestFitMode:function(e){if(this.callBase.apply(this,arguments),this.option("masterDetail.template")){var t=this._rowsView.getTableElement();t&&t.find(".dx-master-detail-cell").css("maxWidth",e?0:"")}}}},views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column,i=t.getController("editing"),o=i&&i.isEditRow(e.rowIndex);return"detail"!==n.command||o?t.callBase.apply(t,arguments):t.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:t._getDefaultTemplate(n)}},_isDetailRow:function(e){return e&&e.rowType&&0===e.rowType.indexOf("detail")},_createRow:function(e){var t=this.callBase.apply(this,arguments);return e&&this._isDetailRow(e)&&(this.option("showRowLines")&&t.addClass(g),t.addClass(f),(0,l.isDefined)(e.visible)&&t.toggle(e.visible)),t},_renderCells:function(e,t){var n=t.row,i=this._columnsController.getVisibleColumns();n.rowType&&this._isDetailRow(n)?this._needRenderCell(0,t.columnIndices)&&this._renderCell(e,{value:null,row:n,rowIndex:n.rowIndex,column:{command:"detail"},columnIndex:0}).addClass(p).addClass(h).attr("colSpan",i.length):this.callBase.apply(this,arguments)}}}}};t.masterDetailModule=m},12310:function(e,t,n){t.default=void 0;var i=p(n(68374)),o=p(n(55994)),a=p(n(38377)),r=p(n(44504)),s=n(20576),l=n(35922),u=n(89386),d=n(95479),c=p(n(96688)),h=p(n(28109)),f=n(58201);function p(e){return e&&e.__esModule?e:{default:e}}var g=a.default.inherit({_endUpdateCore:function(){},ctor:function(e){var t=this;t._updateLockCount=0,t.component=e,t._actions={},t._actionConfigs={},(0,d.each)(this.callbackNames()||[],(function(e,n){var i=t.callbackFlags(n)||{};i.unique=!0,i.syncStrategy=!0,t[this]=(0,r.default)(i)}))},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var t=this.component,n=t._optionCache;return 1===arguments.length&&n?(e in n||(n[e]=t.option(e)),n[e]):t.option.apply(t,arguments)},_silentOption:function(e,t){var n=this.component,i=n._optionCache;return i&&(i[e]=t),n._setOptionWithoutOptionChange(e,t)},localize:function(e){var t=this.component._optionCache;return t?(e in t||(t[e]=h.default.format(e)),t[e]):h.default.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,t,n){var i=n.get(0),o="role"!==e&&"id"!==e?"aria-":"";i.setAttribute?i.setAttribute(o+e,t):n.attr(o+e,t)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,t){if((0,l.isFunction)(e)){var n=this.component._createAction(e.bind(this),t);return function(e){n({event:e})}}this._actions[e]=this.component._createActionByOption(e,t),this._actionConfigs[e]=t},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},dispose:function(){var e=this;(0,d.each)(e.callbackNames()||[],(function(){e[this].empty()}))},addWidgetPrefix:function(e){return"dx-"+this.component.NAME.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){var e="dxDataGrid"===this.component.NAME?null:"container";return this.addWidgetPrefix(e)}}),m=g,_=m.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),v=g.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,t){this._requireRender=!0,this.component._requireResize=(0,f.hasWindow)()&&(this.component._requireResize||e),this._requireReady=this._requireReady||t},_renderCore:function(){},_resizeCore:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=(0,r.default)(),this.resizeCompleted=(0,r.default)()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,n=parseFloat(e.css("marginBottom"))||0;return e.get(0).offsetHeight+t+n},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var n=this._$element,o=this.isVisible();(n||e)&&(this._requireReady=!1,n||(n=this._$element=(0,i.default)("<div>").appendTo(e),this._$parent=e),n.toggleClass("dx-hidden",!o),o&&(this.component._optionCache={},this._renderCore(t),this.component._optionCache=void 0,this.renderCompleted.fire(t)))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(){o.default.trigger(this.element(),"focus")}}),y=1e6,x={modules:[],View:v,ViewController:_,Controller:m,registerModule:function(e,t){for(var n=this.modules,i=0;i<n.length;i++)if(n[i].name===e)return;t.name=e,n.push(t),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(e){this.modulesOrder=e},unregisterModule:function(e){this.modules=(0,s.grep)(this.modules,(function(t){return t.name!==e})),delete this.controllerTypes,delete this.viewTypes},processModules:function(e,t){var n=t.modules,i=t.modulesOrder,o=t.controllerTypes||{},a=t.viewTypes||{};t.controllerTypes||(i&&n.sort((function(e,t){var n=(0,u.inArray)(e.name,i),o=(0,u.inArray)(t.name,i);return n<0&&(n=y),o<0&&(o=y),n-o})),(0,d.each)(n,(function(){var e=this.controllers,t=this.name,n=this.views;e&&(0,d.each)(e,(function(e,n){if(o[e])throw c.default.Error("E1001",t,e);if(!(n&&n.subclassOf&&n.subclassOf(m)))throw n.subclassOf(m),c.default.Error("E1002",t,e);o[e]=n})),n&&(0,d.each)(n,(function(e,n){if(a[e])throw c.default.Error("E1003",t,e);if(!(n&&n.subclassOf&&n.subclassOf(v)))throw c.default.Error("E1004",t,e);a[e]=n}))})),(0,d.each)(n,(function(){var e=this.extenders;e&&(e.controllers&&(0,d.each)(e.controllers,(function(e,t){o[e]&&(o[e]=o[e].inherit(t))})),e.views&&(0,d.each)(e.views,(function(e,t){a[e]&&(a[e]=a[e].inherit(t))})))})),t.controllerTypes=o,t.viewTypes=a);var r=function(t){var n={};return(0,d.each)(t,(function(t,i){var o=new i(e);o.name=t,function(e,t,n){var i=n.publicMethods();i&&(0,d.each)(i,(function(i,o){if(!n[o])throw c.default.Error("E1006",t,o);if(e[o])throw c.default.Error("E1005",o);e[o]=function(){return n[o].apply(n,arguments)}}))}(e,t,o),n[t]=o})),n};e._controllers=r(o),e._views=r(a)},callModuleItemsMethod:function(e,t,n){n=n||[],e._controllers&&(0,d.each)(e._controllers,(function(){this[t]&&this[t].apply(this,n)})),e._views&&(0,d.each)(e._views,(function(){this[t]&&this[t].apply(this,n)}))}};t.default=x,e.exports=t.default,e.exports.default=t.default},23316:function(e,t,n){t.pagerModule=void 0;var i=l(n(12310)),o=l(n(79383)),a=n(89386),r=n(35922),s=n(58201);function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return 1+(parseInt(e.pageIndex())||0)},d={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto"}}},views:{pagerView:i.default.View.inherit({init:function(){var e=this,t=this.getController("data");t.changed.add((function(n){if(n&&n.repaintChangesOnly){var i=e._getPager();i?i.option({pageIndex:u(t),pageSize:t.pageSize(),pageCount:t.pageCount(),totalCount:t.totalCount(),hasKnownLastPage:t.hasKnownLastPage()}):e.render()}else(!n||"update"!==n.changeType&&"updateSelection"!==n.changeType&&"updateFocusedRow"!==n.changeType)&&e.render()}))},_getPager:function(){var e=this.element();return e&&e.data("dxPager")},_renderCore:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix("pager")),n=e.option("pager")||{},i=e.getController("data"),a=e.getController("keyboardNavigation"),l={maxPagesCount:10,pageIndex:u(i),pageCount:i.pageCount(),pageSize:i.pageSize(),showPageSizes:n.showPageSizeSelector,showInfo:n.showInfo,displayMode:n.displayMode,pagesNavigatorVisible:n.visible,showNavigationButtons:n.showNavigationButtons,pageSizes:e.getPageSizes(),totalCount:i.totalCount(),hasKnownLastPage:i.hasKnownLastPage(),pageIndexChanged:function(e){i.pageIndex()!==e-1&&setTimeout((function(){i.pageIndex(e-1)}))},pageSizeChanged:function(e){setTimeout((function(){i.pageSize(e)}))},onKeyDown:function(e){return a&&a.executeAction("onKeyDown",e)},useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};(0,r.isDefined)(n.infoText)&&(l.infoText=n.infoText),(0,s.hasWindow)()?e._createComponent(t,o.default,l):t.addClass("dx-pager").html('<div class="dx-pages"><div class="dx-page"></div></div>')},getPageSizes:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.allowedPageSizes,o=t.pageSize();return(0,r.isDefined)(e._pageSizes)&&-1!==(0,a.inArray)(o,e._pageSizes)||(e._pageSizes=[],n&&(Array.isArray(i)?e._pageSizes=i:i&&o>1&&(e._pageSizes=[Math.floor(o/2),o,2*o]))),e._pageSizes},isVisible:function(){var e=this.getController("data"),t=this.option("pager"),n=t&&t.visible,i=this.option("scrolling");return"auto"===n&&(n=(!i||"virtual"!==i.mode&&"infinite"!==i.mode)&&(e.pageCount()>1||e.isLoaded()&&!e.hasKnownLastPage())),n},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){var t=e.name,n="pager"===t,i="paging"===t,o="dataSource"===t,a="scrolling"===t,r=this.getController("data");if(n||i||a||o){if(e.handled=!0,r.skipProcessingPagingChange(e.fullName))return;(n||i)&&(this._pageSizes=null),o||(this._invalidate(),(0,s.hasWindow)()&&n&&this.component&&this.component.resize())}}})}};t.pagerModule=d},82213:function(e,t,n){t.rowDraggingModule=void 0;var i=n(58664),o=l(n(68374)),a=n(13306),r=l(n(66843)),s=l(n(13615));function l(e){return e&&e.__esModule?e:{default:e}}var u="dx-command-drag",d="dx-sortable-without-handle",c={defaultOptions:function(){return{rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}},extenders:{views:{rowsView:{init:function(){this.callBase.apply(this,arguments),this._updateHandleColumn()},_allowReordering:function(){var e=this.option("rowDragging");return!(!e||!(e.allowReordering||e.allowDropInsideItem||e.group))},_updateHandleColumn:function(){var e=this.option("rowDragging"),t=this._allowReordering(),n=this._columnsController,i=t&&e.showDragIcons;n&&n.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",cssClass:u,width:"auto",cellTemplate:this._getHandleTemplate(),visible:i}),n.columnOption("type:drag","visible",i)},_renderContent:function(){var e=this,t=this.option("rowDragging"),n=this._allowReordering(),i=this.callBase.apply(this,arguments),o=this._isFixedTableRendering,s="_sortable",l="_sortableFixed",c=o?l:s,h=o?s:l,f=function(t){var n;null===(n=e[l])||void 0===n||n.$element().css("pointerEvents",t?"auto":"")},p=this.option("dataRowTemplate")?"> table > tbody.dx-row:not(.dx-freespace-row):not(.dx-virtual-row)":"> table > tbody > .dx-row:not(.dx-freespace-row):not(.dx-virtual-row)";return(n||this[c])&&i.length&&(this[c]=this._createComponent(i,r.default,(0,a.extend)({component:this.component,contentTemplate:null,filter:p,dragTemplate:this._getDraggableRowTemplate(),handle:t.showDragIcons&&".".concat(u),dropFeedbackMode:"indicate"},t,{onDragStart:function(e){var i,o=e.component.getVisibleRows()[e.fromIndex];e.itemData=o&&o.data;var a=o&&"data"===o.rowType;e.cancel=!n||!a,null===(i=t.onDragStart)||void 0===i||i.call(t,e)},onDragEnter:function(){f(!0)},onDragLeave:function(){f(!1)},onDragEnd:function(e){var n;f(!1),null===(n=t.onDragEnd)||void 0===n||n.call(t,e)},onAdd:function(e){var n;f(!1),null===(n=t.onAdd)||void 0===n||n.call(t,e)},dropFeedbackMode:t.dropFeedbackMode,onOptionChanged:function(t){e[l]&&("fromIndex"!==t.name&&"toIndex"!==t.name||e[h].option(t.name,t.value))}})),i.toggleClass("dx-scrollable-container",o),i.toggleClass(d,n&&!t.showDragIcons)),i},_resizeCore:function(){this.callBase.apply(this,arguments);var e=this._dataController.getRowIndexOffset();[this._sortable,this._sortableFixed].forEach((function(t){null==t||t.option("offset",e),null==t||t.update()}))},_getDraggableGridOptions:function(e){var t=this.option(),n=this.getColumns(),i=(0,o.default)(this.getRowElement(e.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:"never"},pager:{visible:!1},loadingTimeout:null,columnFixing:t.columnFixing,columnAutoWidth:t.columnAutoWidth,showColumnLines:t.showColumnLines,columns:n.map((function(e){return{width:e.width||e.visibleWidth,fixed:e.fixed,fixedPosition:e.fixedPosition}})),onRowPrepared:function(e){var t=e.component.getView("rowsView");(0,o.default)(e.rowElement).replaceWith(i.eq(t._isFixedTableRendering?1:0).clone())}}},_getDraggableRowTemplate:function(){var e=this;return function(t){var n=e.component.$element(),a=(0,o.default)("<div>");(0,i.setWidth)(a,(0,i.getWidth)(n));var r=e._dataController.items(),s=r&&r[t.fromIndex],l=e._getDraggableGridOptions(s);return e._createComponent(a,e.component.NAME,l),a.find(".dx-gridbase-container").children(":not(.".concat(e.addWidgetPrefix("rowsview"),")")).hide(),a}},_getHandleTemplate:function(){var e=this;return function(t,n){if("data"===n.rowType)return(0,o.default)(t).addClass("dx-cell-focus-disabled"),(0,o.default)("<span>").addClass(e.addWidgetPrefix("drag-icon"));s.default.setEmptyText((0,o.default)(t))}},optionChanged:function(e){"rowDragging"===e.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),e.handled=!0),this.callBase.apply(this,arguments)}}}}};t.rowDraggingModule=c},71211:function(e,t,n){t.rowsModule=void 0;var i=n(58664),o=w(n(68374)),a=n(58201),r=w(n(55994)),s=n(20576),l=n(80968),u=n(35922),d=n(95479),c=n(13306),h=n(37518),f=n(68752),p=n(47617),g=w(n(13615)),m=n(10980),_=w(n(41183)),v=n(29007),y=w(n(28109)),x=w(n(47810)),b=w(n(11071));function w(e){return e&&e.__esModule?e:{default:e}}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var S="dx-group-row",k="dx-data-row",D="dx-row-lines",I="dx-column-lines",T="dx-row-alt",E="dx-last-row-border";function A(e){return e?Math.round(e.scrollWidth()-e.clientWidth()):0}var O,P={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:y.default.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},dataRowTemplate:null,columnAutoWidth:!1,noDataText:y.default.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:m.ColumnsView.inherit((O=function(e,t){var n=(0,f.isEmpty)(t.text)&&"data"===t.rowType,i=t.text,o=e.get(0);n?g.default.setEmptyText(e):t.column.encodeHtml?o.textContent=i:o.innerHTML=i},{_getDefaultTemplate:function(e){return"empty"===e.command?function(e){e.html("&nbsp;")}:O},_getDefaultGroupTemplate:function(e){var t=this.option("summary.texts");return function(n,i){var o=i.data,a=i.column.caption+": "+i.text,r=n.get(0);i.summaryItems&&i.summaryItems.length&&(a+=" "+g.default.getGroupRowSummaryText(i.summaryItems,t)),o&&(i.groupContinuedMessage&&i.groupContinuesMessage?a+=" ("+i.groupContinuedMessage+". "+i.groupContinuesMessage+")":i.groupContinuesMessage?a+=" ("+i.groupContinuesMessage+")":i.groupContinuedMessage&&(a+=" ("+i.groupContinuedMessage+")")),n.addClass("dx-group-cell"),e.encodeHtml?r.textContent=a:r.innerHTML=a}},_update:function(){},_getCellTemplate:function(e){var t=e.column;return"group"!==e.rowType||!(0,u.isDefined)(t.groupIndex)||t.showWhenGrouped||t.command?("data"===e.rowType||t.command)&&t.cellTemplate?t.cellTemplate:{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(t)}:t.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(t)}},_createRow:function(e){var t=this.callBase.apply(this,arguments);if(e){var n="group"===e.rowType,i="data"===e.rowType;if(i&&t.addClass(k),i&&this.option("showRowLines")&&t.addClass(D),this.option("showColumnLines")&&t.addClass(I),!1===e.visible&&t.hide(),n){t.addClass(S);var o=e.isExpanded;this.setAria("role","row",t),this.setAria("expanded",(0,u.isDefined)(o)&&o.toString(),t)}}return t},_rowPrepared:function(e,t,n){var i=this;"data"===t.rowType&&(this.option("rowAlternationEnabled")&&(this._isAltRow(n)&&e.addClass(T),t.watch&&t.watch((function(){return i._isAltRow(n)}),(function(t){e.toggleClass(T,t)}))),this._setAriaRowIndex(t,e),t.watch&&t.watch((function(){return t.rowIndex}),(function(){return i._setAriaRowIndex(t,e)}))),this.callBase.apply(this,arguments)},_setAriaRowIndex:function(e,t){var n=this.component,i="standard"===n.option("scrolling.mode")&&!g.default.isVirtualRowRendering(n),o=e.rowIndex+1;i?o=n.pageIndex()*n.pageSize()+o:o+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",o,t)},_afterRowPrepared:function(e){var t=this,n=e.args[0],i=this._dataController,o=i.getVisibleRows()[n.rowIndex],a=this.option("integrationOptions.watchMethod");if(n.data&&"data"===n.rowType&&!n.isNewRow&&this.option("twoWayBindingEnabled")&&a&&o){var s=a((function(){return i.generateDataValues(n.data,n.columns)}),(function(){i.repaintRows([o.rowIndex],t.option("repaintChangesOnly"))}),{deep:!0,skipImmediate:!0});r.default.on(n.rowElement,v.removeEvent,s)}},_renderScrollable:function(e){var t=this,n=t.element();if(n.children().length||n.append("<div>"),!e&&t._loadPanel||t._renderLoadPanel(n,n.parent(),t._dataController.isLocalStore()),(e||!t.getScrollable())&&t._dataController.isLoaded()){for(var i=t.getColumns(),o=!0,a=0;a<i.length;a++)if(!i[a].width&&!i[a].minWidth){o=!1;break}(t.option("columnAutoWidth")||t._hasHeight||o||t._columnsController._isColumnFixing())&&t._renderScrollableCore(n)}},_handleScroll:function(e){var t=this,n=t.option("rtlEnabled"),i=e.component.option("useNative");t._scrollTop=e.scrollOffset.top,t._scrollLeft=e.scrollOffset.left;var o=e.scrollOffset.left;n&&(this._scrollRight=A(e.component)-this._scrollLeft,i&&(o=(0,b.default)().positive?this._scrollRight:-this._scrollRight),this.isScrollbarVisible(!0)||(this._scrollLeft=-1)),t.scrollChanged.fire(C({},e.scrollOffset,{left:o}),t.name)},_renderScrollableCore:function(e){var t=this,n=t._createScrollableOptions(),i=t._handleScroll.bind(t);n.onScroll=i,t._scrollable=t._createComponent(e,_.default,n),t._scrollableContainer=t._scrollable&&(0,o.default)(t._scrollable.container())},_renderLoadPanel:g.default.renderLoadPanel,_renderContent:function(e,t){return e.empty().append(t),this._findContentElement()},_updateContent:function(e,t){var n=this,i=n.getTableElement(),o=n._findContentElement(),a=t&&t.changeType,r=[],s=this.option("highlightChanges"),l=this.addWidgetPrefix("row-inserted-animation");"update"===a?((0,d.each)(t.rowIndices,(function(o,a){var d=n._getRowElements(e).eq(o),c=t.changeTypes&&t.changeTypes[o],h=t.items&&t.items[o];r.push((function(){var e=n._getRowElements(),r=e.eq(a);switch(c){case"update":if(h){var f=t.columnIndices&&t.columnIndices[o];(0,u.isDefined)(h.visible)&&h.visible!==r.is(":visible")?r.toggle(h.visible):f?n._updateCells(r,d,f):r.replaceWith(d)}break;case"insert":if(e.length)r.length?d.insertBefore(r):d.insertAfter(e.last());else if(i){var p=d.is("tbody")?i:i.children("tbody");d.prependTo(p)}s&&t.isLiveUpdate&&d.addClass(l);break;case"remove":r.remove()}}))})),(0,d.each)(r,(function(){this()})),e.remove()):(n.setTableElement(e),o.addClass(n.addWidgetPrefix("content")),n._renderContent(o,e))},_createEmptyRow:function(e,t,n){var i,o=this,a=o._createRow(),r=t?this.getFixedColumns():this.getColumns();a.addClass(e).toggleClass(I,o.option("showColumnLines"));for(var s=0;s<r.length;s++)i=o._createCell({column:r[s],rowType:"freeSpace",columnIndex:s,columns:r}),(0,u.isNumeric)(n)&&i.css("height",n),a.append(i);return o.setAria("role","presentation",a),a},_appendEmptyRow:function(e,t,n){var i=this._getBodies(e),o=!i.length||t.is("tbody"),a=o?e:i;if("top"===n){if(a.first().prepend(t),o){var r=a.children("colgroup");a.prepend(r)}}else a.last().append(t)},_renderFreeSpaceRow:function(e){var t=this._createEmptyRow("dx-freespace-row");t=this._wrapRowIfNeed(e,t),this._appendEmptyRow(e,t)},_checkRowKeys:function(e){var t=this,n=t._getRows(e),i=t._dataController.store()&&t._dataController.store().key();i&&n.some((function(e){if("data"===e.rowType&&void 0===e.key)return t._dataController.fireError("E1046",i),!0}))},_needUpdateRowHeight:function(e){return e>0&&!this._rowHeight},_getRowsHeight:function(e){return e.children("tbody").children().not(".dx-virtual-row").not(".dx-freespace-row").toArray().reduce((function(e,t){return e+(0,h.getBoundingRect)(t).height}),0)},_updateRowHeight:function(){var e=this,t=e.getTableElement(),n=e._dataController.items().length;if(t&&e._needUpdateRowHeight(n)){var i=e._getRowsHeight(t);e._rowHeight=i/n}},_findContentElement:function(){var e=this.element(),t=this.getScrollable();if(e)return t&&(e=(0,o.default)(t.content())),e.children().first()},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not(".dx-freespace-row")},_getFreeSpaceRowElements:function(e){var t=e||this.getTableElements();return t&&t.children("tbody").children(".dx-freespace-row")},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",(0,c.extend)({evaluate:function(e){return(0,p.compileGetter)(e)(t.data)}},e,t))},_rowDblClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowDblClick",(0,c.extend)({},e,t))},_getColumnsCountBeforeGroups:function(e){for(var t=0;t<e.length;t++)if("groupExpand"===e[t].type)return t;return 0},_getGroupCellOptions:function(e){var t=this._getColumnsCountBeforeGroups(e.columns),n=(e.row.groupIndex||0)+t;return{columnIndex:n,colspan:e.columns.length-n-1}},_renderCells:function(e,t){"group"===t.row.rowType?this._renderGroupedCells(e,t):t.row.values&&this.callBase(e,t)},_renderGroupedCells:function(e,t){for(var n,i,o=t.row,a=t.columns,r=o.rowIndex,s=this._getGroupCellOptions(t),l=0;l<=s.columnIndex;l++)l===s.columnIndex&&a[l].allowCollapsing&&"infinite"!==t.scrollingMode?(i=!!o.isExpanded,n=a[l]):(i=null,n={command:"expand",cssClass:a[l].cssClass}),this._needRenderCell(l,t.columnIndices)&&this._renderCell(e,{value:i,row:o,rowIndex:r,column:n,columnIndex:l,columnIndices:t.columnIndices});var u=(0,h.getDefaultAlignment)(this.option("rtlEnabled")),d=(0,c.extend)({},a[s.columnIndex],{command:null,type:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:u});s.colspan>1&&(d.colspan=s.colspan),this._needRenderCell(s.columnIndex+1,t.columnIndices)&&this._renderCell(e,{value:o.values[o.groupIndex],row:o,rowIndex:r,column:d,columnIndex:s.columnIndex+1,columnIndices:t.columnIndices})},_renderRows:function(e,t){var n=this,i=n.option("scrolling.mode");n.callBase(e,(0,c.extend)({scrollingMode:i},t)),n._checkRowKeys(t.change),n._renderFreeSpaceRow(e),n._hasHeight||n.updateFreeSpaceRowHeight(e)},_renderDataRowByTemplate:function(e,t,n){var i=t.row,o=(0,c.extend)({columns:t.columns},i),a=this._createRow(i,"tbody");a.appendTo(e),this.renderTemplate(a,n,o,!0,t.change),this._rowPrepared(a,o,t.row)},_renderRow:function(e,t){var n=t.row,i=this.option().rowTemplate,o=this.option("dataRowTemplate");"data"===n.rowType&&o?this._renderDataRowByTemplate(e,t,o):"data"!==n.rowType&&"group"!==n.rowType||(0,u.isDefined)(n.groupIndex)||!i?this.callBase(e,t):this.renderTemplate(e,i,(0,c.extend)({columns:t.columns},n),!0)},_renderTable:function(e){var t=this,n=t.callBase(e);return(0,u.isDefined)(t.getTableElement())?t._renderScrollable():(t.setTableElement(n),t._renderScrollable(!0),t.resizeCompleted.add((function e(){var n=t.getScrollable();n&&t.element().closest((0,a.getWindow)().document).length&&(t.resizeCompleted.remove(e),n._visibilityChanged(!0))}))),n},_createTable:function(){var e=this.callBase.apply(this,arguments);return this.option().rowTemplate&&!this.option("dataRowTemplate")&&e.appendTo(this.component.$element()),e},_renderCore:function(e){var t=this.element();t.addClass(this.addWidgetPrefix("rowsview")).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")),t.toggleClass("dx-empty",this._dataController.isEmpty()),this.setAria("role","presentation",t);var n=this._renderTable({change:e});this._updateContent(n,e),this.callBase(e),this._lastColumnWidths=null},_getRows:function(e){return e&&e.items||this._dataController.items()},_getCellOptions:function(e){var t=e.column,n=e.row,i=n.data,o=n&&n.summaryCells,a=e.value,r=g.default.getDisplayValue(t,a,i,n.rowType),s=this.callBase(e);if(s.value=a,s.oldValue=e.oldValue,s.displayValue=r,s.row=n,s.key=n.key,s.data=i,s.rowType=n.rowType,s.values=n.values,s.text=t.command?"":g.default.formatValue(r,t),s.rowIndex=n.rowIndex,s.summaryItems=o&&o[e.columnIndex],s.resized=t.resizedCallbacks,(0,u.isDefined)(t.groupIndex)&&!t.command){var l=this.option("grouping.texts"),d=this.option("scrolling.mode");"virtual"!==d&&"infinite"!==d&&(s.groupContinuesMessage=i&&i.isContinuationOnNextPage&&l&&l.groupContinuesMessage,s.groupContinuedMessage=i&&i.isContinuation&&l&&l.groupContinuedMessage)}return s},_setRowsOpacityCore:function(e,t,n,i){var a=this._columnsController,r=a.getColumns(),s=r&&r[n],l=s&&s.isBand&&s.index;(0,d.each)(e,(function(r,s){if(!(0,o.default)(s).hasClass(S))for(var d=0;d<t.length&&(!((0,u.isNumeric)(l)&&a.isParentBandColumn(t[d].index,l)||t[d].index===n)||(e.eq(r).children().eq(d).css({opacity:i}),(0,u.isNumeric)(l)));d++);}))},_getDevicePixelRatio:function(){return(0,a.getWindow)().devicePixelRatio},renderNoDataText:g.default.renderNoDataText,getCellOptions:function(e,t){var n,i,o=this._dataController.items()[e];return o&&(i=(0,u.isString)(t)?this._columnsController.columnOption(t):this._columnsController.getVisibleColumns()[t])&&(n=this._getCellOptions({value:i.calculateCellValue(o.data),rowIndex:o.rowIndex,row:o,column:i})),n},getRow:function(e){if(e>=0){var t=this._getRowElements();if(t.length>e)return(0,o.default)(t[e])}},updateFreeSpaceRowHeight:function(e){var t=this,n=this._dataController,o=n.items(!0).length,a=this._findContentElement(),r=this._getFreeSpaceRowElements(e);if(r&&a&&n.totalCount()>=0){var u=!1;if(o>0)if(this._hasHeight)r.hide(),(0,s.deferUpdate)((function(){var n=t.getScrollbarWidth(!0),o=(0,i.getHeight)(t.element())-n,l=o-(0,i.getOuterHeight)(a)>0,d=t._getRowsHeight(a.children().first()),c=e||t.getTableElements(),h=o-d-Math.ceil(parseFloat(c.css("borderTopWidth")))-t._getHeightCorrection();l&&(0,s.deferRender)((function(){r.css("height",h),u=!0,r.show()})),(0,s.deferRender)((function(){return t._updateLastRowBorder(u)}))}));else{var d=n.pageSize()-o,c=this.option("scrolling.mode");d>0&&n.pageCount()>1&&"virtual"!==c&&"infinite"!==c&&((0,l.setHeight)(r,d*this._rowHeight),u=!0),!u&&e?(0,l.setHeight)(r,0):r.toggle(u),this._updateLastRowBorder(u)}else r.css("height",0),r.show(),this._updateLastRowBorder(!0)}},_getHeightCorrection:function(){var e=x.default.webkit&&this._getDevicePixelRatio()>=2,t=x.default.chrome&&x.default.version>=91,n=x.default.mozilla&&x.default.version>=70&&!this.option("showRowLines");return e||n||t?1:0},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&(this.callBase(e),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var e=this,t=e.getController("data");e.callBase(),e._editorFactoryController=e.getController("editorFactory"),e._rowHeight=0,e._scrollTop=0,e._scrollLeft=-1,e._scrollRight=0,e._hasHeight=!1,t.loadingChanged.add((function(t,n){e.setLoading(t,n)})),t.dataSourceChanged.add((function(){e._scrollLeft>=0&&e._handleScroll({component:e.getScrollable(),scrollOffset:{top:e._scrollTop,left:e._scrollLeft}})}))},_handleDataChanged:function(e){switch(e.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,e);break;default:this._update(e)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return(0,i.getWidth)(this.element())-this.getScrollbarWidth()},getScrollbarWidth:function(e){var t,n=this._scrollableContainer&&this._scrollableContainer.get(0),i=0;return n&&(e?(i=n.clientHeight?n.offsetHeight-n.clientHeight:0,i+=(t=this.getScrollable())?Math.ceil(parseFloat((0,o.default)(t.content()).css("paddingBottom"))):0):i=n.clientWidth?n.offsetWidth-n.clientWidth:0),i>0?i:0},_fireColumnResizedCallbacks:function(){for(var e=this,t=e._lastColumnWidths||[],n=[],i=e.getColumns(),o=0;o<i.length;o++)n[o]=i[o].visibleWidth,i[o].resizedCallbacks&&!(0,u.isDefined)(i[o].groupIndex)&&t[o]!==n[o]&&i[o].resizedCallbacks.fire(n[o]);e._lastColumnWidths=n},_updateLastRowBorder:function(e){this.option("showBorders")&&this.option("showRowLines")&&!e?this.element().addClass(E):this.element().removeClass(E)},_updateScrollable:function(){var e=_.default.getInstance(this.element());e&&(e.update(),this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var e=this.getScrollable(),t=e&&e.scrollOffset().left;if(this.option("rtlEnabled")){var n=A(e);n-t!==this._scrollRight&&(this._scrollLeft=n-this._scrollRight)}this._scrollLeft>=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),(0,s.deferRender)((function(){e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),(0,s.deferUpdate)((function(){e._updateScrollable()}))}))},scrollTo:function(e){var t=this.element(),n=t&&_.default.getInstance(t);n&&n.scrollTo(e)},height:function(e,t){var n=this,o=this.element();if(0===arguments.length)return o?(0,i.getOuterHeight)(o,!0):0;n._hasHeight=void 0===t?"auto"!==e:t,(0,u.isDefined)(e)&&o&&(0,l.setHeight)(o,e)},setLoading:function(e,t){var n=this,i=n._loadPanel,o=n._dataController,r=n.option("loadPanel")||{},s=o.isLoaded()?r.animation:null,l=n.element();if((0,a.hasWindow)()&&(!i&&void 0!==t&&o.isLocalStore()&&"auto"===r.enabled&&l&&(n._renderLoadPanel(l,l.parent()),i=n._loadPanel),i)){var u={message:t||r.text,animation:s,visible:e};e&&(u.position=g.default.calculateLoadPanelPosition(l)),clearTimeout(n._hideLoadingTimeoutID),i.option("visible")&&!e?n._hideLoadingTimeoutID=setTimeout((function(){i.option(u)}),200):i.option(u)}},setRowsOpacity:function(e,t){var n=this._getRowElements().not(".dx-group-row")||[];this._setRowsOpacityCore(n,this.getColumns(),e,t)},_getCellElementsCore:function(e){var t=this.callBase.apply(this,arguments);if(t){var n=t.filter(".dx-group-cell").index();if(n>=0&&t.length>n+1)return t.slice(0,n+1)}return t},_getBoundaryVisibleItemIndex:function(e,t){var n=this,r=0,s=0,l=0,u=n._scrollTop,d=n._findContentElement(),c=d&&d.offset().top,h=this.getController("data").items(),f=n.getTableElement();if(h.length&&f){var p=n._getRowElements(f).filter(":visible");for(e||(u+=this._hasHeight?(0,i.getOuterHeight)(this.element()):(0,o.default)((0,a.getWindow)()).outerHeight()),r=0;r<h.length;r++){s=l;var g=(0,o.default)(p).eq(r);if(g.length&&(l=g.offset(),(l=(e?l.top:l.top+(0,i.getOuterHeight)(g))-c)>u)){r&&(t||2*u<Math.round(l+s))&&r--;break}}r&&r===h.length&&r--}return r},getTopVisibleItemIndex:function(e){return this._getBoundaryVisibleItemIndex(!0,e)},getBottomVisibleItemIndex:function(e){return this._getBoundaryVisibleItemIndex(!1,e)},getTopVisibleRowData:function(){var e=this.getTopVisibleItemIndex(),t=this._dataController.items();if(t[e])return t[e].data},_scrollToElement:function(e,t){var n=this.getScrollable();n&&n.scrollToElement(e,t)},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"dataRowTemplate":case"twoWayBindingEnabled":t._invalidate(!0,!0),e.handled=!0;break;case"scrolling":t._rowHeight=null,t._tableElement=null,e.handled=!0;break;case"rtlEnabled":t._rowHeight=null,t._tableElement=null;break;case"loadPanel":t._tableElement=null,t._invalidate(!0,"loadPanel.enabled"!==e.fullName),e.handled=!0;break;case"noDataText":t.renderNoDataText(),e.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()},setScrollerSpacing:function(){},_restoreErrorRow:function(){}}))}};t.rowsModule=P},54697:function(e,t,n){t.searchModule=void 0;var i=d(n(68374)),o=d(n(73349)),a=n(35922),r=n(47617),s=d(n(13615)),l=d(n(28109)),u=d(n(96687));function d(e){return e&&e.__esModule?e:{default:e}}var c="search-panel",h="search-text";function f(e){return(0,a.isDefined)(e.allowSearch)?e.allowSearch:e.allowFiltering}function p(e,t){var n=e.lookup;return e.parseValue?n?e.parseValue.call(n,t):e.parseValue(t):t}var g,m={defaultOptions:function(){return{searchPanel:{visible:!1,width:160,placeholder:l.default.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}},extenders:{controllers:{data:{publicMethods:function(){return this.callBase().concat(["searchByText"])},_calculateAdditionalFilter:function(){var e=this,t=e.callBase(),n=function(e,t){var n,i,o,a=e._columnsController.getColumns(),l=e.option("searchPanel.searchVisibleColumnsOnly"),d=[];if(!t)return null;function c(e){for(var t=(0,r.compileGetter)(o.valueExpr),n=0;n<e.length;n++){var a=t(e[n]);d.push(i.createFilterExpression(a,null,"search"))}}for(n=0;n<a.length;n++)if(i=a[n],(!l||i.visible)&&f(i)&&i.calculateFilterExpression){o=i.lookup;var h=p(i,t);o&&o.items?(0,u.default)(o.items).filter(i.createFilterExpression.call({dataField:o.displayExpr,dataType:o.dataType,calculateFilterExpression:i.calculateFilterExpression},h,null,"search")).enumerate().done(c):void 0!==h&&d.push(i.createFilterExpression(h,null,"search"))}return s.default.combineFilters(d,"or")}(e,e.option("searchPanel.text"));return s.default.combineFilters([t,n])},searchByText:function(e){this.option("searchPanel.text",e)},optionChanged:function(e){switch(e.fullName){case"searchPanel.text":case"searchPanel":this._applyFilter(),e.handled=!0;break;default:this.callBase(e)}}}},views:{headerPanel:(g=function(e){return e.option("searchPanel")},{_getToolbarItems:function(){var e=this.callBase();return this._prepareSearchItem(e)},_prepareSearchItem:function(e){var t=this,n=t.getController("data"),o=g(t);if(o&&o.visible){var a={template:function(e,a,r){var s=(0,i.default)("<div>").addClass(t.addWidgetPrefix(c)).appendTo(r);t.getController("editorFactory").createEditor(s,{width:o.width,placeholder:o.placeholder,parentType:"searchPanel",value:t.option("searchPanel.text"),updateValueTimeout:700,setValue:function(e){n.searchByText(e)},editorOptions:{inputAttr:{"aria-label":l.default.format("".concat(t.component.NAME,"-ariaSearchInGrid"))}}}),t.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40};e.push(a)}return e},getSearchTextEditor:function(){var e=this,t=e.element(),n=t.find("."+e.addWidgetPrefix(c)).filter((function(){return(0,i.default)(this).closest("."+e.addWidgetPrefix("header-panel")).is(t)}));return n.length?n.dxTextBox("instance"):null},isVisible:function(){var e=g(this);return this.callBase()||e&&e.visible},optionChanged:function(e){if("searchPanel"===e.name){if("searchPanel.text"===e.fullName){var t=this.getSearchTextEditor();t&&t.option("value",e.value)}else this._invalidate();e.handled=!0}else this.callBase(e)}}),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(e,t){var n=p(e,t),i=s.default.getFormatOptionsByColumn(e,"search");return s.default.formatValue(n,i)},_getStringNormalizer:function(){var e=this.option("searchPanel.highlightCaseSensitive");return function(t){return e?t:t.toLowerCase()}},_findHighlightingTextNodes:function(e,t,n){var o,a,r=t.parent(),s=this._getStringNormalizer(),l=s(n),u=[];if(r.length){if(e)if(e.groupIndex>=0&&!e.showWhenGrouped)a=t;else{var d=this._columnsController.getVisibleIndex(e.index);a=r.children("td").eq(d).find("*")}}else r=(0,i.default)("<div>").append(t);return(a=null!==(o=a)&&void 0!==o&&o.length?a:r.find("*")).each((function(e,t){for(var n=(0,i.default)(t).contents(),o=0;o<n.length;o++){var a=n.get(o);3===a.nodeType&&s(a.textContent||a.nodeValue).indexOf(l)>-1&&u.push(a)}})),u},_highlightSearchTextCore:function(e,t){var n=(0,i.default)("<span>").addClass(this.addWidgetPrefix(h)),a=e.text(),r=e[0],s=this._getStringNormalizer(),l=s(a).indexOf(s(t));if(l>=0)return r.textContent?r.textContent=a.substr(0,l):r.nodeValue=a.substr(0,l),e.after(n.text(a.substr(l,t.length))),e=(0,i.default)(o.default.createTextNode(a.substr(l+t.length))).insertAfter(n),this._highlightSearchTextCore(e,t)},_highlightSearchText:function(e,t,n){var o=this,a=this._getStringNormalizer(),r=o.option("searchPanel.text");t&&n&&(r=r&&o._getFormattedSearchText(n,r)),r&&o.option("searchPanel.highlightSearchText")&&o._findHighlightingTextNodes(n,e,r).forEach((function(e){t?a((0,i.default)(e).text())===a(r)&&(0,i.default)(e).replaceWith((0,i.default)("<span>").addClass(o.addWidgetPrefix(h)).text((0,i.default)(e).text())):o._highlightSearchTextCore((0,i.default)(e),r)}))},_renderCore:function(){this.callBase.apply(this,arguments),(this.option().rowTemplate||this.option("dataRowTemplate"))&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this.getTableElement())}.bind(this))):this._highlightSearchText(this.getTableElement()))},_updateCell:function(e,t){var n=t.column,i="string"!==(n.lookup&&n.lookup.dataType||n.dataType);f(n)&&!t.isOnForm&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(e){this._highlightSearchText.apply(this,e)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([e,i,n])):this._highlightSearchText(e,i,n)),this.callBase(e,t)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}};t.searchModule=m},80040:function(e,t,n){t.selectionModule=void 0;var i=v(n(68374)),o=v(n(55994)),a=v(n(39941)),r=v(n(13615)),s=n(35922),l=n(95479),u=n(13306),d=n(60137),c=n(95429),h=v(n(28109)),f=n(39611),p=v(n(11699)),g=v(n(68198)),m=n(62754),_=v(n(96688));function v(e){return e&&e.__esModule?e:{default:e}}var y,x,b="dx-editor-cell",w="dx-selection",C="dx-select-checkbox",S="selection.showCheckBoxesMode",k="selection.mode",D=function(e,t){var n=e.getController("selection"),o=e.getView("rowsView"),a=(0,i.default)(t.target).closest(".dx-data-row"),r=o.getRowIndex(a);r<0||("onLongTap"===e.option(S)?n.isSelectionWithCheckboxes()?n.stopSelectionWithCheckboxes():n.startSelectionWithCheckboxes():("onClick"===e.option(S)&&n.startSelectionWithCheckboxes(),"always"!==e.option(S)&&n.changeItemSelection(r,{control:!0})))},I={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:a.default.Controller.inherit((y=function(e,t){var n=t.component,o=n.getView("rowsView");n.option("renderAsync")&&!n.option("selection.deferred")&&(t.value=n.isRowSelected(t.row.key)),o.renderSelectCheckBoxContainer((0,i.default)(e),t)},x=function(e,t){var n=t.column,o=(0,i.default)(e),a=t.component.getView("columnHeadersView");o.addClass(b),a._renderSelectAllCheckBox(o,n),a._attachSelectAllCheckBoxClickEvent(o)},{init:function(){var e=this.option("selection")||{},t=e.deferred,n=e.selectAllMode,i=e.mode;"infinite"!==this.option("scrolling.mode")||t||"multiple"!==i||"allPages"!==n||_.default.log("W1018"),this._dataController=this.getController("data"),this._selectionMode=i,this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]}),this._dataController&&this._dataController.pushed.add(this._handleDataPushed.bind(this))},_handleDataPushed:function(e){var t=e.filter((function(e){return"remove"===e.type})).map((function(e){return e.key}));t.length&&this.deselectRows(t)},_getSelectionConfig:function(){var e=this._dataController,t=this.option("selection")||{},n=t.deferred;return{selectedKeys:this.option("selectedRowKeys"),mode:this._selectionMode,deferred:n,maxFilterLengthInRequest:t.maxFilterLengthInRequest,selectionFilter:this.option("selectionFilter"),ignoreDisabledItems:!0,key:function(){return null==e?void 0:e.key()},keyOf:function(t){return null==e?void 0:e.keyOf(t)},dataFields:function(){var t;return null===(t=e.dataSource())||void 0===t?void 0:t.select()},load:function(t){var n;return(null===(n=e.dataSource())||void 0===n?void 0:n.load(t))||(new m.Deferred).resolve([])},plainItems:function(){return e.items(!0)},isItemSelected:function(e){return e.selected},isSelectableItem:function(e){return"data"===(null==e?void 0:e.rowType)&&!e.isNewRow},getItemData:function(e){return(null==e?void 0:e.oldData)||(null==e?void 0:e.data)||e},filter:function(){return e.getCombinedFilter(n)},totalCount:function(){return e.totalCount()},onSelectionChanged:this._updateSelectedItems.bind(this)}},_updateSelectColumn:function(){var e=this.getController("columns"),t=this.isSelectColumnVisible();e.addCommandColumn({type:"selection",command:"select",visible:t,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:"dx-command-select",width:"auto",cellTemplate:y,headerCellTemplate:x}),e.columnOption("command:select","visible",t)},_createSelection:function(){var e=this._getSelectionConfig();return new g.default(e)},_fireSelectionChanged:function(e){e&&this.executeAction("onSelectionChanged",e);var t=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(t)},_updateCheckboxesState:function(e){var t=e.isDeferredMode,n=e.selectionFilter,i=e.selectedItemKeys,o=e.removedItemKeys;"onClick"===this.option(S)&&((t?n&&function(e,t){var n=0,i=e._dataController.store(),o=i&&i.key(),a=Array.isArray(o);if(!t.length)return!1;if(a&&Array.isArray(t[0])&&"and"===t[1]){for(var r=0;r<t.length;r++)if(Array.isArray(t[r])){if(t[r][0]!==o[n]||"="!==t[r][1])return!0;n++}return!1}return o!==t[0]}(this,n):i.length>1)?this.startSelectionWithCheckboxes():(t?n&&!n.length:0===i.length&&o.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(e){var t,n=this,i=n.option("selection.deferred"),o=n._selection.selectionFilter(),a=n._dataController,r=a.items();if(r){var s=n.isSelectionWithCheckboxes(),l=n.getChangedItemIndexes(r);n._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:o,isDeferredMode:i}),(l.length||s!==n.isSelectionWithCheckboxes())&&a.updateItems({changeType:"updateSelection",itemIndexes:l}),i?(n.option("selectionFilter",o),t={}):(e.addedItemKeys.length||e.removedItemKeys.length)&&(n._selectedItemsInternalChange=!0,n.option("selectedRowKeys",e.selectedItemKeys.slice(0)),n._selectedItemsInternalChange=!1,t={selectedRowsData:e.selectedItems.slice(0),selectedRowKeys:e.selectedItemKeys.slice(0),currentSelectedRowKeys:e.addedItemKeys.slice(0),currentDeselectedRowKeys:e.removedItemKeys.slice(0)}),n._fireSelectionChanged(t)}},getChangedItemIndexes:function(e){for(var t=[],n=this.option("selection.deferred"),i=0,o=e.length;i<o;i++){var a=e[i],r=this.isRowSelected(n?a.data:a.key);this._selection.isDataItem(a)&&a.isSelected!==r&&t.push(i)}return t},callbackNames:function(){return["selectionChanged"]},optionChanged:function(e){var t=this;switch(this.callBase(e),e.name){case"selection":var n=this._selectionMode;if(this.init(),"selection.showCheckBoxesMode"!==e.fullName){var i=this._selectionMode,o=this.option("selectedRowKeys");n!==i&&("single"===i?o.length>1&&(o=[o[0]]):"multiple"!==i&&(o=[])),this.selectRows(o).always((function(){t._fireSelectionChanged()}))}this.getController("columns").updateColumns(),e.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(e.value),e.handled=!0;break;case"selectedRowKeys":var a=e.value||[];!Array.isArray(a)||this._selectedItemsInternalChange||!this.component.getDataSource()&&a.length||this.selectRows(a),e.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(e){return this._selection.isItemSelected(e)},isSelectColumnVisible:function(){return"multiple"===this.option(k)&&("always"===this.option(S)||"onClick"===this.option(S)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(S)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var e=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&e.length?this.selectedItemKeys(e):(new m.Deferred).resolve().promise()},selectedItemKeys:function(e,t,n,i){return this._selection.selectedItemKeys(e,t,n,i)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(e,t){return this.selectedItemKeys(e,t)},deselectRows:function(e){return this.selectedItemKeys(e,!0,!0)},selectRowsByIndexes:function(e){var t=this._dataController.items(),n=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),(0,l.each)(e,(function(){var e=t[this];e&&"data"===e.rowType&&n.push(e.key)})),this.selectRows(n)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(e,t){t=t||{},this.isSelectionWithCheckboxes()&&(t.control=!0);var n=e+this._dataController.getRowIndexOffset()-this._dataController.getRowIndexOffset(!0);return this._selection.changeItemSelection(n,t)},focusedItemIndex:function(e){if(!(0,s.isDefined)(e))return this._selection._focusedItemIndex;this._selection._focusedItemIndex=e},isSelectionWithCheckboxes:function(){return"multiple"===this.option(k)&&("always"===this.option(S)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){var e=this;return"multiple"===e.option(k)&&!e.isSelectionWithCheckboxes()&&(e._isSelectionWithCheckboxes=!0,e._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){var e=this;return!!e._isSelectionWithCheckboxes&&(e._isSelectionWithCheckboxes=!1,e._updateSelectColumn(),!0)}}))},extenders:{controllers:{data:{init:function(){var e=this.getController("selection"),t=this.option("selection.deferred");this.callBase.apply(this,arguments),t&&e._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var e=this;return e.callBase().done((function(){e.getController("selection").refresh()}))},_processDataItem:function(e,t){var n=this,i=n.getController("selection"),o=i.isSelectColumnVisible(),a=t.isDeferredSelection=void 0===t.isDeferredSelection?this.option("selection.deferred"):t.isDeferredSelection,r=this.callBase.apply(this,arguments);if(r.isSelected=i.isRowSelected(a?r.data:r.key),o&&r.values)for(var s=0;s<t.visibleColumns.length;s++)if("select"===t.visibleColumns[s].command){r.values[s]=r.isSelected;break}return r},refresh:function(e){var t=this,n=new m.Deferred;return this.callBase.apply(this,arguments).done((function(){!e||e.selection?t.getController("selection").refresh().done(n.resolve).fail(n.reject):n.resolve()})).fail(n.reject),n.promise()},_handleDataChanged:function(e){this.callBase.apply(this,arguments),e&&"refresh"!==e.changeType||this._repaintChangesOnly||this.getController("selection").focusedItemIndex(-1)},_applyChange:function(e){var t=this;if(!e||"updateSelection"!==e.changeType)return this.callBase.apply(this,arguments);e.items.forEach((function(e,n){var i=t._items[n];i&&(i.isSelected=e.isSelected,i.values=e.values)}))},_endUpdateCore:function(){var e=this._changes,t=e.length>1&&e.every((function(e){return"updateSelection"===e.changeType}));if(t){var n=e.map((function(e){return e.itemIndexes||[]})).reduce((function(e,t){return e.concat(t)}));this._changes=[{changeType:"updateSelection",itemIndexes:n}]}this.callBase.apply(this,arguments)}},contextMenu:{_contextMenuPrepared:function(e){var t=e.event;t.originalEvent&&"dxhold"!==t.originalEvent.type||e.items&&e.items.length>0||D(this,t)}}},views:{columnHeadersView:{init:function(){var e=this;e.callBase(),e.getController("selection").selectionChanged.add(e._updateSelectAllValue.bind(e))},_updateSelectAllValue:function(){var e=this,t=e.element(),n=t&&t.find(".dx-select-checkbox");if(t&&n.length&&"multiple"===e.option("selection.mode")){var i=e.getController("selection").isSelectAll(),o=!1!==i,a=e.option("selection.allowSelectAll")?!e.getController("data").isEmpty():o;n.dxCheckBox("instance").option({visible:a,value:i})}},_handleDataChanged:function(e){this.callBase(e),e&&"refresh"!==e.changeType||this._updateSelectAllValue()},_renderSelectAllCheckBox:function(e,t){var n=this,o=n.getController("selection"),a=n.getController("data").isEmpty(),r=(0,i.default)("<div>").appendTo(e).addClass(C);return n.setAria("label",h.default.format("dxDataGrid-ariaSelectAll"),e),n.getController("editorFactory").createEditor(r,(0,u.extend)({},t,{parentType:"headerRow",dataType:"boolean",value:o.isSelectAll(),editorOptions:{visible:!a&&(n.option("selection.allowSelectAll")||!1!==o.isSelectAll())},tabIndex:n.option("useLegacyKeyboardNavigation")?-1:n.option("tabIndex")||0,setValue:function(e,t){var i=n.option("selection.allowSelectAll");t.component.option("visible",i||!1!==t.component.option("value")),t.event&&o.isSelectAll()!==e&&(t.value&&!i?t.component.option("value",!1):t.value?o.selectAll():o.deselectAll(),t.event.preventDefault())}})),r},_attachSelectAllCheckBoxClickEvent:function(e){o.default.on(e,c.name,this.createAction((function(e){var t=e.event;(0,i.default)(t.target).closest(".dx-select-checkbox").length||o.default.trigger((0,i.default)(t.currentTarget).children(".dx-select-checkbox"),c.name),t.preventDefault()})))}},rowsView:{renderSelectCheckBoxContainer:function(e,t){"data"!==t.rowType||t.row.isNewRow?r.default.setEmptyText(e):(e.addClass(b),this._attachCheckBoxClickEvent(e),this.setAria("label",h.default.format("dxDataGrid-ariaSelectRow"),e),this._renderSelectCheckBox(e,t))},_renderSelectCheckBox:function(e,t){var n=(0,i.default)("<div>").addClass(C).appendTo(e);return this.getController("editorFactory").createEditor(n,(0,u.extend)({},t.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:t.value,setValue:function(e,t){var n;"keydown"===(null==t||null===(n=t.event)||void 0===n?void 0:n.type)&&o.default.trigger(t.element,c.name,t)},row:t.row})),n},_attachCheckBoxClickEvent:function(e){o.default.on(e,c.name,this.createAction((function(e){var t=this.getController("selection"),n=e.event,o=this.getRowIndex((0,i.default)(n.currentTarget).closest(".dx-row"));o>=0&&(t.startSelectionWithCheckboxes(),t.changeItemSelection(o,{shift:n.shiftKey}),(0,i.default)(n.target).closest(".dx-select-checkbox").length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[o]}))})))},_update:function(e){var t=this,n=t.getTableElements();"updateSelection"===e.changeType?n.length>0&&((0,l.each)(n,(function(n,o){(0,l.each)(e.itemIndexes||[],(function(n,a){var r;if(e.items[a]&&(r=t._getRowElements((0,i.default)(o)).eq(a)).length){var s=e.items[a].isSelected;r.toggleClass(w,void 0!==s&&s).find(".dx-select-checkbox").dxCheckBox("option","value",s),t.setAria("selected",s,r)}}))})),t._updateCheckboxesClass()):t.callBase(e)},_createTable:function(){var e=this,t=e.option("selection.mode"),n=e.callBase.apply(e,arguments);return"none"!==t&&("onLongTap"!==e.option(S)&&d.touch||o.default.on(n,(0,f.addNamespace)(p.default.name,"dxDataGridRowsView"),".dx-data-row",e.createAction((function(t){D(e.component,t.event),t.event.stopPropagation()}))),o.default.on(n,"mousedown selectstart",e.createAction((function(e){var t=e.event;t.shiftKey&&t.preventDefault()})))),n},_createRow:function(e){var t=this.callBase.apply(this,arguments);if(e){var n=!!e.isSelected;n&&t.addClass(w),this.setAria("selected",n,t)}return t},_rowClick:function(e){var t=this,n=e.event,o=(0,i.default)(n.target).closest(".dx-selection-disabled").length;t.isClickableElement((0,i.default)(n.target))||(o||"multiple"===t.option(k)&&"always"===t.option(S)||t.getController("selection").changeItemSelection(e.rowIndex,{control:(0,f.isCommandKeyPressed)(n),shift:n.shiftKey})&&(n.preventDefault(),e.handled=!0),t.callBase(e))},isClickableElement:function(e){return!!e.closest(".dx-command-select").length},_renderCore:function(e){this.callBase(e),this._updateCheckboxesClass()},_updateCheckboxesClass:function(){var e=this.getTableElements(),t=this.getController("selection"),n=t.isSelectColumnVisible()&&!t.isSelectionWithCheckboxes();(0,l.each)(e,(function(e,t){(0,i.default)(t).toggleClass("dx-select-checkboxes-hidden",n)}))}}}}};t.selectionModule=I},35846:function(e,t,n){t.sortingModule=void 0;var i=c(n(68374)),o=c(n(55994)),a=n(95429),r=n(35922),s=n(13306),l=c(n(164)),u=c(n(28109)),d=n(39611);function c(e){return e&&e.__esModule?e:{default:e}}var h={defaultOptions:function(){return{sorting:{mode:"single",ascendingText:u.default.format("dxDataGrid-sortingAscendingText"),descendingText:u.default.format("dxDataGrid-sortingDescendingText"),clearText:u.default.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}},extenders:{views:{columnHeadersView:(0,s.extend)({},l.default,{_createRow:function(e){var t=this,n=this.callBase(e);return"header"===e.rowType&&o.default.on(n,(0,d.addNamespace)(a.name,"dxDataGridColumnHeadersView"),"td",this.createAction((function(e){t._processHeaderAction(e.event,n)}))),n},_processHeaderAction:function(e,t){if((0,i.default)(e.currentTarget).parent().get(0)===t.get(0)){var n=this,o=null,a=(0,i.default)(e.currentTarget),s=a.parent().index(),l=-1;[].slice.call(n.getCellElements(s)).some((function(e,t){if(e===a.get(0))return l=t,!0}));var u=n._columnsController.getVisibleColumns(s)[l],c=n.getController("editing"),h=n.option("editing.mode");(!c||!c.isEditing()||"batch"!==h&&"cell"!==h)&&n._isSortableElement((0,i.default)(e.target))&&(!u||(0,r.isDefined)(u.groupIndex)||u.command||(e.shiftKey?o="shift":(0,d.isCommandKeyPressed)(e)&&(o="ctrl"),setTimeout((function(){n._columnsController.changeSortOrder(u.index,o)}))))}},_renderCellContent:function(e,t){var n=this,i=t.column;i.command||"header"!==t.rowType||n._applyColumnState({name:"sort",rootElement:e,column:i,showColumnLines:n.option("showColumnLines")}),n.callBase(e,t)},_columnOptionChanged:function(e){var t=e.changeTypes;1===t.length&&t.sorting?this._updateIndicators("sort"):this.callBase(e)},optionChanged:function(e){"sorting"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}),headerPanel:(0,s.extend)({},l.default,{_createGroupPanelItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return o.default.on(i,(0,d.addNamespace)(a.name,"dxDataGridHeaderPanel"),n.createAction((function(){n._processGroupItemAction(t.index)}))),n._applyColumnState({name:"sort",rootElement:i,column:{alignment:n.option("rtlEnabled")?"right":"left",allowSorting:t.allowSorting,sortOrder:"desc"===t.sortOrder?"desc":"asc"},showColumnLines:!0}),i},_processGroupItemAction:function(e){var t=this;setTimeout((function(){return t.getController("columns").changeSortOrder(e)}))},optionChanged:function(e){"sorting"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}})}}};t.sortingModule=h},164:function(e,t,n){t.default=void 0;var i,o=n(35922),a=(i=n(68374))&&i.__esModule?i:{default:i},r="dx-sort-index-icon",s={_applyColumnState:function(e){var t,n,i=this,s=i.option("sorting.mode"),l=e.rootElement,u=e.column,d=i._getIndicatorContainer(l);if("sort"===e.name){l.find(".dx-sort").remove(),!d.children().length&&d.remove();var c="none"!==s&&u.allowSorting;return(0,o.isDefined)(u.groupIndex)||!c&&!(0,o.isDefined)(u.sortOrder)||(t="asc"===u.sortOrder?"ascending":"descending",n=i.callBase(e).toggleClass("dx-sort-up","asc"===u.sortOrder).toggleClass("dx-sort-down","desc"===u.sortOrder),i.getController&&!!i.getController("columns").columnOption("sortIndex:1")&&i.option("sorting.showSortIndexes")&&u.sortIndex>=0&&((0,a.default)("<span>").addClass(r).text(u.sortIndex+1).appendTo(n),n.addClass("dx-sort-index")),c&&e.rootElement.addClass(i.addWidgetPrefix("action"))),(0,o.isDefined)(u.sortOrder)?i.setAria("sort",t,l):i.setAria("sort","none",l),n}return i.callBase(e)},_getIndicatorClassName:function(e){return"sort"===e?"dx-sort":"sortIndex"===e?r:this.callBase(e)},_renderIndicator:function(e){var t=e.column,n=e.container,i=e.indicator;if("sort"===e.name){var a=this.option("rtlEnabled");if((0,o.isDefined)(t.sortOrder)||i&&i.addClass("dx-sort-none"),n.children().length&&(!a&&"left"===e.columnAlignment||a&&"right"===e.columnAlignment))return void n.prepend(i)}this.callBase(e)},_updateIndicator:function(e,t,n){if("sort"!==n||!(0,o.isDefined)(t.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(e,t){var n=this.callBase(e);return t?n:n&&n.not(".dx-sort-none")}};t.default=s,e.exports=t.default,e.exports.default=t.default},10093:function(e,t,n){t.stateStoringModule=void 0;var i=n(20576),o=n(35922),a=n(13306),r=n(31489),s=n(62754),l=function(e){var t=e.getController("columns"),n=e.getController("selection"),i=e.getController("export"),o=e.getController("data");t&&t.columnsChanged.add((function(){e.updateState({columns:t.getUserState()})})),n&&n.selectionChanged.add((function(t){e.updateState({selectedRowKeys:t.selectedRowKeys,selectionFilter:t.selectionFilter})})),o&&(e._initialPageSize=e.option("paging.pageSize"),e._initialFilterValue=e.option("filterValue"),o.changed.add((function(){var t=function(e){var t=e.getView("pagerView"),n=e.getController("data"),i={allowedPageSizes:t?t.getPageSizes():void 0,filterPanel:{filterEnabled:e.option("filterPanel.filterEnabled")},filterValue:e.option("filterValue"),focusedRowKey:e.option("focusedRowEnabled")?e.option("focusedRowKey"):void 0};return(0,a.extend)(i,n.getUserState())}(e);e.updateState(t)}))),i&&i.selectionOnlyChanged.add((function(){e.updateState({exportSelectionOnly:i.selectionOnly()})}))},u={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:r.StateStoringController},extenders:{views:{rowsView:{init:function(){var e=this,t=e.getController("data");e.callBase(),t.stateLoaded.add((function(){if(t.isLoaded()&&!t.getDataSource()){e.setLoading(!1),e.renderNoDataText();var n=e.component.getView("columnHeadersView");n&&n.render(),e.component._fireContentReadyAction()}}))}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),l(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(e){var t=this.callBase.apply(this,arguments);return void 0!==e&&this.applyState((0,a.extend)({},e)),t},updateState:function(e){if(this.isEnabled()){var t=this.state(),n=(0,a.extend)({},t,e),o=(0,i.getKeyHash)(t),r=(0,i.getKeyHash)(n);(0,i.equalByValue)(o,r)||((0,a.extend)(this._state,e),this.save())}else(0,a.extend)(this._state,e)},applyState:function(e){var t=this,n=e.allowedPageSizes,i=e.searchText,a=e.selectedRowKeys,r=e.selectionFilter,s=t.getController("export"),l=t.getController("columns"),u=t.getController("data"),d=t.option("scrolling.mode"),c="virtual"===d||"infinite"===d,h=!0===t.option("pager.visible")&&t.option("pager.showPageSizeSelector");t.component.beginUpdate(),l&&l.setUserState(e.columns),s&&s.selectionOnly(e.exportSelectionOnly),a&&t.option("selectedRowKeys",a),t.option("selectionFilter",r),n&&"auto"===t.option("pager.allowedPageSizes")&&(t.option("pager").allowedPageSizes=n),t.option("focusedRowEnabled")&&void 0!==e.focusedRowKey&&(t.option("focusedRowIndex",-1),t.option("focusedRowKey",e.focusedRowKey)),t.component.endUpdate(),t.option("searchPanel.text",i||""),t.option("filterValue",function(e,t){var n=e.getController("filterSync"),i=e.getController("columns"),o=t.columns||void 0!==t.filterValue;return n?o?t.filterValue||n.getFilterValueFromColumns(t.columns):e._initialFilterValue||n.getFilterValueFromColumns(i.getColumns()):null}(t,e)),t.option("filterPanel.filterEnabled",!e.filterPanel||e.filterPanel.filterEnabled),t.option("paging.pageIndex",e.pageIndex||0),t.option("paging.pageSize",c&&!h||!(0,o.isDefined)(e.pageSize)?t._initialPageSize:e.pageSize),u&&u.reset()}},columns:{getVisibleColumns:function(){var e=this.callBase.apply(this,arguments),t=this.getController("stateStoring");return t.isEnabled()&&!t.isLoaded()?[]:e}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var e=this,t=this.callBase,n=this.getController("stateStoring");if(n.isEnabled()&&!n.isLoaded()){clearTimeout(this._restoreStateTimeoutID);var i=new s.Deferred;return this._restoreStateTimeoutID=setTimeout((function(){n.load().always((function(){e._restoreStateTimeoutID=null})).done((function(){t.call(e),e.stateLoaded.fire(),i.resolve()})).fail((function(t){e.stateLoaded.fire(),e._handleLoadError(t||"Unknown error"),i.reject()}))})),i.promise()}this.isStateLoading()||t.call(this)},isLoading:function(){var e=this.getController("stateStoring");return this.callBase()||e.isLoading()},isStateLoading:function(){return(0,o.isDefined)(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}},selection:{_fireSelectionChanged:function(e){var t=this.getController("stateStoring"),n=this.option("selection.deferred");t.isLoading()&&n||this.callBase.apply(this,arguments)}}}}};t.stateStoringModule=u},31489:function(e,t,n){t.StateStoringController=void 0;var i=h(n(55994)),o=n(58201),a=h(n(12310)),r=h(n(96688)),s=n(36613),l=n(13306),u=n(95479),d=n(35922),c=n(62754);function h(e){return e&&e.__esModule?e:{default:e}}var f,p,g=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,m=function e(t){t&&(0,u.each)(t,(function(n,i){if((0,d.isPlainObject)(i)||Array.isArray(i))e(i);else if("string"==typeof i){var o=g.exec(i);o&&(t[n]=new Date(Date.UTC(+o[1],+o[2]-1,+o[3],+o[4],+o[5],+o[6])))}}))},_=a.default.ViewController.inherit((f=function(e){var t="sessionStorage"===e.type?(0,s.sessionStorage)():(0,o.getWindow)().localStorage;if(!t)throw new Error("E1007");return t},p=function(e){return(0,d.isDefined)(e.storageKey)?e.storageKey:"storage"},{_loadState:function(){var e=this.option("stateStoring");if("custom"===e.type)return e.customLoad&&e.customLoad();try{return JSON.parse(f(e).getItem(p(e)))}catch(e){r.default.log(e.message)}},_saveState:function(e){var t=this.option("stateStoring");if("custom"!==t.type)try{f(t).setItem(p(t),JSON.stringify(e))}catch(e){r.default.log(e.message)}else t.customSave&&t.customSave(e)},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var e=this;return e._state={},e._isLoaded=!1,e._isLoading=!1,e._windowUnloadHandler=function(){void 0!==e._savingTimeoutID&&e._saveState(e.state())},i.default.on((0,o.getWindow)(),"unload",e._windowUnloadHandler),e},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){var e=this;this._isLoading=!0;var t=(0,c.fromPromise)(this._loadState());return t.always((function(){e._isLoaded=!0,e._isLoading=!1})).done((function(t){null===t||(0,d.isEmptyObject)(t)||e.state(t)})),t},state:function(e){var t=this;if(!arguments.length)return(0,l.extend)(!0,{},t._state);t._state=(0,l.extend)({},e),m(t._state)},save:function(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout((function(){e._saveState(e.state()),e._savingTimeoutID=void 0}),e.option("stateStoring.savingTimeout"))},optionChanged:function(e){var t=this;"stateStoring"===e.name?(t.isEnabled()&&!t.isLoading()&&t.load(),e.handled=!0):t.callBase(e)},dispose:function(){clearTimeout(this._savingTimeoutID),i.default.off((0,o.getWindow)(),"unload",this._windowUnloadHandler)}}));t.StateStoringController=_},13615:function(e,t,n){t.default=void 0;var i=n(58664),o=y(n(68374)),a=n(35922),r=n(62754),s=y(n(18740)),l=n(68752),u=n(95479),d=n(13306),c=n(37518),h=n(47617),f=n(20576),p=y(n(97218)),g=n(16454),m=y(n(30343)),_=n(58201),v=y(n(55994));function y(e){return e&&e.__esModule?e:{default:e}}var x="virtual",b="scrolling.mode",w={year:function(e){return e&&e.getFullYear()},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},hour:function(e){return e&&e.getHours()},minute:function(e){return e&&e.getMinutes()},second:function(e){return e&&e.getSeconds()}},C=function(){var e=arguments[1],t=this.calculateCellValue(e);if(!(0,a.isDefined)(t))return null;if(S(this.dataType)){var n=arguments[0];return w[n](t)}if("number"===this.dataType){var i=arguments[0];return Math.floor(Number(t)/i)*i}};function S(e){return"date"===e||"datetime"===e}var k=function(e){e.get(0).textContent="\xa0"},D=function(e){e=e||[];for(var t=(0,g.normalizeSortingInfo)(e),n=0;n<e.length;n++)e&&e[n]&&void 0!==e[n].isExpanded&&(t[n].isExpanded=e[n].isExpanded),e&&e[n]&&void 0!==e[n].groupInterval&&(t[n].groupInterval=e[n].groupInterval);return t},I=function(e,t){var n=m.default.format(e,t.format)||e&&e.toString()||"",i={value:e,valueText:t.getDisplayFormat?t.getDisplayFormat(n):n,target:t.target||"row",groupInterval:t.groupInterval};return t.customizeText?t.customizeText.call(t,i):i.valueText},T=function(e,t){var n=e.displayFormat||e.columnCaption&&t[e.summaryType+"OtherColumn"]||t[e.summaryType];return I(e.value,{format:e.valueFormat,getDisplayFormat:function(t){return n?(0,l.format)(n,t,e.columnCaption):t},customizeText:e.customizeText})},E=function(e){var t=e.data&&e.data(),n=t&&t.dxComponents,i=n&&n[0];return i&&t[i]},A={renderNoDataText:function(e){if(e=e||this.element()){var t=this.addWidgetPrefix("nodata"),n=e.find("."+t).last(),i=this._dataController.isEmpty(),a=this._dataController.isLoading();n.length||(n=(0,o.default)("<span>").addClass(t).appendTo(e)),i&&!a?n.removeClass("dx-hidden").text(this._getNoDataText()):n.addClass("dx-hidden")}},renderLoadPanel:function(e,t,n){var i,a=this;a._loadPanel&&a._loadPanel.$element().remove(),(i=a.option("loadPanel"))&&("auto"===i.enabled?!n:i.enabled)?(i=(0,d.extend)({shading:!1,message:i.text,container:t},i),a._loadPanel=a._createComponent((0,o.default)("<div>").appendTo(t),p.default,i)):a._loadPanel=null},calculateLoadPanelPosition:function(e){var t=(0,o.default)((0,_.getWindow)());return(0,i.getHeight)(e)>(0,i.getHeight)(t)?{of:t,boundary:e,collision:"fit"}:{of:e}},getIndexByKey:function(e,t,n){var i=-1;if(void 0!==e&&Array.isArray(t)){n=arguments.length<=2?"key":n;for(var o=0;o<t.length;o++){var r=(0,a.isDefined)(n)?t[o][n]:t[o];if((0,f.equalByValue)(e,r)){i=o;break}}}return i},combineFilters:function(e,t){var n=[];t=t||"and";for(var i=0;i<e.length;i++)e[i]&&(n.length&&n.push(t),n.push(e[i]));if(1===n.length&&(n=n[0]),n.length)return n},checkChanges:function(e,t){for(var n=0,i=0;i<t.length;i++)e[t[i]]&&n++;return e.length&&e.length===n},equalFilterParameters:function e(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(!e(t[i],n[i]))return!1;return!0}return(0,a.isFunction)(t)&&t.columnIndex>=0&&(0,a.isFunction)(n)&&n.columnIndex>=0?t.columnIndex===n.columnIndex&&(0,h.toComparable)(t.filterValue)===(0,h.toComparable)(n.filterValue):(0,h.toComparable)(t)==(0,h.toComparable)(n)},proxyMethod:function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},formatValue:I,getFormatOptionsByColumn:function(e,t){return{format:e.format,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:t,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,t,n,i){return e.displayValueMap&&void 0!==e.displayValueMap[t]?e.displayValueMap[t]:e.calculateDisplayValue&&n&&"group"!==i?e.calculateDisplayValue(n):!e.lookup||"group"===i&&(e.calculateGroupValue||e.calculateDisplayValue)?t:e.lookup.calculateCellValue(t)},getGroupRowSummaryText:function(e,t){for(var n="(",i=0;i<e.length;i++){var o=e[i];n+=(i>0?", ":"")+T(o,t)}return n+")"},getSummaryText:T,normalizeSortingInfo:D,getFormatByDataType:function(e){switch(e){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(e,t){var n=[],i=e.dataField||e.name,o=s.default.getGroupInterval(e);return o?((0,u.each)(o,(function(a,r){n.push(t?{selector:i,groupInterval:r,isExpanded:a<o.length-1}:C.bind(e,r))})),n):(t?n=[{selector:i,isExpanded:!1}]:(n=function(t){var n=e.calculateCellValue(t);return void 0!==n&&""!==n||(n=null),n},e.sortingMethod&&(n=[{selector:n,compare:e.sortingMethod.bind(e)}])),n)},equalSortParameters:function(e,t,n){if(e=D(e),t=D(t),Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(o=e[i].selector,r=t[i].selector,!((0,a.isFunction)(o)&&(0,a.isFunction)(r)&&o.originalCallback&&r.originalCallback?o.originalCallback===r.originalCallback&&o.columnIndex===r.columnIndex:o===r)||e[i].desc!==t[i].desc||e[i].groupInterval!==t[i].groupInterval||!n&&Boolean(e[i].isExpanded)!==Boolean(t[i].isExpanded))return!1;return!0}return(!e||!e.length)==(!t||!t.length);var o,r},getPointsByColumns:function(e,t,n,i){for(var o,a,r,s=e.length,l=!1,u=i||0,d=[],h=0;h<=s;h++){h<s&&(a=(o=e.eq(h)).offset(),r="rtl"===o.css("direction"));var f={index:u,x:a?a.left+(!n&&r^h===s?(0,c.getBoundingRect)(o[0]).width:0):0,y:a?a.top+(n&&h===s?(0,c.getBoundingRect)(o[0]).height:0):0,columnIndex:u};if(!n&&h>0){var p=e.eq(h-1).offset();p.top<f.y&&(f.y=p.top)}t&&(l=t(f)),l||d.push(f),u++}return d},getExpandCellTemplate:function(){return{allowRenderToDetachedContainer:!0,render:function(e,t){var n=(0,o.default)(e);if(!(0,a.isDefined)(t.value)||t.data&&t.data.isContinuation||t.row.isNewRow)k(n);else{var i=t.component.getView("rowsView");n.addClass("dx-datagrid-expand").addClass("dx-selection-disabled"),(0,o.default)("<div>").addClass(t.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(n),i.setAria("label",t.value?i.localize("dxDataGrid-ariaCollapse"):i.localize("dxDataGrid-ariaExpand"),n)}}}},setEmptyText:k,isDateType:S,getSelectionRange:function(e){try{if(e)return{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}catch(e){}return{}},setSelectionRange:function(e,t){try{e&&e.setSelectionRange&&e.setSelectionRange(t.selectionStart,t.selectionEnd)}catch(e){}},focusAndSelectElement:function(e,t){var n=t.is(":focus");v.default.trigger(t,"focus");var i=e.option("editing.selectTextOnEditStart"),o=t.get(0);if(!n&&i&&t.is(".dx-texteditor-input")&&!t.is("[readonly]")){var a=E(t.closest(".dx-texteditor"));(0,r.when)(a&&a._loadItemDeferred).done((function(){o.select()}))}},getWidgetInstance:E,getLastResizableColumnIndex:function(e,t){var n,i=e.some((function(e){return e&&!e.command&&!e.fixed&&!1!==e.allowResizing}));for(n=e.length-1;e[n];n--){var o=e[n],a=t&&t[n],r=!i||!1!==o.allowResizing;if(!o.command&&!o.fixed&&"adaptiveHidden"!==a&&r)break}return n},isElementInCurrentGrid:function(e,t){return!(!t||!t.length)&&t.closest("."+e.getWidgetContainerClass()).parent().is(e.component.$element())},isVirtualRowRendering:function(e){var t=e.option("scrolling.rowRenderingMode"),n=e.option(b)===x,i="infinite"===e.option(b);return!(!1!==e.option("scrolling.legacyMode")||!n&&!i)||t===x}};t.default=A,e.exports=t.default,e.exports.default=t.default},33562:function(e,t,n){t.validatingModule=void 0;var i=n(58664),o=k(n(68374)),a=k(n(55994)),r=k(n(12310)),s=k(n(13615)),l=n(60637),u=n(20576),d=n(95479),c=n(35922),h=n(13306),f=n(31421),p=k(n(28109)),g=k(n(63008)),m=k(n(93786)),_=k(n(90964)),v=k(n(39562)),y=k(n(89799)),x=k(n(96688)),b=n(62754),w=k(n(2492)),C=n(68752),S=k(n(47810));function k(e){return e&&e.__esModule?e:{default:e}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var I="invalid",T="revert-tooltip",E="rowsview",A="invalid-message",O="validator",P="dx-validation-pending",M="content",R="__DX_INSERT_INDEX__",B="batch",V="cell",F=["popup","form"],L="valid",H="invalid",N="pending",z="insert",W="remove",G="cancel",j=function(e){return(0,c.isDefined)(e)&&e!==G},q=function(e,t){return void 0!==e||void 0===e&&t&&!t.isNewRow},$={defaultOptions:function(){return{editing:{texts:{validationCancelChanges:p.default.format("dxDataGrid-validationCancelChanges")}}}},controllers:{validating:r.default.Controller.inherit({init:function(){this._editingController=this.getController("editing"),this.createAction("onRowValidating"),this._validationState||(this._validationState=[])},_rowIsValidated:function(e){var t=this._getValidationData(null==e?void 0:e.key);return!!t&&!!t.validated},_getValidationData:function(e,t){var n=this._validationState.filter((function(t){return(0,u.equalByValue)(t.key,e)}))[0];return!n&&t&&(n={key:e,isValid:!0},this._validationState.push(n)),n},_getBrokenRules:function(e,t){return t?t.brokenRules||t.brokenRule&&[t.brokenRule]:e.brokenRules||[]},_rowValidating:function(e,t){var n=new b.Deferred,i=this._editingController.getChangeByKey(null==e?void 0:e.key),o=this._getBrokenRules(e,t),a={brokenRules:o,isValid:t?t.isValid:e.isValid,key:i.key,newData:i.data,oldData:this._editingController._getOldData(i.key),promise:null,errorText:this.getHiddenValidatorsErrorText(o)};return this.executeAction("onRowValidating",a),(0,b.when)((0,b.fromPromise)(a.promise)).always((function(){e.isValid=a.isValid,e.errorText=a.errorText,n.resolve(a)})),n.promise()},getHiddenValidatorsErrorText:function(e){var t=[];return(0,d.each)(e,(function(e,n){var i=n.column,o=i&&void 0!==i.groupIndex&&!i.showWhenGrouped,a=i&&i.visible;n.validator.$element().parent().length||a&&!o||t.push(n.message)})),t.join(", ")},validate:function(e){var t=this,n=!0,i=this._editingController,o=new b.Deferred,a=[],r=i.getEditMode();if(e=e||"row"===r,this._isValidationInProgress)return o.resolve(!1).promise();if(this._isValidationInProgress=!0,e){i.addDeferred(o);var s=i.getChanges();(0,d.each)(s,(function(e,i){var o=i.type,r=i.key;if("remove"!==o){var s=t._getValidationData(r,!0),l=t.validateGroup(s);a.push(l),l.done((function(e){s.validated=!0,n=n&&e.isValid}))}}))}else if(this._currentCellValidator){var l=this.validateGroup(this._currentCellValidator._findGroup());a.push(l),l.done((function(e){n=e.isValid}))}return b.when.apply(void 0,a).done((function(){t._isValidationInProgress=!1,o.resolve(n)})),o.promise()},validateGroup:function(e){var t,n,i=this,o=new b.Deferred,a=e&&_.default.getGroupConfig(e);return null!=a&&a.validators.length&&(this.resetRowValidationResults(e),n=_.default.validateGroup(e)),(0,b.when)((null===(t=n)||void 0===t?void 0:t.complete)||n).done((function(t){(0,b.when)(i._rowValidating(e,t)).done(o.resolve)})),o.promise()},isRowDataModified:function(e){return!(0,c.isEmptyObject)(e.data)},updateValidationState:function(e){var t=this._editingController.getEditMode(),n=e.key,i=this._getValidationData(n,!0);if(-1===F.indexOf(t)){if(e.type===z&&!this.isRowDataModified(e))return void(i.isValid=!0);if(this.setDisableApplyValidationResults(!0),_.default.getGroupConfig(i)){var o=_.default.validateGroup(i);(0,b.when)(o.complete||o).done((function(e){i.isValid=e.isValid,i.brokenRules=e.brokenRules}))}else i.brokenRules&&i.brokenRules.length||(i.isValid=!0);this.setDisableApplyValidationResults(!1)}else i.isValid=!0},setValidator:function(e){this._currentCellValidator=e},renderCellPendingIndicator:function(e){var t=e.find(".dx-pending-indicator");if(!t.length){var n=e;t=(0,o.default)("<div>").appendTo(n).addClass("dx-pending-indicator"),this._createComponent(t,w.default),e.addClass(P)}},disposeCellPendingIndicator:function(e){var t=e.find(".dx-pending-indicator");if(t.length){var n=w.default.getInstance(t);n&&(n.dispose(),n.$element().remove()),e.removeClass(P)}},validationStatusChanged:function(e){var t=e.validator,n=t.option("validationGroup"),i=t.option("dataGetter")().column;this.updateCellValidationResult({rowKey:n.key,columnIndex:i.index,validationResult:e})},validatorInitialized:function(e){e.component.on("validating",this.validationStatusChanged.bind(this)),e.component.on("validated",this.validationStatusChanged.bind(this))},validatorDisposing:function(e){var t=e.component,n=t.option("validationGroup"),i=t.option("dataGetter")().column,o=this.getCellValidationResult({rowKey:null==n?void 0:n.key,columnIndex:i.index});j(o)&&o.status===N&&this.cancelCellValidationResult({change:n,columnIndex:i.index})},applyValidationResult:function(e,t){var n=t.validator,i=n.option("validationGroup"),o=n.option("dataGetter")().column;if(t.brokenRules&&t.brokenRules.forEach((function(e){e.columnIndex=o.index,e.column=o})),e){var r=this.getCellValidationResult({rowKey:i.key,columnIndex:o.index}),s=j(r)&&r.disabledPendingId===t.id;if(this._disableApplyValidationResults||s)return;if(t.status===H){var l=e.find(":focus");(0,f.focused)(l)||(a.default.trigger(l,"focus"),a.default.trigger(l,m.default.down))}var u=!o.editCellTemplate&&this.getController("editorFactory").getEditorInstance(e);t.status===N?u?u.option("validationStatus",N):this.renderCellPendingIndicator(e):u?u.option("validationStatus",L):this.disposeCellPendingIndicator(e),e.toggleClass(this.addWidgetPrefix(I),t.status===H)}},_syncInternalEditingData:function(e){var t,n=this._editingController,i=n.getChangeByKey(e.key),o=n._getOldData(e.key),a=null===(t=e.row)||void 0===t?void 0:t.oldData;i&&a&&!o&&n._addInternalData({key:e.key,oldData:a})},createValidator:function(e,t){var n=this,i=this._editingController,a=e.column,r=a.showEditorAlways;if(!(0,c.isDefined)(a.command)&&a.validationRules&&Array.isArray(a.validationRules)&&a.validationRules.length){var s=i.getIndexByKey(e.key,i.getChanges())>-1;if(!s){if(!r){var d=this.getController("columns");r=((null==d?void 0:d.getVisibleColumns())||[]).some((function(e){return e.showEditorAlways}))}var f,p,g=(0,u.equalByValue)(this.option("editing.editRowKey"),e.key),m=i.isCellOrBatchEditMode()&&i.allowUpdating({row:e.row});s=g||m&&r,m&&r&&i._addInternalData({key:e.key,oldData:null!==(f=null===(p=e.row)||void 0===p?void 0:p.oldData)&&void 0!==f?f:e.data})}if(s){if(t&&!t.length)return void x.default.log("E1050");this._syncInternalEditingData(e);var _=this._getValidationData(e.key,!0),y=function(){var t=i.getChangeByKey(null==_?void 0:_.key),n=a.calculateCellValue((null==t?void 0:t.data)||{});return void 0!==n?n:e.value},b=t&&t.hasClass("dx-widget");t&&t.addClass(this.addWidgetPrefix(O));var w=new v.default(t||(0,o.default)("<div>"),{name:a.caption,validationRules:(0,h.extend)(!0,[],a.validationRules),validationGroup:_,adapter:b?null:{getValue:y,applyValidationResults:function(e){n.applyValidationResult(t,e)}},dataGetter:function(){var e=null==_?void 0:_.key,t=i.getChangeByKey(e),n=i._getOldData(e);return{data:(0,l.createObjectWithChanges)(n,null==t?void 0:t.data),column:a}},onInitialized:this.validatorInitialized.bind(this),onDisposing:this.validatorDisposing.bind(this)});if(b){var C=w.option("adapter");C&&(C.getValue=y,C.validationRequestsCallbacks=[])}return w}}},setDisableApplyValidationResults:function(e){this._disableApplyValidationResults=e},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults},isCurrentValidatorProcessing:function(e){var t=e.rowKey,n=e.columnIndex;return this._currentCellValidator&&(0,u.equalByValue)(this._currentCellValidator.option("validationGroup").key,t)&&this._currentCellValidator.option("dataGetter")().column.index===n},validateCell:function(e){var t={rowKey:e.option("validationGroup").key,columnIndex:e.option("dataGetter")().column.index},n=this.getCellValidationResult(t),i=j(n);i||(n=e.validate());var o=new b.Deferred,a=e.option("adapter");return i&&n.status===N&&(this.updateCellValidationResult(t),a.applyValidationResults(n)),(0,b.when)(n.complete||n).done((function(e){i&&a.applyValidationResults(e),o.resolve(e)})),o.promise()},updateCellValidationResult:function(e){var t=e.rowKey,n=e.columnIndex,i=e.validationResult,o=this._getValidationData(t);if(o){var a;if(o.validationResults||(o.validationResults={}),i){if(a=(0,h.extend)({},i),o.validationResults[n]=a,i.status===N&&(this._editingController.getEditMode()===V&&(a.deferred=new b.Deferred,a.complete.always((function(){a.deferred.resolve()})),this._editingController.addDeferred(a.deferred)),this._disableApplyValidationResults))return void(a.disabledPendingId=i.id)}else a=o.validationResults[n];a&&a.disabledPendingId&&delete a.disabledPendingId}},getCellValidationResult:function(e){var t,n=e.rowKey,i=e.columnIndex,o=this._getValidationData(n,!0);return null==o||null===(t=o.validationResults)||void 0===t?void 0:t[i]},removeCellValidationResult:function(e){var t=e.change,n=e.columnIndex,i=this._getValidationData(null==t?void 0:t.key);i&&i.validationResults&&(this.cancelCellValidationResult({change:t,columnIndex:n}),delete i.validationResults[n])},cancelCellValidationResult:function(e){var t=e.change,n=e.columnIndex,i=this._getValidationData(t.key);if(t&&i.validationResults){var o=i.validationResults[n];o&&(o.deferred&&o.deferred.reject(G),i.validationResults[n]=G)}},resetRowValidationResults:function(e){e&&(e.validationResults&&delete e.validationResults,delete e.validated)},isInvalidCell:function(e){var t=e.rowKey,n=e.columnIndex,i=this.getCellValidationResult({rowKey:t,columnIndex:n});return j(i)&&i.status===H},getCellValidator:function(e){var t=e.rowKey,n=e.columnIndex,i=this._getValidationData(t),o=i&&_.default.getGroupConfig(i),a=o&&o.validators;return a&&a.filter((function(e){var t=e.option("dataGetter")().column;return!!t&&t.index===n}))[0]},setCellValidationStatus:function(e){var t=this.getCellValidationResult({rowKey:e.key,columnIndex:e.column.index});(0,c.isDefined)(t)?e.validationStatus=t!==G?t.status:G:delete e.validationStatus}})},extenders:{controllers:{editing:{_addChange:function(e){var t=this.callBase.apply(this,arguments),n=this.getController("validating");return t&&e.type!==W&&n.updateValidationState(t),t},_handleChangesChange:function(e){this.callBase.apply(this,arguments);var t=this.getController("validating");e.value.forEach((function(e){void 0===t._getValidationData(e.key)&&t.updateValidationState(e)}))},_updateRowAndPageIndices:function(){var e=this,t=this,n=t.getView("rowsView").getTopVisibleItemIndex(),i=n;(0,d.each)(t.getChanges(),(function(o,a){var r=a.key,s=a.type,l=e.getController("validating")._getValidationData(r);l&&!l.isValid&&l.pageIndex!==t._pageIndex&&(l.pageIndex=t._pageIndex,l.rowIndex=s===z?n:i,i++)}))},_getValidationGroupsInForm:function(e){return{validationGroup:this.getController("validating")._getValidationData(e.key,!0)}},_validateEditFormAfterUpdate:function(e,t){t&&this._editForm&&!e.isNewRow&&this._editForm.validate(),this.callBase.apply(this,arguments)},_prepareEditCell:function(e){var t=this.callBase.apply(this,arguments),n=this.getController("validating");return t&&e.column.showEditorAlways&&n.updateValidationState({key:e.key}),t},processItems:function(e,t){var n=this,i=this.getChanges(),o=this.getController("data"),a=this.getController("validating"),r=(e=this.callBase(e,t)).length,s=function(t,n){var i={key:t.key};if(!(function(e,t){var n=-1,i=e.type===z,a=e.key;return(0,d.each)(t,(function(e,t){if((0,u.equalByValue)(a,i?t.key:o.keyOf(t)))return n=e,!1})),n}(t,e)>=0)){n.rowIndex=n.rowIndex>r?n.rowIndex%r:n.rowIndex;var a=n.rowIndex;i[R]=1,e.splice(a,0,i)}};return this.getEditMode()===B&&"prepend"!==t&&"append"!==t&&i.forEach((function(e){var t=e.key,i=a._getValidationData(t);i&&e.type&&i.pageIndex===n._pageIndex&&(null==e?void 0:e.pageIndex)!==n._pageIndex&&s(e,i)})),e},processDataItem:function(e){var t=e.data[R],n=t?e.data.key:e.key,i=this.getEditMode();if(i===B&&t&&n){var o=this.getChanges(),a=s.default.getIndexByKey(n,o);if(a>=0){var r=o[a];if(r.type!==z){var l=this._getOldData(r.key);e.data=(0,h.extend)(!0,{},l,r.data),e.key=n}}}this.callBase.apply(this,arguments)},_createInvisibleColumnValidators:function(e){var t=this,n=this,i=this.getController("validating"),o=this.getController("columns"),a=o.getColumns(),r=o.getInvisibleColumns().filter((function(e){return!e.isBand})),s=o.getGroupColumns().filter((function(e){return!e.showWhenGrouped&&-1===r.indexOf(e)})),u=[];return r.push.apply(r,function(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(s)),-1===F.indexOf(this.getEditMode())&&(0,d.each)(a,(function(o,a){e.forEach((function(e){var o;if(!function(e,n){return t._dataController.getRowIndexByKey(n)>=0&&r.indexOf(e)<0}(a,e.key)){if(e.type===z)o=e.data;else if("update"===e.type){var s=n._getOldData(e.key);o=(0,l.createObjectWithChanges)(s,e.data)}if(o){var d=i.createValidator({column:a,key:e.key,value:a.calculateCellValue(o)});d&&u.push(d)}}}))})),function(){u.forEach((function(e){e.dispose()}))}},_beforeSaveEditData:function(e,t){var n=this,i=this.callBase.apply(this,arguments),o=this.getController("validating"),a=o._getValidationData(null==e?void 0:e.key);if(e){var r="remove"===e.type||a.isValid;i=i||!r}else{var s=this._createInvisibleColumnValidators(this.getChanges());i=new b.Deferred,this.executeOperation(i,(function(){o.validate(!0).done((function(e){switch(s(),n._updateRowAndPageIndices(),n.getEditMode()){case V:e||n._focusEditingCell();break;case B:e||(n._resetEditRowKey(),n._resetEditColumnName(),n.getController("data").updateItems())}i.resolve(!e)}))}))}return i.promise?i.promise():i},_beforeEditCell:function(e,t,n){var i=this.callBase(e,t,n);if(this.getEditMode()===V){var o=this._rowsView._getCellElement(e,t),a=o&&o.data("dxValidator"),r=o&&o.closest(".dx-row").data("options"),s=a&&a.option("adapter").getValue();if(a&&q(s,r)){var l=this.getController("validating"),u=new b.Deferred;return(0,b.when)(l.validateCell(a),i).done((function(e,t){u.resolve(e.status===L&&t)})),u.promise()}if(!a)return i}},_afterSaveEditData:function(e){var t,n=this,i=this.getEditMode()===V;if((0,d.each)(this.getChanges(),(function(e,i){var o=n._showErrorRow(i);t=t||o})),t){var o=this._rowsView.getScrollable();o&&(o.update(),o.scrollToElement(t))}if(e&&i&&this._needUpdateRow()){var a=this.getEditRowIndex();this._dataController.updateItems({changeType:"update",rowIndices:[a]}),this._focusEditingCell()}else if(!e){var r=!0;i&&(r=!(this.getController("columns").getColumns().filter((function(e){var t;return e.showEditorAlways&&(null===(t=e.validationRules)||void 0===t?void 0:t.length)>0})).length>0)),r&&(this.getController("validating")._validationState=[])}},_handleDataChanged:function(e){var t=this.getController("validating")._validationState;"standard"===this.option("scrolling.mode")&&this.resetRowAndPageIndices(),"prepend"===e.changeType&&(0,d.each)(t,(function(t,n){n.rowIndex+=e.items.length})),this.callBase(e)},resetRowAndPageIndices:function(){var e=this,t=this.getController("validating")._validationState;(0,d.each)(t,(function(t,n){n.pageIndex!==e._pageIndex&&(delete n.pageIndex,delete n.rowIndex)}))},_beforeCancelEditData:function(){this.getController("validating")._validationState=[],this.callBase()},_showErrorRow:function(e){var t,n=this.getController("errorHandling"),i=this.getController("data").items(),o=this.getIndexByKey(e.key,i),a=this.getController("validating")._getValidationData(e.key);if((null==a||!a.isValid)&&null!=a&&a.errorText&&o>=0)return t=this.getPopupContent(),n&&n.renderErrorRow(null==a?void 0:a.errorText,o,t)},updateFieldValue:function(e){var t=this,n=this.getController("validating"),i=new b.Deferred;return n.removeCellValidationResult({change:this.getChangeByKey(e.key),columnIndex:e.column.index}),this.callBase.apply(this,arguments).done((function(){var o=n.getCellValidator({rowKey:e.key,columnIndex:e.column.index});(0,b.when)(o&&n.validateCell(o)).done((function(e){t.getController("editorFactory").refocus(),i.resolve(e)}))})),i.promise()},highlightDataCell:function(e,t){this.callBase.apply(this,arguments);var n=this.getController("validating");n.setCellValidationStatus(t);var i=!!t.setValue,o=this.isCellModified(t),a=(0,c.isDefined)(t.validationStatus),r=o&&t.column.setCellValue||i&&!o&&!(t.row.isNewRow||!a);if(r){var s=e.data("dxValidator");s&&(0,b.when)(this.getController("validating").validateCell(s)).done((function(){n.setCellValidationStatus(t)}))}},getChangeByKey:function(e){var t=this.getChanges();return t[s.default.getIndexByKey(e,t)]},isCellModified:function(e){var t=this.callBase(e),n=this.getChangeByKey(e.key),i=!!e.row&&this.getController("validating").isInvalidCell({rowKey:e.key,columnIndex:e.column.index});return t||this.getController("validating")._rowIsValidated(n)&&i}},editorFactory:{_showRevertButton:function(e){var t=this;if(e&&e.length){var n=this._rowsView.element().find("."+this.addWidgetPrefix(T)),i=e.closest(".".concat(this.addWidgetPrefix(M)));n&&n.remove(),n=(0,o.default)("<div>").addClass(this.addWidgetPrefix(T)).appendTo(e);var a={animation:null,visible:!0,width:"auto",height:"auto",target:e,shading:!1,container:i,propagateOutsideClick:!0,closeOnOutsideClick:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,contentTemplate:function(){var e=(0,o.default)("<div>").addClass("dx-revert-button"),n={icon:"revert",hint:t.option("editing.texts.validationCancelChanges"),onClick:function(){t._editingController.cancelEditData()}};return new g.default(e,n).$element()},position:{my:"left top",at:"right top",offset:"1 0",collision:"flip",boundaryOffset:"0 0",boundary:this._rowsView.element()},onPositioned:this._positionedHandler.bind(this)};return new y.default(n,a)}},_hideFixedGroupCell:function(e,t){var n,i,a=this._rowsView.isFixedColumns(),r=this._editingController.isFormOrPopupEditMode();if(a&&!r){var s=e.closest(".dx-row").next().data("options");s&&"group"===s.rowType&&(n=(0,o.default)(this._rowsView.getRowElement(s.rowIndex)).last(),(i=n.find(".dx-group-cell")).length&&"hidden"!==i.get(0).style.visibility&&(i.css("visibility","hidden"),t.onDisposing=function(){i.css("visibility","")}))}},_positionedHandler:function(e,t){if(!e.component.__skipPositionProcessing){var n=(0,o.default)(e.element).hasClass(this.addWidgetPrefix(T)),i=!n&&this._rowsView.updateFreeSpaceRowHeight(),a=this._normalizeValidationMessagePositionAndMaxWidth(e,n,t);e.component.__skipPositionProcessing=!(!i&&!a),a?e.component.option(a):i&&e.component.repaint()}},_showValidationMessage:function(e,t,n,i){var a=this,r=e.find(".dx-dropdowneditor-overlay").data("dxPopup"),s=r&&r.option("visible"),l=s?"top right":"top "+n,u=s?"top left":"bottom "+n,d=e.closest(".".concat(this.addWidgetPrefix(M))),c="";t&&t.forEach((function(e){c+=(c.length?"<br/>":"")+(0,C.encodeHtml)(e)}));var h=this.addWidgetPrefix(A);this._rowsView.element().find("."+h).remove();var f=(0,o.default)("<div>").addClass("dx-invalid-message").addClass("dx-invalid-message-always").addClass(h).html(c).appendTo(e),p={target:e,container:d,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,closeOnOutsideClick:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",offset:{x:0,y:!s&&S.default.mozilla?-1:0},my:l,at:u},onPositioned:function(t){a._positionedHandler(t,s),a._shiftValidationMessageIfNeed(t.component.$content(),i&&i.$content(),e)}};this._hideFixedGroupCell(e,p),new y.default(f,p)},_normalizeValidationMessagePositionAndMaxWidth:function(e,t,n){var a=this._columnsController.getFixedColumns();if(a&&a.length){var r,s,l,u,d=!t&&(this,s=e.element,l=(0,o.default)(s).closest("tr").index(),u=(0,o.default)(this._rowsView.getRowElement(l)).first().children().filter(":not(.dx-hidden-cell)"),this._rowsView._getWidths(u).reduce((function(e,t){return e+t}),0)),c=e.component.$content(),h=(0,i.getOuterWidth)(c,!0),f=!t&&h>d,p=this._rowsView.getCellIndex((0,o.default)(e.element).closest("td")),g=function(e){var t,n;return e.some((function(i,o){if("transparent"===i.command)return t=0===o?-1:o,n=o===e.length-1?-1:o+i.colspan-1,!0})),{startColumnIndex:t,endColumnIndex:n}}(a);return t||p!==g.startColumnIndex&&!f?p===g.endColumnIndex&&(r={collision:"none flip",my:"top right",at:t||n?"top left":"bottom right"},t&&(r.offset="-1 0")):r={collision:"none flip",my:"top left",at:n?"top right":"bottom left"},r&&{position:r,maxWidth:f?d-2:void 0}}},_shiftValidationMessageIfNeed:function(e,t,n){if(t){var o=e.offset(),a=t.offset();if(o.top===a.top&&o.left+(0,i.getWidth)(e)>a.left){var r=(0,i.getWidth)(t)+2;e.css("left",a.left<n.offset().left?-r:r)}}},_getTooltipsSelector:function(){var e=this.addWidgetPrefix(A);return".dx-editor-cell ."+this.addWidgetPrefix(T)+", .dx-editor-cell ."+e+", .dx-cell-modified ."+e},init:function(){this.callBase(),this._editingController=this.getController("editing"),this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView")},loseFocus:function(e){e||this.getController("validating").setValidator(null),this.callBase()},updateCellState:function(e,t,n){var i,o,a=null==e?void 0:e.closest(this._getFocusCellSelector()),r=null!=a&&a.is("td")?a:null,s=null==a?void 0:a.closest(".dx-row").data("options"),l=s?this.getController("editing").getChangeByKey(s.key):null,u=r&&this.getController("columns").getVisibleColumns()[r.index()],d=void 0!==(null==l||null===(i=l.data)||void 0===i?void 0:i[null==u?void 0:u.name])&&!this._editingController.isSaving();if(((null==t?void 0:t.status)===H||d)&&this._editingController.getEditMode()===V&&(o=this._showRevertButton(a)),t&&t.status===H&&r&&u&&t&&t.brokenRules){var c=[];t.brokenRules.forEach((function(e){c.push(e.message)})),this._showValidationMessage(a,c,u.alignment||"left",o)}!n&&this._rowsView.element()&&this._rowsView.updateFreeSpaceRowHeight()},focus:function(e,t){var n=this;if(!arguments.length)return this.callBase();var i=e&&e.closest("."+this.addWidgetPrefix(E)).find(this._getTooltipsSelector());if(i&&i.remove(),null!=e&&e.hasClass("dx-row"))return this.callBase(e,t);var o,a=null==e?void 0:e.closest(this._getFocusCellSelector()),r=this.callBase,s=a&&(a.data("dxValidator")||e.find("."+this.addWidgetPrefix(O)).eq(0).data("dxValidator")),l=a&&a.closest(".dx-row").data("options"),u=this.getController("editing"),d=l?u.getChangeByKey(l.key):null,c=this.getController("validating");if(s){c.setValidator(s);var h=s.option("adapter").getValue();if(q(h,l)||c._rowIsValidated(d))return u.waitForDeferredOperations().done((function(){(0,b.when)(c.validateCell(s)).done((function(i){var a=(o=i).validator.option("dataGetter")().column;d&&a&&!c.isCurrentValidatorProcessing({rowKey:d.key,columnIndex:a.index})||(o.status===H&&(t=!0),n.updateCellState(e,o,t),r.call(n,e,t))}))})),this.callBase(e,t)}return this.updateCellState(e,o,t),this.callBase(e,t)},getEditorInstance:function(e){var t=e.find(".dx-texteditor").eq(0);return s.default.getWidgetInstance(t)}},data:{_isCellChanged:function(e,t,n,i,a){var r,s,l=null===(r=e.cells)||void 0===r?void 0:r[i],u=l&&l.validationStatus,d=this.getController("validating"),c=d.getCellValidationResult({rowKey:e.key,columnIndex:i}),h=d._getValidationData(e.key),f=j(c)?c.status:c,p=JSON.stringify(t.modifiedValues)!==JSON.stringify(e.modifiedValues),g=(0,o.default)(null==l?void 0:l.cellElement).hasClass(this.addWidgetPrefix(I)),m=e.isEditing!==t.isEditing,_=null==l||null===(s=l.column.validationRules)||void 0===s?void 0:s.length;return!!(m&&_||u!==f&&p||h.isValid&&g)||this.callBase.apply(this,arguments)}}},views:{rowsView:{updateFreeSpaceRowHeight:function(e){var t,n,o,a=this,r=a.element(),s=r&&r.find("."+a.addWidgetPrefix(A)+" .dx-overlay-content");if(a.callBase(e),s&&s.length&&(t=a._getRowElements(),(n=(o=a._getFreeSpaceRowElements(e)).first())&&1===t.length&&(!n.is(":visible")||(0,i.getOuterHeight)(s)>(0,i.getOuterHeight)(n))))return o.show(),(0,i.setHeight)(o,(0,i.getOuterHeight)(s)),!0},_formItemPrepared:function(e,t){var n=this;this.callBase.apply(this,arguments),(0,u.deferUpdate)((function(){var i=t.find(".dx-widget").first();i.length&&!i.children().length||n.getController("validating").createValidator(e,i)}))},_cellPrepared:function(e,t){this.getController("editing").isFormOrPopupEditMode()||this.getController("validating").createValidator(t,e),this.callBase.apply(this,arguments)},_restoreErrorRow:function(e){var t=this.getController("editing");t&&t.hasChanges()&&this._getRowElements(e).each((function(e,n){var i=(0,o.default)(n).data("options");if(i){var a=t.getChangeByKey(i.key);a&&t._showErrorRow(a)}}))}}}}};t.validatingModule=$},55464:function(e,t,n){t.virtualColumnsModule=void 0;var i,o=n(58664),a=n(58201),r=n(66662),s=n(35922),l={_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(e){var t=this,n=this.getScrollable(),i=e.scrollOffset.left;t.callBase.apply(t,arguments),t.option("rtlEnabled")&&n&&(i=(0,o.getWidth)(n.$content())-(0,o.getWidth)(n.$element())-i),t._columnsController.setScrollPosition(i)}},u={defaultOptions:function(){return{scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}},extenders:{controllers:{columns:(i=function(e){return e.map((function(e){return e.visibleWidth||parseFloat(e.width)||50}))},{init:function(){var e=this;e.callBase(),e._beginPageIndex=0,e._endPageIndex=0,e._position=0,e._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(e){for(var t=this.getVisibleColumns(void 0,!0),n=i(t),o=0,a=0;a<n.length;a++){if(o>=e)return Math.floor(a/this.getColumnPageSize());o+=n[a]}return 0},getTotalWidth:function(){var e=this.option("width");return"number"==typeof e?e:this.getController("resizing")._lastWidth||(0,o.getOuterWidth)(this.component.$element())},getEndPageIndex:function(e){var t=this.getVisibleColumns(void 0,!0),n=i(t),o=0;e+=this.getTotalWidth();for(var a=0;a<n.length;a++){if(o>=e)return Math.ceil(a/this.getColumnPageSize());o+=n[a]}return Math.ceil(n.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,virtualColumnsScrolling:!0,length:2}}),this._renderTime=new Date-e},getScrollingTimeout:function(){var e=this.option("scrolling.columnRenderingThreshold"),t=this.option("scrolling.renderAsync"),n=0;return(!(0,s.isDefined)(t)&&this._renderTime>e||t)&&(n=this.option("scrolling.timeout")),n},setScrollPosition:function(e){var t=this,n=this.getScrollingTimeout();n>0?(clearTimeout(this._changedTimeout),this._changedTimeout=setTimeout((function(){t._setScrollPositionCore(e)}),n)):this._setScrollPositionCore(e)},isVirtualMode:function(){return(0,a.hasWindow)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(e){var t=this;if(t.isVirtualMode()){var n=t.getBeginPageIndex(e),i=t.getEndPageIndex(e),o=e<t._position?t._beginPageIndex>n:t._endPageIndex<i;t._position=e,o&&(t._beginPageIndex=n,t._endPageIndex=i,t._fireColumnsChanged())}},getFixedColumns:function(e,t){var n=this.callBase(e);if(this.isVirtualMode()&&!t&&n.length){var i=n.map((function(e){return e.command})).indexOf("transparent");return n[i].colspan=this.getVisibleColumns().length-this.callBase().length+1,n}return n},getVisibleColumns:function(e,t){if(t||!this.isVirtualMode())return this.callBase(e);this._beginPageIndex||this._endPageIndex||(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));var n=this._beginPageIndex,o=this._endPageIndex,a=e+"-"+n+"-"+o;if(this._virtualVisibleColumns[a])return this._virtualVisibleColumns[a];var s=this.callBase(),l=this.getRowCount(),u=this.getColumnPageSize(),d=n*u,c=o*u,h=this.getFixedColumns(void 0,!0),f=h.map((function(e){return e.command})).indexOf("transparent"),p=h.length?f:0,g=s.slice(0,p),m=s.slice(p,d),_=i(m).reduce((function(e,t){return e+t}),0);_||(d=0);var v=h.length?h.length-f-1:0,y=s.slice(s.length-v),x=s.slice(c,s.length-v),b=i(x).reduce((function(e,t){return e+t}),0);if(b||(c=s.length),l>1&&"number"==typeof e){for(var w=[],C=0;C<l;C++)w.push(this.callBase(C));g=(0,r.createColumnsInfo)(w,0,g.length)[e]||[],y=(0,r.createColumnsInfo)(w,s.length-y.length,s.length)[e]||[],s=(0,r.createColumnsInfo)(w,d,c)[e]||[]}else s=s.slice(d,c);return _&&(s.unshift({command:"virtual",width:_}),s=g.concat(s)),b&&(s.push({command:"virtual",width:b}),s=s.concat(y)),this._virtualVisibleColumns[a]=s,s},getColumnIndexOffset:function(){var e=0;if(this._beginPageIndex>0){var t=this.getFixedColumns().map((function(e){return e.command})).indexOf("transparent"),n=t>=0?t:0;e=this._beginPageIndex*this.getColumnPageSize()-n-1}return e>0?e:0},dispose:function(){clearTimeout(this._changedTimeout),this.callBase.apply(this,arguments)}})},views:{columnHeadersView:{_renderCore:function(){this.callBase.apply(this,arguments),this._columnsController.isVirtualMode()&&this._updateScrollLeftPosition()}},rowsView:l}}};t.virtualColumnsModule=u},66662:function(e,t,n){t.createColumnsInfo=function(e,t,n){var a=[];o(e,(function(e,o,r){var s,l=e,u=l.colspan||1,d=o+u-1>=t&&o<n;if(a[r]=a[r]||[],d)o<t?(s=u-(t-o),o=t):s=u,o+s>n&&(s=n-o),s!==u&&(l=(0,i.extend)({},l,{colspan:s})),a[r].push(l);else if(o>n)return!1}));for(var r=0;r<a.length;r++)a[r]=a[r]||[];return a},t.foreachColumnInfo=o;var i=n(13306);function o(e,t,n,i,a,r){r=r||[],(i=i||[])[n=n||0]=i[n]||0;var s,l=e[n],u=r[n]+1||0,d=0;if(l){for(s=u;s<l.length;s++){var c=l[s],h=s+i[n],f=c.colspan||1;if(o(e,t,n+(c.rowspan||1),i,f,r),i[n]+=f-1,d+=f,c.rowspan)for(var p=n+1;p<n+c.rowspan;p++)i[p]=i[p]||0,i[p]+=c.colspan||1;if(!1===t(c,h,n,s))break;if(void 0!==a&&d>=a)break}r[n]=s}}},8831:function(e,t,n){t.virtualScrollingModule=void 0;var i=n(58664),o=p(n(68374)),a=n(58201),r=n(47305),s=p(n(13615)),l=n(95479),u=n(62754),d=p(n(2492)),c=p(n(47810)),h=n(37518),f=n(35922);function p(e){return e&&e.__esModule?e:{default:e}}var g,m,_,v,y="bottom-load-panel",x="table-content",b="content",w="dx-freespace-row",C="dx-virtual-row",S="scrolling.legacyMode",k="paging.pageIndex",D=function(e){return"virtual"===e.option("scrolling.mode")},I=function(e){return"infinite"===e.option("scrolling.mode")},T=function(e){return D(e)||I(e)},E=function(e,t,n,i){for(var o=0;o<t+1;o++){var a=e[n?e.length-1-o:o];a&&!i(a,o===t,n)&&t++}return t},A=function(e,t){return"data"===e.rowType&&!e.isNewRow||"group"===e.rowType&&t.isGroupItemCountable(e.data)},O=function(e){return e.forEach((function(e,t){e.rowIndex=t})),e},P=(g=function(e){var t=e._virtualScrollController.beginPageIndex(-1);D(e)&&(t<0||e.viewportSize()>=0&&e.getViewportItemIndex()>=0&&(t*e.pageSize()>e.getViewportItemIndex()||t*e.pageSize()+e.itemsCount()<e.getViewportItemIndex()+e.viewportSize())&&e._dataSource.isLoading()?e._isLoading||(e._isLoading=!0,e.loadingChanged.fire(!0)):e._isLoading&&(e._isLoading=!1,e.loadingChanged.fire(!1)))},m={init:function(){this.callBase.apply(this,arguments),this._items=[],this._isLoaded=!0,this._loadPageCount=1,this._virtualScrollController=new r.VirtualScrollController(this.component,this._getVirtualScrollDataOptions())},_getVirtualScrollDataOptions:function(){var e=this;return{pageSize:function(){return e.pageSize()},totalItemsCount:function(){return e.totalItemsCount()},hasKnownLastPage:function(){return e.hasKnownLastPage()},pageIndex:function(t){return e._dataSource.pageIndex(t)},isLoading:function(){return e._dataSource.isLoading()&&!e.isCustomLoading()},pageCount:function(){return e.pageCount()},load:function(){return e._dataSource.load()},updateLoading:function(){g(e)},itemsCount:function(){return e.itemsCount(!0)},items:function(){return e._dataSource.items()},viewportItems:function(t){return t&&(e._items=t),e._items},onChanged:function(t){e.changed.fire(t)},changingDuration:function(t){return e.isLoading()?300:e._renderTime||0}}},_handleLoadingChanged:function(e){!1!==this.option(S)?(D(this)&&!this._isLoadingAll||(this._isLoading=e,this.callBase.apply(this,arguments)),this._startLoadTime=e?new Date:void 0):this.callBase.apply(this,arguments)},_handleLoadError:function(){!1!==this.option(S)&&(this._isLoading=!1,this.loadingChanged.fire(!1)),this.callBase.apply(this,arguments)},_handleDataChanged:function(e){if(!1===this.option(S))return this._items=this._dataSource.items().slice(),void this.callBase.apply(this,arguments);var t=this.callBase.bind(this);this._virtualScrollController.handleDataChanged(t,e)},_customizeRemoteOperations:function(e,t){var n=!1===this.option(S),i=this.option("scrolling.renderAsync");(0,f.isDefined)(i)||(i=this._renderTime>=this.option("scrolling.renderingThreshold")),!(D(this)||I(this)&&n)||t.reload||!t.skip&&!n||i||(e.delay=void 0),this.callBase.apply(this,arguments)},items:function(){return this._items},itemsCount:function(e){return e||!1===this.option(S)?this.callBase():this._virtualScrollController.itemsCount()},load:function(e){return!1===this.option(S)||e?this.callBase(e):this._virtualScrollController.load()},isLoading:function(){return!1===this.option(S)?this._dataSource.isLoading():this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},resetPagesCache:function(e){e||this._virtualScrollController.reset(!0),this.callBase.apply(this,arguments)},_changeRowExpandCore:function(){var e=this.callBase.apply(this,arguments);return!1===this.option(S)||(this.resetPagesCache(),g(this)),e},reload:function(){this._dataSource.pageIndex(this.pageIndex());var e=this._virtualScrollController;if(!1!==this.option(S)&&e){var t=new u.Deferred;return this.callBase.apply(this,arguments).done((function(n){var i=e.getDelayDeferred();i?i.done(t.resolve).fail(t.reject):t.resolve(n)})).fail(t.reject),t}return this.callBase.apply(this,arguments)},refresh:function(e,t){if(!1!==this.option(S)){var n=e.storeLoadOptions,i=this._dataSource;t.reload?(this._virtualScrollController.reset(),i.items().length=0,this._isLoaded=!1,g(this),this._isLoaded=!0,I(this)?(this.pageIndex(0),i.pageIndex(0),n.pageIndex=0,e.pageIndex=0,n.skip=0):(i.pageIndex(this.pageIndex()),i.paginate()&&(e.pageIndex=this.pageIndex(),n.skip=this.pageIndex()*this.pageSize()))):I(this)&&n.skip&&this._totalCountCorrection<0&&(n.skip+=this._totalCountCorrection)}return this.callBase.apply(this,arguments)},dispose:function(){this._virtualScrollController.dispose(),this.callBase.apply(this,arguments)},loadPageCount:function(e){if(!(0,f.isDefined)(e))return this._loadPageCount;this._loadPageCount=e},_handleDataLoading:function(e){var t=this.loadPageCount();e.loadPageCount=t,!e.isCustomLoading&&!1===this.option(S)&&t>1&&(e.storeLoadOptions.take=t*this.pageSize()),this.callBase.apply(this,arguments)},_loadPageSize:function(){return this.callBase.apply(this,arguments)*this.loadPageCount()}},["beginPageIndex","endPageIndex","pageIndex"].forEach((function(e){m[e]=function(){if(!1===this.option(S)){var t=this._dataSource;return t.pageIndex.apply(t,arguments)}var n=this._virtualScrollController;return n[e].apply(n,arguments)}})),["virtualItemsCount","getContentOffset","getVirtualContentSize","setContentItemSizes","setViewportPosition","getViewportItemIndex","setViewportItemIndex","getItemIndexByPosition","viewportSize","viewportItemSize","getItemSize","getItemSizes","loadIfNeed"].forEach((function(e){m[e]=function(){var t=this._virtualScrollController;return t[e].apply(t,arguments)}})),m),M=(_=function(e,t){var n=e.toArray().map((function(e){return(0,o.default)(e).parent("."+t).get(0)})).filter((function(e){return e}));n.length&&(e=(0,o.default)(n));for(var i=t===w?e.length-1:e.length,a=0;a<i;a++)e.eq(a).remove()},{init:function(){var e,t=this,n=this.getController("data");this.callBase(),n.pageChanged.add((function(e){t.scrollToPage(null!=e?e:n.pageIndex())})),n.dataSourceChanged.add((function(){!t._scrollTop&&t._scrollToCurrentPageOnResize()})),null===(e=n.stateLoaded)||void 0===e||e.add((function(){t._scrollToCurrentPageOnResize()})),this._scrollToCurrentPageOnResize()},_scrollToCurrentPageOnResize:function(){var e=this,t=this.getController("data");t.pageIndex()>0&&this.resizeCompleted.add((function n(){e.resizeCompleted.remove(n),e.scrollToPage(t.pageIndex())}))},scrollToPage:function(e){var t,n=this,i=n._dataController,o=i?i.pageSize():0;if(D(n)||I(n)){var a=i.getItemSize(),r=i.getItemSizes(),s=e*o;for(var l in t=s*a,r)l<s&&(t+=r[l]-a)}else t=0;n.scrollTo({y:t,x:n._scrollLeft})},renderDelayedTemplates:function(e){this._updateContentPosition(!0),this.callBase.apply(this,arguments)},_renderCore:function(e){var t=new Date;this.callBase.apply(this,arguments);var n=this._dataController._dataSource;if(n&&e){var i=e.items?e.items.length:20,o=this._dataController.viewportSize()||20;s.default.isVirtualRowRendering(this)&&i>0&&!1!==this.option(S)?n._renderTime=(new Date-t)*o/i:n._renderTime=new Date-t}},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not(".dx-virtual-row")},_removeRowsElements:function(e,t,n){var i=this._getRowElements(e).toArray();i="append"===n?i.slice(0,t):i.slice(-t);var a=this.getController("errorHandling");i.map((function(e){var t=(0,o.default)(e);a&&a.removeErrorRow(t.next()),t.remove()}))},_updateContent:function(e,t){var n,i=this._findContentElement(),o=t&&t.changeType,a=i.children().first();if("append"===o||"prepend"===o){var r=this._getBodies(e);1===r.length?this._getBodies(a)["append"===o?"append":"prepend"](r.children()):r["append"===o?"appendTo":"prependTo"](a),e.remove(),n=this._getFreeSpaceRowElements(a),_(n,w),t.removeCount&&this._removeRowsElements(a,t.removeCount,o),this._restoreErrorRow(a)}else this.callBase.apply(this,arguments),"update"===o&&this._restoreErrorRow(a);this._updateBottomLoading()},_addVirtualRow:function(e,t,n,i){if(i){var o=this._createEmptyRow(C,t,i);o=this._wrapRowIfNeed(e,o),this._appendEmptyRow(e,o,n)}},_getRowHeights:function(){return this._getRowElements(this._tableElement).toArray().map((function(e){return(0,h.getBoundingRect)(e).height}))},_correctRowHeights:function(e){for(var t=this._dataController,n=t._dataSource,i=[],o=t.getVisibleRows(),a=0,r=!0,s=-1,l=0;l<e.length;l++){var u=o[l];(0,f.isDefined)(u)&&(!1===this.option(S)?(s>=0&&s!==u.loadIndex&&(i.push(a),a=0),s=u.loadIndex):A(u,n)&&(r?r=!1:(i.push(a),a=0)),a+=e[l])}return a>0&&i.push(a),i},_updateContentPosition:function(e){var t=this,n=this._dataController,i=this._rowHeight||20;if(n.viewportItemSize(i),D(this)||s.default.isVirtualRowRendering(this)){if(!e){var a=this._getRowHeights(),r=this._correctRowHeights(a);n.setContentItemSizes(r)}var l=n.getContentOffset("begin"),u=n.getContentOffset("end"),d=this.getTableElements(),c=d.children("tbody").children(".dx-virtual-row");_(c,C),d.each((function(e,n){var i=e>0;t._isFixedTableRendering=i,t._addVirtualRow((0,o.default)(n),i,"top",l),t._addVirtualRow((0,o.default)(n),i,"bottom",u),t._isFixedTableRendering=!1}))}},_isTableLinesDisplaysCorrect:function(e){return e.find(".dx-column-lines").length>0===this.option("showColumnLines")},_isColumnElementsEqual:function(e,t){var n=e.length===t.length;return n&&(0,l.each)(e,(function(e,i){if(i.style.width!==t[e].style.width)return n=!1})),n},_getCellClasses:function(e){var t=[],n=e.cssClass,i="expand"===e.command;return n&&t.push(n),i&&t.push(this.addWidgetPrefix("group-space")),t},_findBottomLoadPanel:function(e){var t=e||this.element(),n=t&&t.find("."+this.addWidgetPrefix(y));if(n&&n.length)return n},_updateBottomLoading:function(){var e=this,t=D(this),n=I(this),i=!e._dataController.hasKnownLastPage()&&e._dataController.isLoaded()&&(t||n),a=e._findContentElement(),r=e._findBottomLoadPanel(a);i?r||(0,o.default)("<div>").addClass(e.addWidgetPrefix(y)).append(e._createComponent((0,o.default)("<div>"),d.default).$element()).appendTo(a):r&&r.remove()},_handleScroll:function(e){var t=this;t._hasHeight&&t._rowHeight&&t._dataController.setViewportPosition(e.scrollOffset.top),t.callBase.apply(t,arguments)},_needUpdateRowHeight:function(e){return this.callBase.apply(this,arguments)||e>0&&I(this)&&!s.default.isVirtualRowRendering(this)},_updateRowHeight:function(){if(this.callBase.apply(this,arguments),this._rowHeight){this._updateContentPosition();var e=this._hasHeight?(0,i.getOuterHeight)(this.element()):(0,i.getOuterHeight)((0,a.getWindow)()),t=this._dataController;!1===this.option(S)?(t.viewportHeight(e),t.updateViewport()):t.viewportSize(Math.ceil(e/this._rowHeight))}},updateFreeSpaceRowHeight:function(){var e=this.callBase.apply(this,arguments);return e&&this._updateContentPosition(),e},setLoading:function(e,t){var n=this._dataController,i=n.pageIndex()>0&&n.isLoaded()&&!!this._findBottomLoadPanel();!1===this.option(S)&&e&&n.isViewportChanging()||(i&&(e=!1),this.callBase.call(this,e,t))},_resizeCore:function(){var e=this,t=e.element();e.callBase(),e.component.$element()&&!e._windowScroll&&t.closest((0,a.getWindow)().document).length&&(e._windowScroll=(0,r.subscribeToExternalScrollers)(t,(function(t){!e._hasHeight&&e._rowHeight&&e._dataController.setViewportPosition(t)}),e.component.$element()),e.on("disposing",(function(){e._windowScroll.dispose()}))),!1!==this.option(S)&&e.loadIfNeed()},loadIfNeed:function(){var e,t=this._dataController;null==t||null===(e=t.loadIfNeed)||void 0===e||e.call(t)},setColumnWidths:function(e){var t,n=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(t=n?(0,o.default)(n.content()):this.element(),this.callBase(e,t.children("."+this.addWidgetPrefix(b)).children(":not(."+this.addWidgetPrefix(x)+")")))},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}),R={defaultOptions:function(){return{scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,prerenderedRowChunkSize:1,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard",loadTwoPagesOnStart:!1,legacyMode:!1,prerenderedRowCount:1}}},extenders:{dataSourceAdapter:P,controllers:{data:(v={_refreshDataSource:function(){var e=this.callBase.apply(this,arguments)||(new u.Deferred).resolve().promise();return e.done(this.initVirtualRows.bind(this)),e},getRowPageSize:function(){var e=this.option("scrolling.rowPageSize"),t=this.pageSize();return t&&t<e?t:e},reload:function(){var e=this,t=this._rowsScrollController||this._dataSource,n=t&&t.getItemIndexByPosition(),a=this.callBase.apply(this,arguments);return a&&a.done((function(){if(D(e)||s.default.isVirtualRowRendering(e)){var t=e.getRowIndexOffset(),a=Math.floor(n)-t,r=e.component,l=r.getScrollable&&r.getScrollable(),u=e.dataSource().operationTypes().sorting;if(l&&!u){var d=r.getRowElement(a),h=d&&d[0]&&(0,o.default)(d[0]),f=h&&h.position().top,p=c.default.chrome&&c.default.version>=91;f>(c.default.mozilla||p?1:0)&&(f=Math.round(f+(0,i.getOuterHeight)(h)*(n%1)),l.scrollTo({y:f}))}}}))},initVirtualRows:function(){var e=this,t=s.default.isVirtualRowRendering(this);if(this._allItems=null,this._loadViewportParams=null,"virtual"!==this.option("scrolling.mode")&&!0!==t||!1===t||!1!==this.option(S)&&!this.option("scrolling.rowPageSize"))return this._visibleItems=null,void(this._rowsScrollController=null);var n=!D(this)&&this.pageIndex()>=this.pageCount()?this.pageCount()-1:this.pageIndex();this._rowPageIndex=Math.ceil(n*this.pageSize()/this.getRowPageSize()),this._visibleItems=!1===this.option(S)?null:[],this._rowsScrollController=new r.VirtualScrollController(this.component,this._getRowsScrollDataOptions(),!0),this._viewportChanging=!1,this._needUpdateViewportAfterLoading=!1,this._rowsScrollController.positionChanged.add((function(){var t;if(!1===e.option(S))return e._viewportChanging=!0,e.loadViewport(),void(e._viewportChanging=!1);null===(t=e._dataSource)||void 0===t||t.setViewportItemIndex(e._rowsScrollController.getViewportItemIndex())})),!1===this.option(S)&&this._updateLoadViewportParams(),this.isLoaded()&&!1!==this.option(S)&&this._rowsScrollController.load()},isViewportChanging:function(){return this._viewportChanging},_getRowsScrollDataOptions:function(){var e=this,t=function(t){return A(t,e._dataSource)};return{pageSize:function(){return e.getRowPageSize()},loadedOffset:function(){var t;return D(e)&&(null===(t=e._dataSource)||void 0===t?void 0:t.lastLoadOptions().skip)||0},loadedItemCount:function(){return e._itemCount},totalItemsCount:function(){return T(e)?e.totalItemsCount():!1===e.option(S)?e._itemCount:e._items.filter(t).length},hasKnownLastPage:function(){return!0},pageIndex:function(t){return void 0!==t&&(e._rowPageIndex=t),e._rowPageIndex},isLoading:function(){return e.isLoading()},pageCount:function(){return Math.ceil(this.totalItemsCount()/this.pageSize())||1},load:function(){e._rowsScrollController.pageIndex()>=this.pageCount()&&(e._rowPageIndex=this.pageCount()-1,e._rowsScrollController.pageIndex(e._rowPageIndex)),!this.items().length&&this.totalItemsCount()||e._rowsScrollController.handleDataChanged((function(t){(t=t||{}).changeType=t.changeType||"refresh",t.items=t.items||e._visibleItems,e._visibleItems.forEach((function(e,t){e.rowIndex=t})),e._fireChanged(t)}))},updateLoading:function(){},itemsCount:function(){return this.items(!0).length},correctCount:function(e,n,i){return E(e,n,i,(function(e,n,i){return e.isNewRow?n&&!i:n&&i?!e.isNewRow:t(e)}))},items:function(n){var i=e._items;if(e.option(S)){var o=e.dataSource(),a=null==o?void 0:o.virtualItemsCount(),r=a?a.begin:0,s=e.getRowPageSize(),l=e._rowPageIndex*s-r,u=s;if(l<0)return[];l&&(l=this.correctCount(i,l),i=i.slice(l)),u&&(u=this.correctCount(i,u),i=i.slice(0,u))}return n?i.filter(t):i},viewportItems:function(t){return t&&!1!==e.option(S)&&(e._visibleItems=t),e._visibleItems},onChanged:function(){},changingDuration:function(t){var n=e.dataSource();return null!=n&&n.isLoading()&&!1!==e.option(S)?300:(null==n?void 0:n._renderTime)||0}}},_updateItemsCore:function(e){var t=this,n=this.getRowIndexDelta();if(this.callBase.apply(this,arguments),!1===this.option(S)&&s.default.isVirtualRowRendering(this))"update"===e.changeType&&0===e.rowIndices.length&&e.cancelEmptyChanges&&(e.cancel=!0);else{var i=this._rowsScrollController;if(i){var o=this._visibleItems,a="refresh"===e.changeType||e.isLiveUpdate;if("append"===e.changeType&&e.items&&!e.items.length)return;a||"append"===e.changeType||"prepend"===e.changeType?(e.cancel=!0,a&&i.reset(!0),i.load()):("update"===e.changeType?e.rowIndices.forEach((function(t,n){var i=e.changeTypes[n],a=e.items[n];"update"===i?o[t]=a:"insert"===i?o.splice(t,0,a):"remove"===i&&o.splice(t,1)})):(o.forEach((function(e,i){o[i]=t._items[i+n]||o[i]})),e.items=o),O(o))}}},_updateLoadViewportParams:function(){var e=this._rowsScrollController.getViewportParams(),t=this.pageSize();if(e&&!T(this)&&t>0){var n=this.pageIndex()*t;e.skip+=n}this._loadViewportParams=e},_processItems:function(e){var t=this.callBase.apply(this,arguments);if(!1===this.option(S)){var n,i,o,a=this._dataSource,r=null!==(n=null==a?void 0:a.lastLoadOptions().skip)&&void 0!==n?n:0;t.forEach((function(e){var t=e.rowType,n=A(e,a);!e.isNewRow&&(0,f.isDefined)(i)&&("group"===t&&(i||n||"group"!==o&&r>0)||"data"===t&&n&&(i||"group"!==o))&&r++,e.loadIndex=r,i=n,o=t}))}return t},_afterProcessItems:function(e){var t=this;if(this._itemCount=e.filter((function(e){return A(e,t._dataSource)})).length,(0,f.isDefined)(this._loadViewportParams)){this._updateLoadViewportParams();var n=e;if(this._allItems=e,e.length){var i=this.getLoadPageParams(!0),o=i.skipForCurrentPage,a=e[0].loadIndex+o,r=this._loadViewportParams.take;n=e.filter((function(e){var t=e.isNewRow&&e.loadIndex>=a-1,n=e.isNewRow&&e.loadIndex===a&&0===r,i=e.loadIndex>=a||t,o=e.loadIndex<a+r||n;return i&&o}))}return n}return this.callBase.apply(this,arguments)},_applyChange:function(e){var t=this,n=e.items,i=e.changeType,o=e.removeCount;if(o){var a="prepend"===i;o=E(t._items,o,a,(function(e,n){return"data"===e.rowType&&!e.isNewRow||"group"===e.rowType&&(t._dataSource.isGroupItemCountable(e.data)||n)})),e.removeCount=o}switch(i){case"prepend":t._items.unshift.apply(t._items,n),o&&t._items.splice(-o);break;case"append":t._items.push.apply(t._items,n),o&&t._items.splice(0,o);break;default:t.callBase(e)}},items:function(e){return e?this._allItems||this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var e=0;if(this.option(S)){var t=this._visibleItems;t&&t[0]&&(e=this._items.indexOf(t[0]))}return e<0?0:e},getRowIndexOffset:function(e){var t=0,n=this.dataSource(),i=this._rowsScrollController,o=D(this),a=I(this),r=!1===this.option(S);if(i&&!e)if(r&&(0,f.isDefined)(this._loadViewportParams)){var s=this.getLoadPageParams(!0),l=s.skipForCurrentPage;t=s.pageIndex*this.pageSize()+l}else t=i.beginPageIndex()*i.pageSize();else if((o||a)&&r&&n){var u;t=null!==(u=n.lastLoadOptions().skip)&&void 0!==u?u:0}else o&&n&&(t=n.beginPageIndex()*n.pageSize());return t},viewportSize:function(){var e=this._rowsScrollController,t=this._dataSource,n=null==e?void 0:e.viewportSize.apply(e,arguments);return!1===this.option(S)?n:null==t?void 0:t.viewportSize.apply(t,arguments)},viewportHeight:function(e){var t;null===(t=this._rowsScrollController)||void 0===t||t.viewportHeight(e)},viewportItemSize:function(){var e=this._rowsScrollController,t=this._dataSource,n=null==e?void 0:e.viewportItemSize.apply(e,arguments);return!1===this.option(S)?n:null==t?void 0:t.viewportItemSize.apply(t,arguments)},setViewportPosition:function(){var e=this._rowsScrollController,t=this._dataSource;e?e.setViewportPosition.apply(e,arguments):null==t||t.setViewportPosition.apply(t,arguments)},setContentItemSizes:function(e){var t=this._rowsScrollController,n=this._dataSource,i=null==t?void 0:t.setContentItemSizes(e);return!1===this.option(S)?i:null==n?void 0:n.setContentItemSizes(e)},getPreloadedRowCount:function(){var e=this.option("scrolling.preloadedRowCount"),t=this.option("scrolling.preloadEnabled");if((0,f.isDefined)(e))return e;var n=this.viewportSize();return t?2*n:n},getLoadPageParams:function(e){var t,n,i=this.pageSize(),o=this._loadViewportParams,a=null===(t=this._dataSource)||void 0===t?void 0:t.lastLoadOptions(),r=(null==a?void 0:a.pageIndex)||0,s=(null==a?void 0:a.take)||0,l=this._rowsScrollController.isScrollingBack(),u=l?this.getPreloadedRowCount():0,d=l?0:this.getPreloadedRowCount(),c=(null===(n=this._dataSource)||void 0===n?void 0:n.totalCountCorrection())||0,h=Math.max(0,o.skip-u),f=e?r:Math.floor(i?h/i:0),p=f*i,g=o.skip-p,m=o.take+g+d-c,_=e?s:m,v=Math.ceil(i?_/i:0);return{pageIndex:f,loadPageCount:Math.max(1,v),skipForCurrentPage:Math.max(0,g)}},_updateVisiblePageIndex:function(e){if(this._rowsScrollController){if((0,f.isDefined)(e))return this._silentOption(k,e),void this.pageChanged.fire();var t=this._rowsScrollController.getViewportItemIndex(),n=Math.floor(t/this.pageSize());this.pageIndex()!==n&&(this._silentOption(k,n),this.updateItems({changeType:"pageIndex"}))}},_getChangedLoadParams:function(){var e=this.getLoadPageParams(!0),t=this.getLoadPageParams(),n=t.pageIndex,i=t.loadPageCount,o=null;return this._isLoading||n===e.pageIndex&&i===e.loadPageCount||(o={pageIndex:n,loadPageCount:i}),o},_loadItems:function(e){var t=this,n=T(this),i=this._dataSource,o=this._getChangedLoadParams(),a=!1;if(!i||n&&e&&o&&o.pageIndex>i.pageIndex())return a;if(n&&this._isLoading&&(this._needUpdateViewportAfterLoading=!0),n&&o){a=!0,i.pageIndex(o.pageIndex),i.loadPageCount(o.loadPageCount),this._repaintChangesOnly=!0,this._needUpdateDimensions=!0;var r=this._viewportChanging;this.load().always((function(){t._repaintChangesOnly=void 0,t._needUpdateDimensions=void 0})).done((function(){var e=t.pageCount()>0&&t.pageIndex()===t.pageCount()-1;(r||e)&&t._updateVisiblePageIndex(),t._needUpdateViewportAfterLoading&&(t._needUpdateViewportAfterLoading=!1,t.loadViewport({checkLoadedParamsOnly:!0}))}))}return a},loadViewport:function(e){var t=null!=e?e:{},n=t.checkLoadedParamsOnly,i=t.checkLoading;(T(this)||s.default.isVirtualRowRendering(this))&&(this._updateLoadViewportParams(),this._loadItems(i)||this._isLoading&&i||n||this.updateItems({repaintChangesOnly:!0,needUpdateDimensions:!0,useProcessedItemsCache:!0,cancelEmptyChanges:!0}))},updateViewport:function(){var e,t,n=this.viewportSize(),i=this.items().length,o=n>i,a=null!==(e=null===(t=this._loadViewportParams)||void 0===t?void 0:t.take)&&void 0!==e?e:0,r=this._rowsScrollController,s=null==r?void 0:r.getViewportParams().take;(o||a<s)&&i&&this.loadViewport({checkLoading:!0})},loadIfNeed:function(){if(!1!==this.option(S)){var e=this._rowsScrollController;e&&e.loadIfNeed();var t=this._dataSource;return t&&t.loadIfNeed()}},getItemSize:function(){var e=this._rowsScrollController;if(e)return e.getItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSize.apply(t,arguments)},getItemSizes:function(){var e=this._rowsScrollController;if(e)return e.getItemSizes.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSizes.apply(t,arguments)},getContentOffset:function(){var e=this._rowsScrollController;if(e)return e.getContentOffset.apply(e,arguments);var t=this._dataSource;return t&&t.getContentOffset.apply(t,arguments)},refresh:function(e){var t=this._dataSource;return t&&e&&e.load&&I(this)&&t.resetCurrentTotalCount(),this.callBase.apply(this,arguments)},dispose:function(){var e=this._rowsScrollController;e&&e.dispose(),this.callBase.apply(this,arguments)},topItemIndex:function(){var e;return null===(e=this._loadViewportParams)||void 0===e?void 0:e.skip},bottomItemIndex:function(){var e=this._loadViewportParams;return e&&e.skip+e.take},virtualItemsCount:function(){var e=this._rowsScrollController;if(e)return e.virtualItemsCount.apply(e,arguments);var t=this._dataSource;return null==t?void 0:t.virtualItemsCount.apply(t,arguments)},pageIndex:function(e){var t,n=T(this),i=this._rowsScrollController;return!1===this.option(S)&&n&&i&&void 0===e?null!==(t=this.option(k))&&void 0!==t?t:0:this.callBase.apply(this,arguments)},_fireChanged:function(e){this.callBase.apply(this,arguments);var t=e.operationTypes;!1===this.option(S)&&T(this)&&t&&e.isDataChanged&&t.pageIndex&&!t.fullReload&&this._updateVisiblePageIndex(this._dataSource.pageIndex())},_getPagingOptionValue:function(e){var t=this.callBase.apply(this,arguments);return!1===this.option(S)&&T(this)&&(t=this[e]()),t},isEmpty:function(){return!1===this.option(S)&&T(this)?!this._itemCount:this.callBase(this,arguments)},isLastPageLoaded:function(){var e=!1;if(!1===this.option(S)&&T(this)){var t=this.getLoadPageParams(!0),n=t.pageIndex,i=t.loadPageCount,o=this.pageCount();e=n+i>=o}else e=this.callBase.apply(this,arguments);return e}},s.default.proxyMethod(v,"getVirtualContentSize"),s.default.proxyMethod(v,"setViewportItemIndex"),v),resizing:{resize:function(){var e,t=this,n=t.callBase;if(D(t)||s.default.isVirtualRowRendering(t)){clearTimeout(t._resizeTimeout);var i=new Date-t._lastTime,o=t.option("scrolling.updateTimeout");t._lastTime&&i<o?(e=new u.Deferred,t._resizeTimeout=setTimeout((function(){n.apply(t).done(e.resolve).fail(e.reject),t._lastTime=new Date}),o),t._lastTime=new Date):(e=n.apply(t),t._dataController.isLoaded()&&(t._lastTime=new Date))}else e=n.apply(t);return e},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._resizeTimeout)}}},views:{rowsView:M}}};t.virtualScrollingModule=R},47305:function(e,t,n){t.VirtualScrollController=void 0,t.getContentHeightLimit=y,t.getPixelRatio=void 0,t.subscribeToExternalScrollers=x;var i=p(n(68374)),o=n(58201),a=p(n(55994)),r=p(n(47810)),s=p(n(49387)),l=n(95479),u=p(n(38377)),d=n(62754),c=p(n(44504)),h=n(31142),f=n(35922);function p(e){return e&&e.__esModule?e:{default:e}}var g="virtual",m="scrolling.legacyMode",_=function(e){return e.option("scrolling.mode")===g||e._isVirtual},v=function(e){return e.devicePixelRatio||1};function y(e){return e.mozilla?8e6:15e6/v((0,o.getWindow)())}function x(e,t,n){var r,u=[],d=[],c=[];function h(t){var n=t.element?t.$element():t,i=s.default.offset(n);return i?t.scrollTop()-(i.top-e.offset().top):e.offset().top}var f={on:function(e,t,n){e.on("scroll",n)},off:function(e,t,n){e.off("scroll",n)}};function p(e){var n="#document"===e.get(0).nodeName,r=e.data("dxScrollable"),s=f;if(r||(r=n&&(0,i.default)((0,o.getWindow)())||"auto"===e.css("overflowY")&&e,s=a.default,r)){var l=function(e){return function(){var n=e.scrollTop()-h(e);t(n=n>0?n:0)}}(r);s.on(r,"scroll",l),d.push((function(e){var t=h(r),n=r.scrollTo?"scrollTo":"scrollTop";e-t>=0&&r[n](e+t)})),u.push(r),c.push((function(){s.off(r,"scroll",l)}))}}for(r=(n=n||e).parent();r.length;r=r.parent())p(r);return{scrollTo:function(e){(0,l.each)(d,(function(t,n){n(e)}))},dispose:function(){(0,l.each)(c,(function(e,t){t()}))}}}t.getPixelRatio=v;var b,w=u.default.inherit((b={ctor:function(e,t,n){this._dataOptions=t,this.component=e,this._viewportSize=!1===e.option(m)?15:0,this._viewportItemSize=20,this._viewportItemIndex=0,this._position=0,this._contentSize=0,this._itemSizes={},this._sizeRatio=1,this._isVirtual=n,this.positionChanged=(0,c.default)(),this._dataLoader=new h.VirtualDataLoader(this,this._dataOptions)},getItemSizes:function(){return this._itemSizes},option:function(){return this.component.option.apply(this.component,arguments)},isVirtual:function(){return this._isVirtual},virtualItemsCount:function(){if(_(this)){var e=this._dataOptions,t=e.totalItemsCount();if(!1===this.option(m)&&-1!==t){var n=this.getViewportParams(),i=e.loadedOffset(),o=e.loadedItemCount(),a=Math.max(n.skip,i),r=Math.min(n.take,o),s=Math.max(t-(a+r),0);return{begin:a,end:s}}return this._dataLoader.virtualItemsCount.apply(this._dataLoader,arguments)}},getScrollingTimeout:function(){var e,t=this.option("scrolling.renderAsync"),n=0;(0,f.isDefined)(t)?t&&(n=null!==(e=this.option("scrolling.timeout"))&&void 0!==e?e:0):(n=Math.min(this.option("scrolling.timeout")||0,this._dataOptions.changingDuration()))<this.option("scrolling.renderingThreshold")&&(n=this.option("scrolling.minTimeout")||0);return n},setViewportPosition:function(e){var t=this,n=new d.Deferred,i=this.getScrollingTimeout();return clearTimeout(this._scrollTimeoutID),i>0?this._scrollTimeoutID=setTimeout((function(){t._setViewportPositionCore(e),n.resolve()}),i):(this._setViewportPositionCore(e),n.resolve()),n.promise()},getViewportPosition:function(){return this._position},getItemIndexByPosition:function(e){var t;e=null!==(t=e)&&void 0!==t?t:this._position;for(var n=this.getItemSize(),i=0,o=0,a=Object.keys(this._itemSizes).concat(-1),r=0;r<a.length&&i<e;r++){var s=parseInt(a[r]),l=(e-i)/n;if(s<0||o+l<s){o+=l;break}i+=(l=s-o)*n,o+=l;var u=this._itemSizes[s];o+=(i+=u)<e?1:(e-i+u)/u}return Math.round(50*o)/50},isScrollingBack:function(){return this._position<this._prevPosition},_setViewportPositionCore:function(e){this._prevPosition=this._position||0,this._position=e;var t=this.getItemIndexByPosition(),n=this.setViewportItemIndex(t);return this.positionChanged.fire(),n},setContentItemSizes:function(e){var t=this,n=this.virtualItemsCount();if(this._contentSize=e.reduce((function(e,t){return e+t}),0),n){e.forEach((function(e,i){t._itemSizes[n.begin+i]=e}));var i=(n.begin+n.end+this.itemsCount())*this._viewportItemSize,o=y(r.default);this._sizeRatio=i>o?o/i:1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getItemOffset:function(e,t){var n=this,i=this.virtualItemsCount(),o=e;if(!i)return 0;var a=0,r=this._dataOptions.totalItemsCount();return Object.keys(this._itemSizes).forEach((function(i){o&&(t?i>=r-e:i<e)&&(a+=n._itemSizes[i],o--)})),Math.floor(a+o*this._viewportItemSize*this._sizeRatio)},getContentOffset:function(e){var t="end"===e,n=this.virtualItemsCount();return n?this.getItemOffset(t?n.end:n.begin,t):0},getVirtualContentSize:function(){return this.virtualItemsCount()?this.getContentOffset("begin")+this.getContentOffset("end")+this._contentSize:0},getViewportItemIndex:function(){return this._viewportItemIndex},setViewportItemIndex:function(e){if(this._viewportItemIndex=e,!1!==this.option(m))return this._dataLoader.viewportItemIndexChanged.apply(this._dataLoader,arguments)},viewportItemSize:function(e){return void 0!==e&&(this._viewportItemSize=e),this._viewportItemSize},viewportSize:function(e){return void 0!==e&&(this._viewportSize=e),this._viewportSize},viewportHeight:function(e){var t=this.getItemIndexByPosition(),n=this.getItemIndexByPosition(this._position+e);this.viewportSize(Math.ceil(n-t)),this._viewportItemIndex!==t&&this._setViewportPositionCore(this._position)},reset:function(e){this._dataLoader.reset(),e||(this._itemSizes={})},subscribeToWindowScrollEvents:function(e){var t=this;this._windowScroll=this._windowScroll||x(e,(function(e){t.viewportItemSize()&&t.setViewportPosition(e)}))},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(e){this._windowScroll&&this._windowScroll.scrollTo(e)},isVirtualMode:function(){return _(this)},isAppendMode:function(){return"infinite"===(e=this).option("scrolling.mode")&&!e._isVirtual;var e},getViewportParams:function(){var e,t=this.option("scrolling.mode")===g,n=this._dataOptions.totalItemsCount(),i=this._viewportItemIndex,o=this._viewportSize+i,a=this.option("scrolling.prerenderedRowChunkSize")||1,r=this.isScrollingBack(),s=null!==(e=this.option("scrolling.prerenderedRowCount"))&&void 0!==e?e:1,l=r?s:0,u=r?0:s,d=Math.floor(Math.max(0,i-l)/a)*a,c=Math.ceil((o+u-d)/a)*a;if(t){var h=Math.max(0,n-d);c=Math.min(c,h)}return{skip:d,take:c}},itemsCount:function(){return this.option(m)?this._dataLoader.itemsCount.apply(this._dataLoader,arguments):this._dataOptions.itemsCount()}},["pageIndex","beginPageIndex","endPageIndex","pageSize","load","loadIfNeed","handleDataChanged","getDelayDeferred"].forEach((function(e){b[e]=function(){return this._dataLoader[e].apply(this._dataLoader,arguments)}})),b));t.VirtualScrollController=w},71004:function(e,t,n){t.default=void 0;var i=g(n(38377)),o=n(20576),a=n(95479),r=n(35922),s=n(13306),l=g(n(96688)),u=g(n(2630)),d=g(n(29837)),c=n(89386),h=g(n(96687)),f=g(n(99236)),p=g(n(92449));function g(e){return e&&e.__esModule?e:{default:e}}var m="expanded",_="selected";u.default.setEditorClass(d.default);var v=i.default.inherit({ctor:function(e){this.options={},(0,s.extend)(this.options,this._defaultOptions(),e),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(e,t){this.options[e]=t,"recursiveSelection"===e&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new p.default,onNodeChanged:o.noop,sort:null}},_createInternalDataStructure:function(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection:function(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(_)},_updateExpansion:function(e){this.options.recursiveExpansion&&(e?this._updateOneBranch(e):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(m)},_updateNodesKeysArray:function(e){var t=this,n=[];return(0,a.each)(t._getDataBySelectionMode(),(function(i,o){t._isNodeVisible(o)&&o.internalFields[e]&&(e===m||t.options.multipleSelection?n.push(o.internalFields.key):(n.length&&t.toggleSelection(n[0],!1,!0),n=[o.internalFields.key]))})),n},_getDataBySelectionMode:function(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:function(e){return!1!==e.internalFields.item.visible},_getByKey:function(e,t){return e===this._dataStructure?this.options.dataConverter._getByKey(t):this.options.dataConverter.getByKey(e,t)},_setChildrenSelection:function(){var e=this;(0,a.each)(this._dataStructure,(function(t,n){if(n.internalFields.childrenKeys.length){var i=n.internalFields.selected;!0===i&&e._toggleChildrenSelection(n,i)}}))},_setParentSelection:function(){var e=this;(0,a.each)(this._dataStructure,(function(t,n){e.options.dataConverter.getParentNode(n)&&n.internalFields.parentKey!==e.options.rootValue&&e._iterateParents(n,(function(t){var n=e._calculateSelectedState(t);e._setFieldState(t,_,n)}))}))},_setParentExpansion:function(){var e=this;(0,a.each)(this._dataStructure,(function(t,n){n.internalFields.expanded&&e._updateOneBranch(n.internalFields.key)}))},_updateOneBranch:function(e){var t=this,n=this.getNodeByKey(e);t._iterateParents(n,(function(e){t._setFieldState(e,m,!0)}))},_iterateChildren:function(e,t,n,i){if((0,r.isFunction)(n)){var o=this,s=e.internalFields.key;-1===(i=i||[]).indexOf(s)&&(i.push(s),(0,a.each)(e.internalFields.childrenKeys,(function(e,a){var r=o.getNodeByKey(a);n(r),r.internalFields.childrenKeys.length&&t&&o._iterateChildren(r,t,n,i)})))}},_iterateParents:function(e,t,n){if(e.internalFields.parentKey!==this.options.rootValue&&(0,r.isFunction)(t)){n=n||[];var i=e.internalFields.key;if(-1===n.indexOf(i)){n.push(i);var o=this.options.dataConverter.getParentNode(e);o&&(t(o),o.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(o,t,n))}}},_calculateSelectedState:function(e){for(var t=e.internalFields.childrenKeys.length,n=0,i=0,o=!1,a=0;a<=t-1;a++){var r=this.getNodeByKey(e.internalFields.childrenKeys[a]),s=!1===r.internalFields.item.visible,l=r.internalFields.selected;s?i++:l?n++:void 0===l&&(n+=.5)}return n&&(o=n===t-i||void 0),o},_toggleChildrenSelection:function(e,t){var n=this;this._iterateChildren(e,!0,(function(e){n._isNodeVisible(e)&&n._setFieldState(e,_,t)}))},_setFieldState:function(e,t,n){e.internalFields[t]!==n&&(e.internalFields[t]=n,e.internalFields.publicNode&&(e.internalFields.publicNode[t]=n),this.options.dataAccessors.setters[t](e.internalFields.item,n),this.options.onNodeChanged(e))},_markChildren:function(e){var t=this;(0,a.each)(e,(function(e,n){var i=t.getIndexByKey(n),o=t.getNodeByKey(n);t._dataStructure[i]=0,o.internalFields.childrenKeys.length&&t._markChildren(o.internalFields.childrenKeys)}))},_removeNode:function(e){var t=this.getNodeByKey(e);this._dataStructure[this.getIndexByKey(e)]=0,this._markChildren(t.internalFields.childrenKeys);var n=this,i=0,o=(0,s.extend)([],this._dataStructure);(0,a.each)(o,(function(e,t){t||(n._dataStructure.splice(e-i,1),i++)}))},_addNode:function(e){var t=this.options.dataConverter,n=t._convertItemToNode(e,this.options.dataAccessors.getters.parentKey(e));this._dataStructure=this._dataStructure.concat(n),this._initialDataStructure=this._initialDataStructure.concat(n),t._dataStructure=t._dataStructure.concat(n)},_updateFields:function(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys:function(){return this._selectedNodesKeys},getExpandedNodesKeys:function(){return this._expandedNodesKeys},getData:function(){return this._dataStructure},getFullData:function(){return this._initialDataStructure},getNodeByItem:function(e){var t=null;return(0,a.each)(this._dataStructure,(function(n,i){if(i.internalFields.item===e)return t=i,!1})),t},getNodesByItems:function(e){var t=this,n=[];return(0,a.each)(e,(function(e,i){var o=t.getNodeByItem(i);o&&n.push(o)})),n},getNodeByKey:function(e,t){return this._getByKey(t||this._getDataBySelectionMode(),e)},getTreeNodes:function(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount:function(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount:function(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:function(e){return e.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(e){return(0,h.default)(this._dataStructure).filter(["internalFields.parentKey",e]).toArray()},getIndexByKey:function(e){return this.options.dataConverter.getIndexByKey(e)},addItem:function(e){this._addNode(e),this._updateFields()},removeItem:function(e){this._removeNode(e),this._updateFields()},toggleSelection:function(e,t,n){var i=this._isSingleModeUnselect(t),o=this._getByKey(n||i?this._initialDataStructure:this._dataStructure,e);this._setFieldState(o,_,t),this.options.recursiveSelection&&!n&&(t?this._setChildrenSelection():this._toggleChildrenSelection(o,t),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(_)},_isSingleModeUnselect:function(e){return!this.options.multipleSelection&&!e},toggleNodeDisabledState:function(e,t){var n=this.getNodeByKey(e);this._setFieldState(n,"disabled",t)},toggleSelectAll:function(e){if((0,r.isDefined)(e)){var t=this,n=t._selectedNodesKeys[t._selectedNodesKeys.length-1],i=t._isSingleModeUnselect(e)?this._initialDataStructure:this._dataStructure;(0,a.each)(i,(function(n,i){t._isNodeVisible(i)&&t._setFieldState(i,_,e)})),t._selectedNodesKeys=t._updateNodesKeysArray(_),!e&&t.options.selectionRequired&&t.toggleSelection(n,!0)}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(e,t){var n=this.getNodeByKey(e);this._setFieldState(n,m,t),t&&this._updateExpansion(e),this._expandedNodesKeys=this._updateNodesKeysArray(m)},isFiltered:function(e){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[e]).length},_createCriteria:function(e,t,n){var i=[];return Array.isArray(e)?((0,a.each)(e,(function(e,o){i.push([o,n,t],"or")})),i.pop(),i):[e,n,t]},_filterDataStructure:function(e,t){var n=this.options.searchExpr||this.options.dataAccessors.getters.display,i=u.default.getOperationBySearchMode(this.options.searchMode),o=this._createCriteria(n,e,i);return t=t||this._initialDataStructure,(0,h.default)(t).filter(o).toArray()},search:function(e){var t=this,n=this._filterDataStructure(e),i=this.options.dataConverter;return function e(n,o){for(var a=n.length;o<a;){var r=n[o];if(r.internalFields.parentKey!==t.options.rootValue){var s=i.getParentNode(r);s?(s.internalFields.expanded||t._setFieldState(s,m,!0),(0,c.inArray)(s,n)>-1?o++:(n.splice(o,0,s),e(n,o))):(l.default.log("W1007",r.internalFields.parentKey,r.internalFields.key),o++)}else o++}}(n,0),this.options.sort&&(n=f.default.queryByOptions((0,h.default)(n),{sort:this.options.sort}).toArray()),i._indexByKey={},(0,a.each)(n,(function(e,t){t.internalFields.childrenKeys=[],i._indexByKey[t.internalFields.key]=e})),i._dataStructure=n,i.setChildrenKeys(),i._dataStructure}});t.default=v,e.exports=t.default,e.exports.default=t.default},92449:function(e,t,n){t.default=void 0;var i=l(n(38377)),o=n(13306),a=l(n(96688)),r=n(95479),s=n(35922);function l(e){return e&&e.__esModule?e:{default:e}}var u=i.default.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(e,t){var n=this;(0,r.each)(e,(function(e,i){var o=(0,s.isDefined)(t)?t:n._getParentId(i),a=n._convertItemToNode(i,o);n._dataStructure.push(a),n._checkForDuplicateId(a.internalFields.key),n._indexByKey[a.internalFields.key]=n._dataStructure.length-1,n._itemHasChildren(i)&&n._convertItemsToNodes(n._dataAccessors.getters.items(i),a.internalFields.key)}))},_checkForDuplicateId:function(e){if((0,s.isDefined)(this._indexByKey[e]))throw a.default.Error("E1040",e)},_getParentId:function(e){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(e):void 0},_itemHasChildren:function(e){if("plain"!==this._dataType){var t=this._dataAccessors.getters.items(e);return t&&t.length}},_getUniqueKey:function(e){var t=this._dataAccessors.getters.key,n=t(e);return t&&(n||0===n)&&(0,s.isPrimitive)(n)?n:this.getItemsCount()},_convertItemToNode:function(e,t){this._itemsCount++,!1!==e.visible&&this._visibleItemsCount++;var n=this,i={internalFields:{disabled:n._dataAccessors.getters.disabled(e,{defaultValue:!1}),expanded:n._dataAccessors.getters.expanded(e,{defaultValue:!1}),selected:n._dataAccessors.getters.selected(e,{defaultValue:!1}),key:n._getUniqueKey(e),parentKey:(0,s.isDefined)(t)?t:n._rootValue,item:n._makeObjectFromPrimitive(e),childrenKeys:[]}};return(0,o.extend)(i,e),delete i.items,i},setChildrenKeys:function(){var e=this;(0,r.each)(this._dataStructure,(function(t,n){if(n.internalFields.parentKey!==e._rootValue){var i=e.getParentNode(n);i&&i.internalFields.childrenKeys.push(n.internalFields.key)}}))},_makeObjectFromPrimitive:function(e){if((0,s.isPrimitive)(e)){var t=e;e={},this._dataAccessors.setters.key(e,t)}return e},_convertToPublicNode:function(e,t){if(!e)return null;var n={text:this._dataAccessors.getters.display(e),key:e.internalFields.key,selected:e.internalFields.selected,expanded:e.internalFields.expanded,disabled:e.internalFields.disabled,parent:t||null,itemData:e.internalFields.item,children:[],items:[]};return n.parent&&(n.parent.children.push(n),n.parent.items.push(n)),n},convertToPublicNodes:function(e,t){if(!e.length)return[];var n=this,i=[];return(0,r.each)(e,(function(e,o){o=(0,s.isPrimitive)(o)?n._getByKey(o):o;var a=n._convertToPublicNode(o,t);a.children=n.convertToPublicNodes(o.internalFields.childrenKeys,a),i.push(a),o.internalFields.publicNode=a})),i},setDataAccessors:function(e){this._dataAccessors=e},_getByKey:function(e){return this._dataStructure[this.getIndexByKey(e)]||null},getParentNode:function(e){return this._getByKey(e.internalFields.parentKey)},getByKey:function(e,t){if(null==t)return null;var n=null,i=this;return function(e,t){return(0,r.each)(e,(function(e,o){if((o.internalFields&&o.internalFields.key||i._dataAccessors.getters.key(o)).toString()===t.toString())return n=o,!1})),n}(e,t)},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var e=this;this._indexByKey={},(0,r.each)(this._dataStructure,(function(t,n){e._checkForDuplicateId(n.internalFields.key),e._indexByKey[n.internalFields.key]=t}))},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},(0,r.each)(this._dataStructure,(function(e,t){t.internalFields.childrenKeys=[]}))},getIndexByKey:function(e){return this._indexByKey[e]},createPlainStructure:function(e,t,n){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=t,this._dataType=n,this._indexByKey={},this._convertItemsToNodes(e),this.setChildrenKeys(),this._dataStructure}});t.default=u,e.exports=t.default,e.exports.default=t.default},65810:function(e,t,n){t.default=void 0;var i=p(n(68374)),o=n(47617),a=n(13306),r=n(95479),s=p(n(20530)),l=n(44899),u=p(n(71004)),d=p(n(11050)),c=n(93280),h=n(35922),f=n(20576);function p(e){return e&&e.__esModule?e:{default:e}}var g="dx-state-disabled",m=d.default.inherit({_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.default.real().deviceType&&!s.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var e=this._createDataAdapterAccessors();this._dataAdapter=new u.default((0,a.extend)({dataAccessors:{getters:e.getters,setters:e.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:f.noop,_initDynamicTemplates:function(){var e=this;this._templateManager.addDefaultTemplates({item:new c.BindableTemplate(function(t,n){t.html(n.html).append(this._getIconContainer(n)).append(this._getTextContainer(n)).append(this._getPopoutContainer(n)),e._addContentClasses(n,t.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})})},_getIconContainer:function(e){return e.icon?(0,l.getImageContainer)(e.icon):void 0},_getTextContainer:function(e){return(0,i.default)("<span>").text(e.text)},_getPopoutContainer:f.noop,_addContentClasses:f.noop,_initAccessors:function(){var e=this;(0,r.each)(this._getAccessors(),(function(t,n){e._compileAccessor(n)})),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(e){var t=this,n=[];return(0,r.each)(e.internalFields.childrenKeys,(function(e,i){var o=t._dataAdapter.getNodeByKey(i);n.push(o)})),n},_hasChildren:function(e){return e&&e.internalFields.childrenKeys.length},_compileAccessor:function(e){var t="_"+e+"Getter",n="_"+e+"Setter",i=this.option(e+"Expr");return i?(0,h.isFunction)(i)?(this[n]=function(e,t){e[i()]=t},void(this[t]=function(e){return e[i()]})):(this[t]=(0,o.compileGetter)(i),void(this[n]=(0,o.compileSetter)(i))):(this[t]=f.noop,void(this[n]=f.noop))},_createDataAdapterAccessors:function(){var e=this,t={getters:{},setters:{}};return(0,r.each)(this._getAccessors(),(function(n,i){var o="_"+i+"Getter",a="_"+i+"Setter",r="parentId"===i?"parentKey":i;t.getters[r]=e[o],t.setters[r]=e[a]})),t.getters.display=this._displayGetter?this._displayGetter:function(e){return e.text},t},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:f.noop,_renderItemFrame:function(e,t){var n=this.callBase.apply(this,arguments);return n.toggleClass(g,!!this._disabledGetter(t)),n},_optionChanged:function(e){switch(e.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(e);break;default:this.callBase(e)}}});t.default=m,e.exports=t.default,e.exports.default=t.default},9619:function(e,t,n){var i;t.default=void 0;var o=((i=n(15887))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},56957:function(e,t){t.default=void 0;var n=new(function(){function e(){this._converters={}}var t=e.prototype;return t.addConverter=function(e,t){this._converters[e]=t},t.getConverter=function(e){return this._converters[e]},e}());t.default=n,e.exports=t.default,e.exports.default=t.default},44844:function(e,t,n){t.default=void 0;var i,o=(i=n(56957))&&i.__esModule?i:{default:i},a=function(){function e(){}var t=e.prototype;return t.setQuillInstance=function(e){this.quillInstance=e},t.toHtml=function(){if(this.quillInstance)return this._isQuillEmpty()?"":this.quillInstance.getSemanticHTML(0,this.quillInstance.getLength()+1)},t._isQuillEmpty=function(){var e=this.quillInstance.getContents();return 1===e.length()&&this._isDeltaEmpty(e)},t._isDeltaEmpty=function(e){return e.reduce((function(e,t){return-1!==t.insert.indexOf("\n")}))},e}();o.default.addConverter("delta",a);var r=a;t.default=r,e.exports=t.default,e.exports.default=t.default},52935:function(e,t,n){t.default=void 0;var i=l(n(42552)),o=l(n(4848)),a=n(58201),r=l(n(96688)),s=l(n(56957));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(){var e,t=(0,a.getWindow)(),n=t&&t.TurndownService||i.default,s=t&&t.showdown||o.default;if(!n)throw r.default.Error("E1041","Turndown");if(!s)throw r.default.Error("E1041","DevExtreme-Showdown");this._html2Markdown=new n,null!==(e=this._html2Markdown)&&void 0!==e&&e.addRule&&(this._html2Markdown.addRule("emptyLine",{filter:function(e){return"p"===e.nodeName.toLowerCase()&&"<br>"===e.innerHTML},replacement:function(){return"<br>"}}),this._html2Markdown.keep(["table"])),this._markdown2Html=new s.Converter({simpleLineBreaks:!0,strikethrough:!0,tables:!0})}var t=e.prototype;return t.toMarkdown=function(e){return this._html2Markdown.turndown(e||"")},t.toHtml=function(e){var t=this._markdown2Html.makeHtml(e);return t&&(t=t.replace(new RegExp("\\r?\\n","g"),"")),t},e}();s.default.addConverter("markdown",u);var d=u;t.default=d,e.exports=t.default,e.exports.default=t.default},90223:function(e,t,n){t.default=void 0;var i,o=(i=n(9549))&&i.__esModule?i:{default:i},a={};o.default&&(a=o.default.import("attributors/style/align")).whitelist.push("left");var r=a;t.default=r,e.exports=t.default,e.exports.default=t.default},73360:function(e,t,n){t.default=void 0;var i,o=(i=n(9549))&&i.__esModule?i:{default:i},a={};o.default&&((a=o.default.import("attributors/style/font")).whitelist=null);var r=a;t.default=r,e.exports=t.default,e.exports.default=t.default},72446:function(e,t,n){t.default=void 0;var i,o=(i=n(9549))&&i.__esModule?i:{default:i},a=n(35922);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s={};o.default&&((s=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),i.create=function(t){var n=t&&t.src||t,i=e.create.call(this,n);if((0,a.isObject)(t)){var o=function(e,n){t[e]&&i.setAttribute(e,n)};o("alt",t.alt),o("width",t.width),o("height",t.height)}return i},i.formats=function(t){var n=e.formats.call(this,t);return n.imageSrc=t.getAttribute("src"),n};var o=i.prototype;return o.formats=function(){var t=e.prototype.formats.call(this),n=this.domNode.style.float;return n&&(t.float=n),t},o.format=function(t,n){"float"===t?this.domNode.style[t]=n:e.prototype.format.call(this,t,n)},i.value=function(e){return{src:e.getAttribute("src"),width:e.getAttribute("width"),height:e.getAttribute("height"),alt:e.getAttribute("alt")}},i}(o.default.import("formats/image"))).blotName="extendedImage");var l=s;t.default=l,e.exports=t.default,e.exports.default=t.default},8980:function(e,t,n){t.default=void 0;var i,o=(i=n(9549))&&i.__esModule?i:{default:i},a=n(35922);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s={};o.default&&(s=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),i.create=function(t){var n=t&&t.href||t,i=e.create.call(this,n);return(0,a.isObject)(t)&&(t.text&&(i.innerText=t.text),t.target||i.removeAttribute("target")),i},i.formats=function(e){return{href:e.getAttribute("href"),target:e.getAttribute("target")}};var o=i.prototype;return o.formats=function(){var t=e.prototype.formats.call(this),n=i.formats(this.domNode),o=n.href,a=n.target;return t.link=o,t.target=a,t},o.format=function(t,n){"link"===t&&(0,a.isObject)(n)?(n.text&&(this.domNode.innerText=n.text),n.target?this.domNode.setAttribute("target","_blank"):this.domNode.removeAttribute("target"),this.domNode.setAttribute("href",n.href)):e.prototype.format.call(this,t,n)},i.value=function(e){return{href:e.getAttribute("href"),text:e.innerText,target:!!e.getAttribute("target")}},i}(o.default.import("formats/link")));var l=s;t.default=l,e.exports=t.default,e.exports.default=t.default},72410:function(e,t,n){t.default=void 0;var i=a(n(9549)),o=a(n(68374));function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s={};i.default&&((s=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),i.create=function(t){var n=e.create.call(this);return n.setAttribute("spellcheck",!1),n.dataset.marker=t.marker,n.dataset.mentionValue=t.value,n.dataset.id=t.id,this.renderContent(n,t),n},i.value=function(e){return{marker:e.dataset.marker,id:e.dataset.id,value:e.dataset.mentionValue}},i.renderContent=function(e,t){var n=this._templates.get(t.marker);n?n.render({model:t,container:e}):this.baseContentRender(e,t)},i.baseContentRender=function(e,t){var n=(0,o.default)("<span>").text(t.marker);(0,o.default)(e).append(n).append(t.value)},i.addTemplate=function(e,t){this._templates.set(e,t)},i.removeTemplate=function(e){this._templates.delete(e)},i}(i.default.import("blots/embed"))).blotName="mention",s.tagName="span",s.className="dx-mention",s._templates=new Map);var l=s;t.default=l,e.exports=t.default,e.exports.default=t.default},2909:function(e,t,n){t.default=void 0;var i,o=(i=n(9549))&&i.__esModule?i:{default:i},a={};o.default&&((a=o.default.import("attributors/style/size")).whitelist=null);var r=a;t.default=r,e.exports=t.default,e.exports.default=t.default},76195:function(e,t,n){t.default=void 0;var i,o=(i=n(9549))&&i.__esModule?i:{default:i},a=n(20576),r=n(13306);function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l={};o.default&&((l=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n),i.create=function(t){var n,i,o=e.create.call(this),r=t.value;return Array.isArray(t.escapeChar)?(n=(0,a.ensureDefined)(t.escapeChar[0],""),i=(0,a.ensureDefined)(t.escapeChar[1],"")):n=i=t.escapeChar,o.innerText=n+r+i,o.dataset.varStartEscChar=n,o.dataset.varEndEscChar=i,o.dataset.varValue=t.value,o},i.value=function(e){return(0,r.extend)({},{value:e.dataset.varValue,escapeChar:[e.dataset.varStartEscChar||"",e.dataset.varEndEscChar||""]})},i}(o.default.import("blots/embed"))).blotName="variable",l.tagName="span",l.className="dx-variable");var u=l;t.default=u,e.exports=t.default,e.exports.default=t.default},10803:function(e,t){t.default=void 0;t.default=function(e){var t=e.import("delta");return function(e,n){var i=n.ops.slice(),o=i[0];o.insert=o.insert.replace(/^\s+/,"");var a,r,s,l=o.insert.match(/^(\S+)\s+/),u=l&&function(e){var t=e.getAttribute("style");if(t){var n=t.replace(/\n+/g,"").match(/level(\d+)/);return n?n[1]-1:0}return!1}(e);return l&&!1!==u?(o.insert=o.insert.substring(l[0].length,o.insert.length),(r=(a=i)[a.length-1]).insert=r.insert.trim(),i.push({insert:"\n",attributes:{list:(s=l,s[1].match(/\S+\./)?"ordered":"bullet"),indent:u}}),new t(i)):n}},e.exports=t.default,e.exports.default=t.default},30963:function(e,t,n){t.default=void 0;var i=r(n(9549)),o=r(n(56764)),a=n(35922);function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=o.default;i.default&&(u=function(e){var t,n;function i(t,n){var i;return(i=e.call(this,t,n)||this).editorInstance=n.editorInstance,i}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var o=i.prototype;return o.saveValueChangeEvent=function(e){this.editorInstance._saveValueChangeEvent(e)},o.addCleanCallback=function(e){this.editorInstance.addCleanCallback(e)},o.handleOptionChangeValue=function(e){var t=this;(0,a.isObject)(e)?Object.entries(e).forEach((function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),i=n[0],o=n[1];return t.option(i,o)})):(0,a.isDefined)(e)||null==this||this.clean()},i}(i.default.import("core/module")));var d=u;t.default=d,e.exports=t.default,e.exports.default=t.default},78859:function(e,t,n){t.default=void 0;var i=d(n(9549)),o=d(n(55994)),a=n(39611),r=n(95479),s=d(n(47810)),l=n(58201),u=d(n(30963));function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=u.default;i.default&&(f=function(e){var t,n;function i(t,n){var i,r=(i=e.call(this,t,n)||this).editorInstance.NAME;return o.default.on(i.quill.root,(0,a.addNamespace)("drop",r),i._dropHandler.bind(c(i))),o.default.on(i.quill.root,(0,a.addNamespace)("paste",r),i._pasteHandler.bind(c(i))),i}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var u=i.prototype;return u._dropHandler=function(e){var t,n=e.originalEvent.dataTransfer,i=null==n||null===(t=n.files)||void 0===t?void 0:t.length;this.saveValueChangeEvent(e),e.preventDefault(),i&&this._getImage(n.files,this._addImage.bind(this))},u._pasteHandler=function(e){var t,n=this,i=e.originalEvent.clipboardData;if(this.saveValueChangeEvent(e),i){var o=null===(t=i.items)||void 0===t?void 0:t.length;!i.getData("text/html")&&o&&this._getImage(i.items,(function(e){n._isBrowserSupportImagePaste(s.default)||n._addImage(e)}))}},u._isBrowserSupportImagePaste=function(e){var t=e.mozilla,n=e.chrome,i=e.version;return t||n&&i>82},u._isImage=function(e){return!!e.type.match(/^image\/(a?png|bmp|gif|p?jpe?g|svg|vnd\.microsoft\.icon|webp)/i)},u._getImage=function(e,t){var n=this,i=(0,l.getWindow)();(0,r.each)(e,(function(e,o){if(n._isImage(o)){var a=new i.FileReader;a.onload=function(e){var n=e.target;t(n.result)};var r=o.getAsFile?o.getAsFile():o;r instanceof i.Blob&&a.readAsDataURL(r)}}))},u._addImage=function(e){var t=this.quill.getSelection(),n=t?t.index:this.quill.getLength();this.quill.insertEmbed(n,"extendedImage",e,"user")},i}(u.default));var p=f;t.default=p,e.exports=t.default,e.exports.default=t.default},56764:function(e,t){t.default=void 0,t.default=function(){},e.exports=t.default,e.exports.default=t.default},12542:function(e,t,n){t.default=void 0;var i=f(n(68374)),o=f(n(9549)),a=n(47617),r=n(35922),s=n(13306),l=n(6415),u=f(n(55994)),d=f(n(30963)),c=f(n(2269)),h=f(n(72410));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _=d.default;if(o.default){var v={ARROW_UP:"upArrow",ARROW_DOWN:"downArrow",ARROW_LEFT:"leftArrow",ARROW_RIGHT:"rightArrow",ENTER:"enter",ESCAPE:"escape",SPACE:"space",PAGE_UP:"pageUp",PAGE_DOWN:"pageDown",END:"end",HOME:"home"},y=[v.ARROW_LEFT,v.ARROW_RIGHT,v.PAGE_UP,v.PAGE_DOWN,v.END,v.HOME],x=[" ","\n"];o.default.register({"formats/mention":h.default},!0),_=function(e){var t,n;n=e,(t=_).prototype=Object.create(n.prototype),t.prototype.constructor=t,m(t,n);var d,c,f=_.prototype;function _(t,n){var i;return(i=e.call(this,t,n)||this)._mentions={},n.mentions.forEach((function(e){var t=e.marker;t||(e.marker=t="@");var n=e.template;if(n){var o=i.editorInstance._getTemplate(n);o&&h.default.addTemplate(t,o)}i._mentions[t]=(0,s.extend)({},i._getDefaultOptions(),e)})),i._attachKeyboardHandlers(),i.addCleanCallback(i.clean.bind(g(i))),i.quill.on("text-change",i.onTextChange.bind(g(i))),i}return f._getDefaultOptions=function(){var t=e.prototype._getDefaultOptions.call(this);return(0,s.extend)(t,{itemTemplate:"item",valueExpr:"this",displayExpr:"this",template:null,searchExpr:null,searchTimeout:500,minSearchLength:0})},f._attachKeyboardHandlers=function(){this.quill.keyboard.addBinding({key:v.ARROW_UP},this._moveToItem.bind(this,"prev")),this.quill.keyboard.addBinding({key:v.ARROW_DOWN},this._moveToItem.bind(this,"next")),this.quill.keyboard.addBinding({key:[v.ENTER,v.SPACE]},this._selectItemHandler.bind(this));var e=this.quill.keyboard.bindings[v.ENTER];e.unshift(e.pop()),this.quill.keyboard.addBinding({key:v.ESCAPE},this._escapeKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:[v.ARROW_LEFT,v.ARROW_RIGHT],shiftKey:!0},this._ignoreKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:y},this._ignoreKeyHandler.bind(this))},f._moveToItem=function(e){var t=this._list.getDataSource();if(this._isMentionActive&&!t.isLoading()){var n="next"===e?"first":"last",o=(0,i.default)(this._list.option("focusedElement"))[e]();o=o.length?o:this._activeListItems[n](),this._list.option("focusedElement",(0,l.getPublicElement)(o)),this._list.scrollToItem(o)}return!this._isMentionActive},f._ignoreKeyHandler=function(){return!this._isMentionActive},f._fitIntoRange=function(e,t,n){return e>n?t:e<t?n:e},f._selectItemHandler=function(){return this._isMentionActive&&this._list.selectItem(this._list.option("focusedElement")),!this._isMentionActive},f._escapeKeyHandler=function(){return this._isMentionActive&&this._popup.hide(),!this._isMentionActive},f.renderList=function(t,n){this.compileGetters(this.options),e.prototype.renderList.call(this,t,n)},f.compileGetters=function(e){var t=e.displayExpr,n=e.valueExpr;this._valueGetter=(0,a.compileGetter)(t),this._idGetter=(0,a.compileGetter)(n)},f._getListConfig=function(t){var n=this,i=e.prototype._getListConfig.call(this,t);return(0,s.extend)(i,{itemTemplate:this.options.itemTemplate,onContentReady:function(){n._hasSearch&&(n._popup.repaint(),n._focusFirstElement(),n._hasSearch=!1)}})},f.insertEmbedContent=function(){var e=this._activeMentionConfig.marker.length,t=e+this._searchValue.length,n=this.getPosition(),i=this._list.option("selectedItem"),a={value:this._valueGetter(i),id:this._idGetter(i),marker:this._activeMentionConfig.marker},r=o.default.import("delta"),s=Math.max(0,n-e);s+="\n"===this._getCharByIndex(s)?1:0;var l=(new r).retain(s).delete(t).insert({mention:a}).insert(" ");this.quill.updateContents(l),this.quill.setSelection(s+2)},f._getLastInsertOperation=function(e){var t=e[e.length-1];if("insert"in t)return t;var n="delete"in t;if(n&&e.length>=2){var i=e[e.length-2];if(n&&"insert"in i)return i}return null},f.onTextChange=function(e,t,n){if("user"===n){var i=e.ops[e.ops.length-1];if(this._isMentionActive&&this._isPopupVisible)this._processSearchValue(i)&&this._filterList(this._searchValue);else{var o=e.ops,a=this._getLastInsertOperation(o);a&&this.checkMentionRequest(a,o)}}},f._processSearchValue=function(e){if("insert"in e)this._searchValue+=e.insert;else{if(!this._searchValue.length||e.delete>1)return this._popup.hide(),!1;this._searchValue=this._searchValue.slice(0,-1)}return!0},f.checkMentionRequest=function(e,t){var n=e.insert,i=this.quill.getSelection();n&&(0,r.isString)(n)&&i&&!this._isMarkerPartOfText(t[0].retain)&&(this._activeMentionConfig=this._mentions[n],this._activeMentionConfig&&(this._updateList(this._activeMentionConfig),this.savePosition(i.index),this._popup.option("position",this._popupPosition),this._searchValue="",this._popup.show()))},f._isMarkerPartOfText=function(e){return!(!e||-1!==x.indexOf(this._getCharByIndex(e-1)))},f._getCharByIndex=function(e){return this.quill.getContents(e,1).ops[0].insert},f._updateList=function(e){var t=e.dataSource,n=e.displayExpr,i=e.valueExpr,o=e.itemTemplate,a=e.searchExpr;this.compileGetters({displayExpr:n,valueExpr:i}),this._list.unselectAll(),this._list.option({dataSource:t,displayExpr:n,itemTemplate:o,searchExpr:a})},f._filterList=function(e){var t=this;if(this._isMinSearchLengthExceeded(e)){var n=this._activeMentionConfig.searchTimeout;n?(clearTimeout(this._searchTimer),this._searchTimer=setTimeout((function(){t._search(e)}),n)):this._search(e)}else this._resetFilter()},f._isMinSearchLengthExceeded=function(e){return e.length>=this._activeMentionConfig.minSearchLength},f._resetFilter=function(){clearTimeout(this._searchTimer),this._search(null)},f._search=function(e){this._hasSearch=!0,this._list.option("searchValue",e)},f._focusFirstElement=function(){if(this._list){var e=this._activeListItems.first();this._list.option("focusedElement",(0,l.getPublicElement)(e)),this._list.scrollToItem(e)}},f._getPopupConfig=function(){var t=this;return(0,s.extend)(e.prototype._getPopupConfig.call(this),{hideOnParentScroll:!1,onShown:function(){t._isMentionActive=!0,t._hasSearch=!1,t._focusFirstElement()},onHidden:function(){t._list.unselectAll(),t._list.option("focusedElement",null),t._isMentionActive=!1,t._search(null)},focusStateEnabled:!1})},f.clean=function(){var e=this;Object.keys(this._mentions).forEach((function(t){e._mentions[t].template&&h.default.removeTemplate(t)}))},d=_,(c=[{key:"_isPopupVisible",get:function(){var e;return null===(e=this._popup)||void 0===e?void 0:e.option("visible")}},{key:"_popupPosition",get:function(){var e=this.getPosition(),t=this.quill.getBounds(e?e-1:e),n=t.left,o=t.top,a=t.height,r=(0,i.default)(this.quill.root).offset(),s=r.left,l=r.top;return{of:u.default.Event("positionEvent",{pageX:s+n,pageY:l+o}),offset:{v:a},my:"top left",at:"top left",collision:{y:"flip",x:"flipfit"}}}},{key:"_activeListItems",get:function(){return this._list.itemElements().filter(":not(.".concat("dx-state-disabled",")"))}}])&&p(d.prototype,c),_}(c.default)}var b=_;t.default=b,e.exports=t.default,e.exports.default=t.default},2269:function(e,t,n){t.default=void 0;var i=n(58664),o=c(n(9549)),a=c(n(68374)),r=n(13306),s=n(58201),l=c(n(30963)),u=c(n(39114)),d=c(n(56757));function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=l.default;o.default&&(p=function(e){var t,n;n=e,(t=p).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var o,l,c=p.prototype;function p(t,n){var i;return(i=e.call(this,t,n)||this).options=(0,r.extend)({},i._getDefaultOptions(),n),i._popup=i.renderPopup(),i._popup.$wrapper().addClass("dx-suggestion-list-wrapper"),i}return c._getDefaultOptions=function(){return{dataSource:null}},c.renderList=function(e,t){var n=(0,a.default)("<div>").addClass("dx-suggestion-list").appendTo(e);this._list=this.options.editorInstance._createComponent(n,d.default,t)},c.renderPopup=function(){var e=this.options.editorInstance,t=(0,a.default)("<div>").appendTo(e.$element()),n=this._getPopupConfig();return e._createComponent(t,u.default,n)},c._getPopupConfig=function(){var e=this;return{contentTemplate:function(t){var n=e._getListConfig(e.options);e.renderList((0,a.default)(t),n)},deferRendering:!1,onShown:function(){e._list.focus()},onHidden:function(){e._list.unselectAll(),e._list.option("focusedElement",null)},showTitle:!1,width:"auto",height:"auto",shading:!1,hideOnParentScroll:!0,closeOnOutsideClick:!0,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},fullScreen:!1,maxHeight:this.maxHeight}},c._getListConfig=function(e){return{dataSource:e.dataSource,onSelectionChanged:this.selectionChangedHandler.bind(this),selectionMode:"single",pageLoadMode:"scrollBottom"}},c.selectionChangedHandler=function(e){this._popup.option("visible")&&(this._popup.hide(),this.insertEmbedContent(e))},c.insertEmbedContent=function(e){},c.showPopup=function(){this._popup&&this._popup.show()},c.savePosition=function(e){this.caretPosition=e},c.getPosition=function(){return this.caretPosition},o=p,(l=[{key:"maxHeight",get:function(){var e=(0,s.getWindow)(),t=e&&(0,i.getHeight)(e)||0;return Math.max(100,.5*t)}}])&&h(o.prototype,l),p}(l.default));var g=p;t.default=g,e.exports=t.default,e.exports.default=t.default},91787:function(e,t,n){t.default=void 0;var i=f(n(68374)),o=f(n(55994)),a=n(95429),r=n(39611),s=n(31648),l=f(n(20530)),u=f(n(46743)),d=n(37518),c=f(n(9549)),h=f(n(30963));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g="dxHtmlResizingModule",m=(0,r.addNamespace)("keydown",g),_=(0,r.addNamespace)("scroll",g),v=(0,r.addNamespace)("mousedown",g),y=function(e){var t,n;function h(t,n){var i;return(i=e.call(this,t,n)||this).allowedTargets=n.allowedTargets||["image"],i.enabled=!!n.enabled,i._hideFrameWithContext=i.hideFrame.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i)),i._framePositionChangedHandler=i._prepareFramePositionChangedHandler(),i.enabled&&(i._attachEvents(),i._createResizeFrame()),i}n=e,(t=h).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var f=h.prototype;return f._attachEvents=function(){o.default.on(this.quill.root,(0,r.addNamespace)(a.name,g),this._clickHandler.bind(this)),o.default.on(this.quill.root,_,this._framePositionChangedHandler),this.editorInstance.on("focusOut",this._hideFrameWithContext),this.quill.on("text-change",this._framePositionChangedHandler)},f._detachEvents=function(){o.default.off(this.quill.root,g),this.editorInstance.off("focusOut",this._hideFrameWithContext),this.quill.off("text-change",this._framePositionChangedHandler)},f._clickHandler=function(e){if(this._isAllowedTarget(e.target)){if(this._$target===e.target)return;this._$target=e.target,this.updateFramePosition(),this.showFrame(),this._adjustSelection()}else this._$target&&this.hideFrame()},f._prepareFramePositionChangedHandler=function(e){var t=this;return function(){t._$target&&t.updateFramePosition()}},f._adjustSelection=function(){this.quill.getSelection()||this.quill.setSelection(0,0)},f._isAllowedTarget=function(e){return this._isImage(e)},f._isImage=function(e){return-1!==this.allowedTargets.indexOf("image")&&"IMG"===e.tagName.toUpperCase()},f.showFrame=function(){this._$resizeFrame.show(),o.default.on(this.quill.root,m,this._handleFrameKeyDown.bind(this))},f._handleFrameKeyDown=function(e){var t=(0,r.normalizeKeyName)(e);"del"!==t&&"backspace"!==t||this._deleteImage(),this.hideFrame()},f.hideFrame=function(){this._$target=null,this._$resizeFrame.hide(),o.default.off(this.quill.root,m)},f.updateFramePosition=function(){var e=(0,d.getBoundingRect)(this._$target),t=e.height,n=e.width,i=e.top,o=e.left,a=(0,d.getBoundingRect)(this.quill.root),r=a.top,l=a.left,u=this._getBorderWidth();this._$resizeFrame.css({height:t,width:n,padding:1,top:i-r-u-1,left:o-l-u-1}),(0,s.move)(this._$resizeFrame,{left:0,top:0})},f._getBorderWidth=function(){return parseInt(this._$resizeFrame.css("borderTopWidth"))},f._createResizeFrame=function(){var e=this;if(!this._$resizeFrame){var t=l.default.current().deviceType;this._$resizeFrame=(0,i.default)("<div>").addClass("dx-resize-frame").toggleClass("dx-touch-device","desktop"!==t).appendTo(this.editorInstance._getQuillContainer()).hide(),o.default.on(this._$resizeFrame,v,(function(e){e.preventDefault()})),this.editorInstance._createComponent(this._$resizeFrame,u.default,{onResize:function(t){if(e._$target){var n=2*(1+e._getBorderWidth());(0,i.default)(e._$target).attr({height:t.height-n,width:t.width-n}),e.updateFramePosition()}}})}},f._deleteImage=function(){var e;this._isAllowedTarget(this._$target)&&(null===(e=c.default.find(this._$target))||void 0===e||e.deleteAt(0))},f.option=function(e,t){"mediaResizing"!==e?"enabled"===e?(this.enabled=t,t?this._attachEvents():this._detachEvents()):"allowedTargets"===e&&Array.isArray(t)&&(this.allowedTargets=t):this.handleOptionChangeValue(t)},f.clean=function(){this._detachEvents(),this._$resizeFrame.remove(),this._$resizeFrame=void 0},h}(h.default);t.default=y,e.exports=t.default,e.exports.default=t.default},31700:function(e,t,n){t.default=void 0;var i=m(n(9549)),o=m(n(68374)),a=m(n(30963)),r=m(n(55994)),s=n(39611),l=m(n(10042)),u=m(n(28109)),d=n(28822),c=n(92077),h=n(95479),f=n(35922),p=n(78008),g=n(13306);function m(e){return e&&e.__esModule?e:{default:e}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=(0,s.addNamespace)("dxcontextmenu","dxHtmlEditorTableContextMenu"),y=a.default,x=function(e){return u.default.format("dxHtmlEditor-".concat((0,p.camelize)(e)))};i.default&&(y=function(e){var t,n;function i(t,n){var i;return(i=e.call(this,t,n)||this).enabled=!!n.enabled,i._quillContainer=i.editorInstance._getQuillContainer(),i.addCleanCallback(i.prepareCleanCallback()),i._formatHandlers=(0,c.getFormatHandlers)(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i)),i._tableFormats=(0,d.getTableFormats)(t),i.enabled&&i._enableContextMenu(n.items),i}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,_(t,n);var a=i.prototype;return a._enableContextMenu=function(e){var t;null===(t=this._contextMenu)||void 0===t||t.dispose(),this._contextMenu=this._createContextMenu(e),this._attachEvents()},a._attachEvents=function(){r.default.on(this.editorInstance._getContent(),v,this._prepareContextMenuHandler())},a._detachEvents=function(){r.default.off(this.editorInstance._getContent(),v)},a._createContextMenu=function(e){var t=(0,o.default)("<div>").appendTo(this.editorInstance.$element()),n=this._getMenuConfig(e);return this.editorInstance._createComponent(t,l.default,n)},a.showPropertiesForm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cell",t=(0,o.default)(this._targetElement).closest("cell"===e?"th, td":"table");this._contextMenu.hide(),this._formatHandlers["".concat(e,"Properties")](t),this._targetElement=null},a._isAcceptableItem=function(e,t){return!e||e===t},a._handleObjectItem=function(e){if(e.name&&this._isAcceptableItem(e.widget,"dxButton")){var t=this._prepareMenuItemConfig(e.name);return(0,g.extend)(!0,t,e)}return e.items?(e.items=this._prepareMenuItems(e.items),e):e},a._prepareMenuItemConfig=function(e){var t,n,i=null!==(t=c.ICON_MAP[e])&&void 0!==t?t:e,o=(0,p.titleize)(e);return{text:x(o),icon:i.toLowerCase(),onClick:null!==(n=this._formatHandlers[e])&&void 0!==n?n:(0,c.getDefaultClickHandler)(this,e)}},a._prepareMenuItems=function(e){var t=this,n=[];return(0,h.each)(e,(function(e,i){var o;(0,f.isObject)(i)?o=t._handleObjectItem(i):(0,f.isString)(i)&&(o=t._prepareMenuItemConfig(i)),o&&n.push(o)})),n},a._getMenuConfig=function(e){var t=this,n=[{text:x("insert"),items:["insertHeaderRow","insertRowAbove","insertRowBelow",(0,g.extend)(this._prepareMenuItemConfig("insertColumnLeft"),{beginGroup:!0}),"insertColumnRight"]},{text:x("delete"),items:["deleteColumn","deleteRow","deleteTable"]},(0,g.extend)(this._prepareMenuItemConfig("cellProperties"),{onClick:function(e){t.showPropertiesForm("cell")}}),(0,g.extend)(this._prepareMenuItemConfig("tableProperties"),{onClick:function(e){t.showPropertiesForm("table")}})],i=this._prepareMenuItems(null!=e&&e.length?e:n);return{target:this._quillContainer,showEvent:null,hideOnParentScroll:!1,items:i}},a._prepareContextMenuHandler=function(){var e=this;return function(t){e._isTableTarget(t.target)&&(e._targetElement=t.target,e._setContextMenuPosition(t),e._contextMenu.show(),t.preventDefault())}},a._setContextMenuPosition=function(e){var t=this._quillContainer.get(0).getBoundingClientRect();this._contextMenu.option({position:{my:"left top",at:"left top",collision:"fit fit",offset:{x:e.clientX-t.left,y:e.clientY-t.top}}})},a._isTableTarget=function(e){return!!(0,o.default)(e).closest(".dx-htmleditor-content td, .dx-htmleditor-content th").length},a.clean=function(){this._detachEvents()},a.option=function(e,t){if("tableContextMenu"!==e){if("enabled"===e)this.enabled=t,t?this._enableContextMenu():this.clean();else if("items"===e){var n;null===(n=this._contextMenu)||void 0===n||n.dispose(),this._contextMenu=this._createContextMenu(t)}}else this.handleOptionChangeValue(t)},a.prepareCleanCallback=function(){var e=this;return function(){e.clean()}},i}(a.default));var b=y;t.default=b,e.exports=t.default,e.exports.default=t.default},56459:function(e,t,n){t.default=void 0;var i=n(58664),o=_(n(68374)),a=_(n(55994)),r=n(35922),s=n(39611),l=_(n(55814)),u=n(31648),d=n(37518),c=_(n(30963)),h=_(n(42160)),f=n(95479),p=n(58201),g=n(13306),m=n(28822);function _(e){return e&&e.__esModule?e:{default:e}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y="dx-htmleditor-column-resizer",x="dx-htmleditor-row-resizer",b={minColumnWidth:40,minRowHeight:24},w="dxHtmlTableResizingModule",C=(0,s.addNamespace)("dxpointerdown",w),S=(0,s.addNamespace)("scroll",w),k=function(e){var t,n;function s(t,n){var i;return(i=e.call(this,t,n)||this).enabled=!!n.enabled,i._tableResizeFrames=[],i._minColumnWidth=i._minSizeLimit("minColumnWidth",n.minColumnWidth),i._minRowHeight=i._minSizeLimit("minRowHeight",n.minRowHeight),i._quillContainer=i.editorInstance._getQuillContainer(),i._tableData=[],i.enabled&&i._applyResizing(),i}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,v(t,n);var c=s.prototype;return c._applyResizing=function(e){e?this._applyResizingImpl():this.editorInstance.addContentInitializedCallback(this._applyResizingImpl.bind(this)),this.addCleanCallback(this.clean.bind(this)),this._resizeHandlerWithContext=l.default.add(this._resizeHandler.bind(this))},c._minSizeLimit=function(e,t){return(0,r.isDefined)(t)?Math.max(t,0):b[e]},c._applyResizingImpl=function(){var e=this._findTables();e.length&&(this._fixTablesWidths(e),this._createResizeFrames(e),this._updateFramesPositions(),this._updateFramesSeparators()),this._attachEvents()},c._attachEvents=function(){a.default.on(this.editorInstance._getContent(),S,this._updateFramesPositions.bind(this)),this.quill.on("text-change",this._getQuillTextChangeHandler())},c._detachEvents=function(){a.default.off(this.editorInstance._getContent(),w),this.quill.off("text-change",this._quillTextChangeHandler)},c._getQuillTextChangeHandler=function(e,t,n){var i=this;return function(e,t,n){if(i._isTableChanging()){var o=i._findTables();i._removeResizeFrames(),"api"===n&&i._fixTablesWidths(o),i._updateTablesColumnsWidth(o),i._createResizeFrames(o),i._updateFramesPositions(),i._updateFramesSeparators()}else i._updateFramesPositions(),i._isDragging||i._updateFramesSeparators()}},c._getFrameForTable=function(e){var t;return null===(t=this._framesForTables)||void 0===t?void 0:t.get(e.get(0))},c._resizeHandler=function(){var e=this;this._windowResizeTimeout=setTimeout((function(){var t=e._findTables();(0,f.each)(t,(function(t,n){var a=(0,o.default)(n),r=e._tableResizeFrames[t],s=(0,i.getOuterWidth)(a),l=e._tableLastWidth(r);Math.abs(s-l)>1&&(e._tableLastWidth(r,s),e._updateColumnsWidth(a,t))})),e._updateFramesPositions(),e._updateFramesSeparators()}))},c._findTables=function(){return(0,o.default)(this._quillContainer).find("table")},c._getWidthStyleValue=function(e){var t=e[0].style.width;return""!==t?parseInt(t):void 0},c._tableLastWidth=function(e,t){if(!(0,r.isDefined)(t))return null==e?void 0:e.lastWidth;e.lastWidth=t},c._fixTablesWidths=function(e){var t=this;(0,f.each)(e,(function(e,n){var a=(0,o.default)(n),r=t._getTableDeterminantElements(a,"horizontal");t._tableResizeFrames[e]||(t._tableResizeFrames[e]={lastWidth:void 0});var s=t._getFrameForTable(a);if(s||t._tableResizeFrames.push({$table:a}),0===(0,m.getAutoSizedElements)(a).length){var l,u=t._getColumnElementsSum(r).columnsSum;(0,m.unfixTableWidth)(a,{quill:t.quill});var d=null!==(l=t._tableLastWidth(s))&&void 0!==l?l:(0,i.getOuterWidth)(a);s&&t._tableLastWidth(s,Math.max(u,d))}}))},c._createResizeFrames=function(e){var t=this;this._framesForTables=new Map,e.each((function(e,n){var i,a=(0,o.default)(n),r=null===(i=t._tableResizeFrames[e])||void 0===i?void 0:i.$table,s=t._tableResizeFrames[e].lastWidth;t._tableResizeFrames[e]={$frame:t._createTableResizeFrame(n),$table:a,index:e,lastWidth:r&&n===r.get(0)?s:void 0,columnsCount:t._getTableDeterminantElements(a,"horizontal").length,rowsCount:t._getTableDeterminantElements(a,"vertical").length},t._framesForTables.set(n,t._tableResizeFrames[e])})),this._tableResizeFrames.length=e.length},c._isTableChanging=function(){var e=this,t=this._findTables(),n=!1;return t.length!==this._tableResizeFrames.length?n=!0:(0,f.each)(t,(function(t,i){var a=(0,o.default)(i),r=e._tableResizeFrames[t],s=(null==r?void 0:r.columnsCount)!==e._getTableDeterminantElements(a,"horizontal").length,l=(null==r?void 0:r.rowsCount)!==e._getTableDeterminantElements(a,"vertical").length;if(s||l)return n=!0,!1})),n},c._removeResizeFrames=function(e){var t,n=this;(0,f.each)(this._tableResizeFrames,(function(e,t){if(t.$frame){var i,o=".".concat(y,", .").concat(x);n._detachSeparatorEvents(null===(i=t.$frame)||void 0===i?void 0:i.find(o)),t.$frame.remove()}})),null===(t=this._framesForTables)||void 0===t||t.clear(),e&&(this._tableResizeFrames=[])},c._detachSeparatorEvents=function(e){e.each((function(e,t){a.default.off(t,C)}))},c._createTableResizeFrame=function(){return(0,o.default)("<div>").addClass("dx-table-resize-frame").appendTo(this._quillContainer)},c._updateFramesPositions=function(){var e=this;(0,f.each)(this._tableResizeFrames,(function(t,n){e._updateFramePosition(n.$table,n.$frame)}))},c._updateFramePosition=function(e,t){var n=(0,d.getBoundingRect)(e.get(0)),i=n.height,o=n.width,a=n.top,r=n.left,s=(0,d.getBoundingRect)(this.quill.root),l=s.top,c=s.left;t.css({height:i,width:o,top:a-l,left:r-c}),(0,u.move)(t,{left:0,top:0})},c._updateFramesSeparators=function(e){var t=this;(0,f.each)(this._tableResizeFrames,(function(n,i){e?t._updateFrameSeparators(i,e):(t._updateFrameSeparators(i,"vertical"),t._updateFrameSeparators(i,"horizontal"))}))},c._isDraggable=function(e){return e.hasClass("dx-draggable")&&e.is(":visible")},c._removeDraggable=function(e,t){this._isDraggable(e)&&((0,o.default)(e).dxDraggable("instance").dispose(),(0,o.default)(e).addClass(t))},c._getDirectionInfo=function(e){return"vertical"===e?{lineResizerClass:x,sizeFunction:function(e){return(0,i.getOuterHeight)(e)},positionCoordinate:"top",positionStyleProperty:"height",positionCoordinateName:"y"}:{lineResizerClass:y,sizeFunction:function(e){return(0,i.getOuterWidth)(e)},positionCoordinate:this.editorInstance.option("rtlEnabled")?"right":"left",positionStyleProperty:"width",positionCoordinateName:"x"}},c._getSize=function(e,t){return t.sizeFunction(e)},c._updateFrameSeparators=function(e,t){for(var n=this._getTableDeterminantElements(e.$table,t),i=n.length-1,a=this._getDirectionInfo(t),s=e.$frame.find(".".concat(a.lineResizerClass)),l={transform:"none"},u=0,d=0;d<=i;d++){u+=this._getSize(n.eq(d),a),(0,r.isDefined)(s[d])||(s[d]=(0,o.default)("<div>").addClass(a.lineResizerClass).appendTo(e.$frame).get(0));var c=(0,o.default)(s[d]);this._removeDraggable(c,a.lineResizerClass),l[a.positionCoordinate]=u-2,(0,o.default)(c).css(l);var h={lineSeparator:s[d],index:d,$determinantElements:n,frame:e,direction:t};this._attachColumnSeparatorEvents(h)}},c._getTableDeterminantElements=function(e,t){return"vertical"===t?e.find("th:first-child, td:first-child"):(0,m.getColumnElements)(e)},c._attachColumnSeparatorEvents=function(e){var t=this;a.default.on(e.lineSeparator,C,(function(){t._createDraggableElement(e)}))},c._dragStartHandler=function(e){var t=e.$determinantElements,n=e.index,a=e.frame,r=e.direction,s=e.lineSeparator,l=this._getDirectionInfo(r);this._isDragging=!0,this._fixColumnsWidth(a.$table),this._startLineSize=parseInt(this._getSize((0,o.default)(t[n]),l)),this._startTableWidth=(0,i.getOuterWidth)(a.$table),this._startLineSeparatorPosition=parseInt((0,o.default)(s).css(l.positionCoordinate)),this._nextLineSize=0,t[n+1]?this._nextLineSize=parseInt(this._getSize((0,o.default)(t[n+1]),l)):"horizontal"===r&&(0,m.unfixTableWidth)(a.$table,{quill:this.quill})},c._shouldRevertOffset=function(e){return"horizontal"===e&&this.editorInstance.option("rtlEnabled")},c._isNextColumnWidthEnough=function(e,t,n){if(!this._nextLineSize)return!0;if(e>=this._minColumnWidth){var o=this._nextColumnOffsetLimit?n<this._nextColumnOffsetLimit:n<0,a=Math.abs(this._getWidthStyleValue(t)-(0,i.getOuterWidth)(t))>3;return o||!a}return!1},c._shouldSetNextColumnWidth=function(e){return this._nextLineSize&&e>0},c._horizontalDragHandler=function(e){var t=e.currentLineNewSize,n=e.directionInfo,o=e.eventOffset,a=e.$determinantElements,r=e.index,s=e.frame,l=this._nextLineSize&&this._nextLineSize-o,u=t>=this._minColumnWidth,d=(0,m.getLineElements)(s.$table,r),c=(0,m.getLineElements)(s.$table,r+1),h=(0,i.getOuterWidth)(d.eq(0))-t;if(u)if(this._isNextColumnWidthEnough(l,a.eq(r+1),o)){(0,m.setLineElementsFormat)(this,{elements:d,property:n.positionStyleProperty,value:t}),this._shouldSetNextColumnWidth(l)&&(0,m.setLineElementsFormat)(this,{elements:c,property:n.positionStyleProperty,value:l});var f=Math.abs(this._startTableWidth-(0,i.getOuterWidth)(s.$table))<3;(Math.abs(h)>3||!this._nextLineSize&&f)&&((0,m.setLineElementsFormat)(this,{elements:d,property:n.positionStyleProperty,value:(0,i.getOuterWidth)(d.eq(0))}),l+=t-(0,i.getOuterWidth)(d.eq(0)),this._shouldSetNextColumnWidth(l)&&(0,m.setLineElementsFormat)(this,{elements:c,property:n.positionStyleProperty,value:l}))}else this._nextColumnOffsetLimit=this._nextColumnOffsetLimit||o;this._$highlightedElement.css(n.positionCoordinate,this._startLineSeparatorPosition+o+h+"px")},c._verticalDragHandler=function(e){var t=e.currentLineNewSize,n=e.directionInfo,o=e.eventOffset,a=e.$determinantElements,r=e.index,s=e.frame,l=Math.max(t,this._minRowHeight),u=(0,m.getLineElements)(s.$table,r,"vertical");(0,m.setLineElementsFormat)(this,{elements:u,property:n.positionStyleProperty,value:l});var d=(0,i.getOuterHeight)(a.eq(r))-t;this._$highlightedElement.css(n.positionCoordinate,this._startLineSeparatorPosition+o+d+"px")},c._dragMoveHandler=function(e,t){var n=t.$determinantElements,i=t.index,o=t.frame,a=t.direction,r=this._getDirectionInfo(a),s=e.offset[r.positionCoordinateName];this.editorInstance._saveValueChangeEvent(e),this._shouldRevertOffset(a)&&(s=-s);var l=this._startLineSize+s;"horizontal"===a?this._horizontalDragHandler({currentLineNewSize:l,directionInfo:r,eventOffset:s,$determinantElements:n,index:i,frame:o}):this._verticalDragHandler({currentLineNewSize:l,directionInfo:r,eventOffset:s,$determinantElements:n,index:i,frame:o}),this._updateFramePosition(o.$table,o.$frame)},c._dragEndHandler=function(e){var t;null===(t=this._$highlightedElement)||void 0===t||t.remove(),this._isDragging=void 0,this._nextColumnOffsetLimit=void 0,this._tableLastWidth(e.frame,(0,i.getOuterWidth)(e.frame.$table)),this._updateFramesPositions(),this._updateFramesSeparators()},c._isLastColumnResizing=function(e){var t=e.$determinantElements,n=e.index;return!(0,r.isDefined)(t[n+1])},c._getBoundaryConfig=function(e){var t={};if("vertical"===e.direction)t.boundary=e.frame.$table,t.boundOffset={bottom:(0,p.hasWindow)()?-(0,i.getHeight)((0,p.getWindow)()):-(0,i.getOuterHeight)(this._quillContainer),top:0,left:0,right:0};else if(this._isLastColumnResizing(e)){var n=this.editorInstance._getContent();t.boundary=n,t.boundOffset={bottom:0,top:0,left:n.css("paddingLeft"),right:n.css("paddingRight")}}else t.boundary=e.frame.$table;return t},c._createDraggableElement=function(e){var t,n=this,i=this._getBoundaryConfig(e),a="vertical"===e.direction?"dx-htmleditor-highlighted-row":"dx-htmleditor-highlighted-column";null===(t=this._$highlightedElement)||void 0===t||t.remove(),this._$highlightedElement=(0,o.default)("<div>").addClass("".concat(a)).insertAfter((0,o.default)(e.lineSeparator));var r={contentTemplate:null,allowMoveByClick:!1,dragDirection:e.direction,onDragMove:function(t){t.component;var i=t.event;n._dragMoveHandler(i,e)},onDragStart:function(){n._dragStartHandler(e)},onDragEnd:function(){n._dragEndHandler(e)}};(0,g.extend)(r,i),this._currentDraggableElement=this.editorInstance._createComponent(e.lineSeparator,h.default,r)},c._fixColumnsWidth=function(e){var t=this,n=this._getTableDeterminantElements(e);(0,f.each)(n,(function(n,o){var a=(0,i.getOuterWidth)(o),r=(0,m.getLineElements)(e,n);(0,m.setLineElementsFormat)(t,{elements:r,property:"width",value:Math.max(a,t._minColumnWidth)})}))},c._getColumnElementsSum=function(e){var t=this,n=[],a=0;return(0,f.each)(e,(function(e,r){var s=(0,o.default)(r),l=t._getWidthStyleValue(s)||(0,i.getOuterWidth)(s);n[e]=Math.max(l,t._minColumnWidth),a+=n[e]})),{columnsWidths:n,columnsSum:a}},c._setColumnsRatioWidth=function(e,t,n,i){var o=this;(0,f.each)(e,(function(e){var a,r=(0,m.getLineElements)(i,e);a=t>0?o._minColumnWidth+Math.round((n[e]-o._minColumnWidth)*t):o._minColumnWidth,(0,m.setLineElementsFormat)(o,{elements:r,property:"width",value:a})}))},c._updateColumnsWidth=function(e,t){var n=this._getTableDeterminantElements(e),o=this._tableResizeFrames[t];o||(this._tableResizeFrames[t]={}),o=this._tableResizeFrames[t];var a,r=this._tableLastWidth(o)||(0,i.getOuterWidth)(e),s=this._getColumnElementsSum(n),l=s.columnsWidths,u=s.columnsSum,d=n.length*this._minColumnWidth;a=u>d?(r-d)/(u-d):-1,this._tableLastWidth(o,a>0?r:d),this._setColumnsRatioWidth(n,a,l,e)},c._updateTablesColumnsWidth=function(e){var t=this;(0,f.each)(e,(function(e,n){t._updateColumnsWidth((0,o.default)(n),e)}))},c.option=function(e,t){"tableResizing"!==e?"enabled"===e?(this.enabled=t,t?this._applyResizing(!0):this.clean()):["minColumnWidth","minRowHeight"].includes(e)&&(this["_".concat(e)]=this._minSizeLimit(e,t)):this.handleOptionChangeValue(t)},c.clean=function(){this._removeResizeFrames(!0),this._detachEvents(),l.default.remove(this._resizeHandlerWithContext),clearTimeout(this._windowResizeTimeout),this._resizeHandlerWithContext=void 0,this._isDragging=void 0,this._startTableWidth=void 0,clearTimeout(this._attachResizerTimeout)},s}(c.default);t.default=k,e.exports=t.default,e.exports.default=t.default},77616:function(e,t,n){t.default=void 0;var i=v(n(9549)),o=v(n(68374)),a=v(n(30963)),r=v(n(71042));n(78665),n(89838),n(34171);var s=v(n(96688)),l=v(n(38110)),u=n(95479),d=n(35922),c=n(13306),h=v(n(28109)),f=n(78008),p=v(n(55994)),g=n(39611),m=n(28822),_=n(92077);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=a.default;if(i.default){var w="dx-htmleditor-toolbar-wrapper",C="dx-format-active",S=function(e){return h.default.format("dxHtmlEditor-".concat((0,f.camelize)(e)))};b=function(e){var t,n;function i(t,n){var i;return(i=e.call(this,t,n)||this)._toolbarWidgets=new l.default,i._formatHandlers=(0,_.getFormatHandlers)(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i)),i._tableFormats=(0,m.getTableFormats)(t),(0,d.isDefined)(n.items)&&(i._addCallbacks(),i._renderToolbar(),i.quill.on("editor-change",(function(e){var t="selection-change"===e;i._updateToolbar(t)}))),i}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,x(t,n);var a,h,v=i.prototype;return v._addCallbacks=function(){this.addCleanCallback(this.clean.bind(this)),this.editorInstance.addContentInitializedCallback(this.updateHistoryWidgets.bind(this))},v._updateToolbar=function(e){this.updateFormatWidgets(e),this.updateHistoryWidgets(),this.updateTableWidgets()},v._updateFormatWidget=function(e,t,n){var i=this._toolbarWidgets.getByName(e);i&&(t?this._markActiveFormatWidget(e,i,n):(this._resetFormatWidget(e,i),Object.prototype.hasOwnProperty.call(e)&&delete n[e]),this._toggleClearFormatting(t||!(0,d.isEmptyObject)(n)))},v._renderToolbar=function(){var e=this,t=this.options.container||this._getContainer();this._$toolbar=(0,o.default)("<div>").addClass("dx-htmleditor-toolbar").appendTo(t),this._$toolbarContainer=(0,o.default)(t).addClass(w),p.default.on(this._$toolbarContainer,(0,g.addNamespace)("mousedown",this.editorInstance.NAME),(function(e){e.preventDefault()})),this.toolbarInstance=this.editorInstance._createComponent(this._$toolbar,r.default,this.toolbarConfig),this.editorInstance.on("optionChanged",(function(t){var n=t.name;"readOnly"!==n&&"disabled"!==n||e.toolbarInstance.option("disabled",e.isInteractionDisabled)}))},v.isMultilineMode=function(){var e;return null===(e=this.options.multiline)||void 0===e||e},v.clean=function(){this._toolbarWidgets.clear(),this._$toolbarContainer&&this._$toolbarContainer.empty().removeClass(w)},v.repaint=function(){this.toolbarInstance&&this.toolbarInstance.repaint()},v._getContainer=function(){var e=(0,o.default)("<div>");return this.editorInstance.$element().prepend(e),e},v._detectRenamedOptions=function(e){(0,d.isObject)(e)&&(0,u.each)([{newName:"name",oldName:"formatName"},{newName:"acceptedValues",oldName:"formatValues"}],(function(t,n){Object.prototype.hasOwnProperty.call(e,n.oldName)&&s.default.log("W1016",n.oldName,n.newName)}))},v._prepareToolbarItems=function(){var e=this,t=[];return(0,u.each)(this.options.items,(function(n,i){var o;if(e._detectRenamedOptions(i),(0,d.isObject)(i))o=e._handleObjectItem(i);else if((0,d.isString)(i)){var a=e._prepareButtonItemConfig(i);o=e._getToolbarItem(a)}o&&t.push(o)})),t},v._handleObjectItem=function(e){if(e.name&&e.acceptedValues&&this._isAcceptableItem(e.widget,"dxSelectBox")){var t=this._prepareSelectItemConfig(e);return this._getToolbarItem(t)}if(e.name&&this._isAcceptableItem(e.widget,"dxButton")){var n=this._prepareButtonItemConfig(e.name),i=(0,c.extend)(!0,n,e);return this._getToolbarItem(i)}return this._getToolbarItem(e)},v._isAcceptableItem=function(e,t){return!e||e===t},v._prepareButtonItemConfig=function(e){var t,n=null!==(t=_.ICON_MAP[e])&&void 0!==t?t:e,i=(0,f.titleize)(e);return{widget:"dxButton",name:e,options:{hint:S(i),text:S(i),icon:n.toLowerCase(),onClick:this._formatHandlers[e]||(0,_.getDefaultClickHandler)(this,e),stylingMode:"text"},showText:"inMenu"}},v._prepareSelectItemConfig=function(e){var t=this,n=e.name,i=e.acceptedValues;return(0,c.extend)(!0,{widget:"dxSelectBox",name:n,options:{stylingMode:"filled",dataSource:i,displayExpr:function(e){return function(e,t){return"header"===t?(0,d.isDefined)(e)&&!1!==e?"".concat(S("heading")," ").concat(e):S("normalText"):S(e)||e}(e,n)},placeholder:S(n),onValueChanged:function(e){t._isReset||(t._hideAdaptiveMenu(),(0,_.applyFormat)(t,[n,e.value,"user"],e.event),t._setValueSilent(e.component,e.value))}}},e)},v._hideAdaptiveMenu=function(){this.toolbarInstance.option("overflowMenuVisible")&&this.toolbarInstance.option("overflowMenuVisible",!1)},v._getToolbarItem=function(e){var t=this,n={options:{onInitialized:function(n){e.name&&(n.component.$element().addClass("dx-htmleditor-toolbar-format"),n.component.$element().toggleClass("dx-".concat(e.name.toLowerCase(),"-format"),!!e.name),t._toolbarWidgets.add(e.name,n.component))}}},i=this.isMultilineMode()?{location:"before",locateInMenu:"never"}:{};return(0,c.extend)(!0,{location:"before",locateInMenu:"auto"},this._getDefaultConfig(e.name),e,n,i)},v._getDefaultItemsConfig=function(){return{clear:{options:{disabled:!0}},undo:{options:{disabled:!0}},redo:{options:{disabled:!0}},insertRowAbove:{options:{disabled:!0}},insertRowBelow:{options:{disabled:!0}},insertHeaderRow:{options:{disabled:!0}},insertColumnLeft:{options:{disabled:!0}},insertColumnRight:{options:{disabled:!0}},deleteRow:{options:{disabled:!0}},deleteColumn:{options:{disabled:!0}},deleteTable:{options:{disabled:!0}},cellProperties:{options:{disabled:!0}},tableProperties:{options:{disabled:!0}},separator:{template:function(e,t,n){(0,o.default)(n).addClass("dx-htmleditor-toolbar-separator")},menuItemTemplate:function(e,t,n){(0,o.default)(n).addClass("dx-htmleditor-toolbar-menu-separator")}}}},v._getDefaultConfig=function(e){return this._getDefaultItemsConfig()[e]},v.updateHistoryWidgets=function(){var e=this.quill.history;if(e){var t=e.stack,n=t.undo,i=t.redo;this._updateManipulationWidget(this._toolbarWidgets.getByName("undo"),Boolean(n.length)),this._updateManipulationWidget(this._toolbarWidgets.getByName("redo"),Boolean(i.length))}},v.updateTableWidgets=function(){var e=this;if(this.quill.getModule("table")){var t=this.quill.getSelection(),n=t&&this.quill.getFormat(t)||{},i=this._tableFormats.some((function(e){return Boolean(n[e])}));m.TABLE_OPERATIONS.forEach((function(t){var n="insertTable"===t,o=e._toolbarWidgets.getByName(t);e._updateManipulationWidget(o,n?!i:i)}))}},v._updateManipulationWidget=function(e,t){e&&e.option("disabled",!t)},v.updateFormatWidgets=function(e){var t=this.quill.getSelection();if(t){var n=this.quill.getFormat(t),i=!(0,d.isEmptyObject)(n);for(var o in i&&!e||this._resetFormatWidgets(),n){var a=this._getFormatWidgetName(o,n),r=this._toolbarWidgets.getByName(a)||this._toolbarWidgets.getByName(o);r&&this._markActiveFormatWidget(o,r,n)}this._toggleClearFormatting(i||t.length>1)}},v._markActiveFormatWidget=function(e,t,n){this._isColorFormat(e)&&this._updateColorWidget(e,n[e]),"value"in t.option()?this._setValueSilent(t,n[e]):t.$element().addClass(C)},v._toggleClearFormatting=function(e){var t=this._toolbarWidgets.getByName("clear");t&&t.option("disabled",!e)},v._isColorFormat=function(e){return"color"===e||"background"===e},v._updateColorWidget=function(e,t){var n=this._toolbarWidgets.getByName(e);n&&n.$element().find(".".concat("dx-icon")).css("borderBottomColor",t||"transparent")},v._getFormatWidgetName=function(e,t){var n;switch(e){case"align":n=e+(0,f.titleize)(t[e]);break;case"list":n=t[e]+(0,f.titleize)(e);break;case"code-block":n="codeBlock";break;case"script":n=t[e]+e;break;case"imageSrc":n="image";break;default:n=e}return n},v._setValueSilent=function(e,t){this._isReset=!0,e.option("value",t),this._isReset=!1},v._resetFormatWidgets=function(){var e=this;this._toolbarWidgets.each((function(t,n){e._resetFormatWidget(t,n)}))},v._resetFormatWidget=function(e,t){t.$element().removeClass(C),this._isColorFormat(e)&&this._updateColorWidget(e),"clear"===e&&t.option("disabled",!0),"dxSelectBox"===t.NAME&&this._setValueSilent(t,null)},v.addClickHandler=function(e,t){this._formatHandlers[e]=t;var n=this._toolbarWidgets.getByName(e);n&&"dxButton"===n.NAME&&n.option("onClick",t)},a=i,(h=[{key:"toolbarConfig",get:function(){return{dataSource:this._prepareToolbarItems(),disabled:this.isInteractionDisabled,menuContainer:this._$toolbarContainer,multiline:this.isMultilineMode()}}},{key:"isInteractionDisabled",get:function(){return this.editorInstance.option("readOnly")||this.editorInstance.option("disabled")}}])&&y(a.prototype,h),i}(a.default)}var k=b;t.default=k,e.exports=t.default,e.exports.default=t.default},55179:function(e,t,n){t.default=void 0;var i=d(n(9549)),o=d(n(68374)),a=n(37518),r=d(n(2269)),s=d(n(30963)),l=d(n(76195)),u=n(13306);function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=s.default;i.default&&(i.default.register({"formats/variable":l.default},!0),f=function(e){var t,n;n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var i=r.prototype;function r(t,n){var i;i=e.call(this,t,n)||this;var a=t.getModule("toolbar");return a&&a.addClickHandler("variable",i.showPopup.bind(c(i))),t.keyboard.addBinding({key:"P",altKey:!0},i.showPopup.bind(c(i))),i._popup.on("shown",(function(e){var t=(0,o.default)(e.component.option("position").of);t.hasClass("dx-variable-format")&&t.addClass("dx-format-active")})),i}return i._getDefaultOptions=function(){var t=e.prototype._getDefaultOptions.call(this);return(0,u.extend)(t,{escapeChar:""})},i.showPopup=function(t){var n=this.quill.getSelection(!0),i=n?n.index:this.quill.getLength();this.savePosition(i),this._resetPopupPosition(t,i),e.prototype.showPopup.call(this)},i._resetPopupPosition=function(e,t){if(e&&e.element)this._popup.option("position",{of:e.element,offset:{h:0,v:0},my:"top center",at:"bottom center",collision:"fit"});else{var n=this.quill.getBounds(t),i=(0,a.getBoundingRect)(this.quill.root);this._popup.option("position",{of:this.quill.root,offset:{h:n.left,v:n.bottom-i.height},my:"top center",at:"bottom left",collision:"fit flip"})}},i.insertEmbedContent=function(e){var t=this.getPosition(),n=e.component.option("selectedItem"),i=(0,u.extend)({},{value:n,escapeChar:this.options.escapeChar});setTimeout(function(){this.quill.insertEmbed(t,"variable",i),this.quill.setSelection(t+1)}.bind(this))},r}(r.default));var p=f;t.default=p,e.exports=t.default,e.exports.default=t.default},38110:function(e,t,n){t.default=void 0;var i=n(95479),o=function(){function e(){this._collection=[]}var t=e.prototype;return t.clear=function(){this._collection=[]},t.add=function(e,t){this._collection.push({name:e,instance:t})},t.getByName=function(e){var t=null;return(0,i.each)(this._collection,(function(n,i){var o=i.name,a=i.instance;if(o===e)return t=a,!1})),t},t.each=function(e){this._collection.forEach((function(t){var n=t.name,i=t.instance;return i&&e(n,i)}))},e}();t.default=o,e.exports=t.default,e.exports.default=t.default},60148:function(e,t,n){t.getQuill=function(){if(!o.default)throw i.default.Error("E1041","Quill");return o.default};var i=a(n(96688)),o=a(n(9549));function a(e){return e&&e.__esModule?e:{default:e}}},1702:function(e,t,n){t.default=void 0;var i=n(60148),o=_(n(80560)),a=_(n(72446)),r=_(n(8980)),s=_(n(73360)),l=_(n(2909)),u=_(n(90223)),d=_(n(77616)),c=_(n(78859)),h=_(n(55179)),f=_(n(91787)),p=_(n(56459)),g=_(n(31700)),m=_(n(12542));function _(e){return e&&e.__esModule?e:{default:e}}var v=function(){function e(){if(!e.initialized){var t=this.getQuill(),n=t.import("attributors/style/direction");t.register({"formats/align":u.default,"formats/direction":n,"formats/font":s.default,"formats/size":l.default,"formats/extendedImage":a.default,"formats/link":r.default,"modules/toolbar":d.default,"modules/dropImage":c.default,"modules/variables":h.default,"modules/resizing":f.default,"modules/tableResizing":p.default,"modules/tableContextMenu":g.default,"modules/mentions":m.default,"themes/basic":o.default},!0),this._customModules=[],e._initialized=!0}}var t=e.prototype;return t.createEditor=function(e,t){return new(this.getQuill())(e,t)},t.registerModules=function(e){var t=RegExp("modules/*"),n=this.getQuill(),i=function(e){return!!n.imports[e]};for(var o in e)t.test(o)&&!i(o)&&this._customModules.push(o.slice(8));n.register(e,!0)},t.getRegisteredModuleNames=function(){return this._customModules},t.getQuill=function(){return(0,i.getQuill)()},e}();t.default=v,e.exports=t.default,e.exports.default=t.default},80560:function(e,t,n){t.default=void 0;var i,o=(i=n(9549))&&i.__esModule?i:{default:i};function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var r=o.default?function(e){var t,n;function i(t,n){var i;return(i=e.call(this,t,n)||this).quill.root.classList.add("dx-htmleditor-content"),i.quill.root.setAttribute("role","textbox"),i}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n),i}(o.default.import("core/theme")):{};t.default=r,e.exports=t.default,e.exports.default=t.default},15887:function(e,t,n){t.default=void 0;var i=C(n(68374)),o=n(13306),a=n(35922),r=n(6415),s=n(20576),l=C(n(99393)),u=n(10688),d=C(n(96452)),c=C(n(96688)),h=C(n(44504)),f=n(62754),p=C(n(55994)),g=n(39611),m=n(66365),_=C(n(37334)),v=n(51203),y=C(n(1702));n(44844);var x=C(n(56957)),b=C(n(10803)),w=C(n(67600));function C(e){return e&&e.__esModule?e:{default:e}}var S="markdown",k="htmlContent",D=d.default.inherit({_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{focusStateEnabled:!0,valueType:"html",placeholder:"",toolbar:null,variables:null,mediaResizing:null,tableResizing:null,mentions:null,customizeModules:null,tableContextMenu:null,allowSoftLineBreak:!1,formDialogOptions:null,stylingMode:"outlined"})},_init:function(){this.callBase(),this._cleanCallback=(0,h.default)(),this._contentInitializedCallback=(0,h.default)()},_getAnonymousTemplateName:function(){return k},_initTemplates:function(){var e,t,n;this._templateManager.addDefaultTemplates((e={},t=k,n=new u.EmptyTemplate,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),this.callBase()},_focusTarget:function(){return this._getContent()},_getContent:function(){return this.$element().find(".".concat("dx-htmleditor-content"))},_focusInHandler:function(e){var t=e.relatedTarget;this._shouldSkipFocusEvent(t)||(this._toggleFocusClass(!0,this.$element()),this.callBase.apply(this,arguments))},_focusOutHandler:function(e){var t=e.relatedTarget;this._shouldSkipFocusEvent(t)||(this._toggleFocusClass(!1,this.$element()),this.callBase.apply(this,arguments))},_shouldSkipFocusEvent:function(e){return(0,i.default)(e).hasClass("ql-clipboard")},_initMarkup:function(){this._$htmlContainer=(0,i.default)("<div>").addClass("dx-quill-container"),this.$element().attr("role","application").addClass("dx-htmleditor").wrapInner(this._$htmlContainer),this._renderStylingMode();var e=this._getTemplate(k);this._$templateResult=e&&e.render({container:(0,r.getPublicElement)(this._$htmlContainer),noModel:!0,transclude:!0}),this._renderSubmitElement(),this.callBase(),this._updateContainerMarkup()},_renderSubmitElement:function(){this._$submitElement=(0,i.default)("<textarea>").addClass("dx-htmleditor-submit-element").attr("hidden",!0).appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){this._getSubmitElement().val(e)},_getSubmitElement:function(){return this._$submitElement},_updateContainerMarkup:function(){var e=this.option("value");this._isMarkdownValue()&&(this._prepareMarkdownConverter(),e=this._markdownConverter.toHtml(e)),e&&this._$htmlContainer.html(e)},_prepareMarkdownConverter:function(){var e=x.default.getConverter("markdown");if(!e)throw c.default.Error("E1051","markdown");this._markdownConverter=new e},_render:function(){this._prepareConverters(),this.callBase()},_prepareQuillRegistrator:function(){this._quillRegistrator||(this._quillRegistrator=new y.default)},_getRegistrator:function(){return this._prepareQuillRegistrator(),this._quillRegistrator},_prepareConverters:function(){if(!this._deltaConverter){var e=x.default.getConverter("delta");e&&(this._deltaConverter=new e)}this.option("valueType")!==S||this._markdownConverter||this._prepareMarkdownConverter()},_renderContentImpl:function(){this._contentRenderedDeferred=new f.Deferred;var e=this._contentRenderedDeferred.promise();return this.callBase(),this._renderHtmlEditor(),this._renderFormDialog(),this._addKeyPressHandler(),e},_attachFocusEvents:function(){(0,s.deferRender)(this.callBase.bind(this))},_addKeyPressHandler:function(){var e=(0,g.addNamespace)("keydown","".concat(this.NAME,"TextChange"));p.default.on(this._$htmlContainer,e,this._keyDownHandler.bind(this))},_keyDownHandler:function(e){this._saveValueChangeEvent(e)},_renderHtmlEditor:function(){var e=this,t=this.option("customizeModules"),n=this._getModulesConfig();(0,a.isFunction)(t)&&t(n),this._quillInstance=this._getRegistrator().createEditor(this._$htmlContainer[0],{placeholder:this.option("placeholder"),readOnly:this.option("readOnly")||this.option("disabled"),modules:n,theme:"basic"}),this._deltaConverter.setQuillInstance(this._quillInstance),this._textChangeHandlerWithContext=this._textChangeHandler.bind(this),this._quillInstance.on("text-change",this._textChangeHandlerWithContext),this._renderScrollHandler(),this._hasTranscludedContent()?this._updateContentTask=(0,s.executeAsync)((function(){e._applyTranscludedContent()})):this._finalizeContentRendering()},_renderScrollHandler:function(){var e=this._getContent(),t=(0,v.prepareScrollData)(e);p.default.on(e,(0,g.addNamespace)(_.default.init,this.NAME),t,s.noop)},_applyTranscludedContent:function(){var e=this.option("value");if(!(0,a.isDefined)(e)){var t=this._deltaConverter.toHtml(),n=this._quillInstance.clipboard.convert({html:t});if(n.ops.length)return void this._quillInstance.setContents(n)}this._finalizeContentRendering()},_hasTranscludedContent:function(){return this._$templateResult&&this._$templateResult.length},_getModulesConfig:function(){var e=this,t=this._getRegistrator().getQuill(),n=(0,b.default)(t);return(0,o.extend)({},{table:!0,toolbar:this._getModuleConfigByOption("toolbar"),variables:this._getModuleConfigByOption("variables"),resizing:this._getModuleConfigByOption("mediaResizing"),tableResizing:this._getModuleConfigByOption("tableResizing"),tableContextMenu:this._getModuleConfigByOption("tableContextMenu"),mentions:this._getModuleConfigByOption("mentions"),uploader:{onDrop:function(t){return e._saveValueChangeEvent((0,m.Event)(t))},imageBlot:"extendedImage"},keyboard:{onKeydown:function(t){return e._saveValueChangeEvent((0,m.Event)(t))}},clipboard:{onPaste:function(t){return e._saveValueChangeEvent((0,m.Event)(t))},onCut:function(t){return e._saveValueChangeEvent((0,m.Event)(t))},matchers:[["p.MsoListParagraphCxSpFirst",n],["p.MsoListParagraphCxSpMiddle",n],["p.MsoListParagraphCxSpLast",n]]},multiline:Boolean(this.option("allowSoftLineBreak"))},this._getCustomModules())},_getModuleConfigByOption:function(e){var t=this.option(e),n={};if((0,a.isDefined)(t))return Array.isArray(t)?n[e]=t:n=t,(0,o.extend)(this._getBaseModuleConfig(),n)},_getBaseModuleConfig:function(){return{editorInstance:this}},_getCustomModules:function(){var e=this,t={};return this._getRegistrator().getRegisteredModuleNames().forEach((function(n){t[n]=e._getBaseModuleConfig()})),t},_textChangeHandler:function(e,t,n){var i=this._deltaConverter.toHtml(),o=this._isMarkdownValue()?this._updateValueByType(S,i):i,a=this.option("value");a===o||this._isNullValueConverted(a,o)||(this._isEditorUpdating=!0,this.option("value",o)),this._finalizeContentRendering()},_isNullValueConverted:function(e,t){return null===e&&""===t},_finalizeContentRendering:function(){this._contentRenderedDeferred&&(this.clearHistory(),this._contentInitializedCallback.fire(),this._contentRenderedDeferred.resolve(),this._contentRenderedDeferred=void 0)},_updateValueByType:function(e,t){var n=this._markdownConverter;if((0,a.isDefined)(n)){var i=(0,s.ensureDefined)(t,this.option("value"));return e===S?n.toMarkdown(i):n.toHtml(i)}},_isMarkdownValue:function(){return this.option("valueType")===S},_resetEnabledState:function(){if(this._quillInstance){var e=!(this.option("readOnly")||this.option("disabled"));this._quillInstance.enable(e)}},_renderFormDialog:function(){var e=(0,o.extend)(!0,{width:"auto",height:"auto",closeOnOutsideClick:!0},this.option("formDialogOptions"));this._formDialog=new w.default(this,e)},_getStylingModePrefix:function(){return"dx-htmleditor-"},_getQuillContainer:function(){return this._$htmlContainer},_moduleOptionChanged:function(e,t){var n,i=null===(n=this._quillInstance)||void 0===n?void 0:n.getModule(e);if(Boolean(i)){var o,a=null===(o=t.fullName)||void 0===o?void 0:o.split("."),r=2===a.length?a[1]:t.name;i.option(r,t.value)}else this._invalidate()},_optionChanged:function(e){switch(e.name){case"value":if(this._quillInstance)if(this._isEditorUpdating)this._isEditorUpdating=!1;else{var t=this._isMarkdownValue()?this._updateValueByType("HTML",e.value):e.value;this._updateHtmlContent(t)}else this._$htmlContainer.html(e.value);this._setSubmitValue(e.value),this.callBase(e);break;case"placeholder":case"variables":case"toolbar":case"mentions":case"customizeModules":case"allowSoftLineBreak":this._invalidate();break;case"tableResizing":this._moduleOptionChanged("tableResizing",e);break;case"valueType":this._prepareConverters();var n=this._updateValueByType(e.value);"html"===e.value&&this._quillInstance?this._updateHtmlContent(n):this.option("value",n);break;case"stylingMode":this._renderStylingMode();break;case"readOnly":case"disabled":this.callBase(e),this._resetEnabledState();break;case"formDialogOptions":this._renderFormDialog();break;case"tableContextMenu":this._moduleOptionChanged("tableContextMenu",e);break;case"mediaResizing":e.previousValue&&e.value?this._quillInstance.getModule("resizing").option(e.name,e.value):this._invalidate();break;case"width":this.callBase(e),this._repaintToolbar();break;default:this.callBase(e)}},_repaintToolbar:function(){var e=this._quillInstance.getModule("toolbar");e&&e.repaint()},_updateHtmlContent:function(e){var t=this._quillInstance.clipboard.convert({html:e});this._quillInstance.setContents(t)},_clean:function(){this._quillInstance&&(p.default.off(this._getContent(),".".concat(this.NAME)),this._quillInstance.off("text-change",this._textChangeHandlerWithContext),this._cleanCallback.fire()),this._abortUpdateContentTask(),this._cleanCallback.empty(),this._contentInitializedCallback.empty(),this.callBase()},_abortUpdateContentTask:function(){this._updateContentTask&&(this._updateContentTask.abort(),this._updateContentTask=void 0)},_applyQuillMethod:function(e,t){if(this._quillInstance)return this._quillInstance[e].apply(this._quillInstance,t)},_applyQuillHistoryMethod:function(e){this._quillInstance&&this._quillInstance.history&&this._quillInstance.history[e]()},addCleanCallback:function(e){this._cleanCallback.add(e)},addContentInitializedCallback:function(e){this._contentInitializedCallback.add(e)},register:function(e){this._getRegistrator().registerModules(e),this._quillInstance&&this.repaint()},get:function(e){return this._getRegistrator().getQuill().import(e)},getModule:function(e){return this._applyQuillMethod("getModule",arguments)},getQuillInstance:function(){return this._quillInstance},getSelection:function(e){return this._applyQuillMethod("getSelection",arguments)},setSelection:function(e,t){this._applyQuillMethod("setSelection",arguments)},getText:function(e,t){return this._applyQuillMethod("getText",arguments)},format:function(e,t){this._applyQuillMethod("format",arguments)},formatText:function(e,t,n,i){this._applyQuillMethod("formatText",arguments)},formatLine:function(e,t,n,i){this._applyQuillMethod("formatLine",arguments)},getFormat:function(e,t){return this._applyQuillMethod("getFormat",arguments)},removeFormat:function(e,t){return this._applyQuillMethod("removeFormat",arguments)},clearHistory:function(){this._applyQuillHistoryMethod("clear")},undo:function(){this._applyQuillHistoryMethod("undo")},redo:function(){this._applyQuillHistoryMethod("redo")},getLength:function(){return this._applyQuillMethod("getLength")},getBounds:function(e,t){return this._applyQuillMethod("getBounds",arguments)},delete:function(e,t){this._applyQuillMethod("deleteText",arguments)},insertText:function(e,t,n){this._applyQuillMethod("insertText",arguments)},insertEmbed:function(e,t,n){this._applyQuillMethod("insertEmbed",arguments)},showFormDialog:function(e){return this._formDialog.show(e)},formDialogOption:function(e,t){return this._formDialog.popupOption.apply(this._formDialog,arguments)},focus:function(){this.callBase(),this._applyQuillMethod("focus")},blur:function(){this._applyQuillMethod("blur")}});(0,l.default)("dxHtmlEditor",D);var I=D;t.default=I,e.exports=t.default,e.exports.default=t.default},67600:function(e,t,n){t.default=void 0;var i=c(n(68374)),o=n(13306),a=c(n(39114)),r=c(n(17737)),s=n(62754),l=c(n(28109)),u=n(58201),d=c(n(20530));function c(e){return e&&e.__esModule?e:{default:e}}var h=function(){function e(e,t){this._editorInstance=e,this._popupUserConfig=t,this._renderPopup(),this._attachOptionChangedHandler()}var t=e.prototype;return t._renderPopup=function(){var e=this._editorInstance,t=(0,i.default)("<div>").addClass("dx-formdialog").appendTo(e.$element()),n=this._getPopupConfig();return e._createComponent(t,a.default,n)},t._attachOptionChangedHandler=function(){var e,t=this;null===(e=this._popup)||void 0===e||e.on("optionChanged",(function(e){var n=e.name,i=e.value;"title"===n&&t._updateFormLabel(i)}))},t._escKeyHandler=function(){this._popup.hide()},t._addEscapeHandler=function(e){e.component.registerKeyHandler("escape",this._escKeyHandler.bind(this))},t._isSmallScreen=function(){var e=(0,u.hasWindow)()?(0,u.getCurrentScreenFactor)():null;return"phone"===d.default.real().deviceType||"xs"===e},t._getPopupConfig=function(){var e=this;return(0,o.extend)({onInitialized:function(t){e._popup=t.component,e._popup.on("hiding",(function(){e.deferred.reject()})),e._popup.on("shown",(function(){e._form.focus()}))},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,wrapperAttr:{class:"dx-formdialog"},fullScreen:this._isSmallScreen(),contentTemplate:function(t){var n=(0,i.default)("<div>").appendTo(t);e._renderForm(n,{onEditorEnterKey:function(t){var n=t.component,i=(t.dataField,t.event);e.hide(n.option("formData"),i)},customizeItem:function(t){"simple"===t.itemType&&(t.editorOptions=(0,o.extend)(!0,{},t.editorOptions,{onInitialized:e._addEscapeHandler.bind(e)}))}})},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:l.default.format("OK"),onClick:function(t){var n=t.event;e.hide(e._form.option("formData"),n)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:l.default.format("Cancel"),onClick:function(){e._popup.hide()}}}]},this._popupUserConfig)},t._renderForm=function(e,t){e.addClass("dx-formdialog-form"),this._form=this._editorInstance._createComponent(e,r.default,t),this._updateFormLabel()},t._updateFormLabel=function(e){var t,n=null!=e?e:this.popupOption("title");null===(t=this._form)||void 0===t||t.$element().attr("aria-label",n)},t.show=function(e){if(!this._popup.option("visible")){this.deferred=new s.Deferred;var t=(0,o.extend)({},e);return this._form.option(t),this._popup.show(),this.deferred.promise()}},t.hide=function(e,t){this.deferred.resolve(e,t),this._popup.hide()},t.popupOption=function(e,t){return this._popup.option.apply(this._popup,arguments)},e}();t.default=h,e.exports=t.default,e.exports.default=t.default},28822:function(e,t,n){t.TABLE_OPERATIONS=void 0,t.getAutoSizedElements=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"horizontal",n=[],i="horizontal"===t,a=i?l(e):u(e);return a.each((function(e,t){var a=(0,o.default)(t);""===a.get(0).style[i?"width":"height"]&&n.push(a)})),n},t.getColumnElements=l,t.getLineElements=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"horizontal";return"horizontal"===n?u(e,t):l(e,t)},t.getRowElements=u,t.getTableFormats=function(e){var t=e.getModule("table");return null!=t&&t.tableFormats?t.tableFormats():s},t.getTableOperationHandler=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return function(){var n=e.getModule("table");if(n)return e.focus(),n[t].apply(n,i)}},t.hasEmbedContent=function(e,t){return!!t&&e.quill.getText(t).trim().length<t.length},t.setLineElementsFormat=function(e,t){var n=t.elements,i=t.property,o=t.value,s=e.quill.getModule("table").tableBlots,l="cell".concat((0,r.camelize)(i,!0));(0,a.each)(n,(function(t,n){var i,a=e.quill.scroll.find(n);if(!s.includes(a.statics.blotName)){var r=a.descendant((function(e){return s.includes(e.statics.blotName)}));a=r?r[0]:null}null===(i=a)||void 0===i||i.format(l,o+"px")}))},t.unfixTableWidth=function(e,t){var n=t.tableBlot,i=t.quill;(null!=n?n:i.scroll.find(e.get(0))).format("tableWidth","initial")};var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(95479),r=n(78008),s=["table","tableHeaderCell"];function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.find("tr").eq(t).find("th, td")}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.find("th:nth-child(".concat(1+t,"), td:nth-child(").concat(1+t,")"))}t.TABLE_OPERATIONS=["insertTable","insertHeaderRow","insertRowAbove","insertRowBelow","insertColumnLeft","insertColumnRight","deleteColumn","deleteRow","deleteTable","cellProperties","tableProperties"]},92077:function(e,t,n){t.ICON_MAP=void 0,t.applyFormat=C,t.getDefaultClickHandler=A,t.getFormatHandlers=function(e){return{clear:function(t){var n,i=t.event,o=e.quill.getSelection();o&&(e.saveValueChangeEvent(i),e.quill.removeFormat(o),null===(n=E(e))||void 0===n||n.updateFormatWidgets())},link:S(e),image:k(e),color:I(e,"color"),background:I(e,"background"),orderedList:T(e,"list","ordered"),bulletList:T(e,"list","bullet"),alignLeft:T(e,"align","left"),alignCenter:T(e,"align","center"),alignRight:T(e,"align","right"),alignJustify:T(e,"align","justify"),codeBlock:A(e,"code-block"),undo:function(t){var n=t.event;e.saveValueChangeEvent(n),e.quill.history.undo()},redo:function(t){var n=t.event;e.saveValueChangeEvent(n),e.quill.history.redo()},increaseIndent:function(t){var n=t.event;C(e,["indent","+1",y],n)},decreaseIndent:function(t){var n=t.event;C(e,["indent","-1",y],n)},superscript:T(e,"script","super"),subscript:T(e,"script","sub"),insertTable:O(e),insertHeaderRow:(0,a.getTableOperationHandler)(e.quill,"insertHeaderRow"),insertRowAbove:(0,a.getTableOperationHandler)(e.quill,"insertRowAbove"),insertRowBelow:(0,a.getTableOperationHandler)(e.quill,"insertRowBelow"),insertColumnLeft:(0,a.getTableOperationHandler)(e.quill,"insertColumnLeft"),insertColumnRight:(0,a.getTableOperationHandler)(e.quill,"insertColumnRight"),deleteColumn:(0,a.getTableOperationHandler)(e.quill,"deleteColumn"),deleteRow:(0,a.getTableOperationHandler)(e.quill,"deleteRow"),deleteTable:(0,a.getTableOperationHandler)(e.quill,"deleteTable"),cellProperties:w(e,"cell"),tableProperties:w(e,"table")}};var i=p(n(68374)),o=p(n(28109)),a=n(28822),r=n(35922),s=n(95479),l=p(n(17737)),u=p(n(28236)),d=p(n(4278)),c=p(n(4741)),h=n(58664),f=n(58201);function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var v=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],y="user",x="silent";function b(e,t){var n=t.contentTemplate,i=t.title,o=t.minHeight,a=t.minWidth,r=t.maxWidth;e.formDialogOption({contentTemplate:n,title:i,minHeight:null!=o?o:0,minWidth:null!=a?a:0,maxWidth:null!=r?r:"none"})}function w(e,t){return function(n){var a,r;null!==(a=n)&&void 0!==a&&a.length||(n=(0,i.default)(function(e,t){var n=e.quill.getModule("table").getTable();return"table"===t?n[0].domNode:n[2].domNode}(e,t)));var s,u=g(null!==(r=e.quill.getModule("table").getTable())&&void 0!==r?r:[],2),d=u[0],p=u[1],m=e.quill.getFormat(e.editorInstance.getSelection(!0)),_=function(e){return"cell"===e?M:P}(t)(e,{$element:n,formats:m,tableBlot:d,rowBlot:p}),v=e.editorInstance._formDialog._popup.option(),y={contentTemplate:v.contentTemplate,title:v.title,minHeight:v.minHeight,minWidth:v.minWidth,maxWidth:v.maxWidth};e.editorInstance.formDialogOption({contentTemplate:function(t){var n=(0,i.default)("<div>").appendTo(t),o=(0,i.default)("<div>").appendTo(n);return e.editorInstance._createComponent(o,l.default,_.formOptions),e.editorInstance._createComponent(n,c.default,{}),s=o.dxForm("instance"),n},title:o.default.format("dxHtmlEditor-".concat(t,"Properties")),minHeight:400,minWidth:Math.min(800,.9*(0,h.getWidth)((0,f.getWindow)())-1),maxWidth:.9*(0,h.getWidth)((0,f.getWindow)())});var x=e.editorInstance.showFormDialog();x.done((function(t,n){e.saveValueChangeEvent(n),_.applyHandler(s),b(e.editorInstance,y)})),x.fail((function(){e.quill.focus(),b(e.editorInstance,y)}))}}function C(e,t,n){var i;e.editorInstance._saveValueChangeEvent(n),(i=e.quill).format.apply(i,function(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t))}function S(e){return function(){e.quill.focus();var t=e.quill.getSelection(),n=(0,a.hasEmbedContent)(e,t),i=t?e.quill.getFormat():{},r={href:i.link||"",text:t&&!n?e.quill.getText(t):"",target:!Object.prototype.hasOwnProperty.call(i,"target")||!!i.target};e.editorInstance.formDialogOption("title",o.default.format("dxHtmlEditor-dialogLinkCaption"));var s=e.editorInstance.showFormDialog({formData:r,items:D(e,t)});s.done((function(i,o){if(t&&!n){var a=i.text||i.href,r=t.index,s=t.length;i.text=void 0,e.saveValueChangeEvent(o),s&&e.quill.deleteText(r,s,x),e.quill.insertText(r,a,"link",i,y),e.quill.setSelection(r+a.length,0,y)}else i.text=t||i.text?i.text:i.href,C(e,["link",i,y],o)})),s.fail((function(){e.quill.focus()}))}}function k(e){return function(){var t=e.quill.getFormat(),n=Object.prototype.hasOwnProperty.call(t,"imageSrc"),i=function(e){var t,n=e.quill.getSelection();return null!==(t=null==n?void 0:n.index)&&void 0!==t?t:e.quill.getLength()}(e);if(n){var a=e.quill.getFormat(i-1,1).imageSrc;t.src=t.imageSrc,delete t.imageSrc,a&&0!==i||e.quill.setSelection(i+1,0,x)}var r=function(e){var t=e.quill.getSelection();return t?t.length?t.index:t.index-1:e.quill.getLength()}(e);e.editorInstance.formDialogOption("title",o.default.format("dxHtmlEditor-dialogImageCaption")),e.editorInstance.showFormDialog({formData:t,items:[{dataField:"src",label:{text:o.default.format("dxHtmlEditor-dialogImageUrlField")}},{dataField:"width",label:{text:o.default.format("dxHtmlEditor-dialogImageWidthField")}},{dataField:"height",label:{text:o.default.format("dxHtmlEditor-dialogImageHeightField")}},{dataField:"alt",label:{text:o.default.format("dxHtmlEditor-dialogImageAltField")}}]}).done((function(t,o){var a=i;e.saveValueChangeEvent(o),n&&(a=r,e.quill.deleteText(a,1,x)),e.quill.insertEmbed(a,"extendedImage",t,y),e.quill.setSelection(a+1,0,y)})).always((function(){e.quill.focus()}))}}function D(e,t){return[{dataField:"href",label:{text:o.default.format("dxHtmlEditor-dialogLinkUrlField")}},{dataField:"text",label:{text:o.default.format("dxHtmlEditor-dialogLinkTextField")},visible:!(0,a.hasEmbedContent)(e,t)},{dataField:"target",editorType:"dxCheckBox",editorOptions:{text:o.default.format("dxHtmlEditor-dialogLinkTargetField")},cssClass:"dx-formdialog-field-target",label:{visible:!1}}]}function I(e,t){return function(){var n=e.quill.getFormat(),i="color"===t?"dxHtmlEditor-dialogColorCaption":"dxHtmlEditor-dialogBackgroundCaption";e.editorInstance.formDialogOption("title",o.default.format(i));var a=e.editorInstance.showFormDialog({formData:n,items:[{dataField:t,editorType:"dxColorView",editorOptions:{focusStateEnabled:!1},label:{visible:!1}}]});a.done((function(n,i){C(e,[t,n[t],y],i)})),a.fail((function(){e.quill.focus()}))}}function T(e,t,n){return function(i){var o,a=i.event,r=e.quill.getFormat()[t]!==n&&n;C(e,[t,r,y],a),null===(o=E(e))||void 0===o||o.updateFormatWidgets(!0)}}function E(e){return e._updateFormatWidget?e:e.quill.getModule("toolbar")}function A(e,t){return function(n){var i,o=n.event,a=e.quill.getFormat(),s=a[t],l=!((0,r.isBoolean)(s)?s:(0,r.isDefined)(s));C(e,[t,l,y],o),null===(i=E(e))||void 0===i||i._updateFormatWidget(t,l,a)}}function O(e){return function(){var t=e.quill.getFormat();e._tableFormats.some((function(e){return Object.prototype.hasOwnProperty.call(t,e)}))?e.quill.focus():(e.editorInstance.formDialogOption("title",o.default.format("dxHtmlEditor-dialogInsertTableCaption")),e.editorInstance.showFormDialog({formData:{rows:1,columns:1},items:[{dataField:"columns",editorType:"dxNumberBox",editorOptions:{min:1},label:{text:o.default.format("dxHtmlEditor-dialogInsertTableRowsField")}},{dataField:"rows",editorType:"dxNumberBox",editorOptions:{min:1},label:{text:o.default.format("dxHtmlEditor-dialogInsertTableColumnsField")}}]}).done((function(t,n){e.quill.focus();var i=e.quill.getModule("table");if(i){e.saveValueChangeEvent(n);var o=t.columns,a=t.rows;i.insertTable(o,a)}})).always((function(){e.quill.focus()})))}}function P(e,t){var n,l,c,p=t.$element,g=t.formats,m=t.tableBlot,_=(0,f.getWindow)(),y=p,x=e.editorInstance,b=(0,r.isDefined)(g.tableWidth)?parseInt(g.tableWidth):(0,h.getOuterWidth)(y),w=_.getComputedStyle(y.get(0)),C="start"===w.textAlign?"left":w.textAlign;return{formOptions:{colCount:2,formData:{width:b,height:(0,r.isDefined)(g.tableHeight)?parseInt(g.tableHeight):(0,h.getOuterHeight)(y),backgroundColor:g.tableBackgroundColor||w.backgroundColor,borderStyle:g.tableBorderStyle||w.borderTopStyle,borderColor:g.tableBorderColor||w.borderTopColor,borderWidth:parseInt((0,r.isDefined)(g.tableBorderWidth)?g.tableBorderWidth:w.borderTopWidth),alignment:g.tableAlign||C},items:[{itemType:"group",caption:o.default.format("dxHtmlEditor-border"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"borderStyle",label:{text:o.default.format("dxHtmlEditor-style")},editorType:"dxSelectBox",editorOptions:{items:v,placeholder:"Select style"}},{dataField:"borderWidth",label:{text:o.default.format("dxHtmlEditor-borderWidth")},editorOptions:{placeholder:o.default.format("dxHtmlEditor-pixels")}},{itemType:"simple",dataField:"borderColor",label:{text:o.default.format("dxHtmlEditor-borderColor")},colSpan:2,template:function(e){var t=(0,i.default)("<div>");return x._createComponent(t,d.default,{editAlphaChannel:!0,value:e.component.option("formData").borderColor,onInitialized:function(e){l=e.component}}),t}}]},{itemType:"group",caption:o.default.format("dxHtmlEditor-dimensions"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"width",label:{text:o.default.format("dxHtmlEditor-width")},editorOptions:{min:0,placeholder:o.default.format("dxHtmlEditor-pixels")}},{dataField:"height",label:{text:o.default.format("dxHtmlEditor-height")},editorOptions:{min:0,placeholder:o.default.format("dxHtmlEditor-pixels")}}]},{itemType:"group",caption:o.default.format("dxHtmlEditor-tableBackground"),items:[{itemType:"simple",dataField:"backgroundColor",label:{text:o.default.format("dxHtmlEditor-borderColor")},template:function(e){var t=(0,i.default)("<div>");return x._createComponent(t,d.default,{editAlphaChannel:!0,value:e.component.option("formData").backgroundColor,onInitialized:function(e){c=e.component}}),t}}]},{itemType:"group",caption:o.default.format("dxHtmlEditor-alignment"),items:[{itemType:"simple",label:{text:o.default.format("dxHtmlEditor-horizontal")},template:function(){var e=(0,i.default)("<div>");return x._createComponent(e,u.default,{items:[{value:"left",icon:"alignleft"},{value:"center",icon:"aligncenter"},{value:"right",icon:"alignright"},{value:"justify",icon:"alignjustify"}],keyExpr:"value",selectedItemKeys:[C],onInitialized:function(e){n=e.component}}),e}}]}],showColonAfterLabel:!0,labelLocation:"top",minColWidth:400},applyHandler:function(t){var o=t.option("formData"),u=o.width===b?void 0:o.width,d=o.height;!function(e,t){var n=t.$table,o=t.newHeight,l=t.newWidth,u=t.tableBlot;if((0,r.isDefined)(l))if((0,a.getAutoSizedElements)(n).length>0)e.editorInstance.format("tableWidth",l+"px");else{var d=(0,a.getColumnElements)(n),c=(0,h.getOuterWidth)(n);(0,a.unfixTableWidth)(n,{tableBlot:u}),(0,s.each)(d,(function(t,o){var r=(0,i.default)(o),s=l/c*(0,h.getOuterWidth)(r),u=(0,a.getLineElements)(n,r.index(),"horizontal");(0,a.setLineElementsFormat)(e,{elements:u,property:"width",value:s})}))}var f=(0,a.getAutoSizedElements)(n,"vertical");if((null==f?void 0:f.length)>0)u.format("tableHeight",o+"px");else{var p=(0,a.getRowElements)(n),g=(0,h.getOuterHeight)(n);(0,s.each)(p,(function(t,r){var s=(0,i.default)(r),l=o/g*(0,h.getOuterHeight)(s),u=(0,a.getLineElements)(n,t,"vertical");(0,a.setLineElementsFormat)(e,{elements:u,property:"height",value:l})}))}}(e,{$table:y,newHeight:d,newWidth:u,tableBlot:m}),e.editorInstance.format("tableBorderStyle",o.borderStyle),e.editorInstance.format("tableBorderWidth",o.borderWidth+"px"),e.editorInstance.format("tableBorderColor",l.option("value")),e.editorInstance.format("tableBackgroundColor",c.option("value")),e.editorInstance.format("tableTextAlign",n.option("selectedItemKeys")[0])}}}function M(e,t){var n,s,l,c,p=t.$element,g=t.formats,m=t.tableBlot,_=t.rowBlot,y=(0,f.getWindow)(),x=p,b=(0,r.isDefined)(g.cellWidth)?parseInt(g.cellWidth):(0,h.getOuterWidth)(x),w=e.editorInstance,C=y.getComputedStyle(x.get(0)),S="start"===C.textAlign?"left":C.textAlign;return{formOptions:{colCount:2,formData:{width:b,height:(0,r.isDefined)(g.cellHeight)?parseInt(g.cellHeight):(0,h.getOuterHeight)(x),backgroundColor:g.cellBackgroundColor||C.backgroundColor,borderStyle:g.cellBorderStyle||C.borderTopStyle,borderColor:g.cellBorderColor||C.borderTopColor,borderWidth:parseInt((0,r.isDefined)(g.cellBorderWidth)?g.cellBorderWidth:C.borderTopWidth),alignment:g.cellTextAlign||S,verticalAlignment:g.cellVerticalAlign||C.verticalAlign,verticalPadding:parseInt((0,r.isDefined)(g.cellPaddingTop)?g.cellPaddingTop:C.paddingTop),horizontalPadding:parseInt((0,r.isDefined)(g.cellPaddingLeft)?g.cellPaddingLeft:C.paddingLeft)},items:[{itemType:"group",caption:o.default.format("dxHtmlEditor-border"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"borderStyle",label:{text:o.default.format("dxHtmlEditor-style")},editorType:"dxSelectBox",editorOptions:{items:v}},{dataField:"borderWidth",label:{text:o.default.format("dxHtmlEditor-borderWidth")},editorOptions:{placeholder:o.default.format("dxHtmlEditor-pixels")}},{itemType:"simple",dataField:"borderColor",colSpan:2,label:{text:o.default.format("dxHtmlEditor-borderColor")},template:function(e){var t=(0,i.default)("<div>");return w._createComponent(t,d.default,{editAlphaChannel:!0,value:e.component.option("formData").borderColor,onInitialized:function(e){l=e.component}}),t}}]},{itemType:"group",caption:o.default.format("dxHtmlEditor-dimensions"),colCount:2,colCountByScreen:{xs:2},items:[{dataField:"width",label:{text:o.default.format("dxHtmlEditor-width")},editorOptions:{min:0,placeholder:o.default.format("dxHtmlEditor-pixels")}},{dataField:"height",label:{text:o.default.format("dxHtmlEditor-height")},editorOptions:{min:0,placeholder:o.default.format("dxHtmlEditor-pixels")}},{dataField:"verticalPadding",label:{text:o.default.format("dxHtmlEditor-paddingVertical")},editorOptions:{placeholder:o.default.format("dxHtmlEditor-pixels")}},{label:{text:o.default.format("dxHtmlEditor-paddingHorizontal")},dataField:"horizontalPadding",editorOptions:{placeholder:o.default.format("dxHtmlEditor-pixels")}}]},{itemType:"group",caption:o.default.format("dxHtmlEditor-tableBackground"),items:[{itemType:"simple",dataField:"backgroundColor",label:{text:o.default.format("dxHtmlEditor-borderColor")},template:function(e){var t=(0,i.default)("<div>");return w._createComponent(t,d.default,{editAlphaChannel:!0,value:e.component.option("formData").backgroundColor,onInitialized:function(e){c=e.component}}),t}}]},{itemType:"group",caption:o.default.format("dxHtmlEditor-alignment"),colCount:2,items:[{itemType:"simple",label:{text:o.default.format("dxHtmlEditor-horizontal")},template:function(){var e=(0,i.default)("<div>");return w._createComponent(e,u.default,{items:[{value:"left",icon:"alignleft"},{value:"center",icon:"aligncenter"},{value:"right",icon:"alignright"},{value:"justify",icon:"alignjustify"}],keyExpr:"value",selectedItemKeys:[S],onInitialized:function(e){n=e.component}}),e}},{itemType:"simple",label:{text:o.default.format("dxHtmlEditor-vertical")},template:function(){var e=(0,i.default)("<div>");return w._createComponent(e,u.default,{items:[{value:"top",icon:"verticalaligntop"},{value:"middle",icon:"verticalaligncenter"},{value:"bottom",icon:"verticalalignbottom"}],keyExpr:"value",selectedItemKeys:[C.verticalAlign],onInitialized:function(e){s=e.component}}),e}}]}],showColonAfterLabel:!0,labelLocation:"top",minColWidth:400},applyHandler:function(t){var o=t.option("formData"),u=o.width===parseInt(b)?void 0:o.width,d=o.height;!function(e,t){var n=t.$cell,o=t.newHeight,s=t.newWidth,l=t.tableBlot,u=t.rowBlot,d=(0,i.default)(n.closest("table"));if((0,r.isDefined)(s)){var c=(0,i.default)(n).index(),f=(0,a.getLineElements)(d,c),p=s-(0,h.getOuterWidth)(n);s>(0,h.getOuterWidth)(d)&&(0,a.unfixTableWidth)(d,{tableBlot:l}),(0,a.setLineElementsFormat)(e,{elements:f,property:"width",value:s});var g=n.next();if(0===(0,a.getAutoSizedElements)(d).length)if((0,a.unfixTableWidth)(d,{tableBlot:l}),1===g.length){f=(0,a.getLineElements)(d,c+1);var m=(0,h.getOuterWidth)(f.eq(0))-p;(0,a.setLineElementsFormat)(e,{elements:f,property:"width",value:Math.max(m,0)})}else if(1===n.prev().length){f=(0,a.getLineElements)(d,c-1);var _=(0,h.getOuterWidth)(f.eq(0))-p;(0,a.setLineElementsFormat)(e,{elements:f,property:"width",value:Math.max(_,0)})}}u.children.forEach((function(e){e.format("cellHeight",o+"px")})),0===(0,a.getAutoSizedElements)(d,"vertical").length&&d.css("height","auto")}(e,{$cell:x,newHeight:d,newWidth:u,tableBlot:m,rowBlot:_}),e.editorInstance.format("cellBorderWidth",o.borderWidth+"px"),e.editorInstance.format("cellBorderColor",l.option("value")),e.editorInstance.format("cellBorderStyle",o.borderStyle),e.editorInstance.format("cellBackgroundColor",c.option("value")),e.editorInstance.format("cellTextAlign",n.option("selectedItemKeys")[0]),e.editorInstance.format("cellVerticalAlign",s.option("selectedItemKeys")[0]),e.editorInstance.format("cellPaddingLeft",o.horizontalPadding+"px"),e.editorInstance.format("cellPaddingRight",o.horizontalPadding+"px"),e.editorInstance.format("cellPaddingTop",o.verticalPadding+"px"),e.editorInstance.format("cellPaddingBottom",o.verticalPadding+"px")}}}t.ICON_MAP={insertHeaderRow:"header",clear:"clearformat"}},86e3:function(e,t,n){t.default=void 0;var i,o=(i=n(56757))&&i.__esModule?i:{default:i};n(20551),n(15728),n(82778),n(29184),n(68724);var a=o.default;t.default=a,e.exports=t.default,e.exports.default=t.default},37945:function(e,t,n){t.default=void 0;var i=a(n(68374)),o=a(n(54778));function a(e){return e&&e.__esModule?e:{default:e}}var r=o.default.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(e){if(this._$element.children(".dx-list-item-badge-container").remove(),e){var t=(0,i.default)("<div>").addClass("dx-list-item-badge-container").append((0,i.default)("<div>").addClass("dx-list-item-badge").addClass("dx-badge").text(e)),n=this._$element.children(".dx-list-item-chevron-container").first();n.length>0?t.insertBefore(n):t.appendTo(this._$element)}},_renderShowChevron:function(e){if(this._$element.children(".dx-list-item-chevron-container").remove(),e){var t=(0,i.default)("<div>").addClass("dx-list-item-chevron-container"),n=(0,i.default)("<div>").addClass("dx-list-item-chevron");t.append(n).appendTo(this._$element)}}});t.default=r,e.exports=t.default,e.exports.default=t.default},29184:function(e,t,n){n(27445)},52654:function(e,t,n){n(29184)},15728:function(e,t,n){n(52654),n(51257),n(22116),n(3589),n(3181),n(78290)},51257:function(e,t,n){n(96782)},22116:function(e,t,n){n(36279)},3589:function(e,t,n){n(47970)},3181:function(e,t,n){n(33329)},78290:function(e,t,n){n(96782)},82778:function(e,t,n){n(65436)},68724:function(e,t,n){var i=a(n(2630)),o=a(n(29837));function a(e){return e&&e.__esModule?e:{default:e}}i.default.setEditorClass(o.default)},20551:function(e,t,n){n(81362)},31583:function(e,t,n){t.ListBase=void 0,t.setScrollView=function(e){P=e};var i=n(58664),o=O(n(68374)),a=O(n(55994)),r=n(20576),s=n(35922),l=n(44899),u=n(6415),d=n(95479),c=n(47617),h=n(13306),f=O(n(87209)),p=n(95429),g=n(34309),m=n(60137),_=O(n(28109)),v=n(72672),y=O(n(20530)),x=O(n(37945)),b=O(n(63008)),w=n(39611),C=n(75811),S=n(58201),k=O(n(4741)),D=n(82205),I=O(n(69010)),T=n(93280),E=n(62754),A=O(n(37178));function O(e){return e&&e.__esModule?e:{default:e}}var P,M="dx-list-group",R="dx-list-group-body",B="dx-list-group-collapsed",V="dx-wrap-item-text",F=(0,c.compileGetter)("items"),L=I.default.inherit({_activeStateUnit:[".dx-list-item",".dx-list-select-all"].join(","),_supportedKeys:function(){var e=this,t=function(t){var o=n(t);o.is(e.option("focusedElement"))&&(function(t,n){var o=t.position().top;"prev"===n&&(o=t.position().top-(0,i.getHeight)(e.$element())+(0,i.getOuterHeight)(t)),e.scrollTo(o)}(o,t),o=n(t)),e.option("focusedElement",(0,u.getPublicElement)(o)),e.scrollToItem(o)};function n(t){var n=e.scrollTop(),a=(0,i.getHeight)(e.$element()),r=(0,o.default)(e.option("focusedElement")),s=!0;if(!r.length)return(0,o.default)();for(;s;){var l=r[t]();if(!l.length)break;var u=l.position().top+(0,i.getOuterHeight)(l)/2;(s=u<a+n&&u>n)&&(r=l)}return r}return(0,h.extend)(this.callBase(),{leftArrow:r.noop,rightArrow:r.noop,pageUp:function(){return t("prev"),!1},pageDown:function(){return t("next"),!1}})},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:_.default.format("dxList-pullingDownText"),pulledDownText:_.default.format("dxList-pulledDownText"),refreshingText:_.default.format("dxList-refreshingText"),pageLoadingText:_.default.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:_.default.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},_listAttributes:{role:"listbox"},useInkRipple:!1,wrapItemText:!1,_swipeEnabled:!0,_revertPageOnEmptyLoad:!1,showChevronExpr:function(e){return e?e.showChevron:void 0},badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=(0,C.current)();return this.callBase().concat((0,D.deviceDependentOptions)(),[{device:function(){return!m.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!m.nativeScrolling&&!y.default.isSimulator()&&"desktop"===y.default.real().deviceType&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===y.default.real().deviceType&&!y.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,C.isMaterial)(e)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return"dx-list-item"},_itemDataKey:function(){return"dxListItemData"},_itemContainer:function(){return this._$container},_saveSelectionChangeEvent:function(e){this._selectionChangeEventInstance=e},_getSelectionChangeEvent:function(){return this._selectionChangeEventInstance},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children(".dx-list-group").children(".dx-list-group-body").children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},reorderItem:function(e,t){return this.callBase(e,t).done((function(){this._refreshItemElements()}))},deleteItem:function(e){return this.callBase(e).done((function(){this._refreshItemElements()}))},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){if("single"!==this.option("selectionMode")||!this.isItemSelected(e.currentTarget))return this.callBase(e)},_allowDynamicItemsAppend:function(){return!0},_resetDataSourcePageIndex:function(){var e=this.getDataSource();e&&0!==e.pageIndex()&&(e.pageIndex(0),e.load())},_init:function(){this.callBase(),this._resetDataSourcePageIndex(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=70,this._createGroupRenderAction()},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var e=this._scrollBottomMode(),t=this._nextButtonMode();return(0,h.extend)(this.callBase(),{paginate:(0,r.ensureDefined)(e||t,!0)})},_getGroupedOption:function(){return this.option("grouped")},_getGroupContainerByIndex:function(e){return this._itemContainer().find(".".concat(M)).eq(e).find(".".concat(R))},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var e=this.option("scrollingEnabled"),t=e&&this.option("pullRefreshEnabled"),n=e&&this._scrollBottomMode()&&!!this._dataSource;this._scrollView=this._createComponent(this.$element(),P||k.default,{disabled:this.option("disabled")||!e,onScroll:this._scrollHandler.bind(this),onPullDown:t?this._pullDownHandler.bind(this):null,onReachBottom:n?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=(0,o.default)(this._scrollView.content()),this.option("wrapItemText")&&this._$container.addClass(V),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(e){this._scrollAction&&this._scrollAction(e)},_initTemplates:function(){this._templateManager.addDefaultTemplates({group:new T.BindableTemplate((function(e,t){(0,s.isPlainObject)(t)?t.key&&e.text(t.key):e.text(String(t))}),["key"],this.option("integrationOptions.watchMethod"))}),this.callBase()},_prepareDefaultItemTemplate:function(e,t){if(this.callBase(e,t),e.icon){var n=(0,l.getImageContainer)(e.icon).addClass("dx-list-item-icon"),i=(0,o.default)("<div>").addClass("dx-list-item-icon-container");i.append(n),t.prepend(i)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(e){var t=!e||this._isLastPage(),n=this._scrollBottomMode(),i=t||!n,o=i&&!this._isDataSourceLoading();i||this._scrollViewIsFull()?(this._scrollView.release(o),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1)):this._infiniteDataLoading()},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataSource&&this._dataSource.isLoaded()},_isDataSourceFirstLoadCompleted:function(e){return(0,s.isDefined)(e)&&(this._isFirstLoadCompleted=e),this._isFirstLoadCompleted},_dataSourceLoadingChangedHandler:function(e){this._loadIndicationSuppressed()||(e&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var e;!this._itemElements().length&&!this._isDataSourceFirstLoadCompleted()||null===(e=this._scrollView)||void 0===e||e.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()),e||this._isDataSourceFirstLoadCompleted(!1))},_dataSourceChangedHandler:function(){!this._shouldAppendItems()&&(0,S.hasWindow)()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments),this._isDataSourceFirstLoadCompleted(!0)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(e){if(!arguments.length)return this._isLoadIndicationSuppressed;this._isLoadIndicationSuppressed=e},_scrollViewIsFull:function(){var e=this._scrollView;return!e||(0,i.getHeight)(e.content())>(0,i.getHeight)(e.container())},_pullDownHandler:function(e){this._pullRefreshAction(e),this._dataSource&&!this._isDataSourceLoading()?(this._clearSelectedItems(),this._dataSource.pageIndex(0),this._dataSource.reload()):this._updateLoadingState()},_infiniteDataLoading:function(){var e=this;!this.$element().is(":visible")||this._scrollViewIsFull()||this._isDataSourceLoading()||this._isLastPage()||(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout((function(){e._loadNextPage().done(e._setPreviousPageIfNewIsEmpty.bind(e))})))},_setPreviousPageIfNewIsEmpty:function(e){if(this.option("_revertPageOnEmptyLoad")){var t=this.getDataSource(),n=null==t?void 0:t.pageIndex();0===(null==e?void 0:e.length)&&n>0&&(this._fireContentReadyAction(),t.pageIndex(n-1))}},_scrollBottomHandler:function(e){this._pageLoadingAction(e),this._isDataSourceLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?((0,d.each)(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),(0,C.isMaterial)()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=(0,w.addNamespace)(p.name,this.NAME),t=".dx-list-group-header",n=this.$element(),i=this.option("collapsibleGroups");n.toggleClass("dx-list-collapsible-groups",i),a.default.off(n,e,t),i&&a.default.on(n,e,t,function(e){this._createAction(function(e){var t=(0,o.default)(e.event.currentTarget).parent();this._collapseGroupHandler(t),this.option("focusStateEnabled")&&this.option("focusedElement",(0,u.getPublicElement)(t.find(".dx-list-item").eq(0)))}.bind(this),{validatingTargetName:"element"})({event:e})}.bind(this))},_collapseGroupHandler:function(e,t){var n=new E.Deferred;if(e.hasClass(B)===t)return n.resolve();var o=e.children(".dx-list-group-body"),a=(0,i.getOuterHeight)(o),r=0;return 0===a&&((0,i.setHeight)(o,"auto"),r=(0,i.getOuterHeight)(o)),e.toggleClass(B,t),f.default.animate(o,{type:"custom",from:{height:a},to:{height:r},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),n.resolve()}.bind(this)}),n.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=(0,o.default)(),this.$element().addClass("dx-list"),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria("role",this.option("_listAttributes").role)},_renderInkRipple:function(){this._inkRipple=(0,v.render)()},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments);var i=this;if(this._inkRipple){var o={element:e,event:n};t?(0,C.isMaterial)()?this._inkRippleTimer=setTimeout((function(){i._inkRipple.showWave(o)}),35):i._inkRipple.showWave(o):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(o))}},_postprocessRenderItem:function(e){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("_swipeEnabled")&&this._attachSwipeEvent((0,o.default)(e.itemElement))},_attachSwipeEvent:function(e){var t=(0,w.addNamespace)(g.end,this.NAME);a.default.on(e,t,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(e){this._itemDXEventHandler(e,"onItemSwipe",{direction:e.offset<0?"left":"right"})},_nextButtonHandler:function(e){this._pageLoadingAction(e);var t=this._dataSource;t&&!t.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(e,t){var n=(0,o.default)("<div>").addClass(M).appendTo(this._itemContainer()),i=(0,o.default)("<div>").addClass("dx-list-group-header").appendTo(n),a=this.option("groupTemplate"),r=this._getTemplate(t.template||a,t,e,i),s={index:e,itemData:t,container:(0,u.getPublicElement)(i)};this._createItemByTemplate(r,s),(0,C.isMaterial)()&&(0,o.default)("<div>").addClass("dx-list-group-header-indicator").prependTo(i),this._renderingGroupIndex=e;var l=(0,o.default)("<div>").addClass(R).appendTo(n);(0,d.each)(F(t)||[],function(t,n){this._renderItem({group:e,item:t},n,l)}.bind(this)),this._groupRenderAction({groupElement:(0,u.getPublicElement)(n),groupIndex:e,groupData:t})},downInkRippleHandler:function(e){this._toggleActiveState((0,o.default)(e.currentTarget),!0,e)},upInkRippleHandler:function(e){this._toggleActiveState((0,o.default)(e.currentTarget),!1)},attachGroupHeaderInkRippleEvents:function(){var e=".dx-list-group-header",t=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);var n=[t,"dxpointerdown",e,this._downInkRippleHandler],i=[t,"dxpointerup dxpointerout",e,this._upInkRippleHandler];a.default.off.apply(a.default,n),a.default.on.apply(a.default,n),a.default.off.apply(a.default,i),a.default.on.apply(a.default,i)},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),delete this._inkRipple,this.callBase.apply(this,arguments)},_dispose:function(){this._isDataSourceFirstLoadCompleted(!1),clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(e){this.callBase(e),this._scrollView.option("disabled",e||!this.option("scrollingEnabled"))},_toggleNextButton:function(e){var t=this._dataSource,n=this._getNextButton();this.$element().toggleClass("dx-has-next",e),e&&t&&t.isLoaded()&&n.appendTo(this._itemContainer()),e||n.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var e=(0,o.default)("<div>").addClass("dx-list-next-button"),t=(0,o.default)("<div>").appendTo(e);return this._createComponent(t,b.default,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:(0,C.isMaterial)()?"default":void 0,integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if((0,S.hasWindow)()){var e=this._scrollView.scrollTop();this.callBase(),e&&this._scrollView.scrollTo(e)}else this.callBase()},_optionChanged:function(e){switch(e.name){case"pageLoadMode":this._toggleNextButton(e.value),this._initScrollView();break;case"dataSource":this.callBase(e),this._initScrollView(),this._isDataSourceFirstLoadCompleted(!1);break;case"items":this.callBase(e),this._isDataSourceFirstLoadCompleted(!1);break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"useNativeScrolling":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":case"grouped":case"collapsibleGroups":case"groupTemplate":case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions();break;case"wrapItemText":this._$container.toggleClass(V,e.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":case"visible":this.callBase(e),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"rtlEnabled":this._initScrollView(),this.callBase(e);break;case"_swipeEnabled":case"_revertPageOnEmptyLoad":case"_listAttributes":break;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var t=e.closest(".dx-list-group"),n=t.find(".dx-list-item");return(0,h.extend)(this.callBase(e),{itemIndex:{group:t.index(),item:n.index(e)}})},expandGroup:function(e){var t=new E.Deferred,n=this._itemContainer().find(".dx-list-group").eq(e);return this._collapseGroupHandler(n,!1).done(function(){t.resolveWith(this)}.bind(this)),t.promise()},collapseGroup:function(e){var t=new E.Deferred,n=this._itemContainer().find(".dx-list-group").eq(e);return this._collapseGroupHandler(n,!0).done(function(){t.resolveWith(this)}.bind(this)),t},updateDimensions:function(){var e=this,t=new E.Deferred;return e._scrollView?e._scrollView.update().done((function(){!e._scrollViewIsFull()&&e._updateLoadingState(!0),t.resolveWith(e)})):t.resolveWith(e),t.promise()},reload:function(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(e){this._scrollView.scrollBy(e)},scrollTo:function(e){this._scrollView.scrollTo(e)},scrollToItem:function(e){var t=this._editStrategy.getItemElement(e);this._scrollView.scrollToElement(null==t?void 0:t.get(0))},_dimensionChanged:function(){this.updateDimensions()}}).include(A.default);t.ListBase=L,L.ItemClass=x.default},27445:function(e,t,n){var i=n(58664),o=c(n(68374)),a=c(n(86976)),r=c(n(28109)),s=n(40245),l=c(n(61225)),u=c(n(89799)),d=n(31583);function c(e){return e&&e.__esModule?e:{default:e}}var h="dx-list-context-menu";(0,s.register)("menu","context",l.default.inherit({_init:function(){var e=(0,o.default)("<div>").addClass(h);this._list.$element().append(e),this._menu=this._renderOverlay(e)},_renderOverlay:function(e){return this._list._createComponent(e,u.default,{shading:!1,deferRendering:!0,hideOnParentScroll:!0,closeOnOutsideClick:function(e){return!(0,o.default)(e.target).closest("."+h).length},animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:function(){return(0,i.getOuterHeight)(this._$menuList)}.bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},_ignoreFunctionValueDeprecation:!0,height:function(){return this._$menuList?(0,i.getOuterHeight)(this._$menuList):0}.bind(this),width:function(){return(0,i.getOuterWidth)(this._list.$element())}.bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent:function(e){var t=e.component.$content(),n=this._menuItems().slice();this._deleteEnabled()&&n.push({text:r.default.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=(0,o.default)("<div>"),this._list._createComponent(this._$menuList,d.ListBase,{items:n,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),t.addClass("dx-list-context-menucontent"),t.append(this._$menuList)},_menuItemClickHandler:function(e){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,e.itemData.action)},_deleteItem:function(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu:function(e){return this._$itemWithMenu=e,this._menu.option({position:{my:"top",at:"bottom",of:e,collision:"flip"}}),this._menu.show(),!0},dispose:function(){this._menu&&this._menu.$element().remove(),this.callBase.apply(this,arguments)}}).include(a.default))},61225:function(e,t,n){t.default=void 0;var i=n(58664),o=d(n(68374)),a=d(n(55994)),r=n(20576),s=d(n(38377)),l=n(34309),u=n(39611);function d(e){return e&&e.__esModule?e:{default:e}}var c="dxListEditDecorator",h=(0,u.addNamespace)(l.start,c),f=(0,u.addNamespace)(l.swipe,c),p=(0,u.addNamespace)(l.end,c),g=s.default.inherit({ctor:function(e){this._list=e,this._init()},_init:r.noop,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=(0,i.getWidth)(this._list.$element()),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};a.default.on(e.$itemElement,h,t,this._itemSwipeStartHandler.bind(this)),a.default.on(e.$itemElement,f,this._itemSwipeUpdateHandler.bind(this)),a.default.on(e.$itemElement,p,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=(0,o.default)(e.currentTarget);t.is(".dx-state-disabled, .dx-state-disabled *")?e.cancel=!0:(clearTimeout(this._list._inkRippleTimer),this._swipeStartHandler(t,e))},_itemSwipeUpdateHandler:function(e){var t=(0,o.default)(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=(0,o.default)(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:r.noop,afterBag:r.noop,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(e){this._shouldHandleSwipe&&(this._attachSwipeEvent(e),this._clearSwipeCache=!0)},afterRender:r.noop,handleClick:r.noop,handleKeyboardEvents:r.noop,handleEnterPressing:r.noop,handleContextMenu:r.noop,_swipeStartHandler:r.noop,_swipeUpdateHandler:r.noop,_swipeEndHandler:r.noop,visibilityChange:r.noop,getExcludedSelectors:r.noop,dispose:r.noop});t.default=g,e.exports=t.default,e.exports.default=t.default},65436:function(e,t,n){var i=n(58664),o=c(n(68374)),a=c(n(55994)),r=n(13306),s=n(39611),l=n(40245),u=c(n(61225)),d=c(n(66843));function c(e){return e&&e.__esModule?e:{default:e}}var h="dx-list-reorder-handle";(0,l.register)("reorder","default",u.default.inherit({_init:function(){var e=this._list;this._groupedEnabled=this._list.option("grouped"),this._lockedDrag=!1;var t=this._groupedEnabled?"> .dx-list-group > .dx-list-group-body > .dx-list-item":"> .dx-list-item";this._sortable=e._createComponent(e._scrollView.content(),d.default,(0,r.extend)({component:e,contentTemplate:null,allowReordering:!1,filter:t,container:e.$element(),dragDirection:e.option("itemDragging.group")?"both":"vertical",handle:".".concat(h),dragTemplate:this._dragTemplate,onDragStart:this._dragStartHandler.bind(this),onDragChange:this._dragChangeHandler.bind(this),onReorder:this._reorderHandler.bind(this)},e.option("itemDragging")))},afterRender:function(){this._sortable.update()},_dragTemplate:function(e){var t=(0,o.default)(e.itemElement).clone().addClass("dx-list-item-ghost-reordering").addClass("dx-state-hover");return(0,i.setWidth)(t,(0,i.getWidth)(e.itemElement)),t},_dragStartHandler:function(e){this._lockedDrag&&(e.cancel=!0)},_dragChangeHandler:function(e){!this._groupedEnabled||this._sameParent(e.fromIndex,e.toIndex)||(e.cancel=!0)},_sameParent:function(e,t){var n=this._list.getItemElementByFlatIndex(e);return this._list.getItemElementByFlatIndex(t).parent().get(0)===n.parent().get(0)},_reorderHandler:function(e){var t=this._list.getItemElementByFlatIndex(e.toIndex);this._list.reorderItem((0,o.default)(e.itemElement),t)},afterBag:function(e){var t=this,n=(0,o.default)("<div>").addClass(h);a.default.on(n,"dxpointerdown",(function(e){t._lockedDrag=!(0,s.isMouseEvent)(e)})),a.default.on(n,"dxhold",{timeout:30},(function(e){e.cancel=!0,t._lockedDrag=!1})),e.$container.addClass("dx-list-reorder-handle-container").append(n)}}))},81362:function(e,t,n){var i=f(n(68374)),o=f(n(55994)),a=n(95429),r=n(13306),s=f(n(96688)),l=f(n(18859)),u=f(n(6282)),d=n(39611),c=n(40245),h=f(n(61225));function f(e){return e&&e.__esModule?e:{default:e}}var p="dx-list-select-decorator-enabled",g="dx-list-select-checkbox-container",m="dx-list-select-checkbox",_="dx-list-select-radiobutton-container",v="dx-list-select-radiobutton",y=(0,d.addNamespace)(a.name,"dxListEditDecorator");(0,c.register)("selection","default",h.default.inherit({_init:function(){this.callBase.apply(this,arguments);var e=this._list.option("selectionMode");this._singleStrategy="single"===e,this._containerClass=this._singleStrategy?_:g,this._controlClass=this._singleStrategy?v:m,this._controlWidget=this._singleStrategy?u.default:l.default,this._list.$element().addClass(p)},beforeBag:function(e){var t=e.$itemElement,n=e.$container.addClass(this._containerClass),o=(0,i.default)("<div>").addClass(this._controlClass).appendTo(n);new this._controlWidget(o,(0,r.extend)(this._commonOptions(),{value:this._isSelected(t),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(e){e.event&&this._list._saveSelectionChangeEvent(e.event),this._processCheckedState(t,e.value),e.event&&e.event.stopPropagation()}.bind(this)}))},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement,n=this._controlWidget.getInstance(t.find("."+this._controlClass));o.default.on(t,"stateChanged",function(e,t){n.option("value",t)}.bind(this))},_updateSelectAllState:function(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender:function(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},handleKeyboardEvents:function(e,t){var n=!t,i=this._list,o=this._$selectAll,a=i._getLastItemIndex();return!(!o||!(t&&0===e||n&&e===a)||(i.option("focusedElement",o),i.scrollToItem(i.option("focusedElement")),0))},handleEnterPressing:function(e){if(this._$selectAll&&this._$selectAll.hasClass("dx-state-focused"))return e.target=this._$selectAll.get(0),this._list._saveSelectionChangeEvent(e),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var e=this._$selectAll=(0,i.default)("<div>").addClass("dx-list-select-all"),t=this._list,n=t._supportedKeys().downArrow.bind(t);this._selectAllCheckBox=t._createComponent((0,i.default)("<div>").addClass("dx-list-select-all-checkbox").appendTo(e),l.default,{focusStateEnabled:!1,hoverStateEnabled:!1}),this._selectAllCheckBox.registerKeyHandler("downArrow",n),(0,i.default)("<div>").addClass("dx-list-select-all-label").text(this._list.option("selectAllText")).appendTo(e),this._list.itemsContainer().prepend(e),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),o.default.off(this._$selectAll,y),o.default.on(this._$selectAll,y,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(e){e.event&&e.event.stopPropagation();var t=this._selectAllCheckBox.option("value");!1!==this._list._createActionByOption("onSelectAllValueChanged")({value:t})&&(e.event&&this._list._saveSelectionChangeEvent(e.event),!0===t?this._selectAllItems():!1===t&&this._unselectAllItems())},_checkSelectAllCapability:function(){var e=this._list,t=e.getDataSource();return!!("allPages"!==e.option("selectAllMode")||!e.option("grouped")||t&&t.group())||(s.default.log("W1010"),!1)},_selectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler:function(e){this._list._saveSelectionChangeEvent(e),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(e){return this._list.isItemSelected(e)},_processCheckedState:function(e,t){t?this._list.selectItem(e):this._list.unselectItem(e)},dispose:function(){this._disposeSelectAll(),this._list.$element().removeClass(p),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}))},47970:function(e,t,n){var i=s(n(68374)),o=s(n(63008)),a=n(40245),r=s(n(61225));function s(e){return e&&e.__esModule?e:{default:e}}(0,a.register)("delete","static",r.default.inherit({afterBag:function(e){var t=e.$itemElement,n=e.$container,a=(0,i.default)("<div>").addClass("dx-list-static-delete-button");this._list._createComponent(a,o.default,{icon:"remove",onClick:function(e){e.event.stopPropagation(),this._deleteItem(t)}.bind(this),integrationOptions:{}}),n.addClass("dx-list-static-delete-button-container").append(a)},_deleteItem:function(e){e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e)}}))},33329:function(e,t,n){var i=n(58664),o=n(31648),a=u(n(87209)),r=n(40245),s=u(n(61225)),l=n(62754);function u(e){return e&&e.__esModule?e:{default:e}}(0,r.register)("delete","swipe",s.default.inherit({_shouldHandleSwipe:!0,_renderItemPosition:function(e,t,n){var i=new l.Deferred,r=t*this._itemElementWidth;return n?a.default.animate(e,{to:{left:r},type:"slide",complete:function(){i.resolve(e,t)}}):((0,o.move)(e,{left:r}),i.resolve()),i.promise()},_swipeStartHandler:function(e){return this._itemElementWidth=(0,i.getWidth)(e),!0},_swipeUpdateHandler:function(e,t){return this._renderItemPosition(e,t.offset),!0},_swipeEndHandler:function(e,t){var n=t.targetOffset;return this._renderItemPosition(e,n,!0).done(function(e,t){Math.abs(t)&&this._list.deleteItem(e).fail(function(){this._renderItemPosition(e,0,!0)}.bind(this))}.bind(this)),!0}}))},96782:function(e,t,n){t.default=void 0;var i=n(58664),o=d(n(68374)),a=d(n(87209)),r=d(n(63008)),s=d(n(28109)),l=n(40245),u=d(n(81139));function d(e){return e&&e.__esModule?e:{default:e}}var c="dx-list-switchable-delete-button-container",h="dx-list-switchable-delete-button-wrapper",f="dx-list-switchable-delete-button-inner-wrapper",p="dx-list-switchable-delete-button",g=u.default.inherit({_init:function(){this.callBase.apply(this,arguments);var e=(0,o.default)("<div>").addClass(c),t=(0,o.default)("<div>").addClass(h),n=(0,o.default)("<div>").addClass(f),i=(0,o.default)("<div>").addClass(p);this._list._createComponent(i,r.default,{text:s.default.format("dxListEditDecorator-delete"),type:"danger",onClick:function(e){this._deleteItem(),e.event.stopPropagation()}.bind(this),integrationOptions:{}}),e.append(t),t.append(n),n.append(i),this._$buttonContainer=e},_enablePositioning:function(e){this.callBase.apply(this,arguments),a.default.stop(this._$buttonContainer,!0),this._$buttonContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonContainer.detach()},_animatePrepareDeleteReady:function(){var e=this._isRtlEnabled(),t=(0,i.getWidth)(this._list.$element()),n=this._buttonWidth(),o=e?t:-n,r=e?t-n:0;return a.default.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:o},to:{right:r}})},_animateForgetDeleteReady:function(){var e=this._isRtlEnabled(),t=(0,i.getWidth)(this._list.$element()),n=this._buttonWidth(),o=e?t-n:0,r=e?t:-n;return a.default.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:o},to:{right:r}})},_buttonWidth:function(){return this._buttonContainerWidth||(this._buttonContainerWidth=(0,i.getOuterWidth)(this._$buttonContainer)),this._buttonContainerWidth},dispose:function(){this._$buttonContainer&&this._$buttonContainer.remove(),this.callBase.apply(this,arguments)}});(0,l.register)("delete","toggle",g.inherit({beforeBag:function(e){var t=e.$itemElement,n=e.$container,i=(0,o.default)("<div>").addClass("dx-list-toggle-delete-switch");this._list._createComponent(i,r.default,{icon:"toggle-delete",onClick:function(e){a.default.stop(this._$buttonContainer,!1),this._toggleDeleteReady(t),e.event.stopPropagation()}.bind(this),integrationOptions:{}}),n.addClass("dx-list-toggle-delete-switch-container"),n.append(i)}})),(0,l.register)("delete","slideButton",g.inherit({_shouldHandleSwipe:!0,_swipeEndHandler:function(e,t){return 0!==t.targetOffset&&(a.default.stop(this._$buttonContainer,!1),this._toggleDeleteReady(e)),!0}}));var m=g;t.default=m,e.exports=t.default,e.exports.default=t.default},81139:function(e,t,n){t.default=void 0;var i=n(58664),o=c(n(68374)),a=c(n(55994)),r=n(20576),s=c(n(61225)),l=n(39611),u=c(n(93786)),d=n(91633);function c(e){return e&&e.__esModule?e:{default:e}}var h=s.default.abstract,f="dxListEditDecorator",p=(0,l.addNamespace)(u.default.down,f),g=(0,l.addNamespace)(d.active,f),m="dx-list-switchable-delete-ready",_="dx-list-switchable-menu-item-shield-positioning",v=s.default.inherit({_init:function(){this._$topShield=(0,o.default)("<div>").addClass("dx-list-switchable-delete-top-shield"),this._$bottomShield=(0,o.default)("<div>").addClass("dx-list-switchable-delete-bottom-shield"),this._$itemContentShield=(0,o.default)("<div>").addClass("dx-list-switchable-delete-item-content-shield"),a.default.on(this._$topShield,p,this._cancelDeleteReadyItem.bind(this)),a.default.on(this._$bottomShield,p,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(e){this._toggleDeleteReady(e,!1)},_toggleDeleteReady:function(e,t){void 0===t&&(t=!this._isReadyToDelete(e)),this._toggleShields(e,t),this._toggleScrolling(t),this._cacheReadyToDeleteItem(e,t),this._animateToggleDelete(e,t)},_isReadyToDelete:function(e){return e.hasClass(m)},_toggleShields:function(e,t){this._list.$element().toggleClass("dx-list-switchable-menu-shield-positioning",t),this._$topShield.toggle(t),this._$bottomShield.toggle(t),t&&this._updateShieldsHeight(e),this._toggleContentShield(e,t)},_updateShieldsHeight:function(e){var t=this._list.$element(),n=t.offset().top,o=(0,i.getOuterHeight)(t),a=e.offset().top-n,r=o-(0,i.getOuterHeight)(e)-a;(0,i.setHeight)(this._$topShield,Math.max(a,0)),(0,i.setHeight)(this._$bottomShield,Math.max(r,0))},_toggleContentShield:function(e,t){t?e.find(".dx-list-item-content").first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(e){var t=this._list.$element().dxScrollView("instance");e?t.on("start",this._cancelScrolling):t.off("start",this._cancelScrolling)},_cancelScrolling:function(e){e.event.cancel=!0},_cacheReadyToDeleteItem:function(e,t){t?this._$readyToDeleteItem=e:delete this._$readyToDeleteItem},_animateToggleDelete:function(e,t){t?(this._enablePositioning(e),this._prepareDeleteReady(e),this._animatePrepareDeleteReady(e),a.default.off(e,u.default.up)):(this._forgetDeleteReady(e),this._animateForgetDeleteReady(e).done(this._disablePositioning.bind(this,e)))},_enablePositioning:function(e){e.addClass(_),a.default.on(e,g,r.noop),a.default.one(e,u.default.up,this._disablePositioning.bind(this,e))},_disablePositioning:function(e){e.removeClass(_),a.default.off(e,g)},_prepareDeleteReady:function(e){e.addClass(m)},_forgetDeleteReady:function(e){e.removeClass(m)},_animatePrepareDeleteReady:h,_animateForgetDeleteReady:h,_getDeleteButtonContainer:function(e){return(e=e||this._$readyToDeleteItem).children(".dx-list-switchable-delete-button-container")},_deleteItem:function(e){e=e||this._$readyToDeleteItem,this._getDeleteButtonContainer(e).detach(),e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e).always(this._cancelDelete.bind(this,e))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});t.default=v,e.exports=t.default,e.exports.default=t.default},36279:function(e,t,n){var i=n(58664),o=v(n(68374)),a=v(n(55994)),r=n(20576),s=n(95429),l=v(n(28109)),u=n(31648),d=n(39611),c=n(91633),h=v(n(86976)),f=n(40245),p=v(n(81139)),g=v(n(87209)),m=n(75811),_=v(n(81476));function v(e){return e&&e.__esModule?e:{default:e}}var y="dxListEditDecorator",x=(0,d.addNamespace)(s.name,y),b=(0,d.addNamespace)(c.active,y),w="dx-list-slide-menu-wrapper",C="dx-list-slide-menu-content",S="dx-list-slide-menu-buttons-container",k="dx-list-slide-menu-buttons",D="dx-list-slide-menu-button";(0,f.register)("menu","slide",p.default.inherit({_shouldHandleSwipe:!0,_init:function(){this.callBase.apply(this,arguments),this._$buttonsContainer=(0,o.default)("<div>").addClass(S),a.default.on(this._$buttonsContainer,b,r.noop),this._$buttons=(0,o.default)("<div>").addClass(k).appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu:function(){if(this._menuEnabled()){var e=this._menuItems();if(1===e.length){var t=e[0];this._renderMenuButton(t.text,function(e){e.stopPropagation(),this._fireAction(t)}.bind(this))}else{var n=(0,o.default)("<div>").addClass("dx-list-slide-menu");this._menu=this._list._createComponent(n,_.default,{showTitle:!1,items:e,onItemClick:function(e){this._fireAction(e.itemData)}.bind(this),integrationOptions:{}}),n.appendTo(this._list.$element());var i=this._renderMenuButton(l.default.format("dxListEditDecorator-more"),function(e){e.stopPropagation(),this._menu.show()}.bind(this));this._menu.option("target",i)}}},_renderMenuButton:function(e,t){var n=(0,o.default)("<div>").addClass(D).addClass("dx-list-slide-menu-button-menu").text(e);return this._$buttons.append(n),a.default.on(n,x,t),n},_renderDeleteButton:function(){if(this._deleteEnabled()){var e=(0,o.default)("<div>").addClass(D).addClass("dx-list-slide-menu-button-delete").text((0,m.isMaterial)()?"":l.default.format("dxListEditDecorator-delete"));a.default.on(e,x,function(e){e.stopPropagation(),this._deleteItem()}.bind(this)),this._$buttons.append(e)}},_fireAction:function(e){this._fireMenuAction((0,o.default)(this._cachedNode),e.action),this._cancelDeleteReadyItem()},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement;t.addClass(w);var n=(0,o.default)("<div>").addClass(C);t.wrapInner(n)},_getDeleteButtonContainer:function(){return this._$buttonsContainer},handleClick:function(e,t){return!!(0,o.default)(t.target).closest("."+C).length&&this.callBase.apply(this,arguments)},_swipeStartHandler:function(e){this._enablePositioning(e),this._cacheItemData(e),this._setPositions(this._getPositions(0))},_swipeUpdateHandler:function(e,t){var n=this._isRtlEnabled()?-1:1,i=this._isReadyToDelete(e);if(this._getCurrentPositions().content!==this._getStartPositions().content||i||!(t.offset*n>0)){var o=this._cachedItemWidth*t.offset,a=i?-this._cachedButtonWidth*n:0,r=(o+a)*n<0?Math.abs((o+a)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(r)),!0}t.cancel=!0},_getStartPositions:function(){var e=this._isRtlEnabled(),t=e?-1:1;return{content:0,buttonsContainer:e?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*t}},_getPositions:function(e){var t=this._isRtlEnabled()?-1:1,n=this._getStartPositions();return{content:n.content-e*this._cachedButtonWidth*t,buttonsContainer:n.buttonsContainer-Math.min(e,1)*this._cachedButtonWidth*t,buttons:n.buttons+Math.min(e,1)*this._cachedButtonWidth*t}},_getCurrentPositions:function(){return{content:(0,u.locate)(this._$cachedContent).left,buttonsContainer:(0,u.locate)(this._$buttonsContainer).left,buttons:(0,u.locate)(this._$buttons).left}},_setPositions:function(e){(0,u.move)(this._$cachedContent,{left:e.content}),(0,u.move)(this._$buttonsContainer,{left:e.buttonsContainer}),(0,u.move)(this._$buttons,{left:e.buttons})},_cacheItemData:function(e){e[0]!==this._cachedNode&&(this._$cachedContent=e.find("."+C),this._cachedItemWidth=(0,i.getOuterWidth)(e),this._cachedButtonWidth=this._cachedButtonWidth||(0,i.getOuterWidth)(this._$buttons),(0,i.setWidth)(this._$buttonsContainer,this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=e[0]))},_minButtonContainerLeftOffset:function(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler:function(e,t){this._cacheItemData(e);var n=this._isRtlEnabled()?1:-1,i=this._cachedItemWidth*t.offset,o=!this._isReadyToDelete(e)&&i*n>.2*this._cachedButtonWidth,a=t.targetOffset===n&&o;return this._toggleDeleteReady(e,a),!0},_enablePositioning:function(e){g.default.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady:function(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady:function(e){return this._cacheItemData(e),this._animateToPositions(this._getPositions(0))},_animateToPositions:function(e){var t=this,n=this._getCurrentPositions(),i=Math.min(Math.abs(n.content-e.content)/this._cachedButtonWidth,1);return g.default.animate(this._$cachedContent,{from:n,to:e,easing:"cubic-bezier(0.075, 0.82, 0.165, 1)",duration:400*i,strategy:"frame",draw:function(e){t._setPositions(e)}})},dispose:function(){this._menu&&this._menu.$element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include(h.default))},86976:function(e,t){t.default=void 0;t.default={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(e,t){this._list._itemEventHandlerByHandler(e,t,{},{excludeValidators:["disabled","readOnly"]})}},e.exports=t.default,e.exports.default=t.default},40245:function(e,t,n){t.register=function(e,t,n){var a=o,r={};r[e]=a[e]?a[e]:{},r[e][t]=n,(0,i.extend)(a,r)},t.registry=void 0;var i=n(13306),o={};t.registry=o},77834:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=n(39611),a=n(13306),r=u(n(24232)),s=u(n(28109)),l=u(n(85057));function u(e){return e&&e.__esModule?e:{default:e}}var d=n(31583).ListBase.inherit({_supportedKeys:function(){var e=this,t=this,n=this.callBase(),i=function(i,o){var a=e._editStrategy,r=e.option("focusedElement"),s=a.getNormalizedIndex(r);if(s!==e._getLastItemIndex()||!e._isDataSourceLoading())if(i.shiftKey&&t.option("itemDragging.allowReordering")){var l=s+(o?-1:1),u=a.getItemElement(l);e.reorderItem(r,u),e.scrollToItem(r),i.preventDefault()}else e._editProvider.handleKeyboardEvents(s,o)||(o?n.upArrow(i):n.downArrow(i))};return(0,a.extend)({},n,{del:function(e){t.option("allowItemDeleting")&&(e.preventDefault(),t.deleteItem(t.option("focusedElement")))},upArrow:function(e){return i(e,!0)},downArrow:function(e){return i(e)},enter:function(e){this._editProvider.handleEnterPressing(e)||n.enter.apply(this,arguments)},space:function(e){this._editProvider.handleEnterPressing(e)||n.space.apply(this,arguments)}})},_updateSelection:function(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex:function(){return this._itemElements().length-1},_refreshItemElements:function(){this.callBase();var e=this._editProvider.getExcludedItemSelectors();e.length&&(this._itemElementsCache=this._itemElementsCache.not(e))},_isItemStrictEquals:function(e,t){var n=e&&e.__dx_key__;return!(n&&!this.key()&&this._selection.isItemSelected(n))&&this.callBase(e,t)},_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:s.default.format("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",itemDragging:{}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"ios"===e.platform},options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}}])},_init:function(){this.callBase(),this._initEditProvider()},_initDataSource:function(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll:function(){return"page"===this.option("selectAllMode")},_initEditProvider:function(){this._editProvider=new l.default(this)},_disposeEditProvider:function(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider:function(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy:function(){this.option("grouped")?this._editStrategy=new r.default(this):this.callBase()},_initMarkup:function(){this._refreshEditProvider(),this.callBase()},_renderItems:function(){this.callBase.apply(this,arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:function(){return"dx-list-item-selected"},_itemResponseWaitClass:function(){return"dx-list-item-response-wait"},_itemClickHandler:function(e){var t=(0,i.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=this._editProvider.handleClick(t,e);n||(this._saveSelectionChangeEvent(e),this.callBase.apply(this,arguments))}},_shouldFireContextMenuEvent:function(){return this.callBase.apply(this,arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler:function(e){var t=(0,i.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=(0,o.isTouchEvent)(e)&&this._editProvider.handleContextMenu(t,e);n?e.handledByEditProvider=!0:this.callBase.apply(this,arguments)}},_getItemContainer:function(e){if(this.option("grouped")){var t,n=null===(t=this._editStrategy.getIndexByItemData(e))||void 0===t?void 0:t.group;return this._getGroupContainerByIndex(n)}return this.callBase(e)},_itemContextMenuHandler:function(e){var t=(0,i.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=!e.handledByEditProvider&&this._editProvider.handleContextMenu(t,e);n?e.preventDefault():this.callBase.apply(this,arguments)}},_postprocessRenderItem:function(e){this.callBase.apply(this,arguments),this._editProvider.modifyItemElement(e)},_clean:function(){this._disposeEditProvider(),this.callBase()},focusListItem:function(e){var t=this._editStrategy.getItemElement(e);this.option("focusedElement",t),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged:function(e){switch(e.name){case"selectAllMode":this._initDataSource(),this._dataSource.pageIndex(0),this._dataSource.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(e);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(e)}},selectAll:function(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll:function(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll:function(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement:function(e){return this._itemElements().index(e)},getItemElementByFlatIndex:function(e){var t=this._itemElements();return e<0||e>=t.length?(0,i.default)():t.eq(e)},getItemByIndex:function(e){return this._editStrategy.getItemDataByIndex(e)}});t.default=d,e.exports=t.default,e.exports.default=t.default},85057:function(e,t,n){t.default=void 0;var i=d(n(68374)),o=n(20576),a=d(n(38377)),r=n(13306),s=n(95479),l=d(n(96688)),u=n(40245);function d(e){return e&&e.__esModule?e:{default:e}}var c=[],h=function(e,t,n){c.push({enabled:e,decoratorType:t,decoratorSubType:n})};h((function(){return this.option("menuItems").length}),(function(){return"menu"}),(function(){return this.option("menuMode")})),h((function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")}),(function(){var e=this.option("itemDeleteMode");return"toggle"===e||"slideButton"===e||"swipe"===e||"static"===e?"delete":"menu"}),(function(){var e=this.option("itemDeleteMode");return"slideItem"===e&&(e="slide"),e})),h((function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")}),(function(){return"selection"}),(function(){return"default"})),h((function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")}),(function(){return"reorder"}),(function(){return"default"}));var f=a.default.inherit({ctor:function(e){this._list=e,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&(0,s.each)(this._decorators,(function(e,t){t.dispose()}))},_fetchRequiredDecorators:function(){this._decorators=[],(0,s.each)(c,function(e,t){if(t.enabled.call(this._list)){var n=t.decoratorType.call(this._list),i=t.decoratorSubType.call(this._list),o=this._createDecorator(n,i);this._decorators.push(o)}}.bind(this))},_createDecorator:function(e,t){return new(this._findDecorator(e,t))(this._list)},_findDecorator:function(e,t){var n,i=null===(n=u.registry[e])||void 0===n?void 0:n[t];if(!i)throw l.default.Error("E1012",e,t);return i},modifyItemElement:function(e){var t=(0,i.default)(e.itemElement),n={$itemElement:t};this._prependBeforeBags(t,n),this._appendAfterBags(t,n),this._applyDecorators("modifyElement",n)},afterItemsRendered:function(){this._applyDecorators("afterRender")},_prependBeforeBags:function(e,t){var n=this._collectDecoratorsMarkup("beforeBag",t,"dx-list-item-before-bag");e.prepend(n)},_appendAfterBags:function(e,t){var n=this._collectDecoratorsMarkup("afterBag",t,"dx-list-item-after-bag");e.append(n)},_collectDecoratorsMarkup:function(e,t,n){var o=(0,i.default)("<div>");return(0,s.each)(this._decorators,(function(){var a=(0,i.default)("<div>").addClass(n);this[e]((0,r.extend)({$container:a},t)),a.children().length&&o.append(a)})),o.children()},_applyDecorators:function(e,t){(0,s.each)(this._decorators,(function(){this[e](t)}))},_handlerExists:function(e){if(!this._decorators)return!1;for(var t=this._decorators,n=t.length,i=0;i<n;i++)if(t[i][e]!==o.noop)return!0;return!1},_eventHandler:function(e,t,n){if(!this._decorators)return!1;for(var i=!1,o=this._decorators,a=o.length,r=0;r<a&&!(i=o[r][e](t,n));r++);return i},handleClick:function(e,t){return this._eventHandler("handleClick",e,t)},handleKeyboardEvents:function(e,t){return this._eventHandler("handleKeyboardEvents",e,t)},handleEnterPressing:function(e){return this._eventHandler("handleEnterPressing",e)},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(e,t){return this._eventHandler("handleContextMenu",e,t)},getExcludedItemSelectors:function(){var e=[];return this._applyDecorators("getExcludedSelectors",e),e.join(",")}});t.default=f,e.exports=t.default,e.exports.default=t.default},27473:function(e,t,n){t.default=void 0;var i=a(n(77834)),o=a(n(2630));function a(e){return e&&e.__esModule?e:{default:e}}var r=i.default.inherit(o.default).inherit({_addWidgetPrefix:function(e){return"dx-list-"+e},_getCombinedFilter:function(){var e,t,n=this._dataSource;return n&&(t={filter:n.filter()},n._addSearchFilter(t),e=t.filter),e},_initDataSource:function(){var e=this.option("searchValue"),t=this.option("searchExpr"),n=this.option("searchMode");this.callBase(),this._dataSource&&(e&&e.length&&this._dataSource.searchValue(e),n.length&&this._dataSource.searchOperation(o.default.getOperationBySearchMode(n)),t&&this._dataSource.searchExpr(t))}});t.default=r,e.exports=t.default,e.exports.default=t.default},24232:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=n(35922),a=n(95479),r=u(n(99236)),s=u(n(96687)),l=u(n(14174));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(e){return(e.group<<20)+e.item},c=function(e){return{group:e>>20,item:1048575&e}},h=l.default.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find(".dx-list-group")},_groupItemElements:function(e){return e.find(".dx-list-item")},getIndexByItemData:function(e){var t=this._collectionWidget.option("items"),n=!1;return!!e&&(e.items&&e.items.length&&(e=e.items[0]),(0,a.each)(t,(function(t,i){return!!i.items&&((0,a.each)(i.items,(function(i,o){return o!==e||(n={group:t,item:i},!1)})),!n&&void 0)})),n)},getItemDataByIndex:function(e){var t=this._collectionWidget.option("items");return(0,o.isNumeric)(e)?this.itemsGetter()[e]:e&&t[e.group]&&t[e.group].items[e.item]||null},itemsGetter:function(){for(var e=[],t=this._collectionWidget.option("items"),n=0;n<t.length;n++)t[n]&&t[n].items?e=e.concat(t[n].items):e.push(t[n]);return e},deleteItemAtIndex:function(e){var t=c(e);this._collectionWidget.option("items")[t.group].items.splice(t.item,1)},getKeysByItems:function(e){var t,n=[];for(t=0;t<e.length;t++)e[t]&&e[t].items?n=n.concat(e[t].items):n.push(e[t]);var i=[];for(t=0;t<n.length;t++)i.push(this._collectionWidget.keyOf(n[t]));return i},getIndexByKey:function(e,t){var n=t||this._collectionWidget.option("items"),i=-1,o=this;return(0,a.each)(n,(function(t,n){if(n.items)return(0,a.each)(n.items,(function(n,a){var r=o._collectionWidget.keyOf(a);if(o._equalKeys(r,e))return i={group:t,item:n},!1})),-1===i&&void 0})),i},_getGroups:function(e){var t=this._collectionWidget.getDataSource(),n=t&&t.group();return n?r.default.queryByOptions((0,s.default)(e),{group:n}).toArray():this._collectionWidget.option("items")},getItemsByKeys:function(e,t){var n=this,i=[],o=this._getGroups(t),r={};return(0,a.each)(e,(function(e,t){var a=function(e){var t=n.getIndexByKey(e,o),i=t&&o[t.group];if(i)return{groupKey:i.key,item:i.items[t.item]}}(t);if(a){var s=a.groupKey,l=a.item,u=r[s];u||(u={key:s,items:[]},r[s]=u,i.push(u)),u.items.push(l)}})),i},moveItemAtIndexToIndex:function(e,t){var n=this._collectionWidget.option("items"),i=c(e),o=c(t),a=n[i.group].items,r=n[o.group].items,s=a[i.item];a.splice(i.item,1),r.splice(o.item,0,s)},_isItemIndex:function(e){return e&&(0,o.isNumeric)(e.group)&&(0,o.isNumeric)(e.item)},_getNormalizedItemIndex:function(e){var t=(0,i.default)(e),n=t.closest(".dx-list-group");return n.length?d({group:this._groupElements().index(n),item:this._groupItemElements(n).index(t)}):-1},_normalizeItemIndex:function(e){return d(e)},_denormalizeItemIndex:function(e){return c(e)},_getItemByNormalizedIndex:function(e){var t=c(e),n=this._groupElements().eq(t.group);return this._groupItemElements(n).eq(t.item)},_itemsFromSameParent:function(e,t){return c(e).group===c(t).group}});t.default=h,e.exports=t.default,e.exports.default=t.default},56757:function(e,t,n){t.default=void 0;var i=o(n(27473));function o(e){return e&&e.__esModule?e:{default:e}}(0,o(n(99393)).default)("dxList",i.default);var a=i.default;t.default=a,e.exports=t.default,e.exports.default=t.default},2492:function(e,t,n){t.default=void 0;var i=n(58664),o=h(n(68374)),a=n(58201),r=n(60137),s=n(75811),l=n(13306),u=h(n(20530)),d=h(n(99393)),c=h(n(14390));function h(e){return e&&e.__esModule?e:{default:e}}var f=(0,a.getNavigator)(),p="dx-loadindicator-segment",g=c.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=(0,s.current)();return this.callBase().concat([{device:function(){return"android"===u.default.real().platform&&!/chrome/i.test(f.userAgent)},options:{viaImage:!0}},{device:function(){return(0,s.isMaterial)(e)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return(0,s.isGeneric)(e)},options:{_animatingSegmentCount:7}}])},_useTemplates:function(){return!1},_init:function(){this.callBase(),this.$element().addClass("dx-loadindicator")},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=(0,o.default)("<div>").addClass("dx-loadindicator-wrapper"),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=(0,o.default)("<div>").addClass("dx-loadindicator-content"),this._$wrapper.append(this._$content)},_renderMarkup:function(){!(0,r.animation)()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=(0,o.default)("<div>").addClass("dx-loadindicator-icon"),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=(0,o.default)("<div>").addClass(p).addClass(p+t);e&&n.append((0,o.default)("<div>").addClass("dx-loadindicator-segment-inner")),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass("dx-loadindicator-image"),e&&this._$wrapper.css("backgroundImage","url("+e+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var e=this.option("width"),t=this.option("height");if(e||t){e=(0,i.getWidth)(this.$element()),t=(0,i.getHeight)(this.$element());var n=Math.min(t,e);this._$wrapper.css({height:n,width:n,fontSize:n})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(e){switch(e.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(e)}}});(0,d.default)("dxLoadIndicator",g);var m=g;t.default=m,e.exports=t.default,e.exports.default=t.default},97218:function(e,t,n){t.default=void 0;var i=h(n(68374)),o=n(20576),a=h(n(28109)),r=h(n(99393)),s=n(13306),l=h(n(2492)),u=h(n(89799)),d=n(62754),c=n(75811);function h(e){return e&&e.__esModule?e:{default:e}}var f=u.default.inherit({_supportedKeys:function(){return(0,s.extend)(this.callBase(),{escape:o.noop})},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{message:a.default.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,templatesRenderAsynchronously:!1,hideTopOverlayHandler:null,resizeEnabled:!1,focusStateEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return(0,c.isMaterial)()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-loadpanel"),this.$wrapper().addClass("dx-loadpanel-wrapper")},_renderContentImpl:function(){this.callBase(),this.$content().addClass("dx-loadpanel-content"),this._$loadPanelContentWrapper=(0,i.default)("<div>").addClass("dx-loadpanel-content-wrapper"),this._$loadPanelContentWrapper.appendTo(this.$content()),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var t=new d.Deferred,n=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout((function(){n().done((function(){t.resolve()}))}),e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$loadPanelContentWrapper){var e=this.option("message");if(e){var t=(0,i.default)("<div>").addClass("dx-loadpanel-message").text(e);this._$loadPanelContentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$loadPanelContentWrapper&&this.option("showIndicator")&&(this._$indicator||(this._$indicator=(0,i.default)("<div>").addClass("dx-loadpanel-indicator").appendTo(this._$loadPanelContentWrapper)),this._createComponent(this._$indicator,l.default,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find(".dx-loadpanel-message").remove(),this.$content().find(".dx-loadpanel-indicator").remove(),delete this._$indicator},_togglePaneVisible:function(){this.$content().toggleClass("dx-loadpanel-pane-hidden",!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._renderLoadIndicator();break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});(0,r.default)("dxLoadPanel",f);var p=f;t.default=p,e.exports=t.default,e.exports.default=t.default},55935:function(e,t,n){t.default=void 0;var i=n(58664),o=D(n(68374)),a=D(n(55994)),r=n(58201),s=n(60137),l=n(20576),u=n(6415),d=n(95479),c=n(13306),h=n(45434),f=D(n(28109)),p=D(n(20530)),g=D(n(99393)),m=n(39611),_=D(n(92059)),v=n(75811),y=n(95429),x=D(n(22348)),b=D(n(29837)),w=n(91627),C=n(31648),S=n(35922),k=n(61902);function D(e){return e&&e.__esModule?e:{default:e}}var I=(0,r.getWindow)(),T=_.default.inherit({_supportedKeys:function(){return(0,c.extend)(this.callBase(),{space:function(e){e.preventDefault(),this._validatedOpening()},enter:function(){this._validatedOpening()}})},_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{placeholder:f.default.format("Select"),searchPlaceholder:f.default.format("Search"),searchEnabled:!0,cleanSearchOnOpening:!0,showCancelButton:!0,showClearButton:!1,clearButtonText:f.default.format("Clear"),applyButtonText:f.default.format("OK"),pullRefreshEnabled:!1,useNativeScrolling:!0,pullingDownText:f.default.format("dxList-pullingDownText"),pulledDownText:f.default.format("dxList-pulledDownText"),refreshingText:f.default.format("dxList-refreshingText"),pageLoadingText:f.default.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:f.default.format("dxList-nextButtonText"),grouped:!1,groupTemplate:"group",usePopover:!1,showDropDownButton:!1,focusStateEnabled:!1,dropDownOptions:{showTitle:!0,width:function(){return.8*(0,i.getWidth)(I)},height:function(){return.8*(0,i.getHeight)(I)},shading:!0,closeOnOutsideClick:!1,position:void 0,animation:{},title:"",titleTemplate:"title",onTitleRendered:null,fullScreen:!1},dropDownCentered:!1,_scrollToSelectedItemEnabled:!1,useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){var e=this,t=(0,v.current)();return this.callBase().concat([{device:function(){return!s.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!p.default.isSimulator()&&"desktop"===p.default.real().deviceType&&"generic"===e.platform},options:{usePopover:!0,dropDownOptions:{height:"auto"}}},{device:{platform:"ios",phone:!0},options:{dropDownOptions:{fullScreen:!0}}},{device:{platform:"ios",tablet:!0},options:{dropDownOptions:{width:function(){return.4*Math.min((0,i.getWidth)(I),(0,i.getHeight)(I))},height:"auto"},usePopover:!0}},{device:function(){return"desktop"===p.default.real().deviceType&&!p.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,v.isMaterial)(t)},options:{usePopover:!1,searchEnabled:!1,showCancelButton:!1,dropDownCentered:!0,_scrollToSelectedItemEnabled:!0,dropDownOptions:{closeOnOutsideClick:!0,_ignoreFunctionValueDeprecation:!0,width:function(){return(0,k.getElementWidth)(e.$element())},height:function(){return this._getPopupHeight()}.bind(this),showTitle:!1,shading:!1}}}])},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this.callBase(),this._initScrollAction(),this._initPageLoadingAction(),this._initPullRefreshAction()},_initPageLoadingAction:function(){this._pageLoadingAction=this._createActionByOption("onPageLoading")},_initPullRefreshAction:function(){this._pullRefreshAction=this._createActionByOption("onPullRefresh")},_initScrollAction:function(){this._scrollAction=this._createActionByOption("onScroll")},_scrollHandler:function(e){this._scrollAction(e)},_pullRefreshHandler:function(e){this._pullRefreshAction(e)},_pageLoadingHandler:function(e){this._pageLoadingAction(e)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({group:new w.ChildDefaultTemplate("group"),title:new w.ChildDefaultTemplate("title")})},_initMarkup:function(){this.$element().addClass("dx-lookup").toggleClass("dx-lookup-popover-mode",this.option("usePopover")),this.callBase()},_inputWrapper:function(){return this.$element().find(".dx-lookup-field-wrapper")},_dataSourceOptions:function(){return(0,c.extend)(this.callBase(),{paginate:!0})},_fireContentReadyAction:l.noop,_popupWrapperClass:function(){return""},_renderInput:function(){var e=this,t=this._createAction((function(){e._toggleOpenState()}));this._$field=(0,o.default)("<div>").addClass("dx-lookup-field"),a.default.on(this._$field,(0,m.addNamespace)(y.name,this.NAME),(function(e){t({event:e})}));var n=(0,o.default)("<div>").addClass("dx-lookup-arrow");this._$fieldWrapper=(0,o.default)("<div>").addClass("dx-lookup-field-wrapper").append(this._$field).append(n).appendTo(this.$element())},_getInputContainer:function(){return this._$fieldWrapper},_renderField:function(){var e=this._getTemplateByOption("fieldTemplate");if(e&&this.option("fieldTemplate"))this._renderFieldTemplate(e);else{var t=this.option("displayValue");this._updateField((0,S.isDefined)(t)&&String(t)||this.option("placeholder")),this.$element().toggleClass("dx-lookup-empty",!this.option("selectedItem"))}},_getLabelContainer:function(){return this._$field},_renderDisplayText:function(e){this._input().length?this.callBase(e):this._updateField(e)},_updateField:function(e){this._$field.text(e)},_renderFieldTemplate:function(e){this._$field.empty();var t=this._fieldRenderData();e.render({model:t,container:(0,u.getPublicElement)(this._$field)})},_fieldRenderData:function(){return this.option("selectedItem")},_popupShowingHandler:function(){this.callBase.apply(this,arguments),this.option("cleanSearchOnOpening")&&(this.option("searchEnabled")&&this._searchBox.option("value")&&(this._searchBox.option("value",""),this._searchCanceled()),this._list&&this._list.option("focusedElement",null)),this.option("dropDownOptions.fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&(this._popup.option("position").of=(0,o.default)(I))},_popupShownHandler:function(){var e=this.option("_scrollToSelectedItemEnabled");!this.option("dropDownOptions.fullScreen")&&e&&this._setPopupPosition(),this.callBase()},_scrollToSelectedItem:function(){var e=this._list.option("selectedIndex"),t=this._list.option("items"),n=t.length;0!==n&&(this._list.option("grouped")?this._list.scrollToItem({group:n-1,item:t[n-1].items.length-1}):this._list.scrollToItem(n-1),this._list.scrollToItem(e))},_getDifferenceOffsets:function(e){return e.offset().top-(0,o.default)(this.element()).offset().top},_isCenteringEnabled:function(e,t){return 1<e&&e<t-2},_getPopupOffset:function(){var e=this._listItemElements().length;if(0!==e){var t=(0,o.default)(this._list.element()).find(".dx-list-item-selected"),n=this._listItemElements().index(t),a=((0,i.getHeight)(t)-(0,i.getHeight)(this.element()))/2,r=(0,o.default)(this._list.element()).offset().top,s=this.option("dropDownOptions.height"),l="function"==typeof s?s():s,u=(0,i.getHeight)(I),d=0;if(-1!==n){if(this._isCenteringEnabled(n,e)){this._scrollToSelectedItem();var c=(l-(0,i.getHeight)(t))/2-this._getDifferenceOffsets(t);this._list.scrollTo(this._list.scrollTop()+4-c),r<(d=a+this._getDifferenceOffsets(t))&&n!==e-3&&(this._list.scrollTo(this._list.scrollTop()+this._getDifferenceOffsets(t)/2),d=a+this._getDifferenceOffsets(t))}else n<=1?(this._list.scrollTo(0),d=a+this._getDifferenceOffsets(t)):n>=e-2&&(this._scrollToSelectedItem(),d=a+this._getDifferenceOffsets(t));r<d&&(this._scrollToSelectedItem(),d=a+8)}var h=l-d-(0,i.getHeight)(this.element());return u-r<h&&(this._list.scrollTo(this._list.scrollTop()+a-h),d=l-(0,i.getHeight)(this.element())-8),d}},_setPopupPosition:function(){if(this.option("dropDownCentered")&&!this._popup.$wrapper().hasClass("dx-popover-flipped-vertical")){var e=(0,o.default)(this._popup.$content()).parent(),t=this._getPopupOffset(),n=(0,C.locate)(e);(0,C.move)(e,{top:n.top-t})}},_listItemGroupedElements:function(){var e=this._list._itemContainer().children(),t=[];return e.each((function(e,n){t.push((0,o.default)(n).find(".dx-list-group-header")[0]),(0,o.default)(n).find(".dx-list-item").each((function(e,n){t.push(n)}))})),(0,o.default)(t)},_calculateListHeight:function(e){var t=e?this._listItemGroupedElements():this._listItemElements(),n=(0,o.default)(".dx-list-item-selected"),a=t.index(n),r=0;return 0===t.length?r+=8:t.length<5?t.each((function(e,t){r+=(0,i.getOuterHeight)(t)})):(a<=1?t.slice(0,5):this._isCenteringEnabled(a,t.length)?t.slice(a-2,a+3):t.slice(t.length-5,t.length)).each((function(e,t){r+=(0,i.getOuterHeight)(t)})),r+(e?8:16)},_getPopupHeight:function(){return this._list&&this._list.itemElements()?this._calculateListHeight(this.option("grouped"))+(this._$searchWrapper?(0,i.getOuterHeight)(this._$searchWrapper):0)+(this._popup._$bottom?(0,i.getOuterHeight)(this._popup._$bottom):0)+(this._popup._$title?(0,i.getOuterHeight)(this._popup._$title):0):"auto"},_renderPopup:function(){this.option("usePopover")&&!this.option("dropDownOptions.fullScreen")?this.option("_scrollToSelectedItemEnabled")?this.callBase():this._renderPopover():this.callBase(),this._$popup.addClass("dx-lookup-popup"),this._popup.$wrapper().addClass("dx-lookup-popup-wrapper")},_renderPopover:function(){this._popup=this._createComponent(this._$popup,x.default,(0,c.extend)(this._popupConfig(),this._options.cache("dropDownOptions"),{showEvent:null,hideEvent:null,target:this.$element(),fullScreen:!1,shading:!1,hideOnParentScroll:!0,_fixWrapperPosition:!1,width:this._isInitialOptionValue("dropDownOptions.width")?function(){return(0,i.getOuterWidth)(this.$element())}.bind(this):this._popupConfig().width})),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this.option("_scrollToSelectedItemEnabled")&&this._popup._$arrow.remove(),this._setPopupContentId(this._popup.$content()),this._contentReadyHandler()},_popupHidingHandler:function(){this.callBase(),this.option("focusStateEnabled")&&this.focus()},_popupHiddenHandler:function(){this.callBase(),this.option("_scrollToSelectedItemEnabled")&&(0,C.resetPosition)((0,o.default)(this._popup.content()).parent())},_preventFocusOnPopup:l.noop,_popupConfig:function(){var e=this,t=(0,c.extend)(this.callBase(),{toolbarItems:this._getPopupToolbarItems(),hideOnParentScroll:!1,onPositioned:null,maxHeight:"100vh",showTitle:this.option("dropDownOptions.showTitle"),title:this.option("dropDownOptions.title"),titleTemplate:this._getTemplateByOption("dropDownOptions.titleTemplate"),onTitleRendered:this.option("dropDownOptions.onTitleRendered"),fullScreen:this.option("dropDownOptions.fullScreen"),shading:this.option("dropDownOptions.shading"),closeOnOutsideClick:this.option("dropDownOptions.closeOnOutsideClick")});return delete t.animation,delete t.position,this.option("_scrollToSelectedItemEnabled")&&(t.position=this.option("dropDownCentered")?{my:"left top",at:"left top",of:this.element()}:{my:"left top",at:"left bottom",of:this.element()},t.hideOnParentScroll=!0),(0,d.each)(["position","animation","width","height"],(function(n,i){var o=e.option("dropDownOptions.".concat(i));void 0!==o&&(t[i]=o)})),t},_getPopupToolbarItems:function(){var e="useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[],t=this._getCancelButtonConfig();t&&e.push(t);var n=this._getClearButtonConfig();return n&&e.push(n),this._applyButtonsLocation(e)},_popupToolbarItemsConfig:function(){return[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText")}}]},_getCancelButtonConfig:function(){var e=this;return this.option("showCancelButton")?{shortcut:"cancel",onClick:this._cancelButtonHandler.bind(this),options:{onInitialized:function(t){t.component.registerKeyHandler("escape",e.close.bind(e))},text:this.option("cancelButtonText")}}:null},_getClearButtonConfig:function(){return this.option("showClearButton")?{shortcut:"clear",onClick:this._resetValue.bind(this),options:{text:this.option("clearButtonText")}}:null},_applyButtonHandler:function(e){e&&this._saveValueChangeEvent(e.event),this.option("value",this._valueGetter(this._currentSelectedItem())),this.callBase()},_cancelButtonHandler:function(){this._refreshSelected(),this.callBase()},_refreshPopupVisibility:function(){this.option("opened")&&this._updatePopupDimensions()},_dimensionChanged:function(){this.option("usePopover")&&!this.option("dropDownOptions.width")&&this.option("dropDownOptions.width",(0,i.getWidth)(this.$element())),this._popup&&this._updatePopupDimensions()},_input:function(){return this._$searchBox||this.callBase()},_renderPopupContent:function(){this.callBase(),this._renderSearch()},_renderSearch:function(){var e=this,t=this.option("searchEnabled");if(this._toggleSearchClass(t),t){var n=this._$searchWrapper=(0,o.default)("<div>").addClass("dx-lookup-search-wrapper"),i=this._$searchBox=(0,o.default)("<div>").addClass("dx-lookup-search").appendTo(n),a=p.default.current(),r=a.android&&a.version[0]>=5?"text":"search",s=!1;this._searchBox=this._createComponent(i,b.default,{onDisposing:function(){return s=!1},onFocusIn:function(){return s=!0},onFocusOut:function(){return s=!1},onKeyboardHandled:function(t){return s&&e._list._keyboardHandler(t)},mode:r,showClearButton:!0,valueChangeEvent:this.option("valueChangeEvent"),onValueChanged:function(t){e._searchHandler(t)}}),this._registerSearchKeyHandlers(),n.insertBefore(this._$list),this._setSearchPlaceholder()}},_removeSearch:function(){this._$searchWrapper&&this._$searchWrapper.remove(),delete this._$searchWrapper,this._$searchBox&&this._$searchBox.remove(),delete this._$searchBox,delete this._searchBox},_selectListItemHandler:function(e){var t=(0,o.default)(this._list.option("focusedElement"));t.length&&(e.preventDefault(),e.target=t.get(0),this._saveValueChangeEvent(e),this._selectListItem(e.itemData,t))},_registerSearchKeyHandlers:function(){this._searchBox.registerKeyHandler("escape",this.close.bind(this)),this._searchBox.registerKeyHandler("enter",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("space",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("end",l.noop),this._searchBox.registerKeyHandler("home",l.noop)},_toggleSearchClass:function(e){this._popup&&this._popup.$wrapper().toggleClass("dx-lookup-popup-search",e)},_setSearchPlaceholder:function(){if(this._$searchBox){var e=this.option("minSearchLength"),t=this.option("searchPlaceholder");e&&t===f.default.format("Search")&&(t=f.default.getFormatter("dxLookup-searchPlaceholder")(e)),this._searchBox.option("placeholder",t)}},_setAriaTargetForList:l.noop,_renderList:function(){var e=this;this.callBase(),this._list.registerKeyHandler("escape",(function(){e.close()}))},_listConfig:function(){return(0,c.extend)(this.callBase(),{tabIndex:0,grouped:this.option("grouped"),groupTemplate:this._getTemplateByOption("groupTemplate"),pullRefreshEnabled:this.option("pullRefreshEnabled"),useNativeScrolling:this.option("useNativeScrolling"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),pageLoadingText:this.option("pageLoadingText"),onScroll:this._scrollHandler.bind(this),onPullRefresh:this._pullRefreshHandler.bind(this),onPageLoading:this._pageLoadingHandler.bind(this),pageLoadMode:this.option("pageLoadMode"),nextButtonText:this.option("nextButtonText"),indicateLoading:this.option("searchEnabled"),onSelectionChanged:this._getSelectionChangedHandler()})},_getSelectionChangedHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):l.noop},_listContentReadyHandler:function(){this.callBase.apply(this,arguments),this._refreshSelected()},_runWithoutCloseOnScroll:function(e){var t=this,n=this.option()._scrollToSelectedItemEnabled,i=this._popup.option("hideOnParentScroll");n?(this._popup.option("hideOnParentScroll",!1),e(),this._hideOnParentScrollTimer=setTimeout((function(){t._popup.option("hideOnParentScroll",i)}))):e()},_setFocusPolicy:function(){var e=this;this.option("focusStateEnabled")&&this._runWithoutCloseOnScroll((function(){e.option("searchEnabled")?e._searchBox.focus():a.default.trigger(e._$list,"focus")}))},_focusTarget:function(){return this._$field},_keyboardEventBindingTarget:function(){return this._$field},_listItemClickHandler:function(e){this._saveValueChangeEvent(e.event),this._selectListItem(e.itemData,e.event.currentTarget)},_selectListItem:function(e,t){this._list.selectItem(t),"instantly"===this.option("applyValueMode")&&this._applyButtonHandler()},_currentSelectedItem:function(){return this.option("grouped")?this._list.option("selectedItems[0]").items[0]:this._list.option("selectedItems[0]")},_resetValue:function(e){this._saveValueChangeEvent(e.event),this.option("value",null),this.option("opened",!1)},_searchValue:function(){return this.option("searchEnabled")&&this._searchBox?this._searchBox.option("value"):""},_renderInputValue:function(){var e=this;return this.callBase().always((function(){e._refreshSelected()}))},_renderPlaceholder:function(){0!==this.$element().find(".dx-texteditor-input").length&&this.callBase()},_clean:function(){this._$fieldWrapper.remove(),clearTimeout(this._hideOnParentScrollTimer),this._hideOnParentScrollTimer=null,this._$searchBox=null,this.callBase()},_optionChanged:function(e){var t=e.name,n=e.fullName,i=e.value;switch(t){case"dataSource":this.callBase.apply(this,arguments),this._renderField();break;case"searchEnabled":this._popup&&(this._removeSearch(),this._renderSearch());break;case"searchPlaceholder":this._setSearchPlaceholder();break;case"minSearchLength":this._setSearchPlaceholder(),this.callBase.apply(this,arguments);break;case"usePopover":case"placeholder":this._invalidate();break;case"clearButtonText":case"showClearButton":case"showCancelButton":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"applyValueMode":default:this.callBase.apply(this,arguments);break;case"onPageLoading":this._initPageLoadingAction();break;case"onPullRefresh":this._initPullRefreshAction();break;case"pullRefreshEnabled":case"useNativeScrolling":case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"nextButtonText":case"grouped":case"groupTemplate":this._setListOption(t);break;case"onScroll":this._initScrollAction();break;case"pageLoadMode":this._setListOption("pageLoadMode",this.option("pageLoadMode"));break;case"cleanSearchOnOpening":case"_scrollToSelectedItemEnabled":break;case"dropDownOptions":switch(n){case"dropDownOptions.width":case"dropDownOptions.height":this._popupOptionChanged({name:t,fullName:n,value:"auto"===i?this.initialOption("dropDownOptions")[(0,h.getFieldName)(n)]:i}),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;default:this.callBase.apply(this,arguments)}break;case"dropDownCentered":this.option("_scrollToSelectedItemEnabled")&&(this.option("dropDownOptions.position",void 0),this._renderPopup())}},focus:function(){this.option("opened")?this._setFocusPolicy():a.default.trigger(this._focusTarget(),"focus")},field:function(){return this._$field}});(0,g.default)("dxLookup",T);var E=T;t.default=E,e.exports=t.default,e.exports.default=t.default},64304:function(e,t,n){t.default=void 0;var i=b(n(68374)),o=b(n(55994)),a=b(n(48136)),r=n(62754),s=b(n(99393)),l=b(n(96688)),u=b(n(20530)),d=b(n(14390)),c=n(78008),h=n(95479),f=n(13306),p=n(89386),g=n(35922),m=n(39611),_=b(n(93786)),v=b(n(48112)),y=b(n(71430)),x=b(n(253));function b(e){return e&&e.__esModule?e:{default:e}}var w={googleStatic:v.default,google:y.default,bing:x.default},C=d.default.inherit({_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{bounds:{northEast:null,southWest:null},center:{lat:0,lng:0},zoom:1,width:300,height:300,type:"roadmap",provider:"google",autoAdjust:!0,markers:[],markerIconSrc:null,onMarkerAdded:null,onMarkerRemoved:null,routes:[],onRouteAdded:null,onRouteRemoved:null,apiKey:{bing:"",google:"",googleStatic:""},controls:!1,onReady:null,onUpdated:null,onClick:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.default.real().deviceType&&!u.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-map").addClass("dx-native-click"),this._lastAsyncAction=a.default.resolve(),this._checkOption("provider"),this._checkOption("markers"),this._checkOption("routes"),this._initContainer(),this._grabEvents(),this._rendered={}},_useTemplates:function(){return!1},_checkOption:function(e){var t=this.option(e);if("markers"===e&&!Array.isArray(t))throw l.default.Error("E1022");if("routes"===e&&!Array.isArray(t))throw l.default.Error("E1023")},_initContainer:function(){this._$container=(0,i.default)("<div>").addClass("dx-map-container"),this.$element().append(this._$container)},_grabEvents:function(){var e=(0,m.addNamespace)(_.default.down,this.NAME);o.default.on(this.$element(),e,this._cancelEvent.bind(this))},_cancelEvent:function(e){this._provider&&this._provider.isEventsCanceled(e)&&!this.option("disabled")&&e.stopPropagation()},_saveRendered:function(e){var t=this.option(e);this._rendered[e]=t.slice()},_render:function(){this.callBase(),this._renderShield(),this._saveRendered("markers"),this._saveRendered("routes"),this._provider=new(w[this.option("provider")])(this,this._$container),this._queueAsyncAction("render",this._rendered.markers,this._rendered.routes)},_renderShield:function(){var e;this.option("disabled")?(e=(0,i.default)("<div>").addClass("dx-map-shield"),this.$element().append(e)):(e=this.$element().find(".dx-map-shield")).remove()},_clean:function(){this._cleanFocusState(),this._provider&&this._provider.clean(),this._provider=null,this._lastAsyncAction=a.default.resolve(),this.setOptionSilent("bounds",{northEast:null,southWest:null}),delete this._suppressAsyncAction},_optionChanged:function(e){var t=e.name,n=this._optionChangeBag;switch(this._optionChangeBag=null,t){case"disabled":this._renderShield(),this.callBase(e);break;case"width":case"height":this.callBase(e),this._dimensionChanged();break;case"provider":this._suppressAsyncAction=!0,this._invalidate();break;case"apiKey":l.default.log("W1001");break;case"bounds":this._queueAsyncAction("updateBounds");break;case"center":this._queueAsyncAction("updateCenter");break;case"zoom":this._queueAsyncAction("updateZoom");break;case"type":this._queueAsyncAction("updateMapType");break;case"controls":this._queueAsyncAction("updateControls",this._rendered.markers,this._rendered.routes);break;case"autoAdjust":this._queueAsyncAction("adjustViewport");break;case"markers":case"routes":this._checkOption(t);var i=this._rendered[t];this._saveRendered(t),this._queueAsyncAction("update"+(0,c.titleize)(t),n?n.removed:i,n?n.added:this._rendered[t]).then((function(e){n&&n.resolve(e)}));break;case"markerIconSrc":this._queueAsyncAction("updateMarkers",this._rendered.markers,this._rendered.markers);break;case"onReady":case"onUpdated":case"onMarkerAdded":case"onMarkerRemoved":case"onRouteAdded":case"onRouteRemoved":case"onClick":break;default:this.callBase.apply(this,arguments)}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._queueAsyncAction("updateDimensions")},_queueAsyncAction:function(e){var t=[].slice.call(arguments).slice(1),n=this._suppressAsyncAction;return this._lastAsyncAction=this._lastAsyncAction.then(function(){return!this._provider||n?a.default.resolve():this._provider[e].apply(this._provider,t).then(function(e){return(e=(0,p.wrapToArray)(e))[0]&&!this._disposed&&this._triggerReadyAction(),e[1]}.bind(this))}.bind(this)),this._lastAsyncAction},_triggerReadyAction:function(){this._createActionByOption("onReady")({originalMap:this._provider.map()})},_triggerUpdateAction:function(){this._createActionByOption("onUpdated")()},setOptionSilent:function(e,t){this._setOptionWithoutOptionChange(e,t)},addMarker:function(e){return this._addFunction("markers",e)},removeMarker:function(e){return this._removeFunction("markers",e)},addRoute:function(e){return this._addFunction("routes",e)},removeRoute:function(e){return this._removeFunction("routes",e)},_addFunction:function(e,t){var n=this.option(e),i=(0,p.wrapToArray)(t);return n.push.apply(n,i),this._partialArrayOptionChange(e,n,i,[])},_removeFunction:function(e,t){var n=this.option(e),i=(0,p.wrapToArray)(t);return(0,h.each)(i,(function(t,o){var a=(0,g.isNumeric)(o)?o:(0,p.inArray)(o,n);if(-1===a)throw l.default.log("E1021",(0,c.titleize)(e.substring(0,e.length-1)),o);var r=n.splice(a,1)[0];i.splice(t,1,r)})),this._partialArrayOptionChange(e,n,[],i)},_partialArrayOptionChange:function(e,t,n,i){return(0,r.fromPromise)(new a.default(function(o){this._optionChangeBag={resolve:o,added:n,removed:i},this.option(e,t)}.bind(this)).then((function(e){return e&&1===e.length?e[0]:e})),this)}});(0,s.default)("dxMap",C);var S=C;t.default=S,e.exports=t.default,e.exports.default=t.default},253:function(e,t,n){t.default=void 0;var i=n(58664),o=n(20576),a=n(58201),r=p(n(48136)),s=n(13306),l=p(n(96688)),u=n(95479),d=p(n(67526)),c=p(n(52752)),h=p(n(37208)),f=n(35922);function p(e){return e&&e.__esModule?e:{default:e}}var g,m=(0,a.getWindow)(),_="_bingScriptReady",v=function(){return m.Microsoft&&m.Microsoft.Maps},y=d.default.inherit({_mapType:function(e){var t={roadmap:Microsoft.Maps.MapTypeId.road,hybrid:Microsoft.Maps.MapTypeId.aerial,satellite:Microsoft.Maps.MapTypeId.aerial};return t[e]||t.road},_movementMode:function(e){var t={driving:Microsoft.Maps.Directions.RouteMode.driving,walking:Microsoft.Maps.Directions.RouteMode.walking};return t[e]||t.driving},_resolveLocation:function(e){return new r.default(function(t){var n=this._getLatLng(e);n?t(new Microsoft.Maps.Location(n.lat,n.lng)):this._geocodeLocation(e).then((function(e){t(e)}))}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(e){return new r.default(function(t){if((0,f.isDefined)(e)){var n=new Microsoft.Maps.Search.SearchManager(this._map),i={where:e,count:1,callback:function(e){if(e.results[0]){var n=e.results[0].location;t(new Microsoft.Maps.Location(n.latitude,n.longitude))}else t(new Microsoft.Maps.Location(0,0))}};n.geocode(i)}else t(new Microsoft.Maps.Location(0,0))}.bind(this))},_normalizeLocation:function(e){return{lat:e.latitude,lng:e.longitude}},_normalizeLocationRect:function(e){var t=this._normalizeLocation(e.getNorthwest()),n=this._normalizeLocation(e.getSoutheast());return{northEast:{lat:t.lat,lng:n.lng},southWest:{lat:n.lat,lng:t.lng}}},_loadImpl:function(){return new r.default(function(e){v()?e():(g||(g=this._loadMapScript()),g.then(function(){v()?e():this._loadMapScript().then(e)}.bind(this)))}.bind(this)).then((function(){return r.default.all([new r.default((function(e){Microsoft.Maps.loadModule("Microsoft.Maps.Search",{callback:e})})),new r.default((function(e){Microsoft.Maps.loadModule("Microsoft.Maps.Directions",{callback:e})}))])}))},_loadMapScript:function(){return new r.default((function(e){m[_]=e,h.default.sendRequest({url:"https://www.bing.com/api/maps/mapcontrol?callback=_bingScriptReady",dataType:"script"})})).then((function(){try{delete m[_]}catch(e){m[_]=void 0}}))},_init:function(){return this._createMap(),r.default.resolve()},_createMap:function(){var e=this._option("controls");this._map=new Microsoft.Maps.Map(this._$container[0],{credentials:this._keyOption("bing")||"AhuxC0dQ1DBTNo8L-H9ToVMQStmizZzBJdraTSgCzDSWPsA1Qd8uIvFSflzxdaLH",zoom:this._option("zoom"),showDashboard:e,showMapTypeSelector:e,showScalebar:e})},_attachHandlers:function(){this._providerViewChangeHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",this._viewChangeHandler.bind(this)),this._providerClickHandler=Microsoft.Maps.Events.addHandler(this._map,"click",this._clickActionHandler.bind(this))},_viewChangeHandler:function(){var e=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(e));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(e){"map"===e.targetType&&this._fireClickAction({location:this._normalizeLocation(e.location)})},updateDimensions:function(){var e=this._$container;return this._map.setOptions({width:(0,i.getWidth)(e),height:(0,i.getHeight)(e)}),r.default.resolve()},updateMapType:function(){var e=this._option("type"),t=Microsoft.Maps.LabelOverlay;return this._map.setView({animate:!1,mapTypeId:this._mapType(e),labelOverlay:"satellite"===e?t.hidden:t.visible}),r.default.resolve()},updateBounds:function(){return r.default.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(e){var t=new Microsoft.Maps.LocationRect.fromLocations(e[0],e[1]);this._map.setView({animate:!1,bounds:t})}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(e){this._map.setView({animate:!1,center:e})}.bind(this))},updateZoom:function(){return this._map.setView({animate:!1,zoom:this._option("zoom")}),r.default.resolve()},updateControls:function(){return this.clean(),this.render.apply(this,arguments)},_renderMarker:function(e){return this._resolveLocation(e.location).then(function(t){var n={icon:e.iconSrc||this._option("markerIconSrc")};if(e.html){(0,s.extend)(n,{htmlContent:e.html,width:null,height:null});var i=e.htmlOffset;i&&(n.anchor=new Microsoft.Maps.Point(-i.left,-i.top))}var a=new Microsoft.Maps.Pushpin(t,n);this._map.entities.push(a);var r,l=this._renderTooltip(t,e.tooltip);if(e.onClick||e.tooltip){var u=this._mapWidget._createAction(e.onClick||o.noop),d=this._normalizeLocation(t);r=Microsoft.Maps.Events.addHandler(a,"click",(function(){u({location:d}),l&&l.setOptions({visible:!0})}))}return{location:t,marker:a,infobox:l,handler:r}}.bind(this))},_renderTooltip:function(e,t){if(t){t=this._parseTooltipOptions(t);var n=new Microsoft.Maps.Infobox(e,{description:t.text,offset:new Microsoft.Maps.Point(0,13),visible:t.visible});return n.setMap(this._map),n}},_destroyMarker:function(e){this._map.entities.remove(e.marker),e.infobox&&e.infobox.setMap(null),e.handler&&Microsoft.Maps.Events.removeHandler(e.handler)},_renderRoute:function(e){return r.default.all((0,u.map)(e.locations,function(e){return this._resolveLocation(e)}.bind(this))).then(function(t){return new r.default(function(n){var i=new Microsoft.Maps.Directions.DirectionsManager(this._map),o=new c.default(e.color||this._defaultRouteColor()).toHex(),a=new Microsoft.Maps.Color.fromHex(o);a.a=255*(e.opacity||this._defaultRouteOpacity()),i.setRenderOptions({autoUpdateMapView:!1,displayRouteSelector:!1,waypointPushpinOptions:{visible:!1},drivingPolylineOptions:{strokeColor:a,strokeThickness:e.weight||this._defaultRouteWeight()},walkingPolylineOptions:{strokeColor:a,strokeThickness:e.weight||this._defaultRouteWeight()}}),i.setRequestOptions({routeMode:this._movementMode(e.mode),routeDraggable:!1}),(0,u.each)(t,(function(e,t){var n=new Microsoft.Maps.Directions.Waypoint({location:t});i.addWaypoint(n)}));var r=[];r.push(Microsoft.Maps.Events.addHandler(i,"directionsUpdated",(function(e){for(;r.length;)Microsoft.Maps.Events.removeHandler(r.pop());var t=e.routeSummary[0];n({instance:i,northEast:t.northEast,southWest:t.southWest})}))),r.push(Microsoft.Maps.Events.addHandler(i,"directionsError",(function(e){for(;r.length;)Microsoft.Maps.Events.removeHandler(r.pop());var t="RouteResponseCode: "+e.responseCode+" - "+e.message;l.default.log("W1006",t),n({instance:i})}))),i.calculateDirections()}.bind(this))}.bind(this))},_destroyRoute:function(e){e.instance.dispose()},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var e=this._map.getZoom();this._preventZoomChangeEvent=!0;var t=this._bounds.clone();t.height=1.1*t.height,t.width=1.1*t.width,this._map.setView({animate:!1,bounds:t,zoom:e});var n=this._map.getZoom();e<n?this._map.setView({animate:!1,zoom:e}):this._option("zoom",n),delete this._preventZoomChangeEvent}return r.default.resolve()},_extendBounds:function(e){this._bounds?this._bounds=new Microsoft.Maps.LocationRect.fromLocations(this._bounds.getNorthwest(),this._bounds.getSoutheast(),e):this._bounds=new Microsoft.Maps.LocationRect(e,1e-16,1e-16)},clean:function(){return this._map&&(Microsoft.Maps.Events.removeHandler(this._providerViewChangeHandler),Microsoft.Maps.Events.removeHandler(this._providerClickHandler),this._clearMarkers(),this._clearRoutes(),this._map.dispose()),r.default.resolve()}});t.default=y,e.exports=t.default,e.exports.default=t.default},71430:function(e,t,n){t.default=void 0;var i=g(n(68374)),o=n(58201),a=n(20576),r=g(n(20530)),s=g(n(48136)),l=n(13306),u=n(95479),d=g(n(67526)),c=g(n(96688)),h=g(n(52752)),f=g(n(37208)),p=n(35922);function g(e){return e&&e.__esModule?e:{default:e}}var m,_,v=(0,o.getWindow)(),y="_googleScriptReady",x=function(){return v.google&&v.google.maps},b=d.default.inherit({_mapType:function(e){var t={hybrid:google.maps.MapTypeId.HYBRID,roadmap:google.maps.MapTypeId.ROADMAP,satellite:google.maps.MapTypeId.SATELLITE};return t[e]||t.hybrid},_movementMode:function(e){var t={driving:google.maps.TravelMode.DRIVING,walking:google.maps.TravelMode.WALKING};return t[e]||t.driving},_resolveLocation:function(e){return new s.default(function(t){var n=this._getLatLng(e);n?t(new google.maps.LatLng(n.lat,n.lng)):this._geocodeLocation(e).then((function(e){t(e)}))}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(e){return new s.default((function(t){(0,p.isDefined)(e)?(new google.maps.Geocoder).geocode({address:e},(function(e,n){n===google.maps.GeocoderStatus.OK?t(e[0].geometry.location):(c.default.log("W1006",n),t(new google.maps.LatLng(0,0)))})):t(new google.maps.LatLng(0,0))}))},_normalizeLocation:function(e){return{lat:e.lat(),lng:e.lng()}},_normalizeLocationRect:function(e){return{northEast:this._normalizeLocation(e.getNorthEast()),southWest:this._normalizeLocation(e.getSouthWest())}},_loadImpl:function(){return new s.default(function(e){x()?e():(_||(_=this._loadMapScript()),_.then(function(){x()?e():this._loadMapScript().then(e)}.bind(this)))}.bind(this)).then((function(){(m=function(e){this._position=e.position,this._offset=e.offset,this._$overlayContainer=(0,i.default)("<div>").css({position:"absolute",display:"none",cursor:"pointer"}).append(e.html),this.setMap(e.map)}).prototype=new google.maps.OverlayView,m.prototype.onAdd=function(){(0,i.default)(this.getPanes().overlayMouseTarget).append(this._$overlayContainer),this._clickListener=google.maps.event.addDomListener(this._$overlayContainer.get(0),"click",function(e){google.maps.event.trigger(this,"click"),e.preventDefault()}.bind(this)),this.draw()},m.prototype.onRemove=function(){google.maps.event.removeListener(this._clickListener),this._$overlayContainer.remove()},m.prototype.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(this._position);this._$overlayContainer.css({left:e.x+this._offset.left,top:e.y+this._offset.top,display:"block"})}}))},_loadMapScript:function(){return new s.default(function(e){var t=this._keyOption("google");v[y]=e,f.default.sendRequest({url:"https://maps.googleapis.com/maps/api/js?callback=_googleScriptReady"+(t?"&key="+t:""),dataType:"script"})}.bind(this)).then((function(){try{delete v[y]}catch(e){v[y]=void 0}}))},_init:function(){return new s.default(function(e){this._resolveLocation(this._option("center")).then(function(t){var n=this._option("controls");this._map=new google.maps.Map(this._$container[0],{zoom:this._option("zoom"),center:t,disableDefaultUI:!n});var i=google.maps.event.addListener(this._map,"idle",(function(){e(i)}))}.bind(this))}.bind(this)).then((function(e){google.maps.event.removeListener(e)}))},_attachHandlers:function(){this._boundsChangeListener=google.maps.event.addListener(this._map,"bounds_changed",this._boundsChangeHandler.bind(this)),this._clickListener=google.maps.event.addListener(this._map,"click",this._clickActionHandler.bind(this))},_boundsChangeHandler:function(){var e=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(e));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(e){this._fireClickAction({location:this._normalizeLocation(e.latLng)})},updateDimensions:function(){var e=this._option("center");return google.maps.event.trigger(this._map,"resize"),this._option("center",e),this.updateCenter()},updateMapType:function(){return this._map.setMapTypeId(this._mapType(this._option("type"))),s.default.resolve()},updateBounds:function(){return s.default.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(e){var t=new google.maps.LatLngBounds;t.extend(e[0]),t.extend(e[1]),this._map.fitBounds(t)}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(e){this._map.setCenter(e),this._option("center",this._normalizeLocation(e))}.bind(this))},updateZoom:function(){return this._map.setZoom(this._option("zoom")),s.default.resolve()},updateControls:function(){var e=this._option("controls");return this._map.setOptions({disableDefaultUI:!e}),s.default.resolve()},isEventsCanceled:function(e){var t=this._map&&this._map.get("gestureHandling");return!((0,i.default)(e.target).closest(".".concat("gm-style-iw")).length>0||"desktop"!==r.default.real().deviceType&&"cooperative"===t)&&this.callBase()},_renderMarker:function(e){return this._resolveLocation(e.location).then(function(t){var n;n=e.html?new m({map:this._map,position:t,html:e.html,offset:(0,l.extend)({top:0,left:0},e.htmlOffset)}):new google.maps.Marker({position:t,map:this._map,icon:e.iconSrc||this._option("markerIconSrc")});var i,o=this._renderTooltip(n,e.tooltip);if(e.onClick||e.tooltip){var r=this._mapWidget._createAction(e.onClick||a.noop),s=this._normalizeLocation(t);i=google.maps.event.addListener(n,"click",function(){r({location:s}),o&&o.open(this._map,n)}.bind(this))}return{location:t,marker:n,listener:i}}.bind(this))},_renderTooltip:function(e,t){if(t){t=this._parseTooltipOptions(t);var n=new google.maps.InfoWindow({content:t.text});return t.visible&&n.open(this._map,e),n}},_destroyMarker:function(e){e.marker.setMap(null),e.listener&&google.maps.event.removeListener(e.listener)},_renderRoute:function(e){return s.default.all((0,u.map)(e.locations,function(e){return this._resolveLocation(e)}.bind(this))).then(function(t){return new s.default(function(n){var i={origin:t.shift(),destination:t.pop(),waypoints:(0,u.map)(t,(function(e){return{location:e,stopover:!0}})),optimizeWaypoints:!0,travelMode:this._movementMode(e.mode)};(new google.maps.DirectionsService).route(i,function(t,i){if(i===google.maps.DirectionsStatus.OK){var o=new h.default(e.color||this._defaultRouteColor()).toHex(),a={directions:t,map:this._map,suppressMarkers:!0,preserveViewport:!0,polylineOptions:{strokeWeight:e.weight||this._defaultRouteWeight(),strokeOpacity:e.opacity||this._defaultRouteOpacity(),strokeColor:o}},r=new google.maps.DirectionsRenderer(a),s=t.routes[0].bounds;n({instance:r,northEast:s.getNorthEast(),southWest:s.getSouthWest()})}else c.default.log("W1006",i),n({instance:new google.maps.DirectionsRenderer({})})}.bind(this))}.bind(this))}.bind(this))},_destroyRoute:function(e){e.instance.setMap(null)},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var e=this._map.getZoom();this._preventZoomChangeEvent=!0,this._map.fitBounds(this._bounds),this._boundsChangeHandler();var t=this._map.getZoom();e<t?this._map.setZoom(e):this._option("zoom",t),delete this._preventZoomChangeEvent}return s.default.resolve()},_extendBounds:function(e){this._bounds||(this._bounds=new google.maps.LatLngBounds),this._bounds.extend(e)},clean:function(){return this._map&&(google.maps.event.removeListener(this._boundsChangeListener),google.maps.event.removeListener(this._clickListener),this._clearMarkers(),this._clearRoutes(),delete this._map,this._$container.empty()),s.default.resolve()}});t.default=b,e.exports=t.default,e.exports.default=t.default},67526:function(e,t,n){t.default=void 0;var i=s(n(48136)),o=n(13306),a=n(95479),r=s(n(90169));function s(e){return e&&e.__esModule?e:{default:e}}var l=r.default.abstract,u=r.default.inherit({_geocodeLocation:function(e){return new i.default(function(t){var n=this._geocodedLocations,i=n[e];i?t(i):this._geocodeLocationImpl(e).then((function(i){n[e]=i,t(i)}))}.bind(this))},_renderImpl:function(){return this._load().then(function(){return this._init()}.bind(this)).then(function(){return i.default.all([this.updateMapType(),this._areBoundsSet()?this.updateBounds():this.updateCenter()])}.bind(this)).then(function(){return this._attachHandlers(),new i.default((function(e){var t=setTimeout((function(){clearTimeout(t),e()}))}))}.bind(this))},_load:function(){return this._mapsLoader||(this._mapsLoader=this._loadImpl()),this._markers=[],this._routes=[],this._mapsLoader},_loadImpl:l,_init:l,_attachHandlers:l,addMarkers:function(e){return i.default.all((0,a.map)(e,function(e){return this._addMarker(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,(0,a.map)(e,(function(e){return e.marker}))]}.bind(this))},_addMarker:function(e){return this._renderMarker(e).then(function(t){return this._markers.push((0,o.extend)({options:e},t)),this._fireMarkerAddedAction({options:e,originalMarker:t.marker}),t}.bind(this))},_renderMarker:l,removeMarkers:function(e){var t=this;return(0,a.each)(e,(function(e,n){t._removeMarker(n)})),i.default.resolve()},_removeMarker:function(e){var t=this;(0,a.each)(this._markers,(function(n,i){return i.options!==e||(t._destroyMarker(i),t._markers.splice(n,1),t._fireMarkerRemovedAction({options:i.options}),!1)}))},_destroyMarker:l,_clearMarkers:function(){for(;this._markers.length>0;)this._removeMarker(this._markers[0].options)},addRoutes:function(e){return i.default.all((0,a.map)(e,function(e){return this._addRoute(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,(0,a.map)(e,(function(e){return e.instance}))]}.bind(this))},_addRoute:function(e){return this._renderRoute(e).then(function(t){return this._routes.push((0,o.extend)({options:e},t)),this._fireRouteAddedAction({options:e,originalRoute:t.instance}),t}.bind(this))},_renderRoute:l,removeRoutes:function(e){var t=this;return(0,a.each)(e,(function(e,n){t._removeRoute(n)})),i.default.resolve()},_removeRoute:function(e){var t=this;(0,a.each)(this._routes,(function(n,i){return i.options!==e||(t._destroyRoute(i),t._routes.splice(n,1),t._fireRouteRemovedAction({options:e}),!1)}))},_destroyRoute:l,_clearRoutes:function(){for(;this._routes.length>0;)this._removeRoute(this._routes[0].options)},adjustViewport:function(){return this._fitBounds()},isEventsCanceled:function(){return!0},_fitBounds:l,_updateBounds:function(){var e=this;this._clearBounds(),this._option("autoAdjust")&&((0,a.each)(this._markers,(function(t,n){e._extendBounds(n.location)})),(0,a.each)(this._routes,(function(t,n){n.northEast&&e._extendBounds(n.northEast),n.southWest&&e._extendBounds(n.southWest)})))},_clearBounds:function(){this._bounds=null},_extendBounds:l});t.default=u,e.exports=t.default,e.exports.default=t.default},48112:function(e,t,n){t.default=void 0;var i=n(58664),o=n(95479),a=d(n(55994)),r=d(n(48136)),s=d(n(90169)),l=d(n(52752)),u=n(95429);function d(e){return e&&e.__esModule?e:{default:e}}var c=s.default.inherit({_locationToString:function(e){var t=this._getLatLng(e);return t?t.lat+","+t.lng:e.toString().replace(/ /g,"+")},_renderImpl:function(){return this._updateMap()},updateDimensions:function(){return this._updateMap()},updateMapType:function(){return this._updateMap()},updateBounds:function(){return r.default.resolve()},updateCenter:function(){return this._updateMap()},updateZoom:function(){return this._updateMap()},updateControls:function(){return r.default.resolve()},addMarkers:function(e){var t=this;return this._updateMap().then((function(n){return(0,o.each)(e,(function(e,n){t._fireMarkerAddedAction({options:n})})),n}))},removeMarkers:function(e){var t=this;return this._updateMap().then((function(n){return(0,o.each)(e,(function(e,n){t._fireMarkerRemovedAction({options:n})})),n}))},adjustViewport:function(){return r.default.resolve()},addRoutes:function(e){var t=this;return this._updateMap().then((function(n){return(0,o.each)(e,(function(e,n){t._fireRouteAddedAction({options:n})})),n}))},removeRoutes:function(e){var t=this;return this._updateMap().then((function(n){return(0,o.each)(e,(function(e,n){t._fireRouteRemovedAction({options:n})})),n}))},clean:function(){return this._$container.css("backgroundImage","none"),a.default.off(this._$container,this._addEventNamespace(u.name)),r.default.resolve()},mapRendered:function(){return!0},_updateMap:function(){var e=this._keyOption("googleStatic"),t=this._$container,n=["sensor=false","size="+Math.round((0,i.getWidth)(t))+"x"+Math.round((0,i.getHeight)(t)),"maptype="+this._option("type"),"center="+this._locationToString(this._option("center")),"zoom="+this._option("zoom"),this._markersSubstring()];n.push.apply(n,this._routeSubstrings()),e&&n.push("key="+e);var o="https://maps.google.com/maps/api/staticmap?"+n.join("&");return this._$container.css("background",'url("'+o+'") no-repeat 0 0'),this._attachClickEvent(),r.default.resolve(!0)},_markersSubstring:function(){var e=this,t=[],n=this._option("markerIconSrc");return n&&t.push("icon:"+n),(0,o.each)(this._option("markers"),(function(n,i){t.push(e._locationToString(i.location))})),"markers="+t.join("|")},_routeSubstrings:function(){var e=this,t=[];return(0,o.each)(this._option("routes"),(function(n,i){var a=new l.default(i.color||e._defaultRouteColor()).toHex().replace("#","0x"),r=Math.round(255*(i.opacity||e._defaultRouteOpacity())).toString(16),s=i.weight||e._defaultRouteWeight(),u=[];(0,o.each)(i.locations,(function(t,n){u.push(e._locationToString(n))})),t.push("path=color:"+a+r+"|weight:"+s+"|"+u.join("|"))})),t},_attachClickEvent:function(){var e=this,t=this._addEventNamespace(u.name);a.default.off(this._$container,t),a.default.on(this._$container,t,(function(t){e._fireClickAction({event:t})}))}});t.default=c,e.exports=t.default,e.exports.default=t.default},90169:function(e,t,n){t.default=void 0;var i=l(n(48136)),o=l(n(38377)),a=n(95479),r=n(35922),s=n(39611);function l(e){return e&&e.__esModule?e:{default:e}}var u=o.default.abstract,d=o.default.inherit({_defaultRouteWeight:function(){return 5},_defaultRouteOpacity:function(){return.5},_defaultRouteColor:function(){return"#0000FF"},ctor:function(e,t){this._mapWidget=e,this._$container=t},render:function(e,t){return this._renderImpl().then(function(){return i.default.all([this._applyFunctionIfNeeded("addMarkers",e),this._applyFunctionIfNeeded("addRoutes",t)]).then((function(){return!0}))}.bind(this))},_renderImpl:u,updateDimensions:u,updateMapType:u,updateBounds:u,updateCenter:u,updateZoom:u,updateControls:u,updateMarkers:function(e,t){return new i.default(function(n){return this._applyFunctionIfNeeded("removeMarkers",e).then(function(e){this._applyFunctionIfNeeded("addMarkers",t).then((function(t){n(t||e)}))}.bind(this))}.bind(this))},addMarkers:u,removeMarkers:u,adjustViewport:u,updateRoutes:function(e,t){return new i.default(function(n){return this._applyFunctionIfNeeded("removeRoutes",e).then(function(e){this._applyFunctionIfNeeded("addRoutes",t).then((function(t){n(t||e)}))}.bind(this))}.bind(this))},addRoutes:u,removeRoutes:u,clean:u,map:function(){return this._map},isEventsCanceled:function(){return!1},_option:function(e,t){if(void 0===t)return this._mapWidget.option(e);this._mapWidget.setOptionSilent(e,t)},_keyOption:function(e){var t=this._option("apiKey");return void 0===t[e]?t:t[e]},_parseTooltipOptions:function(e){return{text:e.text||e,visible:e.isShown||!1}},_getLatLng:function(e){if("string"==typeof e){var t=(0,a.map)(e.split(","),(function(e){return e.trim()})),n=/^[-+]?[0-9]*\.?[0-9]*$/;if(2===t.length&&t[0].match(n)&&t[1].match(n))return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}else{if(Array.isArray(e)&&2===e.length)return{lat:e[0],lng:e[1]};if((0,r.isPlainObject)(e)&&(0,r.isNumeric)(e.lat)&&(0,r.isNumeric)(e.lng))return e}return null},_areBoundsSet:function(){return this._option("bounds.northEast")&&this._option("bounds.southWest")},_addEventNamespace:function(e){return(0,s.addNamespace)(e,this._mapWidget.NAME)},_applyFunctionIfNeeded:function(e,t){return t.length?this[e](t):i.default.resolve()},_fireAction:function(e,t){this._mapWidget._createActionByOption(e)(t)},_fireClickAction:function(e){this._fireAction("onClick",e)},_fireMarkerAddedAction:function(e){this._fireAction("onMarkerAdded",e)},_fireMarkerRemovedAction:function(e){this._fireAction("onMarkerRemoved",e)},_fireRouteAddedAction:function(e){this._fireAction("onRouteAdded",e)},_fireRouteRemovedAction:function(e){this._fireAction("onRouteRemoved",e)}});t.default=d,e.exports=t.default,e.exports.default=t.default},76995:function(e,t,n){var i;t.default=void 0;var o=((i=n(2616))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},2616:function(e,t,n){t.default=void 0;var i=n(58664),o=b(n(68374)),a=b(n(55994)),r=b(n(99393)),s=n(20576),l=n(6415),u=n(95479),d=n(35922),c=n(13306),h=n(13660),f=n(39611),p=b(n(93786)),g=n(24028),m=b(n(46377)),_=b(n(89799)),v=b(n(59987)),y=b(n(63008)),x=b(n(30254));function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var C="dx-menu-horizontal",S="dx-menu-item",k="dx-menu-items-container",D="dx-menu-item-expanded",I="dx-context-menu",T="dx-context-menu-container-border",E="dx-state-hover",A="dx-menu-adaptive-mode",O="dx-menu-hamburger-button",P="showSubmenu",M="nextItem",R="prevItem",B={show:50,hide:300},V=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged","onItemRendered"],F=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,w(t,n);var m=r.prototype;return m._getDefaultOptions=function(){return(0,c.extend)(e.prototype._getDefaultOptions.call(this),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})},m._setOptionsByReference=function(){e.prototype._setOptionsByReference.call(this),(0,c.extend)(this._optionsByReference,{animation:!0,selectedItem:!0})},m._itemElements=function(){var t=e.prototype._itemElements.call(this),n=this._submenuItemElements();return t.add(n)},m._submenuItemElements=function(){var e=[],t=".".concat(S),n=this._submenus.length&&this._submenus[0];return n&&n.itemsContainer()&&(e=n.itemsContainer().find(t)),e},m._focusTarget=function(){return this.$element()},m._isMenuHorizontal=function(){return"horizontal"===this.option("orientation")},m._moveFocus=function(t){var n,i,o,a=this._getAvailableItems(),r=this._isMenuHorizontal(),s=this._getActiveItem(!0);switch(t){case"up":i=r?P:this._getItemsNavigationOperation(R),n=r?s:a,o=this._getKeyboardNavigationAction(i,n)();break;case"down":i=r?P:this._getItemsNavigationOperation(M),n=r?s:a,o=this._getKeyboardNavigationAction(i,n)();break;case"right":i=r?this._getItemsNavigationOperation(M):P,n=r?a:s,o=this._getKeyboardNavigationAction(i,n)();break;case"left":i=r?this._getItemsNavigationOperation(R):P,n=r?a:s,o=this._getKeyboardNavigationAction(i,n)();break;default:return e.prototype._moveFocus.call(this,t)}o&&0!==o.length&&this.option("focusedElement",(0,l.getPublicElement)(o))},m._getItemsNavigationOperation=function(e){var t=e;return this.option("rtlEnabled")&&(t=e===R?M:R),t},m._getKeyboardNavigationAction=function(e,t){var n=s.noop;switch(e){case P:t.hasClass("dx-state-disabled")||(n=this._showSubmenu.bind(this,t));break;case M:n=this._nextItem.bind(this,t);break;case R:n=this._prevItem.bind(this,t)}return n},m._clean=function(){e.prototype._clean.call(this),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)},m._visibilityChanged=function(e){e&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())},m._isAdaptivityEnabled=function(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")},m._updateItemsWidthCache=function(){var e=this.$element().find("ul").first().children("li").children(".".concat(S));this._menuItemsWidth=this._getSummaryItemsWidth(e,!0)},m._dimensionChanged=function(){if(this._isAdaptivityEnabled()){var e=(0,i.getOuterWidth)(this.$element());this._toggleAdaptiveMode(this._menuItemsWidth>e)}},m._init=function(){e.prototype._init.call(this),this._submenus=[]},m._initActions=function(){var e=this;this._actions={},(0,u.each)(V,(function(t,n){e._actions[n]=e._createActionByOption(n)}))},m._initMarkup=function(){this._visibleSubmenu=null,this.$element().addClass("dx-menu"),e.prototype._initMarkup.call(this),this.setAria("role","menubar")},m._render=function(){e.prototype._render.call(this),this._initAdaptivity()},m._renderHamburgerButton=function(){return this._hamburger=new y.default((0,o.default)("<div>").addClass(O),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()},m._toggleTreeView=function(e){(0,d.isPlainObject)(e)&&(e=!this._overlay.option("visible")),this._overlay.option("visible",e),this._toggleHamburgerActiveState(e)},m._toggleHamburgerActiveState=function(e){this._hamburger&&this._hamburger.$element().toggleClass("dx-state-active",e)},m._toggleAdaptiveMode=function(e){var t=this.$element().find(".".concat(C)),n=this.$element().find(".".concat(A));e?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(e)),t.toggle(!e),n.toggle(e)},m._removeAdaptivity=function(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)},m._treeviewItemClickHandler=function(e){this._actions.onItemClick(e),e.node.children.length||this._toggleTreeView(!1)},m._getAdaptiveOverlayOptions=function(){var e=this,t=this.option("rtlEnabled")?"right":"left";return{_ignoreFunctionValueDeprecation:!0,maxHeight:function(){return(0,h.getElementMaxHeightByWindow)(e.$element())},deferRendering:!1,shading:!1,animation:!1,hideOnParentScroll:!0,onHidden:function(){e._toggleHamburgerActiveState(!1)},height:"auto",closeOnOutsideClick:function(e){return!(0,o.default)(e.target).closest(".".concat(O)).length},position:{collision:"flipfit",at:"bottom "+t,my:"top "+t,of:this._hamburger.$element()}}},m._getTreeViewOptions=function(){var e=this,t={};return(0,u.each)(["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],(function(n,i){t[i]=e.option(i)})),(0,u.each)(["onItemContextMenu","onSelectionChanged"],(function(n,i){t[i]=function(t){e._actions[i](t)}})),(0,c.extend)(t,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:function(t){e._overlay.repaint(),e._actions.onSubmenuShown(t)},onItemCollapsed:function(t){e._overlay.repaint(),e._actions.onSubmenuHidden(t)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})},m._initAdaptivity=function(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=(0,o.default)("<div>").addClass(A);var e=this._renderHamburgerButton();this._treeView=this._createComponent((0,o.default)("<div>"),x.default,this._getTreeViewOptions()),this._overlay=this._createComponent((0,o.default)("<div>"),_.default,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(A).addClass(this.option("cssClass")),this._overlay.$wrapper().addClass("dx-menu-adaptive-mode-overlay-wrapper"),this._$adaptiveContainer.append(e),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}},m._getDelay=function(e){var t=this.option("showFirstSubmenuMode").delay;return(0,d.isDefined)(t)?(0,d.isObject)(t)?t[e]:t:B[e]},m._keyboardHandler=function(t){return e.prototype._keyboardHandler.call(this,t,!!this._visibleSubmenu)},m._renderContainer=function(){var t=(0,o.default)("<div>");return t.appendTo(this.$element()).addClass(this._isMenuHorizontal()?C:"dx-menu-vertical"),e.prototype._renderContainer.call(this,t)},m._renderSubmenuItems=function(e,t){var n=this._createSubmenu(e,t);return this._submenus.push(n),this._renderBorderElement(t),n},m._getKeyboardListeners=function(){return e.prototype._getKeyboardListeners.call(this).concat(this._visibleSubmenu)},m._createSubmenu=function(e,t){var n=(0,o.default)("<div>").addClass(I).appendTo(t),i=this._getChildNodes(e),a=this._createComponent(n,v.default,(0,c.extend)(this._getSubmenuOptions(),{_dataAdapter:this._dataAdapter,_parentKey:e.internalFields.key,items:i,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(t)}));return this._attachSubmenuHandlers(t,a),a},m._getSubmenuOptions=function(){var e=this,t=(0,o.default)("<div>"),n=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:t,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:function(t){t.component.option("visible")&&e.option("focusedElement",t.component.option("focusedElement"))},onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this._nestedItemOnItemRenderedHandler.bind(this),onLeftFirstItem:n?null:this._moveMainMenuFocus.bind(this,R),onLeftLastItem:n?null:this._moveMainMenuFocus.bind(this,M),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,n?R:null),onExpandLastSubmenu:n?this._moveMainMenuFocus.bind(this,M):null}},m._getShowFirstSubmenuMode=function(){if(!this._isDesktopDevice())return"onClick";var e=this.option("showFirstSubmenuMode");return(0,d.isObject)(e)?e.name:e},m._moveMainMenuFocus=function(e){var t=this._getAvailableItems(),n=t.length,i=t.filter(".".concat(D)).eq(0),o=t.index(i);this._hideSubmenu(this._visibleSubmenu),(o+=e===R?-1:1)>=n?o=0:o<0&&(o=n-1);var a=t.eq(o);this.option("focusedElement",(0,l.getPublicElement)(a))},m._nestedItemOnSelectionChangedHandler=function(e){var t=e.addedItems.length&&e.addedItems[0],n=v.default.getInstance(e.element);(0,this._actions.onSelectionChanged)(e),t&&this._clearSelectionInSubmenus(t[0],n),this._clearRootSelection(),this._setOptionWithoutOptionChange("selectedItem",t)},m._clearSelectionInSubmenus=function(e,t){var n=this,i=!arguments.length;(0,u.each)(this._submenus,(function(e,o){var a=o._itemContainer(),r=!a.is(t&&t._itemContainer()),s=a.find(".".concat(n._selectedItemClass()));if(r&&s.length||i){s.removeClass(n._selectedItemClass());var l=n._getItemData(s);l&&(l.selected=!1),o._clearSelectedItems()}}))},m._clearRootSelection=function(){var e=this.$element().find(".".concat(k)).first().children().children().filter(".".concat(this._selectedItemClass()));e.length&&(this._getItemData(e).selected=!1,e.removeClass(this._selectedItemClass()))},m._nestedItemOnItemClickHandler=function(e){this._actions.onItemClick(e)},m._nestedItemOnItemRenderedHandler=function(e){this._actions.onItemRendered(e)},m._attachSubmenuHandlers=function(e,t){var n=this,i=t.getOverlayContent().find(".".concat("dx-submenu")),o=(0,f.addNamespace)(g.end,this.NAME+"_submenu");t.option({onShowing:this._submenuOnShowingHandler.bind(this,e,t),onShown:this._submenuOnShownHandler.bind(this,e,t),onHiding:this._submenuOnHidingHandler.bind(this,e,t),onHidden:this._submenuOnHiddenHandler.bind(this,e,t)}),(0,u.each)(i,(function(t,i){a.default.off(i,o),a.default.on(i,o,null,n._submenuMouseLeaveHandler.bind(n,e))}))},m._submenuOnShowingHandler=function(e,t){var n=e.children(".".concat(T));this._actions.onSubmenuShowing({rootItem:(0,l.getPublicElement)(e),submenu:t}),n.show(),e.addClass(D)},m._submenuOnShownHandler=function(e,t){this._actions.onSubmenuShown({rootItem:(0,l.getPublicElement)(e),submenu:t})},m._submenuOnHidingHandler=function(e,t,n){var i=e.children(".".concat(T)),o=n;o.rootItem=(0,l.getPublicElement)(e),o.submenu=t,this._actions.onSubmenuHiding(o),(n=o).cancel||(this._visibleSubmenu===t&&(this._visibleSubmenu=null),i.hide(),e.removeClass(D))},m._submenuOnHiddenHandler=function(e,t){this._actions.onSubmenuHidden({rootItem:(0,l.getPublicElement)(e),submenu:t})},m._submenuMouseLeaveHandler=function(e,t){var n=(0,o.default)(t.relatedTarget).parents(".".concat(I))[0],i=this._getSubmenuByRootElement(e).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&n!==i&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))},m._hideSubmenuAfterTimeout=function(){if(this._visibleSubmenu){var e=(0,o.default)(this._visibleSubmenu.$element().context).hasClass(E),t=this._visibleSubmenu.getOverlayContent().find(".".concat(E)).length;this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover")||t||e||this._visibleSubmenu.hide()}},m._getSubmenuByRootElement=function(e){if(!e)return!1;var t=e.children(".".concat(I));return t.length&&v.default.getInstance(t)},m.getSubmenuPosition=function(e){var t=this._isMenuHorizontal(),n=this.option("submenuDirection").toLowerCase(),i=this.option("rtlEnabled"),o={collision:"flip",of:e};switch(n){case"leftortop":o.at="left top",o.my=t?"left bottom":"right top";break;case"rightorbottom":o.at=t?"left bottom":"right top",o.my="left top";break;default:t?(o.at=i?"right bottom":"left bottom",o.my=i?"right top":"left top"):(o.at=i?"left top":"right top",o.my=i?"right top":"left top")}return o},m._renderBorderElement=function(e){(0,o.default)("<div>").appendTo(e).addClass(T).hide()},m._itemPointerDownHandler=function(t){(0,o.default)(t.target).closest(this._itemElements()).hasClass("dx-menu-item-has-submenu")?this.option("focusedElement",null):e.prototype._itemPointerDownHandler.call(this,t)},m._hoverStartHandler=function(e){var t=(0,f.addNamespace)(p.default.move,this.NAME),n=this._getItemElementByEventArgs(e),i=this._dataAdapter.getNodeByItem(this._getItemData(n)),o=(0,d.isDefined)(e.buttons)&&1===e.buttons||!(0,d.isDefined)(e.buttons)&&1===e.which;if(!this._isItemDisabled(n))if(a.default.off(n,t),this._hasChildren(i)){if("onHover"===this._getShowFirstSubmenuMode()&&!o){var r=this._getSubmenuByElement(n);this._clearTimeouts(),r.isOverlayVisible()||(a.default.on(n,t,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}else this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide"))},m._hoverEndHandler=function(t){var n=this,i=this._getItemElementByEventArgs(t),a=(0,o.default)(t.relatedTarget);e.prototype._hoverEndHandler.call(this,t),this._clearTimeouts(),this._isItemDisabled(i)||a.hasClass("dx-context-menu-content-delimiter")||this.option("hideSubmenuOnMouseLeave")&&!a.hasClass(k)&&(this._hideSubmenuTimer=setTimeout((function(){n._hideSubmenuAfterTimeout()}),this._getDelay("hide")))},m._hideVisibleSubmenu=function(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)},m._showSubmenu=function(e){var t=this._getSubmenuByElement(e);this._visibleSubmenu!==t&&this._hideVisibleSubmenu(),t&&(this._clearTimeouts(),t.show(),this.option("focusedElement",t.option("focusedElement"))),this._visibleSubmenu=t,this._hoveredRootItem=e},m._hideSubmenu=function(e){e&&e.hide(),this._visibleSubmenu===e&&(this._visibleSubmenu=null),this._hoveredRootItem=null},m._itemMouseMoveHandler=function(e){var t=this;if(!e.pointers||!e.pointers.length){var n=(0,o.default)(e.currentTarget);(0,d.isDefined)(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout((function(){var e=t._getSubmenuByElement(n);e&&!e.isOverlayVisible()&&t._showSubmenu(n)}),this._getDelay("show")))}},m._clearTimeouts=function(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)},m._getSubmenuByElement=function(e,t){var n=this._getSubmenuByRootElement(e);if(n)return n;t=t||this._getItemData(e);var i=this._dataAdapter.getNodeByItem(t);return this._hasChildren(i)&&this._renderSubmenuItems(i,e)},m._updateSubmenuVisibilityOnClick=function(e){var t=e.args.length&&e.args[0];if(t&&!this._disabledGetter(t.itemData)){var n=(0,o.default)(t.itemElement),i=this._getSubmenuByElement(n,t.itemData);if(this._updateSelectedItemOnClick(e),this._visibleSubmenu){if(this._visibleSubmenu===i)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}i&&(i.isOverlayVisible()||this._showSubmenu(n))}},m._optionChanged=function(t){if(V.indexOf(t.name)>=0)this._initActions();else switch(t.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(t.name,t.value);break;case"adaptivityEnabled":t.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(t.name,t.value),this._overlay.option(t.name,t.value)),e.prototype._optionChanged.call(this,t),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!t.value),e.prototype._optionChanged.call(this,t);break;default:!this._isAdaptivityEnabled()||t.name!==t.fullName&&"items"!==t.name||this._treeView.option(t.fullName,t.value),e.prototype._optionChanged.call(this,t)}},m._changeSubmenusOption=function(e,t){(0,u.each)(this._submenus,(function(n,i){i.option(e,t)}))},m.selectItem=function(t){this._hideSubmenu(this._visibleSubmenu),e.prototype.selectItem.call(this,t)},m.unselectItem=function(t){this._hideSubmenu(this._visibleSubmenu),e.prototype.selectItem.call(this,t)},r}(m.default);(0,r.default)("dxMenu",F);var L=F;t.default=L,e.exports=t.default,e.exports.default=t.default},59987:function(e,t,n){t.default=void 0;var i=n(58664),o=u(n(68374)),a=n(20576),r=n(6415),s=u(n(49387)),l=n(13306);function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){var t,n;function u(){return e.apply(this,arguments)||this}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n);var c=u.prototype;return c._getDefaultOptions=function(){return(0,l.extend)(e.prototype._getDefaultOptions.call(this),{orientation:"horizontal",tabIndex:null,onHoverStart:a.noop})},c._initDataAdapter=function(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||e.prototype._initDataAdapter.call(this)},c._renderContentImpl=function(){this._renderContextMenuOverlay(),e.prototype._renderContentImpl.call(this);var t=this._dataAdapter.getNodeByKey(this.option("_parentKey"));t&&this._renderItems(this._getChildNodes(t)),this._renderDelimiter()},c._renderDelimiter=function(){this.$contentDelimiter=(0,o.default)("<div>").appendTo(this._itemContainer()).addClass("dx-context-menu-content-delimiter")},c._getOverlayOptions=function(){return(0,l.extend)(e.prototype._getOverlayOptions.call(this),{onPositioned:this._overlayPositionedActionHandler.bind(this)})},c._overlayPositionedActionHandler=function(e){this._showDelimiter(e)},c._hoverEndHandler=function(t){e.prototype._hoverEndHandler.call(this,t),this._toggleFocusClass(!1,t.currentTarget)},c._isMenuHorizontal=function(){return"horizontal"===this.option("orientation")},c._hoverStartHandler=function(t){this.option("onHoverStart")(t),e.prototype._hoverStartHandler.call(this,t),this._toggleFocusClass(!0,t.currentTarget)},c._drawSubmenu=function(t){this._actions.onShowing({rootItem:(0,r.getPublicElement)(t),submenu:this}),e.prototype._drawSubmenu.call(this,t),this._actions.onShown({rootItem:(0,r.getPublicElement)(t),submenu:this})},c._hideSubmenu=function(t){this._actions.onHiding({cancel:!0,rootItem:(0,r.getPublicElement)(t),submenu:this}),e.prototype._hideSubmenu.call(this,t),this._actions.onHidden({rootItem:(0,r.getPublicElement)(t),submenu:this})},c._showDelimiter=function(e){if(this.$contentDelimiter){var t=this._itemContainer().children(".".concat("dx-submenu")).eq(0),n=this.option("position").of,o={of:t},a=e.position,r=a.v.location,l=a.h.location,u=n.offset(),d=Math.round(u.left),c=Math.round(u.top),h=(0,i.getWidth)(n),f=(0,i.getHeight)(n),p=(0,i.getWidth)(t),g=(0,i.getHeight)(t);this.$contentDelimiter.css("display","block"),(0,i.setWidth)(this.$contentDelimiter,this._isMenuHorizontal()?h<p?h-2:p:2),(0,i.setHeight)(this.$contentDelimiter,this._isMenuHorizontal()?2:f<g?f-2:g),this._isMenuHorizontal()?r>c?Math.round(l)===d?(o.offset="1 -1",o.at=o.my="left top"):(o.offset="-1 -1",o.at=o.my="right top"):((0,i.setHeight)(this.$contentDelimiter,5),Math.round(l)===d?(o.offset="1 4",o.at=o.my="left bottom"):(o.offset="-1 2",o.at=o.my="right bottom")):l>d?Math.round(r)===c?(o.offset="-1 1",o.at=o.my="left top"):(o.offset="-1 -1",o.at=o.my="left bottom"):Math.round(r)===c?(o.offset="1 1",o.at=o.my="right top"):(o.offset="1 -1",o.at=o.my="right bottom"),s.default.setup(this.$contentDelimiter,o)}},c._getContextMenuPosition=function(){return this.option("position")},c.isOverlayVisible=function(){return this._overlay.option("visible")},c.getOverlayContent=function(){return this._overlay.$content()},u}(u(n(10042)).default);t.default=c,e.exports=t.default,e.exports.default=t.default},86478:function(e,t,n){t.default=void 0;var i=n(58664),o=v(n(68374)),a=n(31648),r=n(22053),s=n(60810),l=n(13306),u=n(20576),d=n(80506),c=n(6415),h=n(35922),f=v(n(20530)),p=v(n(99393)),g=v(n(69010)),m=v(n(66894)),_=n(62754);function v(e){return e&&e.__esModule?e:{default:e}}var y="dx-multiview",x="dx-multiview-wrapper",b="dx-multiview-item-container",w=function(e){return+e},C=g.default.inherit({_activeStateUnit:".dx-multiview-item",_supportedKeys:function(){return(0,l.extend)(this.callBase(),{pageUp:u.noop,pageDown:u.noop})},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,_itemAttributes:{role:"tabpanel"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===f.default.real().deviceType&&!f.default.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return"dx-multiview-item"},_itemDataKey:function(){return"dxMultiViewItemData"},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=(0,i.getWidth)(this._$wrapper)),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(e){var t=this._itemsCount();return e<0&&(e+=t),e>=t&&(e-=t),e},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var e=this.$element();e.addClass(y),this._$wrapper=(0,o.default)("<div>").addClass(x),this._$wrapper.appendTo(e),this._$itemContainer=(0,o.default)("<div>").addClass(b),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase();var e=this._getSelectedItemIndices();this._updateItemsVisibility(e[0])},_afterItemElementDeleted:function(e,t){this.callBase(e,t),this._deferredItems&&this._deferredItems.splice(t.itemIndex,1)},_beforeItemElementInserted:function(e){this.callBase.apply(this,arguments),this._deferredItems&&this._deferredItems.splice(e.index,0,null)},_executeItemRenderAction:function(e,t,n){e=(this.option("items")||[]).indexOf(t),this.callBase(e,t,n)},_renderItemContent:function(e){var t=new _.Deferred,n=this,i=this.callBase,o=new _.Deferred;return o.done((function(){var o=i.call(n,e);t.resolve(o)})),this._deferredItems[e.index]=o,this.option("deferRendering")||o.resolve(),t.promise()},_render:function(){var e=this;this.callBase(),(0,u.deferRender)((function(){var t=e._getSelectedItemIndices();e._updateItems(t[0])}))},_updateItems:function(e,t){this._updateItemsPosition(e,t),this._updateItemsVisibility(e,t)},_modifyByChanges:function(){this.callBase.apply(this,arguments);var e=this._getSelectedItemIndices();this._updateItemsVisibility(e[0])},_updateItemsPosition:function(e,t){var n=this._itemElements(),i=(0,h.isDefined)(t)?-this._animationDirection(t,e):void 0,o=n.eq(e);r._translator.move(o,0),(0,h.isDefined)(t)&&r._translator.move(n.eq(t),100*i+"%")},_updateItemsVisibility:function(e,t){this._itemElements().each(function(n,i){var a=(0,o.default)(i),r=n!==e&&n!==t;r||this._renderSpecificItem(n),a.toggleClass("dx-multiview-item-hidden",r),this.setAria("hidden",r||void 0,a)}.bind(this))},_renderSpecificItem:function(e){var t=this._itemElements().eq(e),n=t.find(this._itemContentClass()).length>0;(0,h.isDefined)(e)&&!n&&(this._deferredItems[e].resolve(),(0,d.triggerResizeEvent)(t))},_refreshItem:function(e,t){this.callBase(e,t),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelected:u.noop,_updateSelection:function(e,t){var n=e[0],o=t[0];r.animation.complete(this._$itemContainer),this._updateItems(o,n);var a=this._animationDirection(n,o);this._animateItemContainer(a*this._itemWidth(),function(){r._translator.move(this._$itemContainer,0),this._updateItems(n),(0,i.getWidth)(this._$itemContainer)}.bind(this))},_animateItemContainer:function(e,t){var n=this.option("animationEnabled")?200:0;r.animation.moveTo(this._$itemContainer,e,n,t)},_animationDirection:function(e,t){var n,i=(n=this._$itemContainer,(0,a.locate)(n).left),o=(t-e)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection(),r=0!==i?i:o;return(0,s.sign)(r)},_getSwipeDisabledState:function(){return!this.option("swipeEnabled")||this._itemsCount()<=1},_initSwipeable:function(){var e=this;this._createComponent(this.$element(),m.default,{disabled:this._getSwipeDisabledState(),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:function(t){return e._swipeStartHandler(t.event)},onUpdated:function(t){return e._swipeUpdateHandler(t.event)},onEnd:function(t){return e._swipeEndHandler(t.event)}})},_swipeStartHandler:function(e){r.animation.complete(this._$itemContainer);var t=this.option("selectedIndex"),n=this.option("loop"),i=this._itemsCount()-1,o=this.option("rtlEnabled");e.maxLeftOffset=w(n||(o?t>0:t<i)),e.maxRightOffset=w(n||(o?t<i:t>0)),this._swipeDirection=null},_swipeUpdateHandler:function(e){var t=e.offset,n=(0,s.sign)(t)*this._getRTLSignCorrection();if(r._translator.move(this._$itemContainer,t*this._itemWidth()),n!==this._swipeDirection){this._swipeDirection=n;var i=this.option("selectedIndex"),o=this._normalizeIndex(i-n);this._updateItems(i,o)}},_swipeEndHandler:function(e){var t=e.targetOffset*this._getRTLSignCorrection();if(t){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-t));var n=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",(0,c.getPublicElement)(n))}else this._animateItemContainer(0,u.noop)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.last()),t},_nextItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.first()),t},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_updateSwipeDisabledState:function(){var e=this._getSwipeDisabledState();m.default.getInstance(this.$element()).option("disabled",e)},_optionChanged:function(e){var t=e.value;switch(e.name){case"loop":this.option("loopItemFocus",t);break;case"animationEnabled":break;case"swipeEnabled":this._updateSwipeDisabledState();break;case"deferRendering":this._invalidate();break;case"items":this._updateSwipeDisabledState(),this.callBase(e);break;default:this.callBase(e)}}});(0,p.default)("dxMultiView",C);var S=C;t.default=S,e.exports=t.default,e.exports.default=t.default},22053:function(e,t,n){t.animation=t._translator=void 0;var i,o=(i=n(87209))&&i.__esModule?i:{default:i},a=n(31648),r={move:function(e,t){(0,a.move)(e,{left:t})}};t._translator=r;var s={moveTo:function(e,t,n,i){o.default.animate(e,{type:"slide",to:{left:t},duration:n,complete:i})},complete:function(e){o.default.stop(e,!0)}};t.animation=s},65089:function(e,t,n){t.default=void 0;var i=r(n(99393)),o=n(13306),a=r(n(91748));function r(e){return e&&e.__esModule?e:{default:e}}var s=r(n(13453)).default.inherit({ctor:function(e,t){this.callBase(e,t),this._logDeprecatedComponentWarning("20.1","dxTabs")},_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{scrollingEnabled:!1})},_render:function(){this.callBase(),this.$element().addClass("dx-navbar")},_postprocessRenderItem:function(e){this.callBase(e);var t=e.itemElement,n=e.itemData;t.addClass("dx-nav-item"),t.find(".dx-item-content").addClass("dx-nav-item-content"),n.icon||t.addClass("dx-navbar-text-item")}});s.ItemClass=a.default,(0,i.default)("dxNavBar",s);var l=s;t.default=l,e.exports=t.default,e.exports.default=t.default},91748:function(e,t,n){t.default=void 0;var i,o=(i=n(25411))&&i.__esModule?i:{default:i},a=o.default.inherit({_renderBadge:function(e){this.callBase(e),this._$element.children(".dx-tabs-item-badge").removeClass("dx-tabs-item-badge").addClass("dx-navbar-item-badge")}});t.default=a,e.exports=t.default,e.exports.default=t.default},59958:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=u(n(62414)),a=n(77695),r=n(13306),s=n(35922),l=u(n(37748));function u(e){return e&&e.__esModule?e:{default:e}}var d=null;t.default=function(e,t,n){var u=(0,s.isPlainObject)(e)?e:{message:e},c=u.onHidden;(0,r.extend)(u,{type:t,displayTime:n,onHidden:function(e){(0,i.default)(e.element).remove(),new o.default(c,{context:e.model}).execute(arguments)}}),d=(0,i.default)("<div>").appendTo((0,a.value)()),new l.default(d,u).show()},e.exports=t.default,e.exports.default=t.default},34171:function(e,t,n){var i;t.default=void 0;var o=((i=n(96248))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},35567:function(e,t,n){t.default=void 0;var i=v(n(68374)),o=v(n(73349)),a=v(n(55994)),r=n(20576),s=n(35922),l=n(60810),u=n(13306),d=n(89386),c=v(n(20530)),h=v(n(47810)),f=v(n(63513)),p=n(39611),g=v(n(25353)),m=v(n(28109)),_=n(62754);function v(e){return e&&e.__esModule?e:{default:e}}var y=Math,x=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],b=f.default.inherit({_supportedKeys:function(){return(0,u.extend)(this.callBase(),{upArrow:function(e){(0,p.isCommandKeyPressed)(e)||(e.preventDefault(),e.stopPropagation(),this._spinUpChangeHandler(e))},downArrow:function(e){(0,p.isCommandKeyPressed)(e)||(e.preventDefault(),e.stopPropagation(),this._spinDownChangeHandler(e))},enter:function(){}})},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:m.default.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_useTemplates:function(){return!1},_getDefaultButtons:function(){return this.callBase().concat([{name:"spins",Ctor:g.default}])},_isSupportInputMode:function(){var e=parseFloat(h.default.version);return h.default.chrome&&e>=66||h.default.safari&&e>=12},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return c.default.real().generic&&!c.default.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"desktop"!==c.default.real().deviceType&&!this._isSupportInputMode()}.bind(this),options:{mode:"number"}}])},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass("dx-numberbox"),this.callBase()},_getDefaultAttributes:function(){var e=this.callBase();return e.inputmode="decimal",e},_renderContentImpl:function(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement:function(){this._$submitElement=(0,i.default)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){this._getSubmitElement().val((0,r.applyServerDecimalSeparator)(e))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(e){this.callBase(e);var t=(0,p.getChar)(e);if(!/[\d.,eE\-+]/.test(t)){var n=(0,p.normalizeKeyName)(e);if((0,p.isCommandKeyPressed)(e)||n&&(0,d.inArray)(n,x)>=0)return;return e.preventDefault(),!1}this._keyPressed=!0},_onMouseWheel:function(e){e.delta>0?this._spinValueChange(1,e):this._spinValueChange(-1,e)},_renderValue:function(){var e=this._input().val(),t=this.option("value");e.length&&Number(e)===t||(this._forceValueRender(),this._toggleEmptinessEventHandler());var n=(0,s.isDefined)(t)?null:m.default.format("dxNumberBox-noDataText");return this.setAria({valuenow:(0,r.ensureDefined)(t,""),valuetext:n}),this.option("text",this._input().val()),this._updateButtons(),(new _.Deferred).resolve()},_forceValueRender:function(){var e=this.option("value"),t=Number(e),n=isNaN(t)?"":this._applyDisplayValueFormatter(e);this._renderDisplayText(n)},_applyDisplayValueFormatter:function(e){return this.option("displayValueFormatter")(e)},_renderProps:function(){this.callBase(),this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:(0,r.ensureDefined)(this.option("min"),""),valuemax:(0,r.ensureDefined)(this.option("max"),"")})},_spinButtonsPointerDownHandler:function(){var e=this._input();this.option("useLargeSpinButtons")||o.default.getActiveElement()===e[0]||a.default.trigger(e,"focus")},_spinUpChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(1,e.event||e)},_spinDownChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(-1,e.event||e)},_spinValueChange:function(e,t){var n=parseFloat(this.option("step"));if(0!==n){var i=parseFloat(this._normalizeInputValue())||0;i=this._correctRounding(i,n*e);var o=this.option("min"),a=this.option("max");(0,s.isDefined)(o)&&(i=Math.max(o,i)),(0,s.isDefined)(a)&&(i=Math.min(a,i)),this._saveValueChangeEvent(t),this.option("value",i)}},_correctRounding:function(e,t){var n=/[,.](.*)/,i=n.test(e),o=n.test(t);if(i||o){var a=i?n.exec(e)[0].length:0,r=o?n.exec(t)[0].length:0,s=y.max(a,r);return this._round(e+t,s)}return e+t},_round:function(e,t){t=t||0;var n=Math.pow(10,t);return e*=n,Math.round(e)/n},_renderValueChangeEvent:function(){this.callBase();var e=(0,p.addNamespace)("focusout","NumberBoxForceValueChange");a.default.off(this.element(),e),a.default.on(this.element(),e,this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var e=this._input(),t=this._applyDisplayValueFormatter(this.option("value"));e.val(null),e.val(t)}},_valueChangeEventHandler:function(e){var t=this._input(),n=this._normalizeText(),i=this._parseValue(n),o="."!==n&&"-"!==n;!this._isValueValid()||this._validateValue(i)?(o&&this.callBase(e,isNaN(i)?null:i),this._applyValueBoundaries(n,i),this.validationRequest.fire({value:i,editor:this})):t.val(this._applyDisplayValueFormatter(i))},_applyValueBoundaries:function(e,t){var n=this._isValueIncomplete(e),i=this._isValueInRange(e);n||i||null===t||Number(e)!==t&&this._input().val(this._applyDisplayValueFormatter(t))},_replaceCommaWithPoint:function(e){return e.replace(",",".")},_inputIsInvalid:function(){var e="number"===this.option("mode"),t=this._input().get(0).validity;return e&&t&&t.badInput},_renderDisplayText:function(e){this._inputIsInvalid()||this.callBase(e)},_isValueIncomplete:function(e){return/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i.test(e)},_isValueInRange:function(e){return(0,l.inRange)(e,this.option("min"),this.option("max"))},_isNumber:function(e){return null!==this._parseValue(e)},_validateValue:function(e){var t=this._normalizeText(),n=this._isValueValid(),i=!0,o=this._isNumber(t);return isNaN(Number(e))&&(i=!1),!e&&n?i=!0:o||n||(i=!1),this.option({isValid:i,validationError:i?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),i},_normalizeInputValue:function(){return this._parseValue(this._normalizeText())},_normalizeText:function(){var e=this._input().val().trim();return this._replaceCommaWithPoint(e)},_parseValue:function(e){var t=parseFloat(e);return isNaN(t)?null:(0,l.fitIntoRange)(t,this.option("min"),this.option("max"))},_clearValue:function(){this._inputIsInvalid()&&(this._input().val(""),this._validateValue()),this.callBase()},reset:function(){null===this.option("value")?(this.option("text",""),this._renderValue()):this.option("value",null)},_optionChanged:function(e){switch(e.name){case"value":this._validateValue(e.value),this._setSubmitValue(e.value),this.callBase(e),this._resumeValueChangeAction();break;case"step":this._renderProps();break;case"min":case"max":this._renderProps(),this.option("value",this._parseValue(this.option("value")));break;case"showSpinButtons":case"useLargeSpinButtons":this._updateButtons(["spins"]);break;case"invalidValueMessage":break;default:this.callBase(e)}}});t.default=b,e.exports=t.default,e.exports.default=t.default},58048:function(e,t,n){t.getCaretBoundaries=t.getCaretAfterFormat=void 0,t.getCaretInBoundaries=f,t.isCaretInBoundaries=t.getCaretWithOffset=t.getCaretOffset=void 0;var i,o=n(60810),a=n(20576),r=(i=n(18016))&&i.__esModule?i:{default:i},s=n(7206),l=function(e,t){if("string"==typeof t){var n=t.split(";"),i=r.default.getSign(e,t);n[1]=n[1]||"-"+n[0],t=(t=n[i<0?1:0]).replace(/'([^']*)'/g,(function(e){return e.split("").map((function(){return" "})).join("").substr(2)}));var o=/^[^#0.,]*/.exec(t)[0].length,a=/[^#0.,]*$/.exec(t)[0].length;return{start:o,end:e.length-a}}return{start:0,end:e.length}};t.getCaretBoundaries=l;var u=function(e,t){var n=r.default.getDecimalSeparator(),i=new RegExp("[^0-9"+(0,a.escapeRegExp)(n)+"]","g");return t.slice(0,e).replace(i,"").length},d=function(e){return e.split("").reverse().join("")},c=function(e,t){if(!e)return-1;for(var n=/[0-9]/g,i=1,o=null,a=n.exec(t);a;){if(o=a.index,i>=e)return o;i++,a=n.exec(t)}return null===o?t.length:o},h=function(e,t){return void 0===e.start&&(e={start:e,end:e}),{start:e.start+t,end:e.end+t}};function f(e,t,n){e=h(e,0);var i=l(t,n);return{start:(0,o.fitIntoRange)(e.start,i.start,i.end),end:(0,o.fitIntoRange)(e.end,i.start,i.end)}}t.getCaretWithOffset=h,t.getCaretAfterFormat=function(e,t,n,i){n=h(n,0);var o=r.default.getDecimalSeparator(),a=function(e){return 1===e.length&&!!e.match(/^[,.][0-9]*$/g)}(e),l=(0,s.getRealSeparatorIndex)(i).occurrence,p=a?0:(0,s.getNthOccurrence)(e,o,l),g=(0,s.getNthOccurrence)(t,o,l),m=(0,s.splitByIndex)(e,p),_=(0,s.splitByIndex)(t,g);if(-1!==p&&n.start>p){var v=n.start-p-1,y=u(v,m[1]);return f(_[1]?g+1+c(y,_[1])+1:t.length,t,i)}var x=function(e){return e.replace(/[^0-9e]+$/,"")}(_[0]),b=m[0].length-n.start,w=u(b,d(m[0])),C=c(w,d(x));return f(x.length-(C+1),t,i)},t.isCaretInBoundaries=function(e,t,n){var i=f(e=h(e,0),t,n);return e.start>=i.start&&e.end<=i.end},t.getCaretOffset=function(e,t,n){var i=l(e,n);return l(t,n).start-i.start}},96248:function(e,t,n){t.default=void 0;var i=a(n(99393)),o=a(n(29983));function a(e){return e&&e.__esModule?e:{default:e}}(0,i.default)("dxNumberBox",o.default);var r=o.default;t.default=r,e.exports=t.default,e.exports.default=t.default},29983:function(e,t,n){t.default=void 0;var i=g(n(55994)),o=n(13306),a=n(35922),r=g(n(20530)),s=n(60810),l=g(n(18016)),u=n(58048),d=n(70629),c=g(n(35567)),h=n(39611),f=n(20576),p=n(7206);function g(e){return e&&e.__esModule?e:{default:e}}var m="dxNumberFormatter",_="minus",v=c.default.inherit({_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:function(e){return"del"===e},_supportedKeys:function(){if(!this._useMaskBehavior())return this.callBase();var e=this;return(0,o.extend)(this.callBase(),{minus:e._revertSign.bind(e),del:e._removeHandler.bind(e),backspace:e._removeHandler.bind(e),leftArrow:e._arrowHandler.bind(e,-1),rightArrow:e._arrowHandler.bind(e,1),home:e._moveCaretToBoundaryEventHandler.bind(e,1),enter:e._updateFormattedValue.bind(e),end:e._moveCaretToBoundaryEventHandler.bind(e,-1)})},_getTextSeparatorIndex:function(e){var t=l.default.getDecimalSeparator(),n=(0,p.getRealSeparatorIndex)(this.option("format")).occurrence;return(0,p.getNthOccurrence)(e,t,n)},_focusInHandler:function(e){this._preventNestedFocusEvent(e)||(this.clearCaretTimeout(),this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0;var t=this._caret();if(t.start===t.end&&this._useMaskBehavior()){var n=this._getInputVal(),i=this._getTextSeparatorIndex(n);i>=0?this._caret({start:i,end:i}):this._moveCaretToBoundaryEventHandler(-1,e)}}.bind(this),0)),this.callBase(e)},_focusOutHandler:function(e){var t=!this._preventNestedFocusEvent(e);t&&(this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue()),this.callBase(e),t&&(this._focusOutOccurs=!1)},_hasValueBeenChanged:function(e){var t=this._getFormatPattern(),n=this.option("value");return(this._format(n,t)||"")!==e},_updateFormattedValue:function(){var e=this._getInputVal();this._hasValueBeenChanged(e)&&(this._updateParsedValue(),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&i.default.trigger(this._input(),"change"))},_arrowHandler:function(e,t){if(this._useMaskBehavior()){var n=this._getInputVal(),i=this._getFormatPattern(),o=(0,u.getCaretWithOffset)(this._caret(),e);(0,u.isCaretInBoundaries)(o,n,i)||(o=1===e?o.end:o.start,t.preventDefault(),this._caret((0,u.getCaretInBoundaries)(o,n,i)))}},_moveCaretToBoundary:function(e){var t=(0,u.getCaretBoundaries)(this._getInputVal(),this._getFormatPattern()),n=(0,u.getCaretWithOffset)(1===e?t.start:t.end,0);this._caret(n)},_moveCaretToBoundaryEventHandler:function(e,t){!this._useMaskBehavior()||t&&t.shiftKey||(this._moveCaretToBoundary(e),t&&t.preventDefault())},_shouldMoveCaret:function(e,t){var n=l.default.getDecimalSeparator(),i=e.charAt(t.end)===n;return(this._lastKey===n||"."===this._lastKey)&&i},_getInputVal:function(){return l.default.convertDigits(this._input().val(),!0)},_keyboardHandler:function(e){if(this.clearCaretTimeout(),this._lastKey=l.default.convertDigits((0,h.getChar)(e),!0),this._lastKeyName=(0,h.normalizeKeyName)(e),!this._shouldHandleKey(e.originalEvent))return this.callBase(e);var t=this._getInputVal(),n=this._caret(),i=this._lastKeyName===_?"":this._lastKey,o=this._tryParse(t,n,i);return this._shouldMoveCaret(t,n)&&(this._moveCaret(1),e.originalEvent.preventDefault()),void 0===o?this._lastKeyName!==_&&e.originalEvent.preventDefault():this._parsedValue=o,this.callBase(e)},_keyPressHandler:function(e){this._useMaskBehavior()||this.callBase(e)},_removeHandler:function(e){var t=this._caret(),n=this._getInputVal(),i=t.start,o=t.end;this._lastKey=(0,h.getChar)(e),this._lastKeyName=(0,h.normalizeKeyName)(e);var a=this._isDeleteKey(this._lastKeyName),r=!a;if(i===o){if(!(r&&i>0||a&&i<n.length))return void e.preventDefault();a&&o++,r&&i--}var s=n.slice(i,o);if(this._isStub(s))return this._moveCaret(a?1:-1),(this._parsedValue<0||1/this._parsedValue==-1/0)&&(this._revertSign(e),this._setTextByParsedValue()),void e.preventDefault();var u=l.default.getDecimalSeparator();if(s!==u){if(o-i<n.length&&this._replaceSelectedText(n,{start:i,end:o},"").search(/[0-9]/)<0&&this._isValueInRange(0))return void(this._parsedValue=this._parsedValue<0||1/this._parsedValue==-1/0?-0:0);var d=this._tryParse(n,{start:i,end:o},"");void 0===d?e.preventDefault():this._parsedValue=d}else{var c=n.indexOf(u);this._isNonStubAfter(c+1)&&(this._moveCaret(a?1:-1),e.preventDefault())}},_isPercentFormat:function(){return-1!==this._getFormatPattern().replace(/'[^']+'/g,"").indexOf("%")},_parse:function(e,t){var n=this.option("format"),i=(0,a.isFunction)(n.parser),o=i?n.parser:l.default.parse,r=0;if(!i){var s=(0,p.getRealSeparatorIndex)(t).index,u=this._getTextSeparatorIndex(e),d=-1!==s?s:t.length,c=-1!==u?u:e.length;c>d&&-1===t.indexOf("#")&&(r=c-d)}return o(e=(e=this._removeStubs(e,!0)).substr(r),t)},_format:function(e,t){var n=this.option("format"),i=(null==n?void 0:n.formatter)||n,o=(0,a.isFunction)(i)?i:l.default.format;return null===e?"":o(e,t)},_getFormatPattern:function(){return this._currentFormat||this._updateFormat(),this._currentFormat},_updateFormat:function(){var e=this,t=this.option("format"),n=(0,a.isFunction)(null==t?void 0:t.parser),i=(0,a.isString)(t)&&(t.indexOf("0")>=0||t.indexOf("#")>=0);this._currentFormat=n||i?t:(0,d.getFormat)((function(n){var i=e._format(n,t);return l.default.convertDigits(i,!0)}))},_getFormatForSign:function(e){var t=this._getFormatPattern();if((0,a.isString)(t)){var n=t.split(";"),i=l.default.getSign(e,t);return n[1]=n[1]||"-"+n[0],i<0?n[1]:n[0]}return l.default.getSign(e)<0?"-":""},_removeStubs:function(e,t){var n=this._getFormatForSign(e),i=l.default.getThousandsSeparator(),o=this._getStubs(n),a=e;if(o.length){var r=o[0],s=new RegExp("("+(0,f.escapeRegExp)(o[1]||"")+")$","g"),u=new RegExp("[-"+(0,f.escapeRegExp)(t?"":i)+"]","g");a=a.replace(r,"").replace(s,"").replace(u,"")}return a},_getStubs:function(e){var t=/[^']([#0.,]+)/g.exec(e),n=t&&t[0].trim();return e.split(n).map((function(e){return e.replace(/'/g,"")}))},_truncateToPrecision:function(e,t){if((0,a.isDefined)(e)){var n=e.toString(),i=n.indexOf(".");if(n&&i>-1){var o=parseFloat(n.substr(0,i+t+1));return isNaN(o)?e:o}}return e},_tryParse:function(e,t,n){var i=this._replaceSelectedText(e,t,n),o=this._getFormatPattern(),a=t.start!==t.end,r=this._getParsedValue(i,o),s=!o.parser&&this._getPrecisionLimits(i).max,u=r!==this._parsedValue,d=n===l.default.getDecimalSeparator()&&0===s,c=!a&&!u&&"-"!==n&&!this._isValueIncomplete(i)&&this._isStub(n);if(!d&&!c&&(""===this._removeStubs(i)&&(r=Math.abs(0*this._parsedValue)),!isNaN(r))){var h=null===r?this._parsedValue:r;return r=s?this._truncateToPrecision(h,s):r,!o.parser&&this._isPercentFormat()?(0,p.adjustPercentValue)(r,s):r}},_getParsedValue:function(e,t){var n=l.default.getSign(e,(null==t?void 0:t.formatter)||t),i=this._parse(e,t),o=i<0?-1:1;return(0,a.isNumeric)(i)&&n!==o?n*i:i},_isValueIncomplete:function(e){if(!this._useMaskBehavior())return this.callBase(e);var t=this._caret(),n=l.default.getDecimalSeparator(),i=this._getTextSeparatorIndex(e),o=i>=0&&i<t.start,a=this._removeStubs(e,!0).split(n);if(!o||2!==a.length)return!1;var r=a[1].length,u=!!this._getFormatPattern().parser,d=!u&&this._getPrecisionLimits(this._getFormatPattern(),e),c=!!u||(0,s.inRange)(r,d.min,d.max),h="0"===a[1].charAt(r-1);return c&&(h||!r)},_isValueInRange:function(e){var t=(0,f.ensureDefined)(this.option("min"),-1/0),n=(0,f.ensureDefined)(this.option("max"),1/0);return(0,s.inRange)(e,t,n)},_setInputText:function(e){var t=l.default.convertDigits(e,!0),n=(0,u.getCaretAfterFormat)(this._getInputVal(),t,this._caret(),this._getFormatPattern());this._input().val(e),this._toggleEmptinessEventHandler(),this._formattedValue=e,this._focusOutOccurs||this._caret(n)},_useMaskBehavior:function(){return!!this.option("format")&&this.option("useMaskBehavior")},_renderInputType:function(){var e="number"===this.option("mode"),t="desktop"===r.default.real().deviceType;this._useMaskBehavior()&&e?this._setInputType(t||this._isSupportInputMode()?"text":"tel"):this.callBase()},_isChar:function(e){return(0,a.isString)(e)&&1===e.length},_moveCaret:function(e){if(e){var t=(0,u.getCaretWithOffset)(this._caret(),e),n=(0,u.getCaretInBoundaries)(t,this._getInputVal(),this._getFormatPattern());this._caret(n)}},_shouldHandleKey:function(e){var t=(0,h.normalizeKeyName)(e),n=(0,h.isCommandKeyPressed)(e)||e.altKey||e.shiftKey||!this._isChar(t),i=t===_;return this._useMaskBehavior()&&!n&&!i},_renderInput:function(){this.callBase(),this._renderFormatter()},_renderFormatter:function(){this._clearCache(),this._detachFormatterEvents(),this._useMaskBehavior()&&this._attachFormatterEvents()},_detachFormatterEvents:function(){i.default.off(this._input(),".dxNumberFormatter")},_isInputFromPaste:function(e){var t=e.originalEvent&&e.originalEvent.inputType;return(0,a.isDefined)(t)?"insertFromPaste"===t:this._isValuePasted},_attachFormatterEvents:function(){var e=this._input();i.default.on(e,(0,h.addNamespace)("input",m),function(e){this._formatValue(e),this._isValuePasted=!1}.bind(this)),i.default.on(e,(0,h.addNamespace)("dxclick",m),function(){this._caretTimeout||(this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0,this._caret((0,u.getCaretInBoundaries)(this._caret(),this._getInputVal(),this._getFormatPattern()))}.bind(this),0))}.bind(this)),i.default.on(e,"dxdblclick",function(){this.clearCaretTimeout()}.bind(this))},clearCaretTimeout:function(){clearTimeout(this._caretTimeout),this._caretTimeout=void 0},_forceRefreshInputValue:function(){if(!this._useMaskBehavior())return this.callBase()},_isNonStubAfter:function(e){var t=this._getInputVal().slice(e);return t&&!this._isStub(t,!0)},_isStub:function(e,t){var n=(0,f.escapeRegExp)(l.default.getDecimalSeparator());return new RegExp("^[^0-9"+n+"]+$","g").test(e)&&(t||this._isChar(e))},_parseValue:function(e){return this._useMaskBehavior()?this._parsedValue:this.callBase(e)},_getPrecisionLimits:function(e){var t=this._getFormatForSign(e),n=(0,p.getRealSeparatorIndex)(t).index,i=((0,p.splitByIndex)(t,n)[1]||"").replace(/[^#0]/g,"");return{min:i.replace(/^(0*)#*/,"$1").length,max:i.length}},_revertSign:function(e){if(this._useMaskBehavior()){var t=this._caret();if(t.start!==t.end){if((0,h.normalizeKeyName)(e)===_)return void this._applyRevertedSign(e,t,!0);this._caret((0,u.getCaretInBoundaries)(0,this._getInputVal(),this._getFormatPattern()))}this._applyRevertedSign(e,t)}},_applyRevertedSign:function(e,t,n){var i=-1*(0,f.ensureDefined)(this._parsedValue,null);if(this._isValueInRange(i)&&(this._parsedValue=i,n)){var o=this._getFormatPattern(),a=this._getInputVal();this._setTextByParsedValue(),e.preventDefault();var r=this._getInputVal(),s=(0,u.getCaretOffset)(a,r,o);t=(0,u.getCaretWithOffset)(t,s);var l=(0,u.getCaretInBoundaries)(t,r,o);this._caret(l)}},_removeMinusFromText:function(e,t){return this._lastKeyName===_&&"-"===e.charAt(t.start-1)?this._replaceSelectedText(e,{start:t.start-1,end:t.start},""):e},_setTextByParsedValue:function(){var e=this._getFormatPattern(),t=this._parseValue(),n=this._format(t,e)||"";this._setInputText(n)},_formatValue:function(e){var t=this._getInputVal(),n=this._caret(),i=this._removeMinusFromText(t,n),o=i!==t;if(t=i,!this._isInputFromPaste(e)&&this._isValueIncomplete(i))return this._formattedValue=t,void(o&&this._setTextByParsedValue());if(l.default.convertDigits(this._formattedValue,!0)!==t){var r=this._tryParse(t,n,"");(0,a.isDefined)(r)&&(this._parsedValue=r)}this._setTextByParsedValue()},_renderDisplayText:function(){this._useMaskBehavior()?this._toggleEmptinessEventHandler():this.callBase.apply(this,arguments)},_renderValue:function(){return this._useMaskBehavior()&&(this._parsedValue=this.option("value"),this._setTextByParsedValue()),this.callBase()},_updateParsedValue:function(){var e=this._getInputVal();this._parsedValue=this._tryParse(e,this._caret())},_adjustParsedValue:function(){if(this._useMaskBehavior()){var e=this._removeStubs(this._getInputVal())?this._parseValue():null;(0,a.isNumeric)(e)?this._parsedValue=(0,s.fitIntoRange)(e,this.option("min"),this.option("max")):this._parsedValue=e}},_valueChangeEventHandler:function(e){if(!this._useMaskBehavior())return this.callBase(e);var t=this._caret();this._saveValueChangeEvent(e),this._lastKey=null,this._lastKeyName=null,this._updateParsedValue(),this._adjustParsedValue(),this.option("value",this._parsedValue),t&&this._caret(t)},_optionChanged:function(e){switch(e.name){case"format":case"useMaskBehavior":this._renderInputType(),this._updateFormat(),this._renderFormatter(),this._renderValue(),this._refreshValueChangeEvent(),this._refreshEvents();break;case"min":case"max":this._adjustParsedValue(),this.callBase(e);break;default:this.callBase(e)}},_clearCache:function(){delete this._formattedValue,delete this._lastKey,delete this._lastKeyName,delete this._parsedValue,delete this._focusOutOccurs,clearTimeout(this._caretTimeout),delete this._caretTimeout},_clean:function(){this._clearCache(),this.callBase()}});t.default=v,e.exports=t.default,e.exports.default=t.default},30306:function(e,t,n){t.default=void 0;var i=f(n(68374)),o=f(n(73349)),a=f(n(55994)),r=f(n(14390)),s=n(13306),l=n(39611),u=f(n(93786)),d=n(91633),c=f(n(11699)),h=n(62754);function f(e){return e&&e.__esModule?e:{default:e}}var p="dxNumberBox",g=(0,l.addNamespace)(u.default.up,p),m=(0,l.addNamespace)(u.default.cancel,p),_=r.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup:function(){this.callBase();var e="dx-numberbox-spin-"+this.option("direction");this.$element().addClass("dx-numberbox-spin-button").addClass(e),this._spinIcon=(0,i.default)("<div>").addClass(e+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var e=(0,l.addNamespace)(u.default.down,this.NAME),t=this.$element();a.default.off(t,e),a.default.on(t,e,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(e){e.preventDefault(),this._clearTimer(),a.default.on(this.$element(),c.default.name,function(){this._feedBackDeferred=new h.Deferred,(0,d.lock)(this._feedBackDeferred),this._spinChangeHandler({event:e}),this._holdTimer=setInterval(this._spinChangeHandler,100,{event:e})}.bind(this));var t=o.default.getDocument();a.default.on(t,g,this._clearTimer.bind(this)),a.default.on(t,m,this._clearTimer.bind(this)),this._spinChangeHandler({event:e})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){a.default.off(this.$element(),c.default.name);var e=o.default.getDocument();a.default.off(e,g),a.default.off(e,m),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(e){switch(e.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(e)}}});t.default=_,e.exports=t.default,e.exports.default=t.default},25353:function(e,t,n){t.default=void 0;var i=d(n(68374)),o=d(n(55994)),a=d(n(11483)),r=d(n(30306)),s=n(39611),l=d(n(93786)),u=n(13306);function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var d=a.prototype;return d._attachEvents=function(e,t){var n=this.editor,i=(0,s.addNamespace)(l.default.down,n.NAME),a=t.children(),u=n._createAction((function(e){return n._spinButtonsPointerDownHandler(e)}));o.default.off(t,i),o.default.on(t,i,(function(e){return u({event:e})})),r.default.getInstance(a.eq(0)).option("onChange",(function(e){return n._spinUpChangeHandler(e)})),r.default.getInstance(a.eq(1)).option("onChange",(function(e){return n._spinDownChangeHandler(e)}))},d._create=function(){var e=this.editor,t=(0,i.default)("<div>").addClass("dx-numberbox-spin-container"),n=(0,i.default)("<div>").appendTo(t),o=(0,i.default)("<div>").appendTo(t),a=this._getOptions();return this._addToContainer(t),e._createComponent(n,r.default,(0,u.extend)({direction:"up"},a)),e._createComponent(o,r.default,(0,u.extend)({direction:"down"},a)),this._legacyRender(e.$element(),this._isTouchFriendly(),a.visible),{instance:t,$element:t}},d._getOptions=function(){var e=this.editor;return{visible:this._isVisible(),disabled:e.option("disabled")}},d._isVisible=function(){var t=this.editor;return e.prototype._isVisible.call(this)&&t.option("showSpinButtons")},d._isTouchFriendly=function(){var e=this.editor;return e.option("showSpinButtons")&&e.option("useLargeSpinButtons")},d._legacyRender=function(e,t,n){e.toggleClass("dx-numberbox-spin-touch-friendly",t),e.toggleClass("dx-numberbox-spin",n)},d.update=function(){if(e.prototype.update.call(this)){var t=this.editor,n=this.instance,i=t.$element(),o=this._isVisible(),a=this._isTouchFriendly(),s=n.children(),l=r.default.getInstance(s.eq(0)),u=r.default.getInstance(s.eq(1)),d=this._getOptions();l.option(d),u.option(d),this._legacyRender(i,a,o)}},a}(a.default);t.default=h,e.exports=t.default,e.exports.default=t.default},7206:function(e,t,n){t.splitByIndex=t.getRealSeparatorIndex=t.getNthOccurrence=t.adjustPercentValue=void 0;var i=n(60810);t.getRealSeparatorIndex=function(e){for(var t=0,n=0,i=0;i<e.length;++i)if("'"===e[i]&&t++,"."===e[i]&&(++n,t%2==0))return{occurrence:n,index:i};return{occurrence:1,index:-1}},t.getNthOccurrence=function(e,t,n){for(var i=-1;n--&&i++<e.length;)i=e.indexOf(t,i);return i},t.splitByIndex=function(e,t){return-1===t?[e]:[e.slice(0,t),e.slice(t+1)]},t.adjustPercentValue=function(e,t){return e&&(0,i.adjust)(e/100,t)}},77601:function(e,t,n){t.default=void 0;var i=n(31648),o=c(n(73349)),a=n(58664),r=n(60810),s=n(35922),l=c(n(55994)),u=n(23174),d=n(39611);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(){function e(e){this.init(e)}var t=e.prototype;return t.init=function(e){var t=e.dragEnabled,n=e.handle,i=e.draggableElement,o=e.positionController;this._positionController=o,this._draggableElement=i,this._handle=n,this._dragEnabled=t,this.unsubscribe(),t&&this.subscribe()},t.moveDown=function(e){this._moveTo(5,0,e)},t.moveUp=function(e){this._moveTo(-5,0,e)},t.moveLeft=function(e){this._moveTo(0,-5,e)},t.moveRight=function(e){this._moveTo(0,5,e)},t.subscribe=function(){var e=this,t=this._getEventNames();l.default.on(this._handle,t.startEventName,(function(t){e._dragStartHandler(t)})),l.default.on(this._handle,t.updateEventName,(function(t){e._dragUpdateHandler(t)})),l.default.on(this._handle,t.endEventName,(function(t){e._dragEndHandler(t)}))},t.unsubscribe=function(){var e=this._getEventNames();l.default.off(this._handle,e.startEventName),l.default.off(this._handle,e.updateEventName),l.default.off(this._handle,e.endEventName)},t._getEventNames=function(){var e="overlayDrag";return{startEventName:(0,d.addNamespace)(u.start,e),updateEventName:(0,d.addNamespace)(u.move,e),endEventName:(0,d.addNamespace)(u.end,e)}},t._dragStartHandler=function(e){var t=this._getAllowedOffsets();this._prevOffset={x:0,y:0},e.targetElements=[],e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right},t._dragUpdateHandler=function(e){var t={top:e.offset.y-this._prevOffset.y,left:e.offset.x-this._prevOffset.x};this._moveByOffset(t),this._prevOffset=e.offset},t._dragEndHandler=function(e){this._positionController.dragHandled(),this._positionController.detectVisualPositionChange(e)},t._moveTo=function(e,t,n){if(this._dragEnabled){n.preventDefault(),n.stopPropagation();var i=this._fitOffsetIntoAllowedRange(e,t);this._moveByOffset(i),this._dragEndHandler(n)}},t._fitOffsetIntoAllowedRange=function(e,t){var n=this._getAllowedOffsets();return{top:(0,r.fitIntoRange)(e,-n.top,n.bottom),left:(0,r.fitIntoRange)(t,-n.left,n.right)}},t._getContainerDimensions=function(){var e=o.default.getDocument(),t=this._positionController.$dragResizeContainer.get(0),n=(0,a.getOuterWidth)(t),i=(0,a.getOuterHeight)(t);return(0,s.isWindow)(t)&&(i=Math.max(e.body.clientHeight,i),n=Math.max(e.body.clientWidth,n)),{width:n,height:i}},t._getContainerPosition=function(){var e=this._positionController.$dragResizeContainer.get(0);return(0,s.isWindow)(e)?{top:0,left:0}:(0,a.getOffset)(e)},t._getElementPosition=function(){return(0,a.getOffset)(this._draggableElement)},t._getInnerDelta=function(){var e=this._getContainerDimensions(),t=this._getElementDimensions();return{x:e.width-t.width,y:e.height-t.height}},t._getOuterDelta=function(){var e=this._getElementDimensions(),t=e.width,n=e.height,i=this._positionController.outsideDragFactor;return{x:t*i,y:n*i}},t._getFullDelta=function(){var e=this._getInnerDelta(),t=this._getOuterDelta();return{x:e.x+t.x,y:e.y+t.y}},t._getElementDimensions=function(){return{width:this._draggableElement.offsetWidth,height:this._draggableElement.offsetHeight}},t._getAllowedOffsets=function(){var e=this._getFullDelta();if(!(e.y>=0&&e.x>=0))return{top:0,bottom:0,left:0,right:0};var t=this._getElementPosition(),n=this._getContainerPosition(),i=this._getOuterDelta();return{top:t.top-n.top+i.y,bottom:-t.top+n.top+e.y,left:t.left-n.left+i.x,right:-t.left+n.left+e.x}},t._moveByOffset=function(e){var t=(0,i.locate)(this._draggableElement),n={left:t.left+e.left,top:t.top+e.top};(0,i.move)(this._draggableElement,n)},e}();t.default=h,e.exports=t.default,e.exports.default=t.default},49314:function(e,t,n){t.OverlayPositionController=t.OVERLAY_POSITION_ALIASES=void 0;var i=d(n(68374)),o=n(35922),a=n(13306),r=d(n(49387)),s=n(31648),l=n(58201),u=n(77695);function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var h=(0,l.getWindow)(),f={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}};t.OVERLAY_POSITION_ALIASES=f;var p={h:0,v:0},g=function(){function e(e){var t=e.position,n=e.target,i=e.container,o=e.$root,a=e.$content,r=e.$wrapper,s=e.onPositioned,l=e.onVisualPositionChanged,u=e.dragOutsideBoundary,d=e.dragAndResizeArea,c=e.outsideDragFactor,h=e.restorePosition,f=e._fixWrapperPosition;this._props={position:t,target:n,container:i,dragOutsideBoundary:u,dragAndResizeArea:d,outsideDragFactor:c,restorePosition:h,onPositioned:s,onVisualPositionChanged:l,_fixWrapperPosition:f},this._$root=o,this._$content=a,this._$wrapper=r,this._$markupContainer=void 0,this._$wrapperCoveredElement=void 0,this._shouldRenderContentInitialPosition=!0,this._visualPosition=void 0,this._initialPosition=void 0,this._previousVisualPosition=void 0,this._$dragResizeContainer=void 0,this._outsideDragFactor=void 0,this.updateContainer(i),this.updatePosition(t,n),this._updateDragResizeContainer(),this._updateOutsideDragFactor()}var t,n,l=e.prototype;return l.restorePositionOnNextRender=function(e){this._shouldRenderContentInitialPosition=e||!this._visualPosition},l.openingHandled=function(){var e=this._props.restorePosition;this.restorePositionOnNextRender(e)},l.dragHandled=function(){this.restorePositionOnNextRender(!1)},l.resizeHandled=function(){this.restorePositionOnNextRender(!1)},l.updateTarget=function(e){this._props.target=e,this.updatePosition(this._props.position,e)},l.updatePosition=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._props.target;this._props.position=e,this._position=this._normalizePosition(e,t),this._updateWrapperCoveredElement()},l.updateContainer=function(e){this._props.container=e;var t=null!=e?e:(0,u.value)(),n=this._$root.closest(t);n.length||(n=(0,i.default)(t).first()),this._$markupContainer=n.length?n:this._$root.parent(),this._updateWrapperCoveredElement(),this._updateDragResizeContainer()},l.detectVisualPositionChange=function(e){this._updateVisualPositionValue(),this._raisePositionedEvents(e)},l.positionContent=function(){this._shouldRenderContentInitialPosition?this._renderContentInitialPosition():((0,s.move)(this._$content,this._visualPosition),this.detectVisualPositionChange())},l.positionWrapper=function(){this._$wrapperCoveredElement&&r.default.setup(this._$wrapper,{my:"top left",at:"top left",of:this._$wrapperCoveredElement})},l.isAllWindowCoveredByWrapper=function(){return!this._$wrapperCoveredElement||(0,o.isWindow)(this._$wrapperCoveredElement.get(0))},l.styleWrapperPosition=function(){var e=this.isAllWindowCoveredByWrapper()||this._props._fixWrapperPosition?"fixed":"absolute";this._$wrapper.css("position",e)},l._updateVisualPositionValue=function(){this._previousVisualPosition=this._visualPosition,this._visualPosition=(0,s.locate)(this._$content)},l._renderContentInitialPosition=function(){this._renderBoundaryOffset(),(0,s.resetPosition)(this._$content);var e=this._$wrapper.css("overflow");this._$wrapper.css("overflow","hidden");var t=r.default.setup(this._$content,this._position);this._$wrapper.css("overflow",e),this._initialPosition=t,this.detectVisualPositionChange()},l._raisePositionedEvents=function(e){var t=this._previousVisualPosition,n=this._visualPosition;((null==t?void 0:t.top)!==n.top||(null==t?void 0:t.left)!==n.left)&&this._props.onVisualPositionChanged({previousPosition:t,position:n,event:e}),this._props.onPositioned({position:this._initialPosition})},l._updateOutsideDragFactor=function(){this._outsideDragFactor=this._getOutsideDragFactor()},l._getOutsideDragFactor=function(){return this._props.dragOutsideBoundary?1:this._props.outsideDragFactor},l._updateDragResizeContainer=function(){this._$dragResizeContainer=this._getDragResizeContainer()},l._getDragResizeContainer=function(){return this._props.dragOutsideBoundary?(0,i.default)(h):this._props.dragAndResizeArea?(0,i.default)(this._props.dragAndResizeArea):(0,u.originalViewPort)().get(0)||this._props.container?this._$markupContainer:(0,i.default)(h)},l._updateWrapperCoveredElement=function(){this._$wrapperCoveredElement=this._getWrapperCoveredElement()},l._renderBoundaryOffset=function(){var e,t=null!==(e=this._position)&&void 0!==e?e:{boundaryOffset:p};this._$content.css("margin","".concat(t.v,"px ").concat(t.h,"px"))},l._getWrapperCoveredElement=function(){var e=this._props.container;return e?(0,i.default)(e):this._position?(0,i.default)((0,o.isEvent)(this._position.of)?h:this._position.of||h):void 0},l._normalizePosition=function(e,t){var n={of:t,boundaryOffset:p};return(0,o.isDefined)(e)?(0,a.extend)(!0,{},n,this._positionToObject(e)):n},l._positionToObject=function(e){return(0,o.isString)(e)?(0,a.extend)({},f[e]):e},t=e,(n=[{key:"$container",get:function(){return this._$markupContainer}},{key:"$dragResizeContainer",get:function(){return this._$dragResizeContainer}},{key:"outsideDragFactor",get:function(){return this._outsideDragFactor},set:function(e){this._props.outsideDragFactor=e,this._updateOutsideDragFactor()}},{key:"fixWrapperPosition",set:function(e){this._props._fixWrapperPosition=e,this.styleWrapperPosition()}},{key:"dragAndResizeArea",set:function(e){this._props.dragAndResizeArea=e,this._updateDragResizeContainer()}},{key:"dragOutsideBoundary",set:function(e){this._props.dragOutsideBoundary=e,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}},{key:"restorePosition",set:function(e){this._props.restorePosition=e}}])&&c(t.prototype,n),e}();t.OverlayPositionController=g},89799:function(e,t,n){t.default=void 0;var i=n(58664),o=L(n(87209)),a=L(n(99393)),r=L(n(20530)),s=L(n(73349)),l=n(6415),u=L(n(68374)),d=n(10688),c=n(89386),h=n(20576),f=n(62754),p=n(3532),g=n(13306),m=n(95479),_=L(n(24311)),v=n(35922),y=n(77695),x=n(58201),b=L(n(17381)),w=L(n(55994)),C=n(23174),S=L(n(93786)),k=n(72918),D=n(39611),I=n(80506),T=n(4928),E=L(n(46743)),A=L(n(77601)),O=n(31421),P=L(n(92591)),M=L(n(14390)),R=L(n(47810)),B=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==H(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var r=o?Object.getOwnPropertyDescriptor(e,a):null;r&&(r.get||r.set)?Object.defineProperty(i,a,r):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}(n(85421)),V=L(n(91784)),F=n(49314);function L(e){return e&&e.__esModule?e:{default:e}}function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var N=_.default.add,z=(0,x.getWindow)(),W=y.changeCallback,G="dx-inner-overlay",j="dx-state-invisible",q=["onShowing","onShown","onHiding","onHidden","onPositioned","onResizeStart","onResize","onResizeEnd","onVisualPositionChanged"],$=[],K="dx-state-disabled",U="dx-prevent-safari-scrolling";N((function(){w.default.subscribeGlobal(s.default.getDocument(),S.default.down,(function(e){for(var t=$.length-1;t>=0;t--)if(!$[t]._proxiedDocumentDownHandler(e))return}))}));var Y=M.default.inherit({_supportedKeys:function(){var e=this;return(0,g.extend)(this.callBase(),{escape:function(){this.hide()},upArrow:function(t){e._drag.moveUp(t)},downArrow:function(t){e._drag.moveDown(t)},leftArrow:function(t){e._drag.moveLeft(t)},rightArrow:function(t){e._drag.moveRight(t)}})},_getDefaultOptions:function(){var e=this;return(0,g.extend)(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",wrapperAttr:{},position:(0,g.extend)({},F.OVERLAY_POSITION_ALIASES.center),width:"80vw",minWidth:null,maxWidth:null,height:"80vh",minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},dragOutsideBoundary:!1,closeOnOutsideClick:!1,copyRootClassesToWrapper:!1,_ignoreCopyRootClassesToWrapperDeprecation:!1,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,dragAndResizeArea:void 0,outsideDragFactor:0,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,innerOverlay:!1,restorePosition:!0,target:void 0,container:void 0,hideTopOverlayHandler:function(){e.hide()},hideOnParentScroll:!1,onPositioned:null,propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0,_fixWrapperPosition:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!(0,x.hasWindow)()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),(0,g.extend)(this._optionsByReference,{animation:!0})},$wrapper:function(){return this._$wrapper},_eventBindingTarget:function(){return this._$content},_setDeprecatedOptions:function(){this.callBase(),(0,g.extend)(this._deprecatedOptions,{elementAttr:{since:"21.2",message:'Use the "wrapperAttr" option instead'}})},ctor:function(e,t){this.callBase(e,t),t&&t.copyRootClassesToWrapper&&!t._ignoreCopyRootClassesToWrapperDeprecation&&b.default.log("W0001",this.NAME,"copyRootClassesToWrapper","21.2",'Use the "wrapperAttr" option instead')},_init:function(){var e=this;this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._customWrapperClass=null,this._$wrapper=(0,u.default)("<div>").addClass("dx-overlay-wrapper"),this._$content=(0,u.default)("<div>").addClass("dx-overlay-content"),this._initInnerOverlayClass();var t=this.$element();this.option("copyRootClassesToWrapper")&&this._$wrapper.addClass(t.attr("class")),t.addClass("dx-overlay"),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),this._toggleViewPortSubscription(!0),this._initHideTopOverlayHandler(this.option("hideTopOverlayHandler")),this._parentsScrollSubscriptionInfo={handler:function(t){e._targetParentsScrollHandler(t)}},this._updateResizeCallbackSkipCondition(),this.warnPositionAsFunction()},warnPositionAsFunction:function(){(0,v.isFunction)(this.option("position"))&&b.default.log("W0018")},_initOptions:function(e){this._setAnimationTarget(e.target),this.callBase(e)},_initInnerOverlayClass:function(){this._$content.toggleClass(G,this.option("innerOverlay"))},_setAnimationTarget:function(e){if((0,v.isDefined)(e)){var t=this.option();["animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"].forEach((function(n){for(var i=n.split("."),o=t;o;){if(1===i.length){(0,v.isPlainObject)(o)&&(o[i.shift()]=e);break}o=o[i.shift()]}}))}},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=e},_initActions:function(){var e=this;this._actions={},(0,m.each)(q,(function(t,n){e._actions[n]=e._createActionByOption(n,{excludeValidators:["disabled","readOnly"]})||h.noop}))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_areContentDimensionsRendered:function(e){var t,n,i,o,a,r=null===(t=e.contentBoxSize)||void 0===t?void 0:t[0];if(r)return parseInt(r.inlineSize,10)===(null===(o=this._renderedDimensions)||void 0===o?void 0:o.width)&&parseInt(r.blockSize,10)===(null===(a=this._renderedDimensions)||void 0===a?void 0:a.height);var s=e.contentRect;return parseInt(s.width,10)===(null===(n=this._renderedDimensions)||void 0===n?void 0:n.width)&&parseInt(s.height,10)===(null===(i=this._renderedDimensions)||void 0===i?void 0:i.height)},_contentResizeHandler:function(e){this._shouldSkipContentResize(e)||this._renderGeometry({shouldOnlyReposition:!0})},_updateResizeCallbackSkipCondition:function(){var e=this,t=this._doesShowAnimationChangeDimensions();this._shouldSkipContentResize=function(n){return t&&e._showAnimationProcessing||e._areContentDimensionsRendered(n)}},_doesShowAnimationChangeDimensions:function(){var e=this.option("animation");return["to","from"].some((function(t){var n,i=null==e||null===(n=e.show)||void 0===n?void 0:n[t];return(0,v.isObject)(i)&&("width"in i||"height"in i)}))},_observeContentResize:function(e){var t=this;if(this.option("useResizeObserver")){var n=this._$content.get(0);e?V.default.observe(n,(function(e){t._contentResizeHandler(e)})):V.default.unobserve(n)}},_initMarkup:function(){this.callBase(),this._renderWrapperAttributes(),this._initPositionController()},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=this.option("closeOnOutsideClick");(0,v.isFunction)(t)&&(t=t(e));var n=(0,u.default)(z.document).is(e.target)||(0,p.contains)(z.document,e.target),i=(0,u.default)(e.target).closest(".".concat(G)).length;return n&&!i&&!(this._$content.is(e.target)||(0,p.contains)(this._$content.get(0),e.target))&&t&&this._outsideClickHandler(e),this.option("propagateOutsideClick")},_outsideClickHandler:function(e){this.option("shading")&&e.preventDefault(),this.hide()},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new d.EmptyTemplate}),this.callBase()},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableBounds();if(n.first||n.last)return e[t]===this}return!1},_overlayStack:function(){return $},_zIndexInitValue:function(){return Y.baseZIndex()},_toggleViewPortSubscription:function(e){var t=this;W.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=function(){t._viewPortChangeHandler.apply(t,arguments)},W.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._positionController.updateContainer(this.option("container")),this._refresh()},_renderWrapperAttributes:function(){var e=this.option().wrapperAttr,t=(0,g.extend)({},e),n=t.class;delete t.class,this.$wrapper().attr(t).removeClass(this._customWrapperClass).addClass(n),this._customWrapperClass=n},_renderVisibilityAnimate:function(e){return this._observeContentResize(e),this._stopAnimation(),e?this._show():this._hide()},_getAnimationConfig:function(){return this._getOptionValue("animation",this)},_animateShowing:function(){var e,t,n,i=this,o=null!==(e=this._getAnimationConfig())&&void 0!==e?e:{},a=this._normalizeAnimation(o.show,"to"),r=null!==(t=null==a?void 0:a.start)&&void 0!==t?t:h.noop,s=null!==(n=null==a?void 0:a.complete)&&void 0!==n?n:h.noop;this._animate(a,(function(){if(!i._isAnimationPaused){i.option("focusStateEnabled")&&w.default.trigger(i._focusTarget(),"focus");for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s.call.apply(s,[i].concat(t)),i._showAnimationProcessing=!1,i._isHidden=!1,i._actions.onShown(),i._toggleSafariScrolling(),i._showingDeferred.resolve()}}),(function(){if(!i._isAnimationPaused){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.call.apply(r,[i].concat(t)),i._showAnimationProcessing=!0}}))},_show:function(){var e=this;if(this._showingDeferred=new f.Deferred,this._parentHidden=this._isParentHidden(),this._showingDeferred.done((function(){delete e._parentHidden})),this._parentHidden)return this._isHidden=!0,this._showingDeferred.resolve();if(this._currentVisible)return(new f.Deferred).resolve().promise();if(this._currentVisible=!0,this._isHidingActionCanceled)delete this._isHidingActionCanceled,this._showingDeferred.resolve();else{var t=function(){if(e._renderVisibility(!0),e._isShowingActionCanceled)return delete e._isShowingActionCanceled,void e._showingDeferred.resolve();e._animateShowing()};this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(t)):t()}return this._showingDeferred.promise()},_normalizeAnimation:function(e,t){return e&&(e=(0,g.extend)({type:"slide",skipElementInitialStyles:!0},e))[t]&&"object"===H(e[t])&&(0,g.extend)(e[t],{position:this._positionController._position}),e},_animateHiding:function(){var e,t,n,i=this,o=null!==(e=this._getAnimationConfig())&&void 0!==e?e:{},a=this._normalizeAnimation(o.hide,"from"),r=null!==(t=null==a?void 0:a.start)&&void 0!==t?t:h.noop,s=null!==(n=null==a?void 0:a.complete)&&void 0!==n?n:h.noop;this._animate(a,(function(){var e;i._$content.css("pointerEvents",""),i._renderVisibility(!1);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];s.call.apply(s,[i].concat(n)),i._hideAnimationProcessing=!1,null===(e=i._actions)||void 0===e||e.onHidden(),i._hidingDeferred.resolve()}),(function(){i._$content.css("pointerEvents","none");for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.call.apply(r,[i].concat(t)),i._hideAnimationProcessing=!0}))},_hide:function(){if(!this._currentVisible)return(new f.Deferred).resolve().promise();this._currentVisible=!1,this._hidingDeferred=new f.Deferred;var e={cancel:!1};return this._isShowingActionCanceled?this._hidingDeferred.resolve():(this._actions.onHiding(e),this._toggleSafariScrolling(),e.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),this._hidingDeferred.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animateHiding())),this._hidingDeferred.promise()},_forceFocusLost:function(){var e=s.default.getActiveElement();this._$content.find(e).length&&(0,p.resetActiveElement)()},_animate:function(e,t,n){e?(n=n||e.start||h.noop,o.default.animate(this._$content,(0,g.extend)({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){o.default.stop(this._$content,!0)},_renderVisibility:function(e){if(!e||!this._isParentHidden()){if(this._currentVisible=e,this._stopAnimation(),e||(0,I.triggerHidingEvent)(this._$content),this._toggleVisibility(e),this._$content.toggleClass(j,!e),this._updateZIndexStackPosition(e),e){this._positionController.openingHandled(),this._renderContent();var t={cancel:!1};if(this._actions.onShowing(t),t.cancel)return this._toggleVisibility(!1),this._$content.toggleClass(j,!0),this._updateZIndexStackPosition(!1),this._moveFromContainer(),this._isShowingActionCanceled=!0,void this.option("visible",!1);this._moveToContainer(),this._renderGeometry(),(0,I.triggerShownEvent)(this._$content),(0,I.triggerResizeEvent)(this._$content)}else this._moveFromContainer();this._toggleShading(e),this._toggleSubscriptions(e)}},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=(0,c.inArray)(this,t);e?(-1===n&&(this._zIndex=B.create(this._zIndexInitValue()),t.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):-1!==n&&(t.splice(n,1),B.remove(this._zIndex))},_toggleShading:function(e){this._$wrapper.toggleClass("dx-overlay-modal",this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass("dx-overlay-shader",e&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler.apply(e,arguments)}},_toggleTabTerminator:function(e){var t=(0,D.addNamespace)("keydown",this.NAME);e?w.default.on(s.default.getDocument(),t,this._proxiedTabTerminatorHandler):w.default.off(s.default.getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,n={first:null,last:null},i=0;i<=t&&(!n.first&&e.eq(i).is(O.tabbable)&&(n.first=e.eq(i)),!n.last&&e.eq(t-i).is(O.tabbable)&&(n.last=e.eq(t-i)),!n.first||!n.last);i++);return n},_tabKeyHandler:function(e){if("tab"===(0,D.normalizeKeyName)(e)&&this._isTopOverlay()){var t=this._findTabbableBounds(),n=t.first,i=t.last,o=!e.shiftKey&&e.target===i.get(0),a=e.shiftKey&&e.target===n.get(0),r=0===t.length,s=!(0,p.contains)(this._$wrapper.get(0),e.target);if(o||a||r||s){e.preventDefault();var l=e.shiftKey?i:n;w.default.trigger(l,"focusin"),w.default.trigger(l,"focus")}}},_toggleSubscriptions:function(e){(0,x.hasWindow)()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e?T.hideCallback.add(this._hideTopOverlayHandler):T.hideCallback.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){var t,n=(0,D.addNamespace)("scroll",this.NAME),i=null!==(t=this._parentsScrollSubscriptionInfo)&&void 0!==t?t:{},o=i.prevTargets,a=i.handler;w.default.off(o,n,a);var s=this.option("hideOnParentScroll");if(e&&s){var l=this._$wrapper.parents();"desktop"===r.default.real().deviceType&&(l=l.add(z)),w.default.on(l,n,a),this._parentsScrollSubscriptionInfo.prevTargets=l}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("hideOnParentScroll");(0,v.isFunction)(n)&&(t=n(e)),t||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering");this.option("visible")&&this._isParentHidden()?this._isHidden=!0:this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase())},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var e=this.$element().parent();if(e.is(":visible"))return!1;var t=!1;return e.add(e.parents()).each((function(){if("none"===(0,u.default)(this).css("display"))return t=!0,!1})),t||!s.default.getBody().contains(e.get(0))},_renderContentImpl:function(){var e=this,t=new f.Deferred,n=this.option("contentTemplate"),i=this._getTemplate(n),o=this._templateManager.anonymousTemplateName===n;return i&&i.render({container:(0,l.getPublicElement)(this.$content()),noModel:!0,transclude:o,onRendered:function(){t.resolve()}}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator(),t.done((function(){e.option("visible")&&e._moveToContainer()})),t.promise()},_getPositionControllerConfig:function(){var e=this.option(),t=e.target,n=e.container,i=e.dragAndResizeArea,o=e.dragOutsideBoundary,a=e.outsideDragFactor,r=e._fixWrapperPosition,s=e.restorePosition;return{target:t,container:n,$root:this.$element(),$content:this._$content,$wrapper:this._$wrapper,onPositioned:this._actions.onPositioned,onVisualPositionChanged:this._actions.onVisualPositionChanged,restorePosition:s,dragAndResizeArea:i,dragOutsideBoundary:o,outsideDragFactor:a,_fixWrapperPosition:r}},_initPositionController:function(){this._positionController=new F.OverlayPositionController(this._getPositionControllerConfig())},_renderDrag:function(){var e=this._getDragTarget();if(e){var t={dragEnabled:this.option("dragEnabled"),handle:e.get(0),draggableElement:this._$content.get(0),positionController:this._positionController};this._drag?this._drag.init(t):this._drag=new A.default(t)}},_renderResize:function(){var e=this;this._resizable=this._createComponent(this._$content,E.default,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:function(t){e._resizeEndHandler(t),e._observeContentResize(!0)},onResize:function(t){e._actions.onResize(t)},onResizeStart:function(t){e._observeContentResize(!1),e._actions.onResizeStart(t)},minHeight:100,minWidth:100,area:this._positionController.$dragResizeContainer})},_resizeEndHandler:function(e){var t=this._resizable.option("width"),n=this._resizable.option("height");t&&this._setOptionWithoutOptionChange("width",t),n&&this._setOptionWithoutOptionChange("height",n),this._cacheDimensions(),this._positionController.resizeHandled(),this._positionController.detectVisualPositionChange(e.event),this._actions.onResizeEnd(e)},_renderScrollTerminator:function(){var e=this._$wrapper,t=(0,D.addNamespace)(C.move,this.NAME);w.default.off(e,t),w.default.on(e,t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(e){e||this._toggleGestureCoverImpl(e)},_clearSelection:h.noop,isNative:!0},(function(e){var t=e.originalEvent.originalEvent,n=(t||{}).type,i="wheel"===n,o="mousemove"===n,a=i&&!(0,D.isCommandKeyPressed)(e);e._cancelPreventDefault=!0,t&&!1!==e.cancelable&&(!o&&!i||a)&&e.preventDefault()}))},_getDragTarget:function(){return this.$content()},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var e=this.$element(),t=void 0!==this.option("container")?this._positionController.$container:P.default.getSwatchContainer(e);t&&t[0]===e.parent()[0]&&(t=e),this._$wrapper.appendTo(t)},_renderGeometry:function(e){var t=this.option(),n=t.visible,i=t.useResizeObserver;if(n&&(0,x.hasWindow)()){var o=this._showAnimationProcessing&&!(null!=e&&e.forceStopAnimation)&&i;this._isAnimationPaused=o||void 0,this._stopAnimation(),null!=e&&e.shouldOnlyReposition?this._positionController.positionContent():this._renderGeometryImpl(),o&&(this._animateShowing(),this._isAnimationPaused=void 0)}},_cacheDimensions:function(){this.option("useResizeObserver")&&(this._renderedDimensions={width:parseInt((0,i.getWidth)(this._$content),10),height:parseInt((0,i.getHeight)(this._$content),10)})},_renderGeometryImpl:function(){this._positionController.updatePosition(this._getOptionValue("position")),this._renderWrapper(),this._renderDimensions(),this._cacheDimensions(),this._renderPosition()},_renderPosition:function(){this._positionController.positionContent()},_isAllWindowCovered:function(){return this._positionController.isAllWindowCoveredByWrapper()&&this.option("shading")},_toggleSafariScrolling:function(){var e=this.option("visible"),t=(0,u.default)(s.default.getBody()),n="ios"===r.default.real().platform&&R.default.safari,i=this._isAllWindowCovered(),o=t.hasClass(U),a=!o&&e&&i,l=o&&(!e||!i||this._disposed);n&&(l?(t.removeClass(U),z.scrollTo(0,this._cachedBodyScrollTop),this._cachedBodyScrollTop=void 0):a&&(this._cachedBodyScrollTop=z.pageYOffset,t.addClass(U)))},_renderWrapper:function(){this._positionController.styleWrapperPosition(),this._renderWrapperDimensions(),this._positionController.positionWrapper()},_renderWrapperDimensions:function(){var e,t,n=this._positionController._$wrapperCoveredElement;if(n){var o=this._positionController.isAllWindowCoveredByWrapper(),a=s.default.getDocumentElement();e=o?a.clientWidth:(0,i.getOuterWidth)(n),t=o?z.innerHeight:(0,i.getOuterHeight)(n),this._$wrapper.css({width:e,height:t})}},_renderDimensions:function(){var e=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",e),maxWidth:this._getOptionValue("maxWidth",e),minHeight:this._getOptionValue("minHeight",e),maxHeight:this._getOptionValue("maxHeight",e),width:this._getOptionValue("width",e),height:this._getOptionValue("height",e)})},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){var e=this;this._keyboardListenerId=k.keyboard.on(this._$content,null,(function(t){return e._keyboardHandler(t)}))},_keyboardHandler:function(e){var t=e.originalEvent,n=(0,u.default)(t.target);!n.is(this._$content)&&this.option("ignoreChildEvents")||this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(e){e?this.option("visible")&&this._renderVisibilityAnimate(e):this._renderVisibilityAnimate(e)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._observeContentResize(!1),this._cleanFocusState()},_stopShowTimer:function(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){o.default.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this._parentsScrollSubscriptionInfo=null,this.callBase(),this._toggleSafariScrolling(),B.remove(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(K,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass("dx-rtl",e)},_optionChanged:function(e){var t,n=this,i=e.value;if((0,c.inArray)(e.name,q)>-1)this._initActions();else switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":this._toggleShading(this.option("visible")),this._toggleSafariScrolling();break;case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":this._renderGeometry(),null===(t=this._resizable)||void 0===t||t.option(e.name,e.value);break;case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":this._renderGeometry();break;case"position":this._positionController.updatePosition(this.option("position")),this._positionController.restorePositionOnNextRender(!0),this._renderGeometry(),this._toggleSafariScrolling();break;case"visible":this._renderVisibilityAnimate(i).done((function(){n._animateDeferred&&n._animateDeferred.resolveWith(n)}));break;case"target":this._positionController.updateTarget(i),this._setAnimationTarget(i),this._invalidate();break;case"container":var o;this._positionController.updateContainer(i),this._invalidate(),this._toggleSafariScrolling(),this.option("resizeEnabled")&&(null===(o=this._resizable)||void 0===o||o.option("area",this._positionController.$dragResizeContainer));break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"hideTopOverlayHandler":this._toggleHideTopOverlayCallback(!1),this._initHideTopOverlayHandler(e.value),this._toggleHideTopOverlayCallback(this.option("visible"));break;case"hideOnParentScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"propagateOutsideClick":break;case"animation":this._updateResizeCallbackSkipCondition();break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.callBase(e);break;case"_fixWrapperPosition":this._positionController.fixWrapperPosition=i;break;case"wrapperAttr":this._renderWrapperAttributes();break;case"dragAndResizeArea":this._positionController.dragAndResizeArea=i,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer),this._positionController.positionContent();break;case"dragOutsideBoundary":this._positionController.dragOutsideBoundary=i,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer);break;case"outsideDragFactor":this._positionController.outsideDragFactor=i;break;case"restorePosition":this._positionController.restorePosition=e.value;break;default:this.callBase(e)}},toggle:function(e){var t=this;e=void 0===e?!this.option("visible"):e;var n=new f.Deferred;if(e===this.option("visible"))return n.resolveWith(this,[e]).promise();var i=new f.Deferred;return this._animateDeferred=i,this.option("visible",e),i.promise().done((function(){delete t._animateDeferred,n.resolveWith(t,[t.option("visible")])})),n.promise()},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return(0,l.getPublicElement)(this._$content)},repaint:function(){this._contentAlreadyRendered?(this._positionController.restorePositionOnNextRender(!0),this._renderGeometry({forceStopAnimation:!0}),(0,I.triggerResizeEvent)(this._$content)):this.callBase()}});Y.baseZIndex=function(e){return B.base(e)},(0,a.default)("dxOverlay",Y);var Z=Y;t.default=Z,e.exports=t.default,e.exports.default=t.default},13660:function(e,t,n){t.getElementMaxHeightByWindow=void 0;var i,o=n(58664),a=(i=n(68374))&&i.__esModule?i:{default:i},r=n(58201),s=n(35922);t.getElementMaxHeightByWindow=function(e,t){var n,i=(0,a.default)((0,r.getWindow)()),l=e.offset().top;if((0,s.isNumeric)(t)){if(t<l)return l-t;n=(0,o.getInnerHeight)(i)-t+i.scrollTop()}else{var u=l-i.scrollTop(),d=(0,o.getInnerHeight)(i)-u-(0,o.getOuterHeight)(e);n=Math.max(u,d)}return.9*n}},85421:function(e,t,n){t.remove=t.create=t.clearStack=t.base=void 0;var i=n(20576),o=1500,a=[];t.base=function(e){return o=(0,i.ensureDefined)(e,o)},t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=a.length,n=(t?a[t-1]:e)+1;return a.push(n),n},t.remove=function(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)},t.clearStack=function(){a=[]}},79383:function(e,t,n){var i;t.default=void 0;var o=((i=n(47854))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},96089:function(e,t,n){var i;t.default=void 0;var o=((i=n(41e3))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},98713:function(e,t,n){t.default=void 0;var i=n(9234),o=x(n(67403)),a=n(20576),r=n(35922),s=n(13306),l=n(89386),u=n(95479),d=n(62754),c=x(n(38377)),h=n(80566),f=n(78008),p=n(31451),g=x(n(74658)),m=n(26398),_=n(65365),v=n(11383),y=n(87280);function x(e){return e&&e.__esModule?e:{default:e}}var b={row:"rows",column:"columns",data:"values",filter:"filters"},w=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],C=["format","selector","customizeText","caption"],S=C.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);function k(e,t){var n=e._initProperties||{};(0,u.each)(t,(function(t,i){Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}))}function D(e,t){k(e,t),(0,r.isDefined)(e.caption)||(0,y.setFieldProperty)(e,"caption",function(e){var t=e.dataField||e.groupName||"",n=(e.summaryType||"").toLowerCase();return(0,r.isString)(e.groupInterval)&&(t+="_"+e.groupInterval),n&&"custom"!==n?(n=n.replace(/^./,n[0].toUpperCase()),t.length&&(n=" ("+n+")")):n="",(0,f.titleize)(t)+n}(e))}function I(e){return e.rows.length||e.columns.length||e.values.length}var T=c.default.inherit(function(){var e=function(e,t){if(e._cacheByPath)return e._cacheByPath[t.join(".")]||null},t=function e(t,n){var i,o,a=-1;if(t)for(i=0;i<t.length;i++)void 0!==(o=t[i]).index&&(a=Math.max(a,o.index)),o.children?a=Math.max(a,e(o.children)):o.collapsedChildren&&(a=Math.max(a,e(o.collapsedChildren)));return(0,r.isDefined)(n)&&(a=Math.max(a,n)),a},n=function(e,n,i,o){var a,r=t(i)+1,s=t(e,o)+1,l=[],u=!1,c=new d.Deferred;if(n.children&&n.children.length===i.length)for(var h=0;h<i.length;h++){var f=i[h];void 0!==f.index&&(void 0===n.children[h].index?(f.index=l[f.index]=s++,n.children[h]=f):l[f.index]=n.children[h].index)}else{for(u=!0,a=0;a<r;a++)l[a]=s++;n.children=i}return(0,d.when)((0,y.foreachTreeAsync)(n.children,(function(e){u&&(e[0].index=l[e[0].index])}))).done((function(){c.resolve(l)})),c},f=function(n,i,o){var a=new d.Deferred,r=o>=0&&t(n,o)+1,s=[];return(0,d.when)((0,y.foreachTreeAsync)(n,(function(e){delete e[0].collapsedChildren}))).done((function(){(0,d.when)((0,y.foreachTreeAsync)(i,(function(t,i){var o=t[0];if(o.index>=0){var a=e(n,(0,y.createPath)(t));if(a&&a.index>=0)s[o.index]=a.index;else if(r){var l=(0,y.createPath)(t.slice(1));a=e(n,l);var u=l.length?a&&a.children:n;u&&(u[i]=o,o.index=s[o.index]=r++)}}}))).done((function(){a.resolve(s)}))})),a},x=function(e,t,n,i){var o,a,s,l,u,d,c=e.values;if(t)for(o=0;o<=t.length;o++)if(s=t[o],u=n[o],(0,r.isDefined)(u)||(u=e.grandTotalRowIndex),s&&(0,r.isDefined)(u))for(c[u]||(c[u]=[]),a=0;a<=s.length;a++)l=s[a],d=i[a],(0,r.isDefined)(d)||(d=e.grandTotalColumnIndex),(0,r.isDefined)(l)&&(0,r.isDefined)(d)&&(c[u][d]=l)};function T(e,t){return new(e.remoteOperations||e.paginate?g.default:p.LocalStore)((0,s.extend)((0,i.normalizeDataSourceOptions)(e),{onChanged:null,onLoadingChanged:null,onProgressChanged:t}))}function E(e,t,n,i){var o=[],a=t&&t[n]||[],r=i&&i[n]||[];return(0,y.foreachTree)(e[n],(function(e){var t=e[0],n=(0,y.createPath)(e);t.children&&a[n.length-1]&&!a[n.length-1].expanded&&n.length<a.length&&(!i||function(e,t,n){for(var i=0;i<n;i++)if(!e[i]||!t[i]||e[i].index!==t[i].index)return!1;return!0}(a,r,n.length))&&o.push(n.slice())}),!0),o}function A(e,t,n,i){return t?(0,u.each)(i,(function(i,o){if(n)e[o]=t[o];else{if(("summaryType"===o||"summaryDisplayMode"===o)&&void 0===t[o])return;(0,y.setFieldProperty)(e,o,t[o])}})):k(e,i),e}function O(e,t){var n=[];return(0,u.each)(e,(function(e,i){n.push(A({dataField:i.dataField,name:i.name},i,!0,t))})),n}function P(e){return e.name?e.name:e.dataField+""}function M(e,t){var n=[];return(0,u.each)(e||[],(function(e,i){P(i)===t&&n.push(i)})),n}function R(e,t){e=e||[];var n,i={};return(0,u.each)(t,(function(e,o){n=P(o),i[n]||(i[n]=M(t,P(o)))})),(0,u.each)(i,(function(t,n){!function(e,t){e=e||[],(0,u.each)(t,(function(t,n){A(n,e[t],!1,w),D(n,C)}))}(M(e,t),n)})),t}function B(e){e.sort((function(e,t){return e.areaIndex-t.areaIndex||e.groupIndex-t.groupIndex}))}function V(e,t){var n=e.groupName||"";return(e.dataField||n)+(e.groupInterval?n+e.groupInterval:"NOGROUP")+(t?"":n)}function F(e,t,n){var i=[],o={},a={},l=(0,y.getFieldsDataType)(e);return t?((0,u.each)(t,(function(e,t){o[V(t,n)]=t})),(0,u.each)(e,(function(e,t){var r,u=V(t,n),d=o[u]||a[u];d?(d._initProperties&&k(d,S),r=(0,s.extend)({},d,t,{_initProperties:null})):o[u]=r=t,(0,s.extend)(r,{dataType:l[t.dataField]}),delete o[u],a[u]=d,i.push(r)})),n&&(0,u.each)(o,(function(e,t){i.push(t)}))):i=e,i.push.apply(i,[]),function(e){e.forEach((function(t){if(t.groupName&&t.groupInterval&&void 0===t.groupIndex){var n=e.filter((function(e){return e.groupName===t.groupName&&(0,r.isNumeric)(e.groupIndex)})).map((function(e){return e.groupIndex})).reduce((function(e,t){return Math.max(e,t)}),-1);t.groupIndex=n+1}}))}(i),i}function L(e){var t,n=new d.Deferred,i=e._store,o=i&&i.getFields(e._fields);return(0,d.when)(o).done((function(i){e._storeFields=i,t=F(e._fields,i,e._retrieveFields),n.resolve(t)})).fail(n.reject),n}function H(e,t,n){return(0,y.foreachTreeAsync)(e[n],(function(e){var i=e[0];i.text=i.text||(0,y.formatValue)(i.value,t[n][(0,y.createPath)(e).length-1])}))}function N(e,t){return(0,d.when)(H(t,e,"columns"),H(t,e,"rows"))}function z(e){var t=new d.Deferred,n={};return(0,d.when)((0,y.foreachTreeAsync)(e,(function(e){var t=(0,y.createPath)(e).join(".");n[t]=e[0]}))).done(t.resolve),e._cacheByPath=n,t}function W(e,t){var n=[];return(0,u.each)(e,(function(){(function(e,t){var n="data"===t||!1!==e.visible;return e.area===t&&!(0,r.isDefined)(e.groupIndex)&&n})(this,t)&&n.push(this)})),n}return{ctor:function(e){e=e||{},this._eventsStrategy=new h.EventsStrategy(this);var t=this,n=function(e,t){var n,i;return(0,r.isPlainObject)(e)&&e.load?n=T(e,t):(e&&!e.store&&(e={store:e}),"xmla"===(i=e.store).type?n=new _.XmlaStore(i):(0,r.isPlainObject)(i)&&i.type||i instanceof o.default||Array.isArray(i)?n=T(e,t):i instanceof c.default&&(n=i)),n}(e,(function(e){t._eventsStrategy.fireEvent("progressChanged",[e])}));t._store=n,t._paginate=!!e.paginate,t._pageSize=e.pageSize||40,t._data={rows:[],columns:[],values:[]},t._loadingCount=0,t._isFieldsModified=!1,(0,u.each)(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(t,n){var i="on"+n[0].toUpperCase()+n.slice(1);Object.prototype.hasOwnProperty.call(e,i)&&this.on(n,e[i])}.bind(this)),t._retrieveFields=!(0,r.isDefined)(e.retrieveFields)||e.retrieveFields,t._fields=e.fields||[],t._descriptions=e.descriptions?(0,s.extend)(t._createDescriptions(),e.descriptions):void 0,n||(0,s.extend)(!0,t._data,e.store||e)},getData:function(){return this._data},getAreaFields:function(e,t){var n=[];return t||"data"===e?B(n=W(this._fields,e)):n=(this._descriptions||{})[b[e]]||[],n},fields:function(e){var t=this;return e&&(t._fields=F(e,t._storeFields,t._retrieveFields),t._fieldsPrepared(t._fields)),t._fields},field:function(e,t){var n,i=this,o=i._fields,a=o&&o[(0,r.isNumeric)(e)?e:(0,y.findField)(o,e)];return a&&t&&((0,u.each)(t,(function(e,t){var i=(0,l.inArray)(e,w)<0;if((0,y.setFieldProperty)(a,e,t,i),"sortOrder"===e){n=a.levels||[];for(var o=0;o<n.length;o++)n[o][e]=t}})),D(a,C),i._descriptions=i._createDescriptions(a),i._isFieldsModified=!0,i._eventsStrategy.fireEvent("fieldChanged",[a])),a},getFieldValues:function(e,t,n){var i,o=this,a=this._fields&&this._fields[e],r=this.store(),l=[],c={columns:l,rows:[],values:this.getAreaFields("data"),filters:t?this._fields.filter((function(e){return e!==a&&e.area&&e.filterValues&&e.filterValues.length})):[],skipValues:!0},h=new d.Deferred;return n&&(i=n.searchValue,c.columnSkip=n.skip,c.columnTake=n.take),a&&r?((0,u.each)(a.levels||[a],(function(){l.push((0,s.extend)({},this,{expanded:!0,filterValues:null,sortOrder:"asc",sortBySummaryField:null,searchValue:i}))})),r.load(c).done((function(e){c.columnSkip&&(e.columns=e.columns.slice(c.columnSkip)),c.columnTake&&(e.columns=e.columns.slice(0,c.columnTake)),N(c,e),c.columnTake||o._sort(c,e),h.resolve(e.columns)})).fail(h)):h.reject(),h},reload:function(){return this.load({reload:!0})},filter:function(){var e=this._store;return e.filter.apply(e,arguments)},load:function(e){var t=this,n=new d.Deferred;function i(){t._delayedLoadTask=void 0,t._descriptions?t._loadCore(e,n):(0,d.when)(L(t)).done((function(i){t._fieldsPrepared(i),t._loadCore(e,n)})).fail(n.reject).fail(t._loadErrorHandler)}return e=e||{},t.beginLoading(),n.fail((function(e){t._eventsStrategy.fireEvent("loadError",[e])})).always((function(){t.endLoading()})),t.store()?t._delayedLoadTask=(0,a.executeAsync)(i):i(),n},createDrillDownDataSource:function(e){return this._store.createDrillDownDataSource(this._descriptions,e)},_createDescriptions:function(e){var t=this.fields(),n={rows:[],columns:[],values:[],filters:[]};(0,u.each)(["row","column","data","filter"],(function(n,i){(0,l.normalizeIndexes)(W(t,i),"areaIndex",e)})),(0,u.each)(t||[],(function(e,i){var o=b[i.area],a=n[o],l=i.groupName;l&&!(0,r.isNumeric)(i.groupIndex)&&(i.levels=function(e,t){return e.filter((function(e){return e.groupName===t.groupName&&(0,r.isNumeric)(e.groupIndex)&&!1!==e.visible})).map((function(e){return(0,s.extend)(e,{areaIndex:t.areaIndex,area:t.area,expanded:(0,r.isDefined)(e.expanded)?e.expanded:t.expanded,dataField:e.dataField||t.dataField,dataType:e.dataType||t.dataType,sortBy:e.sortBy||t.sortBy,sortOrder:e.sortOrder||t.sortOrder,sortBySummaryField:e.sortBySummaryField||t.sortBySummaryField,sortBySummaryPath:e.sortBySummaryPath||t.sortBySummaryPath,visible:e.visible||t.visible,showTotals:(0,r.isDefined)(e.showTotals)?e.showTotals:t.showTotals,showGrandTotals:(0,r.isDefined)(e.showGrandTotals)?e.showGrandTotals:t.showGrandTotals})})).sort((function(e,t){return e.groupIndex-t.groupIndex}))}(t,i)),!a||l&&(0,r.isNumeric)(i.groupIndex)||!1===i.visible&&"data"!==i.area&&"filter"!==i.area||(i.levels&&a!==n.filters&&a!==n.values?(a.push.apply(a,i.levels),i.filterValues&&i.filterValues.length&&n.filters.push(i)):a.push(i))})),(0,u.each)(n,(function(e,t){B(t)}));var i={};return(0,u.each)(n.values,(function(e,o){var a=o.calculateSummaryValue;(0,r.isFunction)(a)&&a((0,v.createMockSummaryCell)(n,t,i))})),n},_fieldsPrepared:function(e){var t=this;t._fields=e,(0,u.each)(e,(function(e,t){t.index=e,D(t,S)}));var n=O(e,["caption"]);t._eventsStrategy.fireEvent("fieldsPrepared",[e]);for(var i=0;i<e.length;i++)e[i].caption!==n[i].caption&&(0,y.setFieldProperty)(e[i],"caption",e[i].caption,!0);t._descriptions=t._createDescriptions()},isLoading:function(){return this._loadingCount>0},state:function(e,t){var n=this;if(!arguments.length)return{fields:O(n._fields,w),columnExpandedPaths:E(n._data,n._descriptions,"columns",n._lastLoadOptions),rowExpandedPaths:E(n._data,n._descriptions,"rows",n._lastLoadOptions)};e=(0,s.extend)({rowExpandedPaths:[],columnExpandedPaths:[]},e),n._descriptions?(n._fields=R(e.fields,n._fields),n._descriptions=n._createDescriptions(),!t&&n.load(e)):(n.beginLoading(),(0,d.when)(L(n)).done((function(i){n._fields=R(e.fields,i),n._fieldsPrepared(i),!t&&n.load(e)})).always((function(){n.endLoading()})))},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(e){var t=this.isLoading();this._loadingCount+=e;var n=this.isLoading();t^n&&this._eventsStrategy.fireEvent("loadingChanged",[n])},_hasPagingValues:function(t,n,i){var o=n+"Take",a=n+"Skip",r=this._data.values,s=this._data[n+"s"],l="row"===n?"column":"row",u=[];if(t.path&&t.area===n){var d=e(s,t.path);if(!(s=d&&d.children))return!1}if(t.oppositePath&&t.area===l){var c=e(s,t.oppositePath);if(!(s=c&&c.children))return!1}for(var h=t[a];h<t[a]+t[o];h++)s[h]&&u.push(s[h].index);return u.every((function(e){if(void 0!==e)return"row"===n?(r[e]||[])[i]:(r[i]||[])[e]}))},_processPagingCacheByArea:function(t,n,i){var o,a=i+"Take",r=i+"Skip",s=this._data[i+"s"],l="row"===i?"column":"row";if(t[a]){if(t.path&&t.area===i){var u=e(s,t.path);s=u&&u.children||[]}if(t.oppositePath&&t.area===l){var d=e(s,t.oppositePath);s=d&&d.children||[]}do{if((o=s[t[r]])&&void 0!==o.index){if(!this._hasPagingValues(t,l,o.index))break;t[r]++,t[a]--}}while(o&&void 0!==o.index&&t[a]);if(t[a]){var c=Math.floor(t[r]/n)*n,h=Math.ceil((t[r]+t[a])/n)*n;t[r]=c,t[a]=h-c}}},_processPagingCache:function(e){var t=this._pageSize;if(!(t<0))for(var n=0;n<e.length;n++)this._processPagingCacheByArea(e[n],t,"row"),this._processPagingCacheByArea(e[n],t,"column")},_loadCore:function(e,t){var n=this,i=this._store,o=this._descriptions,a=e.reload||this.paginate()&&n._isFieldsModified,r=this.paginate(),l=b[e.area];if(e=e||{},i){(0,s.extend)(e,o),e.columnExpandedPaths=e.columnExpandedPaths||E(this._data,e,"columns",n._lastLoadOptions),e.rowExpandedPaths=e.rowExpandedPaths||E(this._data,e,"rows",n._lastLoadOptions),r&&(e.pageSize=this._pageSize),l&&(e.headerName=l),n.beginLoading(),t.always((function(){n.endLoading()}));var u=[e];if(n._eventsStrategy.fireEvent("customizeStoreLoadOptions",[u,a]),a||n._processPagingCache(u),!(u=u.filter((function(e){return!(e.rows.length&&0===e.rowTake||e.columns.length&&0===e.columnTake)}))).length)return void n._update(t);var c=u.map((function(e){return i.load(e)}));d.when.apply(null,c).done((function(){for(var e=arguments,i=0;i<e.length;i++){var o=u[i],l=e[i],d=i===e.length-1;o.path?n.applyPartialDataSource(o.area,o.path,l,!!d&&t,o.oppositePath):r&&!a&&I(n._data)?n.mergePartialDataSource(l,!!d&&t):((0,s.extend)(n._data,l),n._lastLoadOptions=o,n._update(!!d&&t))}})).fail(t.reject)}else n._update(t)},_sort:function(e,t,n){this._store&&!this._paginate&&(0,m.sort)(e,t,n)},paginate:function(){return this._paginate&&this._store&&this._store.supportPaging()},isEmpty:function(){var e=this.getAreaFields("data").filter((function(e){return!1!==e.visible})),t=this.getData();return!e.length||!t.values.length},_update:function(e){var t=this,n=t._descriptions,i=t._data,o=n.values,a=function(e){return e.some((function(e){return e.summaryDisplayMode||e.calculateSummaryValue}))}(o);return(0,d.when)(N(n,i),z(i.rows),z(i.columns)).done((function(){a&&(t._sort(n,i,a),!t.isEmpty()&&(0,v.applyDisplaySummaryMode)(n,i)),t._sort(n,i),!t.isEmpty()&&function(e){return e.some((function(e){return!!e.runningTotal}))}(o)&&(0,v.applyRunningTotal)(n,i),t._data=i,!1!==e&&(0,d.when)(e).done((function(){t._isFieldsModified=!1,t._eventsStrategy.fireEvent("changed"),(0,r.isDefined)(t._data.grandTotalRowIndex)&&(i.grandTotalRowIndex=t._data.grandTotalRowIndex),(0,r.isDefined)(t._data.grandTotalColumnIndex)&&(i.grandTotalColumnIndex=t._data.grandTotalColumnIndex)})),e&&e.resolve(t._data)})),e},store:function(){return this._store},collapseHeaderItem:function(t,n){var i=this,o="column"===t?i._data.columns:i._data.rows,a=e(o,n),r=i.getAreaFields(t)[n.length-1];return!(!a||!a.children||(i._eventsStrategy.fireEvent("expandValueChanging",[{area:t,path:n,expanded:!1}]),r&&(r.expanded=!1),a.collapsedChildren=a.children,delete a.children,i._update(),i.paginate()&&i.load(),0))},collapseAll:function(e){var t=this,n=!1,i=this.field(e)||{},o=[(0,l.inArray)(i,this.getAreaFields(i.area))];i.expanded=!1,i&&i.levels&&(o=[],i.levels.forEach((function(e){o.push((0,l.inArray)(e,t.getAreaFields(i.area))),e.expanded=!1}))),(0,y.foreachTree)(this._data[i.area+"s"],(function(e){var t=e[0],i=(0,y.createPath)(e);t&&t.children&&-1!==o.indexOf(i.length-1)&&(t.collapsedChildren=t.children,delete t.children,n=!0)}),!0),n&&this._update()},expandAll:function(e){var t=this.field(e);t&&t.area&&(t.expanded=!0,t&&t.levels&&t.levels.forEach((function(e){e.expanded=!0})),this.load())},expandHeaderItem:function(t,n){var i=this,o="column"===t?i._data.columns:i._data.rows,a=e(o,n);if(a&&!a.children){var r=!!a.collapsedChildren,s={area:t,path:n,expanded:!0,needExpandData:!r};return i._eventsStrategy.fireEvent("expandValueChanging",[s]),r?(a.children=a.collapsedChildren,delete a.collapsedChildren,i._update()):this.store()&&i.load(s),r}return!1},mergePartialDataSource:function(e,t){var n,i,o=this,a=o._data;e&&e.values&&(e.rows=e.rows||[],e.columns=e.columns||[],n=f(a.rows,e.rows,a.grandTotalColumnIndex),i=f(a.columns,e.columns,a.grandTotalColumnIndex),(0,d.when)(n,i).done((function(n,i){(n.length||i.length)&&x(a,e.values,n,i),o._update(t)})))},applyPartialDataSource:function(t,i,o,a,r){var s,l,u,c,h=this,p=h._data,g="column"===t?p.columns:p.rows,m="column"===t?p.rows:p.columns;o&&o.values&&(o.rows=o.rows||[],o.columns=o.columns||[],s=e(g,i),l=r&&e(m,r),s&&("column"===t?(c=n(g,s,o.columns,p.grandTotalColumnIndex),u=l?n(m,l,o.rows,p.grandTotalRowIndex):f(p.rows,o.rows,p.grandTotalRowIndex)):(u=n(g,s,o.rows,p.grandTotalRowIndex),c=l?n(m,l,o.columns,p.grandTotalColumnIndex):f(p.columns,o.columns,p.grandTotalColumnIndex)),(0,d.when)(u,c).done((function(e,n){("row"===t&&e.length||"column"===t&&n.length)&&x(p,o.values,e,n),h._update(a)}))))},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},dispose:function(){var e=this._delayedLoadTask;this._eventsStrategy.dispose(),e&&e.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}());t.default=T,e.exports=t.default,e.exports.default=t.default},26398:function(e,t,n){t.sort=function(e,t,n){r(t,e,"rows",n),r(t,e,"columns",n)};var i=n(87280),o=n(35922),a=n(95479);function r(e,t,n,r){var s=t[n]||[],l=t.headerName===n?t.path.length:0,u=[];(0,i.foreachDataLevel)(e[n],(function(l,d){var c=s[d]||{},h=u[d]=u[d]||function(e,t,n,r,s){var l=s?"asc":e.sortOrder,u=function(e,t){var n="text";return"none"===e?n="index":(t||"displayText"!==e)&&(n="value"),n}(e.sortBy,s),d=e.sortingMethod?function(t,n){return e.sortingMethod(t,n)}:(0,i.getCompareFunction)((function(e){return e[u]})),c=!s&&function(e,t,n,r){var s=t.values,l=(0,i.findField)(n.values,e.sortBySummaryField),u="rows"===r,d=u?t.columns:t.rows,c=u?t.grandTotalRowIndex:t.grandTotalColumnIndex,h=e.sortBySummaryPath||[],f=h.length?function(e,t){var n=null,o=(t||[]).join(".");return o.length&&(0,i.foreachTree)(e,(function(e){var t=e[0],r=(0,i.createPath)(e).join("."),s=(0,a.map)(e,(function(e){return e.text})).reverse().join(".");if(o===r||t.key&&s===o)return n=e[0].index,!1})),n}(d,h):c;if(s&&s.length&&l>=0&&(0,o.isDefined)(f))return function(e){var t=u?e.index:f,n=u?f:e.index,i=((s[t]||[[]])[n]||[])[l];return(0,o.isDefined)(i)?i:null}}(e,t,n,r),h=c&&(0,i.getCompareFunction)(c);return function(e,t){var n=h&&h(e,t)||d(e,t);return"desc"===l?-n:n}}(c,e,t,n,r);l.sort(h)}),l)}},31451:function(e,t,n){t.LocalStore=void 0;var i=n(62754),o=n(16454),a=m(n(96687)),r=m(n(69434)),s=n(85273),l=m(n(88036)),u=n(47617),d=m(n(38377)),c=n(20576),h=n(35922),f=n(95479),p=n(87280),g=m(n(26562));function m(e){return e&&e.__esModule?e:{default:e}}var _=d.default.inherit(function(){var e={year:function(e){return e&&e.getFullYear()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},dayOfWeek:function(e){return e&&e.getDay()}};function t(e){return-1!==e.indexOf(".")?(0,u.compileGetter)(e):function(t){return t[e]}}function n(e){return function(t){var n=e(t);return!n||n instanceof Date||(n=r.default.deserializeDate(n)),n}}function d(i){(0,f.each)(i||[],(function(i,o){var a,r,s,l,u=o.dataField,c=o.levels;if(!o.selector){if(l=u?t(u):function(e){return e},c&&d(c),"date"===o.dataType){r=e[o.groupInterval];var f=n(l);a=function(e){var t=f(e);return r?r(t):t}}else"number"===o.dataType?(s=(0,h.isNumeric)(o.groupInterval)&&o.groupInterval>0&&o.groupInterval,a=function(e){var t=l(e);return(0,h.isString)(t)&&(t=Number(t)),s?Math.floor(t/s)*s:t}):a=l;(0,p.setDefaultFieldValueFormatting)(o),(0,p.setFieldProperty)(o,"selector",a)}}))}function m(e,t,n,i){var o=[0],a=t.headerName===i?t.path.length:0,r="rows"===i?t.rowExpandedPaths:t.columnExpandedPaths;return function e(t,n,i,o,a){var r,s,l=n.dimensions[o],u=n.expandedPathsHash;l&&(s=function(e,t,n,i){var o=i[n];return o||(o={value:e,index:i.length++},i[n]=o,t.push(o)),o}(r=l.selector(n.data),i,a=void 0!==a?a+"/./"+r:r+"",n.childrenHash),t.push(s.index),(u&&u[a]||l.expanded)&&(s.children||(s.children=[]),e(t,n,s.children,o+1,a)))}(o,{data:e,childrenHash:n[i+"Hash"],dimensions:t[i],expandedPathsHash:t.headerName!==i&&r&&r.hash},n[i],a),o}function _(e,t,n,i){var o,a,r,s,l=[],u=m(e,i,n,"rows"),d=m(e,i,n,"columns");for(a=0;a<u.length;a++)for(t[r=u[a]]=t[r]||[],o=0;o<d.length;o++)s=d[o],l.push(t[r][s]=t[r][s]||[]);return l}function v(e){if(e){var t=e.hash={};e.forEach((function(e){var n=e.map((function(e){return e+""})).join("/./");t[n]=!0}))}}function y(e){e.rows=e.rows||[],e.columns=e.columns||[],e.filters=e.filters||[],v(e.columnExpandedPaths),v(e.rowExpandedPaths),d(e.columns),d(e.rows),d(e.values),d(e.filters)}function x(e){return"custom"===e.summaryType?(e.calculateCustomSummary=e.calculateCustomSummary||c.noop,{seed:function(){var t={summaryProcess:"start",totalValue:void 0};return e.calculateCustomSummary(t),t},step:function(t,n){return t.summaryProcess="calculate",t.value=n,e.calculateCustomSummary(t),t},finalize:function(t){return t.summaryProcess="finalize",delete t.value,e.calculateCustomSummary(t),t.totalValue}}):o.aggregators[e.summaryType]||o.aggregators.count}function b(e,t,n){for(var i=0;i<e.length;i++)for(var o=e[i],a=o.selector(n),r=x(o),s="function"==typeof r.seed,l=0;l<t.length;l++){var u=t[l];u.length<=i&&(u[i]=s?r.seed():r.seed),void 0===u[i]?u[i]=a:(0,h.isDefined)(a)&&(u[i]=r.step(u[i],a))}}function w(e,t){var n=e&&e.valueOf(),i=t&&t.valueOf();if(Array.isArray(e)){t=t||[];for(var o=0;o<e.length;o++)if((n=e[o]&&e[o].valueOf())!==(i=t[o]&&t[o].valueOf()))return!1;return!0}return n===i}function C(e){var t=[];return(0,f.each)(e,(function(e,n){var i=n.filterValues||[];n.groupName&&(0,h.isNumeric)(n.groupIndex)||i.length&&t.push((function(e){for(var t=n.levels?function(e,t){var n=[];return(0,f.each)(e,(function(e,i){n.push(i.selector(t))})),n}(n.levels,e):n.selector(e),o=!1,a=0;a<i.length;a++)if(w(i[a],t)){o=!0;break}return"exclude"===n.filterType?!o:o}))})),t}function S(e){var t=C(e.rows).concat(C(e.columns)).concat(C(e.filters)),n=e[e.headerName],i=e.path;return n&&t.push((function(e){for(var t,o=0;o<i.length;o++)if(t=n[o].selector(e),(0,u.toComparable)(t,!0)!==(0,u.toComparable)(i[o],!0))return!1;return!0})),function(e){for(var n=0;n<t.length;n++)if(!t[n](e))return!1;return!0}}function k(e,t){var n=e.filter();return e.store()instanceof l.default&&n?(n=E(n,t),(0,a.default)(e.items()).filter(n).toArray()):e.items()}function D(e,t,n){var o=new i.Deferred,a=function(n){e.store()instanceof g.default&&(n.storeLoadOptions.filter=E(n.storeLoadOptions.filter,t))};if(e.on("customizeStoreLoadOptions",a),!e.isLoaded()||n){var r=n?e.load():e.reload();(0,i.when)(r).done((function(){D(e,t).done((function(){o.resolve(k(e,t))})).fail(o.reject)})).fail(o.reject)}else o.resolve(k(e,t));return o.always((function(){e.off("customizeStoreLoadOptions",a)}))}function I(e,i){i.forEach((function(i){if(i.dataField&&"date"===i.dataType){var o=n(t(i.dataField));e[i.dataField]=function(e){return o(e)}}}))}function T(e){var t={};return Array.isArray(e)?I(t,e):e&&["rows","columns","filters"].forEach((function(n){e[n]&&I(t,e[n])})),t}function E(e,t){if(!Array.isArray(e))return e;e=e.slice(0),(0,h.isString)(e[0])&&(e[1]instanceof Date||e[2]instanceof Date)&&(e[0]=t[e[0]]);for(var n=0;n<e.length;n++)e[n]=E(e[n],t);return e}return{ctor:function(e){this._progressChanged=e.onProgressChanged||c.noop,this._dataSource=new s.DataSource(e),this._dataSource.paginate(!1)},getFields:function(e){var t=this._dataSource,n=new i.Deferred;return D(t,T(e)).done((function(t){n.resolve((0,p.discoverObjectFields)(t,e))})).fail(n.reject),n},key:function(){return this._dataSource.key()},load:function(e){var t=this,n=t._dataSource,o=new i.Deferred;return y(e),D(n,T(e),e.reload).done((function(n){(0,i.when)(function(e,t,n){var o,a,r={columns:[],rows:[],columnsHash:{length:1},rowsHash:{length:1}},s=[],l=new i.Deferred,u=0,d=S(t);return function i(){for(var c,h,p=new Date,g=u;u<e.length;u++){if(u>g&&u%1e4==0&&new Date-p>=300)return n(u/e.length),void setTimeout(i,0);a=e[u],d(a)&&(o=_(a,s,r,t),b(t.values,o,a))}c=t.values,h=s,(0,f.each)(c,(function(e,t){var n=x(t);n.finalize&&(0,f.each)(h,(function(t,i){(0,f.each)(i,(function(t,i){i&&void 0!==i[e]&&(i[e]=n.finalize(i[e]))}))}))})),n(1),l.resolve({rows:r.rows,columns:r.columns,values:s,grandTotalRowIndex:0,grandTotalColumnIndex:0})}(),l}(n,e,t._progressChanged)).done(o.resolve)})).fail(o.reject),o},filter:function(){var e=this._dataSource;return e.filter.apply(e,arguments)},supportPaging:function(){return!1},getDrillDownItems:function(e,t){t=t||{},y(e=e||{});for(var n,i=[],o=this._dataSource.items(),a=t.maxRowCount,r=t.customColumns,s=S(e),l=S({rows:(0,p.getFiltersByPath)(e.rows,t.rowPath),columns:(0,p.getFiltersByPath)(e.columns,t.columnPath),filters:[]}),u=0;u<o.length;u++){if(l(o[u])&&s(o[u])){if(r){n={};for(var d=0;d<r.length;d++)n[r[d]]=o[u][r[d]]}else n=o[u];i.push(n)}if(a>0&&i.length===a)break}return i}}}()).include(p.storeDrillDownMixin);t.LocalStore=_},74658:function(e,t,n){t.default=void 0;var i=n(35922),o=f(n(38377)),a=n(13306),r=n(95479),s=n(85273),l=n(62754),u=n(87280),d=n(78910),c=f(n(69434)),h=n(9234);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function g(e,t){var n=[];return(0,r.each)(e,(function(i,o){n.push({selector:o.dataField,groupInterval:o.groupInterval,desc:t&&"desc"===o.sortOrder,isExpanded:i<e.length-1})})),n}function m(e,t,n,i){return[[e,i?"<":">=",n],i?"or":"and",[e,i?">=":"<",n+t]]}function _(e,t){var n=function(e){var t=e.dataField,n=e.groupInterval;return"date"===e.dataType&&"string"==typeof n&&("quarter"===n.toLowerCase()&&(n="Month"),t=t+"."+(0,u.capitalizeFirstLetter)(n)),t}(e),o="exclude"===e.filterType,a=[n,o?"<>":"=",t];return(0,i.isDefined)(e.groupInterval)&&("string"==typeof e.groupInterval&&"quarter"===e.groupInterval.toLowerCase()?a=m(n,3,3*(t-1)+1,o):"number"==typeof e.groupInterval&&"date"!==e.dataType&&(a=m(n,e.groupInterval,t,o))),a}function v(e){var t=[];return(0,r.each)(e,(function(e,n){var i=function e(t,n){var i=[];return t.searchValue?[t.dataField,"contains",t.searchValue]:(n="exclude"===t.filterType?n||"and":n||"or",(0,r.each)(t.filterValues,(function(o,a){var r=[];Array.isArray(a)?t.levels&&t.levels.length&&(r=e({filterValues:a,filterType:t.filterType,levels:t.levels},"and")):r=_(t.levels?t.levels[o]:t,a),r.length&&(i.length&&i.push(n),i.push(r))})),i)}(n);if(!i.length)return[];t.length&&t.push("and"),t.push(i)})),1===t.length&&(t=t[0]),t}function y(e,t){var n=function(e){return e&&e.length};return n(e)&&n(t)?[e,"and",t]:n(e)?e:t}function x(e,t,n,o,a){e[n]=e[n]||[],e[n][o]=e[n][o]||[],(0,i.isDefined)(e[n][o][a])||(e[n][o][a]=t)}function b(e,t){return t&&"number"===t.dataType&&(0,i.isString)(e)?Number(e):!t||"date"!==t.dataType||t.groupInterval||e instanceof Date?e:c.default.deserializeDate(e)}function w(e,t,n,i){var o=[],a=[],s=i.rowHash,l=i.columnHash;if(t&&t.summary&&(0,r.each)(t.summary,(function(e,t){x(i.values,t,i.grandTotalRowIndex,i.grandTotalColumnIndex,e)})),t&&t.groupCount>=0){var u=n.rows.length?n.rowSkip:n.columnSkip;(e=function(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array(u)).concat(e)).length=t.groupCount}function c(e,t,n,o,a){var r,s,l,u=i[t+"Hash"],d=n.slice(0,o+1).join("/");return void 0!==u[d]?s=u[d]:(s={value:b(e.key,a),index:i[t+"Index"]++,displayText:e.displayText},l=n.slice(0,o).join("/"),(o>0&&void 0!==u[l]?(r=u[l]).children=r.children||[]:i[t+"s"]).push(s),u[d]=s),s}return(0,d.forEachGroup)(e,(function(e,t){var u,d,h=t>=n.rows.length?n.rows.length:t,f=t>=n.rows.length?t-n.rows.length:0;if(!(t>=n.rows.length&&f>=n.columns.length)){t<n.rows.length&&(a=[]),t>=n.rows.length?e?(a[f]=e.key+"",u=c(e,"column",a,f,n.columns[f]),d=s[o.slice(0,h+1).join("/")]):i.columns.push({}):e?(o[h]=e.key+"",d=c(e,"row",o,h,n.rows[h]),u=l[a.slice(0,f+1).join("/")]):i.rows.push({});var p=d&&d.index||i.grandTotalRowIndex,g=u&&u.index||i.grandTotalColumnIndex;(0,r.each)(e&&e.summary||[],(function(e,t){x(i.values,t,p,g,e)}))}})),i}function C(e){return(e||[]).filter((function(e){return e.filterValues&&e.filterValues.length||e.searchValue}))}function S(e,t){if(e.headerName){if(t===e.headerName)return e.path.length;if(e.oppositePath)return e.oppositePath.length}return 0}function k(e,t,n,i){var o=[],s=n>i?0:i,l=e.headerName!==t?e[t].slice(s,n):[],u="rows"===t?e.rowExpandedPaths:e.columnExpandedPaths;return(0,r.each)(l,(function(e,t){var i=[];(0,r.each)(u,(function(t,o){if(o=o.slice(s,n),e<o.length){var a=o[e];-1===i.indexOf(a)&&i.push(a)}})),i.length&&o.push((0,a.extend)({},t,{filterType:"include",filterValues:i}))})),o}function D(e,t,n,i,o,r){var s,l=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[],u="columns"===t?"rows":"columns",d=e[t],c=[];if(l.length)for(var h=n;h<i+1;h++)(s={filters:o.concat(k(e,t,h,r))})[t]=d.slice(n,h+1),s[u]=[],c.push((0,a.extend)({},e,s));else(s={filters:o})[t]=d.slice(n,i+1),s[u]=[],c.push((0,a.extend)({},e,s));return c[0].includeTotalSummary=!0,c}function I(e){var t=0;return(0,r.each)(e,(function(e,n){if(!n.expanded)return t=e,!1})),t}function T(e){var t=(0,u.getExpandedLevel)(e,"rows"),n=(0,u.getExpandedLevel)(e,"columns"),i=e.filters||[],o=S(e,"columns"),r=I(e.columns),s=I(e.rows),l=S(e,"rows"),d=[],c=D(e,"columns",o,n,i=i.concat(C(e.rows)).concat(C(e.columns)).concat(function(e){return(0,u.getFiltersByPath)(e[e.headerName],e.path).concat((0,u.getFiltersByPath)(e["rows"===e.headerName?"columns":"rows"],e.oppositePath||[]))}(e)),r);if(e.rows.length&&e.columns.length){"rows"!==e.headerName&&(d=d.concat(c));for(var h=l;h<t+1;h++)for(var f=e.rows.slice(l,h+1),p=k(e,"rows",h,s),g=o;g<n+1;g++){var m=(0,a.extend)({},e,{columns:e.columns.slice(o,g+1),rows:f,filters:i.concat(k(e,"columns",g,r)).concat(p)});d.push(m)}}else d=e.columns.length?c:D(e,"rows",l,t,i,s);return d}function E(e){(0,r.each)(e||[],(function(e,t){var n=t.levels;n&&E(n),(0,u.setDefaultFieldValueFormatting)(t)}))}var A=o.default.inherit({ctor:function(e){this._dataSource=new s.DataSource(e),this._store=this._dataSource.store()},getFields:function(e){var t=new l.Deferred;return this._store.load({skip:0,take:20}).done((function(n){var i=(0,h.normalizeLoadResult)(n);t.resolve((0,u.discoverObjectFields)(i.data,e))})).fail(t.reject),t},key:function(){return this._store.key()},load:function(e){var t=this,n=new l.Deferred,i={rows:[],columns:[],values:[],grandTotalRowIndex:0,grandTotalColumnIndex:0,rowHash:{},columnHash:{},rowIndex:1,columnIndex:1},o=T(e),a=[];return E(e.rows),E(e.columns),E(e.filters),(0,r.each)(o,(function(n,i){a.push(t._store.load(function(e,t,n){var i=v(e.filters),o=g(e.rows,e.rowTake).concat(g(e.columns,e.columnTake)),a={groupSummary:[],totalSummary:[],group:o.length?o:void 0,take:o.length?void 0:1};return e.rows.length&&e.rowTake?(a.skip=e.rowSkip,a.take=e.rowTake,a.requireGroupCount=!0):e.columns.length&&e.columnTake&&!n&&(a.skip=e.columnSkip,a.take=e.columnTake,a.requireGroupCount=!0),t&&(i=y(i,t)),i.length&&(a.filter=i),(0,r.each)(e.values,(function(t,n){var i={selector:n.dataField,summaryType:n.summaryType||"count"};a.groupSummary.push(i),e.includeTotalSummary&&a.totalSummary.push(i)})),a}(i,t.filter(),e.rows.length)))})),l.when.apply(null,a).done((function(){var e=a.length>1?arguments:[arguments];(0,r.each)(e,(function(e,t){var n=(0,h.normalizeLoadResult)(t[0],t[1]);w(n.data,n.extra,o[e],i)})),n.resolve({rows:i.rows,columns:i.columns,values:i.values,grandTotalRowIndex:i.grandTotalRowIndex,grandTotalColumnIndex:i.grandTotalColumnIndex})})).fail(n.reject),n},filter:function(){return this._dataSource.filter.apply(this._dataSource,arguments)},supportPaging:function(){return!1},createDrillDownDataSource:function(e,t){e=e||{},t=t||{};var n=this._store,i=v((0,u.getFiltersByPath)(e.rows,t.rowPath).concat((0,u.getFiltersByPath)(e.columns,t.columnPath)).concat(C(e.rows)).concat(e.filters||[]).concat(C(e.columns)));return new s.DataSource({load:function(e){return n.load((0,a.extend)({},e,{filter:y(i,e.filter),select:t.customColumns}))}})}});t.default=A,e.exports=t.default,e.exports.default=t.default},78910:function(e,t){t.forEachGroup=void 0,t.forEachGroup=function e(t,n,i){t=t||[],i=i||0;for(var o=0;o<t.length;o++){var a=t[o];n(a,i),a&&a.items&&a.items.length&&e(a.items,n,i+1)}}},34174:function(e,t,n){t.AreaItem=void 0;var i=n(58664),o=d(n(68374)),a=d(n(38377)),r=n(6415),s=n(13306),l=n(37518),u=n(35922);function d(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=0,n=e.offsetWidth;if(e.getBoundingClientRect){var i=(0,l.getBoundingRect)(e);(t=i.width)||(t=i.right-i.left),t<=n-1&&(t=n)}return t>0?t:n};function h(e,t,n,i){var o=0,a=0,r=n/2;return e+i-(t+n)>1?(e>=t+n+r&&(a=parseInt((e-(t+n))/r,10)),o=t+n+r*a):e<t?(e<=t-r&&(a=parseInt((e-(t-r))/r,10)),o=t-(n-r*a)):o=t,o}var f=a.default.inherit({ctor:function(e){this.component=e},option:function(){return this.component.option.apply(this.component,arguments)},_getRowElement:function(e){var t=this;return t._tableElement&&t._tableElement.length>0?t._tableElement[0].rows[e]:null},_createGroupElement:function(){return(0,o.default)("<div>")},_createTableElement:function(){return(0,o.default)("<table>")},_getCellText:function(e,t){var n=e.isWhiteSpace?"&nbsp":e.text||"&nbsp";return!t||-1===n.indexOf("<")&&-1===n.indexOf(">")||(n=(0,o.default)("<div>").text(n).html()),n},_getRowClassNames:function(){},_applyCustomStyles:function(e){e.cell.width&&e.cssArray.push("min-width:"+e.cell.width+"px"),e.cell.sorted&&e.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"<tbody>"},_getCloseMainElementMarkup:function(){return"</tbody>"},_renderTableContent:function(e,t){var n,i,o,a,r,s,l=this,d=t.length,c=l.option("rtlEnabled"),h=[],f=l.option("encodeHtml");for(e.data("area",l._getAreaName()),e.data("data",t),e.css("width",""),h.push(l._getMainElementMarkup()),o=0;o<d;o++){n=t[o];var p=[];for(s=[],h.push("<tr "),a=0;a<n.length;a++){if(i=n[a],this._getRowClassNames(o,i,s),p.push("<td "),i){i.rowspan&&p.push("rowspan='"+(i.rowspan||1)+"'"),i.colspan&&p.push("colspan='"+(i.colspan||1)+"'");var g={cellElement:void 0,cell:i,cellsCount:n.length,cellIndex:a,rowElement:void 0,rowIndex:o,rowsCount:d,rtlEnabled:c,classArray:[],cssArray:[]};l._applyCustomStyles(g),g.cssArray.length&&(p.push("style='"),p.push(g.cssArray.join(";")),p.push("'")),g.classArray.length&&(p.push("class='"),p.push(g.classArray.join(" ")),p.push("'")),p.push(">"),(0,u.isDefined)(i.expanded)&&p.push("<div class='dx-expand-icon-container'><span class='dx-expand'></span></div>"),r=this._getCellText(i,f)}else r="";p.push("<span "),(0,u.isDefined)(i.wordWrapEnabled)&&p.push("style='white-space:",i.wordWrapEnabled?"normal":"nowrap",";'"),p.push(">"+r+"</span>"),i.sorted&&p.push("<span class='dx-icon-sorted'></span>"),p.push("</td>")}s.length&&(h.push("class='"),h.push(s.join(" ")),h.push("'")),h.push(">"),h.push(p.join("")),h.push("</tr>")}h.push(this._getCloseMainElementMarkup()),e.append(h.join("")),this._triggerOnCellPrepared(e,t)},_triggerOnCellPrepared:function(e,t){var n,i,o,a,l,u,d,c=this,h=e.find("tr"),f=c._getAreaName(),p=c.option("onCellPrepared"),g=c.component._eventsStrategy.hasEvent("cellPrepared"),m=this.component._defaultActionArgs();if(p||g)for(u=0;u<t.length;u++)for(a=t[u],n=h.eq(u),d=0;d<a.length;d++)l=a[d],i=n.children().eq(d),o={area:f,rowIndex:u,columnIndex:d,cellElement:(0,r.getPublicElement)(i),cell:l},g?c.component._trigger("onCellPrepared",o):p((0,s.extend)(o,m))},_getRowHeight:function(e){var t=this._getRowElement(e),n=0,i=t.offsetHeight;return t&&t.lastChild?(t.getBoundingClientRect&&(n=(0,l.getBoundingRect)(t).height)<=i-1&&(n=i),n>0?n:i):0},_setRowHeight:function(e,t){var n=this._getRowElement(e);n&&(n.style.height=t+"px")},getRowsLength:function(){var e=this;return e._tableElement&&e._tableElement.length>0?e._tableElement[0].rows.length:0},getRowsHeight:function(){var e,t=[],n=this.getRowsLength();for(e=0;e<n;e++)t.push(this._getRowHeight(e));return t},setRowsHeight:function(e){var t,n=0,i=e.length;for(t=0;t<i;t++)n+=e[t],this._setRowHeight(t,e[t]);this._tableHeight=n,this._tableElement[0].style.height=n+"px"},getColumnsWidth:function(){var e,t,n,i,o=this.getRowsLength(),a=[],r=[],s=function(e,t,n,i,o){var a,r;for(a=0;a<i;a++)for(r=0;r<o;r++)e[t+a]=e[t+a]||[],e[t+a][n+r]=!0};if(o)for(e=0;e<o;e++)for(a[e]=a[e]||[],t=this._getRowElement(e),n=0;n<t.cells.length;n++){for(i=0;a[e][i];i++);s(a,e,i,t.cells[n].rowSpan,t.cells[n].colSpan),1===t.cells[n].colSpan&&(r[i]=r[i]||c(t.cells[n]))}return r},setColumnsWidth:function(e){var t,n=this._tableElement[0],i="",o=this.getColumnsCount(),a=[];for(t=0;t<o;t++)a.push(e[t]||0);for(t=o;t<e.length&&e;t++)a[o-1]+=e[t];for(t=0;t<o;t++)i+='<col style="width: '+a[t]+'px">';this._colgroupElement.html(i),this._tableWidth=a.reduce((function(e,t){return e+t}),0),n.style.width=this._tableWidth+"px",n.style.tableLayout="fixed"},resetColumnsWidth:function(){(0,i.setWidth)(this._colgroupElement.find("col"),"auto"),this._tableElement.css({width:"",tableLayout:""})},setGroupWidth:function(e){this._getScrollable().option("width",e)},setGroupHeight:function(e){this._getScrollable().option("height",e)},getGroupHeight:function(){return this._getGroupElementSize("height")},getGroupWidth:function(){return this._getGroupElementSize("width")},_getGroupElementSize:function(e){var t=this.groupElement()[0].style[e];return t.indexOf("px")>0?parseFloat(t):null},groupElement:function(){return this._groupElement},tableElement:function(){return this._tableElement},element:function(){return this._rootElement},headElement:function(){return this._tableElement.find("thead")},_setTableCss:function(e){this.option("rtlEnabled")&&(e.right=e.left,delete e.left),this.tableElement().css(e)},setVirtualContentParams:function(e){this._virtualContent.css({width:e.width,height:e.height}),this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){var e=this;e._virtualContent||"virtual"!==e.option("scrolling.mode")||(e._virtualContent=(0,o.default)("<div>").addClass("dx-virtual-content").insertBefore(e._tableElement))},reset:function(){var e=this,t=e._tableElement[0];if(e._fakeTable&&e._fakeTable.detach(),e._fakeTable=null,e.disableVirtualMode(),e.setGroupWidth("100%"),e.setGroupHeight("auto"),e.resetColumnsWidth(),t){for(var n=0;n<t.rows.length;n++)t.rows[n].style.height="";t.style.height="",t.style.width="100%"}},_updateFakeTableVisibility:function(){var e=this,t=e.tableElement()[0],n=e.option("rtlEnabled")?"right":"left",i=e._fakeTable[0];t.style.top===i.style.top&&i.style[n]===t.style[n]?e._fakeTable.addClass("dx-hidden"):e._fakeTable.removeClass("dx-hidden")},_moveFakeTableHorizontally:function(e){var t=this,n=t.option("rtlEnabled")?"right":"left",i=h(e,parseFloat(t.tableElement()[0].style[n]),t._tableWidth,t.getGroupWidth());parseFloat(t._fakeTable[0].style[n])!==i&&(t._fakeTable[0].style[n]=i+"px")},_moveFakeTableTop:function(e){var t=this,n=h(e,parseFloat(t.tableElement()[0].style.top),t._tableHeight,t.getGroupHeight());parseFloat(t._fakeTable[0].style.top)!==n&&(t._fakeTable[0].style.top=n+"px")},_moveFakeTable:function(){this._updateFakeTableVisibility()},_createFakeTable:function(){var e=this;e._fakeTable||(e._fakeTable=e.tableElement().clone().addClass("dx-pivot-grid-fake-table").appendTo(e._virtualContent))},render:function(e,t){var n=this;if(n._tableElement){try{n._tableElement[0].innerHTML=""}catch(e){n._tableElement.empty()}n._tableElement.attr("style","")}else n._groupElement=n._createGroupElement(),n._tableElement=n._createTableElement(),n._tableElement.appendTo(n._groupElement),n._groupElement.appendTo(e),n._rootElement=e;n._colgroupElement=(0,o.default)("<colgroup>").appendTo(n._tableElement),n._renderTableContent(n._tableElement,t),n._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},_getMaxLeftOffset:function(e){var t=(0,o.default)(e.container()).get(0);return t.scrollWidth-t.clientWidth},on:function(e,t){var n=this,i=n._getScrollable();return i&&i.on(e,(function(e){n.option("rtlEnabled")&&(0,u.isDefined)(e.scrollOffset.left)&&(e.scrollOffset.left=n._getMaxLeftOffset(i)-e.scrollOffset.left),t(e)})),this},off:function(e){var t=this._getScrollable();return t&&t.off(e),this},scrollTo:function(e){var t=this._getScrollable(),n=e;t&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?n=this._getMaxLeftOffset(t)-e.left:"data"===this._getAreaName()&&(n={left:this._getMaxLeftOffset(t)-e.left,top:e.top})),t.scrollTo(n),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(e)))},updateScrollable:function(){var e=this._getScrollable();if(e)return e.update()},getColumnsCount:function(){var e,t=0,n=this._getRowElement(0);if(n)for(var i=0,o=(e=n.cells).length;i<o;++i)t+=e[i].colSpan;return t},getData:function(){var e=this._tableElement;return e?e.data("data"):[]}});t.AreaItem=f},49809:function(e,t,n){t.default=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(13306),r=n(87280),s=n(95479),l={number:"numeric",date:"datetime"},u="dxPivotGridUnbinding";function d(e,t){var n=[],i=t.length-1;return(0,s.each)(e,(function(e,o){n.push(o.text||(0,r.formatValue)(o.value,t[i-e]))})),n.reverse()}function c(e){var t=0;return(0,r.foreachTree)(e,(function(e){t=Math.max(t,e.length-1)})),t}function h(e,t,n){var i,o,l,u,h,f,p,g,m,_,v=e.getData(),y=[],x=e.getAreaFields("data"),b=e.getAreaFields("row"),w=e.getAreaFields("column"),C=[{index:v.grandTotalColumnIndex,children:v.columns}],S=[{index:v.grandTotalRowIndex,children:v.rows}],k=c(S),D=c(C);function I(){var e,r=(v.values[l]||[])[p]||[],s=r[i],d={rowPath:f,maxRowLevel:k,rowPathFormatted:h,rowFields:b,columnPathFormatted:_,maxColumnLevel:D,columnPath:m,columnFields:w,dataFields:x,dataIndex:i,dataValues:r,visible:g&&u},c=(t.inverted?_:h).join(" - "),C=(t.inverted?h:_).join("/");x.length>1&&("args"!==t.putDataFieldsInto&&"both"!==t.putDataFieldsInto||(C+=" | "+o.caption),"args"!==t.putDataFieldsInto&&(c+=" | "+o.caption,"singleAxis"!==t.dataFieldsDisplayMode&&(e=o.caption))),d.chartDataItem={val:void 0===s?null:s,series:c,arg:C},(d=function(e,t){var n=e.chartDataItem,i=t&&t(e);return i?(n=(0,a.extend)({},n,i.chartDataItem),i=(0,a.extend)({},e,i,{chartDataItem:n})):e}(d,t.processCell)).visible&&(n[d.chartDataItem.series]=n[d.chartDataItem.series]||e,y.push(d.chartDataItem))}function T(e){(0,r.foreachTree)(S,(function(n){l=n[0].index,n=n.slice(0,n.length-1),u=k===n.length,f=(0,r.createPath)(n),h=d(n,b),0===f.length&&(h=[t.grandTotalText]),(0,r.foreachTree)(C,(function(n){p=n[0].index,n=n.slice(0,n.length-1),g=D===n.length,m=(0,r.createPath)(n),_=d(n,w),0===m.length&&(_=[t.grandTotalText]),e()}))}))}function E(e){(0,s.each)(x,(function(t,n){o=n,i=t,e()}))}return!1===t.alternateDataFields?E((function(){T(I)})):T((function(){E(I)})),y}function f(e,t){var n=e.getAreaFields("data");if("args"!==t.putDataFieldsInto&&"singleAxis"!==t.dataFieldsDisplayMode||1===n.length){var i=[];return(0,s.each)(n,(function(e,n){var o={name:n.caption,title:n.caption,valueType:l[n.dataType]||n.dataType,label:{format:n.format}};n.customizeText&&(o.label.customizeText=function(e){return n.customizeText.call(n,e)}),"splitPanes"===t.dataFieldsDisplayMode&&(o.pane=n.caption),i.push(o)})),i}return[{}]}function p(e,t){var n=[],i=e.getAreaFields("data");return i.length>1&&"splitPanes"===t.dataFieldsDisplayMode&&"args"!==t.putDataFieldsInto&&(0,s.each)(i,(function(e,t){n.push({name:t.caption})})),n.length||n.push({}),n}var g={bindChart:function(e,t){t=(0,a.extend)({},t);var n=this,i=function(){t.grandTotalText=n.option("texts.grandTotal");var i=function(e,t){var n=t.customizeSeries,i=t.customizeChart,o={valueAxis:f(e,t),panes:p(e,t)},r={};return i&&(o=(0,a.extend)(!0,{},o,i(o))),o.dataSource=h(e,t,r),o.seriesTemplate={nameField:"series",customizeSeries:function(e){var i={};return"splitPanes"===t.dataFieldsDisplayMode?i.pane=r[e]:"singleAxis"!==t.dataFieldsDisplayMode&&(i.axis=r[e]),n&&(i=(0,a.extend)(i,n(e,i))),i}},o}(n.getDataSource(),t);e.option(i)};if(!(e=function(e){if(!e)return!1;if(e.NAME)return"dxChart"===e.NAME&&e;var t=(0,o.default)(e);return t.data("dxChart")&&t.dxChart("instance")}(e)))return null;!function(e){var t=e.$element().data(u);t&&t()}(e),n.on("changed",i),i();var r=function(){e.$element().removeData(u),n.off("changed",i)};return e.on("disposing",r),this.on("disposing",r),e.$element().data(u,r),r}};t.default=g,e.exports=t.default,e.exports.default=t.default},5260:function(e,t,n){t.DataArea=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(34174),r=n(60137),s=n(13218),l=a.AreaItem.inherit({_getAreaName:function(){return"data"},_createGroupElement:function(){return(0,o.default)("<div>").addClass("dx-pivotgrid-area").addClass("dx-pivotgrid-area-data").css("borderTopWidth",0)},_applyCustomStyles:function(e){var t=e.cell,n=e.classArray;"T"!==t.rowType&&"T"!==t.columnType||n.push("dx-total"),"GT"!==t.rowType&&"GT"!==t.columnType||n.push("dx-grandtotal"),"T"!==t.rowType&&"GT"!==t.rowType||n.push("dx-row-total"),e.rowIndex===e.rowsCount-1&&e.cssArray.push("border-bottom: 0px"),this.callBase(e)},_moveFakeTable:function(e){this._moveFakeTableHorizontally(e.x),this._moveFakeTableTop(e.y),this.callBase()},renderScrollable:function(){this._groupElement.dxScrollable({useNative:this.getUseNativeValue(),useSimulatedScrollbar:!1,rtlEnabled:this.component.option("rtlEnabled"),bounceEnabled:!1,updateManually:!0})},getUseNativeValue:function(){var e=this.component.option("scrolling").useNative;return"auto"===e?!!r.nativeScrolling:!!e},getScrollbarWidth:function(){return this.getUseNativeValue()?(0,s.calculateScrollbarWidth)():0},updateScrollableOptions:function(e){var t=e.direction,n=e.rtlEnabled,i=this._getScrollable();i.option("useNative",this.getUseNativeValue()),i.option({direction:t,rtlEnabled:n})},getScrollableDirection:function(e,t){return e&&!t?"horizontal":!e&&t?"vertical":"both"},reset:function(){this.callBase(),this._virtualContent&&this._virtualContent.parent().css("height","auto")},setVirtualContentParams:function(e){this.callBase(e),this._virtualContent.parent().css("height",e.height),this._setTableCss({top:e.top,left:e.left})}});t.DataArea=l},54295:function(e,t,n){t.DataController=void 0;var i=_(n(44504)),o=n(62754),a=n(13306),r=n(89386),s=n(95479),l=_(n(38377)),u=n(68752),d=n(20576),c=n(35922),h=n(47305),f=n(66662),p=n(31489),g=_(n(98713)),m=n(87280);function _(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=Math,x="GT",b="D",w=function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},C=l.default.inherit(function(){function e(e,t,n){return"#N/A"===e?n:(0,m.formatValue)(e,t)}var t=function(){var e=function(e,i,l,d,h){var f=l.length,p=function(e,n){var i,a=n&&n.length||0,r=[],s=new o.Deferred;return(0,o.when)((0,m.foreachTreeAsync)(e,(function(e,n){var o=e[0],s=(0,m.createPath)(e);(i=t(r,s.length,n)).type=b,i.value=o.value,i.path=s,i.text=o.text,i.index=o.index,i.displayText=o.displayText,i.key=o.key,i.isEmpty=o.isEmpty,s.length<a&&(!o.children||0!==o.children.length)&&(i.expanded=!!o.children)}))).done((function(){s.resolve(t(r,0,0).children||[])})),s}(e,i),g=h.dataFields,_=new o.Deferred;return(0,o.when)(p).done((function(e){h.notifyProgress(.5),h.showGrandTotals&&e[h.showTotalsPrior?"unshift":"push"]({type:x,isEmpty:h.isEmptyGrandTotal});var t=!1===h.showTotals||g.length>0&&g.length===h.hiddenTotals.length,p=g.length>0&&h.hiddenValues.length===g.length;p&&t&&(d=1),t&&"tree"!==h.layout||function(e,t,n,i){n=n||i,(0,m.foreachTree)(e,(function(o,r){var s=o[0],l=(o[1]?o[1].children:e)||[],u=t[o.length-1];s.type===b&&s.expanded&&(!1!==u.showTotals||i)&&(-1!==r&&l.splice(n?r:r+1,0,(0,a.extend)({},s,{children:null,type:"T",expanded:!!n||null,isAdditionalTotal:!0})),n&&(s.expanded=null))}))}(e,i,h.showTotalsPrior,"tree"===h.layout),(0,o.when)((0,m.foreachTreeAsync)(e,(function(e){var t=e[0];t.children&&0!==t.children.length||(t.depthSize=d-e.length+1)}))).done((function(){f>1&&function(e,t,n){(0,m.foreachTree)(e,(function(e){var i,o=e[0];if(!o.children||0===o.children.length)for(o.children=[],i=0;i<t.length;i++){var a=o.type===x,s="T"===o.type,l=o.type===b;!1===t[i].visible||a&&-1!==(0,r.inArray)(i,n.hiddenGrandTotals)||s&&-1!==(0,r.inArray)(i,n.hiddenTotals)||l&&-1!==(0,r.inArray)(i,n.hiddenValues)||o.children.push({caption:t[i].caption,path:o.path,type:o.type,value:i,index:o.index,dataIndex:i,isMetric:!0,isEmpty:o.isEmpty&&o.isEmpty[i]})}}))}(e,l,h),!h.showEmpty&&function(e){(0,m.foreachTree)([{children:e}],(function(t,i){var o=t[0],a=(t[1]?t[1].children:e)||[],r=o.isEmpty;r&&r.length&&(r=o.isEmpty.filter((function(e){return e})).length===r.length),o&&!o.children&&r&&(a.splice(i,1),n(t,1))}))}(e),h.notifyProgress(.75),(0,o.when)((0,m.foreachTreeAsync)(e,(function(t){var n=t[0],o=n.isMetric,a=i[t.length-1]||{};if(n.type!==b||o||(n.width=a.width),!0!==p||n.type!==b)n.wordWrapEnabled=o?l[n.dataIndex].wordWrapEnabled:a.wordWrapEnabled,n.isLast=!n.children||!n.children.length,n.isLast&&(0,s.each)(h.sortBySummaryPaths,(function(e,i){if((0,c.isDefined)(n.dataIndex)||(i=i.slice(0)).pop(),function(e,t){var n,i=e[0],o=(0,c.isString)(t[0]),a=i.dataIndex>=0?e[1]:i;return n=o&&-1!==t[0].indexOf("&[")&&a.key||!a.key?(0,m.createPath)(e):(0,s.map)(e,(function(e){return e.dataIndex>=0?e.value:e.text})).reverse(),i.type===x&&(n=n.slice(1)),n.join("/")===t.join("/")}(t,i))return n.sorted=!0,!1})),n.text=function(e,t,n){var i=e.text;return(0,c.isDefined)(e.displayText)?i=e.displayText:(0,c.isDefined)(e.caption)?i=e.caption:e.type===x&&(i=n.texts.grandTotal),e.isAdditionalTotal&&(i=(0,u.format)(n.texts.total||"",i)),i}(n,0,h);else{var d=(t[1]?t[1].children:e)||[];d.splice((0,r.inArray)(n,d),1)}}))).done((function(){e.length||e.push({}),h.notifyProgress(1),_.resolve(e)}))}))})),_};function t(e,t,n){var i=(e[t]=e[t]||[])[n]={};if(e[t+1]){i.children=e[t+1];for(var o=t+1;o<e.length;o++)e[o]=void 0;e.length=t+1}return i}var n=function e(t,n){var i=t[n+1];!t[n].children.length&&i&&i.children&&(i.children.splice((0,r.inArray)(t[n],i.children),1),e(t,n+1))};return function(t,n,i,a,r){var s=[],l=function(e){var t=0;return(0,m.foreachTree)(e,(function(e){t=y.max(t,e.length)})),t}(t)||1,u=new o.Deferred;return e(t,n,i,l,r).done((function(e){!function(e,t,n,i,o){var a,r,s=0,l=[0];(0,m.foreachTree)(t,(function(t){var u=t[0];for(r=u.isMetric?n:t.length-1;l.length-1<r;)l.push(l[l.length-1]);a=l[r]||0,s=function(e,t){var n=t.lastIndex-t.index||1;return function(e,t,n,i,o){for(var a=o?i:n;!e[a];)e.push([]);o?e[a].push(t):e[a].unshift(t)}(e,function(e,t,n,i){var o={type:e.type,text:e.text};return e.path&&(o.path=e.path),e.width&&(o.width=e.width),(0,c.isDefined)(e.wordWrapEnabled)&&(o.wordWrapEnabled=e.wordWrapEnabled),e.isLast&&(o.isLast=!0),e.sorted&&(o.sorted=!0),e.isMetric&&(o.dataIndex=e.dataIndex),(0,c.isDefined)(e.expanded)&&(o.expanded=e.expanded),t>1&&(o[n?"colspan":"rowspan"]=t),e.depthSize&&e.depthSize>1&&(o[n?"rowspan":"colspan"]=e.depthSize),e.index>=0&&(o.dataSourceIndex=e.index),i&&e.children&&e.children.length&&!e.children[0].isMetric&&(o.width=null,o.isWhiteSpace=!0),o}(t.headerItem,n,t.isHorizontal,t.isTree),t.index,t.depth,t.isHorizontal),t.headerItem.children&&0!==t.headerItem.children.length?t.lastIndex:t.lastIndex+1}(e,{headerItem:u,index:a,lastIndex:s,depth:r,isHorizontal:i,isTree:o}),l.length=r,l.push(s)}))}(s,e,l,a,"tree"===r.layout),r.notifyProgress(1),u.resolve(s)})),u}}();function n(e,t){var n=[];return(0,s.each)(e,(function(e,i){var o=(0,m.findField)(t,i.sortBySummaryField);o>=0&&n.push((i.sortBySummaryPath||[]).concat([o]))})),n}function l(e,t){for(var n=0,i=[],o=0;o<e.length;o++)for(var a=0;a<e[o].length;a++){var r=o+((e[o][a].rowspan||1)-1);if(i[o]&&(n-=i[o],i[o]=0),!1===t(e[o][a],r,o,a,n))break;i[o+(e[o][a].rowspan||1)]=(i[o+(e[o][a].rowspan||1)]||0)+1,n++}}function _(e,t){var n=0,i=[];return(0,m.foreachTree)(e,(function(e){var o=e[0],r=(0,m.createPath)(e);if(!o.children||!1!==t.showTotals){var s=(0,a.extend)(!0,{},o,{visibleIndex:n++,path:r});(0,c.isDefined)(s.index)?i[s.index]=s:i.push(s)}})),i}function C(e,t,n){return new h.VirtualScrollController(t,(0,a.extend)({hasKnownLastPage:function(){return!0},pageCount:function(){return y.ceil(this.totalItemsCount()/this.pageSize())},updateLoading:function(){},itemsCount:function(){return this.pageIndex()<this.pageCount()-1?this.pageSize():this.totalItemsCount()%this.pageSize()},items:function(){return[]},viewportItems:function(){return[]},onChanged:function(){},isLoading:function(){return e.isLoading()},changingDuration:function(){return e._dataSource.paginate()?300:e._changingDuration||0}},n))}var S={ctor:function(e){var t=this,n=t._fireChanged.bind(t);e=t._options=e||{},t.dataSourceChanged=(0,i.default)(),t._dataSource=t._createDataSource(e),e.component&&"virtual"===e.component.option("scrolling.mode")&&(t._rowsScrollController=C(t,e.component,{totalItemsCount:function(){return t.totalRowCount()},pageIndex:function(e){return t.rowPageIndex(e)},pageSize:function(){return t.rowPageSize()},load:function(){return t._rowsScrollController.pageIndex()>=this.pageCount()&&t._rowsScrollController.pageIndex(this.pageCount()-1),t._rowsScrollController.handleDataChanged((function(){t._dataSource.paginate()?t._dataSource.load():n.apply(this,arguments)}))}}),t._columnsScrollController=C(t,e.component,{totalItemsCount:function(){return t.totalColumnCount()},pageIndex:function(e){return t.columnPageIndex(e)},pageSize:function(){return t.columnPageSize()},load:function(){return t._columnsScrollController.pageIndex()>=this.pageCount()&&t._columnsScrollController.pageIndex(this.pageCount()-1),t._columnsScrollController.handleDataChanged((function(){t._dataSource.paginate()?t._dataSource.load():n.apply(this,arguments)}))}})),t._stateStoringController=new p.StateStoringController(e.component).init(),t._columnsInfo=[],t._rowsInfo=[],t._cellsInfo=[],t.expandValueChanging=(0,i.default)(),t.loadingChanged=(0,i.default)(),t.progressChanged=(0,i.default)(),t.scrollChanged=(0,i.default)(),t.load(),t._update(),t.changed=(0,i.default)()},_fireChanged:function(){var e=this,t=new Date;e.changed&&!e._lockChanged&&e.changed.fire(),e._changingDuration=new Date-t},_correctSkipsTakes:function(e,t,n,i,o,a){var r=n?e+n-1:e;o[i.length]=o[i.length]||0,a[i.length]=a[i.length]||0,r<t?o[i.length]++:a[i.length]++},_calculatePagingForRowExpandedPaths:function(e,t,n,i,o){var a,r,s,l=this._rowsInfo,u=Math.min(e.rowSkip+e.rowTake,l.length),d=e.rowExpandedPaths,c=[],h={};for(d.forEach((function(e,t){h[e]=t})),a=0;a<u;a++){for(n.length=t.length=c.length+1,r=0;r<l[a].length;r++){var f=l[a][r];if("D"===f.type){this._correctSkipsTakes(a,e.rowSkip,f.rowspan,c,t,n);var p=(s=f.path||s)&&s.length>1?h[s.slice(0,-1)]:-1;p>=0&&(i[p]=t[c.length]||0,o[p]=n[c.length]||0),f.rowspan&&c.push(f.rowspan)}}c=c.map((function(e){return e-1})).filter((function(e){return e>0}))}},_calculatePagingForColumnExpandedPaths:function(e,t,n,i,o){var a={},r={};(0,f.foreachColumnInfo)(this._columnsInfo,(function(t,n){if("D"===t.type&&t.path&&void 0===t.dataIndex){var i=t.colspan||1,o=t.path.slice(0,-1).toString();a[o]=a[o]||0,r[o]=r[o]||0,n+i<=e.columnSkip?a[o]++:n<e.columnSkip+e.columnTake&&r[o]++}})),t[0]=a[[]],n[0]=r[[]],e.columnExpandedPaths.forEach((function(e,t){var n=a[e],s=r[e];void 0!==n&&(i[t]=n),void 0!==s&&(o[t]=s)}))},_processPagingForExpandedPaths:function(e,t,n,i){var o=e[t+"ExpandedPaths"],a=o.map((function(){return 0})),r=o.map((function(){return i?e.pageSize:0})),s=[],l=[];i||("row"===t?this._calculatePagingForRowExpandedPaths(e,s,l,a,r):this._calculatePagingForColumnExpandedPaths(e,s,l,a,r)),this._savePagingForExpandedPaths(e,t,n,s[0],l[0],a,r)},_savePagingForExpandedPaths:function(e,t,n,i,o,r,s){var l=e[t+"ExpandedPaths"];e[t+"ExpandedPaths"]=[],e[t+"Skip"]=void 0!==i?i:e[t+"Skip"],e[t+"Take"]=void 0!==o?o:e[t+"Take"];for(var u=0;u<l.length;u++)if(s[u]){var d,c=e.area&&e.area!==t;n.push((0,a.extend)({area:t,headerName:t+"s"},e,(v(d={},t+"Skip",r[u]),v(d,t+"Take",s[u]),v(d,c?"oppositePath":"path",l[u]),d)))}},_handleCustomizeStoreLoadOptions:function(e,t){var n=this,i=e[0],o=this._rowsScrollController;if(this._dataSource.paginate()&&o){var a=o.pageSize();"rows"===i.headerName?(i.rowSkip=0,i.rowTake=a,i.rowExpandedPaths=[]):(i.rowSkip=o.beginPageIndex()*a,i.rowTake=(o.endPageIndex()-o.beginPageIndex()+1)*a,this._processPagingForExpandedPaths(i,"row",e,t))}var r=this._columnsScrollController;if(this._dataSource.paginate()&&r){var s=r.pageSize();e.forEach((function(i,o){"columns"===i.headerName?(i.columnSkip=0,i.columnTake=s,i.columnExpandedPaths=[]):(i.columnSkip=r.beginPageIndex()*s,i.columnTake=(r.endPageIndex()-r.beginPageIndex()+1)*s,n._processPagingForExpandedPaths(i,"column",e,t))}))}},load:function(){var e=this,t=this._stateStoringController;t.isEnabled()&&!t.isLoaded()?t.load().always((function(t){t?e._dataSource.state(t):e._dataSource.load()})):e._dataSource.load()},calculateVirtualContentParams:function(e){var t=this,n=t._rowsScrollController,i=t._columnsScrollController;if(n&&i)return n.viewportItemSize(e.virtualRowHeight),n.viewportSize(e.viewportHeight/n.viewportItemSize()),n.setContentItemSizes(e.itemHeights),i.viewportItemSize(e.virtualColumnWidth),i.viewportSize(e.viewportWidth/i.viewportItemSize()),i.setContentItemSizes(e.itemWidths),(0,d.deferUpdate)((function(){i.loadIfNeed(),n.loadIfNeed()})),t.scrollChanged.fire({left:i.getViewportPosition(),top:n.getViewportPosition()}),{contentTop:n.getContentOffset(),contentLeft:i.getContentOffset(),width:i.getVirtualContentSize(),height:n.getVirtualContentSize()}},setViewportPosition:function(e,t){this._rowsScrollController.setViewportPosition(t||0),this._columnsScrollController.setViewportPosition(e||0)},subscribeToWindowScrollEvents:function(e){this._rowsScrollController&&this._rowsScrollController.subscribeToWindowScrollEvents(e)},updateWindowScrollPosition:function(e){this._rowsScrollController&&this._rowsScrollController.scrollTo(e)},updateViewOptions:function(e){(0,a.extend)(this._options,e),this._update()},_handleExpandValueChanging:function(e){this.expandValueChanging.fire(e)},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleProgressChanged:function(e){this.progressChanged.fire(e)},_handleFieldsPrepared:function(e){this._options.onFieldsPrepared&&this._options.onFieldsPrepared(e)},_createDataSource:function(e){var t,n=this,i=e.dataSource;return n._isSharedDataSource=i instanceof g.default,t=n._isSharedDataSource?i:new g.default(i),n._expandValueChangingHandler=n._handleExpandValueChanging.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._fieldsPreparedHandler=n._handleFieldsPrepared.bind(n),n._customizeStoreLoadOptionsHandler=n._handleCustomizeStoreLoadOptions.bind(n),n._changedHandler=function(){n._update(),n.dataSourceChanged.fire()},n._progressChangedHandler=function(e){n._handleProgressChanged(.8*e)},t.on("changed",n._changedHandler),t.on("expandValueChanging",n._expandValueChangingHandler),t.on("loadingChanged",n._loadingChangedHandler),t.on("progressChanged",n._progressChangedHandler),t.on("fieldsPrepared",n._fieldsPreparedHandler),t.on("customizeStoreLoadOptions",n._customizeStoreLoadOptionsHandler),t},getDataSource:function(){return this._dataSource},isLoading:function(){return this._dataSource.isLoading()},beginLoading:function(){this._dataSource.beginLoading()},endLoading:function(){this._dataSource.endLoading()},_update:function(){var e=this,i=e._dataSource,a=e._options,r=i.getAreaFields("column"),l=i.getAreaFields("row"),u=i.getAreaFields("data"),d="row"===a.dataFieldArea?u:[],h="row"!==a.dataFieldArea?u:[],f=i.getData(),p=function(e){var t=[];return(0,s.each)(e,(function(e,n){!1===n.showTotals&&t.push(e)})),t}(u),g=function(e){var t=[];return e.forEach((function(e,n){(void 0===e.showValues&&!1===e.showTotals||!1===e.showValues)&&t.push(n)})),t}(u),m=function(e,t){var n=[];return(0,s.each)(e,(function(e,t){!1===t.showGrandTotals&&n.push(e)})),0===t.length&&n.length===e.length&&(n=[]),n}(u,r),v=!(u.length>0)||m.length!==u.length,y={isEmptyGrandTotal:f.isEmptyGrandTotalRow,texts:a.texts||{},hiddenTotals:p,hiddenValues:g,hiddenGrandTotals:[],showTotals:a.showRowTotals,showGrandTotals:!1!==a.showRowGrandTotals&&v,sortBySummaryPaths:n(r,u),showTotalsPrior:"rows"===a.showTotalsPrior||"both"===a.showTotalsPrior,showEmpty:!a.hideEmptySummaryCells,layout:a.rowHeaderLayout,fields:l,dataFields:u,progress:0},x={isEmptyGrandTotal:f.isEmptyGrandTotalColumn,texts:a.texts||{},hiddenTotals:p,hiddenValues:g,hiddenGrandTotals:m,showTotals:a.showColumnTotals,showTotalsPrior:"columns"===a.showTotalsPrior||"both"===a.showTotalsPrior,showGrandTotals:!1!==a.showColumnGrandTotals&&v,sortBySummaryPaths:n(l,u),showEmpty:!a.hideEmptySummaryCells,fields:r,dataFields:u,progress:0},b=function(t){this.progress=t,e._handleProgressChanged(.8+.1*y.progress+.1*x.progress)};y.notifyProgress=b,x.notifyProgress=b,(0,c.isDefined)(f.grandTotalRowIndex)||(f.grandTotalRowIndex=_(f.rows,y).length),(0,c.isDefined)(f.grandTotalColumnIndex)||(f.grandTotalColumnIndex=_(f.columns,x).length),i._changeLoadingCount(1),(0,o.when)(t(f.columns,r,h,!0,x),t(f.rows,l,d,!1,y)).always((function(){i._changeLoadingCount(-1)})).done((function(t,n){e._columnsInfo=t,e._rowsInfo=n,e._rowsScrollController&&e._columnsScrollController&&e.changed&&!e._dataSource.paginate()&&(e._rowsScrollController.reset(!0),e._columnsScrollController.reset(!0),e._lockChanged=!0,e._rowsScrollController.load(),e._columnsScrollController.load(),e._lockChanged=!1)})).done((function(){e._fireChanged(),e._stateStoringController.isEnabled()&&!e._dataSource.isLoading()&&(e._stateStoringController.state(e._dataSource.state()),e._stateStoringController.save())}))},getRowsInfo:function(e){var t,n=this,i=n._rowsInfo,o=n._rowsScrollController;if(o&&!e){var r=o.beginPageIndex()*n.rowPageSize(),s=o.endPageIndex()*n.rowPageSize()+n.rowPageSize(),u=[],d=1;return l(i,(function(e,n,i,o,l){var c=i<r?0:i-r,h=e;if(n>=r&&i<s)u[c]=u[c]||[],t=i<r?e.rowspan-(r-i)||1:e.rowspan,r+c+t>s&&(t=s-(c+r)||1),t!==e.rowspan&&(h=(0,a.extend)({},h,{rowspan:t})),u[c].push(h),d=y.max(d,l+1);else if(void 0>s)return!1})),l(u,(function(e,t,n,i,o){o+(e.colspan||1)>d&&(u[n][i]=(0,a.extend)({},e,{colspan:d-o||1}))})),u}return i},getColumnsInfo:function(e){var t=this,n=t._columnsInfo,i=t._columnsScrollController;if(i&&!e){var o=i.beginPageIndex()*t.columnPageSize(),a=i.endPageIndex()*t.columnPageSize()+t.columnPageSize();n=(0,f.createColumnsInfo)(n,o,a)}return n},totalRowCount:function(){return this._rowsInfo.length},rowPageIndex:function(e){return void 0!==e&&(this._rowPageIndex=e),this._rowPageIndex||0},totalColumnCount:function(){var e=0;if(this._columnsInfo&&this._columnsInfo.length)for(var t=0;t<this._columnsInfo[0].length;t++)e+=this._columnsInfo[0][t].colspan||1;return e},rowPageSize:function(e){return void 0!==e&&(this._rowPageSize=e),this._rowPageSize||20},columnPageSize:function(e){return void 0!==e&&(this._columnPageSize=e),this._columnPageSize||20},columnPageIndex:function(e){return void 0!==e&&(this._columnPageIndex=e),this._columnPageIndex||0},getCellsInfo:function(t){var n=this.getRowsInfo(t),i=this.getColumnsInfo(t),o=this._dataSource.getData(),a=this._options.texts||{};return function(t,n,i,o,a,r){var s=[],u="row"===a,d=i.values;return d.length&&l(t,(function(t,a){var l=s[a]=[],c=d[t.dataSourceIndex>=0?t.dataSourceIndex:i.grandTotalRowIndex]||[];t.isLast&&(0,f.foreachColumnInfo)(n,(function(n,a){var s=(u?t.dataIndex:n.dataIndex)||0,d=o[s];if(n.isLast&&d&&!1!==d.visible){var h=c[n.dataSourceIndex>=0?n.dataSourceIndex:i.grandTotalColumnIndex];Array.isArray(h)||(h=[h]);var f=h[s];l[a]={text:e(f,d,r),value:f,format:d.format,dataType:d.dataType,columnType:n.type,rowType:t.type,rowPath:t.path||[],columnPath:n.path||[],dataIndex:s},d.width&&(l[a].width=d.width)}}))})),s}(n,i,o,this._dataSource.getAreaFields("data"),this._options.dataFieldArea,a.dataNotAvailable)},dispose:function(){var e=this;e._isSharedDataSource?(e._dataSource.off("changed",e._changedHandler),e._dataSource.off("expandValueChanging",e._expandValueChangingHandler),e._dataSource.off("loadingChanged",e._loadingChangedHandler),e._dataSource.off("progressChanged",e._progressChangedHandler),e._dataSource.off("fieldsPrepared",e._fieldsPreparedHandler),e._dataSource.off("customizeStoreLoadOptions",e._customizeStoreLoadOptionsHandler)):e._dataSource.dispose(),e._columnsScrollController&&e._columnsScrollController.dispose(),e._rowsScrollController&&e._rowsScrollController.dispose(),e._stateStoringController.dispose(),e.expandValueChanging.empty(),e.changed.empty(),e.loadingChanged.empty(),e.progressChanged.empty(),e.scrollChanged.empty(),e.dataSourceChanged.empty()}};return w(S,"applyPartialDataSource"),w(S,"collapseHeaderItem"),w(S,"expandHeaderItem"),w(S,"getData"),w(S,"isEmpty"),S}());t.DataController=C},84062:function(e,t,n){t.ExportController=t.DataProvider=void 0;var i=p(n(38377)),o=n(35922),a=n(13306),r=n(95479),s=n(58201),l=n(37518),u=p(n(30343)),d=p(n(18016)),c=n(78292),h=p(n(72376)),f=n(62754);function p(e){return e&&e.__esModule?e:{default:e}}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var v=(0,a.extend)({},h.default,{exportToExcel:function(){var e=this;(0,c.export)(e.getDataProvider(),{fileName:e.option("export.fileName"),proxyUrl:e.option("export.proxyUrl"),format:"EXCEL",rtlEnabled:e.option("rtlEnabled"),ignoreErrors:e.option("export.ignoreExcelErrors"),exportingAction:e._actions.onExporting,exportedAction:e._actions.onExported,fileSavingAction:e._actions.onFileSaving},c.excel.getData)},_getLength:function(e){var t,n=e[0].length,i=0;for(t=0;t<n;t++)i+=e[0][t].colspan||1;return i},_correctCellsInfoItemLengths:function(e,t){for(var n=0;n<e.length;n++)for(;e[n].length<t;)e[n].push({});return e},_calculateCellInfoItemLength:function(e){for(var t=0,n=0;n<e.length;n++)t+=(0,o.isDefined)(e[n].colspan)?e[n].colspan:1;return t},_getAllItems:function(e,t,n){var i,r,s=n,u=this._getLength(t),d=e.length;if(e.length>0&&e[0].length>0&&n.length>0&&0===n[0].length){var c=this._calculateCellInfoItemLength(e[0]);c>0&&(s=this._correctCellsInfoItemLengths(n,c))}var h=e.concat(s);for(r=0;r<t.length;r++)for(i=t[r].length-1;i>=0;i--)(0,o.isDefined)(h[r+d])||(h[r+d]=[]),h[r+d].splice(0,0,(0,a.extend)({},t[r][i]));return h[0].splice(0,0,(0,a.extend)({},this._getEmptyCell(),{alignment:(0,l.getDefaultAlignment)(this._options.rtlEnabled),colspan:u,rowspan:d})),this._prepareItems(h)},getDataProvider:function(){return new y(this)}});t.ExportController=v;var y=i.default.inherit({ctor:function(e){this._exportController=e},ready:function(){this._initOptions();var e=this._options;return(0,f.when)(e.items).done((function(t){var n=t[t[0][0].rowspan-1];(0,r.each)(n,(function(e,t){t.width=100})),e.columns=n,e.items=t}))},_initOptions:function(){var e=this._exportController,t=e._dataController,n=new f.Deferred;t.beginLoading(),setTimeout((function(){var i=(0,a.extend)(!0,[],t.getColumnsInfo(!0)),o=(0,a.extend)(!0,[],t.getRowsInfo(!0)),r=t.getCellsInfo(!0);n.resolve(e._getAllItems(i,o,r)),t.endLoading()})),this._options={items:n,rtlEnabled:e.option("rtlEnabled"),dataFields:e.getDataSource().getAreaFields("data"),customizeExcelCell:e.option("export.customizeExcelCell"),rowsArea:e._rowsArea,columnsArea:e._columnsArea}},getColumns:function(){return this._options.columns},getColumnsWidths:function(){var e=this._options.columnsArea,t=this._options.rowsArea,n=this._options.columns;return!(0,s.hasWindow)()||"virtual"===e.option("scrolling.mode")||e.element().is(":hidden")?n.map((function(e){return 100})):t.getColumnsWidth().concat(e.getColumnsWidth())},getRowsCount:function(){return this._options.items.length},getGroupLevel:function(){return 0},getCellMerging:function(e,t){var n=this._options.items,i=n[e]&&n[e][t];return i?{colspan:i.colspan-1,rowspan:i.rowspan-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){return{x:this.getRowAreaColCount(),y:this.getColumnAreaRowCount()}},getCellType:function(e,t){var n=this.getStyles()[this.getStyleId(e,t)];return n&&n.dataType||"string"},getCellData:function(e,t,n){var i={},o=this._options.items,a=o[e]&&o[e][t]||{};if(n){i.cellSourceData=a;var r=this._tryGetAreaName(a,e,t);r&&(i.cellSourceData.area=r),i.cellSourceData.rowIndex=e,i.cellSourceData.columnIndex=t}return"string"===this.getCellType(e,t)?i.value=a.text:i.value=a.value,i.cellSourceData&&i.cellSourceData.isWhiteSpace&&(i.value=""),i},_tryGetAreaName:function(e,t,n){return this.isColumnAreaCell(t,n)?"column":this.isRowAreaCell(t,n)?"row":(0,o.isDefined)(e.dataIndex)?"data":void 0},isRowAreaCell:function(e,t){return e>=this.getColumnAreaRowCount()&&t<this.getRowAreaColCount()},isColumnAreaCell:function(e,t){return t>=this.getRowAreaColCount()&&e<this.getColumnAreaRowCount()},getColumnAreaRowCount:function(){return this._options.items[0][0].rowspan},getRowAreaColCount:function(){return this._options.items[0][0].colspan},getHeaderStyles:function(){return[{alignment:"center",dataType:"string"},{alignment:(0,l.getDefaultAlignment)(this._options.rtlEnabled),dataType:"string"}]},getDataFieldStyles:function(){var e=this,t=this._options.dataFields,n={alignment:this._options.rtlEnabled?"left":"right"},i=[];return t.length?(t.forEach((function(t){i.push(_({},n,{format:t.format,dataType:e.getCellDataType(t)}))})),i):[n]},getStyles:function(){return this._styles||(this._styles=[].concat(g(this.getHeaderStyles()),g(this.getDataFieldStyles()))),this._styles},getCellDataType:function(e){if(e&&e.customizeText)return"string";if(e.dataType)return e.dataType;if(e.format){if(1===d.default.parse(u.default.format(1,e.format)))return"number";if(u.default.format(new Date,e.format))return"date"}return"string"},getStyleId:function(e,t){var n=this._options.items,i=n[e]&&n[e][t]||{};return 0===t&&0===e||this.isColumnAreaCell(e,t)?0:this.isRowAreaCell(e,t)?1:this.getHeaderStyles().length+(i.dataIndex||0)},hasCustomizeExcelCell:function(){return(0,o.isDefined)(this._options.customizeExcelCell)},customizeExcelCell:function(e){this._options.customizeExcelCell&&this._options.customizeExcelCell(e)}});t.DataProvider=y},77271:function(e,t,n){t.default=void 0;var i=m(n(68374)),o=n(44899),a=n(58201),r=n(35922),s=n(13306),l=n(89386),u=n(95479),d=m(n(28109)),c=m(n(99393)),h=n(87280),f=m(n(30254)),p=m(n(10042)),g=m(n(3744));function m(e){return e&&e.__esModule?e:{default:e}}n(98713);var _="<div>",v=(0,a.hasWindow)(),y="dx-pivotgridfieldchooser-container";function x(e,t){if(e.items)for(var n=0;n<e.items.length;n++){var i=x(e.items[n],t);if(i)return i}if(t(e))return e}var b=[function(e,t){return-!!e.isMeasure+ +!!t.isMeasure},function(e,t){return-!(!e.items||!e.items.length)+ +!(!t.items||!t.items.length)},function(e,t){return+!!(!1===e.isMeasure&&e.field&&e.field.levels&&e.field.levels.length)-!!(!1===t.isMeasure&&t.field&&t.field.levels&&t.field.levels.length)},(0,h.getCompareFunction)((function(e){return e.text}))];function w(e,t){for(var n=0,i=0;!n&&b[i];)n=b[i++](e,t);return n}function C(e){return e.find(".dx-scrollable").dxScrollable("instance")}var S=g.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{height:400,layout:0,dataSource:null,onContextMenuPreparing:null,allowSearch:!1,searchTimeout:500,texts:{columnFields:d.default.format("dxPivotGrid-columnFields"),rowFields:d.default.format("dxPivotGrid-rowFields"),dataFields:d.default.format("dxPivotGrid-dataFields"),filterFields:d.default.format("dxPivotGrid-filterFields"),allFields:d.default.format("dxPivotGrid-allFields")}})},_refreshDataSource:function(){var e=this;e._expandedPaths=[],e._changedHandler=e._changedHandler||function(){(0,u.each)(e._dataChangedHandlers,(function(e,t){t()})),e._fireContentReadyAction(),e._skipStateChange=!0,e.option("state",e._dataSource.state()),e._skipStateChange=!1},e._disposeDataSource(),e.callBase(),e._dataSource&&e._dataSource.on("changed",e._changedHandler)},_disposeDataSource:function(){var e=this,t=e._dataSource;t&&(t.off("changed",e._changedHandler),e._dataSource=void 0)},_dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},_init:function(){this.callBase(),this._refreshDataSource(),this._dataChangedHandlers=[],this._initActions()},_initActions:function(){this._actions={onContextMenuPreparing:this._createActionByOption("onContextMenuPreparing")}},_trigger:function(e,t){this._actions[e](t)},_setOptionsByReference:function(){this.callBase(),(0,s.extend)(this._optionsByReference,{dataSource:!0})},_optionChanged:function(e){var t=this;switch(e.name){case"dataSource":t._refreshDataSource(),t._invalidate();break;case"layout":case"texts":case"allowSearch":case"searchTimeout":t._invalidate();break;case"onContextMenuPreparing":t._actions[e.name]=t._createActionByOption(e.name);break;default:t.callBase(e)}},_clean:function(e){!e&&this._dataSource&&this.option("state",this._dataSource.state()),this.$element().children("."+y).remove()},_renderLayout0:function(e){var t=this;e.addClass("dx-layout-0");var n=(0,i.default)(_).addClass("dx-row").appendTo(e),o=(0,i.default)(_).addClass("dx-row").appendTo(e),a=(0,i.default)(_).addClass("dx-col").appendTo(n),r=(0,i.default)(_).addClass("dx-col").appendTo(n),s=(0,i.default)(_).addClass("dx-col").appendTo(o),l=(0,i.default)(_).addClass("dx-col").appendTo(o);t._renderArea(a,"all"),t._renderArea(r,"row"),t._renderArea(r,"column"),t._renderArea(s,"filter"),t._renderArea(l,"data")},_renderLayout1:function(e){var t=this,n=(0,i.default)(_).addClass("dx-col").appendTo(e),o=(0,i.default)(_).addClass("dx-col").appendTo(e);t._renderArea(n,"all"),t._renderArea(o,"filter"),t._renderArea(o,"row"),t._renderArea(o,"column"),t._renderArea(o,"data")},_renderLayout2:function(e){var t=this;e.addClass("dx-layout-2");var n=(0,i.default)(_).addClass("dx-row").appendTo(e);t._renderArea(n,"all");var o=(0,i.default)(_).addClass("dx-row").appendTo(e),a=(0,i.default)(_).addClass("dx-col").appendTo(o),r=(0,i.default)(_).addClass("dx-col").appendTo(o);t._renderArea(a,"filter"),t._renderArea(a,"row"),t._renderArea(r,"column"),t._renderArea(r,"data")},_initMarkup:function(){var e=this,t=this.$element(),n=(0,i.default)(_).addClass(y).appendTo(t),o=e.option("layout");e.callBase(),t.addClass("dx-pivotgridfieldchooser").addClass("dx-pivotgrid-fields-container"),e._dataChangedHandlers=[];var a=this._dataSource,r="instantly"!==e.option("applyChangesMode")&&a&&a.state();r&&e.option("state")&&a.state(e.option("state"),!0),0===o?e._renderLayout0(n):1===o?e._renderLayout1(n):e._renderLayout2(n),r&&a.state(r,!0)},_renderContentImpl:function(){this.callBase(),this.renderSortable(),this._renderContextMenu(),this.updateDimensions()},_fireContentReadyAction:function(){this._dataSource&&this._dataSource.isLoading()||this.callBase()},_getContextMenuArgs:function(e){var t,n,o=(0,i.default)(e.target).closest(".dx-area-field"),a=(0,i.default)(e.target).closest(".dx-area-fields");if(o.length){var r=o.data("field");r&&(t=this.getDataSource().field(r.index)||r)}return a.length&&(n=a.attr("group")),{event:e,field:t,area:n,items:[]}},_renderContextMenu:function(){var e=this,t=e.$element();e._contextMenu&&e._contextMenu.$element().remove(),e._contextMenu=e._createComponent((0,i.default)(_).appendTo(t),p.default,{onPositioning:function(t){var n=t.event;if(n){var i=e._getContextMenuArgs(n);e._trigger("onContextMenuPreparing",i),i.items&&i.items.length?t.component.option("items",i.items):t.cancel=!0}},target:t,onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:"dx-pivotgridfieldchooser-context-menu"})},_createTreeItems:function(e,t,n){var i,o=this,a=[],s=[],d=t[0],c={};return d?((0,u.each)(e,(function(e,t){var n=t[d]||"";c[n]=c[n]||[],c[n].push(t),void 0===i&&(i=!0),i=i&&!0===t.isMeasure})),(0,u.each)(c,(function(e,i){var r=n?n+"."+e:e,u=o._createTreeItems(i,t.slice(1),r);e?s.push({key:e,text:e,path:r,isMeasure:u.isMeasure,expanded:(0,l.inArray)(r,o._expandedPaths)>=0,items:u}):a=u})),(a=s.concat(a)).isMeasure=i):(0,u.each)(e,(function(e,t){var n;!0===t.isMeasure&&(n="measure"),!1===t.isMeasure&&(n=t.groupName?"hierarchy":"dimension"),a.push({index:t.index,field:t,key:t.dataField,selected:(0,r.isDefined)(t.area),text:t.caption||t.dataField,icon:n,isMeasure:t.isMeasure,isDefault:t.isDefault})})),a},_createFieldsDataSource:function(e){var t=e&&e.fields()||[];t=t.filter((function(e){return!1!==e.visible&&!(0,r.isDefined)(e.groupIndex)}));var n=this._createTreeItems(t,["dimension","displayFolder"]);return(0,h.foreachDataLevel)(n,(function(e){e.sort(w)}),0,"items"),n},_renderFieldsTreeView:function(e){var t=this,n=t._dataSource,a=t._createComponent(e,f.default,{dataSource:t._createFieldsDataSource(n),showCheckBoxesMode:"normal",expandNodesRecursive:!1,searchEnabled:t.option("allowSearch"),searchTimeout:t.option("searchTimeout"),itemTemplate:function(e,t,n){e.icon&&(0,o.getImageContainer)(e.icon).appendTo(n),(0,i.default)("<span>").toggleClass("dx-area-field",!e.items).data("field",e.field).text(e.text).appendTo(n)},onItemCollapsed:function(e){var n=(0,l.inArray)(e.itemData.path,t._expandedPaths);n>=0&&t._expandedPaths.splice(n,1)},onItemExpanded:function(e){(0,l.inArray)(e.itemData.path,t._expandedPaths)<0&&t._expandedPaths.push(e.itemData.path)},onItemSelectionChanged:function(e){var i,o,s,l=e.itemData,u=!0;if(l.items){if(l.selected)return void a.unselectItem(l);if(t._processDemandState((function(){o=function e(t,n){var i=[];if(t.items)for(var o=0;o<t.items.length;o++)i.push.apply(i,e(t.items[o],n));else(0,r.isDefined)(t.index)&&i.push(n[t.index]);return i}(l,n.fields());for(var e=0;e<o.length;e++)if(o[e].area){u=!1;break}})),u){var d=x(l,(function(e){return e.isDefault}))||x(l,(function(e){return(0,r.isDefined)(e.index)}));return void(d&&a.selectItem(d))}}else i=n.fields()[l.index],l.selected&&(s=i.isMeasure?"data":"column"),i&&(o=[i]);t._applyChanges(o,{area:s,areaIndex:void 0})}});t._dataChangedHandlers.push((function(){var i=C(e),o=i?i.scrollTop():0;a.option({dataSource:t._createFieldsDataSource(n)}),(i=C(e))&&(i.scrollTo({y:o}),i.update())}))},_renderAreaFields:function(e,t){var n=this,i=n._dataSource,o=i?(0,s.extend)(!0,[],i.getAreaFields(t,!0)):[];e.empty(),(0,u.each)(o,(function(t,i){!1!==i.visible&&n.renderField(i,!0).appendTo(e)}))},_renderArea:function(e,t){var n,o,a=this,r=(0,i.default)(_).addClass("dx-area").appendTo(e),s=(0,i.default)(_).addClass("dx-area-fields-header").appendTo(r),l=a.option("texts."+t+"Fields");(0,i.default)("<span>").addClass("dx-area-icon").addClass("dx-area-icon-"+t).appendTo(s),(0,i.default)("<span>").html("&nbsp;").appendTo(s),(0,i.default)("<span>").addClass("dx-area-caption").text(l).appendTo(s);var u=(0,i.default)(_).addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").appendTo(r);"all"!==t?(u.attr("group",t).attr("allow-scrolling",!0),n=(0,i.default)(_).addClass("dx-area-field-container").appendTo(u),o=function(){a._renderAreaFields(n,t)},a._dataChangedHandlers.push(o),o(),u.dxScrollable()):(r.addClass("dx-all-fields"),u.addClass("dx-treeview-border-visible"),a._renderFieldsTreeView(u))},_getSortableOptions:function(){return{}},_adjustSortableOnChangedArgs:function(){},resetTreeView:function(){var e=this.$element().find(".dx-treeview").dxTreeView("instance");e&&(e.option("searchValue",""),e.collapseAll())},applyChanges:function(){var e=this.option("state");(0,r.isDefined)(e)&&this._dataSource.state(e)},cancelChanges:function(){var e=this._dataSource;return!e.isLoading()&&(this.option("state",e.state()),!0)},getDataSource:function(){return this._dataSource},updateDimensions:function(){this.$element().find(".dx-area .dx-scrollable").dxScrollable("update")},_visibilityChanged:function(e){e&&v&&this.updateDimensions()}});(0,c.default)("dxPivotGridFieldChooser",S);var k=S;t.default=k,e.exports=t.default,e.exports.default=t.default},3744:function(e,t,n){t.default=void 0;var i=n(58664),o=w(n(68374)),a=w(n(55994)),r=w(n(26562)),s=n(95429),l=n(20576),u=n(35922),d=n(89386),c=n(13306),h=n(95479),f=w(n(28109)),p=w(n(99393)),g=w(n(14390)),m=n(85589),_=w(n(78725)),v=w(n(164)),y=n(87280),x=w(n(80995)),b=n(62754);function w(e){return e&&e.__esModule?e:{default:e}}var C="<div>",S=m.HeaderFilterView.inherit({_getSearchExpr:function(e){return e.useDefaultSearchExpr=!0,this.callBase(e)}});function k(e,t){var n=t;return(0,u.isDefined)(t.groupIndex)&&(n=e.getAreaFields(t.area,!0)[t.areaIndex]),n}function D(e){return e=e||{},JSON.stringify([e.fields,e.columnExpandedPaths,e.rowExpandedPaths])}var I=g.default.inherit(_.default).inherit(v.default).inherit(m.headerFilterMixin).inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{allowFieldDragging:!0,applyChangesMode:"instantly",state:null,headerFilter:{width:252,height:325,searchTimeout:500,texts:{emptyValue:f.default.format("dxDataGrid-headerFilterEmptyValue"),ok:f.default.format("dxDataGrid-headerFilterOK"),cancel:f.default.format("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new S(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var e=this.option("dataSource");e&&e.fields&&e.load&&(this._dataSource=e)},_optionChanged:function(e){switch(e.name){case"dataSource":this._refreshDataSource();break;case"applyChangesMode":break;case"state":if(this._skipStateChange||!this._dataSource)break;"instantly"===this.option("applyChangesMode")&&D(this._dataSource.state())!==D(e.value)?this._dataSource.state(e.value):(this._clean(!0),this._renderComponent());break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(e)}},renderField:function(e,t){var n=this,i=(0,o.default)(C).addClass("dx-area-field-content").text(e.caption||e.dataField),a=(0,o.default)(C).addClass("dx-area-field").addClass("dx-area-box").data("field",e).append(i),r=k(n._dataSource,e);return"data"!==e.area&&(e.allowSorting&&n._applyColumnState({name:"sort",rootElement:a,column:{alignment:n.option("rtlEnabled")?"right":"left",sortOrder:"desc"===e.sortOrder?"desc":"asc",allowSorting:e.allowSorting},showColumnLines:t}),n._applyColumnState({name:"headerFilter",rootElement:a,column:{alignment:n.option("rtlEnabled")?"right":"left",filterValues:r.filterValues,allowFiltering:r.allowFiltering&&!e.groupIndex,allowSorting:e.allowSorting},showColumnLines:t})),e.groupName&&a.attr("item-group",e.groupName),a},_clean:function(){},_render:function(){this.callBase(),this._headerFilterView.render(this.$element())},renderSortable:function(){var e=this;e._createComponent(e.$element(),x.default,(0,c.extend)({allowDragging:e.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var t=e._dataSource,n=(0,o.default)(this).closest(".dx-sortable-old"),i=n.data("dxPivotGrid"),a=n.data("dxPivotGridFieldChooser");return i?i.getDataSource()===t:!!a&&a.option("dataSource")===t},itemRender:function(e,t){var n;if(e.hasClass("dx-area-box")?(n=e.clone(),"drag"===t&&(0,h.each)(e,(function(e,t){n.eq(e).css("width",parseInt((0,i.getOuterWidth)(t),10)+1)}))):n=(0,o.default)(C).addClass("dx-area-field").addClass("dx-area-box").text(e.text()),"drag"===t){var a=(0,o.default)(C);return(0,h.each)(n,(function(e,t){var n=(0,o.default)("<div>").addClass("dx-pivotgrid-fields-container").addClass("dx-widget").append((0,o.default)(t));a.append(n)})),a.children()}return n},onDragging:function(e){var t=e.sourceElement.data("field"),n=e.targetGroup;e.cancel=!1,!0===t.isMeasure?"column"!==n&&"row"!==n&&"filter"!==n||(e.cancel=!0):!1===t.isMeasure&&"data"===n&&(e.cancel=!0)},useIndicator:!0,onChanged:function(t){var n=e._dataSource,i=t.sourceElement.data("field");t.removeSourceElement=!!t.sourceGroup,e._adjustSortableOnChangedArgs(t),i&&e._applyChanges([k(n,i)],{area:t.targetGroup,areaIndex:t.targetIndex})}},e._getSortableOptions()))},_processDemandState:function(e){var t=this,n="instantly"===t.option("applyChangesMode"),i=t._dataSource;if(n)e(i,n);else{var o=i.state(),a=t.option("state");a&&i.state(a,!0),e(i,n),i.state(o,!0)}},_applyChanges:function(e,t){var n=this;n._processDemandState((function(i,o){e.forEach((function(e){var n=e.index;i.field(n,t)})),o?i.load():n._changedHandler()}))},_adjustSortableOnChangedArgs:function(e){e.removeSourceElement=!1,e.removeTargetElement=!0,e.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(e){var t=this,n=function(e){var n=(0,o.default)(e.currentTarget).data("field"),i=(0,c.extend)(!0,{},k(t._dataSource,n)),a=(0,o.default)(e.target).hasClass("dx-header-filter"),s=t._dataSource,l=i.groupName?"tree":"list",u=s.paginate()&&"list"===l;a?t._headerFilterView.showHeaderFilterMenu((0,o.default)(e.currentTarget),(0,c.extend)(i,{type:l,encodeHtml:t.option("encodeHtml"),dataSource:{useDefaultSearch:!u,load:function(e){var n=e.userData;if(n.store)return n.store.load(e);var o=new b.Deferred;return s.getFieldValues(i.index,t.option("headerFilter.showRelevantValues"),u?e:void 0).done((function(i){var a=t.option("headerFilter.texts.emptyValue");i.forEach((function(e){e.text||(e.text=a)})),u?o.resolve(i):(n.store=new r.default(i),n.store.load(e).done(o.resolve).fail(o.reject))})).fail(o.reject),o},postProcess:function(e){return function(e,t){var n=[],i=!!t.groupName,o="exclude"===t.filterType;t.filterValues&&(0,h.each)(t.filterValues,(function(e,t){n.push(Array.isArray(t)?t.join("/"):t&&t.valueOf())})),(0,y.foreachTree)(e,(function(e){var t=e[0],a=(0,y.createPath)(e),r=i?(0,h.map)(e,(function(e){return e.text})).reverse().join("/"):t.text;t.value=i?a.slice(0):t.key||t.value;var s=i?a.join("/"):t.value&&t.value.valueOf();t.children&&(t.items=t.children,t.children=null),(0,m.updateHeaderFilterItemSelectionState)(t,t.key&&(0,d.inArray)(r,n)>-1||(0,d.inArray)(s,n)>-1,o)}))}(e,i),e}},apply:function(){t._applyChanges([i],{filterValues:this.filterValues,filterType:this.filterType})}})):n.allowSorting&&"data"!==n.area&&t._applyChanges([n],{sortOrder:"desc"===n.sortOrder?"asc":"desc"})};e?a.default.on(e,s.name,".dx-area-field.dx-area-box",n):a.default.on(t.$element(),s.name,".dx-area-field.dx-area-box",n)},_initTemplates:l.noop,addWidgetPrefix:function(e){return"dx-pivotgrid-"+e}});(0,p.default)("dxPivotGridFieldChooserBase",I);var T=I;t.default=T,e.exports=t.default,e.exports.default=t.default},53701:function(e,t,n){t.FieldsArea=void 0;var i=c(n(68374)),o=n(20576),a=n(95479),r=n(34174),s=n(87280),l=n(80968),u=c(n(39114)),d=c(n(63008));function c(e){return e&&e.__esModule?e:{default:e}}n(3744);var h="<div>",f=r.AreaItem.inherit({ctor:function(e,t){this.callBase(e),this._area=t},_getAreaName:function(){return"fields"},_createGroupElement:function(){return(0,i.default)(h).addClass("dx-pivotgrid-fields-area").addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").attr("group",this._area)},isVisible:function(){return!!this.option("fieldPanel.visible")&&this.option("fieldPanel.show"+(0,s.capitalizeFirstLetter)(this._area)+"Fields")},_renderButton:function(e){var t=this,n=(0,i.default)("<td>").appendTo((0,i.default)("<tr>").appendTo(e));t.component._createComponent((0,i.default)(h).appendTo(n),d.default,{text:"Fields",icon:"menu",width:"auto",onClick:function(){var e=t.tableElement().find(".dx-fields-area-popup").dxPopup("instance");e.option("visible")||e.show()}}).$element().addClass("dx-pivotgrid-fields-area-hamburger")},_getPopupOptions:function(e,t){return{contentTemplate:function(){return(0,i.default)("<table>").addClass("dx-area-field-container").append((0,i.default)("<thead>").addClass("dx-pivotgrid-fields-area-head").append(e))},height:"auto",width:"auto",position:{at:"left",my:"left",of:t},dragEnabled:!1,animation:{show:{type:"pop",duration:200}},shading:!1,showTitle:!1,closeOnOutsideClick:!0,container:t.parent()}},_renderPopup:function(e,t){var n=this,o=e.find(".dx-button"),a=n._getPopupOptions(t,o),r=n.component.$element().dxPivotGridFieldChooserBase("instance");n._rowPopup&&n._rowPopup.$element().remove(),n._rowPopup=n.component._createComponent((0,i.default)(h).appendTo(e),u.default,a),n._rowPopup.$element().addClass("dx-fields-area-popup"),n._rowPopup.content().addClass("dx-pivotgrid-fields-container"),n._rowPopup.content().parent().attr("group","row"),r.subscribeToEvents(n._rowPopup.content()),r.renderSortable(n._rowPopup.content())},_shouldCreateButton:function(){return!1},_renderTableContent:function(e,t){var n=this,o=this.groupElement(),r=this.isVisible(),s=n.component.$element().dxPivotGridFieldChooserBase("instance"),l=(0,i.default)("<thead>").addClass("dx-pivotgrid-fields-area-head").appendTo(e),u=n._area,d=(0,i.default)("<tr>");o.toggleClass("dx-hidden",!r),e.addClass("dx-area-field-container"),r&&((0,a.each)(t,(function(e,o){if(o.area===u&&!1!==o.visible){var a=(0,i.default)("<td>").append(s.renderField(o,"row"===o.area)),r=a.find(".dx-column-indicators");r.length&&n._shouldCreateButton()&&r.insertAfter(r.next()),a.appendTo(d),function(e,t,n,o){n&&n.groupName&&n.groupName===e.groupName&&(0,i.default)(h).addClass("dx-group-connector").addClass("dx-group-connector-prev").appendTo(o),t&&t.groupName&&t.groupName===e.groupName&&(0,i.default)(h).addClass("dx-group-connector").addClass("dx-group-connector-next").appendTo(o)}(o,t[e+1],t[e-1],a)}})),d.children().length||(0,i.default)("<td>").append((0,i.default)(h).addClass("dx-empty-area-text").text(this.option("fieldPanel.texts."+u+"FieldArea"))).appendTo(d),n._shouldCreateButton()?(n._renderButton(l),n._renderPopup(e,d)):l.append(d))},setGroupWidth:function(e){(0,l.setWidth)(this.groupElement(),e)},setGroupHeight:function(e){(0,l.setHeight)(this.groupElement(),e)},reset:function(){this.callBase(),this.groupElement().css("marginTop",0)},_renderVirtualContent:o.noop});t.FieldsArea=f},29334:function(e,t,n){t.VerticalHeadersArea=t.HorizontalHeadersArea=void 0;var i,o=n(58664),a=(i=n(68374))&&i.__esModule?i:{default:i},r=n(35922),s=n(89386),l=n(95479),u=n(34174),d="dx-expand-border";function c(e,t){if(t){var n=e.data().data,i=t.parentNode.rowIndex,o=t.cellIndex;return n[i]&&n[i][o]&&n[i][o].path}}var h=u.AreaItem.inherit({ctor:function(e){this.callBase(e),this._scrollBarWidth=0},_getAreaName:function(){return"column"},_getAreaClassName:function(){return"dx-pivotgrid-horizontal-headers"},_createGroupElement:function(){return(0,a.default)("<div>").addClass(this._getAreaClassName()).addClass("dx-pivotgrid-area")},_applyCustomStyles:function(e){var t=e.cssArray,n=e.cell,i=e.rowsCount,o=e.classArray;e.cellIndex===e.cellsCount-1&&t.push((e.rtlEnabled?"border-left:":"border-right:")+"0px"),n.rowspan!==i-e.rowIndex&&e.rowIndex+1!==i||t.push("border-bottom-width:0px"),"T"!==n.type&&"GT"!==n.type||o.push("dx-row-total"),"T"===e.cell.type&&o.push("dx-total"),"GT"===e.cell.type&&o.push("dx-grandtotal"),(0,r.isDefined)(n.expanded)&&o.push(n.expanded?"dx-pivotgrid-expanded":"dx-pivotgrid-collapsed"),this.callBase(e)},_getMainElementMarkup:function(){return"<thead class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</thead>"},setVirtualContentParams:function(e){this.callBase(e),this._setTableCss({left:e.left,top:0}),this._virtualContentWidth=e.width},hasScroll:function(){var e=this._virtualContent?this._virtualContentWidth:this._tableWidth,t=this.getGroupWidth();return!(!t||!e)&&e-t>=1},renderScrollable:function(){this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:"never",bounceEnabled:!1,direction:"horizontal",updateManually:!0})},processScrollBarSpacing:function(e){var t=this.option("rtlEnabled")?"right":"left",n=this.getGroupWidth();n&&this.setGroupWidth(n-e),this._scrollBarWidth&&this._groupElement.next().remove(),this._groupElement.toggleClass("dx-vertical-scroll",e>0),(0,o.setWidth)(this._groupElement.css("float",t),this.getGroupHeight()),this._scrollBarWidth=e},getScrollPath:function(e){var t,n=this.tableElement();return e-=parseInt(n[0].style.left,10)||0,(0,l.each)(n.find("td"),(function(n,i){if(1===i.colSpan&&i.offsetLeft<=e&&i.offsetWidth+i.offsetLeft>e)return t=i,!1})),c(n,t)},_moveFakeTable:function(e){this._moveFakeTableHorizontally(e),this.callBase()}});t.HorizontalHeadersArea=h;var f=h.inherit({_getAreaClassName:function(){return"dx-pivotgrid-vertical-headers"},_applyCustomStyles:function(e){this.callBase(e),e.cellIndex===e.cellsCount-1&&e.classArray.push("dx-last-cell"),e.rowIndex===e.rowsCount-1&&e.cssArray.push("border-bottom: 0px"),e.cell.isWhiteSpace&&e.classArray.push("dx-white-space-column")},_getAreaName:function(){return"row"},setVirtualContentParams:function(e){this.callBase(e),this._setTableCss({top:e.top,left:0}),this._virtualContentHeight=e.height},hasScroll:function(){var e=this._virtualContent?this._virtualContentHeight:this._tableHeight,t=this.getGroupHeight();return!(!t||!e)&&e-t>=1},renderScrollable:function(){this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:"never",bounceEnabled:!1,direction:"vertical",updateManually:!0})},processScrollBarSpacing:function(e){var t=this.getGroupHeight();if(t&&this.setGroupHeight(t-e),this._scrollBarWidth&&this._groupElement.next().remove(),e){var n=(0,a.default)("<div>");(0,o.setWidth)(n,"100%"),(0,o.setHeight)(n,e-1),this._groupElement.after(n)}this._scrollBarWidth=e},getScrollPath:function(e){var t,n=this.tableElement();return e-=parseInt(n[0].style.top,10)||0,(0,l.each)(n.find("tr"),(function(n,i){var o=i.childNodes[i.childNodes.length-1];if(o&&1===o.rowSpan&&o.offsetTop<=e&&o.offsetHeight+o.offsetTop>e)return t=o,!1})),c(n,t)},_moveFakeTable:function(e){this._moveFakeTableTop(e),this.callBase()},_getRowClassNames:function(e,t,n){0!==e&t.expanded&&-1===(0,s.inArray)(d,n)&&n.push(d)},_getMainElementMarkup:function(){return"<tbody class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</tbody>"},updateColspans:function(e){var t=this.tableElement()[0].rows,n=0,i=[];if(!(this.getColumnsCount()-e>0))for(var o=0;o<t.length;o++)for(var a=0;a<t[o].cells.length;a++){var r=t[o].cells[a],s=r.rowSpan;i[o]&&(n-=i[o],i[o]=0);var l=e-(n+r.colSpan);a===t[o].cells.length-1&&l>0&&(r.colSpan=r.colSpan+l),i[o+s]=(i[o+s]||0)+r.colSpan,n+=r.colSpan}}});t.VerticalHeadersArea=f},41e3:function(e,t,n){t.default=void 0;var i=O(n(68374)),o=n(58201),a=O(n(55994)),r=O(n(99393)),s=n(6415),l=n(68752),u=n(20576),d=n(95479),c=n(35922),h=n(13306),f=n(95429),p=O(n(28109)),g=O(n(14390)),m=n(39611),_=O(n(13615)),v=n(87280),y=n(54295),x=n(5260),b=n(29334),w=n(58664),C=n(53701),S=O(n(77271)),k=O(n(3744)),D=n(84062),I=O(n(49809)),T=O(n(39114)),E=O(n(10042)),A=n(62754);function O(e){return e&&e.__esModule?e:{default:e}}var P=(0,o.getWindow)(),M="dx-pivotgrid-border",R="dx-pivotgrid",B="dx-bottom-border",V="dx-area-fields",F="dx-incompressible-fields",L="dx-overflow-hidden",H="<tr>",N="<td>",z="<div>",W=["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"];function G(e){var t=0;return(0,d.each)(e,(function(e,n){t+=n||0})),t}function j(e,t){for(var n=t/e.length,i=0;i<e.length;i++)e[i]-=n}function q(e){e.off("scroll").off("stop")}function $(e,t){var n="width"===t?["borderLeftWidth","borderRightWidth"]:["borderTopWidth","borderBottomWidth"],i=0;return(0,d.each)(e,(function(e,t){var o=P.getComputedStyle(t.get(0));n.forEach((function(e){i+=parseFloat(o[e])||0}))})),i}var K=g.default.inherit({_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{scrolling:{timeout:300,renderingThreshold:150,minTimeout:10,mode:"standard",useNative:"auto",removeInvisiblePages:!0,virtualRowHeight:50,virtualColumnWidth:100,loadTwoPagesOnStart:!0},encodeHtml:!0,dataSource:null,activeStateEnabled:!1,fieldChooser:{minWidth:250,minHeight:250,enabled:!0,allowSearch:!1,searchTimeout:500,layout:0,title:p.default.format("dxPivotGrid-fieldChooserTitle"),width:600,height:600,applyChangesMode:"instantly"},onContextMenuPreparing:null,allowSorting:!1,allowSortingBySummary:!1,allowFiltering:!1,allowExpandAll:!1,wordWrapEnabled:!0,fieldPanel:{showColumnFields:!0,showFilterFields:!0,showDataFields:!0,showRowFields:!0,allowFieldDragging:!0,visible:!1,texts:{columnFieldArea:p.default.format("dxPivotGrid-columnFieldArea"),rowFieldArea:p.default.format("dxPivotGrid-rowFieldArea"),filterFieldArea:p.default.format("dxPivotGrid-filterFieldArea"),dataFieldArea:p.default.format("dxPivotGrid-dataFieldArea")}},dataFieldArea:"column",export:{enabled:!1,fileName:"PivotGrid",proxyUrl:void 0,ignoreExcelErrors:!0},showRowTotals:!0,showRowGrandTotals:!0,showColumnTotals:!0,showColumnGrandTotals:!0,hideEmptySummaryCells:!0,showTotalsPrior:"none",rowHeaderLayout:"standard",loadPanel:{enabled:!0,text:p.default.format("Loading"),width:200,height:70,showIndicator:!0,indicatorSrc:"",showPane:!0},texts:{grandTotal:p.default.format("dxPivotGrid-grandTotal"),total:p.default.getFormatter("dxPivotGrid-total"),noData:p.default.format("dxDataGrid-noDataText"),showFieldChooser:p.default.format("dxPivotGrid-showFieldChooser"),expandAll:p.default.format("dxPivotGrid-expandAll"),collapseAll:p.default.format("dxPivotGrid-collapseAll"),sortColumnBySummary:p.default.getFormatter("dxPivotGrid-sortColumnBySummary"),sortRowBySummary:p.default.getFormatter("dxPivotGrid-sortRowBySummary"),removeAllSorting:p.default.format("dxPivotGrid-removeAllSorting"),exportToExcel:p.default.format("dxDataGrid-exportToExcel"),dataNotAvailable:p.default.format("dxPivotGrid-dataNotAvailable")},onCellClick:null,onCellPrepared:null,showBorders:!1,stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3},onExpandValueChanging:null,renderCellCountLimit:2e4,onExporting:null,onExported:null,onFileSaving:null,headerFilter:{width:252,height:325,allowSearch:!1,showRelevantValues:!1,searchTimeout:500,texts:{emptyValue:p.default.format("dxDataGrid-headerFilterEmptyValue"),ok:p.default.format("dxDataGrid-headerFilterOK"),cancel:p.default.format("dxDataGrid-headerFilterCancel")}}})},_updateCalculatedOptions:function(e){var t=this;(0,d.each)(e,(function(e,n){(0,d.each)(W,(function(e,i){var o=n._initProperties&&i in n._initProperties&&void 0===n._initProperties[i];(void 0===n[i]||o)&&(0,v.setFieldProperty)(n,i,t.option(i))}))}))},_getDataControllerOptions:function(){var e=this;return{component:e,dataSource:e.option("dataSource"),texts:e.option("texts"),showRowTotals:e.option("showRowTotals"),showRowGrandTotals:e.option("showRowGrandTotals"),showColumnTotals:e.option("showColumnTotals"),showTotalsPrior:e.option("showTotalsPrior"),showColumnGrandTotals:e.option("showColumnGrandTotals"),dataFieldArea:e.option("dataFieldArea"),rowHeaderLayout:e.option("rowHeaderLayout"),hideEmptySummaryCells:e.option("hideEmptySummaryCells"),onFieldsPrepared:function(t){e._updateCalculatedOptions(t)}}},_initDataController:function(){var e=this;e._dataController&&e._dataController.dispose(),e._dataController=new y.DataController(e._getDataControllerOptions()),(0,o.hasWindow)()&&e._dataController.changed.add((function(){e._render()})),e._dataController.scrollChanged.add((function(t){e._scrollLeft=t.left,e._scrollTop=t.top})),e._dataController.loadingChanged.add((function(t){e._updateLoading()})),e._dataController.progressChanged.add(e._updateLoading.bind(e)),e._dataController.dataSourceChanged.add((function(){e._trigger("onChanged")}));var t=e.option("onExpandValueChanging");t&&e._dataController.expandValueChanging.add((function(e){t(e)}))},_init:function(){var e=this;e.callBase(),e._initDataController(),e._scrollLeft=e._scrollTop=null,e._initActions()},_initActions:function(){var e=this;e._actions={onChanged:e._createActionByOption("onChanged"),onContextMenuPreparing:e._createActionByOption("onContextMenuPreparing"),onCellClick:e._createActionByOption("onCellClick"),onExporting:e._createActionByOption("onExporting"),onExported:e._createActionByOption("onExported"),onFileSaving:e._createActionByOption("onFileSaving"),onCellPrepared:e._createActionByOption("onCellPrepared")}},_trigger:function(e,t){this._actions[e](t)},_optionChanged:function(e){var t=this;if(W.indexOf(e.name)>=0){var n=this.getDataSource().fields();this._updateCalculatedOptions(n)}switch(e.name){case"dataSource":case"allowSorting":case"allowFiltering":case"allowExpandAll":case"allowSortingBySummary":case"scrolling":case"stateStoring":t._initDataController(),t._fieldChooserPopup.hide(),t._renderFieldChooser(),t._invalidate();break;case"texts":case"showTotalsPrior":case"showRowTotals":case"showRowGrandTotals":case"showColumnTotals":case"showColumnGrandTotals":case"hideEmptySummaryCells":case"dataFieldArea":t._dataController.updateViewOptions(t._getDataControllerOptions());break;case"useNativeScrolling":case"encodeHtml":case"renderCellCountLimit":case"onExpandValueChanging":break;case"rtlEnabled":t.callBase(e),t._renderFieldChooser(),t._renderContextMenu(),(0,o.hasWindow)()&&t._renderLoadPanel(t._dataArea.groupElement(),t.$element()),t._invalidate();break;case"export":t._renderDescriptionArea();break;case"onCellClick":case"onContextMenuPreparing":case"onExporting":case"onExported":case"onFileSaving":case"onCellPrepared":t._actions[e.name]=t._createActionByOption(e.name);break;case"fieldChooser":t._renderFieldChooser(),t._renderDescriptionArea();break;case"loadPanel":(0,o.hasWindow)()&&("loadPanel.enabled"===e.fullName?(clearTimeout(this._hideLoadingTimeoutID),t._renderLoadPanel(t._dataArea.groupElement(),t.$element())):(t._renderLoadPanel(t._dataArea.groupElement(),t.$element()),t._invalidate()));break;case"fieldPanel":t._renderDescriptionArea(),t._invalidate();break;case"headerFilter":t._renderFieldChooser(),t._invalidate();break;case"showBorders":t._tableElement().toggleClass(M,!!e.value),t.updateDimensions();break;case"wordWrapEnabled":t._tableElement().toggleClass("dx-word-wrap",!!e.value),t.updateDimensions();break;case"rowHeaderLayout":t._tableElement().find(".dx-area-row-cell").toggleClass("dx-area-tree-view","tree"===e.value),t._dataController.updateViewOptions(t._getDataControllerOptions());break;case"height":case"width":t._hasHeight=null,t.callBase(e),t.resize();break;default:t.callBase(e)}},_updateScrollPosition:function(e,t,n){var i,o,a=this,r=a._scrollTop||a._scrollLeft;a._scrollUpdating||(a._scrollUpdating=!0,t&&!t.hasScroll()&&a._hasHeight&&(a._scrollTop=null),e&&!e.hasScroll()&&(a._scrollLeft=null),(null!==a._scrollTop||null!==a._scrollLeft||r||a.option("rtlEnabled"))&&(i=a._scrollTop||0,o=a._scrollLeft||0,n.scrollTo({left:o,top:i}),e.scrollTo({left:o}),t.scrollTo({top:i}),a._dataController.updateWindowScrollPosition(a._scrollTop)),a._scrollUpdating=!1)},_subscribeToEvents:function(e,t,n){var i=this;(0,d.each)([e,t,n],(function(o,a){!function(e,t){q(e),e.on("scroll",t).on("stop",t)}(a,(function(o){return function(o,a){var r=o.scrollOffset,s=a._getScrollable(),l="vertical"!==s.option("direction")?r.left:i._scrollLeft,u="horizontal"!==s.option("direction")&&i._hasHeight?r.top:i._scrollTop;(i._scrollLeft||0)===(l||0)&&(i._scrollTop||0)===(u||0)||(i._scrollLeft=l,i._scrollTop=u,i._updateScrollPosition(e,t,n),"virtual"===i.option("scrolling.mode")&&i._dataController.setViewportPosition(i._scrollLeft,i._scrollTop))}(o,a)}))})),!i._hasHeight&&i._dataController.subscribeToWindowScrollEvents(n.groupElement())},_clean:u.noop,_needDelayResizing:function(e){return e.length*(e.length?e[0].length:0)>this.option("renderCellCountLimit")},_renderFieldChooser:function(){var e=this,t=e._pivotGridContainer,n=e.option("fieldChooser")||{},o="onDemand"===n.applyChangesMode?[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:p.default.format("OK"),onClick:function(t){e._fieldChooserPopup.$content().dxPivotGridFieldChooser("applyChanges"),e._fieldChooserPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:p.default.format("Cancel"),onClick:function(t){e._fieldChooserPopup.hide()}}}]:[],a={layout:n.layout,texts:n.texts||{},dataSource:e.getDataSource(),allowSearch:n.allowSearch,searchTimeout:n.searchTimeout,width:void 0,height:void 0,headerFilter:e.option("headerFilter"),encodeHtml:e.option("encodeHtml"),applyChangesMode:n.applyChangesMode,onContextMenuPreparing:function(t){e._trigger("onContextMenuPreparing",t)}},r={shading:!1,title:n.title,width:n.width,height:n.height,showCloseButton:!0,resizeEnabled:!0,minWidth:n.minWidth,minHeight:n.minHeight,toolbarItems:o,onResize:function(e){e.component.$content().dxPivotGridFieldChooser("updateDimensions")},onShown:function(t){e._createComponent(t.component.content(),S.default,a)},onHidden:function(e){var t=e.component.$content().dxPivotGridFieldChooser("instance");t.resetTreeView(),t.cancelChanges()}};e._fieldChooserPopup?(e._fieldChooserPopup.option(r),e._fieldChooserPopup.$content().dxPivotGridFieldChooser(a)):e._fieldChooserPopup=e._createComponent((0,i.default)(z).addClass("dx-fieldchooser-popup").appendTo(t),T.default,r)},_renderContextMenu:function(){var e=this,t=e._pivotGridContainer;e._contextMenu&&e._contextMenu.$element().remove(),e._contextMenu=e._createComponent((0,i.default)(z).appendTo(t),E.default,{onPositioning:function(t){var n=t.event;if(t.cancel=!0,n){var o=n.target.cellIndex>=0?n.target:(0,i.default)(n.target).closest("td").get(0);if(o){var a=e._createEventArgs(o,n),r=e._getContextMenuItems(a);return r?(t.component.option("items",r),void(t.cancel=!1)):void 0}}},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:R,target:e.$element()})},_getContextMenuItems:function(e){var t=this,n=[],i=t.option("texts");if("row"===e.area||"column"===e.area){var o=e[e.area+"Fields"],a=e["column"===e.area?"rowFields":"columnFields"],r=e.cell.path&&o[e.cell.path.length-1],s=t.getDataSource();if(r&&r.allowExpandAll&&e.cell.path.length<e[e.area+"Fields"].length&&!s.paginate()&&(n.push({beginGroup:!0,icon:"none",text:i.expandAll,onItemClick:function(){s.expandAll(r.index)}}),n.push({text:i.collapseAll,icon:"none",onItemClick:function(){s.collapseAll(r.index)}})),e.cell.isLast&&!s.paginate()){var u=0;(0,d.each)(a,(function(t,o){o.allowSortingBySummary&&(0,d.each)(e.dataFields,(function(t,a){if(!(0,c.isDefined)(e.cell.dataIndex)||e.cell.dataIndex===t){var r=!(0,c.isDefined)(e.cell.dataIndex)&&e.dataFields.length>1,d="column"===e.area?i.sortColumnBySummary:i.sortRowBySummary,h=(0,v.findField)(e.dataFields,o.sortBySummaryField)===t&&(e.cell.path||[]).join("/")===(o.sortBySummaryPath||[]).join("/"),f=(0,l.format)(d,r?o.caption+" - "+a.caption:o.caption);n.push({beginGroup:0===u,icon:h?"desc"===o.sortOrder?"sortdowntext":"sortuptext":"none",text:f,onItemClick:function(){s.field(o.index,{sortBySummaryField:a.name||a.caption||a.dataField,sortBySummaryPath:e.cell.path,sortOrder:"desc"===o.sortOrder?"asc":"desc"}),s.load()}}),u++}}))})),(0,d.each)(a,(function(e,t){if(t.allowSortingBySummary&&(0,c.isDefined)(t.sortBySummaryField))return n.push({beginGroup:0===u,icon:"none",text:i.removeAllSorting,onItemClick:function(){(0,d.each)(a,(function(e,t){s.field(t.index,{sortBySummaryField:void 0,sortBySummaryPath:void 0,sortOrder:void 0})})),s.load()}}),!1}))}}if(t.option("fieldChooser.enabled")&&n.push({beginGroup:!0,icon:"columnchooser",text:i.showFieldChooser,onItemClick:function(){t._fieldChooserPopup.show()}}),t.option("export.enabled")&&n.push({beginGroup:!0,icon:"xlsxfile",text:i.exportToExcel,onItemClick:function(){t.exportToExcel()}}),e.items=n,t._trigger("onContextMenuPreparing",e),(n=e.items)&&n.length)return n},_createEventArgs:function(e,t){var n,o=this,a=o.getDataSource(),r={rowFields:a.getAreaFields("row"),columnFields:a.getAreaFields("column"),dataFields:a.getAreaFields("data"),event:t};return(n=(0,i.default)(e)).closest("."+V).length||n.find("."+V).length?(0,h.extend)(o._createFieldArgs(e),r):(0,h.extend)(o._createCellArgs(e),r)},_createFieldArgs:function(e){var t=(0,i.default)(e).children().data("field"),n={field:t};return(0,c.isDefined)(t)?n:{}},_createCellArgs:function(e){var t=(0,i.default)(e),n=e.cellIndex,o=e.parentElement.rowIndex,a=t.closest("table"),r=a.data("data"),l=r&&r[o]&&r[o][n];return{area:a.data("area"),rowIndex:o,columnIndex:n,cellElement:(0,s.getPublicElement)(t),cell:l}},_handleCellClick:function(e){var t=this,n=t._createEventArgs(e.currentTarget,e),i=n.cell;i&&(n.area||!n.rowIndex&&!n.columnIndex)&&(t._trigger("onCellClick",n),i&&!n.cancel&&(0,c.isDefined)(i.expanded)&&setTimeout((function(){t._dataController[i.expanded?"collapseHeaderItem":"expandHeaderItem"](n.area,i.path)})))},_getNoDataText:function(){return this.option("texts.noData")},_renderNoDataText:_.default.renderNoDataText,_renderLoadPanel:_.default.renderLoadPanel,_updateLoading:function(e){var t=this,n=t._dataController.isLoading();if(t._loadPanel){var i=t._loadPanel.option("visible");if(i||(t._startLoadingTime=new Date),n&&(e?new Date-t._startLoadingTime>=1e3&&t._loadPanel.option("message",Math.floor(100*e)+"%"):t._loadPanel.option("message",t.option("loadPanel.text"))),clearTimeout(t._hideLoadingTimeoutID),i&&!n)t._hideLoadingTimeoutID=setTimeout((function(){t._loadPanel.option("visible",!1),t.$element().removeClass(L)}));else{var o={visible:n};n&&(o.position=_.default.calculateLoadPanelPosition(t._dataArea.groupElement())),t._loadPanel.option(o),t.$element().toggleClass(L,!n)}}},_renderDescriptionArea:function(){var e,t=this,n=this.$element(),o=n.find(".dx-area-description-cell"),a=(0,i.default)(z).addClass("dx-pivotgrid-toolbar"),r=this.option("fieldPanel"),s=n.find(".dx-filter-header"),l=n.find(".dx-column-header");if(e=r.visible&&r.showFilterFields?s:r.visible&&(r.showDataFields||r.showColumnFields)?l:o,l.toggleClass(B,!(!r.visible||!r.showDataFields&&!r.showColumnFields)),s.toggleClass(B,!(!r.visible||!r.showFilterFields)),o.toggleClass("dx-pivotgrid-background",r.visible&&(r.showDataFields||r.showColumnFields||r.showRowFields)),this.$element().find(".dx-pivotgrid-toolbar").remove(),a.prependTo(e),this.option("fieldChooser.enabled")){var u=(0,i.default)(z).appendTo(a).addClass("dx-pivotgrid-field-chooser-button"),d={icon:"columnchooser",hint:this.option("texts.showFieldChooser"),onClick:function(){t.getFieldChooserPopup().show()}};this._createComponent(u,"dxButton",d)}if(this.option("export.enabled")){var c=(0,i.default)(z).appendTo(a).addClass("dx-pivotgrid-export-button"),h={icon:"xlsxfile",hint:this.option("texts.exportToExcel"),onClick:function(){t.exportToExcel()}};this._createComponent(c,"dxButton",h)}},_detectHasContainerHeight:function(){var e=this,t=e.$element();if((0,c.isDefined)(e._hasHeight)){var n=e.option("height")||e.$element().get(0).style.height;n&&e._hasHeight^"auto"!==n&&(e._hasHeight=null)}if(!(0,c.isDefined)(e._hasHeight)&&!t.is(":hidden")){e._pivotGridContainer.addClass("dx-hidden");var o=(0,i.default)(z);(0,w.setHeight)(o,66666),t.append(o),e._hasHeight=66666!==(0,w.getHeight)(t),e._pivotGridContainer.removeClass("dx-hidden"),o.remove()}},_renderHeaders:function(e,t,n,i){var o=this,a=o.getDataSource();o._rowFields=o._rowFields||new C.FieldsArea(o,"row"),o._rowFields.render(e,a.getAreaFields("row")),o._columnFields=o._columnFields||new C.FieldsArea(o,"column"),o._columnFields.render(t,a.getAreaFields("column")),o._filterFields=o._filterFields||new C.FieldsArea(o,"filter"),o._filterFields.render(n,a.getAreaFields("filter")),o._dataFields=o._dataFields||new C.FieldsArea(o,"data"),o._dataFields.render(i,a.getAreaFields("data")),o.$element().dxPivotGridFieldChooserBase("instance").renderSortable()},_createTableElement:function(){var e=this,t=(0,i.default)("<table>").css({width:"100%"}).toggleClass(M,!!e.option("showBorders")).toggleClass("dx-word-wrap",!!e.option("wordWrapEnabled"));return a.default.on(t,(0,m.addNamespace)(f.name,"dxPivotGrid"),"td",e._handleCellClick.bind(e)),t},_renderDataArea:function(e){var t=this,n=t._dataArea||new x.DataArea(t);return t._dataArea=n,n.render(e,t._dataController.getCellsInfo()),n},_renderRowsArea:function(e){var t=this,n=t._rowsArea||new b.VerticalHeadersArea(t);return t._rowsArea=n,n.render(e,t._dataController.getRowsInfo()),n},_renderColumnsArea:function(e){var t=this,n=t._columnsArea||new b.HorizontalHeadersArea(t);return t._columnsArea=n,n.render(e,t._dataController.getColumnsInfo()),n},_initMarkup:function(){var e=this;e.callBase.apply(this,arguments),e.$element().addClass(R)},_renderContentImpl:function(){var e,t,n,o,a,r,s,l,u=this,d=!u._pivotGridContainer;(o=!d&&u._tableElement())||(u.$element().addClass("dx-row-lines").addClass("dx-pivotgrid-fields-container"),u._pivotGridContainer=(0,i.default)(z).addClass("dx-pivotgrid-container"),u._renderFieldChooser(),u._renderContextMenu(),e=(0,i.default)(N).addClass("dx-area-column-cell"),t=(0,i.default)(N).addClass("dx-area-row-cell"),n=(0,i.default)(N).addClass("dx-area-data-cell"),o=u._createTableElement(),l=(0,i.default)(N).addClass("dx-data-header"),s=(0,i.default)("<td>").attr("colspan","2").addClass("dx-filter-header"),r=(0,i.default)(N).addClass("dx-column-header"),a=(0,i.default)(N).addClass("dx-area-description-cell"),(0,i.default)(H).append(s).appendTo(o),(0,i.default)(H).append(l).append(r).appendTo(o),(0,i.default)(H).append(a).append(e).appendTo(o),(0,i.default)(H).addClass("dx-bottom-row").append(t).append(n).appendTo(o),u._pivotGridContainer.append(o),u.$element().append(u._pivotGridContainer),"tree"===u.option("rowHeaderLayout")&&t.addClass("dx-area-tree-view")),u.$element().addClass(L),u._createComponent(u.$element(),k.default,{dataSource:u.getDataSource(),encodeHtml:u.option("encodeHtml"),allowFieldDragging:u.option("fieldPanel.allowFieldDragging"),headerFilter:u.option("headerFilter"),visible:u.option("visible")});var c=u._renderDataArea(n),h=u._renderRowsArea(t),f=u._renderColumnsArea(e);c.tableElement().prepend(f.headElement()),d&&(u._renderLoadPanel(c.groupElement().parent(),u.$element()),u._renderDescriptionArea(),h.renderScrollable(),f.renderScrollable(),c.renderScrollable()),[c,h,f].forEach((function(e){q(e)})),u._renderHeaders(a,r,s,l),u._update(d)},_update:function(e){var t=this,n=function(){t.updateDimensions()};t._needDelayResizing(t._dataArea.getData())&&e?setTimeout(n):n()},_fireContentReadyAction:function(){this._dataController.isLoading()||this.callBase()},getScrollPath:function(e){var t=this;return"column"===e?t._columnsArea.getScrollPath(t._scrollLeft):t._rowsArea.getScrollPath(t._scrollTop)},getDataSource:function(){return this._dataController.getDataSource()},getFieldChooserPopup:function(){return this._fieldChooserPopup},hasScroll:function(e){return"column"===e?this._columnsArea.hasScroll():this._rowsArea.hasScroll()},_dimensionChanged:function(){this.updateDimensions()},_visibilityChanged:function(e){e&&this.updateDimensions()},_dispose:function(){var e=this;clearTimeout(e._hideLoadingTimeoutID),e.callBase.apply(e,arguments),e._dataController&&e._dataController.dispose()},_tableElement:function(){return this.$element().find("table").first()},addWidgetPrefix:function(e){return"dx-pivotgrid-"+e},resize:function(){this.updateDimensions()},isReady:function(){return this.callBase()&&!this._dataController.isLoading()},updateDimensions:function(){var e,t,n,a,r=this,s=r._tableElement(),l=0,c=0,h=0,f=s.find(".dx-area-data-cell"),p=s.find(".dx-area-row-cell"),g=s.find(".dx-area-column-cell"),m=s.find(".dx-area-description-cell"),_=s.find(".dx-filter-header"),y=s.find(".dx-column-header"),x=r._rowFields,b=new A.Deferred;if((0,o.hasWindow)()){var C=x.isVisible()&&"tree"!==r.option("rowHeaderLayout");r._detectHasContainerHeight(),r._dataArea.headElement().length||r._dataArea.tableElement().prepend(r._columnsArea.headElement()),C&&(r._rowsArea.updateColspans(x.getColumnsCount()),r._rowsArea.tableElement().prepend(x.headElement())),s.addClass(F),r._dataArea.reset(),r._rowsArea.reset(),r._columnsArea.reset(),x.reset();var S=function(e,t){return t-e>=1},k=function(e,t,n,i,o){return n?e:t+(i?o:0)};return(0,u.deferUpdate)((function(){var o=r._dataArea.getColumnsWidth(),D=r._rowsArea.getRowsHeight(),I=C?D.slice(1):D,T=r._dataArea.getRowsHeight(),E=(0,w.getOuterHeight)(m[0],!0)+(C?D[0]:0),O=r._dataController.getColumnsInfo().length,P=(0,v.mergeArraysByMaxValue)(I,T.slice(O)),M=T.slice(0,O),R=G(M),V=r._rowsArea.getColumnsWidth(),L=0,H=0;if(r._hasHeight){L=(0,w.getHeight)(_);var N=s.find(".dx-data-header"),z=(0,w.getHeight)(N);t=$([g,f,s,y,_],"height"),H=(0,w.getHeight)(r.$element())-L-z-(Math.max((0,w.getHeight)(r._dataArea.headElement()),(0,w.getHeight)(g),E)+t)}if(l=(0,w.getWidth)(r._dataArea.tableElement()),c=G(P),l&&c){h=G(V);var W=(0,w.getWidth)(r.$element());t=$([p,f,s],"width");var q=l-(e=(e=W-h-t)>0?e:l);q>=0&&q<=2&&(j(o,q),l=e),n=r._hasHeight&&S(H,c),a=S(e,l);var K=r._dataArea.getScrollbarWidth(),U=k(H,c,n,a,K);(0,u.deferRender)((function(){if(r._columnsArea.tableElement().append(r._dataArea.headElement()),x.tableElement().append(r._rowsArea.headElement()),!a&&n&&K&&(j(o,K),l-=K),E>R&&(j(M,R-E),r._columnsArea.setRowsHeight(M)),s.removeClass(F),y.children().css("maxWidth",e),r._columnsArea.setGroupWidth(e),r._columnsArea.processScrollBarSpacing(n?K:0),r._columnsArea.setColumnsWidth(o),r._rowsArea.setGroupHeight(r._hasHeight?U:"auto"),r._rowsArea.processScrollBarSpacing(a?K:0),r._rowsArea.setColumnsWidth(V),r._rowsArea.setRowsHeight(P),r._dataArea.setColumnsWidth(o),r._dataArea.setRowsHeight(P),r._dataArea.setGroupWidth(e),r._dataArea.setGroupHeight(r._hasHeight?U:"auto"),C&&x.setColumnsWidth(V),f.toggleClass(B,!n),p.toggleClass(B,!n),!r._hasHeight&&W!==(0,w.getWidth)(r.$element())){var t=W-(0,w.getWidth)(r.$element());a||(j(o,t),r._columnsArea.setColumnsWidth(o),r._dataArea.setColumnsWidth(o)),r._dataArea.setGroupWidth(e-t),r._columnsArea.setGroupWidth(e-t)}if(r._hasHeight&&r._filterFields.isVisible()&&(0,w.getHeight)(_)!==L){var u=(0,w.getHeight)(_)-L;if(u>0){n=S(H-u,c);var g=k(H-u,c,n,a,K);r._dataArea.setGroupHeight(g),r._rowsArea.setGroupHeight(g)}}var m=r.option("scrolling");"virtual"===m.mode&&r._setVirtualContentParams(m,o,P,e,U,r._hasHeight,h);var v=[];r._dataArea.updateScrollableOptions({direction:r._dataArea.getScrollableDirection(a,n),rtlEnabled:r.option("rtlEnabled")}),(0,d.each)([r._columnsArea,r._rowsArea,r._dataArea],(function(e,t){v.push(t&&t.updateScrollable())})),r._updateLoading(),r._renderNoDataText(f),A.when.apply(i.default,v).done((function(){r._updateScrollPosition(r._columnsArea,r._rowsArea,r._dataArea),r._subscribeToEvents(r._columnsArea,r._rowsArea,r._dataArea),b.resolve()}))}))}else b.resolve()})),b}},_setVirtualContentParams:function(e,t,n,i,o,a,r){var s=this._dataController.calculateVirtualContentParams({virtualRowHeight:e.virtualRowHeight,virtualColumnWidth:e.virtualColumnWidth,itemWidths:t,itemHeights:n,rowCount:n.length,columnCount:t.length,viewportWidth:i,viewportHeight:a?o:(0,w.getOuterHeight)(P)});this._dataArea.setVirtualContentParams({top:s.contentTop,left:s.contentLeft,width:s.width,height:s.height}),this._rowsArea.setVirtualContentParams({top:s.contentTop,width:r,height:s.height}),this._columnsArea.setVirtualContentParams({left:s.contentLeft,width:s.width,height:(0,w.getHeight)(this._columnsArea.groupElement())})},applyPartialDataSource:function(e,t,n){this._dataController.applyPartialDataSource(e,t,n)}}).inherit(D.ExportController).include(I.default);(0,r.default)("dxPivotGrid",K);var U=K;t.default=U,e.exports=t.default,e.exports.default=t.default},11383:function(e,t,n){t.applyDisplaySummaryMode=function(e,t){var n=[],i=[{index:t.grandTotalColumnIndex,children:t.columns}],o=[{index:t.grandTotalRowIndex,children:t.rows}],a=e.values,s={fields:{},positions:{}};t.values=t.values||[],(0,r.foreachTree)(i,(function(e){e[0].isEmpty=[]}),!1),(0,r.foreachTree)(o,(function(o){var l=o[0];l.isEmpty=[],t.values[l.index]=t.values[l.index]||[],(0,r.foreachTree)(i,(function(i){var r,u=i[0];x(t,l.index,u.index,!1);for(var d=0;d<a.length;d++){var c=a[d],h=n[d]=void 0===n[d]?y(c):n[d];if(r=!1,h){var f=new v(i,o,t,e,d,s),p=f.cell(),g=p[d]=h(f);p.postProcessedFlags[d]=!0,r=null==g}void 0===u.isEmpty[d]&&(u.isEmpty[d]=!0),void 0===l.isEmpty[d]&&(l.isEmpty[d]=!0),r||(l.isEmpty[d]=u.isEmpty[d]=!1)}}),!1)}),!1),t.isEmptyGrandTotalRow=o[0].isEmpty,t.isEmptyGrandTotalColumn=i[0].isEmpty},t.applyRunningTotal=function(e,t){var n=[],i=[{index:t.grandTotalColumnIndex,children:t.columns}],o=[{index:t.grandTotalRowIndex,children:t.rows}],a=e.values,s={fields:{},positions:{}};t.values=t.values||[],(0,r.foreachTree)(o,(function(o){var l=o[0];t.values[l.index]=t.values[l.index]||[],(0,r.foreachTree)(i,(function(i){var r=i[0];x(t,l.index,r.index,!0);for(var u=0;u<a.length;u++){var d=a[u],c=n[u]=void 0===n[u]?g(d):n[u];if(c){var h=new v(i,o,t,e,u,s),f=h.cell();f[u]=c(h),f.postProcessedFlags[u]=!0}}}),!1)}),!1)},t.createMockSummaryCell=function(e,t,n){var o=new v([],[],{},e,0);return o.value=function(o){if((0,i.isDefined)(o)){var a=(0,r.findField)(t,o),s=t[a];n[a]||!s||(0,i.isDefined)(s.area)||(e.values.push(s),n[a]=!0)}},o.grandTotal=function(){return this},o.children=function(){return[]},o};var i=n(35922),o=n(13306),a=n(89386),r=n(87280),s="column",l="row",u=null,d=function(e,t){var n=e/t;return(0,i.isDefined)(e)&&!isNaN(n)||(n=u),n},c=function(e,t){return d(e.value(),e.grandTotal(t).value())},h=function(e,t){var n=e.parent(t),i=n?n.value():e.value();return d(e.value(),i)},f=function(e){return function(t){var n=t.prev(s,e),o=n&&n.value();return(0,i.isDefined)(o)&&(0,i.isDefined)(t.value())?t.value()-o:u}},p={percentOfColumnTotal:function(e){return h(e,l)},percentOfRowTotal:function(e){return h(e,s)},percentOfColumnGrandTotal:function(e){return c(e,l)},percentOfRowGrandTotal:function(e){return c(e,s)},percentOfGrandTotal:function(e){return c(e)}},g=function(e){if(e.runningTotal){var t=e.runningTotal===s?l:s;return function(n){var o=e.allowCrossGroupCalculation?function e(t,n){if(t&&t.parent(n)){var i=t.prev(n);return i||(i=e(t.parent(n),n)),i}}(n,t):n.prev(t,!1),a=n.value(!0),r=o&&o.value(!0);return(0,i.isDefined)(r)&&(0,i.isDefined)(a)?a=r+a:(0,i.isDefined)(r)&&(a=r),a}}};function m(e,t,n){var o={index:-1};if(!(0,i.isObject)(t))if(n.fields[t])t=n[t];else{var s=e.columns.concat(e.rows).concat(e.values),l=(0,r.findField)(s,t);t=n[t]=s[l]}if(t){var u=t.area||"data";o=n.positions[t.index]=n.positions[t.index]||{area:u,index:(0,a.inArray)(t,e["data"===u?"values":u+"s"])}}return o}function _(e){return e===l?"_rowPath":"_columnPath"}var v=function(e,t,n,i,o,a){this._columnPath=e,this._rowPath=t,this._fieldIndex=o,this._fieldsCache=a||{fields:{},positions:{}},this._data=n,this._descriptions=i;var r=n.values&&n.values[t[0].index]&&n.values[t[0].index][e[0].index];r&&(r.originalCell=r.originalCell||r.slice(),r.postProcessedFlags=r.postProcessedFlags||[],this._cell=r)};function y(e){var t,n,o=e.summaryDisplayMode,a=e.allowCrossGroupCalculation,l=u;return(0,i.isFunction)(e.calculateSummaryValue)?l=e.calculateSummaryValue:o&&("absoluteVariation"===o?l=f(a):"percentVariation"===o?(n=f(t=a),l=function(e){var i=n(e),o=e.prev(s,t),a=o&&o.value();return i!==u&&a?i/a:u}):l=p[o],l&&!e.format&&-1!==o.indexOf("percent")&&(0,r.setFieldProperty)(e,"format","percent")),l}function x(e,t,n,i){var o=e.values[t][n]=e.values[t][n]||[],a=o.originalCell;a&&(!o.allowResetting&&i||(e.values[t][n]=a.slice()),e.values[t][n].allowResetting=i)}v.prototype=(0,o.extend)(v.prototype,{_getPath:function(e){return this[_(e)]},_getDimension:function(e){return e=e===l?"rows":"columns",this._descriptions[e]},_createCell:function(e){var t=this;return new v(e._columnPath||t._columnPath,e._rowPath||t._rowPath,t._data,t._descriptions,t._fieldIndex)},parent:function(e){var t=this._getPath(e).slice(),n={};return t.shift(),t.length?(n[_(e)]=t,this._createCell(n)):u},children:function(e){var t=this._getPath(e).slice(),n=t[0],i=[],o={};if(n.children)for(var a=0;a<n.children.length;a++)o[_(e)]=[n.children[a]].concat(t.slice()),i.push(this._createCell(o));return i},grandTotal:function(e){var t={},n=this._rowPath,i=this._columnPath,o=this._getPath(e),a=_(e);return e?t[a]=[o[o.length-1]]:(t._rowPath=[n[n.length-1]],t._columnPath=[i[i.length-1]]),this._createCell(t)},next:function(e,t){var n,i=this._getPath(e),o=i[0],r=this.parent(e);if(r){var s=(0,a.inArray)(o,i[1].children);if((n=r.children(e))[s+1])return n[s+1]}if(t&&r){do{n=(r=r.next(e,t))?r.children(e):[]}while(r&&!n.length);return n[0]||u}return u},prev:function(e,t){var n,i=this._getPath(e),o=i[0],r=this.parent(e);if(r){var s=(0,a.inArray)(o,i[1].children);if((n=r.children(e))[s-1])return n[s-1]}if(t&&r){do{n=(r=r.prev(e,t))?r.children(e):[]}while(r&&!n.length);return n[n.length-1]||u}return u},cell:function(){return this._cell},field:function(e){if("data"===e)return this._descriptions.values[this._fieldIndex];var t=this._getPath(e);return this._getDimension(e)[t.length-2]||u},child:function(e,t){for(var n=this.children(e),i=0;i<n.length;i++){var o=o||n[i].field(e);if(n[i].value(o)===t)return n[i]}return u},slice:function(e,t){var n={},i=m(this._descriptions,e,this._fieldsCache),o=i.area,a=i.index,r=u;if(o===l||o===s){var d=this._getPath(o).slice(),c=-1!==a&&d.length-2-a;if(d[c]){[][d.length-1]=d[d.length-1];for(var h=c;h>=0;h--){if(d[h+1]){var f=d[h+1].children||[],p=h===c?t:d[h].value;d[h]=void 0;for(var g=0;g<f.length;g++)if(f[g].value===p){d[h]=f[g];break}}if(void 0===d[h])return r}n[_(o)]=d,r=this._createCell(n)}}return r},value:function(e,t){var n=this._cell,o=this._fieldIndex,a=!0===e||!1===e,r=a?u:e,s=a&&e||t;if((0,i.isDefined)(r)){var l=m(this._descriptions,r,this._fieldsCache);if(o=l.index,"data"!==l.area){var d=this._getPath(l.area),c=-1!==o&&d.length-2-o;return d[c]&&d[c].value}}return n&&n.originalCell?s?n[o]:n.originalCell[o]:u},isPostProcessed:function(e){var t=this._fieldIndex;if((0,i.isDefined)(e)){var n=m(this._descriptions,e,this._fieldsCache);if(t=n.index,"data"!==n.area)return!1}return!(!this._cell||!this._cell.postProcessedFlags[t])}})},87280:function(e,t,n){t.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.createPath=function(e){for(var t=[],n=e.length-1;n>=0;n--)t.push(e[n].key||e[n].value);return t},t.discoverObjectFields=function(e,t){var n=y(t);return function e(t,n,o,l){var u=[];return Object.keys(n||[]).forEach((function(d){if(!d||0!==d.indexOf("__")){for(var c,h,f=1,p=o.length?o+"."+d:d,g=l[p],m=(0,a.compileGetter)(p),_=n[d];!(0,i.isDefined)(_)&&t[f];)_=m(t[f]),f++;!g&&(0,i.isDefined)(_)&&(g=(0,i.type)(_)),c=[{dataField:p,dataType:g,groupName:"date"===g?d:void 0,groupInterval:void 0,displayFolder:o}],"date"===g?c=c.concat((h=c[0],(0,r.map)(["year","quarter","month"],(function(e,t){return(0,s.extend)({},h,{groupInterval:e,groupIndex:t})})))):"object"===g&&(c=e(t,_,p,l)),u.push.apply(u,c)}})),u}(e,e[0],"",n)},t.findField=function(e,t){if(e&&(0,i.isDefined)(t))for(var n=0;n<e.length;n++){var o=e[n];if(o.name===t||o.caption===t||o.dataField===t||o.index===t)return n}return-1},t.foreachDataLevel=function e(t,n,i,o){i=i||0,o=o||"children",t.length&&n(t,i);for(var a=0;a<t.length;a++){var r=t[a];r[o]&&r[o].length&&e(r[o],n,i+1,o)}},t.foreachTreeAsync=t.foreachTree=void 0,t.formatValue=function(e,t){var n={value:e,valueText:e==e&&u.default.format(e,t.format)||""};return t.customizeText?t.customizeText.call(t,n):n.valueText},t.getCompareFunction=function(e){return function(t,n){var o=0,a=e(t),r=e(n),s=(0,i.isDefined)(a),l=(0,i.isDefined)(r);return s&&l&&(a>r?o=1:a<r&&(o=-1)),s&&!l&&(o=1),!s&&l&&(o=-1),o}},t.getExpandedLevel=function(e,t){var n=e[t],i=0,o=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[];for(e.headerName===t?i=e.path.length:e.headerName&&e.headerName!==t&&e.oppositePath?i=e.oppositePath.length:(0,r.each)(o,(function(e,t){i=Math.max(i,t.length)}));n[i+1]&&n[i].expanded;)i++;return i},t.getFieldsDataType=y,t.getFiltersByPath=function(e,t){var n=[];t=t||[];for(var i=0;i<t.length;i++)n.push((0,s.extend)({},e[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[t[i]]}));return n},t.mergeArraysByMaxValue=function(e,t){for(var n=[],i=0;i<e.length;i++)n.push(Math.max(e[i]||0,t[i]||0));return n},t.sendRequest=function(e){return o.default.sendRequest(e)},t.setDefaultFieldValueFormatting=function(e){if("date"===e.dataType)e.format||p(e,"format",x[e.groupInterval]);else if("number"===e.dataType){var t=(0,i.isNumeric)(e.groupInterval)&&e.groupInterval>0&&e.groupInterval;t&&!e.customizeText&&p(e,"customizeText",(function(n){var i=n.value+t,o=u.default.format(i,e.format);return n.valueText&&o?n.valueText+" - "+o:""}))}},t.storeDrillDownMixin=t.setFieldProperty=void 0;var i=n(35922),o=f(n(37208)),a=n(47617),r=n(95479),s=n(13306),l=f(n(91500)),u=f(n(30343)),d=n(85273),c=f(n(26562)),h=n(62754);function f(e){return e&&e.__esModule?e:{default:e}}var p=function(e,t,n,i){var o=e._initProperties=e._initProperties||{},a=i?n:e[t];Object.prototype.hasOwnProperty.call(o,t)&&!i||(o[t]=a),e[t]=n};t.setFieldProperty=p;var g=new Date;function m(e){return function t(n,i,o,a,r,s){var l,u;function d(e,r,s){(0,h.when)(t(n,i,o,a,r,s)).done(e.resolve)}for(a=a||[],n=n||[],l=r=r||0;l<n.length;l++){if(e&&l>r&&l%1e4==0&&new Date-g>=300)return g=new Date,u=new h.Deferred,setTimeout(d(u,l,!1),0),u;var c=n[l];if(!s){if(a.unshift(c),o&&!1===i(a,l))return;if(c.children){var f=t(c.children,i,o,a);if(e&&f)return u=new h.Deferred,f.done(d(u,l,!0)),u}}if(s=!1,!o&&!1===i(a,l))return;a.shift(),n[l]!==c&&l--}}}var _=m(!1);t.foreachTree=_;var v=m(!0);function y(e){var t={};return(0,r.each)(e,(function(e,n){t[n.dataField]=t[n.dataField]||n.dataType})),t}t.foreachTreeAsync=v;var x={month:function(e){return l.default.getMonthNames()[e-1]},quarter:function(e){return l.default.format(new Date(2e3,3*e-1),"quarter")},dayOfWeek:function(e){return l.default.getDayNames()[e]}},b={createDrillDownDataSource:function(e,t){var n=this.getDrillDownItems(e,t);function i(e){return function(t){var i;return i=new h.Deferred,(0,h.when)(n).done((function(n){new c.default(n)[e](t).done(i.resolve).fail(i.reject)})).fail(i.reject),i}}return new d.DataSource({load:i("load"),totalCount:i("totalCount"),key:this.key()})}};t.storeDrillDownMixin=b},80995:function(e,t,n){t.default=void 0;var i=n(58664),o=f(n(68374)),a=f(n(55994)),r=n(35922),s=n(13306),l=n(95479),u=n(39611),d=f(n(99393)),c=f(n(13046)),h=n(23174);function f(e){return e&&e.__esModule?e:{default:e}}var p=f(n(92591)).default.getSwatchContainer,g="dxSortable";var m=c.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{onChanged:null,onDragging:null,itemRender:null,groupSelector:null,itemSelector:".dx-sort-item",itemContainerSelector:".dx-sortable-old",sourceClass:"dx-drag-source",dragClass:"dx-drag",targetClass:"dx-drag-target",direction:"vertical",allowDragging:!0,groupFilter:null,useIndicator:!1})},_renderItem:function(e,t){var n,o=this.option("itemRender");return o?n=o(e,t):(n=e.clone()).css({width:(0,i.getWidth)(e),height:(0,i.getHeight)(e)}),n},_renderIndicator:function(e,t,n,o){var a=(0,i.getOuterHeight)(e,!0),r=(0,i.getOuterWidth)(e,!0),s=e.offset().top-n.offset().top,l=e.offset().left-n.offset().left;this._indicator.css({position:"absolute",top:o&&t?s+a:s,left:o&&!t?l+r:l}).toggleClass("dx-position-indicator-horizontal",!t).toggleClass("dx-position-indicator-vertical",!!t).toggleClass("dx-position-indicator-last",!!o).appendTo(n),(0,i.setHeight)(this._indicator,""),(0,i.setWidth)(this._indicator,""),t?(0,i.setWidth)(this._indicator,r):(0,i.setHeight)(this._indicator,a)},_renderDraggable:function(e){this._$draggable&&this._$draggable.remove(),this._$draggable=this._renderItem(e,"drag").addClass(this.option("dragClass")).appendTo(p(e)).css({zIndex:1e6,position:"absolute"})},_detachEventHandlers:function(){var e=[h.move,h.start,h.end,h.enter,h.leave,h.drop].join(" ");a.default.off(this._getEventListener(),(0,u.addNamespace)(e,g))},_getItemOffset:function(e,t,n){for(var i=0;i<t.length;i++){var o=void 0,a=n.pageY<t[i].posVertical;if(e?o=a:a&&(s=n.pageX,l=t[i],u=this.option("rtlEnabled"),!(o=!(0,r.isDefined)(l.posHorizontal)||(u?s>l.posHorizontal:s<l.posHorizontal))&&t[i+1]&&t[i+1].posVertical>t[i].posVertical&&(o=!0)),o)return t[i]}var s,l,u},_getEventListener:function(){var e=this.option("groupSelector"),t=this.$element();return e?t.find(e):t},_attachEventHandlers:function(){var e,t,n,r,s,d,c,f=this,p=f.option("itemSelector"),m=f.option("itemContainerSelector"),_=f.option("groupSelector"),v=f.option("sourceClass"),y=f.option("targetClass"),x=f.option("onDragging"),b=f.option("groupFilter"),w=f.$element(),C=null,S=-1,k=function(){C&&C.dispose(),C=null};if(f._detachEventHandlers(),f.option("allowDragging")){var D=f._getEventListener();a.default.on(D,(0,u.addNamespace)(h.start,g),p,(function(i){var a,r,u,h=(e=(0,o.default)(i.currentTarget)).closest(_);d=h.attr("group"),a=(_?h:w).find(p),r=-1,u=e.get(0),(0,l.each)(a,(function(e,t){var n=(0,o.default)(t);if(n.attr("item-group")&&n.attr("item-group")===a.eq(e-1).attr("item-group")||r++,t===u)return!1})),t=r===a.length?-1:r,e.attr("item-group")&&(e=h.find("[item-group='"+e.attr("item-group")+"']")),f._renderDraggable(e),n=f._renderItem(e,"target").addClass(y),e.addClass(v),s=[],(0,l.each)(e,(function(e,t){s.push((0,o.default)(t).offset())})),c=_?b?(0,o.default)(_).filter(b):w.find(_):w,f._indicator=(0,o.default)("<div>").addClass("dx-position-indicator")})),a.default.on(D,(0,u.addNamespace)(h.move,g),(function(a){var u,h,g,_;if(e)if(S=-1,f._indicator.detach(),(0,l.each)(f._$draggable,(function(e,t){(0,o.default)(t).css({top:s[e].top+a.offset.y,left:s[e].left+a.offset.x})})),r&&r.removeClass(y),(r=function(e,t){var n;return(0,l.each)(t,(function(){(function(e,t,n){var a=(0,o.default)(e),r=a.offset();if(t>=r.left&&t<=r.left+(0,i.getOuterWidth)(a,!0)&&n>=r.top&&n<=r.top+(0,i.getOuterHeight)(a,!0))return!0})(this,e.pageX,e.pageY)&&(n=(0,o.default)(this))})),n}(a,c))&&(_={sourceGroup:d,sourceIndex:t,sourceElement:e,targetGroup:r.attr("group"),targetIndex:r.find(p).index(n)},x&&x(_),_.cancel&&(r=void 0)),r&&C&&r.get(0)!==C.element().get(0)&&k(),C&&C.moveIfNeed(a),r){!C&&r.attr("allow-scrolling")&&(C=function(e){var t=null,n=e.scrollTop(),o=e.$element(),a=o.offset().top,r=(0,i.getHeight)(o),s=0;function l(e){n=e.scrollOffset.top}function u(){d(),e.scrollTo(n+=s),t=setTimeout(u,10)}function d(){clearTimeout(t)}return e.on("scroll",l),{moveIfNeed:function(e){if(e.pageY<=a+20)s=-2;else{if(!(e.pageY>=a+r-20))return s=0,void d();s=2}u()},element:function(){return o},dispose:function(){d(),e.off("scroll",l)}}}(r.dxScrollable("instance"))),r.addClass(y);var b=r.find(m),w=b.find(p),D=r.closest(".dx-sortable-old").data("dxSortableOld"),I=D.option("useIndicator"),T="vertical"===(D||f).option("direction"),E=function(e,t,n){for(var o=[],a=[],r=0;r<e.length;r+=a.length)if((a=e.eq(r)).attr("item-group")&&(a=n.find("[item-group='"+a.attr("item-group")+"']")),a.is(":visible")){var s={item:a,index:o.length,posHorizontal:t?void 0:((0,i.getOuterWidth)(a.last(),!0)+a.last().offset().left+a.offset().left)/2};s.posVertical=t?(a.last().offset().top+a.offset().top+(0,i.getOuterHeight)(a.last(),!0))/2:(0,i.getOuterHeight)(a.last(),!0)+a.last().offset().top,o.push(s)}return o}(w,T,b),A=f._getItemOffset(T,E,a);if(A){if(u=A.item,g=E[A.index-1]&&E[A.index-1].item,u.hasClass(v)||g&&g.hasClass(v)&&g.is(":visible"))return void n.detach();if(S=A.index,!I)return void n.insertBefore(u);var O=r.attr("group")!==d,P=S===t,M=S===t+1;if(O)return void f._renderIndicator(u,T,r,f.option("rtlEnabled")&&!T);P||M||f._renderIndicator(u,T,r,f.option("rtlEnabled")&&!T)}else{if((h=w.last()).is(":visible")&&h.hasClass(v))return;b.length&&(S=E.length?E[E.length-1].index+1:0),I?w.length&&f._renderIndicator(h,T,r,!f.option("rtlEnabled")||T):n.appendTo(b)}}else n.detach()})),a.default.on(D,(0,u.addNamespace)(h.end,g),(function(){if(k(),e){var i=f.option("onChanged"),o={sourceIndex:t,sourceElement:e,sourceGroup:d,targetIndex:S,removeSourceElement:!0,removeTargetElement:!1,removeSourceClass:!0};r&&(r.removeClass(y),o.targetGroup=r.attr("group"),(d!==o.targetGroup||S>-1)&&(i&&i(o),o.removeSourceElement&&e.remove())),f._indicator.detach(),o.removeSourceClass&&e.removeClass(v),e=null,f._$draggable.remove(),f._$draggable=null,o.removeTargetElement&&n.remove(),n.removeClass(y),n=null}}))}},_init:function(){this.callBase(),this._attachEventHandlers()},_render:function(){this.callBase(),this.$element().addClass("dx-sortable-old")},_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._$draggable&&e._$draggable.detach(),e._indicator&&e._indicator.detach()},_optionChanged:function(e){switch(e.name){case"onDragging":case"onChanged":case"itemRender":case"groupSelector":case"itemSelector":case"itemContainerSelector":case"sourceClass":case"targetClass":case"dragClass":case"allowDragging":case"groupFilter":case"useIndicator":this._attachEventHandlers();break;case"direction":break;default:this.callBase(e)}},_useTemplates:function(){return!1}});(0,d.default)("dxSortableOld",m);var _=m;t.default=_,e.exports=t.default,e.exports.default=t.default},13218:function(e,t,n){t.calculateScrollbarWidth=void 0;var i=r(n(73349)),o=r(n(39618)),a=n(11543);function r(e){return e&&e.__esModule?e:{default:e}}var s=(0,o.default)((function(){var e=i.default.getDocument();e.body.insertAdjacentHTML("beforeend","<div style='position: absolute; overflow: scroll; width: 100px; height: 100px; top: -9999;'></div>");var t=e.body.lastElementChild,n=(0,a.getScrollbarWidth)(t);return e.body.removeChild(t),n}));t.calculateScrollbarWidth=s},11543:function(e,t){t.getScrollbarWidth=function(e){return e.offsetWidth-e.clientWidth}},9170:function(e,t,n){t.default=void 0;var i=n(65365).XmlaStore;t.default=i,e.exports=t.default,e.exports.default=t.default},65365:function(e,t,n){t.XmlaStore=void 0;var i=m(n(68374)),o=n(58201),a=m(n(38377)),r=n(68752),s=n(18438),l=n(20576),u=n(13306),d=n(35922),c=n(95479),h=n(89386),f=n(87280),p=n(62754),g=n(9821);function m(e){return e&&e.__esModule?e:{default:e}}function _(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var y=(0,o.getWindow)(),x=a.default.inherit(function(){var e='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Discover xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>{2}</RequestType><Restrictions><RestrictionList><CATALOG_NAME>{0}</CATALOG_NAME><CUBE_NAME>{1}</CUBE_NAME></RestrictionList></Restrictions><Properties><PropertyList><Catalog>{0}</Catalog>{3}</PropertyList></Properties></Discover></Body></Envelope>',t="SELECT {2} FROM {0} {1} CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS",n="Subset({0}, {1}, {2})",o="WHERE ({0})",a="{{0}}",m="DX_MEASURES";function v(e,t){var n=new p.Deferred,i=e.beforeSend,o={url:e.url,dataType:"text",data:t,headers:{"Content-Type":"text/xml"},xhrFields:{},method:"POST"};return(0,d.isFunction)(i)&&i(o),(0,f.sendRequest)(o).fail((function(){n.reject(arguments)})).done((function(e){var t,i=new y.DOMParser;try{try{t=i.parseFromString(e,"text/xml")}catch(e){t=void 0}if(!t||t.getElementsByTagName("parsererror").length||0===t.childNodes.length)throw new s.errors.Error("E4023",e)}catch(t){n.reject({statusText:t.message,stack:t.stack,responseText:e})}n.resolve(t)})),n}function x(){var e=(0,g.getLanguageId)();return void 0!==e?(0,r.format)("<LocaleIdentifier>{0}</LocaleIdentifier>",e):""}function b(e){return(e.hierarchyName||e.dataField)+".[All]"}function w(e){var t=e.dataField+".allMembers",n=e.searchValue;return n&&(n=n.replace(/'/g,"''"),t="Filter("+t+", instr("+e.dataField+".currentmember.member_caption,'"+n+"') > 0)"),t}function C(e){var t=e.join(",");return e.length>1?(0,r.format)("CrossJoin({0})",t):t}function S(e,t,n,i,o,s,l,u){for(var d,c,h,f,p=[],g=s[l],m=[],_=i;_<=t;_++){var v=g[_],y=v.dataField,x=g[_-1]&&g[_-1].hierarchyName,S=v.hierarchyName,k=!S||!g[_+1]||g[_+1].hierarchyName!==S,D=e.length+n+i;if(d=null,m.push(v),_<e.length)k&&(d="("+y+"."+H(e[_],y)+")");else if(_<=D)if(0===_&&0===n){var I=b(g[i]);d=S?I+","+g[i].dataField:w(g[i])}else S?(h=H(o[o.length-1]),(k||_===D)&&(x===S?(o.length&&(c=g[o.length-1]),c&&c.hierarchyName===S||(c=g[_-1],h=""),f=c.dataField,d="Descendants({"+(h||f)+"}, "+y+", SELF_AND_BEFORE)"):d=w(v))):d=w(v);else(!S||x!==S)&&(d="("+b(v)+")");if(d){if(d=(0,r.format)(a,d),u){var T=(v.hierarchyName||v.dataField)+("displayText"===v.sortBy?".MEMBER_CAPTION":".MEMBER_VALUE");d=(0,r.format)("Order({0}, {1}, {2})",d,T,"desc"===v.sortOrder?"DESC":"ASC")}p.push(d)}}return C(p)}function k(e,t,n,i,o,a,s,l,u,d){var c,h=-1,f=a[s];do{h++,c=t.length+h+i;var p=S(t,n,h,i,o,a,s,u);u||d||(p=(0,r.format)("NonEmpty({0}, {1})",p,l)),e.push(p)}while(f[c]&&f[c+1]&&f[c].expanded)}function D(e,t,n,i){return n=n||"[DX_Set_"+t.length+"]",i=i||"set",t.push((0,r.format)("{0} {1} as {2}",i,n,e)),n}function I(e,t,i,o,s){var l,u,d=e[t],h=[],p=[],g=[],m=0,_=0,v=[],y=(0,r.format)(a,i.join(","));if(d&&d.length){e.headerName===t?(p=e.path,m=p.length):e.headerName&&e.oppositePath?(p=e.oppositePath,m=p.length):g=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||g,_=(0,f.getExpandedLevel)(e,t),k(h,[],_,m,p,e,t,y,"rows"===t?e.rowTake:e.columnTake,e.totalsOnly),(0,c.each)(g,(function(n,i){k(h,i,_,m,i,e,t,y)}));for(var x=_;x>=p.length;x--)d[x].hierarchyName&&(s.visibleLevels[d[x].hierarchyName]=s.visibleLevels[d[x].hierarchyName]||[],s.visibleLevels[d[x].hierarchyName].push(d[x].dataField))}if(h.length){var b=(u=(l=h).join(","),l.length>1?"Union("+u+")":u);"rows"===t&&e.rowTake&&(b=(0,r.format)(n,b,e.rowSkip>0?e.rowSkip+1:0,e.rowSkip>0?e.rowTake:e.rowTake+1)),"columns"===t&&e.columnTake&&(b=(0,r.format)(n,b,e.columnSkip>0?e.columnSkip+1:0,e.columnSkip>0?e.columnTake:e.columnTake+1));var w="[DX_".concat(t,"]");v.push(D(b,o,w)),e.totalsOnly&&v.push(D("COUNT(".concat(w,")"),o,"[DX_".concat(t,"_count]"),"member"))}return"columns"===t&&i.length&&!e.skipValues&&v.push(y),(0,r.format)("{0} DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME, MEMBER_VALUE ON {1}",C(v),t)}function T(e){var t=[];return(0,c.each)(e,(function(e,n){var i,o=n.dataField,s=[],l=n.filterValues||[];n.hierarchyName&&(0,d.isNumeric)(n.groupIndex)||((0,c.each)(l,(function(e,t){var i=o+"."+H(Array.isArray(t)?t[t.length-1]:t,o);"exclude"===n.filterType&&(s.push(i+".parent"),i="Descendants("+i+")"),s.push(i)})),l.length&&(i=(0,r.format)(a,s.join(",")),"exclude"===n.filterType&&(i="Except("+w(n)+","+i+")"),t.push(i)))})),t.length?C(t):""}function E(e,t,n,i){var o="["+i+"]";return(0,c.each)([e,t,n],(function(e,t){t&&(o=(0,r.format)("(SELECT {0} FROM {1})",t+"on 0",o))})),o}function A(e,n,i,a,s,l,u){var d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c="",h=(n.length?"with "+n.join(" "):"")+" ";if(e.length){var f;if(d.totalsOnly){var p=[];a.length&&p.push("[DX_rows_count]"),i.length&&p.push("[DX_columns_count]"),f="{".concat(p.join(","),"} on columns")}else f=e.join(",");c=h+(0,r.format)(t,E(T(i),T(a),T(s||[]),u),l.length?(0,r.format)(o,l.join(",")):"",f)}return c}function O(e,t){return(0,c.map)(t,(function(t){return(0,d.isString)(t.expression)&&D(t.expression,e,t.dataField,"member"),t.dataField}))}function P(e,t,n,i){(0,c.each)(i,(function(i,o){var a=t[n][i];a.hierarchyName&&a.hierarchyName===t[n][i+1].hierarchyName||e.push(a.dataField+"."+H(o,a.dataField))}))}function M(e,t,n){var i=e.columns||[],o=e.rows||[],a=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],r=[],s=[],l=[],u=O(s,a);return n.measureCount=e.skipValues?1:a.length,n.visibleLevels={},e.headerName&&e.path&&P(r,e,e.headerName,e.path),e.headerName&&e.oppositePath&&P(r,e,"rows"===e.headerName?"columns":"rows",e.oppositePath),(i.length||u.length)&&l.push(I(e,"columns",u,s,n)),o.length&&l.push(I(e,"rows",u,s,n)),A(l,s,i,o,e.filters,r,t,e)}function R(e,t,n){(0,c.each)(n,(function(n,i){var o=t[n];o.hierarchyName&&(t[n+1]||{}).hierarchyName===o.hierarchyName||e.push(o.dataField+"."+H(i,o.dataField))}))}function B(e){return parseInt(e,10)}function V(e,t){return F(function(e,t){return(e.getElementsByTagName(t)||[])[0]}(e,t))}function F(e){return e&&(e.textContent||e.text||e.innerHTML)||""}function L(e,t,n){for(var i=[],o=[],a=0,r=[],l=e.getElementsByTagName("Cell"),u={},d=0;d<l.length;d++){var h=l[d],f=h.getElementsByTagName("Value")[0],p=f&&f.getElementsByTagName("Error")||[],g=0===p.length?F(f):"#N/A",m=parseFloat(g),_=g-m+1>0,v=B(h.getAttribute("CellOrdinal"));p.length&&(u[F(p[0].getElementsByTagName("ErrorCode")[0])]=F(p[0].getElementsByTagName("Description")[0])),r[v]={value:_?m:g||null}}return(0,c.each)(t[1],(function(){var e=[];i.push(e),(0,c.each)(t[0],(function(){0==a%n&&(o=[],e.push(o)),o.push(r[a]?r[a].value:null),a++}))})),Object.keys(u).forEach((function(e){s.errors.log("W4002",u[e])})),i}function H(e,t){return e&&(e=(0,d.isString)(e)&&-1!==e.indexOf("&")?e:"["+e+"]",t&&0===e.indexOf(t+".")&&(e=e.slice(t.length+1,e.length))),e}function N(e,t,n,i){var o=e[t];return o||(o={},e[t]=o),!(0,d.isDefined)(o.value)&&n&&(o.text=n.caption,o.value=n.value,o.key=t||"",o.levelName=n.levelName,o.hierarchyName=n.hierarchyName,o.parentName=n.parentName,o.index=i,o.level=n.level),o}function z(e,t){var n=[],i=e.children&&(e.children.length?e.children:Object.keys(e.children.grandTotalHash||{}).reduce((function(t,n){return t.concat(e.children.grandTotalHash[n].children)}),[])),o=i&&i[0];if(o&&(t[o.hierarchyName]&&-1!==(0,h.inArray)(o.levelName,t[o.hierarchyName])||!t[o.hierarchyName]||0===o.level)){var a=i.filter((function(e){return e.hierarchyName===o.hierarchyName}));return a.grandTotalHash=i.grandTotalHash,a}if(o)for(var r=0;r<i.length;r++)i[r].hierarchyName===o.hierarchyName&&n.push.apply(n,z(i[r],t));return n}function W(e,t,n,i){var o=[];(0,c.each)(t,(function(e,t){var i={children:o},a=(0,d.isDefined)(n)?Math.floor(e/n):e;(0,c.each)(t,(function(e,t){i=function(e,t,n){var i=n.children=n.children||[],o=i.hash=i.hash||{},a=i.grandTotalHash=i.grandTotalHash||{};t.parentName&&(i=(n=N(o,t.parentName)).children=n.children||[]);var r=N(o,t.name,t,e);return t.hasValue&&!r.added&&(r.index=e,r.added=!0,i.push(r)),n.value&&n.parentName||!t.parentName?a[n.name]&&delete a[t.parentName]:a[t.parentName]=n,r}(a,t,i)}))}));var a={children:o};a.children=z(a,i);var r=function(e,t){var n;if(1===e.children.length&&""===e.children[0].parentName){n=e.children[0].index;var i=e.children.grandTotalHash;e.children=e.children[0].children||[],e.children.grandTotalHash=i,e.children=z(e,t)}else 0===e.children.length&&(n=0);return n}(a,i);return(0,f.foreachTree)(a.children,(function(e){var t=e[0],n=z(t,i);n.length?t.children=n:delete t.children,delete t.levelName,delete t.hierarchyName,delete t.added,delete t.parentName,delete t.level}),!0),(0,c.each)(a.children||[],(function(t,n){e.push(n)})),r}function G(e){var t=e.getElementsByTagName("soap:Fault"),n=e.getElementsByTagName("Fault"),o=(0,i.default)([].slice.call(n.length?n:t)).find("Error");if(o.length){var a=o.attr("Description"),r=new s.errors.Error("E4000",a);return s.errors.log("E4000",a),r}return null}function j(e,t,n,i){var o=[],a="MEASURE"===t,r=a?"MEASUREGROUP_NAME":t+"_DISPLAY_FOLDER";return(0,c.each)(e.getElementsByTagName("row"),(function(e,s){var l="LEVEL"===t?V(s,"HIERARCHY_UNIQUE_NAME"):void 0,u=V(s,"LEVEL_NUMBER"),d=V(s,r);if(a&&(d=i[d]||d),("0"!==u||"true"!==V(s,t+"_IS_VISIBLE"))&&"2"!==V(s,"DIMENSION_TYPE")){var c=a?m:V(s,"DIMENSION_UNIQUE_NAME"),h=V(s,t+"_UNIQUE_NAME");o.push({dimension:n.names[c]||c,groupIndex:u?B(u)-1:void 0,dataField:h,caption:V(s,t+"_CAPTION"),hierarchyName:l,groupName:l,displayFolder:d,isMeasure:a,isDefault:!!n.defaultHierarchies[h]})}})),o}function q(e,t){return t=(0,i.default)("<div>").text(t).html(),v(e,(0,r.format)('<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement>{0}</Statement></Command><Properties><PropertyList><Catalog>{1}</Catalog><ShowHiddenCubes>True</ShowHiddenCubes><SspropInitAppName>Microsoft SQL Server Management Studio</SspropInitAppName><Timeout>3600</Timeout>{2}</PropertyList></Properties></Execute></Body></Envelope>',t,e.catalog,x()))}return{ctor:function(e){this._options=e},getFields:function(){var t=this._options,n=t.catalog,o=t.cube,a=x(),s=v(t,(0,r.format)(e,n,o,"MDSCHEMA_DIMENSIONS",a)),l=v(t,(0,r.format)(e,n,o,"MDSCHEMA_MEASURES",a)),u=v(t,(0,r.format)(e,n,o,"MDSCHEMA_HIERARCHIES",a)),d=v(t,(0,r.format)(e,n,o,"MDSCHEMA_LEVELS",a)),h=new p.Deferred;return(0,p.when)(s,l,u,d).then((function(s,l,u,d){v(t,(0,r.format)(e,n,o,"MDSCHEMA_MEASUREGROUPS",a)).done((function(e){var t=function(e){var t={names:{},defaultHierarchies:{}};return(0,c.each)((0,i.default)(e).find("row"),(function(){var e=(0,i.default)(this),n="2"===e.children("DIMENSION_TYPE").text()?m:e.children("DIMENSION_UNIQUE_NAME").text();t.names[n]=e.children("DIMENSION_CAPTION").text(),t.defaultHierarchies[e.children("DEFAULT_HIERARCHY").text()]=!0})),t}(s),n=j(u,"HIERARCHY",t),o=j(d,"LEVEL",t),a=function(e){var t={};return(0,c.each)(e.getElementsByTagName("row"),(function(e,n){t[V(n,"MEASUREGROUP_NAME")]=V(n,"MEASUREGROUP_CAPTION")})),t}(e),r=j(l,"MEASURE",t,a).concat(n),f={};(0,c.each)(o,(function(e,t){f[t.hierarchyName]=f[t.hierarchyName]||[],f[t.hierarchyName].push(t)})),(0,c.each)(n,(function(e,t){f[t.dataField]&&f[t.dataField].length>1&&(t.groupName=t.hierarchyName=t.dataField,r.push.apply(r,f[t.hierarchyName]))})),h.resolve(r)})).fail(h.reject)})).fail(h.reject),h},load:function(e){var t,n=new p.Deferred,i=this._options,o={skipValues:e.skipValues},a=M(e,i.cube,o);(e.rowSkip||e.rowTake||e.columnTake||e.columnSkip)&&(t=M((0,u.extend)({},e,{totalsOnly:!0,rowSkip:null,rowTake:null,columnSkip:null,columnTake:null}),i.cube,{}));var r=function(){a?(0,p.when)(q(i,a),t&&q(i,t)).done((function(t,i){var a=G(t)||i&&G(i);if(a)n.reject(a);else{var r=function(e,t){var n={columns:[],rows:[]},i=t.measureCount,o=function(e,t){var n=[];for((0,c.each)(e.getElementsByTagName("Axis"),(function(e,i){var o=i.getAttribute("name"),a=[],r=0;0===o.indexOf("Axis")&&(0,d.isNumeric)(B(o.substr(4)))&&(n.push(a),(0,c.each)(i.getElementsByTagName("Tuple"),(function(e,i){var o,s=i.childNodes,l=0,u=[],c=t?s.length:s.length-1;1===n.length&&c--,a.push(u);for(var h=c;h>=0;h--){var f=s[h],p=B(V(f,"LNum"));u[h]={caption:V(f,"Caption"),value:(o=V(f,"MEMBER_VALUE"),(0,d.isNumeric)(o)?parseFloat(o):o),level:p,index:r++,hasValue:!(l||!p&&0!==h),name:V(f,"UName"),hierarchyName:s[h].getAttribute("Hierarchy"),parentName:V(f,"PARENT_UNIQUE_NAME"),levelName:V(f,"LName")},l+=p}})))}));n.length<2;)n.push([[{level:0}]]);return n}(e,t.skipValues);return n.grandTotalColumnIndex=W(n.columns,o[0],i,t.visibleLevels),n.grandTotalRowIndex=W(n.rows,o[1],void 0,t.visibleLevels),n.values=L(e,o,i),n}(t,o);i&&function(e,t,n){var i=[],o=t.columns||[],a=t.rows||[];o.length&&i.push({}),a.length&&i.push({});var r=L(n,[[{}],[{},{}]],1);if(!o.length&&a.length&&(e.rowCount=Math.max(r[0][0][0]-1,0)),!a.length&&o.length&&(e.columnCount=Math.max(r[0][0][0]-1,0)),a.length&&o.length&&(e.rowCount=Math.max(r[0][0][0]-1,0),e.columnCount=Math.max(r[1][0][0]-1,0)),void 0!==e.rowCount&&t.rowTake){e.rows=_(Array(t.rowSkip)).concat(e.rows),e.rows.length=e.rowCount;for(var s=0;s<e.rows.length;s++)e.rows[s]=e.rows[s]||{}}if(void 0!==e.columnCount&&t.columnTake){e.columns=_(Array(t.columnSkip)).concat(e.columns),e.columns.length=e.columnCount;for(var l=0;l<e.columns.length;l++)e.columns[l]=e.columns[l]||{}}}(r,e,i),n.resolve(r)}})).fail(n.reject):n.resolve({columns:[],rows:[],values:[],grandTotalColumnIndex:0,grandTotalRowIndex:0})};return e.delay?setTimeout(r,e.delay):r(),n},supportPaging:function(){return!0},getDrillDownItems:function(e,t){var n=new p.Deferred,i=this._options,o=function(e,t,n){var i=e.columns||[],o=e.rows||[],a=[],r=[],s=[],l=O(r,e.values&&e.values.length?e.values:[{dataField:"[Measures]"}]),u=n.maxRowCount,d=n.customColumns||[],c=d.length>0?" return "+d.join(","):"";R(a,i,n.columnPath||[]),R(a,o,n.rowPath||[]),(i.length||l.length)&&s.push([(l[n.dataIndex]||l[0])+" on 0"]);var h=A(s,r,i,o,e.filters,a,t);return h?"drillthrough"+(u>0?" maxrows "+u:"")+h+c:h}(e,i.cube,t);return o?(0,p.when)(q(i,o)).done((function(e){var t=G(e);t?n.reject(t):n.resolve(function(e){for(var t,n,i=e.getElementsByTagName("row"),o=[],a={},r=0;r<i.length;r++){for(var s=i[r].childNodes,l={},u=0;u<s.length;u++){var d=s[u].tagName;l[a[d]=a[d]||(void 0,(n=(t=(t=d).replace(/_x(....)_/g,(function(e,t){return String.fromCharCode(parseInt(t,16))}))).match(/\[.+?\]/gi))&&n.length&&(t=n[n.length-1]),t.replace(/\[/gi,"").replace(/\]/gi,"").replace(/\$/gi,"").replace(/\./gi," "))]=F(s[u])}o.push(l)}return o}(e))})).fail(n.reject):n.resolve([]),n},key:l.noop,filter:l.noop}}()).include(f.storeDrillDownMixin);t.XmlaStore=x},32014:function(e,t,n){var i;t.default=void 0;var o=((i=n(77271))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},22348:function(e,t,n){var i;t.default=void 0;var o=((i=n(17287))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},84228:function(e,t,n){t.PopoverPositionController=t.POPOVER_POSITION_ALIASES=void 0;var i,o=n(35922),a=n(13306),r=(i=n(49387))&&i.__esModule?i:{default:i},s=n(20576),l=n(19234),u=n(58664),d=n(49314),c=["shading","$arrow"];function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p={left:-1,top:-1,center:0,right:1,bottom:1},g={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}};t.POPOVER_POSITION_ALIASES=g;var m={h:10,v:10},_=function(e){var t,n;function i(t){var n,i=t.shading,o=t.$arrow,a=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,c);return(n=e.call(this,a)||this)._props=h({},n._props,{shading:i}),n._$arrow=o,n._positionSide=void 0,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var d=i.prototype;return d.positionWrapper=function(){this._props.shading&&this._$wrapper.css({top:0,left:0})},d._renderBoundaryOffset=function(){},d._getContainerPosition=function(){var e=(0,s.pairToObject)(this._position.offset||""),t=e.h,n=e.v,i=this._isVerticalSide(),o=this._isHorizontalSide();if(i||o){var r=(this._isPopoverInside()?-1:1)*p[this._positionSide]*((i?(0,u.getHeight)(this._$arrow):(0,u.getWidth)(this._$arrow))-this._getContentBorderWidth(this._positionSide));i?n+=r:t+=r}return(0,a.extend)({},this._position,{offset:t+" "+n})},d._getContentBorderWidth=function(e){var t=this._$content.css(l.borderWidthStyles[e]);return parseInt(t)||0},d._isPopoverInside=function(){var e=r.default.setup.normalizeAlign(this._position.my),t=r.default.setup.normalizeAlign(this._position.at);return e.h===t.h&&e.v===t.v},d._isVerticalSide=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"top"===e||"bottom"===e},d._isHorizontalSide=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"left"===e||"right"===e},d._getDisplaySide=function(e){var t=r.default.setup.normalizeAlign(e.my),n=r.default.setup.normalizeAlign(e.at),i=p[t.h]===p[n.h]&&p[t.v]===p[n.v]?-1:1;return Math.abs(p[t.h]-i*p[n.h])>Math.abs(p[t.v]-i*p[n.v])?n.h:n.v},d._normalizePosition=function(e,t){var n,i={of:t,boundaryOffset:m};return n=(0,o.isDefined)(e)?(0,a.extend)(!0,{},i,this._positionToObject(e)):i,this._positionSide=this._getDisplaySide(n),n},d._positionToObject=function(e){return(0,o.isString)(e)?(0,a.extend)({},g[e]):e},i}(d.OverlayPositionController);t.PopoverPositionController=_},17287:function(e,t,n){t.default=void 0;var i=n(58664),o=x(n(68374)),a=n(58201),r=n(6415),s=x(n(73349)),l=x(n(55994)),u=x(n(99393)),d=n(13306),c=n(31648),h=x(n(49387)),f=n(35922),p=n(60810),g=n(39611),m=x(n(96688)),_=x(n(39114)),v=n(37518),y=n(84228);function x(e){return e&&e.__esModule?e:{default:e}}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var w={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},C=function(e){return(0,f.isObject)(e)?e.name:e},S=function(e,t){var n=e.option(t);return C(n)},k=function(e,t){var n=e.option(),i=n.target,a=n.shading,u=n.disabled,d=n.hideEvent,c=(0,f.isString)(i),h=a&&"hide"===t,p=h?null:S(e,"".concat(t,"Event"));if(h&&d&&m.default.log("W1020"),p&&!u){var _=(0,g.addNamespace)(p,e.NAME),v=e._createAction(function(){var n=function(e,t){var n=e.option(t);return(0,f.isObject)(n)&&n.delay}(e,t+"Event");this._clearEventsTimeouts(),n?this._timeouts[t]=setTimeout((function(){e[t]()}),n):e[t]()}.bind(e),{validatingTargetName:"target"}),y=function(e){v({event:e,target:(0,o.default)(e.currentTarget)})},x="_"+t+"EventHandler";if(c)e[x]=y,l.default.on(s.default.getDocument(),_,i,y);else{var b=(0,r.getPublicElement)((0,o.default)(i));e[x]=void 0,l.default.on(b,_,y)}}},D=function(e,t,n,i){var a=i||S(e,n+"Event");if(a){a=(0,g.addNamespace)(a,e.NAME);var u="_"+n+"EventHandler";e[u]?l.default.off(s.default.getDocument(),a,t,e[u]):l.default.off((0,r.getPublicElement)((0,o.default)(t)),a)}},I=_.default.inherit({_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{target:void 0,shading:!1,position:(0,d.extend)({},y.POPOVER_POSITION_ALIASES.bottom),closeOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,hideOnParentScroll:!0,arrowPosition:"",arrowOffset:0,_fixWrapperPosition:!0})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!(0,a.hasWindow)()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass("dx-popover"),this.$wrapper().addClass("dx-popover-wrapper")},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){D(this,e,"show"),D(this,e,"hide")},_attachEvents:function(){k(this,"show"),k(this,"hide")},_renderArrow:function(){this._$arrow=(0,o.default)("<div>").addClass("dx-popover-arrow").prependTo(this.$overlayContent())},_documentDownHandler:function(e){return!this._isOutsideClick(e)||this.callBase(e)},_isOutsideClick:function(e){return!(0,o.default)(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&"object"===b(e.to)&&(0,d.extend)(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this.$wrapper().toggleClass("dx-popover-without-title",!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition(),this._actions.onPositioned()},_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var e=this._getContainerPosition(),t=h.default.setup(this.$overlayContent(),e),n=this._getSideByLocation(t);this._togglePositionClass("dx-position-"+n),this._toggleFlippedClass(t.h.flip,t.v.flip),(this._isHorizontalSide()||this._isVerticalSide())&&this._renderArrowPosition(n)},_resetOverlayPosition:function(){this._setContentHeight(!0),this._togglePositionClass("dx-position-"+this._positionController._positionSide),(0,c.move)(this.$overlayContent(),{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(){if(this.$content()){var e=h.default.calculate(this.$overlayContent(),this._getContainerPosition());if(e.h.oversize>0&&this._isHorizontalSide()&&!e.h.fit){var t=(0,i.getWidth)(this.$overlayContent())-e.h.oversize;(0,i.setWidth)(this.$overlayContent(),t)}if(e.v.oversize>0&&this._isVerticalSide()&&!e.v.fit){var n=(0,i.getHeight)(this.$overlayContent())-e.v.oversize,o=(0,i.getHeight)(this.$content())-e.v.oversize;(0,i.setHeight)(this.$overlayContent(),n),(0,i.setHeight)(this.$content(),o)}}},_getContainerPosition:function(){return this._positionController._getContainerPosition()},_getSideByLocation:function(e){var t=e.v.flip,n=e.h.flip;return this._isVerticalSide()&&t||this._isHorizontalSide()&&n||this._isPopoverInside()?w[this._positionController._positionSide]:this._positionController._positionSide},_togglePositionClass:function(e){this.$wrapper().removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(e)},_toggleFlippedClass:function(e,t){this.$wrapper().toggleClass("dx-popover-flipped-horizontal",e).toggleClass("dx-popover-flipped-vertical",t)},_renderArrowPosition:function(e){var t=(0,v.getBoundingRect)(this._$arrow.get(0)),n=-(this._isVerticalSide(e)?t.height:t.width);this._$arrow.css(w[e],n);var i,a=this._isVerticalSide(e)?"left":"top",r=this._isVerticalSide(e)?"width":"height",s=(0,o.default)(this._positionController._position.of),l=h.default.offset(s)||{top:0,left:0},u=h.default.offset(this.$overlayContent()),d=t[r],c=u[a],f=(0,v.getBoundingRect)(this.$overlayContent().get(0))[r],g=l[a],m=s.get(0),_=m&&!m.preventDefault?(0,v.getBoundingRect)(m)[r]:0,y=Math.max(c,g),x=Math.min(c+f,g+_);i="start"===this.option("arrowPosition")?y-c:"end"===this.option("arrowPosition")?x-c-d:(y+x)/2-c-d/2;var b=this._positionController._getContentBorderWidth(e),C=(0,p.fitIntoRange)(i-b+this.option("arrowOffset"),b,f-d-2*b);this._$arrow.css(a,C)},_isPopoverInside:function(){return this._positionController._isPopoverInside()},_setContentHeight:function(e){e&&this.callBase()},_getPositionControllerConfig:function(){var e=this.option().shading;return(0,d.extend)({},this.callBase(),{shading:e,$arrow:this._$arrow})},_initPositionController:function(){this._positionController=new y.PopoverPositionController(this._getPositionControllerConfig())},_renderWrapperDimensions:function(){this.option("shading")&&this.$wrapper().css({width:"100%",height:"100%"})},_isVerticalSide:function(e){return this._positionController._isVerticalSide(e)},_isHorizontalSide:function(e){return this._positionController._isHorizontalSide(e)},_clearEventTimeout:function(e){clearTimeout(this._timeouts[e])},_clearEventsTimeouts:function(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(e){switch(e.name){case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":e.value&&this.option("fullScreen",!1);break;case"target":e.previousValue&&this._detachEvents(e.previousValue),this.callBase(e);break;case"showEvent":case"hideEvent":var t=e.name.substring(0,4),n=C(e.previousValue);this.hide(),D(this,this.option("target"),t,n),k(this,t);break;case"visible":this._clearEventTimeout(e.value?"show":"hide"),this.callBase(e);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});(0,u.default)("dxPopover",I);var T=I;t.default=T,e.exports=t.default,e.exports.default=t.default},39114:function(e,t,n){var i;t.default=void 0;var o=((i=n(51495))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},39665:function(e,t,n){t.PopupPositionController=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(31648),r=n(58201),s=n(49314),l=["fullScreen","forceApplyBindings"];function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=(0,r.getWindow)(),f=function(e){var t,n;function i(t){var n,i=t.fullScreen,o=t.forceApplyBindings,a=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,l);return(n=e.call(this,a)||this)._props=u({},n._props,{fullScreen:i,forceApplyBindings:o}),n._lastPositionBeforeFullScreen=void 0,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var r,s,f=i.prototype;return f.positionContent=function(){var t,n;this._props.fullScreen?((0,a.move)(this._$content,{top:0,left:0}),this.detectVisualPositionChange()):(null===(t=(n=this._props).forceApplyBindings)||void 0===t||t.call(n),!this._shouldRenderContentInitialPosition&&this._lastPositionBeforeFullScreen?((0,a.move)(this._$content,this._lastPositionBeforeFullScreen),this._lastPositionBeforeFullScreen=void 0,this.detectVisualPositionChange()):e.prototype.positionContent.call(this))},f._getWrapperCoveredElement=function(){return this._props.fullScreen?(0,o.default)(h):e.prototype._getWrapperCoveredElement.call(this)},f._fullScreenEnabled=function(){this.restorePositionOnNextRender(!1),this._lastPositionBeforeFullScreen=this._visualPosition},f._fullScreenDisabled=function(){this.restorePositionOnNextRender(!1)},r=i,(s=[{key:"fullScreen",set:function(e){this._props.fullScreen=e,e?this._fullScreenEnabled():this._fullScreenDisabled()}}])&&d(r.prototype,s),i}(s.OverlayPositionController);t.PopupPositionController=f},51495:function(e,t,n){t.default=void 0;var i=k(n(99393)),o=k(n(20530)),a=n(6415),r=k(n(68374)),s=n(10688),l=n(89386),u=k(n(47810)),d=n(20576),c=n(13306),h=n(78008),f=n(95479),p=n(58664),g=n(37518),m=n(35922),_=n(58020),v=n(58201),y=n(80506),x=k(n(28109)),b=k(n(63008)),w=k(n(89799)),C=n(75811);n(997);var S=n(39665);function k(e){return e&&e.__esModule?e:{default:e}}var D=(0,v.getWindow)(),I="dx-popup-title",T="dx-popup-bottom",E=["cancel","clear","done"],A=u.default.safari&&(0,_.compare)(u.default.version,[11])<0,O={static:"",inherit:"dx-popup-inherit-height",flex:"dx-popup-flex-height"},P=w.default.inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var e=(0,C.current)();return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(e){return"desktop"===o.default.real().deviceType&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===o.default.real().deviceType&&!o.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,C.isMaterial)(e)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0,showCloseButton:!1}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){return this.option("fullScreen")?{show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}}:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}}},_init:function(){this.callBase(),this.$element().addClass("dx-popup"),this.$wrapper().addClass("dx-popup-wrapper"),this._$popupContent=this._$content.wrapInner((0,r.default)("<div>").addClass("dx-popup-content")).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this.$overlayContent().toggleClass("dx-popup-fullscreen",e).toggleClass("dx-popup-normal",!e)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new s.EmptyTemplate,bottom:new s.EmptyTemplate})},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),t=this.option("title"),n=this.option("showTitle");if(n&&t&&e.unshift({location:o.default.current().ios?"center":"before",text:t}),n||e.length>0){this._$title&&this._$title.remove();var i=(0,r.default)("<div>").addClass(I).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,i).addClass(I),this._renderDrag(),this._executeTitleRenderAction(this._$title),this._$title.toggleClass("dx-has-close-button",this._hasCloseButton())}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,n,i){var o=this._getTemplateByOption(e);if(o instanceof s.EmptyTemplate){var l=(0,c.extend)({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),u=(0,c.extend)(i,{items:t,rtlEnabled:this.option("rtlEnabled"),useDefaultButtons:this.option("useDefaultToolbarButtons"),useFlatButtons:this.option("useFlatToolbarButtons"),integrationOptions:l});this._getTemplate("dx-polymorph-widget").render({container:n,model:{widget:"dxToolbarBase",options:u}});var d=n.children("div");return n.replaceWith(d),d}var h=(0,r.default)(o.render({container:(0,a.getPublicElement)(n)}));return h.hasClass("dx-template-wrapper")&&(n.replaceWith(h),n=h),n},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:(0,a.getPublicElement)(e)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){var e=this;return function(t,n,i){var o=(0,r.default)("<div>").addClass("dx-closebutton");e._createComponent(o,b.default,{icon:"close",onClick:e._createToolbarItemAction(void 0),stylingMode:"text",integrationOptions:{}}),(0,r.default)(i).append(o)}},_getToolbarItems:function(e){var t=this,n=this.option("toolbarItems"),i=[];this._toolbarItemClasses=[];var a=o.default.current().platform,r=0;return(0,f.each)(n,(function(n,s){var l=(0,m.isDefined)(s.shortcut),u=l?function(e){var t=o.default.current(),n=t.platform,i="bottom",a="before";if("ios"===n)switch(e){case"cancel":i="top";break;case"clear":i="top",a="after";break;case"done":a="after"}else if("android"===n&&t.version&&parseInt(t.version[0])>4)switch(e){case"cancel":case"done":a="after"}return{toolbar:i,location:a}}(s.shortcut):s;if(l&&"ios"===a&&r<2&&(u.toolbar="top",r++),u.toolbar=s.toolbar||u.toolbar||"top",u&&u.toolbar===e){l&&(0,c.extend)(u,{location:s.location},t._getToolbarItemByAlias(s));var d="generic"===a;"done"===s.shortcut&&d||"cancel"===s.shortcut&&!d?i.unshift(u):i.push(u)}})),"top"===e&&this._hasCloseButton()&&i.push(this._getCloseButton()),i},_hasCloseButton:function(){return this.option("showCloseButton")&&this.option("showTitle")},_getLocalizationKey:function(e){return"done"===e.toLowerCase()?"OK":(0,h.camelize)(e,!0)},_getToolbarItemByAlias:function(e){var t=this,n=e.shortcut;if((0,l.inArray)(n,E)<0)return!1;var i=(0,c.extend)({text:x.default.format(this._getLocalizationKey(n)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:t.option("useDefaultToolbarButtons")?"default":"normal",stylingMode:t.option("useFlatToolbarButtons")?"text":"contained"},e.options||{}),o="dx-popup-"+n;return this._toolbarItemClasses.push(o),{template:function(e,n,a){var s=(0,r.default)("<div>").addClass(o).appendTo(a);t._createComponent(s,b.default,i)}}},_createToolbarItemAction:function(e){return this._createAction(e,{afterExecute:function(e){e.component.hide()}})},_renderBottom:function(){var e=this._getToolbarItems("bottom");if(e.length){this._$bottom&&this._$bottom.remove();var t=(0,r.default)("<div>").addClass(T).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t,{compactMode:!0}).addClass(T),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){var e=this,t=E;(0,f.each)(t,(function(t,n){var i="dx-popup-"+n;(0,l.inArray)(i,e._toolbarItemClasses)>=0?(e.$wrapper().addClass(i+"-visible"),e._$bottom.addClass(i)):(e.$wrapper().removeClass(i+"-visible"),e._$bottom.removeClass(i))}))},_getPositionControllerConfig:function(){var e=this.option(),t=e.fullScreen,n=e.forceApplyBindings;return(0,c.extend)({},this.callBase(),{fullScreen:t,forceApplyBindings:n})},_initPositionController:function(){this._positionController=new S.PopupPositionController(this._getPositionControllerConfig())},_getDragTarget:function(){return this.topToolbar()},_renderGeometryImpl:function(){this._resetContentHeight(),this.callBase(),this._setContentHeight()},_resetContentHeight:function(){"auto"===this._getOptionValue("height")&&this.$content().css({height:"auto",maxHeight:"none"})},_renderDrag:function(){this.callBase(),this.$overlayContent().toggleClass("dx-popup-draggable",this.option("dragEnabled"))},_renderResize:function(){var e=this;this.callBase(),this._resizable.option("onResize",(function(t){e._setContentHeight(),e._actions.onResize(t)}))},_setContentHeight:function(){(this.option("forceApplyBindings")||d.noop)();var e=this.$overlayContent().get(0),t=this._chooseHeightStrategy(e);this.$content().css(this._getHeightCssStyles(t,e)),this._setHeightClasses(this.$overlayContent(),t)},_heightStrategyChangeOffset:function(e,t){return e===O.flex?-t:0},_chooseHeightStrategy:function(e){var t="auto"===e.style.width||""===e.style.width,n=O.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(n=t||A?O.inherit:O.flex),n},_getHeightCssStyles:function(e,t){var n={},i=this._getOptionValue("maxHeight",t),o=this._getOptionValue("minHeight",t),a=this._splitPopupHeight(),s=a.header+a.footer+a.contentVerticalOffsets+a.popupVerticalOffsets+this._heightStrategyChangeOffset(e,a.popupVerticalPaddings);if(e===O.static){if(!this._isAutoHeight()||i||o){var l=(this.option("fullScreen")?Math.min((0,g.getBoundingRect)(t).height,(0,v.getWindow)().innerHeight):(0,g.getBoundingRect)(t).height)-s;n={height:Math.max(0,l),minHeight:"auto",maxHeight:"auto"}}}else{var u=(0,r.default)(this._positionController._$wrapperCoveredElement).get(0),d=(0,p.addOffsetToMaxHeight)(i,-s,u);n={height:"auto",minHeight:(0,p.addOffsetToMinHeight)(o,-s,u),maxHeight:d}}return n},_setHeightClasses:function(e,t){var n="";for(var i in O)O[i]!==t&&(n+=" "+O[i]);e.removeClass(n).addClass(t)},_isAutoHeight:function(){return"auto"===this.$overlayContent().get(0).style.height},_splitPopupHeight:function(){var e=this.topToolbar(),t=this.bottomToolbar();return{header:(0,p.getVisibleHeight)(e&&e.get(0)),footer:(0,p.getVisibleHeight)(t&&t.get(0)),contentVerticalOffsets:(0,p.getVerticalOffsets)(this.$overlayContent().get(0),!0),popupVerticalOffsets:(0,p.getVerticalOffsets)(this.$content().get(0),!0),popupVerticalPaddings:(0,p.getVerticalOffsets)(this.$content().get(0),!1)}},_isAllWindowCovered:function(){return this.callBase()||this.option("fullScreen")},_renderDimensions:function(){this.option("fullScreen")?this.$overlayContent().css({width:"100%",height:"100%",minWidth:"",maxWidth:"",minHeight:"",maxHeight:""}):this.callBase(),(0,v.hasWindow)()&&this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.$overlayContent().toggleClass("dx-popup-fullscreen-width",(0,p.getOuterWidth)(this.$overlayContent())===(0,p.getWidth)(D))},refreshPosition:function(){this._renderPosition()},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry(),(0,y.triggerResizeEvent)(this.$overlayContent());break;case"bottomTemplate":this._renderBottom(),this._renderGeometry(),(0,y.triggerResizeEvent)(this.$overlayContent());break;case"onTitleRendered":this._createTitleRenderAction(e.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var t=!e.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),t&&(this._renderGeometry(),(0,y.triggerResizeEvent)(this.$overlayContent()));break;case"dragEnabled":this._renderDrag();break;case"autoResizeEnabled":this._renderGeometry(),(0,y.triggerResizeEvent)(this.$overlayContent());break;case"fullScreen":this._positionController.fullScreen=e.value,this._toggleFullScreenClass(e.value),this._toggleSafariScrolling(),this._renderGeometry(),(0,y.triggerResizeEvent)(this.$overlayContent());break;case"showCloseButton":this._renderTitle();break;default:this.callBase(e)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return(0,a.getPublicElement)(this.$content())},$overlayContent:function(){return this._$content}});(0,i.default)("dxPopup",P);var M=P;t.default=M,e.exports=t.default,e.exports.default=t.default},28080:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=l(n(39661)),a=n(13306),r=n(35922),s=l(n(99393));function l(e){return e&&e.__esModule?e:{default:e}}var u=o.default.inherit({_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{value:0,statusFormat:function(e){return"Progress: "+Math.round(100*e)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"android"===e.platform},options:{_animatingSegmentCount:2}}])},_initMarkup:function(){this._renderStatus(),this._createCompleteAction(),this.callBase(),this.$element().addClass("dx-progressbar"),this._$wrapper.addClass("dx-progressbar-wrapper"),this._$bar.addClass("dx-progressbar-container"),this.setAria("role","progressbar"),(0,i.default)("<div>").addClass("dx-progressbar-range-container").appendTo(this._$wrapper).append(this._$bar),this._$range.addClass("dx-progressbar-range"),this._toggleStatus(this.option("showStatus"))},_useTemplates:function(){return!1},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=(0,i.default)("<div>").addClass("dx-progressbar-status")},_renderIndeterminateState:function(){this._$segmentContainer=(0,i.default)("<div>").addClass("dx-progressbar-animating-container");for(var e=this.option("_animatingSegmentCount"),t=0;t<e;t++)(0,i.default)("<div>").addClass("dx-progressbar-animating-segment").addClass("dx-progressbar-animating-segment-"+(t+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(e){var t=this.option("statusPosition").split(" ");e?"top"===t[0]||"left"===t[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var e=this.option("statusPosition").split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var t="dx-position-"+e[0];e[1]&&(t+="-"+e[1]),this._$wrapper.addClass(t)},_toggleIndeterminateState:function(e){e?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var e=this.option("value"),t=this.option("max");e||0===e?(this._$segmentContainer&&this._toggleIndeterminateState(!1),e===t&&this._completeAction(),this.callBase(),this._setStatus()):this._toggleIndeterminateState(!0)},_setStatus:function(){var e=this.option("statusFormat"),t=(e=(0,r.isFunction)(e)?e.bind(this):function(e){return e})(this._currentRatio,this.option("value"));this._$status.text(t)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(e){switch(e.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(e.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(e)}}});(0,s.default)("dxProgressBar",u);var d=u;t.default=d,e.exports=t.default,e.exports.default=t.default},14305:function(e,t,n){var i;t.default=void 0;var o=((i=n(4060))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},6282:function(e,t,n){t.default=void 0;var i=c(n(68374)),o=c(n(55994)),a=c(n(20530)),r=n(13306),s=c(n(99393)),l=c(n(96452)),u=n(39611),d=n(95429);function c(e){return e&&e.__esModule?e:{default:e}}var h=l.default.inherit({_supportedKeys:function(){return(0,r.extend)(this.callBase(),{space:function(e){e.preventDefault(),this._clickAction({event:e})}})},_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.default.real().deviceType&&!a.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-radiobutton")},_initMarkup:function(){this.callBase(),this._renderIcon(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderIcon:function(){this._$icon=(0,i.default)("<div>").addClass("dx-radiobutton-icon"),(0,i.default)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(e){this.$element().toggleClass("dx-radiobutton-checked",e).find(".dx-radiobutton-icon").toggleClass("dx-radiobutton-icon-checked",e),this.setAria("checked",e)},_renderClick:function(){var e=(0,u.addNamespace)(d.name,this.NAME);this._clickAction=this._createAction(function(e){this._clickHandler(e.event)}.bind(this)),o.default.off(this.$element(),e),o.default.on(this.$element(),e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){this._saveValueChangeEvent(e),this.option("value",!0)},_optionChanged:function(e){"value"===e.name?(this._renderCheckedState(e.value),this.callBase(e)):this.callBase(e)}});(0,s.default)("dxRadioButton",h);var f=h;t.default=f,e.exports=t.default,e.exports.default=t.default},4060:function(e,t,n){t.default=void 0;var i=f(n(68374)),o=n(13306),a=f(n(20530)),r=n(20576),s=n(35922),l=f(n(99393)),u=f(n(11050)),d=f(n(88718)),c=f(n(96452)),h=n(62754);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,g(e,t)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m="dx-radiobutton",_="dx-radiobutton-icon",v=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var n=t.prototype;return n._focusTarget=function(){return this.$element().parent()},n._nullValueSelectionSupported=function(){return!0},n._getDefaultOptions=function(){var t=e.prototype._getDefaultOptions.call(this);return(0,o.extend)(t,d.default._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})},n._initMarkup=function(){var t=this;e.prototype._initMarkup.call(this),(0,r.deferRender)((function(){t.itemElements().addClass(m)}))},n._keyboardEventBindingTarget=function(){return this._focusTarget()},n._postprocessRenderItem=function(t){var n=t.itemData.html,o=t.itemElement;if(!n){var a=(0,i.default)("<div>").addClass(_);(0,i.default)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(a);var r=(0,i.default)("<div>").append(a).addClass("dx-radio-value-container");(0,i.default)(o).prepend(r)}e.prototype._postprocessRenderItem.call(this,t)},n._processSelectableItem=function(t,n){e.prototype._processSelectableItem.call(this,t,n),t.toggleClass("dx-radiobutton-checked",n).find(".".concat(_)).first().toggleClass("dx-radiobutton-icon-checked",n),this.setAria("checked",n,t)},n._refreshContent=function(){this._prepareContent(),this._renderContent()},n._supportedKeys=function(){var t=e.prototype._supportedKeys.call(this);return(0,o.extend)({},t,{enter:function(e){return e.preventDefault(),t.enter.apply(this,arguments)},space:function(e){return e.preventDefault(),t.space.apply(this,arguments)}})},n._itemElements=function(){return this._itemContainer().children(this._itemSelector())},t}(u.default),y=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var n=t.prototype;return n._dataSourceOptions=function(){return{paginate:!1}},n._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:function(){return"desktop"===a.default.real().deviceType&&!a.default.isSimulator()},options:{focusStateEnabled:!0}}])},n._fireContentReadyAction=function(t){t&&e.prototype._fireContentReadyAction.call(this)},n._focusTarget=function(){return this.$element()},n._getAriaTarget=function(){return this.$element()},n._getDefaultOptions=function(){var t=e.prototype._getDefaultOptions.call(this);return(0,o.extend)(t,(0,o.extend)(d.default._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical"}))},n._getItemValue=function(e){return this._valueGetter?this._valueGetter(e):e.text},n._getSubmitElement=function(){return this._$submitElement},n._init=function(){e.prototype._init.call(this),this._activeStateUnit=".".concat(m),this._feedbackHideTimeout=100,this._initDataExpressions()},n._initMarkup=function(){this.$element().addClass("dx-radiogroup"),this._renderSubmitElement(),this.setAria("role","radiogroup"),this._renderRadios(),this._renderLayout(),e.prototype._initMarkup.call(this)},n._itemClickHandler=function(e){var t=e.itemElement,n=e.event,i=e.itemData;if(this.itemElements().is(t)){var o=this._getItemValue(i);o!==this.option("value")&&(this._saveValueChangeEvent(n),this.option("value",o))}},n._getSelectedItemKeys=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("value"),t="this"!==this.option("valueExpr"),n=t&&null===e||(0,s.isDefined)(e);return n?[e]:[]},n._setSelection=function(e){var t=this._unwrappedValue(e);this._setCollectionWidgetOption("selectedItemKeys",this._getSelectedItemKeys(t))},n._optionChanged=function(t){var n=t.name,i=t.value;switch(this._dataExpressionOptionChanged(t),n){case"dataSource":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(n,i);break;case"disabled":e.prototype._optionChanged.call(this,t),this._setCollectionWidgetOption(n,i);break;case"valueExpr":this._setCollectionWidgetOption("keyExpr",this._getCollectionKeyExpr());break;case"value":this._setSelection(i),this._setSubmitValue(i),e.prototype._optionChanged.call(this,t);break;case"items":this._setSelection(this.option("value"));break;case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:e.prototype._optionChanged.call(this,t)}},n._render=function(){e.prototype._render.call(this),this._updateItemsSize()},n._renderLayout=function(){var e=this.option("layout"),t=this.$element();t.toggleClass("dx-radiogroup-vertical","vertical"===e),t.toggleClass("dx-radiogroup-horizontal","horizontal"===e)},n._renderRadios=function(){var e=this;this._areRadiosCreated=new h.Deferred;var t=(0,i.default)("<div>").appendTo(this.$element()),n=this.option(),o=n.displayExpr,a=n.accessKey,r=n.focusStateEnabled,s=n.itemTemplate,l=n.tabIndex;this._createComponent(t,v,{onInitialized:function(t){var n=t.component;e._radios=n},onContentReady:function(t){e._fireContentReadyAction(!0)},onItemClick:this._itemClickHandler.bind(this),displayExpr:o,accessKey:a,dataSource:this._dataSource,focusStateEnabled:r,itemTemplate:s,keyExpr:this._getCollectionKeyExpr(),noDataText:"",scrollingEnabled:!1,selectionByClick:!1,selectionMode:"single",selectedItemKeys:this._getSelectedItemKeys(),tabIndex:l}),this._areRadiosCreated.resolve()},n._renderSubmitElement=function(){this._$submitElement=(0,i.default)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue()},n._setOptionsByReference=function(){e.prototype._setOptionsByReference.call(this),(0,o.extend)(this._optionsByReference,{value:!0})},n._setSubmitValue=function(e){var t;e=null!==(t=e)&&void 0!==t?t:this.option("value");var n="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(n)},n._setCollectionWidgetOption=function(){this._areRadiosCreated.done(this._setWidgetOption.bind(this,"_radios",arguments))},n._updateItemsSize=function(){if("horizontal"===this.option("layout"))this.itemElements().css("height","auto");else{var e=this.option("items").length;this.itemElements().css("height",100/e+"%")}},n.focus=function(){var e;null===(e=this._radios)||void 0===e||e.focus()},n.itemElements=function(){var e;return null===(e=this._radios)||void 0===e?void 0:e.itemElements()},t}(c.default);y.include(d.default),(0,l.default)("dxRadioGroup",y);var x=y;t.default=x,e.exports=t.default,e.exports.default=t.default},36992:function(e,t,n){t.default=void 0;var i=n(58664),o=f(n(68374)),a=f(n(55994)),r=f(n(97834)),s=f(n(6320)),l=f(n(99393)),u=n(13306),d=n(20576),c=n(39611),h=f(n(28109));function f(e){return e&&e.__esModule?e:{default:e}}var p="dx-rangeslider-start-handle",g=r.default.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e,n){t.option("start")===t.option("end")&&(t._capturedHandle=n,e.target=t._capturedHandle,a.default.trigger(t._capturedHandle,"focus"))},i=function(n,i,a){var r=(0,o.default)(n.target).hasClass(p)?"start":"end",s=t.option(r);i=t._valueStep(i),s+=a*(e?-i:i),t.option(r,s)},r=function(o,a){n(o,e?t._$handleStart:t._$handleEnd),i(o,a,1)},s=function(o,a){n(o,e?t._$handleEnd:t._$handleStart),i(o,a,-1)};return(0,u.extend)(this.callBase(),{leftArrow:function(e){this._processKeyboardEvent(e),s(e,this.option("step"))},rightArrow:function(e){this._processKeyboardEvent(e),r(e,this.option("step"))},pageUp:function(e){this._processKeyboardEvent(e),r(e,this.option("step")*this.option("keyStep"))},pageDown:function(e){this._processKeyboardEvent(e),s(e,this.option("step")*this.option("keyStep"))},home:function(e){this._processKeyboardEvent(e);var t=(0,o.default)(e.target).hasClass(p),n=t?"start":"end",i=t?"min":"start",a=this.option(i);this.option(n,a)},end:function(e){this._processKeyboardEvent(e);var t=(0,o.default)(e.target).hasClass(p),n=t?"start":"end",i=t?"end":"max",a=this.option(i);this.option(n,a)}})},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{start:40,end:60,value:[40,60],startName:"",endName:""})},_renderSubmitElement:function(){var e=this.$element();this._$submitStartElement=(0,o.default)("<input>").attr("type","hidden").attr("name",this.option("startName")).appendTo(e),this._$submitEndElement=(0,o.default)("<input>").attr("type","hidden").attr("name",this.option("endName")).appendTo(e)},_initOptions:function(e){this.callBase(e);var t=this.initialOption("value"),n=this.option("value");n[0]===t[0]&&n[1]===t[1]?this.option("value",[this.option("start"),this.option("end")]):this.option({start:n[0],end:n[1]})},_initMarkup:function(){this.$element().addClass("dx-rangeslider"),this.callBase()},_renderContentImpl:function(){this._callHandlerMethod("repaint"),this.callBase()},_renderHandle:function(){this._$handleStart=this._renderHandleImpl(this.option("start"),this._$handleStart).addClass(p),this._$handleEnd=this._renderHandleImpl(this.option("end"),this._$handleEnd).addClass("dx-rangeslider-end-handle"),this._updateHandleAriaLabels()},_startHandler:function(e){var t=e.event,n=this._$range,o=(0,i.getWidth)(n),a=(0,c.eventData)(t).x-this._$bar.offset().left,r=n.position().left,s=n.position().left+o,l=(this.option("rtlEnabled")?-1:1)*((r+s)/2-a)>0;this._capturedHandle=l?this._$handleStart:this._$handleEnd,this.callBase(e)},_updateHandleAriaLabels:function(){this.setAria("label",h.default.getFormatter("dxRangeSlider-ariaFrom")(this.option("dxRangeSlider-ariaFrom")),this._$handleStart),this.setAria("label",h.default.getFormatter("dxRangeSlider-ariaTill")(this.option("dxRangeSlider-ariaTill")),this._$handleEnd)},_activeHandle:function(){return this._capturedHandle},_updateHandlePosition:function(e){var t=this.option("rtlEnabled")?-1:1,n=this.option("max"),i=this.option("min"),o=this._startOffset+t*e.event.offset/this._swipePixelRatio(),r=(o=o.toPrecision(12))*(n-i)+i;this._updateSelectedRangePosition(o,o),s.default.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(o);var l,u=this.option("start"),d=this.option("end");u===d&&(l=r<u?this._$handleStart:this._$handleEnd,a.default.trigger(l,"focus"),l&&l!==this._capturedHandle&&(this._updateSelectedRangePosition((u-i)/(n-i),(d-i)/(n-i)),this._toggleActiveState(this._activeHandle(),!1),this._toggleActiveState(l,!0),this._capturedHandle=l),this._updateSelectedRangePosition(o,o),this._changeValueOnSwipe(o))},_updateSelectedRangePosition:function(e,t){var n=this.option("rtlEnabled"),i=this._capturedHandle===this._$handleStart&&n||this._capturedHandle===this._$handleEnd&&!n,o=i?"right":"left";n^i?this._$range.css(o,100-100*t+"%"):this._$range.css(o,100*e+"%")},_setValueOnSwipe:function(e){var t=this._capturedHandle===this._$handleStart?"start":"end",n=this.option("start"),i=this.option("end"),o=this.option("max"),a=this.option("min");n=Math.min(Math.max(n,a),o),i=Math.min(Math.max(i,a),o),"start"===t?n=e>i?i:e:i=e<n?n:e,this.option("value",[n,i])},_renderValue:function(){var e=this.option("start"),t=this.option("end"),n=this.option("min"),i=this.option("max"),o=this.option("rtlEnabled");e=Math.max(n,Math.min(e,i)),t=Math.max(e,Math.min(t,i)),this._setOptionWithoutOptionChange("start",e),this._setOptionWithoutOptionChange("end",t),this._setOptionWithoutOptionChange("value",[e,t]),this._$submitStartElement.val((0,d.applyServerDecimalSeparator)(e)),this._$submitEndElement.val((0,d.applyServerDecimalSeparator)(t));var a=i===n?0:(t-n)/(i-n),r=parseFloat((100*(i===n?0:(e-n)/(i-n))).toPrecision(12))+"%",l=parseFloat((100*(1-a)).toPrecision(12))+"%";!this._needPreventAnimation&&this._setRangeStyles({right:o?r:l,left:o?l:r}),s.default.getInstance(this._$handleStart).option("value",e),s.default.getInstance(this._$handleEnd).option("value",t)},_callHandlerMethod:function(e,t){s.default.getInstance(this._$handleStart)[e](t),s.default.getInstance(this._$handleEnd)[e](t)},_setValueOption:function(){var e=this.option("start"),t=this.option("end");this.option("value",[e,t])},_optionChanged:function(e){switch(e.name){case"value":if(e.value[0]===e.previousValue[0]&&e.value[1]===e.previousValue[1])break;this._setOptionWithoutOptionChange("start",e.value[0]),this._setOptionWithoutOptionChange("end",e.value[1]),this._renderValue();var t=this.option("start"),n=this.option("end");this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})({start:t,end:n,value:[t,n],event:this._valueChangeEventInstance}),this.validationRequest.fire({value:[t,n],editor:this}),this._saveValueChangeEvent(void 0);break;case"start":case"end":this._setValueOption();break;case"startName":this._$submitStartElement.attr("name",e.value);break;case"endName":this._$submitEndElement.attr("name",e.value);break;case"name":break;default:this.callBase(e)}}});(0,l.default)("dxRangeSlider",g);var m=g;t.default=m,e.exports=t.default,e.exports.default=t.default},46743:function(e,t,n){t.default=void 0;var i=n(58664),o=n(31648),a=x(n(99393)),r=x(n(13046)),s=x(n(68374)),l=n(89386),u=n(20576),d=n(13306),c=n(95479),h=n(60810),f=n(35922),p=n(58201),g=x(n(55994)),m=n(23174),_=n(37518),v=n(39611),y=n(80506);function x(e){return e&&e.__esModule?e:{default:e}}var b="dxResizable",w=(0,v.addNamespace)(m.start,b),C=(0,v.addNamespace)(m.move,b),S=(0,v.addNamespace)(m.end,b),k={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},D=r.default.inherit({_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0})},_init:function(){this.callBase(),this.$element().addClass("dx-resizable")},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var e=this;this._handles=[];var t=this.option("handles");if("none"!==t){var n="all"===t?["top","bottom","left","right"]:t.split(" ");(0,c.each)(n,(function(t,n){e._renderHandle(n)})),(0,l.inArray)("bottom",n)+1&&(0,l.inArray)("right",n)+1&&this._renderHandle("corner-bottom-right"),(0,l.inArray)("bottom",n)+1&&(0,l.inArray)("left",n)+1&&this._renderHandle("corner-bottom-left"),(0,l.inArray)("top",n)+1&&(0,l.inArray)("right",n)+1&&this._renderHandle("corner-top-right"),(0,l.inArray)("top",n)+1&&(0,l.inArray)("left",n)+1&&this._renderHandle("corner-top-left"),this._attachEventHandlers()}},_renderHandle:function(e){var t=(0,s.default)("<div>").addClass("dx-resizable-handle").addClass("dx-resizable-handle-"+e).appendTo(this.$element());this._handles.push(t)},_attachEventHandlers:function(){if(!this.option("disabled")){var e={};e[w]=this._dragStartHandler.bind(this),e[C]=this._dragHandler.bind(this),e[S]=this._dragEndHandler.bind(this),this._handles.forEach((function(t){g.default.on(t,e,{direction:"both",immediate:!0})}))}},_detachEventHandlers:function(){this._handles.forEach((function(e){g.default.off(e)}))},_toggleEventHandlers:function(e){e?this._attachEventHandlers():this._detachEventHandlers()},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))e.cancel=!0;else{this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=(0,o.locate)(t);var n=(0,_.getBoundingRect)(t.get(0));this._elementSize={width:n.width,height:n.height},this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null}},_toggleResizingClass:function(e){this.$element().toggleClass("dx-resizable-resizing",e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=(0,s.default)(e.target).closest(".dx-resizable-handle"),o=(0,i.getOuterWidth)(n),a=(0,i.getOuterHeight)(n),r=n.offset(),l=t.offset,u=this._getAreaScrollOffset();e.maxLeftOffset=r.left-l.left-u.scrollX,e.maxRightOffset=l.left+t.width-r.left-o+u.scrollX,e.maxTopOffset=r.top-l.top-u.scrollY,e.maxBottomOffset=l.top+t.height-r.top-a+u.scrollY}},_getBorderWidth:function(e,t){if((0,f.isWindow)(e.get(0)))return 0;var n=e.css(k[t]);return parseInt(n)||0},_dragHandler:function(e){var t=this.$element(),n=this._movingSides,i=this._elementLocation,a=this._elementSize,r=this._getOffset(e),s=a.width+r.x*(n.left?-1:1),l=a.height+r.y*(n.top?-1:1);(r.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(s),(r.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(l);var u=(0,_.getBoundingRect)(t.get(0)),d=r.y-((u.height||l)-l),c=r.x-((u.width||s)-s);(0,o.move)(t,{top:i.top+(n.top?d:0),left:i.left+(n.left?c:0)}),this._resizeAction({event:e,width:this.option("width")||s,height:this.option("height")||l,handles:this._movingSides}),(0,y.triggerResizeEvent)(t)},_getOffset:function(e){var t=e.offset,n=(0,u.pairToObject)(this.option("step"),!this.option("roundStepValue")),i=this._getMovingSides(e),o="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),o?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,o=this._elementSize,a=n.left?i.left:i.left+o.width,r=n.top?i.top:i.top+o.height,s=(a+e.x)%t.h,l=(r+e.y)%t.v,u=Math.sign||function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},d=function(e,t){return(1+.2*u(t))%1*e},c=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,f=e.y-l;return s>d(t.h,e.x)&&(h+=t.h),l>d(t.v,e.y)&&(f+=t.v),{x:!n.left&&!n.right||c(e.x,t.h)?0:h,y:!n.top&&!n.bottom||c(e.y,t.v)?0:f}},_getMovingSides:function(e){var t=(0,s.default)(e.target),n=t.hasClass("dx-resizable-handle-corner-top-left"),i=t.hasClass("dx-resizable-handle-corner-top-right"),o=t.hasClass("dx-resizable-handle-corner-bottom-left"),a=t.hasClass("dx-resizable-handle-corner-bottom-right");return{top:t.hasClass("dx-resizable-handle-top")||n||i,left:t.hasClass("dx-resizable-handle-left")||n||o,bottom:t.hasClass("dx-resizable-handle-bottom")||o||a,right:t.hasClass("dx-resizable-handle-right")||i||a}},_getArea:function(){var e=this.option("area");return(0,f.isFunction)(e)&&(e=e.call(this)),(0,f.isPlainObject)(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaScrollOffset:function(){var e=this.option("area"),t={scrollY:0,scrollX:0};if(!(0,f.isFunction)(e)&&!(0,f.isPlainObject)(e)){var n=(0,s.default)(e)[0];(0,f.isWindow)(n)&&(t.scrollX=n.pageXOffset,t.scrollY=n.pageYOffset)}return t},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,n=(0,s.default)(e);return n.length&&(t={width:(0,i.getInnerWidth)(n),height:(0,i.getInnerHeight)(n),offset:(0,d.extend)({top:0,left:0},(0,f.isWindow)(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,o=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.$element(),"left"),e.offset.top+=o+this._getBorderWidth(this.$element(),"top"),e.width-=(0,i.getOuterWidth)(this.$element())-(0,i.getInnerWidth)(this.$element()),e.height-=(0,i.getOuterHeight)(this.$element())-(0,i.getInnerHeight)(this.$element())},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:(0,i.getOuterWidth)(t),height:(0,i.getOuterHeight)(t),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",(0,h.fitIntoRange)(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",(0,h.fitIntoRange)(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleEventHandlers(!e.value),this.callBase(e);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":(0,p.hasWindow)()&&this._renderWidth((0,i.getOuterWidth)(this.$element()));break;case"minHeight":case"maxHeight":(0,p.hasWindow)()&&this._renderHeight((0,i.getOuterHeight)(this.$element()));break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":break;default:this.callBase(e)}},_clean:function(){this.$element().find(".dx-resizable-handle").remove()},_useTemplates:function(){return!1}});(0,a.default)(b,D);var I=D;t.default=I,e.exports=t.default,e.exports.default=t.default},21643:function(e,t,n){t.default=void 0;var i=n(58664),o=g(n(68374)),a=g(n(55994)),r=n(20576),s=n(35922),l=g(n(96688)),u=n(58201),d=n(95479),c=n(13306),h=g(n(99393)),f=g(n(55551)),p=g(n(11050));function g(e){return e&&e.__esModule?e:{default:e}}var m=(0,u.getWindow)(),_="dx-responsivebox-screen-",v="dxBoxItemData",y=p.default.inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0,_layoutStrategy:void 0})},_init:function(){this.option("screenByWidth")||this._options.silent("screenByWidth",u.defaultScreenFactorFunc),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return"dx-box-item"},_itemDataKey:function(){return v},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-responsivebox"),this._updateRootBox()},_updateRootBox:function(){clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){this._$root&&a.default.triggerHandler(this._$root,"dxupdate")}.bind(this))},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged:function(e){var t=this._findItemElementByItem(e);t.length&&(this._refreshItem(t,e),this._clearItemNodeTemplates(),this._update(!0))},_setScreenSize:function(){var e=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(_+e),this.option("currentScreenFactor",e)},_removeScreenSizeClass:function(){var e=this.option("currentScreenFactor");e&&this.$element().removeClass(_+e)},_prepareGrid:function(){var e=this._grid=[];this._prepareRowsAndCols(),(0,d.each)(this._rows,function(){var t=[];e.push(t),(0,d.each)(this._cols,function(){t.push(this._createEmptyCell())}.bind(this))}.bind(this))},getSingleColumnRows:function(){var e=this.option("rows"),t=this._screenItems.length;if(e.length){for(var n=this._filterByScreen(e),i=[],o=0;o<t;o++){var a=this._defaultSizeConfig();o<n.length&&(0,s.isDefined)(n[o].shrink)&&(a.shrink=n[o].shrink),i.push(a)}return i}return this._defaultSizeConfig(t)},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this.getSingleColumnRows(),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen:function(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems:function(){this._screenItems.sort((function(e,t){return e.location.row-t.location.row||e.location.col-t.location.col})),(0,d.each)(this._screenItems,(function(e,t){(0,c.extend)(t.location,{row:e,col:0,rowspan:1,colspan:1})}))},_sizesByScreen:function(e){return(0,d.map)(this._filterByScreen(e),function(e){return(0,c.extend)(this._defaultSizeConfig(),e)}.bind(this))},_createDefaultSizeConfig:function(){return{ratio:1,baseSize:0,minSize:0,maxSize:0}},_defaultSizeConfig:function(e){var t=this._createDefaultSizeConfig();if(!arguments.length)return t;for(var n=[],i=0;i<e;i++)n.push(t);return n},_filterByScreen:function(e){var t=this._screenRegExp();return(0,r.grep)(e,(function(e){return!e.screen||t.test(e.screen)}))},_screenRegExp:function(){var e=this._getCurrentScreen();return new RegExp("(^|\\s)"+e+"($|\\s)","i")},_getCurrentScreen:function(){var e=this._screenWidth();return this.option("screenByWidth")(e)},_screenWidth:function(){return(0,u.hasWindow)()?(0,i.getWidth)(m):1920},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){(0,d.each)(this._screenItems,function(e,t){var n=t.location||{},i=n.col,o=n.row,a=this._grid[o],r=a&&a[i];this._occupyCells(r,t)}.bind(this))},_itemsByScreen:function(){var e=this;return this.option("items").reduce((function(t,n){var i=n.location||{};return i=(0,s.isPlainObject)(i)?[i]:i,e._filterByScreen(i).forEach((function(e){t.push({item:n,location:(0,c.extend)({rowspan:1,colspan:1},e)})})),t}),[])},_occupyCells:function(e,t){e&&!this._isItemCellOccupied(e,t)&&((0,c.extend)(e,t),this._markSpanningCell(e))},_isItemCellOccupied:function(e,t){if(!(0,s.isEmptyObject)(e.item))return!0;var n=!1;return this._loopOverSpanning(t.location,(function(e){n=n||!(0,s.isEmptyObject)(e.item)})),n},_loopOverSpanning:function(e,t){var n=e.row+e.rowspan-1,i=e.col+e.colspan-1,o=Math.min(n,this._rows.length-1),a=Math.min(i,this._cols.length-1);e.rowspan-=n-o,e.colspan-=i-a;for(var r=e.row;r<=o;r++)for(var s=e.col;s<=a;s++)r===e.row&&s===e.col||t(this._grid[r][s])},_markSpanningCell:function(e){this._loopOverSpanning(e.location,(function(t){(0,c.extend)(t,{item:e.item,spanningCell:e})}))},_linkNodeToItem:function(){(0,d.each)(this._itemElements(),(function(e,t){var n=(0,o.default)(t),i=n.data(v);i.box||(i.node=n.children())}))},_layoutItems:function(){var e=this._grid.length,t=e&&this._grid[0].length;if(e||t){var n=this._layoutBlock({direction:"col",row:{start:0,end:e-1},col:{start:0,end:t-1}}),i=this._prepareBoxConfig(n.box||{direction:"row",items:[(0,c.extend)(n,{ratio:1})]});(0,c.extend)(i,this._rootBoxConfig(i.items)),this._$root=(0,o.default)("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,f.default,i)}},_rootBoxConfig:function(e){var t=(0,d.each)(e,function(e,t){this._needApplyAutoBaseSize(t)&&(0,c.extend)(t,{baseSize:"auto"})}.bind(this));return(0,c.extend)({width:"100%",height:"100%",items:t,itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")},{_layoutStrategy:this.option("_layoutStrategy")})},_needApplyAutoBaseSize:function(e){return!(e.baseSize||e.minSize&&"auto"!==e.minSize||e.maxSize&&"auto"!==e.maxSize)},_prepareBoxConfig:function(e){return(0,c.extend)(e||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(e){return this._isSingleItem(e)?this._itemByCell(e.row.start,e.col.start):this._layoutDirection(e)},_isSingleItem:function(e){var t=this._grid[e.row.start][e.col.start].location,n=e.row.end-e.row.start==t.rowspan-1,i=e.col.end-e.col.start==t.colspan-1;return n&&i},_itemByCell:function(e,t){var n=this._grid[e][t];return n.spanningCell?null:n.item},_layoutDirection:function(e){for(var t,n=[],i=e.direction,o=this._crossDirection(i);t=this._nextBlock(e);){if(this._isBlockIndivisible(e.prevBlockOptions,t))throw l.default.Error("E1025");var a=this._layoutBlock({direction:o,row:t.row,col:t.col,prevBlockOptions:e});a&&((0,c.extend)(a,this._blockSize(t,o)),n.push(a)),e[o].start=t[o].end+1}return{box:this._prepareBoxConfig({direction:i,items:n})}},_isBlockIndivisible:function(e,t){return e&&e.col.start===t.col.start&&e.col.end===t.col.end&&e.row.start===t.row.start&&e.row.end===t.row.end},_crossDirection:function(e){return"col"===e?"row":"col"},_nextBlock:function(e){var t=e.direction,n=this._crossDirection(t),i=e[t].start,o=e[t].end,a=e[n].start;if(a>e[n].end)return null;for(var r=1,s=a;s<a+r;s++){for(var l=1,u=i;u<=o;u++){var d=this._cellByDirection(t,u,s);l=Math.max(l,d.location[n+"span"])}var c=s+l,h=a+r;c>h&&(r+=c-h)}var f={};return f[t]={start:i,end:o},f[n]={start:a,end:a+r-1},f},_cellByDirection:function(e,t,n){return"col"===e?this._grid[n][t]:this._grid[t][n]},_blockSize:function(e,t){for(var n="row"===t?"auto":0,i="row"===t?this._rows:this._cols,o=(0,c.extend)(this._createDefaultSizeConfig(),{ratio:0}),a=e[t].start;a<=e[t].end;a++){var r=i[a];o.ratio+=r.ratio,o.baseSize+=r.baseSize,o.minSize+=r.minSize,o.maxSize+=r.maxSize,(0,s.isDefined)(r.shrink)&&(o.shrink=r.shrink)}return o.minSize=o.minSize?o.minSize:n,o.maxSize=o.maxSize?o.maxSize:"auto",this._isSingleColumnScreen()&&(o.baseSize="auto"),o},_update:function(e){var t=this._$root;this._renderItems(),t&&(e?t.remove():(t.detach(),this._saveAssistantRoot(t))),this._layoutChangedAction(),this._updateRootBox()},_saveAssistantRoot:function(e){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(e)},_dispose:function(){clearTimeout(this._updateTimer),this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&(0,d.each)(this._assistantRoots,(function(e,t){(0,o.default)(t).remove()}))},_clearItemNodeTemplates:function(){(0,d.each)(this.option("items"),(function(){delete this.node}))},_toggleVisibility:function(e){this.callBase(e),e&&this._updateRootBox()},_attachClickEvent:r.noop,_optionChanged:function(e){switch(e.name){case"rows":case"cols":case"screenByWidth":case"_layoutStrategy":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(e),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(e);break;case"currentScreenFactor":break;default:this.callBase(e)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});(0,h.default)("dxResponsiveBox",y);var x=y;t.default=x,e.exports=t.default,e.exports.default=t.default},9508:function(e,t,n){var i;t.default=void 0;var o=((i=n(98230))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},5480:function(e,t,n){t.default=t.createAppointmentAdapter=void 0;var i,o=n(13306),a=(i=n(96688))&&i.__esModule?i:{default:i},r=n(48013),s=n(88609),l=n(86474);function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var d="startDate",c="endDate",h="allDay",f="text",p="description",g="recurrenceRule",m="recurrenceException",_=function(){function e(e,t,n,i){this.rawAppointment=e,this.dataAccessors=t,this.timeZoneCalculator=n,this.options=i}var t,n,i=e.prototype;return i.getField=function(e){return l.ExpressionUtils.getField(this.dataAccessors,e,this.rawAppointment)},i.setField=function(e,t){return l.ExpressionUtils.setField(this.dataAccessors,e,this.rawAppointment,t)},i.calculateStartDate=function(e){if(!this.startDate||isNaN(this.startDate.getTime()))throw a.default.Error("E1032",this.text);return this.calculateDate(this.startDate,this.startDateTimeZone,e)},i.calculateEndDate=function(e){return this.calculateDate(this.endDate,this.endDateTimeZone,e)},i.calculateDate=function(e,t,n){if(e)return this.timeZoneCalculator.createDate(e,{appointmentTimeZone:t,path:n})},i.clone=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=new e((0,r.deepExtendArraySafe)({},this.rawAppointment),this.dataAccessors,this.timeZoneCalculator,t);return null!=t&&t.pathTimeZone&&(n.startDate=n.calculateStartDate(t.pathTimeZone),n.endDate=n.calculateEndDate(t.pathTimeZone)),n},i.source=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e){var t=this.clone();return t.startDate=this.startDate,t.endDate=this.endDate,t.source()}return(0,o.extend)({},this.rawAppointment)},t=e,(n=[{key:"duration",get:function(){return this.endDate?this.endDate-this.startDate:0}},{key:"startDate",get:function(){var e=this.getField(d);return void 0===e?e:new Date(e)},set:function(e){this.setField(d,e)}},{key:"endDate",get:function(){var e=this.getField(c);return void 0===e?e:new Date(e)},set:function(e){this.setField(c,e)}},{key:"allDay",get:function(){return this.getField(h)},set:function(e){this.setField(h,e)}},{key:"text",get:function(){return this.getField(f)},set:function(e){this.setField(f,e)}},{key:"description",get:function(){return this.getField(p)},set:function(e){this.setField(p,e)}},{key:"startDateTimeZone",get:function(){return this.getField("startDateTimeZone")}},{key:"endDateTimeZone",get:function(){return this.getField("endDateTimeZone")}},{key:"recurrenceRule",get:function(){return this.getField(g)},set:function(e){this.setField(g,e)}},{key:"recurrenceException",get:function(){return this.getField(m)},set:function(e){this.setField(m,e)}},{key:"disabled",get:function(){return!!this.getField("disabled")}},{key:"isRecurrent",get:function(){return(0,s.getRecurrenceProcessor)().isValidRecurrenceRule(this.recurrenceRule)}}])&&u(t.prototype,n),e}(),v=_;t.default=v,t.createAppointmentAdapter=function(e,t,n,i){return new _(e,t,n,i)}},56504:function(e,t,n){t.default=void 0;var i=s(n(68374)),o=s(n(42160)),a=n(13306),r=n(27728);function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e){this.scheduler=e,this.appointments=e._appointments,this.initialPosition={left:0,top:0},this.appointmentInfo=null}var t=e.prototype;return t.isAllDay=function(e){return e.data("dxAppointmentSettings").allDay},t.onDragStart=function(e){var t=e.itemSettings,n=e.itemData,i=e.initialPosition;this.initialPosition=i,this.appointmentInfo={appointment:n,settings:t},this.appointments.notifyObserver("hideAppointmentTooltip")},t.onDragMove=function(e){e.fromComponent!==e.toComponent&&this.appointments.notifyObserver("removeDroppableCellClass")},t.getAppointmentElement=function(e){var t=e.event.data&&e.event.data.itemElement||e.itemElement;return(0,i.default)(t)},t.onDragEnd=function(e){var t=this.getAppointmentElement(e),n=this.appointments._getItemData(t);this.appointments._getAppointmentContainer(this.isAllDay(t)).append(t),this.appointments.notifyObserver("updateAppointmentAfterDrag",{event:e,element:t,rawAppointment:n,coordinates:this.initialPosition})},t.getItemData=function(e){var t=(0,i.default)(e).data(r.LIST_ITEM_DATA_KEY),n=null==t?void 0:t.appointment,o=this.appointments._getItemData(e);return n||o},t.getItemSettings=function(e){var t=(0,i.default)(e).data(r.LIST_ITEM_DATA_KEY);return t&&t.settings||[]},t.createDragStartHandler=function(e,t){var n=this;return function(i){i.itemData=n.getItemData(i.itemElement),i.itemSettings=n.getItemSettings(i.itemElement),t.onDragStart&&t.onDragStart(i),i.cancel||e.onDragStart(i)}},t.createDragMoveHandler=function(e,t){return function(n){t.onDragMove&&t.onDragMove(n),n.cancel||e.onDragMove(n)}},t.createDragEndHandler=function(e,t){var n=this;return function(i){n.appointmentInfo=null,t.onDragEnd&&t.onDragEnd(i),i.cancel||(e.onDragEnd(i),i.fromComponent!==i.toComponent&&t.onRemove&&t.onRemove(i))}},t.createDropHandler=function(e){var t=this;return function(n){var i=t.appointments.invoke("getUpdatedData",n.itemData);n.itemData=(0,a.extend)({},n.itemData,i),n.fromComponent!==n.toComponent&&e.onAdd&&e.onAdd(n)}},t.addTo=function(e,t){var n=this.scheduler.option("appointmentDragging")||{},i=(0,a.extend)({component:this.scheduler,contentTemplate:null,filter:".".concat("dx-scheduler-appointment"),immediate:!1,onDragStart:this.onDragStart.bind(this),onDragMove:this.onDragMove.bind(this),onDragEnd:this.onDragEnd.bind(this)},t);this.appointments._createComponent(e,o.default,(0,a.extend)({},i,n,{onDragStart:this.createDragStartHandler(i,n),onDragMove:this.createDragMoveHandler(i,n),onDragEnd:this.createDragEndHandler(i,n),onDrop:this.createDropHandler(n)}))},t.updateDragSource=function(e,t){var n=this.appointmentInfo;if(n||e){var i=e||n.appointment,o=t||n.settings;this.appointments._setDragSourceAppointment(i,o)}},e}();t.default=l,e.exports=t.default,e.exports.default=t.default},25062:function(e,t,n){t.AppointmentForm=t.APPOINTMENT_FORM_GROUP_NAMES=void 0;var i=f(n(68374)),o=f(n(17737)),a=f(n(69434)),r=f(n(28109)),s=f(n(20530)),l=f(n(33546)),u=f(n(51690)),d=n(13306),c=f(n(91198)),h=n(47367);function f(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(53555),n(51237),n(31362),n(31609),n(78665);var v={Main:"mainGroup",Recurrence:"recurrenceGroup"};t.APPOINTMENT_FORM_GROUP_NAMES=v;var y=function(e,t,n,i,o){return{editorType:"dxDateBox",dataField:e,colSpan:t,label:{text:r.default.format(i)},validationRules:[{type:"required"}],editorOptions:{width:"100%",calendarOptions:{firstDayOfWeek:n},onValueChanged:o,useMaskBehavior:!0}}},x=function(){function e(e){this.scheduler=e,this.form=null,this.semaphore=new h.Semaphore}var t,n,f=e.prototype;return f.create=function(e,t,n){var a=this.scheduler.getEditingConfig().allowTimeZoneEditing,r=this.scheduler.getDataAccessors().expr,l=!!n[r.recurrenceRuleExpr],u=l?1:2,d=[].concat(g(this._createMainItems(r,e,t,a)),g(this.scheduler.createResourceEditorModel()));t(l);var c=[{itemType:"group",name:v.Main,colCountByScreen:{lg:2,xs:1},colSpan:u,items:d},{itemType:"group",name:v.Recurrence,visible:l,colSpan:u,items:this._createRecurrenceEditor(r)}],h=(0,i.default)("<div>");this.form=this.scheduler.createComponent(h,o.default,{items:c,showValidationSummary:!0,scrollingEnabled:!0,colCount:"auto",colCountByScreen:{lg:2,xs:1},formData:n,showColonAfterLabel:!1,labelLocation:"top",screenByWidth:function(e){return e<600||"desktop"!==s.default.current().deviceType?"xs":"lg"}})},f._dateBoxValueChanged=function(e,t,n){!function(e,t,n){null!==t&&!t&&(null===n||n)&&e.option("value",n)}(e.component,e.value,e.previousValue);var i=a.default.deserializeDate(e.value),o=a.default.deserializeDate(e.previousValue),r=this.form.getEditor(t),s=a.default.deserializeDate(r.option("value"));if(this.semaphore.isFree()&&s&&i&&n(s,i)){var l=o?s.getTime()-o.getTime():0;r.option("value",new Date(i.getTime()+l))}},f._createTimezoneEditor=function(e,t,n,i,o){var a=this,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=r.default.format("dxScheduler-noTimezoneTitle");return{dataField:e,editorType:"dxSelectBox",visibleIndex:n,colSpan:i,label:{text:" "},editorOptions:{displayExpr:"title",valueExpr:"id",placeholder:l,searchEnabled:!0,onValueChanged:function(e){var n=a.form.getEditor(t);o&&n.option("value",e.value)}},visible:s}},f._createDateBoxItems=function(e,t){var n=this,i=t?2:1,o=this.scheduler.getFirstDayOfWeek();return[y(e.startDateExpr,i,o,"dxScheduler-editorLabelStartDate",(function(t){n._dateBoxValueChanged(t,e.endDateExpr,(function(e,t){return e<t}))})),this._createTimezoneEditor(e.startDateTimeZoneExpr,e.endDateTimeZoneExpr,1,i,!0,t),y(e.endDateExpr,i,o,"dxScheduler-editorLabelEndDate",(function(t){n._dateBoxValueChanged(t,e.startDateExpr,(function(e,t){return t<e}))})),this._createTimezoneEditor(e.endDateTimeZoneExpr,e.startDateTimeZoneExpr,3,i,!1,t)]},f._changeFormItemDateType=function(e,t){var n=p({},this.form.itemOption(e).editorOptions,{type:t?"date":"datetime"});this.form.itemOption(e,"editorOptions",n)},f._createMainItems=function(e,t,n,i){var o=this;return[{dataField:e.textExpr,editorType:"dxTextBox",colSpan:2,label:{text:r.default.format("dxScheduler-editorLabelTitle")}},{itemType:"group",colSpan:2,colCountByScreen:{lg:2,xs:1},items:this._createDateBoxItems(e,i)},{itemType:"group",colCountByScreen:{lg:3,xs:3},colSpan:2,items:[{dataField:e.allDayExpr,cssClass:"dx-appointment-form-switch",editorType:"dxSwitch",label:{text:r.default.format("dxScheduler-allDay"),location:"right"},editorOptions:{onValueChanged:function(t){var n=t.value,i=o.form.getEditor(e.startDateExpr),r=o.form.getEditor(e.endDateExpr),s=a.default.deserializeDate(i.option("value"));if(o.semaphore.isFree()&&s)if(n){var l=c.default.trimTime(s);i.option("value",new Date(l)),r.option("value",new Date(l))}else{var u=function(e,t){return new Date(new Date(e).setHours(t))}(s,o.scheduler.getStartDayHour()),d=o.scheduler.getCalculatedEndDate(u);i.option("value",u),r.option("value",d)}var h="".concat(v.Main,".").concat(e.startDateExpr),f="".concat(v.Main,".").concat(e.endDateExpr);o._changeFormItemDateType(h,n),o._changeFormItemDateType(f,n)}}},{editorType:"dxSwitch",dataField:"repeat",cssClass:"dx-appointment-form-switch",name:"visibilityChanged",label:{text:r.default.format("dxScheduler-editorLabelRecurrence"),location:"right"},editorOptions:{onValueChanged:function(i){var a=o.form,r=i.value?1:2;a.itemOption(v.Main,"colSpan",r),a.itemOption(v.Recurrence,"colSpan",r),function(e,t,n){var i;n.itemOption(v.Recurrence,"visible",t),!t&&n.updateData(e,""),null===(i=n.getEditor(e))||void 0===i||i.changeValueByVisibility(t)}(e.recurrenceRuleExpr,i.value,a),n(i.value),t()}}}]},{itemType:"empty",colSpan:2},{dataField:e.descriptionExpr,editorType:"dxTextArea",colSpan:2,label:{text:r.default.format("dxScheduler-editorLabelDescription")}},{itemType:"empty",colSpan:2}]},f._createRecurrenceEditor=function(e){return[{dataField:e.recurrenceRuleExpr,editorType:"dxRecurrenceEditor",editorOptions:{firstDayOfWeek:this.scheduler.getFirstDayOfWeek()},label:{text:" ",visible:!1}}]},f.setEditorsType=function(e){var t=this.scheduler.getDataAccessors().expr,n=t.startDateExpr,i=t.endDateExpr,o="".concat(v.Main,".").concat(n),a="".concat(v.Recurrence,".").concat(i),r=this.form.itemOption(o),s=this.form.itemOption(a);if(r&&s){var l=r.editorOptions,u=s.editorOptions;l.type=u.type=e?"date":"datetime",this.form.itemOption(o,"editorOptions",l),this.form.itemOption(a,"editorOptions",u)}},f.updateTimeZoneEditorDataSource=function(e,t){var n={dataSource:new l.default({store:u.default.getDisplayedTimeZones(e),paginate:!0,pageSize:10})};this.setEditorOptions(t,"Main",n)},f.updateRecurrenceEditorStartDate=function(e,t){var n={startDate:e};this.setEditorOptions(t,"Recurrence",n)},f.setEditorOptions=function(e,t,n){var i="".concat(v.groupName,".").concat(e),o=this.form.itemOption(i);o&&this.form.itemOption(i,"editorOptions",(0,d.extend)({},o.editorOptions,n))},f.updateFormData=function(e){this.semaphore.take();var t=this.scheduler.getDataAccessors().expr,n=e[t.allDayExpr],i=new Date(e[t.startDateExpr]),o=new Date(e[t.endDateExpr]);this.updateTimeZoneEditorDataSource(i,t.startDateTimeZoneExpr),this.updateTimeZoneEditorDataSource(o,t.endDateTimeZoneExpr),this.updateRecurrenceEditorStartDate(i,t.recurrenceRuleExpr),this.form.option("formData",e),this.setEditorsType(n),this.semaphore.release()},t=e,(n=[{key:"dxForm",get:function(){return this.form}},{key:"readOnly",set:function(e){this.form.option("readOnly",e);var t=this.scheduler.getDataAccessors().expr.recurrenceRuleExpr,n=this.form.getEditor(t);null==n||n.option("readOnly",e)}},{key:"formData",get:function(){return this.form.option("formData")},set:function(e){this.form.option("formData",e)}}])&&_(t.prototype,n),e}();t.AppointmentForm=x},39288:function(e,t,n){t.AppointmentPopup=t.ACTION_TO_APPOINTMENT=void 0;var i=n(58664),o=p(n(20530)),a=p(n(68374)),r=p(n(91198)),s=n(62754),l=n(58201),u=n(80506),d=p(n(28109)),c=p(n(39114)),h=n(71125),f=n(5480);function p(e){return e&&e.__esModule?e:{default:e}}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function m(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var _=r.default.dateToMilliseconds,v=function(){return"desktop"!==o.default.current().deviceType},y=350,x=500,b="after",w=_("day"),C={height:"auto",maxHeight:"100%",showCloseButton:!1,showTitle:!1,defaultOptionsRules:[{device:function(){return o.default.current().android},options:{showTitle:!1}}]},S={CREATE:0,UPDATE:1,EXCLUDE_FROM_SERIES:2};t.ACTION_TO_APPOINTMENT=S;var k=function(){function e(e,t){this.scheduler=e,this.form=t,this.popup=null,this.state={action:null,lastEditData:null,saveChangesLocker:!1,appointment:{data:null}}}var t,n,r=e.prototype;return r.show=function(e,t){if(this.state.appointment.data=e,this.state.action=t.action,this.state.excludeInfo=t.excludeInfo,!this.popup){var n=this._createPopupConfig();this.popup=this._createPopup(n)}this.popup.option("toolbarItems",this._createPopupToolbarItems(t.isToolbarVisible)),this.popup.show()},r.hide=function(){this.popup.hide()},r.dispose=function(){var e;null===(e=this.popup)||void 0===e||e.$element().remove()},r._createPopup=function(e){var t=(0,a.default)("<div>").addClass("dx-scheduler-appointment-popup").appendTo(this.scheduler.getElement());return this.scheduler.createComponent(t,c.default,e)},r._createPopupConfig=function(){var e=this;return g({},C,{onHiding:function(){return e.scheduler.focus()},contentTemplate:function(){return e._createPopupContent()},onShowing:function(t){return e._onShowing(t)},copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})},r._onShowing=function(e){var t=this;this._updateForm();var n={form:this.form.dxForm,popup:this.popup,appointmentData:this.state.appointment.data,cancel:!1};this.scheduler.getAppointmentFormOpening()(n),this.scheduler.processActionResult(n,(function(n){n?e.cancel=!0:t.updatePopupFullScreenMode()}))},r._createPopupContent=function(){return this._createForm(),this.form.dxForm.$element()},r._createFormData=function(e){var t=this._createAppointmentAdapter(e);return g({},e,this.scheduler.getResourcesFromItem(e),{repeat:!!t.recurrenceRule})},r._createForm=function(){var e=this.state.appointment.data,t=this._createFormData(e);this.form.create(this.triggerResize.bind(this),this.changeSize.bind(this),t)},r._isReadOnly=function(e){var t=this._createAppointmentAdapter(e);return!(!e||!t.disabled)||this.state.action!==S.CREATE&&!this.scheduler.getEditingConfig().allowUpdating},r._createAppointmentAdapter=function(e){return(0,f.createAppointmentAdapter)(e,this.scheduler.getDataAccessors(),this.scheduler.getTimeZoneCalculator())},r._updateForm=function(){var e=this.state.appointment.data,t=this._createAppointmentAdapter(this._createFormData(e));t.startDate&&(t.startDate=t.calculateStartDate("toAppointment")),t.endDate&&(t.endDate=t.calculateEndDate("toAppointment"));var n=t.source();this.form.readOnly=this._isReadOnly(n),this.form.updateFormData(n)},r._isPopupFullScreenNeeded=function(){var e=this._tryGetWindowWidth();return!!e&&(v()?e<x:e<1e3)},r._tryGetWindowWidth=function(){if((0,l.hasWindow)()){var e=(0,l.getWindow)();return(0,i.getWidth)(e)}},r.triggerResize=function(){this.popup&&(0,u.triggerResizeEvent)(this.popup.$element())},r._getMaxWidth=function(e){return v()?y:e?970:485},r.changeSize=function(e){var t=this._isPopupFullScreenNeeded();this.popup.option({fullScreen:t,maxWidth:t?"100%":this._getMaxWidth(e)})},r.updatePopupFullScreenMode=function(){if(this.form.dxForm){var e=this.form.formData[this.scheduler.getDataAccessors().expr.recurrenceRuleExpr];this.visible&&this.changeSize(e)}},r._createPopupToolbarItems=function(e){var t=this,n=[];return e&&n.push(g({},{shortcut:"done",options:{text:d.default.format("Done")},location:b},{onClick:function(e){return t._doneButtonClickHandler(e)}})),n.push({shortcut:"cancel",location:"ios"===o.default.current().platform?"before":b}),n},r.saveChangesAsync=function(e){var t=this,n=new s.Deferred,i=this.form.dxForm.validate();return e&&this._showLoadPanel(),(0,s.when)(i&&i.complete||i).done((function(e){if(e&&!e.isValid)return(0,h.hide)(),void n.resolve(!1);var i=t._createAppointmentAdapter(t.form.formData).clone({pathTimeZone:"fromAppointment"}).source();switch(delete i.repeat,t.state.action){case S.CREATE:t.scheduler.addAppointment(i).done(n.resolve);break;case S.UPDATE:t.scheduler.updateAppointment(t.state.appointment.data,i).done(n.resolve);break;case S.EXCLUDE_FROM_SERIES:t.scheduler.updateAppointment(t.state.excludeInfo.sourceAppointment,t.state.excludeInfo.updatedAppointment),t.scheduler.addAppointment(i).done(n.resolve)}n.done((function(){(0,h.hide)(),t.state.lastEditData=i}))})),n.promise()},r._doneButtonClickHandler=function(e){e.cancel=!0,this.saveEditDataAsync()},r.saveEditDataAsync=function(){var e=this,t=new s.Deferred;return this._tryLockSaveChanges()&&(0,s.when)(this.saveChangesAsync(!0)).done((function(){if(e.state.lastEditData){var n=e._createAppointmentAdapter(e.state.lastEditData),i=n.startDate,o=n.endDate,a=n.allDay,r=i.getTime(),s=o.getTime(),l=a||s-r>=w,u=e.scheduler.getResourcesFromItem(e.state.lastEditData);e.scheduler.updateScrollPosition(i,u,l),e.state.lastEditData=null}e._unlockSaveChanges(),t.resolve()})),t.promise()},r._showLoadPanel=function(){var e=this.popup.$overlayContent();(0,h.show)({container:e,position:{of:e},copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})},r._tryLockSaveChanges=function(){return!1===this.state.saveChangesLocker&&(this.state.saveChangesLocker=!0,!0)},r._unlockSaveChanges=function(){this.state.saveChangesLocker=!1},t=e,(n=[{key:"key",get:function(){return this.scheduler.getKey()}},{key:"visible",get:function(){return!!this.popup&&this.popup.option("visible")}}])&&m(t.prototype,n),e}();t.AppointmentPopup=k},99981:function(e,t,n){t.default=void 0;var i=n(20576),o=n(45835),a=n(1307),r=n(98140),s=n(69576),l=n(45985),u=n(17169);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var h=function(){function e(e){this.instance=e,this.appointmentViewModel=new a.AppointmentViewModelGenerator}var t,n,h=e.prototype;return h.getCellDimensions=function(e){if(this.instance._workSpace)return{width:this.instance._workSpace.getCellWidth(),height:this.instance._workSpace.getCellHeight(),allDayHeight:this.instance._workSpace.getAllDayHeight()}},h._getRenderingStrategyOptions=function(){var e=this.instance.getWorkSpace(),t=this.instance.key,n=this.instance.getWorkSpace().virtualScrollingDispatcher,i=n.cellCountInsideLeftVirtualCell,a=n.cellCountInsideTopVirtualRow,u=(0,r.getGroupCount)(this.instance.option("loadedResources")),d=e.getDOMElementsMetaData(),c=(0,s.getAllDayHeight)(e.option("showAllDayPanel"),e._isVerticalGroupedWorkSpace(),d),h=e._getRowCount(),f=e.positionHelper,p=e.viewDataProvider.getVisibleDayDuration(e.option("startDayHour"),e.option("endDayHour"),e.option("hoursInterval")),g=(0,l.getCellDuration)(e.type,e.option("startDayHour"),e.option("endDayHour"),e.option("hoursInterval"));return{resources:this.instance.option("resources"),loadedResources:this.instance.option("loadedResources"),getAppointmentColor:this.instance.createGetAppointmentColor(),dataAccessors:this.instance._dataAccessors,key:t,isRenovatedAppointments:this.modelProvider.isRenovatedAppointments,appointmentRenderingStrategyName:this.appointmentRenderingStrategyName,adaptivityEnabled:this.modelProvider.adaptivityEnabled,rtlEnabled:this.modelProvider.rtlEnabled,startDayHour:this.modelProvider.startDayHour,endDayHour:this.modelProvider.endDayHour,maxAppointmentsPerCell:this.modelProvider.maxAppointmentsPerCell,currentDate:this.modelProvider.currentDate,isVirtualScrolling:this.instance.isVirtualScrolling(),leftVirtualCellCount:i,topVirtualCellCount:a,intervalCount:e.option("intervalCount"),hoursInterval:e.option("hoursInterval"),showAllDayPanel:e.option("showAllDayPanel"),isGroupedAllDayPanel:e.isGroupedAllDayPanel(),modelGroups:this.modelProvider.getCurrentViewOption("groups"),groupCount:u,rowCount:h,appointmentCountPerCell:this.instance.option("_appointmentCountPerCell"),appointmentOffset:this.instance.option("_appointmentOffset"),allowResizing:this.instance._allowResizing(),allowAllDayResizing:this.instance._allowAllDayResizing(),startViewDate:e.getStartViewDate(),groupOrientation:e._getRealGroupOrientation(),cellWidth:(0,s.getCellWidth)(d),cellHeight:(0,s.getCellHeight)(d),allDayHeight:c,resizableStep:f.getResizableStep(),visibleDayDuration:p,timeZoneCalculator:(0,o.getTimeZoneCalculator)(t),timeZone:this.modelProvider.timeZone,firstDayOfWeek:this.instance.getFirstDayOfWeek(),viewStartDayHour:this.modelProvider.getCurrentViewOption("startDayHour"),viewEndDayHour:this.modelProvider.getCurrentViewOption("endDayHour"),viewType:e.type,endViewDate:e.getEndViewDate(),positionHelper:f,isGroupedByDate:e.isGroupedByDate(),cellDuration:g,cellDurationInMinutes:e.option("cellDuration"),viewDataProvider:e.viewDataProvider,supportAllDayRow:e.supportAllDayRow(),dateRange:e.getDateRange(),intervalDuration:e.getIntervalDuration(),allDayIntervalDuration:e.getIntervalDuration(!0),isVerticalOrientation:e.isVerticalOrientation(),DOMMetaData:d,instance:this.instance,agendaDuration:e.option("agendaDuration")}},h.createAppointmentsMap=function(e){var t=this._getRenderingStrategyOptions(),n=this.appointmentViewModel.generate(e,t),i=n.viewModel,o=n.positionMap;return this._positionMap=o,i},h._isDataChanged=function(e){var t=this.instance.appointmentDataProvider;return t.getUpdatedAppointment()===e||t.getUpdatedAppointmentKeys().some((function(t){return e[t.key]===t.value}))},h._isAppointmentShouldAppear=function(e,t){return e.needRepaint&&t.needRemove},h._isSettingChanged=function(e,t){if(e.length!==t.length)return!0;for(var n=function(e,t){var n=e[t],i=n.leftVirtualCellCount||0,o=n.topVirtualCellCount||0;return d({},n,{columnIndex:n.columnIndex+i,rowIndex:n.rowIndex+o,topVirtualCellCount:void 0,leftVirtualCellCount:void 0,leftVirtualWidth:void 0,topVirtualHeight:void 0,hMax:n.reduced?n.hMax:void 0,vMax:n.reduced?n.vMax:void 0,info:{}})},o=0;o<e.length;o++){var a=n(e,o),r=n(t,o);if(r&&(r.sortedIndex=a.sortedIndex),!(0,i.equalByValue)(a,r))return!0}return!1},h._getAssociatedSourceAppointment=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(i.itemData===e.itemData)return i}return null},h._getDeletedAppointments=function(e,t){for(var n=[],i=0;i<t.length;i++){var o=t[i];this._getAssociatedSourceAppointment(o,e)||(o.needRemove=!0,n.push(o))}return n},h.getRepaintedAppointments=function(e,t){var n=this;return 0===t.length||"agenda"===this.appointmentRenderingStrategyName?e:(e.forEach((function(e){var i=n._getAssociatedSourceAppointment(e,t);i&&(e.needRepaint=n._isDataChanged(e.itemData)||n._isSettingChanged(e.settings,i.settings)||n._isAppointmentShouldAppear(e,i))})),e.concat(this._getDeletedAppointments(e,t)))},h.getRenderingStrategyInstance=function(){if(!this.appointmentViewModel.getRenderingStrategy()){var e=this._getRenderingStrategyOptions();this.appointmentViewModel.initRenderingStrategy(e)}return this.appointmentViewModel.getRenderingStrategy()},t=e,(n=[{key:"modelProvider",get:function(){return(0,o.getModelProvider)(this.instance.key)}},{key:"appointmentRenderingStrategyName",get:function(){return(0,u.getAppointmentRenderingStrategyName)(this.modelProvider.currentViewType)}}])&&c(t.prototype,n),e}();t.default=h,e.exports=t.default,e.exports.default=t.default},20990:function(e,t,n){t.Appointment=t.AgendaAppointment=void 0;var i=y(n(68374)),o=y(n(55994)),a=n(31648),r=n(88609),s=n(13306),l=y(n(99393)),u=n(63898),d=n(39611),c=y(n(93786)),h=y(n(13046)),f=y(n(46743)),p=y(n(28109)),g=y(n(91500)),m=n(62060),_=n(62754),v=n(86474);function y(e){return e&&e.__esModule?e:{default:e}}function x(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function b(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,C(e,t)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var S=(0,d.addNamespace)(c.default.enter,"dxSchedulerAppointment"),k=(0,d.addNamespace)(c.default.leave,"dxSchedulerAppointment"),D=function(e){function t(){return e.apply(this,arguments)||this}w(t,e);var n=t.prototype;return n._getDefaultOptions=function(){return(0,s.extend)(e.prototype._getDefaultOptions.call(this),{data:{},groupIndex:-1,groups:[],geometry:{top:0,left:0,width:0,height:0},allowDrag:!0,allowResize:!0,reduced:null,isCompact:!1,direction:"vertical",resizableConfig:{},cellHeight:0,cellWidth:0,isDragSource:!1})},n.notifyObserver=function(e,t){var n=this.option("observer");n&&n.fire(e,t)},n.invoke=function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)},n._optionChanged=function(t){switch(t.name){case"data":case"groupIndex":case"geometry":case"allowDrag":case"allowResize":case"reduced":case"sortedIndex":case"isCompact":case"direction":case"resizableConfig":case"cellHeight":case"cellWidth":this._invalidate();break;case"isDragSource":this._renderDragSourceClass();break;default:e.prototype._optionChanged.call(this,t)}},n._getHorizontalResizingRule=function(){var e={head:this.option("rtlEnabled")?"right":"left",body:"",tail:this.option("rtlEnabled")?"left":"right"},t=this.option("getResizableStep"),n=t?t():0;return{handles:this.option("reduced")?e[this.option("reduced")]:"left right",minHeight:0,minWidth:this.invoke("getCellWidth"),step:n,roundStepValue:!1}},n._getVerticalResizingRule=function(){var e=this.invoke("getCellHeight");return{handles:"top bottom",minWidth:0,minHeight:e,step:e,roundStepValue:!0}},n._render=function(){e.prototype._render.call(this),this._renderAppointmentGeometry(),this._renderEmptyClass(),this._renderReducedAppointment(),this._renderAllDayClass(),this._renderDragSourceClass(),this._renderDirection(),this.$element().data("dxAppointmentStartDate",this.option("startDate"));var t=v.ExpressionUtils.getField(this.option("dataAccessors"),"text",this.rawAppointment);this.$element().attr("title",t),this.$element().attr("role","button"),this._renderRecurrenceClass(),this._renderResizable(),this._setResourceColor()},n._setResourceColor=function(){var e=this,t={itemData:this.rawAppointment,groupIndex:this.option("groupIndex"),groups:this.option("groups")};this.option("getAppointmentColor")(t).done((function(t){return t&&e.coloredElement.css("backgroundColor",t)}))},n._renderAppointmentGeometry=function(){var e=this.option("geometry"),t=this.$element();(0,a.move)(t,{top:e.top,left:e.left}),t.css({width:e.width<0?0:e.width,height:e.height<0?0:e.height})},n._renderEmptyClass=function(){(this.option("geometry").empty||this.option("isCompact"))&&this.$element().addClass(m.EMPTY_APPOINTMENT_CLASS)},n._renderReducedAppointment=function(){var e=this.option("reduced");e&&(this.$element().toggleClass(m.REDUCED_APPOINTMENT_CLASS,!0).toggleClass(m.REDUCED_APPOINTMENT_PARTS_CLASSES[e],!0),this._renderAppointmentReducedIcon())},n._renderAppointmentReducedIcon=function(){var e=(0,i.default)("<div>").addClass(m.REDUCED_APPOINTMENT_ICON).appendTo(this.$element()),t=this._getEndDate(),n=[p.default.format("dxScheduler-editorLabelEndDate"),": ",g.default.format(t,"monthAndDay"),", ",g.default.format(t,"year")].join("");o.default.off(e,S),o.default.on(e,S,(function(){(0,u.show)({target:e,content:n})})),o.default.off(e,k),o.default.on(e,k,(function(){(0,u.hide)()}))},n._getEndDate=function(){var e=v.ExpressionUtils.getField(this.option("dataAccessors"),"endDate",this.rawAppointment);return e?new Date(e):e},n._renderAllDayClass=function(){this.$element().toggleClass(m.ALL_DAY_APPOINTMENT_CLASS,!!this.option("allDay"))},n._renderDragSourceClass=function(){this.$element().toggleClass(m.APPOINTMENT_DRAG_SOURCE_CLASS,!!this.option("isDragSource"))},n._renderRecurrenceClass=function(){var e=v.ExpressionUtils.getField(this.option("dataAccessors"),"recurrenceRule",this.rawAppointment);(0,r.getRecurrenceProcessor)().isValidRecurrenceRule(e)&&this.$element().addClass(m.RECURRENCE_APPOINTMENT_CLASS)},n._renderDirection=function(){this.$element().addClass(m.DIRECTION_APPOINTMENT_CLASSES[this.option("direction")])},n._createResizingConfig=function(){var e="vertical"===this.option("direction")?this._getVerticalResizingRule():this._getHorizontalResizingRule();return this.invoke("isGroupedByDate")||(e.stepPrecision="strict"),e},n._renderResizable=function(){this.option("allowResize")&&this._createComponent(this.$element(),f.default,(0,s.extend)(this._createResizingConfig(),this.option("resizableConfig")))},n._useTemplates=function(){return!1},b(t,[{key:"coloredElement",get:function(){return this.$element()}},{key:"rawAppointment",get:function(){return this.option("data")}}]),t}(h.default);t.Appointment=D,(0,l.default)("dxSchedulerAppointment",D);var I=function(e){function t(){return e.apply(this,arguments)||this}w(t,e);var n=t.prototype;return n._getDefaultOptions=function(){return(0,s.extend)(e.prototype._getDefaultOptions.call(this),{createPlainResourceListAsync:new _.Deferred})},n._renderResourceList=function(e,t){t.forEach((function(t){var n=(0,i.default)("<div>").addClass(m.APPOINTMENT_CONTENT_CLASSES.AGENDA_RESOURCE_LIST_ITEM).appendTo(e);(0,i.default)("<div>").text("".concat(t.label,":")).appendTo(n),(0,i.default)("<div>").addClass(m.APPOINTMENT_CONTENT_CLASSES.AGENDA_RESOURCE_LIST_ITEM_VALUE).text(t.values.join(", ")).appendTo(n)}))},n._render=function(){var t=this;e.prototype._render.call(this),this.option("createPlainResourceListAsync")(this.rawAppointment).done((function(e){var n=t.$element().find(".".concat(m.APPOINTMENT_CONTENT_CLASSES.APPOINTMENT_CONTENT_DETAILS)),o=(0,i.default)("<div>").addClass(m.APPOINTMENT_CONTENT_CLASSES.AGENDA_RESOURCE_LIST).appendTo(n);t._renderResourceList(o,e)}))},b(t,[{key:"coloredElement",get:function(){return this.$element().find(".".concat(m.APPOINTMENT_CONTENT_CLASSES.AGENDA_MARKER))}}]),t}(D);t.AgendaAppointment=I},47918:function(e,t,n){t.default=void 0;var i=n(58664),o=P(n(68374)),a=P(n(73349)),r=P(n(55994)),s=n(97906),l=n(31648),u=P(n(91198)),d=n(20576),c=n(35922),h=n(95479),f=n(48013),p=n(89386),g=n(13306),m=n(6415),_=n(88609),v=P(n(99393)),y=n(20990),x=n(39611),b=n(85272),w=P(n(11050)),C=P(n(32511)),S=n(27728),k=n(62060),D=n(8763),I=n(45835),T=n(86474),E=n(5480),A=n(98140),O=n(11305);function P(e){return e&&e.__esModule?e:{default:e}}function M(){return(M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function R(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var V=(0,x.addNamespace)(b.name,"dxSchedulerAppointment"),F=u.default.dateToMilliseconds,L=function(e){var t,n;function v(t,n){var i;return(i=e.call(this,t,n)||this)._virtualAppointments={},i}n=e,(t=v).prototype=Object.create(n.prototype),t.prototype.constructor=t,B(t,n);var b,w,P=v.prototype;return P.notifyObserver=function(e,t){var n=this.option("observer");n&&n.fire(e,t)},P.invoke=function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)},P._dispose=function(){clearTimeout(this._appointmentClickTimeout),e.prototype._dispose.call(this)},P._supportedKeys=function(){var t=e.prototype._supportedKeys.call(this);return(0,g.extend)(t,{escape:function(){this.moveAppointmentBack(),this._escPressed=!0}.bind(this),del:function(e){if(this.option("allowDelete")){e.preventDefault();var t=this._getItemData(e.target);this.notifyObserver("onDeleteButtonPress",{data:t,target:e.target})}}.bind(this),tab:function(e){var t=this._getAccessAppointments(),n=t.filter(".dx-state-focused").data(S.APPOINTMENT_SETTINGS_KEY).sortedIndex,i=t.length-1;if(n>0&&e.shiftKey||n<i&&!e.shiftKey){e.preventDefault(),e.shiftKey?n--:n++;var o=this._getAppointmentByIndex(n);this._resetTabIndex(o),r.default.trigger(o,"focus")}}})},P._getAppointmentByIndex=function(e){return this._getAccessAppointments().filter((function(t,n){return(0,s.data)(n,S.APPOINTMENT_SETTINGS_KEY).sortedIndex===e})).eq(0)},P._getAccessAppointments=function(){return this._itemElements().filter(":visible").not(".dx-state-disabled")},P._resetTabIndex=function(e){this._focusTarget().attr("tabIndex",-1),e.attr("tabIndex",this.option("tabIndex"))},P._moveFocus=function(){},P._focusTarget=function(){return this._itemElements()},P._renderFocusTarget=function(){var e=this._getAppointmentByIndex(0);this._resetTabIndex(e)},P._focusInHandler=function(t){e.prototype._focusInHandler.call(this,t),this._$currentAppointment=(0,o.default)(t.target),this.option("focusedElement",(0,m.getPublicElement)((0,o.default)(t.target)))},P._focusOutHandler=function(t){var n=this._getAppointmentByIndex(0);this.option("focusedElement",(0,m.getPublicElement)(n)),e.prototype._focusOutHandler.call(this,t)},P._eventBindingTarget=function(){return this._itemContainer()},P._getDefaultOptions=function(){return(0,g.extend)(e.prototype._getDefaultOptions.call(this),{noDataText:null,activeStateEnabled:!0,hoverStateEnabled:!0,tabIndex:0,fixedContainer:null,allDayContainer:null,allowDrag:!0,allowResize:!0,allowAllDayResize:!0,onAppointmentDblClick:null,_collectorOffset:0,groups:[],resources:[]})},P._optionChanged=function(t){if(!this.option("isRenovatedAppointments"))switch(t.name){case"items":this._cleanFocusState(),this._clearDropDownItems(),this._clearDropDownItemsElements(),this._repaintAppointments(t.value),this._renderDropDownAppointments(),this._attachAppointmentsEvents();break;case"fixedContainer":case"allDayContainer":case"onAppointmentDblClick":case"allowDelete":break;case"allowDrag":case"allowResize":case"allowAllDayResize":this._invalidate();break;case"focusedElement":this._resetTabIndex((0,o.default)(t.value)),e.prototype._optionChanged.call(this,t);break;case"focusStateEnabled":this._clearDropDownItemsElements(),this._renderDropDownAppointments(),e.prototype._optionChanged.call(this,t);break;default:e.prototype._optionChanged.call(this,t)}},P._isAllDayAppointment=function(e){return e.settings.length&&e.settings[0].allDay||!1},P._isRepaintAppointment=function(e){return!(0,c.isDefined)(e.needRepaint)||!0===e.needRepaint},P._isRepaintAll=function(e){if(this.isAgendaView)return!0;for(var t=0;t<e.length;t++)if(!this._isRepaintAppointment(e[t]))return!1;return!0},P._applyFragment=function(e,t){e.children().length>0&&this._getAppointmentContainer(t).append(e)},P._onEachAppointment=function(e,t,n,i){!0===(null==e?void 0:e.needRemove)?this._clearItem(e):(i||this._isRepaintAppointment(e))&&(e.needRepaint=!1,this._clearItem(e),this._renderItem(t,e,n))},P._repaintAppointments=function(e){var t=this;this._renderByFragments((function(n,i){var o=t._isRepaintAll(e);o&&(t._getAppointmentContainer(!0).html(""),t._getAppointmentContainer(!1).html("")),!e.length&&t._cleanItemContainer(),e.forEach((function(e,a){var r=t._isAllDayAppointment(e)?i:n;t._onEachAppointment(e,a,r,o)}))}))},P._renderByFragments=function(e){if(this.isVirtualScrolling){var t=(0,o.default)(a.default.createDocumentFragment()),n=(0,o.default)(a.default.createDocumentFragment());e(t,n),this._applyFragment(t,!1),this._applyFragment(n,!0)}else e(this._getAppointmentContainer(!1),this._getAppointmentContainer(!0))},P._attachAppointmentsEvents=function(){this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent(),this._attachAppointmentDblClick(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},P._clearItem=function(e){var t=this._findItemElementByItem(e.itemData);t.length&&(0,h.each)(t,(function(e,t){t.detach(),t.remove()}))},P._clearDropDownItems=function(){this._virtualAppointments={}},P._clearDropDownItemsElements=function(){this.invoke("clearCompactAppointments")},P._findItemElementByItem=function(e){var t=[],n=this;return this.itemElements().each((function(){var i=(0,o.default)(this);i.data(n._itemDataKey())===e&&t.push(i)})),t},P._itemClass=function(){return k.APPOINTMENT_ITEM_CLASS},P._itemContainer=function(){var t=e.prototype._itemContainer.call(this),n=t,i=this.option("allDayContainer");return i&&(n=t.add(i)),n},P._cleanItemContainer=function(){e.prototype._cleanItemContainer.call(this);var t=this.option("allDayContainer");t&&t.empty(),this._virtualAppointments={}},P._clean=function(){e.prototype._clean.call(this),delete this._$currentAppointment,delete this._initialSize,delete this._initialCoordinates},P._init=function(){e.prototype._init.call(this),this.$element().addClass("dx-scheduler-scrollable-appointments"),this._preventSingleAppointmentClick=!1},P._renderAppointmentTemplate=function(e,t,n){var i={isAllDay:t.allDay,isRecurrence:t.recurrenceRule,html:(0,c.isPlainObject)(t)&&t.html?t.html:void 0},o=this.invoke("getTextAndFormatDate",n.appointmentData,this._currentAppointmentSettings.agendaSettings||n.targetedAppointmentData,"TIME");e.append(this.isAgendaView?(0,D.createAgendaAppointmentLayout)(o,i):(0,D.createAppointmentLayout)(o,i))},P._executeItemRenderAction=function(e,t,n){var i=this._getItemRenderAction();i&&i(this.invoke("mapAppointmentFields",{itemData:t,itemElement:n})),delete this._currentAppointmentSettings},P._itemClickHandler=function(t){e.prototype._itemClickHandler.call(this,t,{},{afterExecute:function(e){this._processItemClick(e.args[0].event)}.bind(this)})},P._processItemClick=function(e){var t=(0,o.default)(e.currentTarget),n=this._getItemData(t);"keydown"===e.type||(0,x.isFakeClickEvent)(e)?this.notifyObserver("showEditAppointmentPopup",{data:n,target:t}):this._appointmentClickTimeout=setTimeout(function(){!this._preventSingleAppointmentClick&&a.default.getBody().contains(t[0])&&this.notifyObserver("showAppointmentTooltip",{data:n,target:t}),this._preventSingleAppointmentClick=!1}.bind(this),300)},P._extendActionArgs=function(t){var n=e.prototype._extendActionArgs.call(this,t);return this.invoke("mapAppointmentFields",n)},P._render=function(){e.prototype._render.call(this),this._attachAppointmentDblClick()},P._attachAppointmentDblClick=function(){var e=this,t=e._itemSelector(),n=this._itemContainer();r.default.off(n,V,t),r.default.on(n,V,t,(function(t){e._itemDXEventHandler(t,"onAppointmentDblClick",{},{afterExecute:function(t){e._dblClickHandler(t.args[0].event)}})}))},P._dblClickHandler=function(e){var t=(0,o.default)(e.currentTarget),n=this._getItemData(t);clearTimeout(this._appointmentClickTimeout),this._preventSingleAppointmentClick=!0,this.notifyObserver("showEditAppointmentPopup",{data:n,target:t})},P._renderItem=function(t,n,i){for(var o=n.itemData,a=[],r=0;r<n.settings.length;r++){var s=n.settings[r];this._currentAppointmentSettings=s;var l=e.prototype._renderItem.call(this,t,o,i);l.data(S.APPOINTMENT_SETTINGS_KEY,s),a.push(l)}return a},P._getItemContent=function(t){return t.data(S.APPOINTMENT_SETTINGS_KEY,this._currentAppointmentSettings),e.prototype._getItemContent.call(this,t)},P._createItemByTemplate=function(e,t){var n=t.itemData,i=t.container,a=t.index;return e.render({model:{appointmentData:n,targetedAppointmentData:this.invoke("getTargetedAppointmentData",n,(0,o.default)(i).parent())},container:i,index:a})},P._getAppointmentContainer=function(e){var t=this.option("allDayContainer"),n=this.itemsContainer().not(t);return e&&t&&(n=t),n},P._postprocessRenderItem=function(e){this._renderAppointment(e.itemElement,this._currentAppointmentSettings)},P._renderAppointment=function(e,t){e.data(S.APPOINTMENT_SETTINGS_KEY,t),this._applyResourceDataAttr(e);var n=this._getItemData(e),i=this.invoke("getAppointmentGeometry",t),o=this.option("allowResize")&&(!(0,c.isDefined)(t.skipResizing)||(0,c.isString)(t.skipResizing)),a=this.option("allowDrag"),r=t.allDay;if(this.invoke("setCellDataCacheAlias",this._currentAppointmentSettings,i),t.virtual){var s={itemData:n,groupIndex:t.groupIndex,groups:this.option("groups")},l=this.option("getAppointmentColor")(s);this._processVirtualAppointment(t,e,n,l)}else{var u,d={data:n,groupIndex:t.groupIndex,observer:this.option("observer"),geometry:i,direction:t.direction||"vertical",allowResize:o,allowDrag:a,allDay:r,reduced:t.appointmentReduced,isCompact:t.isCompact,startDate:new Date(null===(u=t.info)||void 0===u?void 0:u.appointment.startDate),cellWidth:this.invoke("getCellWidth"),cellHeight:this.invoke("getCellHeight"),resizableConfig:this._resizableConfig(n,t),groups:this.option("groups"),getAppointmentColor:this.option("getAppointmentColor"),getResourceDataAccessors:this.option("getResourceDataAccessors")};if(this.isAgendaView){var h=this.option("getAgendaResourceProcessor")();d.createPlainResourceListAsync=function(e){return h.createListAsync(e)}}this._createComponent(e,this.isAgendaView?y.AgendaAppointment:y.Appointment,M({},d,{dataAccessors:this.option("dataAccessors"),getResizableStep:this.option("getResizableStep")}))}},P._applyResourceDataAttr=function(e){var t=this.option("getResources")(),n=(0,A.getResourcesFromItem)(t,this.option("getResourceDataAccessors")(),this._getItemData(e));n&&(0,h.each)(n,(function(t,n){for(var i="data-"+(0,d.normalizeKey)(t.toLowerCase())+"-",o=0;o<n.length;o++)e.attr(i+(0,d.normalizeKey)(n[o]),!0)}))},P._resizableConfig=function(e,t){return{area:this._calculateResizableArea(t,e),onResizeStart:function(e){if(this._$currentAppointment=(0,o.default)(e.element),this.invoke("needRecalculateResizableArea")){var t=this._calculateResizableArea(this._$currentAppointment.data(S.APPOINTMENT_SETTINGS_KEY),this._$currentAppointment.data("dxItemData"));e.component.option("area",t),e.component._renderDragOffsets(e.event)}this._initialSize={width:e.width,height:e.height},this._initialCoordinates=(0,l.locate)(this._$currentAppointment)}.bind(this),onResizeEnd:function(e){this._escPressed?e.event.cancel=!0:this._resizeEndHandler(e)}.bind(this)}},P._calculateResizableArea=function(e,t){var n=this.$element().closest(".dx-scrollable-content");return this.invoke("getResizableAppointmentArea",{coordinates:{left:e.left,top:0,groupIndex:e.groupIndex},allDay:e.allDay})||n},P._resizeEndHandler=function(e){var t=(0,o.default)(e.element),n=t.data("dxAppointmentSettings").info,i=this._getItemData(t),a=(0,E.createAppointmentAdapter)(i,this.option("dataAccessors"),(0,I.getTimeZoneCalculator)(this.option("key"))).clone(),r=this._getEndResizeAppointmentStartDate(e,i,n.appointment),s=n.appointment.endDate,l=this._getDateRange(e,r,s);a.startDate=new Date(l[0]),a.endDate=new Date(l[1]),this.notifyObserver("updateAppointmentAfterResize",{target:i,data:a.clone({pathTimeZone:"fromGrid"}).source(),$appointment:t})},P._getEndResizeAppointmentStartDate=function(e,t,n){var i=(0,E.createAppointmentAdapter)(t,this.option("dataAccessors"),(0,I.getTimeZoneCalculator)(this.option("key"))),o=n.startDate,a=(0,_.getRecurrenceProcessor)(),r=i.recurrenceRule,s=i.startDateTimeZone,l=this.invoke("isAllDay",t),u=a.isValidRecurrenceRule(r);return e.handles.top||u||l||(o=(0,I.getTimeZoneCalculator)(this.option("key")).createDate(i.startDate,{appointmentTimeZone:s,path:"toGrid"})),o},P._getDateRange=function(e,t,n){var i,o,a=this._getItemData(e.element),r=this.invoke("getDeltaTime",e,this._initialSize,a),s=this.invoke("getRenderingStrategyDirection"),l=this.invoke("isAllDay",a),u=this.invoke("needCorrectAppointmentDates")&&!l;return("vertical"!==s||l?this.option("rtlEnabled")?e.handles.right:e.handles.left:e.handles.top)?(i=u?this._correctStartDateByDelta(t,r):t.getTime()-r,i+=C.default.getTimezoneOffsetChangeInMs(t,n,i,n),o=n.getTime()):(i=t.getTime(),o=u?this._correctEndDateByDelta(n,r):n.getTime()+r,o-=C.default.getTimezoneOffsetChangeInMs(t,n,t,o)),[i,o]},P._correctEndDateByDelta=function(e,t){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),o=e.getTime()+t,a=(n-i)*F("hour"),r=t>0?Math.ceil(t/a):Math.floor(t/a),s=new Date(e),l=new Date(e);if(l.setHours(i,0,0,0),s.setHours(n,0,0,0),o>s.getTime()||o<=l.getTime()){var u=t-(s.getTime()-e.getTime()),d=new Date(e.setDate(e.getDate()+r));d.setHours(i,0,0,0),o=d.getTime()+u-a*(r-1)}return o},P._correctStartDateByDelta=function(e,t){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),o=e.getTime()-t,a=(n-i)*F("hour"),r=t>0?Math.ceil(t/a):Math.floor(t/a),s=new Date(e),l=new Date(e);if(l.setHours(i,0,0,0),s.setHours(n,0,0,0),o<l.getTime()||o>=s.getTime()){var u=t-(e.getTime()-l.getTime()),d=new Date(e.setDate(e.getDate()-r));d.setHours(n,0,0,0),o=d.getTime()-u+a*(r-1)}return o},P._processVirtualAppointment=function(e,t,n,i){var o=e.virtual,a=o.index;(0,c.isDefined)(this._virtualAppointments[a])||(this._virtualAppointments[a]={coordinates:{top:o.top,left:o.left},items:{data:[],colors:[],settings:[]},isAllDay:!!o.isAllDay,buttonColor:i}),e.targetedAppointmentData=this.invoke("getTargetedAppointmentData",n,t),this._virtualAppointments[a].items.settings.push(e),this._virtualAppointments[a].items.data.push(n),this._virtualAppointments[a].items.colors.push(i),t.remove()},P._renderContentImpl=function(){e.prototype._renderContentImpl.call(this),this._renderDropDownAppointments()},P._renderDropDownAppointments=function(){var e=this;this._renderByFragments((function(t,n){(0,h.each)(e._virtualAppointments,function(e){var i=this._virtualAppointments[e],o=i.items,a=i.coordinates,r=i.isAllDay?n:t,s=a.left,l=this.invoke("getDropDownAppointmentWidth",i.isAllDay),u=this.invoke("getDropDownAppointmentHeight"),d=this.option("rtlEnabled")?l:0;this.notifyObserver("renderCompactAppointments",{$container:r,coordinates:{top:a.top,left:s+d},items:o,buttonColor:i.buttonColor,width:l-this.option("_collectorOffset"),height:u,onAppointmentClick:this.option("onItemClick"),allowDrag:this.option("allowDrag"),cellWidth:this.invoke("getCellWidth"),isCompact:this.invoke("isAdaptive")||this._isGroupCompact(i)})}.bind(e))}))},P._isGroupCompact=function(e){return!e.isAllDay&&this.invoke("supportCompactDropDownAppointments")},P._sortAppointmentsByStartDate=function(e){return(0,O.sortAppointmentsByStartDate)(e,this.option("dataAccessors"))},P._processRecurrenceAppointment=function(e,t,n){var i=T.ExpressionUtils.getField(this.option("dataAccessors"),"recurrenceRule",e),o={parts:[],indexes:[]};if(i){for(var a=e.settings||e,r=new Date(T.ExpressionUtils.getField(this.option("dataAccessors"),"startDate",a)),s=new Date(T.ExpressionUtils.getField(this.option("dataAccessors"),"endDate",a)),l=s.getTime()-r.getTime(),u=T.ExpressionUtils.getField(this.option("dataAccessors"),"recurrenceException",e),d=this.invoke("getStartViewDate"),c=this.invoke("getEndViewDate"),h=(0,_.getRecurrenceProcessor)().generateDates({rule:i,exception:u,start:r,end:s,min:d,max:c}),f=e.settings?1:h.length,p=0;p<f;p++){var m=(0,g.extend)({},e,!0);if(h[p]){var v=this._applyStartDateToObj(h[p],{});this._applyEndDateToObj(new Date(h[p].getTime()+l),v),m.settings=v}else m.settings=a;o.parts.push(m),n||this._processLongAppointment(m,o)}o.indexes.push(t)}return o},P._processLongAppointment=function(e,t){var n=this.splitAppointmentByDay(e),i=n.length,o=this.invoke("getEndViewDate").getTime(),a=this.invoke("getStartViewDate").getTime(),r=(0,I.getTimeZoneCalculator)(this.option("key"));if(t=t||{parts:[]},i>1){(0,g.extend)(e,n[0]);for(var s=1;s<i;s++){var l=T.ExpressionUtils.getField(this.option("dataAccessors"),"startDate",n[s].settings).getTime();(l=r.createDate(l,{path:"toGrid"}))<o&&l>a&&t.parts.push(n[s])}}return t},P._reduceRecurrenceAppointments=function(e,t){(0,h.each)(e,(function(e,n){t.splice(n-e,1)}))},P._combineAppointments=function(e,t){t.length&&(0,p.merge)(e,t),this._sortAppointmentsByStartDate(e)},P._applyStartDateToObj=function(e,t){return T.ExpressionUtils.setField(this.option("dataAccessors"),"startDate",t,e),t},P._applyEndDateToObj=function(e,t){return T.ExpressionUtils.setField(this.option("dataAccessors"),"endDate",t,e),t},P.moveAppointmentBack=function(e){var t=this._$currentAppointment,n=this._initialSize,o=this._initialCoordinates;e&&(this._removeDragSourceClassFromDraggedAppointment(),(0,c.isDeferred)(e.cancel)?e.cancel.resolve(!0):e.cancel=!0),t&&!e&&(o&&((0,l.move)(t,o),delete this._initialSize),n&&((0,i.setOuterWidth)(t,n.width),(0,i.setOuterHeight)(t,n.height),delete this._initialCoordinates))},P.focus=function(){if(this._$currentAppointment){var e=(0,m.getPublicElement)(this._$currentAppointment);this.option("focusedElement",e),r.default.trigger(e,"focus")}},P.splitAppointmentByDay=function(e){var t=e.settings||e,n=this.option("dataAccessors"),i=new Date(T.ExpressionUtils.getField(n,"startDate",t)),o=u.default.makeDate(i),a=u.default.makeDate(T.ExpressionUtils.getField(n,"endDate",t)),r=this.invoke("getEndViewDate"),s=this.invoke("getStartDayHour"),l=this.invoke("getEndDayHour"),d=(0,I.getTimeZoneCalculator)(this.option("key")),c=(0,E.createAppointmentAdapter)(e,n,d),h=(0,O.getAppointmentTakesSeveralDays)(c),p=[];for(o=d.createDate(o,{path:"toGrid"}),a=d.createDate(a,{path:"toGrid"}),o.getHours()<=l&&o.getHours()>=s&&!h&&(p.push(this._applyStartDateToObj(new Date(o),{appointmentData:e})),o.setDate(o.getDate()+1));h&&o.getTime()<a.getTime()&&o<r;){var g=new Date(o),m=new Date(o);this._checkStartDate(g,i,s),this._checkEndDate(m,a,l);var _=(0,f.deepExtendArraySafe)({},e,!0),v={};this._applyStartDateToObj(g,v),this._applyEndDateToObj(m,v),_.settings=v,p.push(_),(o=u.default.trimTime(o)).setDate(o.getDate()+1),o.setHours(s)}return p},P._checkStartDate=function(e,t,n){!u.default.sameDate(e,t)||e.getHours()<=n?e.setHours(n,0,0,0):e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},P._checkEndDate=function(e,t,n){!u.default.sameDate(e,t)||e.getHours()>n?e.setHours(n,0,0,0):e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},P._removeDragSourceClassFromDraggedAppointment=function(){this._itemElements().filter(".".concat(k.APPOINTMENT_DRAG_SOURCE_CLASS)).each((function(e,t){(0,o.default)(t).dxSchedulerAppointment("instance").option("isDragSource",!1)}))},P._setDragSourceAppointment=function(e,t){var n=this._findItemElementByItem(e),i=t.info.sourceAppointment,o=i.startDate,a=i.endDate,r=t.groupIndex;n.forEach((function(e){var t=e.data(S.APPOINTMENT_SETTINGS_KEY),n=t.info,i=t.groupIndex,s=n.sourceAppointment,l=s.startDate,u=s.endDate,d=e.dxSchedulerAppointment("instance"),c=o.getTime()===l.getTime()&&a.getTime()===u.getTime()&&r===i;d.option("isDragSource",c)}))},P.updateResizableArea=function(){var e=this,t=this.$element().find(".dx-scheduler-appointment.dx-resizable"),n=(0,d.grep)(t,(function(e){var t=(0,o.default)(e).dxResizable("instance"),n=t.option("area");return(0,p.inArray)(t.option("handles"),["right left","left right"])>-1&&(0,c.isPlainObject)(n)}));(0,h.each)(n,(function(t,n){var i=(0,o.default)(n),a=(0,l.locate)(i),r=e._getItemData(i),s=e._calculateResizableArea({left:a.left},r);i.dxResizable("instance").option("area",s)}))},b=v,(w=[{key:"isAgendaView",get:function(){return this.invoke("isCurrentViewAgenda")}},{key:"isVirtualScrolling",get:function(){return this.invoke("isVirtualScrolling")}},{key:"appointmentDataProvider",get:function(){return this.option("getAppointmentDataProvider")()}}])&&R(b.prototype,w),v}(w.default);(0,v.default)("dxSchedulerAppointments",L);var H=L;t.default=H,e.exports=t.default,e.exports.default=t.default},8763:function(e,t,n){t.createAppointmentLayout=t.createAgendaAppointmentLayout=void 0;var i=s(n(68374)),o=s(n(73349)),a=s(n(28109)),r=n(62060);function s(e){return e&&e.__esModule?e:{default:e}}var l=" "+a.default.format("dxScheduler-allDay")+": ";t.createAppointmentLayout=function(e,t){var n=(0,i.default)(o.default.createDocumentFragment());(0,i.default)("<div>").text(e.text).addClass(r.APPOINTMENT_CONTENT_CLASSES.APPOINTMENT_TITLE).appendTo(n),t.html&&n.html(t.html);var a=(0,i.default)("<div>").addClass(r.APPOINTMENT_CONTENT_CLASSES.APPOINTMENT_CONTENT_DETAILS).appendTo(n);return(0,i.default)("<div>").addClass(r.APPOINTMENT_CONTENT_CLASSES.APPOINTMENT_DATE).text(e.formatDate).appendTo(a),t.isRecurrence&&(0,i.default)("<span>").addClass(r.APPOINTMENT_CONTENT_CLASSES.RECURRING_ICON+" dx-icon-repeat").appendTo(n),t.isAllDay&&(0,i.default)("<div>").text(l).addClass(r.APPOINTMENT_CONTENT_CLASSES.ALL_DAY_CONTENT).prependTo(a),n},t.createAgendaAppointmentLayout=function(e,t){var n=(0,i.default)(o.default.createDocumentFragment()),a=(0,i.default)("<div>").addClass("dx-scheduler-agenda-appointment-left-layout").appendTo(n),s=(0,i.default)("<div>").addClass("dx-scheduler-agenda-appointment-right-layout").appendTo(n),u=(0,i.default)("<div>").addClass(r.APPOINTMENT_CONTENT_CLASSES.AGENDA_MARKER).appendTo(a);t.isRecurrence&&(0,i.default)("<span>").addClass(r.APPOINTMENT_CONTENT_CLASSES.RECURRING_ICON+" dx-icon-repeat").appendTo(u),(0,i.default)("<div>").addClass(r.APPOINTMENT_CONTENT_CLASSES.APPOINTMENT_TITLE).text(e.text).appendTo(s);var d=(0,i.default)("<div>").addClass(r.APPOINTMENT_CONTENT_CLASSES.APPOINTMENT_CONTENT_DETAILS).appendTo(s);return(0,i.default)("<div>").addClass(r.APPOINTMENT_CONTENT_CLASSES.APPOINTMENT_DATE).text(e.formatDate).appendTo(d),t.isAllDay&&(0,i.default)("<div>").text(l).addClass(r.APPOINTMENT_CONTENT_CLASSES.ALL_DAY_CONTENT).prependTo(d),n}},18986:function(e,t,n){t.CellPositionCalculator=void 0;var i,o=n(35922),a=(i=n(91198))&&i.__esModule?i:{default:i};function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var d=function(){function e(e){this.options=e}var t=e.prototype;return t.calculateCellPositions=function(e,t,n){var i=this,o=[];return this.appointments.forEach((function(a,r){i.getCoordinateInfos({appointment:a,groupIndices:e,isAllDayRowAppointment:t,isRecurrentAppointment:n}).forEach((function(e){e&&o.push(i._prepareObject(e,r))}))})),o},t.getCoordinateInfos=function(e){var t=e.appointment,n=e.isAllDayRowAppointment,i=e.groupIndices,o=e.recurrent,a=t.startDate,r=o?void 0:t.source.groupIndex;return this.getCoordinatesByDateInGroup(a,i,n,r)},t._prepareObject=function(e,t){return e.dateSettingIndex=t,{coordinates:e,dateSettingIndex:t}},t.getCoordinatesByDate=function(e,t,n){var i=t||0,o={groupIndex:i,startDate:e,isAllDay:n},a=this.viewDataProvider.findCellPositionInMap(o);if(a){var r=this.getCellPosition(a,n&&!this.isVerticalGrouping),s=n?0:this.getTimeShift(e),l=this.getPositionShift(s,n),u=this.positionHelper.getHorizontalMax(i,e),d=this.positionHelper.getVerticalMax({groupIndex:i,isVirtualScrolling:this.isVirtualScrolling,showAllDayPanel:this.showAllDayPanel,supportAllDayRow:this.supportAllDayRow,isGroupedAllDayPanel:this.isGroupedAllDayPanel,isVerticalGrouping:this.isVerticalGrouping});return{cellPosition:r.left+l.cellPosition,top:r.top+l.top,left:r.left+l.left,rowIndex:r.rowIndex,columnIndex:r.columnIndex,hMax:u,vMax:d,groupIndex:i}}},t.getCoordinatesByDateInGroup=function(e,t,n,i){var a=this,r=[];if(this.viewDataProvider.isSkippedDate(e))return r;var s=[i];return(0,o.isDefined)(i)||(s=this.groupCount?t:[0]),s.forEach((function(t){var i=a.getCoordinatesByDate(e,t,n);i&&r.push(i)})),r},t.getCellPosition=function(e,t){var n=this.DOMMetaData,i=n.dateTableCellsMeta,o=n.allDayPanelCellsMeta,a=e.columnIndex,r=e.rowIndex,l=t?o[a]:i[r][a],u=s({},l);return this.rtlEnabled&&(u.left+=l.width),u&&(u.rowIndex=e.rowIndex,u.columnIndex=e.columnIndex),u},t.getTimeShift=function(e){var t=new Date(e),n=new Date(new Date(e).setHours(this.viewEndDayHour,0,0));e.getTime()<=n.getTime()&&t.setHours(this.viewStartDayHour,0,0,0);var i=a.default.getTimezonesDifference(e,t),o=e.getTime(),r=t.getTime();return o>this.startViewDate.getTime()?(o-r+i)%this.cellDuration/this.cellDuration:0},u(e,[{key:"DOMMetaData",get:function(){return this.options.DOMMetaData}},{key:"appointments",get:function(){return this.options.dateSettings}},{key:"viewDataProvider",get:function(){return this.options.viewDataProvider}},{key:"positionHelper",get:function(){return this.options.positionHelper}},{key:"startViewDate",get:function(){return this.options.startViewDate}},{key:"viewStartDayHour",get:function(){return this.options.viewStartDayHour}},{key:"viewEndDayHour",get:function(){return this.options.viewEndDayHour}},{key:"cellDuration",get:function(){return this.options.cellDuration}},{key:"getPositionShift",get:function(){return this.options.getPositionShiftCallback}},{key:"groupCount",get:function(){return this.options.groupCount}},{key:"rtlEnabled",get:function(){return this.options.rtlEnabled}},{key:"isVerticalGrouping",get:function(){return this.options.isVerticalOrientation}},{key:"showAllDayPanel",get:function(){return this.options.showAllDayPanel}},{key:"supportAllDayRow",get:function(){return this.options.supportAllDayRow}},{key:"isGroupedAllDayPanel",get:function(){return this.options.isGroupedAllDayPanel}},{key:"isVirtualScrolling",get:function(){return!1}}]),e}(),c=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var o=i.prototype;return o.calculateCellPositions=function(t,n,i){var o=this,a=n?this.appointments:this.appointments.filter((function(e){var t=e.source,n=e.startDate,i=e.endDate;return o.viewDataProvider.isGroupIntersectDateInterval(t.groupIndex,n,i)}));return i?this.createRecurrentAppointmentInfos(a,n):e.prototype.calculateCellPositions.call(this,t,n,i)},o.createRecurrentAppointmentInfos=function(e,t){var n=this,i=[];return e.forEach((function(e,o){var a=e.source,r=e.startDate,s=n.getCoordinatesByDate(r,a.groupIndex,t);s&&i.push(n._prepareObject(s,o))})),i},u(i,[{key:"isVirtualScrolling",get:function(){return!0}}]),i}(d),h=function(){function e(e){this.options=e}return e.prototype.calculateCellPositions=function(e,t,n){return(this.options.isVirtualScrolling?new c(this.options):new d(this.options)).calculateCellPositions(e,t,n)},e}();t.CellPositionCalculator=h},95121:function(e,t,n){t.AppointmentDataProvider=void 0;var i=n(60714),o=n(1758),a=n(5480);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s="virtual",l=function(){function e(e){this.options=e,this.dataSource=this.options.dataSource,this.dataAccessors=this.options.dataAccessors,this.timeZoneCalculator=this.options.timeZoneCalculator,this.appointmentDataSource=new i.AppointmentDataSource(this.dataSource),this.initFilterStrategy()}var t,n,l=e.prototype;return l.getFilterStrategy=function(){return this.filterStrategy&&this.filterStrategy.strategyName===this.filterStrategyName||this.initFilterStrategy(),this.filterStrategy},l.initFilterStrategy=function(){var e={resources:this.options.resources,dataSource:this.dataSource,dataAccessors:this.dataAccessors,startDayHour:this.options.startDayHour,endDayHour:this.options.endDayHour,appointmentDuration:this.options.appointmentDuration,showAllDayPanel:this.options.showAllDayPanel,timeZoneCalculator:this.options.timeZoneCalculator,loadedResources:this.options.getLoadedResources,supportAllDayRow:this.options.getSupportAllDayRow,viewType:this.options.getViewType,viewDirection:this.options.getViewDirection,dateRange:this.options.getDateRange,groupCount:this.options.getGroupCount,viewDataProvider:this.options.getViewDataProvider};this.filterStrategy=this.filterStrategyName===s?new o.AppointmentFilterVirtualStrategy(e):new o.AppointmentFilterBaseStrategy(e)},l.setDataSource=function(e){this.dataSource=e,this.initFilterStrategy(),this.appointmentDataSource.setDataSource(this.dataSource)},l.updateDataAccessors=function(e){this.dataAccessors=e,this.initFilterStrategy()},l.filter=function(){return this.getFilterStrategy().filter()},l.filterByDate=function(e,t,n,i){this.getFilterStrategy().filterByDate(e,t,n,i)},l.hasAllDayAppointments=function(e){var t=this,n=e.map((function(e){return(0,a.createAppointmentAdapter)(e,t.dataAccessors,t.timeZoneCalculator)}));return this.getFilterStrategy().hasAllDayAppointments(n)},l.filterLoadedAppointments=function(e,t){return this.getFilterStrategy().filterLoadedAppointments(e,t)},l.calculateAppointmentEndDate=function(e,t){return this.getFilterStrategy().calculateAppointmentEndDate(e,t)},l.cleanState=function(){this.appointmentDataSource.cleanState()},l.getUpdatedAppointment=function(){return this.appointmentDataSource._updatedAppointment},l.getUpdatedAppointmentKeys=function(){return this.appointmentDataSource._updatedAppointmentKeys},l.add=function(e){return this.appointmentDataSource.add(e)},l.update=function(e,t){return this.appointmentDataSource.update(e,t)},l.remove=function(e){return this.appointmentDataSource.remove(e)},t=e,(n=[{key:"filterMaker",get:function(){return this.getFilterStrategy().filterMaker}},{key:"keyName",get:function(){return this.appointmentDataSource.keyName}},{key:"filterStrategyName",get:function(){return this.options.getIsVirtualScrolling()?s:"standard"}}])&&r(t.prototype,n),e}();t.AppointmentDataProvider=l},60714:function(e,t,n){t.AppointmentDataSource=void 0;var i=n(62754);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(e){this.setDataSource(e),this._updatedAppointmentKeys=[]}var t,n,a=e.prototype;return a._getStoreKey=function(e){return this._dataSource.store().keyOf(e)},a.setDataSource=function(e){this._dataSource=e,this.cleanState(),this._initStoreChangeHandlers()},a._initStoreChangeHandlers=function(){var e=this,t=this._dataSource,n=null==t?void 0:t.store();n&&(n.on("updating",(function(t){e._updatedAppointment=t})),n.on("push",(function(i){var o=t.items(),a=n.key();i.forEach((function(t){if(0!==o.filter((function(e){return e[a]===t.key})).length)e._updatedAppointmentKeys.push({key:a,value:t.key});else{var n=t.data;n&&o.push(n)}})),t.load()})))},a.getUpdatedAppointment=function(){return this._updatedAppointment},a.getUpdatedAppointmentKeys=function(){return this._updatedAppointmentKeys},a.cleanState=function(){this._updatedAppointment=null,this._updatedAppointmentKeys=[]},a.add=function(e){var t=this;return this._dataSource.store().insert(e).done((function(){return t._dataSource.load()}))},a.update=function(e,t){var n=this,o=this._getStoreKey(e),a=new i.Deferred;return this._dataSource.store().update(o,t).done((function(e){return n._dataSource.load().done((function(){return a.resolve(e)})).fail(a.reject)})).fail(a.reject),a.promise()},a.remove=function(e){var t=this,n=this._getStoreKey(e);return this._dataSource.store().remove(n).done((function(){return t._dataSource.load()}))},t=e,(n=[{key:"keyName",get:function(){return this._dataSource.store().key()}}])&&o(t.prototype,n),e}();t.AppointmentDataSource=a},1758:function(e,t,n){t.AppointmentFilterVirtualStrategy=t.AppointmentFilterBaseStrategy=void 0;var i=_(n(80209)),o=_(n(91198)),a=n(20576),r=_(n(69434)),s=n(88609),l=n(89386),u=n(13306),d=n(95479),c=n(35922),h=_(n(96687)),f=n(45985),p=n(98140),g=n(11305),m=n(46858);function _(e){return e&&e.__esModule?e:{default:e}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function b(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function w(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}var C=o.default.dateToMilliseconds,S=function(){function e(e){this._filterRegistry=null,this.dataAccessors=e}var t=e.prototype;return t.isRegistered=function(){return!!this._filterRegistry},t.clearRegistry=function(){delete this._filterRegistry},t.make=function(e,t){this._filterRegistry||(this._filterRegistry={}),this._make(e).apply(this,t)},t._make=function(e){var t=this;switch(e){case"date":return function(e,n,i){var o=i?t.dataAccessors.getter.startDate:t.dataAccessors.expr.startDateExpr,a=i?t.dataAccessors.getter.endDate:t.dataAccessors.expr.endDateExpr,r=t.dataAccessors.expr.recurrenceRuleExpr;t._filterRegistry.date=[[[a,">=",e],[o,"<",n]],"or",[r,"startswith","freq"],"or",[[a,e],[o,e]]],r||t._filterRegistry.date.splice(1,2)};case"user":return function(e){t._filterRegistry.user=e}}},t.combine=function(){var e=[];return this._filterRegistry.date&&e.push(this._filterRegistry.date),this._filterRegistry.user&&e.push(this._filterRegistry.user),e},t.dateFilter=function(){var e;return null===(e=this._filterRegistry)||void 0===e?void 0:e.date},e}(),k=function(){function e(e){this.options=e,this.dataSource=this.options.dataSource,this.dataAccessors=this.options.dataAccessors,this.preparedItems=[],this._init()}var t=e.prototype;return t._resolveOption=function(e){var t=this.options[e];return"function"==typeof t?t():t},t._init=function(){this.setDataAccessors(this.dataAccessors),this.setDataSource(this.dataSource)},t.filter=function(e){var t,n=this.dateRange;return!this.showAllDayPanel&&this.supportAllDayRow&&(t=!1),this.filterLoadedAppointments({startDayHour:this.viewStartDayHour,endDayHour:this.viewEndDayHour,viewStartDayHour:this.viewStartDayHour,viewEndDayHour:this.viewEndDayHour,min:n[0],max:n[1],resources:this.loadedResources,allDay:t,supportMultiDayAppointments:(0,f.isSupportMultiDayAppointments)(this.viewType),firstDayOfWeek:this.firstDayOfWeek},e)},t.filterByDate=function(e,t,n,i){if(this.dataSource){var o=y((0,g.getTrimDates)(e,t),2),a=o[0],r=o[1];if(this.filterMaker.isRegistered()){var s;if((null===(s=this.dataSource.filter())||void 0===s?void 0:s.length)>1){var l=this._serializeRemoteFilter([this.dataSource.filter()[1]],i);this.filterMaker.make("user",l)}n&&(this.filterMaker.make("date",[a,r]),this.dataSource.filter(this._combineRemoteFilter(i)))}else this._createFilter(a,r,n,i)}},t.hasAllDayAppointments=function(e){var t=this,n=!1;return e&&(0,d.each)(e,(function(e,i){if((0,g.getAppointmentTakesAllDay)(i,t.viewStartDayHour,t.viewEndDayHour))return n=!0,!1})),n},t.setDataAccessors=function(e){this.dataAccessors=e,this.filterMaker=new S(this.dataAccessors)},t.setDataSource=function(e){var t;this.dataSource=e,this._updatePreparedDataItems(),null===(t=this.filterMaker)||void 0===t||t.clearRegistry()},t._updatePreparedDataItems=function(){var e=this,t=function(t){return e.preparedItems=(0,m.getPreparedDataItems)(t,e.dataAccessors,e.appointmentDuration,e.timeZoneCalculator)};this.dataSource&&(this.dataSource.store().on("loaded",(function(e){t((0,m.resolveDataItems)(e))})),this.dataSource.isLoaded()&&t(this.dataSource.items()))},t._createAllDayAppointmentFilter=function(e){var t=e.viewStartDayHour,n=e.viewEndDayHour;return[[function(e){return(0,g.getAppointmentTakesAllDay)(e,t,n)}]]},t._createCombinedFilter=function(e){var t=this,n=new Date(e.min),i=new Date(e.max),a=e.startDayHour,r=e.endDayHour,s=e.viewStartDayHour,l=e.viewEndDayHour,u=e.resources,d=e.firstDayOfWeek,h=e.checkIntersectViewport,f=e.supportMultiDayAppointments,p=y((0,g.getTrimDates)(n,i),2),m=p[0],_=p[1],v=(0,c.isDefined)(this.dataAccessors.getter.recurrenceRule);return[[function(p){var y;if(null!==(y=p.visible)&&void 0!==y&&!y)return!1;var x,b=p.startDate,w=p.endDate,C=p.hasRecurrenceRule;if(!C&&!(w>=m&&b<_||o.default.sameDate(w,m)&&o.default.sameDate(b,m)))return!1;v&&(x=p.recurrenceRule);var S=(0,g.getAppointmentTakesAllDay)(p,s,l),k=(0,g.getAppointmentTakesSeveralDays)(p),D=p.allDay,I=k||S;if(null!=u&&u.length&&!t._filterAppointmentByResources(p.rawAppointment,u))return!1;if(S&&!1===e.allDay)return!1;if(C){var T=(0,g.getRecurrenceException)(p,t.timeZoneCalculator,t.timezone);if(!t._filterAppointmentByRRule({startDate:b,endDate:w,recurrenceRule:x,recurrenceException:T,allDay:S},n,i,a,r,d))return!1}return!(!D&&f&&I&&w<n&&(!v||v&&!C)||!(!(0,c.isDefined)(a)||v&&e.isVirtualScrolling||(0,g.compareDateWithStartDayHour)(b,w,a,S,k))||(0,c.isDefined)(r)&&!(0,g.compareDateWithEndDayHour)({startDate:b,endDate:w,startDayHour:a,endDayHour:r,viewStartDayHour:s,viewEndDayHour:l,allDay:S,severalDays:k,min:n,max:i,checkIntersectViewport:h})||!(D||I&&!f)&&w<n&&v&&!C)}]]},t._createAppointmentFilter=function(e){return this.filterMaker.isRegistered()&&this.filterMaker.make("user",void 0),this._createCombinedFilter(e)},t._excessFiltering=function(){var e=this.filterMaker.dateFilter(),t=this.dataSource.filter();return e&&t&&((0,a.equalByValue)(t,e)||t.length&&(0,a.equalByValue)(t[0],e))},t._combineRemoteFilter=function(e){var t=this.filterMaker.combine();return this._serializeRemoteFilter(t,e)},t._serializeRemoteFilter=function(e,t){if(!Array.isArray(e))return e;e=(0,u.extend)([],e);var n=this.dataAccessors.expr.startDateExpr,o=this.dataAccessors.expr.endDateExpr;(0,c.isString)(e[0])&&(0,i.default)().forceIsoDateParsing&&e.length>1&&(e[0]!==n&&e[0]!==o||(e[e.length-1]=r.default.serializeDate(new Date(e[e.length-1]),t)));for(var a=0;a<e.length;a++)e[a]=this._serializeRemoteFilter(e[a],t);return e},t._createFilter=function(e,t,n,i){if(n){this.filterMaker.make("date",[e,t]);var o=this._excessFiltering()?this.dataSource.filter()[1]:this.dataSource.filter();this.filterMaker.make("user",[o]),this.dataSource.filter(this._combineRemoteFilter(i))}},t._filterAppointmentByResources=function(e,t){for(var n=this,i=function(i,o){var a,r=n.dataAccessors.resources.getter[i];(0,c.isFunction)(r)&&(a=r(e));for(var s=(0,l.wrapToArray)(a),u=(0,d.map)(t[o].items,(function(e){return e.id})),h=0;h<s.length;h++)if((0,l.inArray)(s[h],u)>-1)return!0;return!1},o=!1,a=0;a<t.length;a++)if(!(o=i(t[a].name,a)))return!1;return o},t._filterAppointmentByRRule=function(e,t,n,i,o,a){var r=e.recurrenceRule,l=e.recurrenceException,u=e.allDay,d=!0,c=e.startDate,h=e.endDate,f=(0,s.getRecurrenceProcessor)();if(u||(0,g._appointmentPartInInterval)(c,h,i,o)){var p=y((0,g.getTrimDates)(t,n),2),m=p[0],_=p[1];t=m,n=new Date(_.getTime()-C("minute"))}return r&&!f.isValidRecurrenceRule(r)&&(d=h>t&&c<=n),d&&f.isValidRecurrenceRule(r)&&(d=f.hasRecurrence({rule:r,exception:l,start:c,end:h,min:t,max:n,firstDayOfWeek:a})),d},t.filterLoadedAppointments=function(e,t){return this.filterPreparedItems(e,t).map((function(e){return e.rawAppointment}))},t.filterPreparedItems=function(e,t){var n=this._createAppointmentFilter(e);return(0,h.default)(t||this.preparedItems).filter(n).toArray()},t.filterAllDayAppointments=function(e){var t=this._createAllDayAppointmentFilter(e);return(0,h.default)(this.preparedItems).filter(t).toArray().map((function(e){return e.rawAppointment}))},w(e,[{key:"strategyName",get:function(){return"standard"}},{key:"timeZoneCalculator",get:function(){return this.options.timeZoneCalculator}},{key:"viewStartDayHour",get:function(){return this.options.startDayHour}},{key:"viewEndDayHour",get:function(){return this.options.endDayHour}},{key:"appointmentDuration",get:function(){return this.options.appointmentDuration}},{key:"timezone",get:function(){return this.options.timezone}},{key:"firstDayOfWeek",get:function(){return this.options.firstDayOfWeek}},{key:"showAllDayPanel",get:function(){return this.options.showAllDayPanel}},{key:"loadedResources",get:function(){return this._resolveOption("loadedResources")}},{key:"supportAllDayRow",get:function(){return this._resolveOption("supportAllDayRow")}},{key:"viewType",get:function(){return this._resolveOption("viewType")}},{key:"viewDirection",get:function(){return this._resolveOption("viewDirection")}},{key:"dateRange",get:function(){return this._resolveOption("dateRange")}},{key:"groupCount",get:function(){return this._resolveOption("groupCount")}},{key:"viewDataProvider",get:function(){return this._resolveOption("viewDataProvider")}}]),e}();t.AppointmentFilterBaseStrategy=k;var D=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,v(t,n);var o=i.prototype;return o.filter=function(e){var t=this,n=C("hour"),i=(0,f.isDateAndTimeView)(this.viewType),o=i&&"horizontal"===this.viewDirection,a=!this.supportAllDayRow,r=this.showAllDayPanel||a,s=this.viewDataProvider.getLastViewDateByEndDayHour(this.viewEndDayHour),l=[];return this.viewDataProvider.getCompletedGroupsInfo().forEach((function(e){var u=e.groupIndex,d=e.startDate,c=new Date(Math.min(e.endDate,s)),h=i?d.getHours():t.viewStartDayHour,p=i?h+d.getMinutes()/60+(c-d)/n:t.viewEndDayHour,g=t._getPrerenderFilterResources(u),m=t.viewDataProvider.getAllDayPanel(u),_=a||!!r&&(null==m?void 0:m.length)>0;l.push({isVirtualScrolling:!0,startDayHour:h,endDayHour:p,viewStartDayHour:t.viewStartDayHour,viewEndDayHour:t.viewEndDayHour,min:d,max:c,supportMultiDayAppointments:(0,f.isSupportMultiDayAppointments)(t.viewType),allDay:_,resources:g,firstDayOfWeek:t.firstDayOfWeek,checkIntersectViewport:o})})),this.filterLoadedAppointments({filterOptions:l,groupCount:this.groupCount},e)},o.filterPreparedItems=function(e,t){var n=this,i=e.filterOptions,o=e.groupCount,a=[],r=t||this.preparedItems;return o>0&&(r=r.filter((function(e){for(var t=e.rawAppointment,o=0;o<i.length;++o){var a=i[o].resources;if(n._filterAppointmentByResources(t,a))return!0}}))),i.forEach((function(e){a.length&&a.push("or");var t=n._createAppointmentFilter(e);a.push(t)})),(0,h.default)(r).filter(a).toArray()},o.hasAllDayAppointments=function(){return this.filterAllDayAppointments({viewStartDayHour:this.viewStartDayHour,viewEndDayHour:this.viewEndDayHour}).length>0},o._getPrerenderFilterResources=function(e){var t=this.viewDataProvider.getCellsGroup(e);return(0,p.getResourcesDataByGroups)(this.loadedResources,this.resources,[t])},w(i,[{key:"strategyName",get:function(){return"virtual"}},{key:"resources",get:function(){return this.options.resources}}]),i}(k);t.AppointmentFilterVirtualStrategy=D},11305:function(e,t,n){t.sortAppointmentsByStartDate=t.replaceWrongEndDate=t.getTrimDates=t.getRecurrenceException=t.getAppointmentTakesSeveralDays=t.getAppointmentTakesAllDay=t.compareDateWithStartDayHour=t.compareDateWithEndDayHour=t._isEndDateWrong=t._getAppointmentDurationInHours=t._convertRecurrenceException=t._appointmentPartInInterval=t._appointmentHasShortDayDuration=t._appointmentHasAllDayDuration=void 0;var i=s(n(91198)),o=s(n(32511)),a=s(n(69434)),r=n(86474);function s(e){return e&&e.__esModule?e:{default:e}}var l=i.default.dateToMilliseconds;t.compareDateWithStartDayHour=function(e,t,n,o,a){var r=i.default.dateTimeFromDecimal(n);return e.getHours()>=r.hours&&e.getMinutes()>=r.minutes||t.getHours()===r.hours&&t.getMinutes()>r.minutes||t.getHours()>r.hours||a||o},t.compareDateWithEndDayHour=function(e){var t,n=e.startDate,o=e.endDate,a=e.startDayHour,r=e.endDayHour,s=e.viewStartDayHour,u=e.viewEndDayHour,d=e.allDay,c=e.severalDays,h=e.min,f=e.max,p=e.checkIntersectViewport,g=(24-u+s)*l("hour"),m=o.getTime()-n.getTime(),_=(g-m)/l("hour"),v=n.getHours(),y=n.getMinutes(),x=i.default.dateTimeFromDecimal(r),b=i.default.dateTimeFromDecimal(a),w=n<f&&o>h;return t=p&&w||v<x.hours||v===x.hours&&y<x.minutes||d&&n<=f||c&&w&&(v<x.hours||60*o.getHours()+o.getMinutes()>60*b.hours),m<g&&v>x.hours&&y>x.minutes&&_<=v-r&&(t=!1),t},t.getTrimDates=function(e,t){var n=i.default.trimTime(e),o=i.default.trimTime(t);return o.setDate(o.getDate()+1),[n,o]};var u=function(e,t){return(t.getTime()-e.getTime())/l("hour")};t._getAppointmentDurationInHours=u,t.getAppointmentTakesSeveralDays=function(e){return!i.default.sameDate(e.startDate,e.endDate)};var d=function(e,t,n,i){return u(e,t)>=i-n&&e.getHours()===n&&t.getHours()===i};t._appointmentHasShortDayDuration=d;var c=function(e,t){return!t||isNaN(t.getTime())||e.getTime()>t.getTime()};t._isEndDateWrong=c;var h=function(e,t,n,i){return e=new Date(e),t=new Date(t),u(e,t)>=24||d(e,t,n,i)};t._appointmentHasAllDayDuration=h,t._appointmentPartInInterval=function(e,t,n,i){var o=e.getHours(),a=t.getHours();return o<=n&&a<=i&&a>=n||a>=i&&o<=i&&o>=n},t.getRecurrenceException=function(e,t,n){var i=e.recurrenceException;if(i){for(var o=i.split(","),a=0;a<o.length;a++)o[a]=f(o[a],e.startDate,t,n);return o.join()}return i};var f=function(e,t,n,i){e=e.replace(/\s/g,"");var r=function(e){return n.createDate(e,{path:"toGrid"})},s=a.default.deserializeDate(e),l=r(t),u=r(s);return u=o.default.correctRecurrenceExceptionByTimezone(u,l,i),a.default.serializeDate(u,"yyyyMMddTHHmmss")};t._convertRecurrenceException=f,t.getAppointmentTakesAllDay=function(e,t,n){return e.allDay||h(e.startDate,e.endDate,t,n)},t.replaceWrongEndDate=function(e,t,n,o,a){if(c(t,n)){var r=function(e,t){return e?i.default.setToDayEnd(new Date(t)):new Date(t.getTime()+o*l("minute"))}(e.allDay,t);a.setter.endDate(e,r)}},t.sortAppointmentsByStartDate=function(e,t){e.sort((function(e,n){var i=new Date(r.ExpressionUtils.getField(t,"startDate",e.settings||e)),o=new Date(r.ExpressionUtils.getField(t,"startDate",n.settings||n));return Math.sign(i.getTime()-o.getTime())}))}},17275:function(e,t,n){t.renderAppointments=void 0;var i=r(n(68374)),o=n(9259),a=r(n(55304));function r(e){return e&&e.__esModule?e:{default:e}}t.renderAppointments=function(e){var t=e.instance,n=e.$dateTable,i=e.viewModel,r=s(n);o.utils.renovation.renderComponent(t,r,a.default,"renovatedAppointments",i)};var s=function(e){var t=(0,i.default)(".dx-appointments-container");return 0===t.length&&(t=(0,i.default)("<div>").addClass("dx-appointments-container").appendTo(e)),t}},20912:function(e,t,n){var i;function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.default=void 0;var a=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var a=i.prototype;return a.getDropDownAppointmentWidth=function(e,t){return this.getDropDownButtonAdaptiveSize()},a.getDropDownButtonAdaptiveSize=function(){return 28},a.getCollectorTopOffset=function(e){var t=this._renderingStrategy;return t.allDaySupported()&&e?(t.allDayHeight-t.getDropDownButtonAdaptiveSize())/2:this._renderingStrategy.cellHeight-40},a.getCollectorLeftOffset=function(){var e=this._renderingStrategy.getDropDownAppointmentWidth();return(this._renderingStrategy.cellWidth-e)/2},a.getAppointmentDefaultOffset=function(){return 35},a.getDynamicAppointmentCountPerCell=function(){return this._renderingStrategy.allDaySupported()?{allDay:0,simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:0},a.getDropDownAppointmentHeight=function(){return 28},a._getAppointmentMinCount=function(){return 0},a._getAppointmentDefaultWidth=function(){return this._renderingStrategy.allDaySupported()?30:e.prototype._getAppointmentDefaultWidth.call(this)},a._calculateDynamicAppointmentCountPerCell=function(){return Math.floor(this._renderingStrategy._getAppointmentMaxWidth()/this._renderingStrategy._getAppointmentDefaultWidth())},i}(((i=n(97250))&&i.__esModule?i:{default:i}).default);t.default=a,e.exports=t.default,e.exports.default=t.default},97250:function(e,t,n){t.default=void 0;var i=n(35922),o=function(){function e(e){this._renderingStrategy=e}var t=e.prototype;return t.getDropDownAppointmentWidth=function(e,t){return t||!(0,i.isDefined)(t)?75*this._renderingStrategy.cellWidth/100:24},t.getCollectorTopOffset=function(){return 3},t.getCollectorLeftOffset=function(){return 3},t.getAppointmentDefaultOffset=function(){return this._renderingStrategy._isCompactTheme()?22:this._renderingStrategy.appointmentOffset},t.getDynamicAppointmentCountPerCell=function(){var e=this._renderingStrategy,t=e.cellHeight,n=Math.floor((t-e._getAppointmentDefaultOffset())/e._getAppointmentDefaultHeight())||this._getAppointmentMinCount();return e.allDaySupported()?{allDay:"vertical"===e.groupOrientation?n:this._renderingStrategy.appointmentCountPerCell,simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:n},t.getDropDownAppointmentHeight=function(){},t._getAppointmentMinCount=function(){return 1},t._calculateDynamicAppointmentCountPerCell=function(){return Math.floor(this._renderingStrategy._getAppointmentMaxWidth()/50)},t._getAppointmentDefaultWidth=function(){return 40},e}();t.default=o,e.exports=t.default,e.exports.default=t.default},72097:function(e,t,n){t.default=void 0;var i=f(n(97250)),o=f(n(20912)),a=n(13306),r=f(n(91198)),s=n(35922),l=n(75811),u=n(4236),d=f(n(32511)),c=n(5480),h=n(11305);function f(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var m=r.default.dateToMilliseconds,_=function(){function e(e){this.options=e,this._initPositioningStrategy()}var t,n,f=e.prototype;return f._correctCollectorCoordinatesInAdaptive=function(e,t){e.top=e.top+this.getCollectorTopOffset(t),e.left=e.left+this.getCollectorLeftOffset()},f._initPositioningStrategy=function(){this._positioningStrategy=this.isAdaptive?new o.default(this):new i.default(this)},f.getPositioningStrategy=function(){return this._positioningStrategy},f.getAppointmentMinSize=function(){return 2},f.keepAppointmentSettings=function(){return!1},f.getDeltaTime=function(){},f.getAppointmentGeometry=function(e){return e},f.needCorrectAppointmentDates=function(){return!0},f.getDirection=function(){return"horizontal"},f.createTaskPositionMap=function(e){var t=this;delete this._maxAppointmentCountPerCell;var n=null==e?void 0:e.length;if(n){for(var i=[],o=0;o<n;o++){var a=this._getItemPosition(e[o]);a.length&&this.rtlEnabled&&(a=this._correctRtlCoordinates(a)),a.forEach((function(e){e.leftVirtualCellCount=t.leftVirtualCellCount,e.topVirtualCellCount=t.topVirtualCellCount,e.leftVirtualWidth=t.leftVirtualCellCount*t.cellWidth,e.topVirtualHeight=t.topVirtualCellCount*t.cellHeight})),i.push(a)}var r=this._getSortedPositions(i),s=this._getResultPositions(r);return this._getExtendedPositionMap(i,s)}},f._getDeltaWidth=function(e,t){var n=this.resizableStep||this.getAppointmentMinSize(),i=t.width;return Math.round((e.width-i)/n)},f._correctRtlCoordinates=function(e){var t=e[0].width||this._getAppointmentMaxWidth();return e.forEach((function(e){e.appointmentReduced||(e.left-=t)})),e},f._getAppointmentMaxWidth=function(){return this.cellWidth},f._getItemPosition=function(e){for(var t=this.generateAppointmentSettings(e),n=this.isAllDay(e),i=[],o=0;o<t.length;o++){var r=this.calculateAppointmentHeight(e,t[o]),s=this.calculateAppointmentWidth(e,t[o]),l=s,u=null,d=[],c=t[o].rowIndex,h=t[o].columnIndex;if(this._needVerifyItemSize()||n){var f=t[o].hMax;this.isAppointmentGreaterThan(f,{left:t[o].left,width:s})&&(u="head",c=t[o].rowIndex,h=t[o].columnIndex,l=this._reduceMultiWeekAppointment(s,{left:t[o].left,right:f}),d=this._getAppointmentParts({sourceAppointmentWidth:s,reducedWidth:l,height:r},t[o]),this.rtlEnabled&&(t[o].left=f))}(0,a.extend)(t[o],{height:r,width:l,allDay:n,rowIndex:c,columnIndex:h,appointmentReduced:u}),i=this._getAppointmentPartsPosition(d,t[o],i)}return i},f._getAppointmentPartsPosition=function(e,t,n){return e.length?(e.unshift(t),n=n.concat(e)):n.push(t),n},f.getAppointmentSettingsGenerator=function(e){return new u.AppointmentSettingsGenerator(p({rawAppointment:e,appointmentTakesAllDay:this.isAppointmentTakesAllDay(e),getPositionShiftCallback:this.getPositionShift.bind(this)},this.options))},f.generateAppointmentSettings=function(e){return this.getAppointmentSettingsGenerator(e).create()},f.isAppointmentTakesAllDay=function(e){var t=(0,c.createAppointmentAdapter)(e,this.dataAccessors,this.timeZoneCalculator);return(0,h.getAppointmentTakesAllDay)(t,this.viewStartDayHour,this.viewEndDayHour)},f._getAppointmentParts=function(){return[]},f._getCompactAppointmentParts=function(e){var t=this.cellWidth||this.getAppointmentMinSize();return Math.round(e/t)},f._reduceMultiWeekAppointment=function(e,t){return this.rtlEnabled?Math.floor(t.left-t.right):t.right-Math.floor(t.left)},f.calculateAppointmentHeight=function(){return 0},f.calculateAppointmentWidth=function(){return 0},f.isAppointmentGreaterThan=function(e,t){var n=t.left+t.width-e;return this.rtlEnabled&&(n=e+t.width-t.left),n>this.cellWidth/2},f.isAllDay=function(){return!1},f.cropAppointmentWidth=function(e,t){return this.isGroupedByDate?t:e},f._getSortedPositions=function(e){for(var t=this,n=[],i=function(e){return Math.round(100*e)/100},o=function(e,t,n,o,a,r,s,l){return{i:e,j:t,top:i(n),left:i(o),bottom:i(a),right:i(r),cellPosition:s,allDay:l}},a=0,r=e.length;a<r;a++)for(var s=0,l=e[a].length;s<l;s++){var u=e[a][s],d=u.top,c=u.left,h=u.height,f=u.width,p=u.cellPosition,g=u.allDay;n.push(o(a,s,d,c,d+h,c+f,p,g))}return n.sort((function(e,n){return t._sortCondition(e,n)}))},f._sortCondition=function(){},f._getConditions=function(e,t){var n=this._isSomeEdge(e,t);return{columnCondition:n||this._normalizeCondition(e.left,t.left),rowCondition:n||this._normalizeCondition(e.top,t.top),cellPositionCondition:n||this._normalizeCondition(e.cellPosition,t.cellPosition)}},f._rowCondition=function(e,t){var n=this._getConditions(e,t);return n.columnCondition||n.rowCondition},f._columnCondition=function(e,t){var n=this._getConditions(e,t);return n.rowCondition||n.columnCondition},f._isSomeEdge=function(e,t){return e.i===t.i&&e.j===t.j},f._normalizeCondition=function(e,t){var n=e-t;return Math.abs(n)>1?n:0},f._isItemsCross=function(e,t){var n=!!e.allDay==!!t.allDay,i=e.allDay&&t.allDay;if(n){var o=this._getOrientation(i);return this._checkItemsCrossing(e,t,o)}return!1},f._checkItemsCrossing=function(e,t,n){var i=Math.floor(e[n[0]]),o=Math.floor(e[n[1]]),a=Math.ceil(t[n[0]]),r=Math.ceil(t[n[1]]);return Math.abs(e[n[2]]-t[n[2]])<=1&&(i<=a&&o>a||i<r&&o>=r||i===a&&o===r)},f._getOrientation=function(e){return e?["left","right","top"]:["top","bottom","left"]},f._getResultPositions=function(e){var t,n,i,o,a=this,r=[],s=0,l=0,u={},d=function e(t,n){return t.some((function(e){return e===n}))?e(t,++n):n},c=function(e,t){var n=t||0;return{index:n,i:e.i,j:e.j,left:e.left,right:e.right,top:e.top,bottom:e.bottom,allDay:e.allDay,sortedIndex:a._skipSortedIndex(n)?null:s++}},h=function(e){u.items=[c(e)],u.left=e.left,u.right=e.right,u.top=e.top,u.bottom=e.bottom,u.allDay=e.allDay},f=function(e){e.forEach((function(e){r.push({index:e.index,count:l+1,i:e.i,j:e.j,sortedIndex:e.sortedIndex})}))};for(t=0;t<e.length;t++)n=e[t],i=[],u.items?this._isItemsCross(u,n)?(u.items.forEach((function(e,t){a._isItemsCross(e,n)&&i.push(e.index)})),o=i.length?d(i,0):0,u.items.push(c(n,o)),l=Math.max(o,l),u.left=Math.min(u.left,n.left),u.right=Math.max(u.right,n.right),u.top=Math.min(u.top,n.top),u.bottom=Math.max(u.bottom,n.bottom),u.allDay=n.allDay):(f(u.items),u={},h(n),l=0):h(n);return u.items&&f(u.items),r.sort((function(e,t){var n=e.j-t.j;return e.i-t.i||n}))},f._skipSortedIndex=function(e){return e>this._getMaxAppointmentCountPerCell()-1},f._findIndexByKey=function(e,t,n,i,o){for(var a=0,r=0,s=e.length;r<s;r++)if(e[r][t]===i&&e[r][n]===o){a=r;break}return a},f._getExtendedPositionMap=function(e,t){for(var n=0,i=[],o=0,a=e.length;o<a;o++){for(var r=[],s=0,l=e[o].length;s<l;s++)e[o][s].index=t[n].index,e[o][s].sortedIndex=t[n].sortedIndex,e[o][s].count=t[n++].count,r.push(e[o][s]),this._checkLongCompactAppointment(e[o][s],r);i.push(r)}return i},f._checkLongCompactAppointment=function(e,t){return this._splitLongCompactAppointment(e,t),t},f._splitLongCompactAppointment=function(e,t){var n=this._getMaxAppointmentCountPerCellByType(e.allDay),i=0;if(void 0!==n&&e.index>n-1){e.isCompact=!0,i=this._getCompactAppointmentParts(e.width);for(var o=1;o<i;o++){var r=(0,a.extend)(!0,{},e);r.left=this._getCompactLeftCoordinate(e.left,o),r.columnIndex=r.columnIndex+o,r.sortedIndex=null,t.push(r)}}return t},f._adjustDurationByDaylightDiff=function(e,t,n){var i=d.default.getDaylightOffset(t,n);return this._needAdjustDuration(i)?this._calculateDurationByDaylightDiff(e,i):e},f._needAdjustDuration=function(e){return 0!==e},f._calculateDurationByDaylightDiff=function(e,t){return e+t*m("minute")},f._getCollectorLeftOffset=function(e){if(e||!this.isApplyCompactAppointmentOffset())return 0;var t=this.getDropDownAppointmentWidth(this.intervalCount,e),n=this._isCompactTheme()?1:5;return this.cellWidth-t-n},f._markAppointmentAsVirtual=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._getMaxAppointmentCountPerCellByType(t);if(e.count-n>0){var i=e.top,o=e.left,a=this.isAdaptive||!t&&this.supportCompactDropDownAppointments();e.virtual={left:o+this._getCollectorLeftOffset(t),top:i,width:this.getDropDownAppointmentWidth(this.intervalCount,t),height:this.getDropDownAppointmentHeight(),index:this._generateAppointmentCollectorIndex(e,t),isAllDay:t,isCompact:a}}},f.isApplyCompactAppointmentOffset=function(){return this.supportCompactDropDownAppointments()},f.supportCompactDropDownAppointments=function(){return!0},f._generateAppointmentCollectorIndex=function(e,t){var n=e.groupIndex,i=e.rowIndex,o=e.columnIndex;return"".concat(n,"-").concat(i,"-").concat(o,"-").concat(t)},f._getMaxAppointmentCountPerCellByType=function(e){var t=this._getMaxAppointmentCountPerCell();return(0,s.isObject)(t)?e?t.allDay:t.simple:t},f.getDropDownAppointmentWidth=function(e,t){return this.getPositioningStrategy().getDropDownAppointmentWidth(e,t)},f.getDropDownAppointmentHeight=function(){return this.getPositioningStrategy().getDropDownAppointmentHeight()},f.getDropDownButtonAdaptiveSize=function(){return 28},f.getCollectorTopOffset=function(e){return this.getPositioningStrategy().getCollectorTopOffset(e)},f.getCollectorLeftOffset=function(){return this.getPositioningStrategy().getCollectorLeftOffset()},f.getAppointmentDataCalculator=function(){},f._customizeCoordinates=function(e,t,n,i,o){var a=e.index,r=t/n,s=e.top+a*r+i,l=e.width,u=e.left;return e.isCompact&&(this.isAdaptive&&this._correctCollectorCoordinatesInAdaptive(e,o),this._markAppointmentAsVirtual(e,o)),{height:r,width:l,top:s,left:u,empty:this._isAppointmentEmpty(t,l)}},f._isAppointmentEmpty=function(e,t){return e<this._getAppointmentMinHeight()||t<this._getAppointmentMinWidth()},f._calculateGeometryConfig=function(e){var t=this.maxAppointmentsPerCell,n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(t,e),a=this._getDefaultRatio(e,o),r=this._getMaxHeight();(0,s.isNumeric)(o)||(o=e.count,a=(r-n.unlimited)/r);var l=(1-a)*r;return("auto"===t||(0,s.isNumeric)(t))&&(a=1,r-=i,l=i),{height:a*r,appointmentCountPerCell:o,offset:l}},f._getAppointmentCount=function(){},f._getDefaultRatio=function(){},f._getOffsets=function(){},f._getMaxHeight=function(){},f._needVerifyItemSize=function(){return!1},f._getMaxAppointmentCountPerCell=function(){if(!this._maxAppointmentCountPerCell){var e,t=this.maxAppointmentsPerCell;(0,s.isNumeric)(t)&&(e=t),"auto"===t&&(e=this._getDynamicAppointmentCountPerCell()),"unlimited"===t&&(e=void 0),this._maxAppointmentCountPerCell=e}return this._maxAppointmentCountPerCell},f._getDynamicAppointmentCountPerCell=function(){return this.getPositioningStrategy().getDynamicAppointmentCountPerCell()},f.allDaySupported=function(){return!1},f._isCompactTheme=function(){return"compact"===((0,l.current)()||"").split(".").pop()},f._getAppointmentDefaultOffset=function(){return this.getPositioningStrategy().getAppointmentDefaultOffset()},f._getAppointmentDefaultHeight=function(){return this._getAppointmentHeightByTheme()},f._getAppointmentMinHeight=function(){return this._getAppointmentDefaultHeight()},f._getAppointmentHeightByTheme=function(){return this._isCompactTheme()?18:20},f._getAppointmentDefaultWidth=function(){return this.getPositioningStrategy()._getAppointmentDefaultWidth()},f._getAppointmentMinWidth=function(){return this._getAppointmentDefaultWidth()},f._needVerticalGroupBounds=function(){return!1},f._needHorizontalGroupBounds=function(){return!1},f.getAppointmentDurationInMs=function(e,t,n){var i=t.getTime()-e.getTime(),o=m("day"),a=this.visibleDayDuration,s=0;if(n)s=Math.ceil(i/o)*a;else{var l,u=!d.default.isSameAppointmentDates(e,t),c=Math.floor(i/o);if(u){var h=new Date(new Date(e).setHours(this.endDayHour,0,0)),f=o-a-(e.getTime()>h.getTime()?e.getTime()-h.getTime():0);l=i-(c?c*o:f);var p=this.startDayHour*m("hour"),g=t-r.default.trimTime(t);g<p&&(c&&(l-=f),l+=p-g)}else l=i%o;l>a&&(l=a),s=c*a+l||m("minute")}return s},f.getPositionShift=function(e,t){return{top:e*this.cellHeight,left:0,cellPosition:0}},t=e,(n=[{key:"key",get:function(){return this.options.key}},{key:"isAdaptive",get:function(){return this.options.adaptivityEnabled}},{key:"rtlEnabled",get:function(){return this.options.rtlEnabled}},{key:"startDayHour",get:function(){return this.options.startDayHour}},{key:"endDayHour",get:function(){return this.options.endDayHour}},{key:"maxAppointmentsPerCell",get:function(){return this.options.maxAppointmentsPerCell}},{key:"cellWidth",get:function(){return this.options.cellWidth}},{key:"cellHeight",get:function(){return this.options.cellHeight}},{key:"allDayHeight",get:function(){return this.options.allDayHeight}},{key:"resizableStep",get:function(){return this.options.resizableStep}},{key:"isGroupedByDate",get:function(){return this.options.isGroupedByDate}},{key:"visibleDayDuration",get:function(){return this.options.visibleDayDuration}},{key:"viewStartDayHour",get:function(){return this.options.viewStartDayHour}},{key:"viewEndDayHour",get:function(){return this.options.viewEndDayHour}},{key:"cellDuration",get:function(){return this.options.cellDuration}},{key:"cellDurationInMinutes",get:function(){return this.options.cellDurationInMinutes}},{key:"leftVirtualCellCount",get:function(){return this.options.leftVirtualCellCount}},{key:"topVirtualCellCount",get:function(){return this.options.topVirtualCellCount}},{key:"positionHelper",get:function(){return this.options.positionHelper}},{key:"showAllDayPanel",get:function(){return this.options.showAllDayPanel}},{key:"isGroupedAllDayPanel",get:function(){return this.options.isGroupedAllDayPanel}},{key:"groupOrientation",get:function(){return this.options.groupOrientation}},{key:"rowCount",get:function(){return this.options.rowCount}},{key:"groupCount",get:function(){return this.options.groupCount}},{key:"currentDate",get:function(){return this.options.currentDate}},{key:"appointmentCountPerCell",get:function(){return this.options.appointmentCountPerCell}},{key:"appointmentOffset",get:function(){return this.options.appointmentOffset}},{key:"allowResizing",get:function(){return this.options.allowResizing}},{key:"allowAllDayResizing",get:function(){return this.options.allowAllDayResizing}},{key:"viewDataProvider",get:function(){return this.options.viewDataProvider}},{key:"dataAccessors",get:function(){return this.options.dataAccessors}},{key:"timeZoneCalculator",get:function(){return this.options.timeZoneCalculator}},{key:"intervalCount",get:function(){return this.options.intervalCount}},{key:"isVirtualScrolling",get:function(){return this.options.isVirtualScrolling}}])&&g(t.prototype,n),e}();t.default=_,e.exports=t.default,e.exports.default=t.default},69219:function(e,t,n){t.default=void 0;var i=c(n(91198)),o=n(95479),a=n(89386),r=c(n(72097)),s=n(86474),l=n(98140),u=n(5480),d=n(11305);function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var c,p,g=r.prototype;return g.getAppointmentMinSize=function(){},g.getDeltaTime=function(){},g.keepAppointmentSettings=function(){return!0},g.getAppointmentGeometry=function(e){return e},g.groupAppointmentByResources=function(e){var t=this.instance._getCurrentViewOption("groups"),n={loadedResources:this.options.loadedResources,resources:this.options.resources,dataAccessors:this.dataAccessors.resources};return(0,l.groupAppointmentsByResources)(n,e,t)},g.createTaskPositionMap=function(e){var t,n;if(this.calculateRows(e,this.agendaDuration,this.currentDate),e.length){t=this.instance.fire("getAgendaVerticalStepHeight"),n=this.groupAppointmentByResources(e);var i=[];(0,o.each)(n,function(e,t){var n=[],a=[];(0,o.each)(t,function(e,t){var i=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(t,e),o=null;i.indexes.length||(o={parts:[]},o=this.instance.getAppointmentsInstance()._processLongAppointment(t),n=n.concat(o.parts)),n=n.concat(i.parts),a=a.concat(i.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(a,t),this.instance.getAppointmentsInstance()._combineAppointments(t,n),i=i.concat(t)}.bind(this)),Array.prototype.splice.apply(e,[0,e.length].concat(i))}var a=[],r=0;return e.forEach(function(e,i){a.push([{height:t,width:"100%",sortedIndex:r++,groupIndex:this._calculateGroupIndex(i,n),agendaSettings:e.settings}]),delete e.settings}.bind(this)),a},g._calculateGroupIndex=function(e,t){var n,i=0;for(var o in t){var a=t[o].length;if(e>=i&&e<i+a){n=Number(o);break}i+=a}return n},g._getDeltaWidth=function(){},g._getAppointmentMaxWidth=function(){return this.cellWidth},g._needVerifyItemSize=function(){return!1},g._getAppointmentParts=function(){},g._reduceMultiWeekAppointment=function(){},g.calculateAppointmentHeight=function(){return 0},g.calculateAppointmentWidth=function(){return 0},g.isAppointmentGreaterThan=function(){},g.isAllDay=function(){return!1},g._sortCondition=function(){},g._rowCondition=function(){},g._columnCondition=function(){},g._findIndexByKey=function(){},g._markAppointmentAsVirtual=function(){},g.getDropDownAppointmentWidth=function(){},g.getCollectorLeftOffset=function(){},g.getCollectorTopOffset=function(){},g.replaceWrongAppointmentEndDate=function(e,t,n){var i=(0,u.createAppointmentAdapter)(e,this.dataAccessors,this.timeZoneCalculator);(0,d.replaceWrongEndDate)(i,t,n,this.cellDuration,this.dataAccessors)},g.calculateRows=function(e,t,n,r){this._rows=[],n=i.default.trimTime(new Date(n));var l=this.groupAppointmentByResources(e);return(0,o.each)(l,function(e,i){var l=[],c={indexes:[],parts:[]};if(!i.length)return this._rows.push([]),!0;(0,o.each)(i,function(e,t){var n=s.ExpressionUtils.getField(this.dataAccessors,"startDate",t),i=s.ExpressionUtils.getField(this.dataAccessors,"endDate",t);this.replaceWrongAppointmentEndDate(t,n,i),r&&delete t.settings;var o=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(t,e,!1);c.parts=c.parts.concat(o.parts),c.indexes=c.indexes.concat(o.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(c.indexes,i),(0,a.merge)(i,c.parts);for(var h=i.length,f=0;f<t;f++){var p=new Date(n);p.setMilliseconds(p.getMilliseconds()+864e5*f),void 0===l[f]&&(l[f]=0);for(var g=0;g<h;g++){var m=i[g].settings||i[g],_=(0,u.createAppointmentAdapter)(i[g],this.dataAccessors,this.timeZoneCalculator),v=(0,d.getAppointmentTakesSeveralDays)(_),y=s.ExpressionUtils.getField(this.dataAccessors,"recurrenceRule",i[g]);(this.instance.fire("dayHasAppointment",p,m,!0)||!y&&v&&this.instance.fire("dayHasAppointment",p,i[g],!0))&&(l[f]+=1)}}this._rows.push(l)}.bind(this)),this._rows},g._iterateRow=function(e,t,n){for(var i=0;i<e.length;i++)if(t.counter=t.counter+e[i],t.counter>=n){t.indexInRow=i;break}},g.getDateByIndex=function(e,t,n){var i={counter:0,indexInRow:0};e++;for(var o=0;o<t.length&&(this._iterateRow(t[o],i,e),!i.indexInRow);o++);return new Date(new Date(n).setDate(n.getDate()+i.indexInRow))},g.getAppointmentDataCalculator=function(){return function(e,t){var n=e.index(),i=this.instance.getStartViewDate(),o=this.getDateByIndex(n,this._rows,i),a=new Date(t);return{startDate:new Date(o.setHours(a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()))}}.bind(this)},c=r,(p=[{key:"instance",get:function(){return this.options.instance}},{key:"agendaDuration",get:function(){return this.options.agendaDuration}}])&&h(c.prototype,p),r}(r.default);t.default=p,e.exports=t.default,e.exports.default=t.default},52359:function(e,t,n){t.default=void 0;var i=s(n(72097)),o=s(n(91198)),a=n(86474),r=s(n(37009));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=o.default.dateToMilliseconds,d=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var o=i.prototype;return o._needVerifyItemSize=function(){return!0},o.calculateAppointmentWidth=function(e,t){var n=this.cellWidth||this.getAppointmentMinSize(),i=a.ExpressionUtils.getField(this.dataAccessors,"allDay",e),o=t.info.appointment.startDate,s=t.info.appointment.endDate,l=t.info.appointment.normalizedEndDate,d=this.getAppointmentDurationInMs(o,l,i);d=this._adjustDurationByDaylightDiff(d,o,l);var c=this.cellDurationInMinutes*u("minute"),h=(d-(0,r.default)(o,s,this.viewDataProvider)*u("hour"))/c;return this.cropAppointmentWidth(h*n,n)},o._needAdjustDuration=function(e){return e<0},o.getAppointmentGeometry=function(t){var n=this._customizeAppointmentGeometry(t);return e.prototype.getAppointmentGeometry.call(this,n)},o._customizeAppointmentGeometry=function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset)},o._getOffsets=function(){return{unlimited:0,auto:0}},o._getCompactLeftCoordinate=function(e,t){return e+(this.cellWidth||this.getAppointmentMinSize())*t},o._getMaxHeight=function(){return this.cellHeight||this.getAppointmentMinSize()},o._getAppointmentCount=function(e,t){return this._getMaxAppointmentCountPerCellByType(!1)},o._getAppointmentDefaultHeight=function(){return 60},o._getAppointmentMinHeight=function(){return 35},o._sortCondition=function(e,t){return this._columnCondition(e,t)},o._getOrientation=function(){return["left","right","top"]},o.getDropDownAppointmentWidth=function(){return this.cellWidth-4},o.getDeltaTime=function(e,t){var n=e.width-t.width;return u("minute")*Math.round(n/this.cellWidth*this.cellDurationInMinutes)},o.isAllDay=function(e){return a.ExpressionUtils.getField(this.dataAccessors,"allDay",e)},o._isItemsCross=function(e,t){var n=this._getOrientation();return this._checkItemsCrossing(e,t,n)},o.getPositionShift=function(t){var n=e.prototype.getPositionShift.call(this,t),i=this.cellWidth*t;return this.rtlEnabled&&(i*=-1),{top:0,left:i+=n.left,cellPosition:i}},o.supportCompactDropDownAppointments=function(){return!1},i}(i.default);t.default=d,e.exports=t.default,e.exports.default=t.default},71991:function(e,t,n){t.default=void 0;var i,o=(i=n(34794))&&i.__esModule?i:{default:i},a=n(69576);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n);var o,l,c=i.prototype;return c._getLeftPosition=function(e){var t=this.getGroupWidth(e.groupIndex);return this._calculateMultiWeekAppointmentLeftOffset(e.hMax,t)},c._getChunkCount=function(e,t,n){var i=e-t+n;return Math.ceil(i/n)},c._getChunkWidths=function(e){var t=e.reducedWidth,n=Math.floor(e.sourceAppointmentWidth);return[t,n,n-t]},c._getTailChunkSettings=function(e,t,n){var i=e%t||t,o=n+(t-i);return[i,this.rtlEnabled?o:n]},c._getAppointmentParts=function(e,t){for(var n=[],i=Math.round(this.getGroupWidth(t.groupIndex)),o=s(this._getChunkWidths(e,t,i),3),a=o[0],l=o[1],u=o[2],d=this._getLeftPosition(t),c=this.endViewDate>t.info.appointment.endDate,h=this._getChunkCount(l,a,i),f=s(this._getTailChunkSettings(u,i,d),2),p=f[0],g=f[1],m=1;m<h;m++){var _=t.top+this.cellHeight*m,v=c&&m===h-1;n.push(r({},t,{top:_,left:v?g:d,height:e.height,width:v?p:i,appointmentReduced:v?"tail":"body",rowIndex:++t.rowIndex,columnIndex:0}))}return n},c._calculateMultiWeekAppointmentLeftOffset=function(e,t){return this.rtlEnabled?e:e-t},c.getGroupWidth=function(e){return(0,a.getGroupWidth)(e,this.viewDataProvider,{intervalCount:this.options.intervalCount,currentDate:this.options.currentDate,viewType:this.options.viewType,hoursInterval:this.options.hoursInterval,startDayHour:this.options.startDayHour,endDayHour:this.options.endDayHour,isVirtualScrolling:this.isVirtualScrolling,rtlEnabled:this.rtlEnabled,DOMMetaData:this.DOMMetaData})},c._getAppointmentDefaultHeight=function(){return this._getAppointmentHeightByTheme()},c._getAppointmentMinHeight=function(){return this._getAppointmentDefaultHeight()},c._columnCondition=function(e,t){var n=this._getConditions(e,t);return n.rowCondition||n.columnCondition||n.cellPositionCondition},c.createTaskPositionMap=function(t){return e.prototype.createTaskPositionMap.call(this,t,!0)},c._getSortedPositions=function(t){return e.prototype._getSortedPositions.call(this,t,!0)},c._getDefaultRatio=function(){return.6},c._getOffsets=function(){return{unlimited:26,auto:30}},c.getDropDownAppointmentWidth=function(e){if(this.adaptivityEnabled)return this.getDropDownButtonAdaptiveSize();var t=e>1?60:36;return this.cellWidth-t},c.needCorrectAppointmentDates=function(){return!1},c._needVerticalGroupBounds=function(){return!1},c._needHorizontalGroupBounds=function(){return!0},c.getPositionShift=function(e){return{cellPosition:e*this.cellWidth,top:0,left:0}},o=i,(l=[{key:"endViewDate",get:function(){return this.options.endViewDate}},{key:"adaptivityEnabled",get:function(){return this.options.adaptivityEnabled}},{key:"DOMMetaData",get:function(){return this.options.DOMMetaData}}])&&u(o.prototype,l),i}(o.default);t.default=c,e.exports=t.default,e.exports.default=t.default},34794:function(e,t,n){t.default=void 0;var i=s(n(52359)),o=s(n(91198)),a=s(n(96687)),r=n(11305);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var s=i.prototype;return s.calculateAppointmentWidth=function(e,t){var n=o.default.trimTime(t.info.appointment.startDate),i=t.info.appointment.normalizedEndDate,a=this.cellWidth||this.getAppointmentMinSize(),r=Math.ceil(this._getDurationInDays(n,i)),s=this.cropAppointmentWidth(r*a,a);return this.isVirtualScrolling&&(s-=this.viewDataProvider.getSkippedDaysCount(t.groupIndex,n,i,r)*a),s},s._getDurationInDays=function(e,t){return this._adjustDurationByDaylightDiff(t.getTime()-e.getTime(),e,t)/o.default.dateToMilliseconds("day")||1},s.getDeltaTime=function(e,t){return 864e5*this._getDeltaWidth(e,t)},s.isAllDay=function(){return!1},s.createTaskPositionMap=function(t,n){return n||(0,r.sortAppointmentsByStartDate)(t,this.dataAccessors),e.prototype.createTaskPositionMap.call(this,t)},s._getSortedPositions=function(t,n){var i=e.prototype._getSortedPositions.call(this,t);return n||(i=(0,a.default)(i).sortBy("top").thenBy("left").thenBy("cellPosition").thenBy("i").toArray()),i},s.needCorrectAppointmentDates=function(){return!1},s.getPositionShift=function(){return{top:0,left:0,cellPosition:0}},i}(i.default);t.default=u,e.exports=t.default,e.exports.default=t.default},27845:function(e,t,n){t.default=void 0;var i=h(n(72097)),o=n(13306),a=n(35922),r=h(n(91198)),s=h(n(32511)),l=n(86474),u=n(5480),d=n(11305),c=h(n(37009));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=r.default.dateToMilliseconds,g=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var h=i.prototype;return h.getDeltaTime=function(e,t,n){var i=0;if(this.isAllDay(n))i=this._getDeltaWidth(e,t)*p("day");else{var o=e.height-t.height;i=p("minute")*Math.round(o/this.cellHeight*this.cellDurationInMinutes)}return i},h._correctCollectorCoordinatesInAdaptive=function(t,n){if(n)e.prototype._correctCollectorCoordinatesInAdaptive.call(this,t,n);else if(0===this._getMaxAppointmentCountPerCellByType()){var i=this.cellHeight,o=this.cellWidth;t.top+=(i-this.getDropDownButtonAdaptiveSize())/2,t.left+=(o-this.getDropDownButtonAdaptiveSize())/2}},h.getAppointmentGeometry=function(t){var n;return n=t.allDay?this._getAllDayAppointmentGeometry(t):this.isAdaptive&&t.isCompact?this._getAdaptiveGeometry(t):this._getVerticalAppointmentGeometry(t),e.prototype.getAppointmentGeometry.call(this,n)},h._getAdaptiveGeometry=function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset)},h._getItemPosition=function(t){var n=(0,u.createAppointmentAdapter)(t,this.dataAccessors,this.timeZoneCalculator),i=this.isAllDay(t),a=!!n.recurrenceRule,l=n.calculateStartDate("toGrid"),d=n.calculateEndDate("toGrid"),c=!s.default.isSameAppointmentDates(l,d);if(i)return e.prototype._getItemPosition.call(this,t);for(var h=this.generateAppointmentSettings(t),f=[],p=0;p<h.length;p++){var g=h[p],m=this.calculateAppointmentHeight(t,g),_=this.calculateAppointmentWidth(t,g),v=m,y=null,x=[],b=g.vMax;if(this._isMultiViewAppointment(g,m)||c&&!a){var w=r.default.sameDate(l,g.info.appointment.startDate)||a;w&&(v=this._reduceMultiDayAppointment(m,{top:g.top,bottom:b}),x=this._getAppointmentParts({sourceAppointmentHeight:m,reducedHeight:v,width:_},g)),this._isMultiDayAppointment(g,m)&&(y=w?"head":"tail")}(0,o.extend)(g,{height:v,width:_,allDay:i,appointmentReduced:y}),f=this._getAppointmentPartsPosition(x,g,f)}return f},h._isMultiDayAppointment=function(e,t){return!!this.isVirtualScrolling&&t>this._getGroupHeight()-this._getGroupTopOffset(e)},h._isMultiViewAppointment=function(e,t){return t>e.vMax-e.top},h._reduceMultiDayAppointment=function(e,t){return t.bottom-Math.floor(t.top)},h._getGroupHeight=function(){return this.cellHeight*this.rowCount},h._getGroupTopOffset=function(e){var t=e.groupIndex,n=Math.max(0,this.positionHelper.getGroupTop({groupIndex:t,showAllDayPanel:this.showAllDayPanel,isGroupedAllDayPanel:this.isGroupedAllDayPanel})),i=this.positionHelper.getOffsetByAllDayPanel({groupIndex:t,supportAllDayRow:this.allDaySupported(),showAllDayPanel:this.showAllDayPanel});return e.top-n-i},h._getTailHeight=function(e,t){return this.isVirtualScrolling?this._getGroupTopOffset(t)+e.sourceAppointmentHeight-this._getGroupHeight():e.sourceAppointmentHeight-e.reducedHeight},h._getAppointmentParts=function(e,t){var n=this._getTailHeight(e,t),i=e.width,a=[],r=Math.max(0,this.positionHelper.getGroupTop({groupIndex:t.groupIndex,showAllDayPanel:this.showAllDayPanel,isGroupedAllDayPanel:this.isGroupedAllDayPanel})),s=this.isGroupedByDate?this.groupCount:1,l=this.cellWidth*s,u=t.left+l;if(n>0){var d=this.getAppointmentMinSize();n<d&&(n=d),r+=this.positionHelper.getOffsetByAllDayPanel({groupIndex:t.groupIndex,supportAllDayRow:this.allDaySupported(),showAllDayPanel:this.showAllDayPanel}),a.push((0,o.extend)(!0,{},t,{top:r,left:u,height:n,width:i,appointmentReduced:"tail",rowIndex:0,columnIndex:t.columnIndex+s}))}return a},h._getMinuteHeight=function(){return this.cellHeight/this.cellDurationInMinutes},h._getCompactLeftCoordinate=function(e,t){return e+(1+(this.cellWidth||this.getAppointmentMinSize()))*t},h._getVerticalAppointmentGeometry=function(e){var t=this._calculateVerticalGeometryConfig(e);return this._customizeVerticalCoordinates(e,t.width,t.appointmentCountPerCell,t.offset)},h._customizeVerticalCoordinates=function(e,t,n,i,o){var a=Math.max(t/n,t/e.count),r=e.height,s=e.left+e.index*a,l=e.top;return e.isCompact&&this._markAppointmentAsVirtual(e,o),{height:r,width:a,top:l,left:s,empty:this._isAppointmentEmpty(r,t)}},h._calculateVerticalGeometryConfig=function(e){var t=this.maxAppointmentsPerCell,n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(t,e),r=this._getDefaultRatio(e,o),s=this._getMaxWidth();o||(o=e.count,r=(s-n.unlimited)/s);var l=(1-r)*s;return("auto"===t||(0,a.isNumeric)(t))&&(r=1,s-=i,l=0),{width:r*s,appointmentCountPerCell:o,offset:l}},h._getMaxWidth=function(){return this.cellWidth||this.cellWidth},h.isAllDay=function(e){if(l.ExpressionUtils.getField(this.dataAccessors,"allDay",e))return!0;var t=(0,u.createAppointmentAdapter)(e,this.dataAccessors,this.timeZoneCalculator);return(0,d.getAppointmentTakesAllDay)(t,this.startDayHour,this.endDayHour)},h._getAppointmentMaxWidth=function(){return this.cellWidth-this._getAppointmentDefaultOffset()},h.calculateAppointmentWidth=function(e,t){if(!this.isAllDay(e))return 0;var n=r.default.trimTime(t.info.appointment.startDate),i=r.default.trimTime(t.info.appointment.endDate),o=t.info.appointment.normalizedEndDate,a=this.cellWidth||this.getAppointmentMinSize(),s=(o.getTime()-n.getTime())/p("hour"),l=(0,c.default)(n,i,this.viewDataProvider),u=Math.ceil((s-l)/24)*a;return this.cropAppointmentWidth(u,a)},h.calculateAppointmentHeight=function(e,t){if(this.isAllDay(e))return 0;var n=t.info.appointment.startDate,i=t.info.appointment.normalizedEndDate,o=l.ExpressionUtils.getField(this.dataAccessors,"allDay",e),a=this.getAppointmentDurationInMs(n,i,o);return this._adjustDurationByDaylightDiff(a,n,i)/p("minute")*this._getMinuteHeight()},h.getDirection=function(){return"vertical"},h._sortCondition=function(e,t){var n=e.allDay-t.allDay,i=e.allDay&&t.allDay,o="vertical"===this.groupOrientation&&i?this._columnCondition(e,t):this._rowCondition(e,t);return n||o},h.allDaySupported=function(){return!0},h._getAllDayAppointmentGeometry=function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset,!0)},h._calculateGeometryConfig=function(t){this.allowResizing&&this.allowAllDayResizing||(t.skipResizing=!0);var n=e.prototype._calculateGeometryConfig.call(this,t);return t.count<=this._getDynamicAppointmentCountPerCell().allDay&&(n.offset=0),n},h._getAppointmentCount=function(e,t){return"auto"===e||1!==t.count||(0,a.isNumeric)(e)?this._getMaxAppointmentCountPerCellByType(t.allDay):t.count},h._getDefaultRatio=function(e,t){return e.count>this.appointmentCountPerCell?.65:1},h._getOffsets=function(){return{unlimited:5,auto:20}},h._getMaxHeight=function(){return this.allDayHeight||this.getAppointmentMinSize()},h._needVerticalGroupBounds=function(e){return!e},h._needHorizontalGroupBounds=function(){return!1},h.getPositionShift=function(t,n){return!n&&this.isAdaptive&&0===this._getMaxAppointmentCountPerCellByType(n)?{top:0,left:0,cellPosition:0}:e.prototype.getPositionShift.call(this,t,n)},i}(i.default);t.default=g,e.exports=t.default,e.exports.default=t.default},10142:function(e,t,n){var i;function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.default=void 0;var a=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n),i.prototype.isApplyCompactAppointmentOffset=function(){return(!this.isAdaptive||0!==this._getMaxAppointmentCountPerCellByType())&&this.supportCompactDropDownAppointments()},i}(((i=n(27845))&&i.__esModule?i:{default:i}).default);t.default=a,e.exports=t.default,e.exports.default=t.default},4236:function(e,t,n){t.DateGeneratorVirtualStrategy=t.DateGeneratorBaseStrategy=t.AppointmentSettingsGenerator=void 0;var i=p(n(91198)),o=n(35922),a=n(13306),r=n(88609),s=p(n(32511)),l=n(98140),u=n(5480),d=n(18986),c=n(86474),h=n(45985),f=n(36816);function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function x(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}var b=i.default.dateToMilliseconds,w=function(){function e(e){this.options=e}var t=e.prototype;return t.getIntervalDuration=function(){return this.appointmentTakesAllDay?this.options.allDayIntervalDuration:this.options.intervalDuration},t.generate=function(e){var t=(0,l.getResourcesFromItem)(this.options.resources,this.dataAccessors.resources,this.rawAppointment),n=this._getGroupIndices(t),i=this._createAppointments(e,n);i=this._getProcessedByAppointmentTimeZone(i,e),this._canProcessNotNativeTimezoneDates(e)&&(i=this._getProcessedNotNativeTimezoneDates(i,e));var o=this._createGridAppointmentList(i,e);return o=this._cropAppointmentsByStartDayHour(o,this.rawAppointment),o=this._fillNormalizedEndDate(o,this.rawAppointment),this._needSeparateLongParts()&&(o=this._separateLongParts(o,e)),{dateSettings:o,itemGroupIndices:n,isRecurrent:e.isRecurrent}},t._getProcessedByAppointmentTimeZone=function(e,t){var n=this;if(!(0,o.isEmptyObject)(t.startDateTimeZone)||!(0,o.isEmptyObject)(t.endDateTimeZone)){var i={startDate:this.timeZoneCalculator.getOffsets(t.startDate,t.startDateTimeZone),endDate:this.timeZoneCalculator.getOffsets(t.endDate,t.endDateTimeZone)};e.forEach((function(e){var o=n.timeZoneCalculator.getOffsets(e.startDate,t.startDateTimeZone),a=n.timeZoneCalculator.getOffsets(e.endDate,t.endDateTimeZone),r=i.startDate.appointment-o.appointment,s=i.endDate.appointment-a.appointment;o.appointment!==o.common&&(e.startDate=new Date(e.startDate.getTime()+r*b("hour"))),a.appointment!==a.common&&(e.endDate=new Date(e.endDate.getTime()+s*b("hour")))}))}return e},t._createAppointments=function(e,t){var n=this._createRecurrenceAppointments(e,t);return e.isRecurrent||0!==n.length||n.push({startDate:e.startDate,endDate:e.endDate}),n.map((function(e){var t,n=null===(t=e.endDate)||void 0===t?void 0:t.getTime();return e.startDate.getTime()===n&&e.endDate.setTime(n+b("minute")),v({},e,{exceptionDate:new Date(e.startDate)})}))},t._canProcessNotNativeTimezoneDates=function(e){return!(0,o.isEmptyObject)(this.timeZone)&&!!e.isRecurrent&&!s.default.isEqualLocalTimeZone(this.timeZone,e.startDate)},t._getProcessedNotNativeDateIfCrossDST=function(e,t){if(t<0){var n=new Date(e),i=new Date(n);if(i.setHours(i.getHours()-1),this.timeZoneCalculator.getOffsets(n).common!==this.timeZoneCalculator.getOffsets(i).common)return 0}return t},t._getCommonOffset=function(e){return this.timeZoneCalculator.getOffsets(e).common},t._getProcessedNotNativeTimezoneDates=function(e,t){var n=this;return e.map((function(e){var i=n._getCommonOffset(t.startDate)-n._getCommonOffset(e.startDate),o=n._getCommonOffset(t.endDate)-n._getCommonOffset(e.endDate);if(0===i&&0===o)return e;i=n._getProcessedNotNativeDateIfCrossDST(e.startDate,i),o=n._getProcessedNotNativeDateIfCrossDST(e.endDate,o);var a=new Date(e.startDate.getTime()+i*b("hour")),r=new Date(e.endDate.getTime()+o*b("hour")),s=n.timeZoneCalculator.createDate(a,{path:"toGrid"}),l=n.timeZoneCalculator.createDate(r,{path:"toGrid"});return t.duration>l.getTime()-s.getTime()&&(r=new Date(a.getTime()+t.duration)),v({},e,{startDate:a,endDate:r,exceptionDate:new Date(a)})}))},t._needSeparateLongParts=function(){return this.isVerticalOrientation?this.isGroupedByDate:this.isGroupedByDate&&this.appointmentTakesAllDay},t.normalizeEndDateByViewEnd=function(e,t){var n=new Date(t.getTime());if(!(0,h.isDateAndTimeView)(this.viewType)||!this.appointmentTakesAllDay){var o=i.default.roundToHour(this.endViewDate);n>o&&(n=o)}var a=this.viewEndDayHour,r=c.ExpressionUtils.getField(this.dataAccessors,"allDay",e),s=new Date(new Date(t.getTime()).setHours(a,0,0,0));return(n.getTime()>s.getTime()||r&&n.getHours()<a)&&(n=s),n},t._fillNormalizedEndDate=function(e,t){var n=this;return e.map((function(e){var i=e.endDate;return v({},e,{normalizedEndDate:n.normalizeEndDateByViewEnd(t,i)})}))},t._separateLongParts=function(e,t){var n=this,o=[];return e.forEach((function(e){var a=new Date(n.dateRange[1]),r=e.normalizedEndDate,s=i.default.getDatesOfInterval(e.startDate,r,{milliseconds:n.getIntervalDuration(n.appointmentTakesAllDay)}).filter((function(e){return new Date(e)<a})).map((function(i){var o=new Date(new Date(i).setMilliseconds(t.duration));return{startDate:i,endDate:o,normalizedEndDate:n.normalizeEndDateByViewEnd(n.rawAppointment,o),source:e.source}}));o=o.concat(s)})),o},t._createGridAppointmentList=function(e,t){var n=this;return e.map((function(e){var i=t.startDate.getTimezoneOffset()-e.startDate.getTimezoneOffset();return 0!==i&&n._canProcessNotNativeTimezoneDates(t)&&(e.startDate=new Date(e.startDate.getTime()+i*b("minute")),e.endDate=new Date(e.endDate.getTime()+i*b("minute")),e.exceptionDate=new Date(e.startDate)),{startDate:n.timeZoneCalculator.createDate(e.startDate,{path:"toGrid"}),endDate:n.timeZoneCalculator.createDate(e.endDate,{path:"toGrid"}),source:e}}))},t._createExtremeRecurrenceDates=function(){var e=this.appointmentTakesAllDay?i.default.trimTime(this.dateRange[0]):this.dateRange[0],t=this.dateRange[1];if(this.timeZone){e=this.timeZoneCalculator.createDate(e,{path:"fromGrid"}),t=this.timeZoneCalculator.createDate(t,{path:"fromGrid"});var n=s.default.getDaylightOffsetInMs(e,t);n&&(t=new Date(t.getTime()+n))}return[e,t]},t._createRecurrenceOptions=function(e,t){var n=this,a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this._createExtremeRecurrenceDates(t),2),r=a[0],l=a[1];return{rule:e.recurrenceRule,exception:e.recurrenceException,min:r,max:l,firstDayOfWeek:this.firstDayOfWeek,start:e.startDate,end:e.endDate,getPostProcessedException:function(t){if((0,o.isEmptyObject)(n.timeZone)||s.default.isEqualLocalTimeZone(n.timeZone,t))return t;var a=n.timeZoneCalculator.getOffsets(e.startDate).common-n.timeZoneCalculator.getOffsets(t).common;return a=n._getProcessedNotNativeDateIfCrossDST(t,a),new Date(t.getTime()-a*i.default.dateToMilliseconds("hour"))}}},t._createRecurrenceAppointments=function(e,t){var n=e.duration,i=this._createRecurrenceOptions(e);return(0,r.getRecurrenceProcessor)().generateDates(i).map((function(e){var t=s.default.createUTCDateWithLocalOffset(e);t.setTime(t.getTime()+n);var i=s.default.createDateFromUTCWithLocalOffset(t);return{startDate:new Date(e),endDate:i}}))},t._cropAppointmentsByStartDayHour=function(e,t){var n=this;return e.filter((function(e){var i=n._getAppointmentFirstViewDate(e);if(!i)return!1;var o=n._getViewStartDayHour(i),a=new Date(e.startDate);return e.startDate=n._getAppointmentResultDate({appointment:e,rawAppointment:t,startDate:a,startDayHour:o,firstViewDate:i}),!!n.isAllDayRowAppointment||e.endDate>e.startDate}))},t._getViewStartDayHour=function(){return this.viewStartDayHour},t._getAppointmentResultDate=function(e){var t=e.appointment,n=e.startDayHour,o=e.firstViewDate,a=e.startDate,r=new Date(t.startDate);return this.appointmentTakesAllDay?r=i.default.normalizeDate(a,o):(a<o&&(a=o),r=i.default.normalizeDate(t.startDate,a)),this.isDateAppointment?r:i.default.roundDateByStartDayHour(r,n)},t._getAppointmentFirstViewDate=function(e){var t=e.source.groupIndex||0,n=e.startDate,i=e.endDate;return this.viewDataProvider.findGroupCellStartDate(t,n,i,this.isAllDayRowAppointment,this.isDateAppointment)},t._getGroupIndices=function(e){var t=this,n=[];if(e&&this.loadedResources.length){var i=(0,l.createResourcesTree)(this.loadedResources);n=(0,l.getResourceTreeLeaves)((function(e,n){return(0,l.getDataAccessors)(t.options.dataAccessors.resources,e,n)}),i,e)}return n},x(e,[{key:"key",get:function(){return this.options.key}},{key:"rawAppointment",get:function(){return this.options.rawAppointment}},{key:"timeZoneCalculator",get:function(){return this.options.timeZoneCalculator}},{key:"viewDataProvider",get:function(){return this.options.viewDataProvider}},{key:"appointmentTakesAllDay",get:function(){return this.options.appointmentTakesAllDay}},{key:"supportAllDayRow",get:function(){return this.options.supportAllDayRow}},{key:"isAllDayRowAppointment",get:function(){return this.options.isAllDayRowAppointment}},{key:"timeZone",get:function(){return this.options.timeZone}},{key:"dateRange",get:function(){return this.options.dateRange}},{key:"firstDayOfWeek",get:function(){return this.options.firstDayOfWeek}},{key:"viewStartDayHour",get:function(){return this.options.viewStartDayHour}},{key:"viewEndDayHour",get:function(){return this.options.viewEndDayHour}},{key:"endViewDate",get:function(){return this.options.endViewDate}},{key:"viewType",get:function(){return this.options.viewType}},{key:"isGroupedByDate",get:function(){return this.options.isGroupedByDate}},{key:"isVerticalOrientation",get:function(){return this.options.isVerticalOrientation}},{key:"dataAccessors",get:function(){return this.options.dataAccessors}},{key:"loadedResources",get:function(){return this.options.loadedResources}},{key:"isDateAppointment",get:function(){return!(0,h.isDateAndTimeView)(this.viewType)&&this.appointmentTakesAllDay}}]),e}();t.DateGeneratorBaseStrategy=w;var C=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,g(t,n);var o=i.prototype;return o._createRecurrenceAppointments=function(e,t){var n=this,i=e.duration,o=[];return(this.groupCount?t:[0]).forEach((function(t){var a=n._createRecurrenceOptions(e,t),l=(0,r.getRecurrenceProcessor)().generateDates(a).map((function(e){var n=new Date(e),o=s.default.createUTCDateWithLocalOffset(e);return o.setTime(o.getTime()+i),{startDate:n,endDate:s.default.createDateFromUTCWithLocalOffset(o),groupIndex:t}}));o.push.apply(o,function(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l))})),o},o._getViewStartDayHour=function(e){return e.getHours()},o._updateGroupIndices=function(e,t){var n=this,i=[];return t.forEach((function(t){n.viewDataProvider.getGroupStartDate(t)&&e.forEach((function(e){var n=(0,a.extend)({},e);n.groupIndex=t,i.push(n)}))})),i},o._getGroupIndices=function(t){var n,i=e.prototype._getGroupIndices.call(this,t),o=this.viewDataProvider.getGroupIndices();return null!==(n=i)&&void 0!==n&&n.length||(i=[0]),i.filter((function(e){return-1!==o.indexOf(e)}))},o._createAppointments=function(t,n){var i=e.prototype._createAppointments.call(this,t,n);return t.isRecurrent?i:this._updateGroupIndices(i,n)},x(i,[{key:"groupCount",get:function(){return(0,l.getGroupCount)(this.loadedResources)}}]),i}(w);t.DateGeneratorVirtualStrategy=C;var S=function(){function e(e){this.options=e,this.appointmentAdapter=(0,u.createAppointmentAdapter)(this.rawAppointment,this.dataAccessors,this.timeZoneCalculator)}var t=e.prototype;return t.create=function(){var e=this._generateDateSettings(),t=e.dateSettings,n=e.itemGroupIndices,i=e.isRecurrent,o=this._calculateCellPositions(t,n);return this._prepareAppointmentInfos(t,o,i)},t._generateDateSettings=function(){return this.dateSettingsStrategy.generate(this.appointmentAdapter)},t._calculateCellPositions=function(e,t){return new d.CellPositionCalculator(v({},this.options,{dateSettings:e})).calculateCellPositions(t,this.isAllDayRowAppointment,this.appointmentAdapter.isRecurrent)},t._prepareAppointmentInfos=function(e,t,n){var i=this,o=[];return t.forEach((function(t){var a=t.coordinates,r=t.dateSettingIndex,s=e[r],l=i._getAppointmentDateText(s),u={appointment:s,sourceAppointment:s.source,dateText:l,isRecurrent:n};i._setResourceColor(u,a.groupIndex),o.push(v({},a,{info:u}))})),o},t._getAppointmentDateText=function(e){var t=e.startDate,n=e.endDate,i=e.allDay;return(0,f.createFormattedDateText)({startDate:t,endDate:n,allDay:i,format:"TIME"})},t._setResourceColor=function(e,t){var n={itemData:this.rawAppointment,groupIndex:t,groups:this.modelGroups};this.options.getAppointmentColor(n).done((function(t){return e.resourceColor=t}))},x(e,[{key:"rawAppointment",get:function(){return this.options.rawAppointment}},{key:"dataAccessors",get:function(){return this.options.dataAccessors}},{key:"timeZoneCalculator",get:function(){return this.options.timeZoneCalculator}},{key:"isAllDayRowAppointment",get:function(){return this.options.appointmentTakesAllDay&&this.options.supportAllDayRow}},{key:"modelGroups",get:function(){return this.options.modelGroups}},{key:"dateSettingsStrategy",get:function(){var e=v({},this.options,{isAllDayRowAppointment:this.isAllDayRowAppointment});return this.options.isVirtualScrolling?new C(e):new w(e)}}]),e}();t.AppointmentSettingsGenerator=S},36816:function(e,t,n){t.getFormatType=t.formatDates=t.createFormattedDateText=void 0;var i=a(n(91198)),o=a(n(91500));function a(e){return e&&e.__esModule?e:{default:e}}t.createFormattedDateText=function(e){var t=e.startDate,n=e.endDate,i=e.allDay,o=e.format||r(t,n,i);return s(t,n,o)};var r=function(e,t,n,o){return n?"DATE":o&&i.default.sameDate(e,t)?"TIME":"DATETIME"};t.getFormatType=r;var s=function(e,t,n){var i="monthandday",a="shorttime",r=e.getDate()===t.getDate();switch(n){case"DATETIME":return[o.default.format(e,i)," ",o.default.format(e,a)," - ",r?"":o.default.format(t,i)+" ",o.default.format(t,a)].join("");case"TIME":return"".concat(o.default.format(e,a)," - ").concat(o.default.format(t,a));case"DATE":return"".concat(o.default.format(e,i)).concat(r?"":" - "+o.default.format(t,i))}};t.formatDates=s},1307:function(e,t,n){t.AppointmentViewModelGenerator=void 0;var i=c(n(27845)),o=c(n(10142)),a=c(n(52359)),r=c(n(34794)),s=c(n(71991)),l=c(n(69219)),u=n(84154),d=n(86553);function c(e){return e&&e.__esModule?e:{default:e}}function h(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var g={horizontal:a.default,horizontalMonth:s.default,horizontalMonthLine:r.default,vertical:i.default,week:o.default,agenda:l.default},m=function(){function e(){}var t=e.prototype;return t.initRenderingStrategy=function(e){var t=g[e.appointmentRenderingStrategyName];this.renderingStrategy=new t(e)},t.generate=function(e,t){var n=t.isRenovatedAppointments,i=e?e.slice():[];this.initRenderingStrategy(t);var o=this.getRenderingStrategy().createTaskPositionMap(i),a=this.postProcess(i,o,n);return n?this.makeRenovatedViewModels(a):{positionMap:o,viewModel:a}},t.postProcess=function(e,t,n){var i=this.getRenderingStrategy();return e.map((function(e,o){i.keepAppointmentSettings()||delete e.settings;var a=t[o];a.forEach((function(e){e.direction="vertical"!==i.getDirection()||e.allDay?"horizontal":"vertical"}));var r={itemData:e,settings:a};return n||(r.needRepaint=!0,r.needRemove=!1),r}))},t.makeRenovatedViewModels=function(e){var t=this,n=this.getRenderingStrategy(),i=[],o=[],a=[];e.forEach((function(e){var r=e.itemData;e.settings.forEach((function(e){var s=t.prepareViewModel(e,n,r);e.isCompact?a.push({compactViewModel:e.virtual,appointmentViewModel:s}):e.allDay?o.push(s):i.push(s)}))}));var r=this.prepareCompactViewModels(a);return p({allDay:o,regular:i},r)},t.prepareViewModel=function(e,t,n){var i=t.getAppointmentGeometry(e);return{key:(0,u.getAppointmentKey)(i),appointment:n,geometry:p({},i,{leftVirtualWidth:e.leftVirtualWidth,topVirtualHeight:e.topVirtualHeight}),info:p({},e.info,{allDay:e.allDay,direction:e.direction,appointmentReduced:e.appointmentReduced})}},t.getCompactViewModelFrame=function(e){return{isAllDay:!!e.isAllDay,isCompact:e.isCompact,geometry:{left:e.left,top:e.top,width:e.width,height:e.height},items:{colors:[],data:[],settings:[]}}},t.prepareCompactViewModels=function(e){var t=this,n={},i={};e.forEach((function(e){var o=e.compactViewModel,a=e.appointmentViewModel,r=o.index,s=o.isAllDay?i:n;s[r]||(s[r]=t.getCompactViewModelFrame(o));var l=s[r].items,u=l.settings,d=l.data,c=l.colors;u.push(a),d.push(a.appointment),c.push(a.info.resourceColor)}));var o=function(e){return Object.keys(e).map((function(t){return p({key:t},e[t])}))},a=o(i),r=o(n);return[].concat(h(a),h(r)).forEach((function(e){var t=e.items.colors;e.color=(0,d.getOverflowIndicatorColor)(t[0],t)})),{allDayCompact:a,regularCompact:r}},t.getRenderingStrategy=function(){return this.renderingStrategy},e}();t.AppointmentViewModelGenerator=m},99068:function(e,t,n){var i;function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.default=void 0;var a=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var a=i.prototype;return a.notifyObserver=function(e,t){var n=this.option("observer");n&&n.fire(e,t)},a.invoke=function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)},i}(((i=n(14390))&&i.__esModule?i:{default:i}).default);t.default=a,e.exports=t.default,e.exports.default=t.default},62060:function(e,t){t.VIRTUAL_CELL_CLASS=t.VERTICAL_GROUP_COUNT_CLASSES=t.TIME_PANEL_CLASS=t.REDUCED_APPOINTMENT_PARTS_CLASSES=t.REDUCED_APPOINTMENT_ICON=t.REDUCED_APPOINTMENT_CLASS=t.RECURRENCE_APPOINTMENT_CLASS=t.LAST_GROUP_CELL_CLASS=t.HEADER_CURRENT_TIME_CELL_CLASS=t.GROUP_ROW_CLASS=t.GROUP_HEADER_CONTENT_CLASS=t.FIXED_CONTAINER_CLASS=t.FIRST_GROUP_CELL_CLASS=t.EMPTY_APPOINTMENT_CLASS=t.DIRECTION_APPOINTMENT_CLASSES=t.DATE_TABLE_ROW_CLASS=t.DATE_TABLE_CLASS=t.APPOINTMENT_ITEM_CLASS=t.APPOINTMENT_DRAG_SOURCE_CLASS=t.APPOINTMENT_CONTENT_CLASSES=t.ALL_DAY_APPOINTMENT_CLASS=t.AGENDA_LAST_IN_DATE_APPOINTMENT_CLASS=void 0,t.FIXED_CONTAINER_CLASS="dx-scheduler-fixed-appointments",t.REDUCED_APPOINTMENT_CLASS="dx-scheduler-appointment-reduced",t.REDUCED_APPOINTMENT_ICON="dx-scheduler-appointment-reduced-icon",t.RECURRENCE_APPOINTMENT_CLASS="dx-scheduler-appointment-recurrence",t.EMPTY_APPOINTMENT_CLASS="dx-scheduler-appointment-empty",t.ALL_DAY_APPOINTMENT_CLASS="dx-scheduler-all-day-appointment",t.REDUCED_APPOINTMENT_PARTS_CLASSES={head:"dx-scheduler-appointment-head",body:"dx-scheduler-appointment-body",tail:"dx-scheduler-appointment-tail"},t.DIRECTION_APPOINTMENT_CLASSES={horizontal:"dx-scheduler-appointment-horizontal",vertical:"dx-scheduler-appointment-vertical"},t.APPOINTMENT_DRAG_SOURCE_CLASS="dx-scheduler-appointment-drag-source",t.APPOINTMENT_ITEM_CLASS="dx-scheduler-appointment",t.APPOINTMENT_CONTENT_CLASSES={APPOINTMENT_CONTENT_DETAILS:"dx-scheduler-appointment-content-details",RECURRING_ICON:"dx-scheduler-appointment-recurrence-icon",APPOINTMENT_TITLE:"dx-scheduler-appointment-title",APPOINTMENT_DATE:"dx-scheduler-appointment-content-date",ALL_DAY_CONTENT:"dx-scheduler-appointment-content-allday",ITEM:"dx-scheduler-appointment",AGENDA_MARKER:"dx-scheduler-agenda-appointment-marker",AGENDA_RESOURCE_LIST:"dx-scheduler-appointment-resource-list",AGENDA_RESOURCE_LIST_ITEM:"dx-scheduler-appointment-resource-item",AGENDA_RESOURCE_LIST_ITEM_VALUE:"dx-scheduler-appointment-resource-item-value"},t.AGENDA_LAST_IN_DATE_APPOINTMENT_CLASS="dx-scheduler-last-in-date-agenda-appointment",t.HEADER_CURRENT_TIME_CELL_CLASS="dx-scheduler-header-panel-current-time-cell",t.VIRTUAL_CELL_CLASS="dx-scheduler-virtual-cell",t.TIME_PANEL_CLASS="dx-scheduler-time-panel",t.DATE_TABLE_CLASS="dx-scheduler-date-table",t.DATE_TABLE_ROW_CLASS="dx-scheduler-date-table-row",t.GROUP_ROW_CLASS="dx-scheduler-group-row",t.GROUP_HEADER_CONTENT_CLASS="dx-scheduler-group-header-content",t.LAST_GROUP_CELL_CLASS="dx-scheduler-last-group-cell",t.FIRST_GROUP_CELL_CLASS="dx-scheduler-first-group-cell",t.VERTICAL_GROUP_COUNT_CLASSES=["dx-scheduler-group-column-count-one","dx-scheduler-group-column-count-two","dx-scheduler-group-column-count-three"]},12090:function(e,t,n){t.CompactAppointmentsHelper=void 0;var i=m(n(68374)),o=m(n(63008)),a=n(31648),r=m(n(28109)),s=n(68494),l=n(62754),u=n(13306),d=n(37518),c=n(6678),h=n(27728),f=n(5480),p=n(45835),g=n(86553);function m(e){return e&&e.__esModule?e:{default:e}}var _=function(){function e(e){this.instance=e,this.key=this.instance.key,this.elements=[]}var t=e.prototype;return t.render=function(e){var t=e.isCompact,n=e.items,i=e.buttonColor,o=this._createTemplate(n.data.length,t),a=this._createCompactButton(o,e).$element();return this._makeBackgroundColor(a,n.colors,i),this._makeBackgroundDarker(a),this.elements.push(a),a.data("items",this._createTooltipInfos(n)),a},t.clear=function(){this.elements.forEach((function(e){e.detach(),e.remove()})),this.elements=[]},t._createTooltipInfos=function(e){var t=this;return e.data.map((function(n,i){var o,a=(0,f.createAppointmentAdapter)(n,t.instance._dataAccessors,(0,p.getTimeZoneCalculator)(t.key)).clone();if((null===(o=e.settings)||void 0===o?void 0:o.length)>0){var r=e.settings[i].info;a.startDate=r.sourceAppointment.startDate,a.endDate=r.sourceAppointment.endDate}return new c.AppointmentTooltipInfo(n,a.source(),e.colors[i],e.settings[i])}))},t._onButtonClick=function(e,t){var n=(0,i.default)(e.element);this.instance.showAppointmentTooltipCore(n,n.data("items"),this._getExtraOptionsForTooltip(t,n))},t._getExtraOptionsForTooltip=function(e,t){return{clickEvent:this._clickEvent(e.onAppointmentClick).bind(this),dragBehavior:e.allowDrag&&this._createTooltipDragBehavior(t).bind(this),dropDownAppointmentTemplate:this.instance.option().dropDownAppointmentTemplate,isButtonClick:!0}},t._clickEvent=function(e){var t=this;return function(n){var i={itemData:n.itemData.appointment,itemElement:n.itemElement,targetedAppointment:n.itemData.targetedAppointment},o=(0,u.extendFromObject)(t.instance.fire("mapAppointmentFields",i),n,!1);delete o.itemData,delete o.itemIndex,delete o.itemElement,e(o)}},t._createTooltipDragBehavior=function(e){var t=this;return function(n){var o=(0,i.default)(n.element),r=t.instance.getWorkSpace(),s=(0,a.locate)(e),l={filter:".".concat(h.LIST_ITEM_CLASS),isSetCursorOffset:!0,initialPosition:s,getItemData:function(e){var t;return null===(t=(0,i.default)(e).data(h.LIST_ITEM_DATA_KEY))||void 0===t?void 0:t.appointment},getItemSettings:function(e,t){return t.itemSettings}};r._createDragBehaviorBase(o,l)}},t._getCollectorOffset=function(e,t){return t-e-this._getCollectorRightOffset()},t._getCollectorRightOffset=function(){return this.instance.getRenderingStrategyInstance()._isCompactTheme()?1:5},t._makeBackgroundDarker=function(e){e.css("boxShadow","inset ".concat((0,d.getBoundingRect)(e.get(0)).width,"px 0 0 0 rgba(0, 0, 0, 0.3)"))},t._makeBackgroundColor=function(e,t,n){l.when.apply(null,t).done(function(){this._makeBackgroundColorCore(e,n,Array.prototype.slice.call(arguments))}.bind(this))},t._makeBackgroundColorCore=function(e,t,n){t&&t.done((function(t){var i=(0,g.getOverflowIndicatorColor)(t,n);i&&e.css("backgroundColor",i)}))},t._setPosition=function(e,t){(0,a.move)(e,{top:t.top,left:t.left})},t._createCompactButton=function(e,t){var n=this,i=this._createCompactButtonElement(t);return this.instance._createComponent(i,o.default,{type:"default",width:t.width,height:t.height,onClick:function(e){return n._onButtonClick(e,t)},template:this._renderTemplate(e,t.items,t.isCompact)})},t._createCompactButtonElement=function(e){var t=e.isCompact,n=e.$container,o=e.coordinates,a=(0,i.default)("<div>").addClass("dx-scheduler-appointment-collector").toggleClass("dx-scheduler-appointment-collector-compact",t).appendTo(n);return this._setPosition(a,o),a},t._renderTemplate=function(e,t,n){return new s.FunctionTemplate((function(i){return e.render({model:{appointmentCount:t.data.length,isCompact:n},container:i.container})}))},t._createTemplate=function(e,t){return this._initButtonTemplate(e,t),this.instance._getAppointmentTemplate("appointmentCollectorTemplate")},t._initButtonTemplate=function(e,t){var n=this;this.instance._templateManager.addDefaultTemplates({appointmentCollector:new s.FunctionTemplate((function(o){return n._createButtonTemplate(e,(0,i.default)(o.container),t)}))})},t._createButtonTemplate=function(e,t,n){var o=n?e:r.default.getFormatter("dxScheduler-moreAppointments")(e);return t.append((0,i.default)("<span>").text(o)).addClass("dx-scheduler-appointment-collector-content")},e}();t.CompactAppointmentsHelper=_},27728:function(e,t){t.VIEWS=t.LIST_ITEM_DATA_KEY=t.LIST_ITEM_CLASS=t.HORIZONTAL_GROUP_ORIENTATION=t.APPOINTMENT_SETTINGS_KEY=void 0,t.LIST_ITEM_DATA_KEY="dxListItemData",t.LIST_ITEM_CLASS="dx-list-item",t.APPOINTMENT_SETTINGS_KEY="dxAppointmentSettings",t.HORIZONTAL_GROUP_ORIENTATION="horizontal",t.VIEWS={DAY:"day",WEEK:"week",WORK_WEEK:"workWeek",MONTH:"month",TIMELINE_DAY:"timelineDay",TIMELINE_WEEK:"timelineWeek",TIMELINE_WORK_WEEK:"timelineWorkWeek",TIMELINE_MONTH:"timelineMonth",AGENDA:"agenda"}},6678:function(e,t){t.AppointmentTooltipInfo=void 0,t.AppointmentTooltipInfo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];this.appointment=e,this.targetedAppointment=t,this.color=n,this.settings=i}},26983:function(e,t,n){var i;function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.default=void 0;var a=((i=n(91198))&&i.__esModule?i:{default:i}).default.dateToMilliseconds,r=function(){function e(e){this._source=new Date(e.getTime?e.getTime():e)}var t,n,i=e.prototype;return i.result=function(){return this._source},i.getTimezoneOffset=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this._source.getTimezoneOffset();return"minute"===e?t*a("minute"):t},i.getTime=function(){return this._source.getTime()},i.setTime=function(e){return this._source.setTime(e),this},i.addTime=function(e){return this._source.setTime(this._source.getTime()+e),this},i.setMinutes=function(e){return this._source.setMinutes(e),this},i.addMinutes=function(e){return this._source.setMinutes(this._source.getMinutes()+e),this},i.subtractMinutes=function(e){return this._source.setMinutes(this._source.getMinutes()-e),this},t=e,(n=[{key:"source",get:function(){return this._source}}])&&o(t.prototype,n),e}();t.default=function(e){return new r(e)},e.exports=t.default,e.exports.default=t.default},86474:function(e,t,n){t.ExpressionUtils=void 0;var i=n(35922),o={getField:function(e,t,n){if((0,i.isDefined)(e.getter[t]))return e.getter[t](n)},setField:function(e,t,n,o){if((0,i.isDefined)(e.setter[t]))return e.setter[t](n,o),n}};t.ExpressionUtils=o},9896:function(e,t,n){t.default=void 0;var i=c(n(68374)),o=c(n(20530)),a=c(n(99393)),r=c(n(14390)),s=c(n(22348)),l=c(n(39114)),u=c(n(26559)),d=c(n(41183));function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,h(t,n);var r=a.prototype;return r.show=function(e){this._isMobileLayout()||this._overlay.option("target",e),this._overlay.show()},r.hide=function(){this._overlay.hide()},r._keyboardHandler=function(e){var t;null===(t=this._calendar)||void 0===t||t._keyboardHandler(e)},r._init=function(){e.prototype._init.call(this),this.$element()},r._render=function(){e.prototype._render.call(this),this._renderOverlay()},r._renderOverlay=function(){var e=this;this.$element().addClass("dx-scheduler-navigator-calendar-popover");var t=this._isMobileLayout(),n=t?l.default:s.default;this._overlay=this._createComponent(this.$element(),n,{contentTemplate:function(){return e._createOverlayContent()},onShown:function(){return e._calendar.focus()},defaultOptionsRules:[{device:function(){return t},options:{fullScreen:!0,showCloseButton:!1,toolbarItems:[{shortcut:"cancel"}]}}]})},r._createOverlayContent=function(){var e=(0,i.default)("<div>").addClass("dx-scheduler-navigator-calendar");return this._calendar=this._createComponent(e,u.default,this._getCalendarOptions()),this._isMobileLayout()?this._createScrollable(e).$element():e},r._createScrollable=function(e){var t=this._createComponent("<div>",d.default,{direction:"vertical"});return t.$content().append(e),t},r._getCalendarOptions=function(){return{value:this.option("date"),min:this.option("min"),max:this.option("max"),firstDayOfWeek:this.option("firstDayOfWeek"),focusStateEnabled:this.option("focusStateEnabled"),onValueChanged:this.option("onValueChanged"),skipFocusCheck:!0,tabIndex:this.option("tabIndex"),width:"100%"}},r._isMobileLayout=function(){return!o.default.current().generic},a}(r.default);t.default=f,(0,a.default)("dxSchedulerCalendarPopup",f),e.exports=t.default,e.exports.default=t.default},85890:function(e,t,n){t.getDateNavigator=void 0;var i,o=n(75811);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var r=((i=n(91198))&&i.__esModule?i:{default:i}).default.trimTime;t.getDateNavigator=function(e,t){return a({widget:"dxButtonGroup",cssClass:"dx-scheduler-navigator",options:{items:[s(e),l(e),u(e)],stylingMode:(0,o.isMaterial)()?"text":"contained",selectionMode:"none",onItemClick:function(e){e.itemData.clickHandler(e)}}},t)};var s=function(e){return{key:"previous",icon:"chevronprev",elementAttr:{class:"dx-scheduler-navigator-previous"},clickHandler:function(){return e._updateDateByDirection(-1)},onContentReady:function(t){var n=t.component;n.option("disabled",d(e)),e._addEvent("min",(function(){n.option("disabled",d(e))})),e._addEvent("currentDate",(function(){n.option("disabled",d(e))})),e._addEvent("startViewDate",(function(){n.option("disabled",d(e))}))}}},l=function(e){return{key:"calendar",text:e.captionText,elementAttr:{class:"dx-scheduler-navigator-caption"},clickHandler:function(t){return e._showCalendar(t)},onContentReady:function(t){var n=t.component;e._addEvent("currentView",(function(){n.option("text",e.captionText)})),e._addEvent("currentDate",(function(){n.option("text",e.captionText)})),e._addEvent("startViewDate",(function(){n.option("text",e.captionText)})),e._addEvent("views",(function(){n.option("text",e.captionText)})),e._addEvent("firstDayOfWeek",(function(){n.option("text",e.captionText)}))}}},u=function(e){return{key:"next",icon:"chevronnext",elementAttr:{class:"dx-scheduler-navigator-next"},clickHandler:function(){return e._updateDateByDirection(1)},onContentReady:function(t){var n=t.component;n.option("disabled",c(e)),e._addEvent("min",(function(){n.option("disabled",c(e))})),e._addEvent("currentDate",(function(){n.option("disabled",c(e))})),e._addEvent("startViewDate",(function(){n.option("disabled",c(e))}))}}},d=function(e){var t=e.option("min");if(!t)return!1;t=new Date(t);var n=e._getCaption();return t=r(t),e._getNextDate(-1,n.endDate)<t},c=function(e){var t=e.option("max");if(!t)return!1;t=new Date(t);var n=e._getCaption();return t=t.setHours(23,59,59),e._getNextDate(1,n.startDate)>t}},23477:function(e,t,n){t.SchedulerHeader=void 0;var i=g(n(68374)),o=n(13306),a=g(n(99393)),r=g(n(17381)),s=g(n(20530)),l=g(n(14390)),u=g(n(71042)),d=g(n(9896)),c=g(n(91198)),h=n(65850),f=n(85890),p=n(74842);function g(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,x(t,n);var l,g,v=a.prototype;return v._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{_useShortDateFormat:!s.default.real().generic||s.default.isSimulator()})},v._createEventMap=function(){this.eventMap=new Map([["items",[this.repaint.bind(this)]],["views",[p.validateViews]],["currentDate",[this._getCalendarOptionUpdater("date")]],["min",[this._getCalendarOptionUpdater("min")]],["max",[this._getCalendarOptionUpdater("max")]],["tabIndex",[this.repaint.bind(this)]],["focusStateEnabled",[this.repaint.bind(this)]],["useDropDownViewSwitcher",[this.repaint.bind(this)]]])},v._addEvent=function(e,t){this.eventMap.has(e)||this.eventMap.set(e,[]);var n=this.eventMap.get(e);this.eventMap.set(e,[].concat(_(n),[t]))},v._optionChanged=function(e){var t=e.name,n=e.value;this.eventMap.has(t)&&this.eventMap.get(t).forEach((function(e){e(n)}))},v._init=function(){e.prototype._init.call(this),this._createEventMap(),this.$element().addClass("dx-scheduler-header")},v._render=function(){e.prototype._render.call(this),this._createEventMap(),this._renderToolbar()},v._renderToolbar=function(){var e=this._createToolbarConfig(),t=(0,i.default)("<div>");t.appendTo(this.$element()),this._toolbar=this._createComponent(t,u.default,e)},v._createToolbarConfig=function(){var e=this;return{items:this.option("items").map((function(t){return e._parseItem(t)}))}},v._parseItem=function(e){if(this._isDefaultItem(e)){var t=e.defaultElement;switch(t){case"viewSwitcher":return this.option("useDropDownViewSwitcher")?(0,h.getDropDownViewSwitcher)(this,e):(0,h.getViewSwitcher)(this,e);case"dateNavigator":return this._renderCalendar(),(0,f.getDateNavigator)(this,e);default:r.default.log("Unknown default element type: ".concat(t))}}return e},v._callEvent=function(e,t){this.eventMap.has(e)&&this.eventMap.get(e).forEach((function(e){return e(t)}))},v._updateCurrentView=function(e){this.option("onCurrentViewChange")(e.name),this._callEvent("currentView",e)},v._updateCurrentDate=function(e){this.option("onCurrentDateChange")(e),this._callEvent("currentDate",e)},v._renderCalendar=function(){var e=this;this._calendar=this._createComponent("<div>",d.default,{date:this.option("currentDate"),min:this.option("min"),max:this.option("max"),firstDayOfWeek:this.option("firstDayOfWeek"),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),onValueChanged:function(t){var n=t.value;e._updateCurrentDate(n),e._calendar.hide()}}),this._calendar.$element().appendTo(this.$element())},v._getCalendarOptionUpdater=function(e){var t=this;return function(n){t._calendar&&t._calendar.option(e,n)}},v._getNextDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t||this.option("currentDate"),i=m({},this.intervalOptions,{date:n});return(0,p.getNextIntervalDate)(i,e)},v._isMonth=function(){var e=this.option("currentView");return"month"===(0,p.getViewType)(e)},v._getDisplayedDate=function(){var e=this.option("startViewDate");return this._isMonth()?(0,p.nextWeek)(e):new Date(e)},v._getCaption=function(){var e=this.option("currentDate");this.option("startViewDate")&&(e=this._getDisplayedDate()),e=c.default.trimTime(e);var t=m({},this.intervalOptions,{date:e}),n=this.option("customizeDateNavigatorText"),i=this.option("_useShortDateFormat");return(0,p.getCaption)(t,i,n)},v._updateDateByDirection=function(e){var t=this._getNextDate(e);this._updateCurrentDate(t)},v._showCalendar=function(e){this._calendar.show(e.element)},v._hideCalendar=function(){this._calendar.hide()},v._isDefaultItem=function(e){return Object.prototype.hasOwnProperty.call(e,"defaultElement")},l=a,(g=[{key:"currentView",get:function(){return this.option("currentView")}},{key:"views",get:function(){return this.option("views")}},{key:"captionText",get:function(){return this._getCaption().text}},{key:"intervalOptions",get:function(){return{step:(0,p.getStep)(this.option("currentView")),intervalCount:this.option("intervalCount"),firstDayOfWeek:this.option("firstDayOfWeek"),agendaDuration:this.option("agendaDuration")}}}])&&y(l.prototype,g),a}(l.default);t.SchedulerHeader=b,(0,a.default)("dxSchedulerHeader",b)},74842:function(e,t,n){t.validateViews=t.nextWeek=t.getViewType=t.getViewText=t.getViewName=t.getStep=t.getNextIntervalDate=t.getCaption=t.formatViews=void 0;var i=d(n(91198)),o=d(n(91500)),a=d(n(28109)),r=n(78008),s=n(35922),l=d(n(17381)),u=n(27728);function d(e){return e&&e.__esModule?e:{default:e}}var c=i.default.correctDateWithUnitBeginning,h=i.default.getFirstWeekDate,f=i.default.getLastMonthDay,p=i.default.addDateInterval,g=o.default.format,m={milliseconds:1},_={days:1},v={days:7},y=function(e){return p(e,_,1)},x=function(e){return p(e,v,1)};t.nextWeek=x;var b=function(e){return 6===e.getDay()||0===e.getDay()},w=function(e,t){for(var n,i=t.intervalCount,o=t.step,a=t.agendaDuration,r=new Date(e),s=0;s<i;s++)n=C(r,o,a),r=S(n,o);return n},C=function(e,t,n){var i;switch(t){case"day":i=y(e);break;case"week":i=x(e);break;case"month":i=function(e){var t=f(e);return p(e,{days:t},1)}(e);break;case"workWeek":i=function(e){for(var t=new Date(e),n=0;n<5;)b(t)||n++,t=y(t);return t}(e);break;case"agenda":i=function(e,t){return p(e,{days:t},1)}(e,n)}return function(e){return p(e,m,-1)}(i)},S=function(e,t){var n=function(e){return p(e,m,1)}(e);if("workWeek"===t)for(;b(n);)n=y(n);return n};t.getNextIntervalDate=function(e,t){var n,i=e.date,o=e.step,a=e.intervalCount,r=e.agendaDuration;switch(o){case"day":n=1*a;break;case"week":case"workWeek":n=7*a;break;case"agenda":n=r;break;case"month":return k(i,a,t)}return p(i,{days:n},t)};var k=function(e,t,n){var i=e.getDate(),o=new Date(new Date(e.getTime()).setDate(1)),a=new Date(o.setMonth(o.getMonth()+t*n)),r=f(a),s=i<r?i:r,l=new Date(new Date(e.getTime()).setDate(s));return new Date(l.setMonth(l.getMonth()+t*n))},D=function(e){var t=e?"abbreviated":"wide",n=o.default.getMonthNames(t);return function(e){var t=g(e,"day"),i=n[e.getMonth()];return"".concat(t," ").concat(i)}},I=function(e){var t=o.default.getMonthNames("abbreviated")[e.getMonth()],n=g(e,"year");return"".concat(t," ").concat(n)},T=function(e){return function(t){var n=D(e)(t),i=g(t,"year");return"".concat(n," ").concat(i)}},E=function(e,t,n,a){return i.default.sameDate(e,t)?function(e,t,n){var i=D("agenda"===t&&n)(e),o=g(e,"year");return"".concat(i," ").concat(o)}(e,a,n):"month"===a?function(e,t){if(i.default.sameMonth(e,t))return g(e,"monthandyear");var n=i.default.sameYear(e,t)?o.default.getMonthNames("abbreviated")[e.getMonth()]:I(e),a=I(t);return"".concat(n,"-").concat(a)}(e,t):function(e,t,n){return e.getFullYear()!==t.getFullYear()?function(e,t){var n=g(e,T(!0)),i=g(t,T(!0));return"".concat(n,"-").concat(i)}(e,t):function(e,t,n){var i=e.getMonth()!==t.getMonth(),o=i||n,a=i?D(o):"d",r=g(e,a),s=g(t,T(o));return"".concat(r,"-").concat(s)}(e,t,n)}(e,t,n)};t.getCaption=function(e,t,n){var i=function(e){var t=function(e){var t=e.date,n=e.step,i=e.firstDayOfWeek;switch(n){case"day":case"week":case"month":return c(t,n,!1,i);case"workWeek":return function(e){for(var t=new Date(e);b(t);)t=y(t);return t}(h(t,i));case"agenda":return new Date(t)}}(e);return{startDate:t,endDate:w(t,e)}}(e),o=i.startDate,a=i.endDate,r=E(o,a,t,e.step);return(0,s.isFunction)(n)&&(r=n({startDate:o,endDate:a,text:r})),{startDate:o,endDate:a,text:r}};var A={day:"day",week:"week",workWeek:"workWeek",month:"month",timelineDay:"day",timelineWeek:"week",timelineWorkWeek:"workWeek",timelineMonth:"month",agenda:"agenda"};t.getStep=function(e){return A[O(e)]};var O=function(e){return(0,s.isObject)(e)&&e.type?e.type:e};t.getViewType=O;var P=function(e){return(0,s.isObject)(e)?e.name?e.name:e.type:e};t.getViewName=P;var M=function(e){if(e.name)return e.name;var t=(0,r.camelize)(e.type||e,!0);return a.default.format("dxScheduler-switcher"+t)};t.getViewText=M;var R=function(e){e.forEach((function(e){var t=O(e);(function(e){return Object.values(u.VIEWS).includes(e)})(t)||l.default.log("W0008",t)}))};t.validateViews=R,t.formatViews=function(e){return R(e),e.map((function(e){var t=M(e),n=O(e),i=P(e);return{text:t,name:i,view:{text:t,type:n,name:i}}}))}},65850:function(e,t,n){t.getViewSwitcher=t.getDropDownViewSwitcher=void 0;var i=n(74842);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a="dx-scheduler-view-switcher",r=function(e){var t=(0,i.formatViews)(e.views),n=(0,i.getViewName)(e.currentView),o=t.some((function(e){return e.name===n}));return{selectedView:n=o?n:void 0,views:t}};t.getViewSwitcher=function(e,t){var n=r(e),s=n.selectedView,l=n.views;return o({widget:"dxButtonGroup",locateInMenu:"auto",cssClass:a,options:{items:l,keyExpr:"name",selectedItemKeys:[s],stylingMode:"contained",onItemClick:function(t){var n=t.itemData.view;e._updateCurrentView(n)},onContentReady:function(t){var n=t.component;e._addEvent("currentView",(function(e){n.option("selectedItemKeys",[(0,i.getViewName)(e)])}))}}},t)},t.getDropDownViewSwitcher=function(e,t){var n=r(e),s=n.selectedView,l=n.views;return o({widget:"dxDropDownButton",locateInMenu:"never",cssClass:a,options:{items:l,useSelectMode:!0,keyExpr:"name",selectedItemKey:s,displayExpr:"text",elementAttr:{class:"dx-scheduler-view-switcher-dropdown-button"},onItemClick:function(t){var n=t.itemData.view;e._updateCurrentView(n)},onContentReady:function(t){var n=t.component;e._addEvent("currentView",(function(e){n.option("selectedItemKey",(0,i.getViewName)(e))}))},dropDownOptions:{width:"max-content",wrapperAttr:{class:"dx-scheduler-view-switcher-dropdown-button-content"}}}},t)}},45835:function(e,t,n){t.getTimeZoneCalculator=t.getModelProvider=t.generateKey=t.disposeFactoryInstances=t.createModelProvider=t.createInstance=t.createFactoryInstances=void 0;var i,o=n(35922),a=n(83981),r=n(63660),s=(i=n(32511))&&i.__esModule?i:{default:i},l={timeZoneCalculator:"timeZoneCalculator",appointmentDataProvider:"appointmentDataProvider",model:"model",modelProvider:"modelProvider"},u={},d=-1,c=function(e){return(0,o.isDefined)(e)?e:++d};t.generateKey=c,t.createFactoryInstances=function(e){var t=c(e.key);return g(t,e.model),p(t,e.timeZone),t};var h=function(e,t,n){(0,o.isDefined)(u[e])||(u[e]={});var i=n();return u[e][t]=i,i};t.createInstance=h;var f=function(e,t){return u[e]?u[e][t]:void 0},p=function(e,t){return h(l.timeZoneCalculator,e,(function(){return new r.TimeZoneCalculator({getClientOffset:function(e){return s.default.getClientTimezoneOffset(e)},getCommonOffset:function(e,n){return s.default.calculateTimezoneByValue(n||t,e)},getAppointmentOffset:function(e,t){return s.default.calculateTimezoneByValue(t,e)}})}))},g=function(e,t){return h(l.modelProvider,e,(function(){var n=f(l.modelProvider,e);return(0,o.isDefined)(n)?n:new a.ModelProvider(t)}))};t.createModelProvider=g,t.disposeFactoryInstances=function(e){Object.getOwnPropertyNames(l).forEach((function(t){!function(e,t){f(e,t)&&(u[e]=null)}(t,e)}))},t.getTimeZoneCalculator=function(e){return f(l.timeZoneCalculator,e)},t.getModelProvider=function(e){return f(l.modelProvider,e)}},71125:function(e,t,n){t.hide=function(){return l?l.hide().done(u).promise():(new r.Deferred).resolve()},t.show=function(e){return u(),(l=function(e){return new a.default((0,i.default)("<div>").appendTo(e&&e.container||(0,o.value)()),e)}(e)).show()};var i=s(n(68374)),o=n(77695),a=s(n(97218)),r=n(62754);function s(e){return e&&e.__esModule?e:{default:e}}var l=null,u=function(){l&&(l.$element().remove(),l=null)}},83981:function(e,t,n){t.ModelProvider=void 0;var i=n(98140),o=n(35922),a=n(47718);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=function(){function e(e){this.model=e,this.currentView=null}var t,n,s=e.prototype;return s.supportAllDayResizing=function(){return"day"!==this.currentViewType||this.currentView.intervalCount>1},s.updateCurrentView=function(){var e=this.model.views,t=this.model.currentView;this.currentView=(0,a.getCurrentView)(t,e)},s.isGroupedByDate=function(){return this.model.groupByDate&&this._isHorizontalGroupedWorkSpace()&&(0,i.getGroupCount)(this.loadedResources)>0},s._isHorizontalGroupedWorkSpace=function(){return!!this.loadedResources.length&&"horizontal"===this.model.groupOrientation},s.getCurrentViewOption=function(e){return this.currentView&&void 0!==this.currentView[e]?this.currentView[e]:this.model[e]},t=e,(n=[{key:"key",get:function(){return this.model.key}},{key:"loadedResources",get:function(){return this.model.loadedResources}},{key:"startDayHour",get:function(){return this.model.startDayHour}},{key:"endDayHour",get:function(){return this.model.endDayHour}},{key:"adaptivityEnabled",get:function(){return this.model.adaptivityEnabled}},{key:"rtlEnabled",get:function(){return this.model.rtlEnabled}},{key:"maxAppointmentsPerCell",get:function(){return this.getCurrentViewOption("maxAppointmentsPerCell")}},{key:"currentViewOptions",get:function(){return this.currentView}},{key:"currentViewType",get:function(){return(0,o.isObject)(this.currentView)?this.currentView.type:this.currentView}},{key:"agendaDuration",get:function(){return this.model.agendaDuration}},{key:"currentDate",get:function(){return this.model.currentDate}},{key:"timeZone",get:function(){return this.model.timeZone}},{key:"isRenovatedAppointments",get:function(){return this.model.isRenovatedAppointments}}])&&r(t.prototype,n),e}();t.ModelProvider=s},88609:function(e,t,n){t.getRecurrenceProcessor=_;var i=u(n(17381)),o=n(95479),a=n(89386),r=n(49377),s=u(n(91198)),l=u(n(32511));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var c=s.default.dateToMilliseconds,h=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],f=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],p={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},g=[],m=null;function _(){return m||(m=new v),m}var v=function(){function e(){this.rRule=null,this.rRuleSet=null,this.validator=new y}var t=e.prototype;return t.generateDates=function(e){var t=[],n=this.evalRecurrenceRule(e.rule),i=n.rule;if(!n.isValid||!i.freq)return t;var o=l.default.createUTCDateWithLocalOffset(e.start),a=l.default.createUTCDateWithLocalOffset(e.end),r=l.default.createUTCDateWithLocalOffset(e.min),s=l.default.createUTCDateWithLocalOffset(e.max),u=a?a.getTime()-o.getTime():0;this._initializeRRule(e,o,i.until);var d=r.getTime(),c=this._getLeftBorder(e,r,u);return this.rRuleSet.between(c,s,!0).forEach((function(e){if(e.getTime()+u>=d){var n=l.default.createDateFromUTCWithLocalOffset(e);t.push(n)}})),t},t.hasRecurrence=function(e){return!!this.generateDates(e).length},t.evalRecurrenceRule=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=this._parseRecurrenceRule(e),t.isValid=this.validator.validateRRule(t.rule,e)),t},t.isValidRecurrenceRule=function(e){return this.evalRecurrenceRule(e).isValid},t.daysFromByDayRule=function(e){var t=[];return e.byday&&(t=Array.isArray(e.byday)?e.byday:e.byday.split(",")),t.map((function(e){var t=e.match(/[A-Za-z]+/);return!!t&&t[0]})).filter((function(e){return!!e}))},t.getAsciiStringByDate=function(e){var t=e.getTimezoneOffset()*c("minute"),n=new Date(e.getTime()+t);return n.getFullYear()+("0"+(n.getMonth()+1)).slice(-2)+("0"+n.getDate()).slice(-2)+"T"+("0"+n.getHours()).slice(-2)+("0"+n.getMinutes()).slice(-2)+("0"+n.getSeconds()).slice(-2)+"Z"},t.getRecurrenceString=function(e){if(e&&e.freq){var t="";for(var n in e){var i=e[n];"interval"===n&&i<2||("until"===n&&(i=this.getAsciiStringByDate(i)),t+=n+"="+i+";")}return(t=t.substring(0,t.length-1)).toUpperCase()}},t._parseExceptionToRawArray=function(e){return e.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?(Z)?/)},t.getDateByAsciiString=function(e){if("string"!=typeof e)return e;var t=this._parseExceptionToRawArray(e);if(!t)return null;var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this._createDateTuple(t),7),i=n[0],o=n[1],a=n[2],r=n[3],s=n[4],l=n[5];return n[6]?new Date(Date.UTC(i,o,a,r,s,l)):new Date(i,o,a,r,s,l)},t._dispose=function(){this.rRuleSet&&(delete this.rRuleSet,this.rRuleSet=null),this.rRule&&(delete this.rRule,this.rRule=null)},t._getTimeZoneOffset=function(){return(new Date).getTimezoneOffset()},t._initializeRRule=function(e,t,n){var i=this,o=r.RRule.parseString(e.rule),a=e.firstDayOfWeek;o.dtstart=t,!o.wkst&&a&&(o.wkst=[6,0,1,2,3,4,5][a]),o.until=l.default.createUTCDateWithLocalOffset(n),this._createRRule(o),e.exception&&e.exception.split(",").map((function(e){return i.getDateByAsciiString(e)})).forEach((function(t){e.getPostProcessedException&&(t=e.getPostProcessedException(t));var n=l.default.createUTCDateWithLocalOffset(t);i.rRuleSet.exdate(n)}))},t._createRRule=function(e){this._dispose();var t=new r.RRuleSet;this.rRuleSet=t,this.rRule=new r.RRule(e),this.rRuleSet.rrule(this.rRule)},t._getLeftBorder=function(e,t,n){return e.end&&!l.default.isSameAppointmentDates(e.start,e.end)?new Date(t.getTime()-n):t},t._parseRecurrenceRule=function(e){for(var t={},n=e.split(";"),i=0,o=n.length;i<o;i++){var a=n[i].split("="),r=a[0].toLowerCase(),s=a[1];t[r]=s}var l=parseInt(t.count);if(isNaN(l)||(t.count=l),t.interval){var u=parseInt(t.interval);isNaN(u)||(t.interval=u)}else t.interval=1;return t.freq&&t.until&&(t.until=this.getDateByAsciiString(t.until)),t},t._createDateTuple=function(e){var t=void 0!==e[8];return e.shift(),void 0===e[3]?e.splice(3):(e.splice(3,1),e.splice(6)),e[1]--,e.unshift(null),[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseInt(e[4])||0,parseInt(e[5])||0,parseInt(e[6])||0,t]},e}(),y=function(){function e(){}var t=e.prototype;return t.validateRRule=function(e,t){return!(this._brokenRuleNameExists(e)||-1===(0,a.inArray)(e.freq,f)||this._wrongCountRule(e)||this._wrongIntervalRule(e)||this._wrongDayOfWeek(e)||this._wrongByMonthDayRule(e)||this._wrongByMonth(e)||this._wrongUntilRule(e))||(this._logBrokenRule(t),!1)},t._wrongUntilRule=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},t._wrongCountRule=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},t._wrongByMonthDayRule=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},t._wrongByMonth=function(e){var t=!1,n=e.bymonth;return n&&isNaN(parseInt(n))&&(t=!0),t},t._wrongIntervalRule=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},t._wrongDayOfWeek=function(e){var t=e.byday,n=_().daysFromByDayRule(e),i=!1;return""===t&&(i=!0),(0,o.each)(n,(function(e,t){if(!Object.prototype.hasOwnProperty.call(p,t))return i=!0,!1})),i},t._brokenRuleNameExists=function(e){var t=!1;return(0,o.each)(e,(function(e){if(-1===(0,a.inArray)(e,h))return t=!0,!1})),t},t._logBrokenRule=function(e){-1===(0,a.inArray)(e,g)&&(i.default.log("W0006",e),g.push(e))},e}()},53555:function(e,t,n){t.default=void 0;var i=_(n(99393)),o=_(n(73176)),a=_(n(68374)),r=_(n(91198)),s=n(13306),l=n(35922),u=_(n(91500)),d=_(n(28109)),c=_(n(17737)),h=_(n(28236)),f=_(n(29589)),p=_(n(96452)),g=_(n(34171)),m=n(88609);function _(e){return e&&e.__esModule?e:{default:e}}function v(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n(14305);var b="-label",w="-wrapper",C="dx-recurrence-repeat-end",S="dx-recurrence-selectbox-freq",k="dx-recurrence-numberbox-interval",D="dx-recurrence-repeat-on",I=[{recurrence:"dxScheduler-recurrenceHourly",value:"hourly"},{recurrence:"dxScheduler-recurrenceDaily",value:"daily"},{recurrence:"dxScheduler-recurrenceWeekly",value:"weekly"},{recurrence:"dxScheduler-recurrenceMonthly",value:"monthly"},{recurrence:"dxScheduler-recurrenceYearly",value:"yearly"}],T=I.map((function(e){return{text:function(){return d.default.format(e.recurrence)},value:e.value}})),E=[{type:"never"},{type:"until"},{type:"count"}],A=["SU","MO","TU","WE","TH","FR","SA"],O=function(){function e(e){this._recurrenceProcessor=(0,m.getRecurrenceProcessor)(),this._recurrenceRule=this._recurrenceProcessor.evalRecurrenceRule(e).rule}var t=e.prototype;return t.makeRules=function(e){this._recurrenceRule=this._recurrenceProcessor.evalRecurrenceRule(e).rule},t.makeRule=function(e,t){!t||Array.isArray(t)&&!t.length?delete this._recurrenceRule[e]:(0,l.isDefined)(e)&&("until"===e&&delete this._recurrenceRule.count,"count"===e&&delete this._recurrenceRule.until,this._recurrenceRule[e]=t)},t.getRepeatEndRule=function(){var e=this._recurrenceRule;return"count"in e?"count":"until"in e?"until":"never"},t.getRecurrenceString=function(){return this._recurrenceProcessor.getRecurrenceString(this._recurrenceRule)},t.getRules=function(){return this._recurrenceRule},t.getDaysFromByDayRule=function(){return this._recurrenceProcessor.daysFromByDayRule(this._recurrenceRule)},e}(),P=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,x(t,n);var p=i.prototype;return p._getDefaultOptions=function(){var t=e.prototype._getDefaultOptions.call(this);return(0,s.extend)(t,{value:null,startDate:new Date,firstDayOfWeek:void 0})},p._getFirstDayOfWeek=function(){var e=this.option("firstDayOfWeek");return(0,l.isDefined)(e)?e:u.default.firstDayOfWeekIndex()},p._createComponent=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._extendConfig(i,{readOnly:this.option("readOnly")}),e.prototype._createComponent.call(this,t,n,i)},p._init=function(){e.prototype._init.call(this),this._recurrenceRule=new O(this.option("value"))},p._render=function(){e.prototype._render.call(this),this.$element().addClass("dx-recurrence-editor"),this._$container=(0,a.default)("<div>").addClass("dx-recurrence-editor-container").appendTo(this.$element()),this._prepareEditors(),this._renderEditors(this._$container)},p.getEditorByField=function(e){var t=this.getRecurrenceForm().getEditor(e);if(!(0,l.isDefined)(t))switch(e){case"byday":t=this._weekEditor;break;case"count":t=this._repeatCountEditor;break;case"until":t=this._repeatUntilDate}return t},p._prepareEditors=function(){var e=(this._recurrenceRule.getRules().freq||I[1].value).toLowerCase();return this._editors=[this._createFreqEditor(e),this._createIntervalEditor(e),this._createRepeatOnLabel(e),{itemType:"group",cssClass:D,colCount:2,colCountByScreen:{xs:2},items:this._createRepeatOnEditor(e)},{itemType:"group",items:this._createRepeatEndEditor()}],this._editors},p._createFreqEditor=function(e){var t=this;return{dataField:"freq",name:"FREQ",editorType:"dxSelectBox",cssClass:S,editorOptions:{items:T,value:e,field:"freq",valueExpr:"value",displayExpr:"text",layout:"horizontal",elementAttr:{class:S},onValueChanged:function(e){return t._valueChangedHandler(e)}},label:{text:d.default.format("dxScheduler-editorLabelRecurrence")}}},p._createIntervalEditor=function(e){var t=this,n=this._recurrenceRule.getRules().interval||1;return{itemType:"group",colCount:2,cssClass:"".concat(k).concat(w),colCountByScreen:{xs:2},items:[{dataField:"interval",editorType:"dxNumberBox",editorOptions:{width:70,min:1,field:"interval",value:n,showSpinButtons:!0,useLargeSpinButtons:!1,elementAttr:{class:k},onValueChanged:function(e){return t._valueChangedHandler(e)}},label:{text:d.default.format("dxScheduler-recurrenceRepeatEvery")}},{name:"intervalLabel",cssClass:"".concat(k).concat(b),template:function(){return d.default.format("dxScheduler-recurrenceRepeat".concat(e.charAt(0).toUpperCase()).concat(e.substr(1).toLowerCase()))}}]}},p._createRepeatOnLabel=function(e){return{itemType:"group",cssClass:"".concat(D).concat(b),items:[{name:"repeatOnLabel",colSpan:2,template:function(){return d.default.format("dxScheduler-recurrenceRepeatOn")},visible:e&&"daily"!==e&&"hourly"!==e}]}},p._createRepeatOnEditor=function(e){return[this._createByDayEditor(e),this._createByMonthEditor(e),this._createByMonthDayEditor(e)]},p._createByDayEditor=function(e){var t=this;return{dataField:"byday",colSpan:2,template:function(e,n){var i=t._getFirstDayOfWeek(),o=t._daysOfWeekByRules(),r=u.default.getDayNames("abbreviated"),s=A.slice(i).concat(A.slice(0,i)),l=r.slice(i).concat(r.slice(0,i)).map((function(e,t){return{text:e,key:s[t]}}));t._$repeatOnWeek=(0,a.default)("<div>").addClass("dx-recurrence-button-group").appendTo(n),t._weekEditor=t._createComponent(t._$repeatOnWeek,h.default,{items:l,field:"byday",selectionMode:"multiple",selectedItemKeys:o,keyExpr:"key",onSelectionChanged:function(e){var n=e.component.option("selectedItemKeys");t._recurrenceRule.makeRule("byday",n),t._changeEditorValue()}})},visible:"weekly"===e,label:{visible:!1}}},p._createByMonthEditor=function(e){var t=this,n=u.default.getMonthNames("wide");return{dataField:"bymonth",editorType:"dxSelectBox",editorOptions:{field:"bymonth",items:v(Array(12)).map((function(e,t){return{value:"".concat(t+1),text:n[t]}})),value:this._monthOfYearByRules(),width:120,displayExpr:"text",valueExpr:"value",elementAttr:{class:"dx-recurrence-selectbox-month-of-year"},onValueChanged:function(e){return t._valueChangedHandler(e)}},visible:"yearly"===e,label:{visible:!1}}},p._createByMonthDayEditor=function(e){var t=this;return{dataField:"bymonthday",editorType:"dxNumberBox",editorOptions:{min:1,max:31,width:70,field:"bymonthday",showSpinButtons:!0,useLargeSpinButtons:!1,value:this._dayOfMonthByRules(),elementAttr:{class:"dx-recurrence-numberbox-day-of-month"},onValueChanged:function(e){return t._valueChangedHandler(e)}},visible:"monthly"===e||"yearly"===e,label:{visible:!1}}},p._createRepeatEndEditor=function(){var e=this,t=this._recurrenceRule.getRepeatEndRule();return[{dataField:"repeatEnd",editorType:"dxRadioGroup",editorOptions:{items:E,value:t,valueExpr:"type",field:"repeatEnd",itemTemplate:function(t){return"count"===t.type?e._renderRepeatCountEditor():"until"===t.type?e._renderRepeatUntilEditor():e._renderDefaultRepeatEnd()},layout:"vertical",elementAttr:{class:"dx-recurrence-radiogroup-repeat-type"},onValueChanged:function(t){return e._repeatEndValueChangedHandler(t)}},label:{text:d.default.format("dxScheduler-recurrenceEnd")}}]},p._renderEditors=function(e){this._recurrenceForm=this._createComponent(e,c.default,{items:this._editors,showValidationSummary:!0,scrollingEnabled:!0,showColonAfterLabel:!1,labelLocation:"top"}),this._disableRepeatEndParts()},p._setAriaDescribedBy=function(e,t){var n="label-".concat(new o.default);e.setAria("describedby",n),e.setAria("id",n,t)},p.getRecurrenceForm=function(){return this._recurrenceForm},p.changeValueByVisibility=function(e){e?this.option("value")||this._handleDefaults():(this._recurrenceRule.makeRules(""),this.option("value",""))},p._handleDefaults=function(){this._recurrenceRule.makeRule("freq",I[1].value),this._changeEditorValue()},p._changeEditorValue=function(){this.option("value",this._recurrenceRule.getRecurrenceString()||"")},p._daysOfWeekByRules=function(){var e=this._recurrenceRule.getDaysFromByDayRule();return e.length||(e=[A[this.option("startDate").getDay()]]),e},p._dayOfMonthByRules=function(){var e=this._recurrenceRule.getRules().bymonthday;return e||(e=this.option("startDate").getDate()),e},p._monthOfYearByRules=function(){var e=this._recurrenceRule.getRules().bymonth;return e||(e=this.option("startDate").getMonth()+1),String(e)},p._renderDefaultRepeatEnd=function(){var e=(0,a.default)("<div>").addClass(C+w);return(0,a.default)("<div>").text(d.default.format("dxScheduler-recurrenceNever")).addClass(C+b).appendTo(e),e},p._repeatEndValueChangedHandler=function(e){var t=e.value;this._disableRepeatEndParts(t),"until"===t&&this._recurrenceRule.makeRule(t,this._getUntilValue()),"count"===t&&this._recurrenceRule.makeRule(t,this._repeatCountEditor.option("value")),"never"===t&&(this._recurrenceRule.makeRule("count",""),this._recurrenceRule.makeRule("until","")),this._changeEditorValue()},p._disableRepeatEndParts=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._recurrenceRule.getRepeatEndRule();"until"===e&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!1)),"count"===e&&(this._repeatCountEditor.option("disabled",!1),this._repeatUntilDate.option("disabled",!0)),"never"===e&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!0))},p._renderRepeatCountEditor=function(){var e=this._recurrenceRule.getRules().count||1,t=(0,a.default)("<div>").addClass(C+w);return(0,a.default)("<div>").text(d.default.format("dxScheduler-recurrenceAfter")).addClass(C+b).appendTo(t),this._$repeatCountEditor=(0,a.default)("<div>").addClass("dx-recurrence-numberbox-repeat-count").appendTo(t),(0,a.default)("<div>").text(d.default.format("dxScheduler-recurrenceRepeatCount")).addClass(C+b).appendTo(t),this._repeatCountEditor=this._createComponent(this._$repeatCountEditor,g.default,{field:"count",width:70,min:1,showSpinButtons:!0,useLargeSpinButtons:!1,value:e,onValueChanged:this._repeatCountValueChangeHandler.bind(this)}),t},p._repeatCountValueChangeHandler=function(e){if("count"===this._recurrenceRule.getRepeatEndRule()){var t=e.value;this._recurrenceRule.makeRule("count",t),this._changeEditorValue()}},p._formatUntilDate=function(e){return this._recurrenceRule.getRules().until&&r.default.sameDate(this._recurrenceRule.getRules().until,e)?e:r.default.setToDayEnd(e)},p._renderRepeatUntilEditor=function(){var e=this._recurrenceRule.getRules().until||this._formatUntilDate(new Date),t=(0,a.default)("<div>").addClass(C+w);return(0,a.default)("<div>").text(d.default.format("dxScheduler-recurrenceOn")).addClass(C+b).appendTo(t),this._$repeatDateEditor=(0,a.default)("<div>").addClass("dx-recurrence-datebox-until-date").appendTo(t),this._repeatUntilDate=this._createComponent(this._$repeatDateEditor,f.default,{field:"until",value:e,type:"date",onValueChanged:this._repeatUntilValueChangeHandler.bind(this),calendarOptions:{firstDayOfWeek:this._getFirstDayOfWeek()},useMaskBehavior:!0}),t},p._repeatUntilValueChangeHandler=function(e){if("until"===this._recurrenceRule.getRepeatEndRule()){var t=this._formatUntilDate(new Date(e.value));this._repeatUntilDate.option("value",t),this._recurrenceRule.makeRule("until",t),this._changeEditorValue()}},p._valueChangedHandler=function(e){var t=e.value,n=e.previousValue,i=e.component.option("field");this.option("visible")?(this._recurrenceRule.makeRule(i,t),"freq"===i&&(this._makeRepeatOnRule(t),this._changeRepeatOnVisibility(t,n)),this._changeEditorValue()):this.option("value","")},p._makeRepeatOnRule=function(e){"daily"!==e&&"hourly"!==e||(this._recurrenceRule.makeRule("byday",""),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"weekly"===e&&(this._recurrenceRule.makeRule("byday",this._daysOfWeekByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"monthly"===e&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("byday","")),"yearly"===e&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",this._monthOfYearByRules()),this._recurrenceRule.makeRule("byday",""))},p._optionChanged=function(t){var n,i,o,a;switch(t.name){case"readOnly":null===(n=this._recurrenceForm)||void 0===n||n.option("readOnly",t.value),null===(i=this._repeatCountEditor)||void 0===i||i.option("readOnly",t.value),null===(o=this._weekEditor)||void 0===o||o.option("readOnly",t.value),null===(a=this._repeatUntilDate)||void 0===a||a.option("readOnly",t.value),e.prototype._optionChanged.call(this,t);break;case"value":this._recurrenceRule.makeRules(t.value),this._changeRepeatIntervalLabel(),this._disableRepeatEndParts(),this._changeEditorsValue(this._recurrenceRule.getRules()),e.prototype._optionChanged.call(this,t);break;case"startDate":this._makeRepeatOnRule(this._recurrenceRule.getRules().freq),(0,l.isDefined)(this._recurrenceRule.getRecurrenceString())&&this._changeEditorValue();break;case"firstDayOfWeek":if(this._weekEditor){var r=u.default.getDayNames("abbreviated"),s=A.slice(t.value).concat(A.slice(0,t.value)),d=r.slice(t.value).concat(r.slice(0,t.value)).map((function(e,t){return{text:e,key:s[t]}}));this._weekEditor.option("items",d)}this._$repeatDateEditor&&this._repeatUntilDate.option("calendarOptions.firstDayOfWeek",this._getFirstDayOfWeek());break;default:e.prototype._optionChanged.call(this,t)}},p._changeRepeatOnVisibility=function(e,t){e!==t&&(this._recurrenceForm.itemOption("byday","visible",!1),this._recurrenceForm.itemOption("bymonthday","visible",!1),this._recurrenceForm.itemOption("bymonth","visible",!1),this._recurrenceForm.itemOption("repeatOnLabel","visible",e&&"daily"!==e&&"hourly"!==e),"weekly"===e&&this._recurrenceForm.itemOption("byday","visible",!0),"monthly"===e&&this._recurrenceForm.itemOption("bymonthday","visible",!0),"yearly"===e&&(this._recurrenceForm.itemOption("bymonthday","visible",!0),this._recurrenceForm.itemOption("bymonth","visible",!0)))},p._changeRepeatIntervalLabel=function(){var e=this._recurrenceRule.getRules().freq;e&&this._recurrenceForm.itemOption("intervalLabel","template",d.default.format("dxScheduler-recurrenceRepeat".concat(e.charAt(0).toUpperCase()).concat(e.substr(1).toLowerCase())))},p._changeEditorsValue=function(e){this._recurrenceForm.getEditor("freq").option("value",(e.freq||I[1].value).toLowerCase()),this._changeDayOfWeekValue(),this._changeDayOfMonthValue(),this._changeMonthOfYearValue(),this._changeIntervalValue(e.interval),this._changeRepeatCountValue(),this._changeRepeatEndValue(),this._changeRepeatUntilValue()},p._changeIntervalValue=function(e){this._recurrenceForm.getEditor("interval").option("value",e||1)},p._changeRepeatEndValue=function(){var e=this._recurrenceRule.getRepeatEndRule();this._recurrenceForm.getEditor("repeatEnd").option("value",e)},p._changeDayOfWeekValue=function(){if(this._recurrenceForm.itemOption("byday").visible){var e=this._daysOfWeekByRules();this.getEditorByField("byday").option("selectedItemKeys",e)}},p._changeDayOfMonthValue=function(){if(this._recurrenceForm.itemOption("bymonthday").visible){var e=this._dayOfMonthByRules();this._recurrenceForm.getEditor("bymonthday").option("value",e)}},p._changeMonthOfYearValue=function(){if(this._recurrenceForm.itemOption("bymonth").visible){var e=this._monthOfYearByRules();this._recurrenceForm.getEditor("bymonth").option("value",e)}},p._changeRepeatCountValue=function(){var e=this._recurrenceRule.getRules().count||1;this._repeatCountEditor.option("value",e)},p._changeRepeatUntilValue=function(){this._repeatUntilDate.option("value",this._getUntilValue())},p._getUntilValue=function(){return this._recurrenceRule.getRules().until||this._formatUntilDate(new Date)},p.toggle=function(){this._freqEditor.focus()},p.setAria=function(){this._switchEditor&&this._switchEditor.setAria(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])},i}(p.default);(0,i.default)("dxRecurrenceEditor",P);var M=P;t.default=M,e.exports=t.default,e.exports.default=t.default},77640:function(e,t,n){t.AgendaResourceProcessor=void 0;var i=n(89386),o=n(62754),a=n(98140);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=function(e,t){this.rawAppointment=e,this.promise=t},l=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._resourceDeclarations=e,this.isLoaded=!1,this.isLoading=!1,this.resourceMap=new Map,this.appointmentPromiseQueue=[]}var t,n,l=e.prototype;return l._pushAllResources=function(){var e=this;this.appointmentPromiseQueue.forEach((function(t){var n=t.promise,o=t.rawAppointment,a=[];e.resourceMap.forEach((function(e,t){var n={label:e.label,values:[]};t in o&&(0,i.wrapToArray)(o[t]).forEach((function(t){return n.values.push(e.map.get(t))})),n.values.length&&a.push(n)})),n.resolve(a)})),this.appointmentPromiseQueue=[]},l._onPullResource=function(e,t,n,i,o){var a=new Map;o.forEach((function(e){return a.set(e[t],e[n])})),this.resourceMap.set(e,{label:i,map:a})},l._hasResourceDeclarations=function(e){return 0!==e.length||(this.appointmentPromiseQueue.forEach((function(e){return e.promise.resolve([])})),this.appointmentPromiseQueue=[],!1)},l._tryPullResources=function(e,t){var n=this;if(!this.isLoading){this.isLoading=!0;var i=[];e.forEach((function(e){var t=(new o.Deferred).done((function(t){return n._onPullResource((0,a.getFieldExpr)(e),(0,a.getValueExpr)(e),(0,a.getDisplayExpr)(e),e.label,t)}));i.push(t);var r=(0,a.getWrappedDataSource)(e.dataSource);r.isLoaded()?t.resolve(r.items()):r.load().done((function(e){return t.resolve(e)})).fail((function(){return t.reject()}))})),o.when.apply(null,i).done((function(){n.isLoaded=!0,n.isLoading=!1,n._pushAllResources()})).fail((function(){return t.reject()}))}},l.initializeState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.resourceDeclarations=e},l.createListAsync=function(e){var t=new o.Deferred;return this.appointmentPromiseQueue.push(new s(e,t)),this._hasResourceDeclarations(this.resourceDeclarations)&&(this.isLoaded?this._pushAllResources():this._tryPullResources(this.resourceDeclarations,t)),t.promise()},t=e,(n=[{key:"resourceDeclarations",get:function(){return this._resourceDeclarations},set:function(e){this._resourceDeclarations=e,this.isLoaded=!1,this.isLoading=!1,this.resourceMap.clear(),this.appointmentPromiseQueue=[]}}])&&r(t.prototype,n),e}();t.AgendaResourceProcessor=l},98140:function(e,t,n){t.setResourceToAppointment=t.reduceResourcesTree=t.loadResources=t.isResourceMultiple=t.groupAppointmentsByResourcesCore=t.groupAppointmentsByResources=t.getWrappedDataSource=t.getValueExpr=t.getResourcesFromItem=t.getResourcesDataByGroups=t.getResourceTreeLeaves=t.getResourceColor=t.getResourceByField=t.getPathToLeaf=t.getPaintedResources=t.getOrLoadResourceItem=t.getGroupsObjectFromGroupsArray=t.getGroupCount=t.getFieldExpr=t.getDisplayExpr=t.getDataAccessors=t.getCellGroups=t.getAppointmentColor=t.getAllGroups=t.filterResources=t.createResourcesTree=t.createResourceEditorModel=t.createReducedResourcesTree=t.createExpressions=void 0;var i,o=n(9234),a=n(85273),r=n(62754),s=(i=n(96687))&&i.__esModule?i:{default:i},l=n(47617),u=n(95479),d=n(13306),c=n(35922),h=n(89386),f=n(48013);function p(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var _=function(e){return e.valueExpr||"id"};t.getValueExpr=_;var v=function(e){return e.displayExpr||"text"};t.getDisplayExpr=v;var y=function(e){return e.fieldExpr||e.field};t.getFieldExpr=y;var x=function(e){if(e instanceof a.DataSource)return e;var t={store:(0,o.normalizeDataSourceOptions)(e).store,pageSize:0};return Array.isArray(e)||(t.filter=e.filter),new a.DataSource(t)};t.getWrappedDataSource=x;var b=function(e){var t=0;return function n(i,o,a,r){a=a||[];for(var s=0;s<i.items.length;s++){var l,u=i.items[s],d={name:i.name,value:u.id,title:u.text,data:null===(l=i.data)||void 0===l?void 0:l[s],children:[],parent:r||null},c=o+1;e[c]&&n(e[c],c,d.children,d),d.children.length||(d.leafIndex=t,t++),a.push(d)}return a}(e[0],0)};t.createResourcesTree=b;var w=function(e,t){return function e(t,n){return(n=n||[]).push(t.value),t.parent&&e(t.parent,n),n}(function e(t,n){for(var i=0;i<t.length;i++){if(t[i].leafIndex===n)return t[i];var o=e(t[i].children,n);if(o)return o}}(b(t),e)).reverse()};t.getPathToLeaf=w;var C=function(e,t){var n=[];if(S(t)){if(e<0)return;for(var i=w(e,t),o=0;o<t.length;o++)n.push({name:t[o].name,id:i[o]})}return n};t.getCellGroups=C;var S=function(e){for(var t=0,n=0,i=e.length;n<i;n++)n?t*=e[n].items.length:t=e[n].items.length;return t};t.getGroupCount=S;var k=function(e){return e.reduce((function(e,t){return m({},e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t.name,t.id))}),{})};t.getGroupsObjectFromGroupsArray=k,t.getAllGroups=function(e){var t=S(e);return p(new Array(t)).map((function(t,n){var i=C(n,e);return k(i)}))};var D=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(i.name===e)return i.data}return[]};t.getResourceByField=D,t.createResourceEditorModel=function(e,t){return e.map((function(e){var n=y(e),i=D(n,t);return{editorOptions:{dataSource:i.length?i:x(e.dataSource),displayExpr:v(e),valueExpr:_(e)},dataField:n,editorType:e.allowMultiple?"dxTagBox":"dxSelectBox",label:{text:e.label||n}}}))};var I=function(e,t){var n=e.find((function(e){return y(e)===t}));return!(null==n||!n.allowMultiple)};t.isResourceMultiple=I;var T=function(e,t){return e.filter((function(e){var n=y(e);return t.indexOf(n)>-1}))};t.filterResources=T;var E=function(e,t){var n=t||[],i=e.find((function(e){return e.useColorAsDefault}));if(i)return i;var o=n.length?T(e,n):e;return o[o.length-1]};t.getPaintedResources=E;var A=function(e,t,n,i){var o=new r.Deferred;return e.forEach((function(e){if(y(e)===n){var a=x(e.dataSource),r=_(e);t.has(n)||t.set(n,a.load()),t.get(n).done((function(e){var t=(0,s.default)(e).filter(r,i).toArray();o.resolve(t[0])})).fail((function(){t.delete(n),o.reject()}))}})),o.promise()};t.getOrLoadResourceItem=A;var O=function(e,t,n){return e[n][t]};t.getDataAccessors=O;var P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=null,a=e.map((function(e){return y(e)}));return a.forEach((function(a){(0,u.each)(n,(function(n,r){var s={};s[n]=r;var l=O(t,a,"getter")(s);if((0,c.isDefined)(l))return o||(o={}),1===l.length&&(l=l[0]),!i||i&&I(e,a)?O(t,a,"setter")(s,(0,h.wrapToArray)(l)):O(t,a,"setter")(s,l),(0,d.extend)(o,s),!0}))})),o};t.getResourcesFromItem=P,t.groupAppointmentsByResources=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={0:t};n.length&&e.loadedResources.length&&(i=M(e,t,e.loadedResources));var o=0;e.loadedResources.forEach((function(e,t){t?o*=e.items.length:o=e.items.length}));for(var a=0;a<o;a++){var r=a.toString();i[r]||(i[r]=[])}return i};var M=function(e,t,n){var i=b(n),o={};return t.forEach((function(t){for(var n=P(e.resources,e.dataAccessors,t),a=R((function(t,n){return O(e.dataAccessors,t,n)}),i,n),r=0;r<a.length;r++)o[a[r]]||(o[a[r]]=[]),o[a[r]].push((0,f.deepExtendArraySafe)({},t,!0))})),o};t.groupAppointmentsByResourcesCore=M;var R=function e(t,n,i,o){o=o||[];for(var a=0;a<n.length;a++)B(t,i,n[a].name,n[a].value)&&((0,c.isDefined)(n[a].leafIndex)&&o.push(n[a].leafIndex),n[a].children&&e(t,n[a].children,i,o));return o};t.getResourceTreeLeaves=R;var B=function(e,t,n,i){var o=e(n,"getter")(t);return!!(o&&(0,h.inArray)(i,o)>-1)};t.createReducedResourcesTree=function(e,t,n){var i=b(e);return V(t,i,n)};var V=function e(t,n,i,o){return o=o?o.children:[],n.forEach((function(n,a){var r=!1,s=n.name,l=n.value,u=n.title,d=n.data,c=t(s,"getter");i.forEach((function(e){if(!r){var t=c(e);Array.isArray(t)?t.indexOf(l)>-1&&(o.push({name:s,value:l,title:u,data:d,children:[]}),r=!0):t===l&&(o.push({name:s,value:l,title:u,data:d,children:[]}),r=!0)}})),r&&n.children&&n.children.length&&e(t,n.children,i,o[a])})),o};t.reduceResourcesTree=V,t.getResourcesDataByGroups=function(e,t,n){if(!n||!n.length)return e;var i={},o=[];return n.forEach((function(e){(0,u.each)(e,(function(e,t){return i[e]=t}))})),e.filter((function(e){var t=e.name;return(0,c.isDefined)(i[t])})).forEach((function(e){return o.push((0,d.extend)({},e))})),o.forEach((function(e){var i=e.items,o=e.data,a=e.name,r=T(t,[a])[0]||{},s=_(r),l=[],d=[];n.filter((function(e){return(0,c.isDefined)(e[a])})).forEach((function(e){(0,u.each)(e,(function(e,t){if(!l.filter((function(n){return n.id===t&&n[s]===e})).length){var n=i.filter((function(e){return e.id===t})),a=o.filter((function(e){return e[s]===t}));l.push.apply(l,p(n)),d.push.apply(d,p(a))}}))})),e.items=l,e.data=d})),o},t.setResourceToAppointment=function(e,t,n,i){var o=t.setter;for(var a in i){var r=i[a],s=I(e,a)?(0,h.wrapToArray)(r):r;o[a](n,s)}};var F=function(e,t,n,i){var o=new r.Deferred,a=(T(e,[n])[0]||{}).colorExpr||"color",s=(0,l.compileGetter)(a);return A(e,t,n,i).done((function(e){return o.resolve(s(e))})).fail((function(){return o.reject()})),o.promise()};t.getResourceColor=F,t.getAppointmentColor=function(e,t){var n=e.resources,i=e.dataAccessors,o=e.loadedResources,a=e.resourceLoaderMap,s=t.groupIndex,l=t.groups,u=t.itemData,d=E(n||[],l);if(d){for(var c=y(d),f=C(s,o),p=(0,h.wrapToArray)(O(i,c,"getter")(u))[0],g=0;g<f.length;g++)if(f[g].name===c){p=f[g].id;break}return F(n,a,c,p)}return(new r.Deferred).resolve().promise()},t.createExpressions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={getter:{},setter:{}};return e.forEach((function(e){var n=y(e);t.getter[n]=(0,l.compileGetter)(n),t.setter[n]=(0,l.compileSetter)(n)})),t},t.loadResources=function(e,t,n){var i=new r.Deferred,o=[],a=[];return T(t||[],e||[]).forEach((function(e){var t=new r.Deferred,i=y(e);o.push(t);var a=x(e.dataSource).load();n.set(i,a),a.done((function(n){var o=function(e,t){var n=(0,l.compileGetter)(_(e)),i=(0,l.compileGetter)(v(e));return t.map((function(e){var t={id:n(e),text:i(e)};return e.color&&(t.color=e.color),t}))}(e,n);t.resolve({name:i,items:o,data:n})})).fail((function(){return t.reject()}))})),o.length?(r.when.apply(null,o).done((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.some((function(e){return 0===e.items.length}));a=o?[]:t,i.resolve(a)})).fail((function(){return i.reject()})),i.promise()):i.resolve(a)}},93837:function(e,t,n){t.default=void 0;var i,o=n(58664),a=n(37518);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=i.prototype;return s.renderShader=function(){for(var e=this._workSpace._isHorizontalGroupedWorkSpace()?this._workSpace._getGroupCount():1,t=0;t<e;t++){var n=0===t,i=n?this._$shader:this.createShader();this._workSpace.isGroupedByDate()?this._customizeGroupedByDateShader(i,t):this._customizeShader(i,t),!n&&this._shader.push(i)}},s._customizeShader=function(e,t){var n=this._workSpace.getIndicationWidth();if(this._applyShaderWidth(e,n),t>=1){var i=this._workSpace,o=i._getCellCount()*i.getCellWidth();e.css("left",o)}else e.css("left",0)},s._applyShaderWidth=function(e,t){var n=(0,a.getBoundingRect)(this._$container.get(0)).width;t>n&&(t=n),t>0&&(0,o.setWidth)(e,t)},s._customizeGroupedByDateShader=function(e,t){var n,i=this._workSpace.getIndicationCellCount(),o=Math.floor(i),a=i-o,r=0===t,s=this._workSpace,l=r?s.getIndicationWidth():a*s.getCellWidth();this._applyShaderWidth(e,l),n=r?s._getCellCount()*s.getCellWidth()*t:s.getCellWidth()*o*s._getGroupCount()+t*s.getCellWidth(),e.css("left",n)},i}(((i=n(72963))&&i.__esModule?i:{default:i}).default);t.default=s,e.exports=t.default,e.exports.default=t.default},72963:function(e,t,n){t.default=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a="dx-scheduler-date-time-shader",r=function(){function e(e){this._workSpace=e,this._$container=this._workSpace._dateTableScrollable.$content()}var t=e.prototype;return t.render=function(){var e=this;this.initShaderElements(),this.renderShader(),this._shader.forEach((function(t,n){e._$container.append(t)}))},t.initShaderElements=function(){this._$shader=this.createShader(),this._shader=[],this._shader.push(this._$shader)},t.renderShader=function(){},t.createShader=function(){return(0,o.default)("<div>").addClass(a)},t.clean=function(){this._$container&&this._$container.find("."+a).remove()},e}();t.default=r,e.exports=t.default,e.exports.default=t.default},58037:function(e,t,n){t.default=void 0;var i=n(58664),o=r(n(68374)),a=r(n(72963));function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l="dx-scheduler-date-time-shader-all-day",u=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var r=a.prototype;return r.renderShader=function(){var e=this._getShaderHeight(),t=this._getShaderMaxHeight(),n=e>t;e>t&&(e=t),(0,i.setHeight)(this._$shader,e);var o=this._workSpace._getGroupCount()||1;this._workSpace.isGroupedByDate()?this._renderGroupedByDateShaderParts(o,e,t,n):this._renderShaderParts(o,e,t,n)},r._renderShaderParts=function(e,t,n,i){for(var o=0;o<e;o++){var a=this._getShaderWidth(o);this._renderTopShader(this._$shader,t,a,o),!i&&this._renderBottomShader(this._$shader,n,t,a,o),this._renderAllDayShader(a,o)}},r._renderGroupedByDateShaderParts=function(e,t,n,i){var o=this._getShaderWidth(0),a=o-this._workSpace.getCellWidth();t<0&&(t=0,a=o),this._renderTopShader(this._$shader,t,o*e,0),!i&&this._renderBottomShader(this._$shader,n,t,a*e+this._workSpace.getCellWidth(),0),this._renderAllDayShader(o*e,0)},r._renderTopShader=function(e,t,n,a){this._$topShader=(0,o.default)("<div>").addClass("dx-scheduler-date-time-shader-top"),n&&(0,i.setWidth)(this._$topShader,n),t&&(0,i.setHeight)(this._$topShader,t),this._$topShader.css("marginTop",this._getShaderTopOffset(a)),this._$topShader.css("left",this._getShaderOffset(a,n)),e.append(this._$topShader)},r._renderBottomShader=function(e,t,n,a,r){this._$bottomShader=(0,o.default)("<div>").addClass("dx-scheduler-date-time-shader-bottom");var s=n<0?a:a-this._workSpace.getCellWidth(),l=n<0?t:t-n;(0,i.setWidth)(this._$bottomShader,s),(0,i.setHeight)(this._$bottomShader,l),this._$bottomShader.css("left",this._getShaderOffset(r,a-this._workSpace.getCellWidth())),e.append(this._$bottomShader)},r._renderAllDayShader=function(e,t){this._workSpace.option("showAllDayPanel")&&(this._$allDayIndicator=(0,o.default)("<div>").addClass(l),(0,i.setHeight)(this._$allDayIndicator,this._workSpace.getAllDayHeight()),(0,i.setWidth)(this._$allDayIndicator,e),this._$allDayIndicator.css("left",this._getShaderOffset(t,e)),this._workSpace._$allDayPanel.prepend(this._$allDayIndicator))},r._getShaderOffset=function(e,t){return this._workSpace.getGroupedStrategy().getShaderOffset(e,t)},r._getShaderTopOffset=function(e){return this._workSpace.getGroupedStrategy().getShaderTopOffset(e)},r._getShaderHeight=function(e,t){return this._workSpace.getGroupedStrategy().getShaderHeight()},r._getShaderMaxHeight=function(e,t){return this._workSpace.getGroupedStrategy().getShaderMaxHeight()},r._getShaderWidth=function(e){return this._workSpace.getGroupedStrategy().getShaderWidth(e)},r.clean=function(){e.prototype.clean.call(this),this._workSpace&&this._workSpace._$allDayPanel&&this._workSpace._$allDayPanel.find("."+l).remove()},a}(a.default);t.default=u,e.exports=t.default,e.exports.default=t.default},77152:function(e,t,n){t.default=void 0;var i=f(n(68374)),o=n(35922),a=f(n(91198)),r=n(95479),s=n(13306),l=n(62060),u=n(9259),d=n(45835),c=n(5480),h=n(36816);function f(e){return e&&e.__esModule?e:{default:e}}var p=a.default.dateToMilliseconds,g={isCurrentViewAgenda:function(){return"agenda"===this.option("currentView")},currentViewUpdated:function(e){this.option("currentView",e)},currentDateUpdated:function(e){this.option("currentDate",e)},getOption:function(e){return this.option(e)},getWorkspaceOption:function(e){return this.getWorkSpace().option(e)},isVirtualScrolling:function(){return this.isVirtualScrolling()},setCellDataCacheAlias:function(e,t){this._workSpace.setCellDataCacheAlias(e,t)},isGroupedByDate:function(){return this.getWorkSpace().isGroupedByDate()},showAppointmentTooltip:function(e){var t=this.getTargetedAppointment(e.data,e.target);this.showAppointmentTooltip(e.data,e.target,t)},hideAppointmentTooltip:function(){this.hideAppointmentTooltip()},showEditAppointmentPopup:function(e){var t=this.getTargetedAppointment(e.data,e.target);this.showAppointmentPopup(e.data,!1,t)},updateAppointmentAfterResize:function(e){var t=u.utils.dataAccessors.getAppointmentInfo(e.$appointment).sourceAppointment.exceptionDate;this._checkRecurringAppointment(e.target,e.data,t,function(){this._updateAppointment(e.target,e.data,(function(){this._appointments.moveAppointmentBack()}))}.bind(this))},getUpdatedData:function(e){return this._getUpdatedData(e)},updateAppointmentAfterDrag:function(e){var t=e.event,n=e.element,i=e.rawAppointment,o=e.coordinates,a=u.utils.dataAccessors.getAppointmentInfo(n),r=(0,c.createAppointmentAdapter)(i,this._dataAccessors,(0,d.getTimeZoneCalculator)(this.key)),l=(0,c.createAppointmentAdapter)((0,s.extend)({},i,this._getUpdatedData(i)),this._dataAccessors,(0,d.getTimeZoneCalculator)(this.key)),h=l.source(),f=this._workSpace.getDroppableCellIndex(),p=this._workSpace.getCellIndexByCoordinates(o),g=l.allDay,m=r.allDay,_=this._workSpace.supportAllDayRow()&&(m&&!g||!m&&g);f!==p||_?this._checkRecurringAppointment(i,h,a.sourceAppointment.exceptionDate,function(){this._updateAppointment(i,h,(function(){this._appointments.moveAppointmentBack(t)}),t)}.bind(this),void 0,void 0,t):this._appointments.moveAppointmentBack(t)},onDeleteButtonPress:function(e){var t=this.getTargetedAppointment(e.data,(0,i.default)(e.target));this.checkAndDeleteAppointment(e.data,t),this.hideAppointmentTooltip()},getTextAndFormatDate:function(e,t,n){var i=(0,c.createAppointmentAdapter)(e,this._dataAccessors,(0,d.getTimeZoneCalculator)(this.key)),o=(0,c.createAppointmentAdapter)(t||e,this._dataAccessors,(0,d.getTimeZoneCalculator)(this.key)),a=(0,d.getTimeZoneCalculator)(this.key),r=a.createDate(o.startDate,{path:"toGrid"}),s=a.createDate(o.endDate,{path:"toGrid"}),l=n||(0,h.getFormatType)(r,s,o.allDay,"month"!==this.option("currentView"));return{text:o.text||i.text,formatDate:(0,h.formatDates)(r,s,l)}},_createAppointmentTitle:function(e){return(0,o.isPlainObject)(e)?e.text:String(e)},getResizableAppointmentArea:function(e){var t=e.allDay,n=this._getCurrentViewOption("groups");if(n&&n.length){if(t||this.getLayoutManager().getRenderingStrategyInstance()._needHorizontalGroupBounds()){var i=this._workSpace.getGroupBounds(e.coordinates);return{left:i.left,right:i.right,top:0,bottom:0}}if(this.getLayoutManager().getRenderingStrategyInstance()._needVerticalGroupBounds(t)&&this._workSpace._isVerticalGroupedWorkSpace()){var o=this._workSpace.getGroupBounds(e.coordinates);return{left:0,right:0,top:o.top,bottom:o.bottom}}}},needRecalculateResizableArea:function(){return this.getWorkSpace().needRecalculateResizableArea()},getAppointmentGeometry:function(e){return this.getLayoutManager().getRenderingStrategyInstance().getAppointmentGeometry(e)},isAllDay:function(e){return this.getLayoutManager().getRenderingStrategyInstance().isAllDay(e)},getDeltaTime:function(e,t,n){return this.getLayoutManager().getRenderingStrategyInstance().getDeltaTime(e,t,n)},getDropDownAppointmentWidth:function(e){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentWidth(this._getViewCountConfig().intervalCount,e)},getDropDownAppointmentHeight:function(){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentHeight()},getCellWidth:function(){return this.getWorkSpace().getCellWidth()},getCellHeight:function(){return this.getWorkSpace().getCellHeight()},getMaxAppointmentCountPerCellByType:function(e){return this.getRenderingStrategyInstance()._getMaxAppointmentCountPerCellByType(e)},needCorrectAppointmentDates:function(){return this.getRenderingStrategyInstance().needCorrectAppointmentDates()},getRenderingStrategyDirection:function(){return this.getRenderingStrategyInstance().getDirection()},updateAppointmentStartDate:function(e){var t,n=e.appointment,i=this._workSpace.getStartViewDate(),o=new Date(e.startDate),r=this._getCurrentViewOption("startDayHour");return this.appointmentTakesAllDay(n)?t=a.default.normalizeDate(o,i):(o<i&&(o=i),t=a.default.normalizeDate(e.startDate,new Date(o))),a.default.roundDateByStartDayHour(t,r)},updateAppointmentEndDate:function(e){var t=e.endDate,n=this._getCurrentViewOption("endDayHour"),i=this._getCurrentViewOption("startDayHour"),o=t;return t.getHours()>=n?o.setHours(n,0,0,0):!e.isSameDate&&i>0&&60*t.getHours()+t.getMinutes()<60*i&&(o=new Date(o.getTime()-p("day"))).setHours(n,0,0,0),o},renderCompactAppointments:function(e){this._compactAppointmentsHelper.render(e)},clearCompactAppointments:function(){this._compactAppointmentsHelper.clear()},supportCompactDropDownAppointments:function(){return this.getLayoutManager().getRenderingStrategyInstance().supportCompactDropDownAppointments()},getGroupCount:function(){return this._workSpace._getGroupCount()},mapAppointmentFields:function(e){var t=e.itemData,n=e.itemElement,i=e.targetedAppointment||this.getTargetedAppointment(t,n);return{appointmentData:e.itemData,appointmentElement:e.itemElement,targetedAppointmentData:i}},dayHasAppointment:function(e,t,n){return this.dayHasAppointment(e,t,n)},getLayoutManager:function(){return this._layoutManager},getAgendaVerticalStepHeight:function(){return this.getWorkSpace().getAgendaVerticalStepHeight()},getAgendaDuration:function(){return this._getCurrentViewOption("agendaDuration")},getStartViewDate:function(){return this.getStartViewDate()},getEndViewDate:function(){return this.getEndViewDate()},forceMaxAppointmentPerCell:function(){return this.forceMaxAppointmentPerCell()},onAgendaReady:function(e){for(var t=this.getAppointmentsInstance()._itemElements(),n=0,i=function(e,i){var o=i+n-1;t.eq(o).addClass(l.AGENDA_LAST_IN_DATE_APPOINTMENT_CLASS),n+=i},o=0;o<e.length;o++)(0,r.each)(e[o],i)},getTimezone:function(){return this._getTimezoneOffsetByOption()},getTargetedAppointmentData:function(e,t){return this.getTargetedAppointment(e,t)},getEndDayHour:function(){return this._workSpace.option("endDayHour")||this.option("endDayHour")},getStartDayHour:function(){return this._workSpace.option("startDayHour")||this.option("startDayHour")},isAdaptive:function(){return this.option("adaptivityEnabled")},removeDroppableCellClass:function(){this._workSpace.removeDroppableCellClass()}};t.default=g,e.exports=t.default,e.exports.default=t.default},37428:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=l(n(73349)),a=n(97906),r=n(35922),s=n(6415);function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var d="tr",c={tableCreator:new(function(){function e(){this.VERTICAL="vertical",this.HORIZONTAL="horizontal"}var t=e.prototype;return t.insertAllDayRow=function(e,t,n){if(e[n]){var a=e[n].find(d);a.length||(a=(0,i.default)(o.default.createElement(d))).append(e[n].get(0)),t.appendChild(a.get?a.get(0):a)}},t.makeTable=function(e){var t,n=o.default.createElement("tbody"),l=[],c=e.groupCount?e.rowCount/e.groupCount:e.rowCount,h=0,f=e.allDayElements,p=e.groupIndex,g=e.rowCount;(0,i.default)(e.container).append(n),f&&(this.insertAllDayRow(f,n,0),h++);for(var m=0;m<g;m++){t=o.default.createElement(d),n.appendChild(t);var _=(m+1)%c==0;e.rowClass&&(t.className=e.rowClass);for(var v=0;v<e.cellCount;v++){var y,x=o.default.createElement("td");t.appendChild(x),e.cellClass&&((0,r.isFunction)(e.cellClass)?x.className=e.cellClass(m,v):x.className=e.cellClass);var b=void 0,w=void 0,C=void 0;if(e.getCellData&&(w=(b=e.getCellData(x,m,v,p)).key,C=b.value,w&&(0,a.data)(x,w,C)),null===(y=e.setAdditionalClasses)||void 0===y||y.call(e,(0,i.default)(x),C),e.cellTemplate&&e.cellTemplate.render){var S=e.getTemplateData?e.getTemplateData(m):{},k={model:u({text:e.getCellText?e.getCellText(m,v):"",date:e.getCellDate?e.getCellDate(m):void 0},S),container:(0,s.getPublicElement)((0,i.default)(x)),index:m*e.cellCount+v};C&&(C.startDate&&(k.model.startDate=C.startDate),C.endDate&&(k.model.endDate=C.endDate),C.groups&&(k.model.groups=C.groups),C.allDay&&(k.model.allDay=C.allDay)),l.push(e.cellTemplate.render.bind(e.cellTemplate,k))}else e.getCellText&&(0,i.default)("<div>").text(e.getCellText(m,v)).addClass(e.getCellTextClass).appendTo((0,i.default)(x))}f&&_&&(this.insertAllDayRow(f,n,h),h++)}return l},t.makeGroupedTable=function(e,t,n,i,o,a,r){return e===this.VERTICAL?this._makeVerticalGroupedRows(t,n,o,a):this._makeHorizontalGroupedRows(t,n,i,o,r)},t.makeGroupedTableFromJSON=function(e,t,n){var i,a=[],r=0,s=(n=n||{}).cellTag||"td",l=n.childrenField||"children",u=n.titleField||"title",c=n.groupTableClass,h=n.groupRowClass,f=n.groupCellClass,p=n.groupCellCustomContent;function g(e,t,n,i){var a={element:o.default.createElement(s),childCount:t};f&&(a.element.className=f);var r=o.default.createTextNode(e);return"function"==typeof p?p(a.element,r,n,i):a.element.appendChild(r),a}return i=o.default.createElement("table"),c&&(i.className=c),function e(t){for(var n=0;n<t.length;n++){var i=(s=t[n])[l]?s[l].length:0,o=g(t[n][u],i,n,t[n]);a[r]||(a[r]=[]),a[r].push(o),i?e(t[n][l]):r++}var s}(t),a.forEach((function(e){var t=o.default.createElement(d);h&&(t.className=h);for(var n=[],a=e.length-1;a>=0;a--){var r=e[a+1],s=e[a].childCount;r&&r.childCount&&(s*=r.childCount),n.push(s)}n.reverse(),e.forEach((function(e,i){n[i]&&e.element.setAttribute("rowSpan",n[i]),t.appendChild(e.element)})),i.appendChild(t)})),i},t._makeFlexGroupedRowCells=function(e,t,n,o){for(var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=[],u=e.items,d=u.length,c=0;c<t*a;c++)for(var h=0;h<d;h++){var f=(0,i.default)("<div>"),p={};if(o&&o.render){var g={model:u[h],container:(0,s.getPublicElement)(f),index:c*d+h};e.data&&(g.model.data=e.data[h]),p.template=o.render.bind(o,g)}else f.text(u[h].text).attr("title",u[h].text).addClass("dx-scheduler-group-header-content"),f=(0,i.default)("<div>").append(f);var m=(0,r.isFunction)(n.groupHeaderClass)?n.groupHeaderClass(h):n.groupHeaderClass;p.element=f.addClass(m),l.push(p)}return l},t._makeVerticalGroupedRows=function(e,t,n){for(var o=[],a=1,r=[],s=function(e){e.template&&o.push(e.template)},l=0;l<e.length;l++){l>0&&(a=e[l-1].items.length*a);var u=this._makeFlexGroupedRowCells(e[l],a,t,n);u.forEach(s),r.push(u)}for(var d=[],c=r.length,h=0;h<c;h++)d.push((0,i.default)("<div>").addClass(t.groupHeaderRowClass));for(var f=c-1;f>=0;f--)for(var p=r[f].length,g=0;g<p;g++)d[f].append(r[f][g].element);return{elements:(0,i.default)("<div>").addClass("dx-scheduler-group-flex-container").append(d),cellTemplates:o}},t._makeHorizontalGroupedRows=function(e,t,n,o,a){for(var r=1,s=e.length,l=[],u=[],d=a?n:1,c=function(e){return e.template&&u.push(e.template),e.element},h=0;h<s;h++){h>0&&(r=e[h-1].items.length*r);var f=this._makeGroupedRowCells(e[h],r,t,o,d);l.push((0,i.default)("<tr>").addClass(t.groupRowClass).append(f.map(c)))}for(var p=l[s-1].find("th").length,g=0;g<s;g++){var m=l[g].find("th"),_=p/m.length;a||(_*=n),(_>1&&1===d||a&&s>1)&&m.attr("colSpan",_)}return{elements:l,cellTemplates:u}},t._makeGroupedRowCells=function(e,t,n,o,a){t*=a=a||1;for(var l=[],u=e.items,d=u.length,c=0;c<t;c++)for(var h=0;h<d;h++){var f=(0,i.default)("<div>"),p={};if(o&&o.render){var g={model:u[h],container:(0,s.getPublicElement)(f),index:c*d+h};e.data&&(g.model.data=e.data[h]),p.template=o.render.bind(o,g)}else f.text(u[h].text),f=(0,i.default)("<div>").append(f);f.addClass(n.groupHeaderContentClass);var m;m=(0,r.isFunction)(n.groupHeaderClass)?n.groupHeaderClass(h):n.groupHeaderClass,p.element=(0,i.default)("<th>").addClass(m).append(f),l.push(p)}return l},e}())};t.default=c,e.exports=t.default,e.exports.default=t.default},61189:function(e,t){t.default=void 0,t.default={zones:[{id:"Africa/Abidjan",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Accra",untils:"-r507yk|1e3pak|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|Infinity",offsets:"0.8667|0|-20",offsetIndices:"012121212121212121212121212121212121212121212121"},{id:"Africa/Addis_Ababa",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Algiers",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|53c00|9idxc0|3i040|51mw0|253uk0|9o2k0|92040|8l3s0|jutc0|4uy840|3rdzw0|46xc00|7x6o0|2xco40|8n180|7x9g0|9d440|kiqg0|9d440|9q2s0|9cyk0|Infinity",offsets:"-9.35|0|-60|-120",offsetIndices:"0121212121212121232321212122321212"},{id:"Africa/Asmara",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Asmera",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Bamako",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Bangui",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Banjul",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Bissau",untils:"-u9rek0|wvoyo0|Infinity",offsets:"62.3333|60|0",offsetIndices:"012"},{id:"Africa/Blantyre",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Brazzaville",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Bujumbura",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Cairo",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity",offsets:"-120|-180",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Africa/Casablanca",untils:"-tblt9g|di7nxg|3huk0|51k40|2znuk0|2dp9g0|776k0|8nt2s0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|xqqk0|bp56s0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|25s00|g7c00|1stc0|g7c00|25s00|Infinity",offsets:"30.3333|0|-60",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"Africa/Ceuta",untils:"-qyiys0|7x3w0|2vt440|8sqs0|ssyk0|8n6s0|9px80|905g0|a2yo0|902o0|k69dc0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|129us0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Africa/Conakry",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Dakar",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Dar_es_Salaam",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Djibouti",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Douala",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/El_Aaiun",untils:"-isdxk0|m2g0c0|vek0|4qak0|e1ms0|7pp80|cnms0|3afw0|fke5g0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|25s00|g7c00|1stc0|g7c00|25s00|Infinity",offsets:"52.8|60|0|-60",offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Africa/Freetown",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Gaborone",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Harare",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Johannesburg",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity",offsets:"-90|-120|-180",offsetIndices:"012121"},{id:"Africa/Juba",untils:"-kcrsis|kixuys|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|Infinity",offsets:"-126.4667|-120|-180",offsetIndices:"01212121212121212121212121212121212"},{id:"Africa/Kampala",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Khartoum",untils:"-kcrsow|kixv4w|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|9ac180|Infinity",offsets:"-130.1333|-120|-180",offsetIndices:"012121212121212121212121212121212121"},{id:"Africa/Kigali",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Kinshasa",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Lagos",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Libreville",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Lome",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Luanda",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Lubumbashi",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Lusaka",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Malabo",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Maputo",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Maseru",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity",offsets:"-90|-120|-180",offsetIndices:"012121"},{id:"Africa/Mbabane",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity",offsets:"-90|-120|-180",offsetIndices:"012121"},{id:"Africa/Mogadishu",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Monrovia",untils:"-qj6zc4|rl202a|Infinity",offsets:"43.1333|44.5|0",offsetIndices:"012"},{id:"Africa/Nairobi",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Ndjamena",untils:"-u9rk4c|zdk5cc|7iak0|Infinity",offsets:"-60.2|-60|-120",offsetIndices:"0121"},{id:"Africa/Niamey",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Nouakchott",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Ouagadougou",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Porto-Novo",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Sao_Tome",untils:"-u9rhc0|1jbm840|irxc0|Infinity",offsets:"36.75|0|-60",offsetIndices:"0121"},{id:"Africa/Timbuktu",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Tripoli",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity",offsets:"-52.7333|-60|-120",offsetIndices:"012121212121212121212121212122122"},{id:"Africa/Tunis",untils:"-uozn3l|enxevl|b5uo0|53c00|u8w00|7x9g0|c8w80|7k800|z3w0|ew40|8bx80|9d440|9nx00|925o0|8l100|gi3440|7k800|b9k00|7vc00|51mw00|5ytc0|9d1c0|9d1c0|b9k00|7thc0|7m0tc0|7tk40|93us0|b5uo0|7k800|b5uo0|7x6o0|asw00|Infinity",offsets:"-9.35|-60|-120",offsetIndices:"0121212121212121212121212121212121"},{id:"Africa/Windhoek",untils:"-yvtdi0|kn7o60|9cyk0|oj2nw0|235k00|8lho0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|Infinity",offsets:"-90|-120|-180|-60",offsetIndices:"01211313131313131313131313131313131313131313131313131"},{id:"America/Adak",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Anchorage",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"600|540|480",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Anguilla",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Antigua",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Araguaina",untils:"-t85j2o|99k8mo|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|51udg0|64ak0|Infinity",offsets:"192.8|180|120",offsetIndices:"0121212121212121212121212121212121212121212121212121"},{id:"America/Argentina/Buenos_Aires",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232323232"},{id:"America/Argentina/Catamarca",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132321232"},{id:"America/Argentina/ComodRivadavia",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132321232"},{id:"America/Argentina/Cordoba",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132323232"},{id:"America/Argentina/Jujuy",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|7qcg40|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323121323232"},{id:"America/Argentina/La_Rioja",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323231232321232"},{id:"America/Argentina/Mendoza",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|5unes0|6hes0|1p7mk0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232312121321232"},{id:"America/Argentina/Rio_Gallegos",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232321232"},{id:"America/Argentina/Salta",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323231323232"},{id:"America/Argentina/San_Juan",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|5v2840|2txg0|1sgak0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323231232321232"},{id:"America/Argentina/San_Luis",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|7pp80|b2aw0|71mk0|4qg40|6s8ik0|2txg0|1sgak0|14nw0|2gys0|b5xg0|7k580|b5xg0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323121212321212"},{id:"America/Argentina/Tucuman",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|mas0|1um2k0|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"0121212121212121212121212121212121212121212323232313232123232"},{id:"America/Argentina/Ushuaia",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|5v0dg0|12ys0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232321232"},{id:"America/Aruba",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/Asuncion",untils:"-jy93zk|ldwofk|s4vw0|s6w40|7tek0|b0dg0|7rjw0|b0dg0|7rjw0|b0dg0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|ahus0|8a2k0|9eys0|9cyk0|9o840|7k580|b7s40|93p80|9gtg0|7nuk0|b42s0|7lzw0|b5xg0|7tek0|b9ms0|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|7kas0|b5rw0|7x9g0|ast80|a31g0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|776k0|biw40|8zzw0|905g0|9px80|905g0|9px80|9d440|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|Infinity",offsets:"230.6667|240|180",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Atikokan",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity",offsets:"360|300",offsetIndices:"0101111"},{id:"America/Atka",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Bahia_Banderas",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|asqg0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"421|420|360|480|300",offsetIndices:"0121212131212121212121212121212121212142424242424242424242424242424242424242424242424242424242"},{id:"America/Bahia",untils:"-t85kv8|99kaf8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|4irc40|6u7w0|Infinity",offsets:"154.0667|180|120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121"},{id:"America/Barbados",untils:"-o0aiaj|46b400|npv1mj|5rbw0|a31g0|8n180|a31g0|8n180|ag040|84ik0|Infinity",offsets:"238.4833|240|180",offsetIndices:"00121212121"},{id:"America/Belem",untils:"-t85j0s|99k8ks|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity",offsets:"193.9333|180|120",offsetIndices:"012121212121212121212121212121"},{id:"America/Belize",untils:"-u52ic0|3edkc0|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|g2t2q0|3e580|4mcys0|2vmk0|Infinity",offsets:"352.8|360|330|300",offsetIndices:"01212121212121212121212121212121212121212121212121213131"},{id:"America/Blanc-Sablon",untils:"-qzp0o0|a2vw0|c5jxg0|1tzdw0|2dnc0|Infinity",offsets:"240|180",offsetIndices:"010110"},{id:"America/Boa_Vista",untils:"-t85grk|99k93k|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|62xk40|7k580|biw40|cvw0|Infinity",offsets:"242.6667|240|180",offsetIndices:"0121212121212121212121212121212121"},{id:"America/Bogota",untils:"-srdoy8|14f1hi8|ha580|Infinity",offsets:"296.2667|300|240",offsetIndices:"0121"},{id:"America/Boise",untils:"-r0emw0|ast80|7x9g0|ast80|1um840|9s7jw0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|51k40|doik0|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|360",offsetIndices:"0101012212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Buenos_Aires",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232323232"},{id:"America/Cambridge_Bay",untils:"-q3gdc0|bjeec0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x6o0|ast80|ct40|7kj40|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|420|360|300",offsetIndices:"0122131212121212121212121212121212121212121212233221212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Campo_Grande",untils:"-t85hvw|99ka7w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"218.4667|240|180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Cancun",untils:"-p1u7c0|vauo00|7ggw40|afuk0|8a840|afuk0|8a840|64ak0|4bms0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|51k40|Infinity",offsets:"347.0667|360|300|240",offsetIndices:"0123232321212121212121212121212121212121212"},{id:"America/Caracas",untils:"-u7lcxw|rlo83w|meoxm0|4dps00|Infinity",offsets:"267.6667|270|240",offsetIndices:"01212"},{id:"America/Catamarca",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132321232"},{id:"America/Cayenne",untils:"-uj7yb4|tcw6r4|Infinity",offsets:"209.3333|240|180",offsetIndices:"012"},{id:"America/Cayman",untils:"-w757vc|Infinity",offsets:"319.6|300",offsetIndices:"01"},{id:"America/Chicago",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Chihuahua",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"424.3333|420|360|300",offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Coral_Harbour",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity",offsets:"360|300",offsetIndices:"0101111"},{id:"America/Cordoba",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132323232"},{id:"America/Costa_Rica",untils:"-pjw8fn|ubtl3n|51ek0|doo40|51ek0|5jso40|8drw0|acas0|2xh80|Infinity",offsets:"336.2167|360|300",offsetIndices:"0121212121"},{id:"America/Creston",untils:"-rshz80|vbus0|Infinity",offsets:"420|480",offsetIndices:"010"},{id:"America/Cuiaba",untils:"-t85hm4|99k9y4|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|w5hg0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"224.3333|240|180",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Curacao",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/Danmarkshavn",untils:"-rvusjk|x8nx3k|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|53hk0|Infinity",offsets:"74.6667|180|120|0",offsetIndices:"01212121212121212121212121212121213"},{id:"America/Dawson_Creek",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|69uk0|Infinity",offsets:"480|420",offsetIndices:"0101101010101010101010101010101010101010101010101010101011"},{id:"America/Dawson",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|465k00|3e2is0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"540|480|420",offsetIndices:"01010110201212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Denver",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Detroit",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlbxo|71s2c|9d440|9cyk0|2cmdg0|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"332.1833|360|300|240",offsetIndices:"0123323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Dominica",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Edmonton",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|ctzk40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"453.8667|420|360",offsetIndices:"0121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Eirunepe",untils:"-t85f28|99ka68|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|7hg2s0|2t2t80|Infinity",offsets:"279.4667|300|240",offsetIndices:"0121212121212121212121212121212121"},{id:"America/El_Salvador",untils:"-pkm4tc|ymao5c|7k580|b5xg0|7k580|Infinity",offsets:"356.8|360|300",offsetIndices:"012121"},{id:"America/Ensenada",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Fort_Nelson",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"480|420",offsetIndices:"01011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"America/Fort_Wayne",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Fortaleza",untils:"-t85kvc|99kafc|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|puk0|id6s0|6h980|Infinity",offsets:"154|180|120",offsetIndices:"0121212121212121212121212121212121212121"},{id:"America/Glace_Bay",untils:"-z94kwc|89fk8c|a2vw0|c5jxg0|1tzdw0|2dnc0|3y8g40|7x3w0|9pa5g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"239.8|240|180",offsetIndices:"012122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Godthab",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"206.9333|180|120",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Goose_Bay",untils:"-qzp20k|a2vw0|8kjbw0|kzjyk|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|6y2s0|22420|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"210.8667|150.8667|210|150|240|180|120",offsetIndices:"010232323232323233232323232323232323232323232323232323232324545454545454545454545454545454545454545454546454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454"},{id:"America/Grand_Turk",untils:"-u85og2|z3brw2|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|18ais0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"307.1667|300|240",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121222121212121212121212121212121212121212121"},{id:"America/Grenada",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Guadeloupe",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Guatemala",untils:"-qqqskk|ss0akk|4ofw0|4tidg0|6djw0|3wwas0|8n180|7n5ms0|7x3w0|Infinity",offsets:"362.0667|360|300",offsetIndices:"0121212121"},{id:"America/Guayaquil",untils:"-kcr84o|wb620o|3jp80|Infinity",offsets:"314|300|240",offsetIndices:"0121"},{id:"America/Guyana",untils:"-smcak8|vj4sz8|81rf90|Infinity",offsets:"232.6667|225|180|240",offsetIndices:"0123"},{id:"America/Halifax",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"254.4|240|180",offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Havana",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity",offsets:"329.6|300|240",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Hermosillo",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|Infinity",offsets:"443.8667|420|360|480",offsetIndices:"0121212131212121"},{id:"America/Indiana/Indianapolis",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Knox",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Indiana/Marengo",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|2wsas0|7x3w0|1c9440|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|fvt9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101011010101010101010101212121212111212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Petersburg",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|sfzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|eu02o0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101010101010101010101010111011212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Tell_City",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|1tw580|9d440|9cyk0|9d440|9cvs0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101021211010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Indiana/Vevay",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|4gyis0|7txx80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|hfzhg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101101212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Vincennes",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101010121211011212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Winamac",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8l40|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101010101010121211021212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indianapolis",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Inuvik",untils:"-8ve5c0|6fce80|9q000|71i2w0|ipzw0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|480|360|420",offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"America/Iqaluit",untils:"-eb6ao0|1l3h80|2dq40|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|240|300|180|360",offsetIndices:"01123212121212121212121212121212121212121212142212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Jamaica",untils:"-u85og2|wbl182|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity",offsets:"307.1667|300|240",offsetIndices:"0121212121212121212121"},{id:"America/Jujuy",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|7qcg40|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323121323232"},{id:"America/Juneau",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9d1c0|9d1c0|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|540",offsetIndices:"01101010101010101010101010001010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202"},{id:"America/Kentucky/Louisville",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|ast9o|1sw2c|21gis0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Kentucky/Monticello",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|bs6g40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Knox_IN",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Kralendijk",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/La_Paz",untils:"-jxzspo|84ik0|Infinity",offsets:"272.6|212.6|240",offsetIndices:"012"},{id:"America/Lima",untils:"-w25lpo|fcxjlo|4ml80|93us0|9cyk0|9d440|9cyk0|nw16s0|4ml80|e5c40|4ml80|1fr1g0|4ml80|1yiys0|4ml80|Infinity",offsets:"308.6|300|240",offsetIndices:"0121212121212121"},{id:"America/Los_Angeles",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c5o|f2iic|owao0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Louisville",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|ast9o|1sw2c|21gis0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Lower_Princes",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/Maceio",untils:"-t85ldw|99kaxw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|1wf1g0|7k580|biw40|puk0|id6s0|6h980|Infinity",offsets:"142.8667|180|120",offsetIndices:"012121212121212121212121212121212121212121"},{id:"America/Managua",untils:"-ijh6oo|ka1i0o|xqqk0|24p6s0|53980|dmtg0|53980|60itw0|dq240|53es0|235h80|4beis0|8zzw0|at4c0|7x140|Infinity",offsets:"345.2|360|300",offsetIndices:"0121212121212121"},{id:"America/Manaus",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity",offsets:"240.0667|240|180",offsetIndices:"01212121212121212121212121212121"},{id:"America/Marigot",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Martinique",untils:"-umcvcs|zz5x4s|8zzw0|Infinity",offsets:"244.3333|240|180",offsetIndices:"0121"},{id:"America/Matamoros",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"400|360|300",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Mazatlan",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"425.6667|420|360|480",offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Mendoza",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|5unes0|6hes0|1p7mk0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232312121321232"},{id:"America/Menominee",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|a7n9g0|9px80|1at9g0|2396k0|9d1c0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"01010110101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Merida",untils:"-p1u7c0|vauo00|hoyk0|6ys0c0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"358.4667|360|300",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Metlakatla",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|gpc840|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|3ylc0|2itg0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|540",offsetIndices:"01101010101010101010101010101010102020200202020202020202020202020202020202020202"},{id:"America/Mexico_City",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"396.6|420|360|300",offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Miquelon",untils:"-ulmyxk|zzqbdk|3m59g0|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"224.6667|240|180|120",offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Moncton",untils:"-z94i40|89fhg0|a2vw0|7mqqo0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|dmtg0|64ak0|cao40|6fek0|bkqs0|7iak0|6y5k0|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a2lo|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6uiyc|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240|180",offsetIndices:"012121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Monterrey",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"401.2667|360|300",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Montevideo",untils:"-w4mll9|67elc0|1s74p9|9et80|9exe0|9czy0|9exe0|9czy0|3ydyq0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7k6m0|9q1e0|9czy0|asxe0|7x5a0|6do20|ppvy0|4mmm0|8g9qq0|901a0|38pe0|2inw0|2nf9g0|8zzw0|1e3s40|9o3y0|q8he0|2kik0|yxhg0|4bh80|s36s0|2vl60|905g0|5rg20|51ek0|weqs0|3yik0|e1ms0|4ofw0|erk40|3yik0|2vs40|gk7w0|41iys0|3wnw0|erk40|4bh80|c8tg0|64ak0|c8tg0|6u7w0|c8tg0|6h980|bvus0|6u7w0|614qs0|9q2s0|a31g0|7x3w0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"224.85|240|180|210|150|120|90",offsetIndices:"001232323232323232323232324242525242525264252525252525252525252525252525252525252525252"},{id:"America/Montreal",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Montserrat",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Nassau",untils:"-u6m4c6|r7u7s6|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"309.5|300|240",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/New_York",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Nipigon",untils:"-qzoxw0|a2vw0|bfxjw0|pmdk0|1tzb40|2dq40|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Nome",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l6c0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540|480",offsetIndices:"011001010101010101010101010101010122323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Noronha",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity",offsets:"129.6667|120|60",offsetIndices:"0121212121212121212121212121212121212121"},{id:"America/North_Dakota/Beulah",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121"},{id:"America/North_Dakota/Center",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/North_Dakota/New_Salem",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Nuuk",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"206.9333|180|120",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Ojinaga",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"417.6667|420|360|300",offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Panama",untils:"-w757vc|Infinity",offsets:"319.6|300",offsetIndices:"01"},{id:"America/Pangnirtung",untils:"-pkmlc0|b0ke00|1tzdw0|2dnc0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|asw00|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|240|180|120|300|360",offsetIndices:"012213121212121212121212121212121212114141414154414141414141414141414141414141414141414141414141414141414141414141414141414"},{id:"America/Paramaribo",untils:"-usj4g8|cixc0c|5lydbk|kcrm6c|Infinity",offsets:"220.6667|220.8667|220.6|210|180",offsetIndices:"01234"},{id:"America/Phoenix",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity",offsets:"420|360",offsetIndices:"01010101010"},{id:"America/Port_of_Spain",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Port-au-Prince",untils:"-rmk9ac|ylcf6c|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8aaw0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|3vpjw0|ast80|7x9g0|ast80|2stv00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|pkg40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"289|300|240",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Porto_Acre",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity",offsets:"271.2|300|240",offsetIndices:"01212121212121212121212121212121"},{id:"America/Porto_Velho",untils:"-t85g60|99k8i0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity",offsets:"255.6|240|180",offsetIndices:"012121212121212121212121212121"},{id:"America/Puerto_Rico",untils:"-efsnk0|1ppu40|2dnc0|Infinity",offsets:"240|180",offsetIndices:"0110"},{id:"America/Punta_Arenas",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|2fnh80|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|Infinity",offsets:"282.7667|300|240|180",offsetIndices:"0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"America/Rainy_River",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Rankin_Inlet",untils:"-6s8lc0|4c6oo0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|360|240|300",offsetIndices:"012131313131313131313131313131313131313131313331313131313131313131313131313131313131313131313131313131313131313131313131"},{id:"America/Recife",untils:"-t85ljc|99kb3c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity",offsets:"139.6|180|120",offsetIndices:"0121212121212121212121212121212121212121"},{id:"America/Regina",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity",offsets:"418.6|420|360",offsetIndices:"012121212121212121212121221212121212121212121212121212"},{id:"America/Resolute",untils:"-bnp9c0|97nco0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|360|240|300",offsetIndices:"012131313131313131313131313131313131313131313331313131313331313131313131313131313131313131313131313131313131313131313131"},{id:"America/Rio_Branco",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity",offsets:"271.2|300|240",offsetIndices:"01212121212121212121212121212121"},{id:"America/Rosario",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132323232"},{id:"America/Santa_Isabel",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Santarem",untils:"-t85hvc|99ka7c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|Infinity",offsets:"218.8|240|180",offsetIndices:"0121212121212121212121212121212"},{id:"America/Santiago",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"282.7667|300|240|180",offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"America/Santo_Domingo",untils:"-j6hz1c|hiw29c|67zw0|1dy840|62ha0|cnle0|4h2m0|elyq0|47ta0|ei9e0|4bim0|eek20|4dda0|ecpe0|dkmtg0|1stc0|Infinity",offsets:"280|300|240|270",offsetIndices:"01213131313131212"},{id:"America/Sao_Paulo",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"186.4667|180|120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Scoresbysund",untils:"-rvurxk|x8ntpk|902o0|9cvs0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"87.8667|120|60|0",offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Shiprock",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Sitka",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|540",offsetIndices:"01101010101010101010101010101010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202"},{id:"America/St_Barthelemy",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Johns",untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"210.8667|150.8667|210|150|90",offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/St_Kitts",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Lucia",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Thomas",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Vincent",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Swift_Current",untils:"-xkq9d4|6l1h14|a2vw0|c5jxg0|1tz5k0|2dvo0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|3yles0|9cyk0|s36s0|9cyk0|9d440|7x3w0|b5xg0|7k580|5j4lg0|Infinity",offsets:"431.3333|420|360",offsetIndices:"012122121212121212121212"},{id:"America/Tegucigalpa",untils:"-pfzh6k|yho0ik|7k580|b5xg0|7k580|96x1g0|4qak0|Infinity",offsets:"348.8667|360|300",offsetIndices:"01212121"},{id:"America/Thule",untils:"-rvuj9g|12yzilg|9cyk0|9d440|9cyk0|9q2s0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"275.1333|240|180",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Thunder_Bay",untils:"-vbavc0|gr8qs0|1tzb40|2dq40|ctmlg0|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Tijuana",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Toronto",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Tortola",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Vancouver",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Virgin",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Whitehorse",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"540|480|420",offsetIndices:"01010110201212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Winnipeg",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Yakutat",untils:"-ek1tg0|1tz000|2e180|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1lbw0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"540|480",offsetIndices:"01101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Yellowknife",untils:"-i9m2o0|3pk3o0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|420|360|300",offsetIndices:"012213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Antarctica/Casey",untils:"-irxc0|lag4o0|73bo0|uz1o0|60l80|2fnh80|pz9g0|Infinity",offsets:"0|-480|-660",offsetIndices:"01212121"},{id:"Antarctica/Davis",untils:"-6rmdc0|42jdw0|27wgs0|l8uss0|7eqs0|unmk0|60qs0|Infinity",offsets:"0|-420|-300",offsetIndices:"01012121"},{id:"Antarctica/DumontDUrville",untils:"-c05eo0|2mks80|2i72g0|Infinity",offsets:"0|-600",offsetIndices:"0101"},{id:"Antarctica/Macquarie",untils:"-rsj4w0|8zzw0|11wqk0|f4kh40|a6p8g0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660|0",offsetIndices:"0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101011"},{id:"Antarctica/Mawson",untils:"-8aelc0|t22y80|Infinity",offsets:"0|-360|-300",offsetIndices:"012"},{id:"Antarctica/McMurdo",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Antarctica/Palmer",untils:"-2lxhc0|31ho0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|46b6s0|8c2s0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|Infinity",offsets:"0|180|240|120",offsetIndices:"0121212121213121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Antarctica/Rothera",untils:"3lxs00|Infinity",offsets:"0|180",offsetIndices:"01"},{id:"Antarctica/South_Pole",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Antarctica/Syowa",untils:"-6qsqo0|Infinity",offsets:"0|-180",offsetIndices:"01"},{id:"Antarctica/Troll",untils:"ibruo0|27pg0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-120",offsetIndices:"00101010101010101010101010101010101010101010101010101010101010101010"},{id:"Antarctica/Vostok",untils:"-6aaao0|Infinity",offsets:"0|-360",offsetIndices:"01"},{id:"Arctic/Longyearbyen",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Aden",untils:"-bwgbbg|Infinity",offsets:"-186.8667|-180",offsetIndices:"01"},{id:"Asia/Almaty",untils:"-nu1a90|37a0d0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity",offsets:"-307.8|-300|-360|-420",offsetIndices:"012323232323232323232321232323232323232323232323232"},{id:"Asia/Amman",untils:"-kcrtbk|m566fk|60l80|awo40|7v980|awo40|7v980|ayis0|9gnw0|9b9g0|7v980|autg0|7v980|3e6840|9et80|9io40|9cyk0|9d440|9cyk0|9d440|9px80|ayis0|7rjw0|ag040|8a2k0|9zc40|8drw0|a31g0|8zzw0|9d440|9cyk0|9d440|8n180|ag040|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|epmo0|4deo0|9o5c0|9ew00|9b6o0|9ew00|9d1c0|9d1c0|9d1c0|asw00|7x6o0|afxc0|8n400|9d1c0|9d1c0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|wel80|51k40|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity",offsets:"-143.7333|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Anadyr",untils:"-nu1sv8|379zj8|qi27w0|9et80|is040|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-709.9333|-720|-780|-840|-660",offsetIndices:"01232121212121212121214121212121212121212121212121212121212141"},{id:"Asia/Aqtau",untils:"-nu15b4|379y74|qrh3w0|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-201.0667|-240|-300|-360",offsetIndices:"012323232323232323232123232312121212121212121212"},{id:"Asia/Aqtobe",untils:"-nu16l4|379zh4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity",offsets:"-228.6667|-240|-300|-360",offsetIndices:"0123232323232323232321232323232323232323232323232"},{id:"Asia/Ashgabat",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|Infinity",offsets:"-233.5333|-240|-300|-360",offsetIndices:"0123232323232323232323212"},{id:"Asia/Ashkhabad",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|Infinity",offsets:"-233.5333|-240|-300|-360",offsetIndices:"0123232323232323232323212"},{id:"Asia/Atyrau",untils:"-nu15m8|37a1a8|qrh140|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|j3440|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-207.7333|-180|-300|-360|-240",offsetIndices:"01232323232323232323242323232323232324242424242"},{id:"Asia/Baghdad",untils:"-r50g80|xkn3w0|7v980|9b9g0|9gnw0|9eys0|9et80|9d440|9b9g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9f1k0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|Infinity",offsets:"-177.6|-180|-240",offsetIndices:"012121212121212121212121212121212121212121212121212121"},{id:"Asia/Bahrain",untils:"-q3gmvk|rctnrk|Infinity",offsets:"-206.1333|-240|-180",offsetIndices:"012"},{id:"Asia/Baku",untils:"-nu158c|h4tkwc|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|9d1c0|239ew0|asw00|7x3w0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-199.4|-180|-240|-300",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Bangkok",untils:"-pysda4|Infinity",offsets:"-402.0667|-420",offsetIndices:"01"},{id:"Asia/Barnaul",untils:"-q4ljic|5hu6uc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|38fo0|64og0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-335|-360|-420|-480",offsetIndices:"0123232323232323232323212323232321212121212121212121212121212121212"},{id:"Asia/Beirut",untils:"-pyzew0|aunw0|88dg0|9et80|8yas0|a2vw0|a31g0|7k580|hjqo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|5lhs40|56yk0|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|autg0|7v980|2wxus0|8n180|a4w40|8n180|a4w40|8n180|a4w40|8n180|bs5g0|71mk0|alk40|86d80|a4w40|8n180|a4w40|8n180|a6qs0|80t80|905g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|Infinity",offsets:"-120|-180",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Bishkek",untils:"-nu19tc|379zxc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|h8dc0|bkl80|8n180|a31g0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9db20|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|Infinity",offsets:"-298.4|-300|-360|-420",offsetIndices:"012323232323232323232321212121212121212121212121212"},{id:"Asia/Brunei",untils:"-mvofy4|3khxs4|Infinity",offsets:"-459.6667|-450|-480",offsetIndices:"012"},{id:"Asia/Calcutta",untils:"-xehava|innm9a|bmfw0|5lxg0|1mn180|Infinity",offsets:"-321.1667|-330|-390",offsetIndices:"012121"},{id:"Asia/Chita",untils:"-q4cfog|5hkxgg|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnew0|Infinity",offsets:"-453.8667|-480|-540|-600",offsetIndices:"012323232323232323232321232323232323232323232323232323232323232312"},{id:"Asia/Choibalsan",untils:"-xmct7c|11sndrc|2qk2k0|9eqg0|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|s6qk0|3nc0c0|9ct00|9d9o0|9ct00|Infinity",offsets:"-458|-420|-480|-600|-540",offsetIndices:"0123434343434343434343434343434343434343434343424242"},{id:"Asia/Chongqing",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Chungking",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Colombo",untils:"-xehask|isle6k|cajy0|1mp2u0|qetjw0|7x5a0|4xvqq0|Infinity",offsets:"-319.5333|-330|-360|-390",offsetIndices:"01231321"},{id:"Asia/Dacca",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|u4ijy0|a1400|Infinity",offsets:"-353.3333|-390|-330|-360|-420",offsetIndices:"0121343"},{id:"Asia/Damascus",untils:"-q3gk20|5k6q0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|k4hk40|7yyk0|awo40|7tek0|b0dg0|7v980|awo40|7tek0|alk40|887w0|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|6bp80|cg840|6bp80|2eh1g0|8zzw0|9ts40|8zzw0|pvk40|c33w0|7cw40|cjrw0|6zxg0|btuk0|7rpg0|9gnw0|9d440|9cyk0|9et80|9et80|9rxg0|91uk0|92040|9et80|9o840|9et80|9d440|9et80|9eys0|9et80|9b9g0|9gnw0|99es0|9iik0|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|8y580|9q2s0|b5rw0|7x9g0|aunw0|7ig40|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|Infinity",offsets:"-145.2|-120|-180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Dhaka",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|u4ijy0|a1400|Infinity",offsets:"-353.3333|-390|-330|-360|-420",offsetIndices:"0121343"},{id:"Asia/Dili",untils:"-u9s4l8|fqcu98|hufs00|cpz440|Infinity",offsets:"-502.3333|-480|-540",offsetIndices:"01212"},{id:"Asia/Dubai",untils:"-q3gnko|Infinity",offsets:"-221.2|-240",offsetIndices:"01"},{id:"Asia/Dushanbe",untils:"-nu18qo|379yuo|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|hp440|Infinity",offsets:"-275.2|-300|-360|-420",offsetIndices:"012323232323232323232321"},{id:"Asia/Famagusta",untils:"-p4bqac|rvhy2c|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|8h8w0|leog0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-135.8|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212212121212121212121212121212121212121212121"},{id:"Asia/Gaza",untils:"-ffv9k0|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|5hoqs0|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|1sns0|3p6is0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|66as0|4vxc0|8n400|a2yo0|8n400|a2yo0|8n400|asw00|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|8n400|a2yo0|8ulg0|97ek0|8y580|9ts40|8hms0|a4qk0|7x3w0|asys0|8a5c0|ahs1o|71mic|bzk5o|69uic|cg840|902o0|9q000|9cyk0|9d440|ast80|7z440|aqyk0|7z6w0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|Infinity",offsets:"-120|-180",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Harbin",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Hebron",untils:"-ffv9k0|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|5hoqs0|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|1sns0|3p6is0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|66as0|4vxc0|8n400|a2yo0|8n400|a2yo0|8n400|asw00|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|8n400|a2yo0|8ulg0|97ek0|8y580|9ts40|8hms0|a4qk0|82nw0|anes0|8a5c0|afxc0|73h80|bzk5o|69uic|1hs40|1lbw0|9d440|902o0|9q000|9cyk0|9d440|ast80|7z440|aqyk0|7z6w0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|Infinity",offsets:"-120|-180",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Ho_Chi_Minh",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity",offsets:"-426.6667|-426.5|-420|-480|-540",offsetIndices:"0123423232"},{id:"Asia/Hong_Kong",untils:"-y0i0s0|j44dk0|5k000|4d4y0|2195i0|7x3w0|bj320|6uao0|bvs00|7x6o0|9d1c0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-456.7|-480|-540|-510",offsetIndices:"0123212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Hovd",untils:"-xmcoz0|11sncb0|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|Infinity",offsets:"-366.6|-360|-420|-480",offsetIndices:"012323232323232323232323232323232323232323232323232"},{id:"Asia/Irkutsk",untils:"-q28gn5|5fh175|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-417.0833|-420|-480|-540",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Istanbul",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p4040|4zjw0|2vs40|f4d80|9vms0|1u5ek0|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a31g0|8zzw0|a31g0|8n180|5md9g0|o9zw0|a6qs0|75bw0|4iwyw0|7x6o0|7kas0|b5rw0|75hg0|bkl80|77c40|biqk0|7x9g0|a2vw0|8n6s0|4iqc0|2nkw80|38l80|kdes0|8qtc0|8a5c0|9ew00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|902o0|9q000|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|8fe80|Infinity",offsets:"-116.9333|-120|-180|-240",offsetIndices:"0121212121212121212121212121212121212121212121223212121212121212121212121212121212121212121212121212121212121212122"},{id:"Asia/Jakarta",untils:"-o0bdpc|4lzxc0|4wdzjc|1tu960|1cx860|11jta0|74uc20|Infinity",offsets:"-427.2|-440|-450|-540|-480|-420",offsetIndices:"01232425"},{id:"Asia/Jayapura",untils:"-jebm20|66bqe0|a37vy0|Infinity",offsets:"-562.8|-540|-570",offsetIndices:"0121"},{id:"Asia/Jerusalem",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity",offsets:"-140.6667|-120|-180|-240",offsetIndices:"012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Kabul",untils:"-d1pkg0|Infinity",offsets:"-240|-270",offsetIndices:"01"},{id:"Asia/Kamchatka",untils:"-olrupo|3z045o|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-634.6|-660|-720|-780",offsetIndices:"012323232323232323232321232323232323232323232323232323232323212"},{id:"Asia/Karachi",untils:"-wvpb30|im3zt0|1mn180|33xpg0|a63o20|g72qo0|9cyk0|2y85g0|7v980|8hms0|aaak0|Infinity",offsets:"-268.2|-330|-390|-300|-360",offsetIndices:"012133434343"},{id:"Asia/Kashgar",untils:"-lx5pjw|Infinity",offsets:"-350.3333|-360",offsetIndices:"01"},{id:"Asia/Kathmandu",untils:"-q3gt4s|yg2lus|Infinity",offsets:"-341.2667|-330|-345",offsetIndices:"012"},{id:"Asia/Katmandu",untils:"-q3gt4s|yg2lus|Infinity",offsets:"-341.2667|-330|-345",offsetIndices:"012"},{id:"Asia/Khandyga",untils:"-q4cjrp|5hl1jp|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|3fx40|4h6s0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity",offsets:"-542.2167|-480|-540|-600|-660",offsetIndices:"0123232323232323232323212323232323232323232323232343434343434343432"},{id:"Asia/Kolkata",untils:"-xehava|innm9a|bmfw0|5lxg0|1mn180|Infinity",offsets:"-321.1667|-330|-390",offsetIndices:"012121"},{id:"Asia/Krasnoyarsk",untils:"-q37l72|5gg8j2|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-371.4333|-360|-420|-480",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Kuala_Lumpur",untils:"-xphpwd|eeb94d|4it32o|8n3jc|1v2p60|iy3o60|Infinity",offsets:"-415.4167|-420|-440|-450|-540|-480",offsetIndices:"0123435"},{id:"Asia/Kuching",untils:"-mvof3k|3khwxk|1epvy0|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|3ajlc|1v2qk0|Infinity",offsets:"-441.3333|-450|-480|-500|-540",offsetIndices:"0123232323232323242"},{id:"Asia/Kuwait",untils:"-bwgbbg|Infinity",offsets:"-186.8667|-180",offsetIndices:"01"},{id:"Asia/Macao",untils:"-y0i2cy|jdvyoy|6onw0|ac580|8fs40|7v980|11luw0|awlc0|7vc00|ac800|bko00|7x6o0|9d1c0|7vc00|asw00|7x6o0|asw00|7x6o0|auqo0|88ao0|asw00|7x6o0|asw00|779c0|bitc0|779c0|bvs00|6uao0|bw1q0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cvs0|9d6w0|9cvs0|9d6w0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-454.1667|-480|-540|-600",offsetIndices:"012323212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Macau",untils:"-y0i2cy|jdvyoy|6onw0|ac580|8fs40|7v980|11luw0|awlc0|7vc00|ac800|bko00|7x6o0|9d1c0|7vc00|asw00|7x6o0|asw00|7x6o0|auqo0|88ao0|asw00|7x6o0|asw00|779c0|bitc0|779c0|bvs00|6uao0|bw1q0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cvs0|9d6w0|9cvs0|9d6w0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-454.1667|-480|-540|-600",offsetIndices:"012323212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Magadan",untils:"-nu1nxc|37a05c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|s39k0|Infinity",offsets:"-603.2|-600|-660|-720",offsetIndices:"012323232323232323232321232323232323232323232323232323232323232312"},{id:"Asia/Makassar",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity",offsets:"-477.6|-480|-540",offsetIndices:"00121"},{id:"Asia/Manila",untils:"-hb5y80|4qak0|2qidg0|1b2d80|4xf440|442k0|cdqdg0|9et80|Infinity",offsets:"-480|-540",offsetIndices:"010101010"},{id:"Asia/Muscat",untils:"-q3gnko|Infinity",offsets:"-221.2|-240",offsetIndices:"01"},{id:"Asia/Nicosia",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-133.4667|-120|-180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Novokuznetsk",untils:"-nu36tc|37bu5c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-348.8|-360|-420|-480",offsetIndices:"012323232323232323232321232323232323232323232323232323232323212"},{id:"Asia/Novosibirsk",untils:"-q4do0s|5hmbcs|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|2vh00|6hn40|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|wrpg0|Infinity",offsets:"-331.6667|-360|-420|-480",offsetIndices:"0123232323232323232323212323212121212121212121212121212121212121212"},{id:"Asia/Omsk",untils:"-q5xmx6|5j6d16|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-293.5|-300|-360|-420",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Oral",untils:"-nu15ic|37a16c|qi2540|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|9d1c0|5reo0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-205.4|-180|-300|-360|-240",offsetIndices:"01232323232323232424242424242424242424242424242"},{id:"Asia/Phnom_Penh",untils:"-pysda4|Infinity",offsets:"-402.0667|-420",offsetIndices:"01"},{id:"Asia/Pontianak",untils:"-w6piww|cse2o0|4tnu2w|1wkei0|1cx860|11jta0|74uc20|cixam0|Infinity",offsets:"-437.3333|-450|-540|-480|-420",offsetIndices:"001213134"},{id:"Asia/Pyongyang",untils:"-w895yc|1yh10c|hk5da0|10ipmo0|1f4qo0|Infinity",offsets:"-503|-510|-540",offsetIndices:"012212"},{id:"Asia/Qatar",untils:"-q3gmvk|rctnrk|Infinity",offsets:"-206.1333|-240|-180",offsetIndices:"012"},{id:"Asia/Qostanay",untils:"-nu17s4|37a0o4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-254.4667|-240|-300|-360",offsetIndices:"012323232323232323232123232323232323232323232323"},{id:"Asia/Qyzylorda",untils:"-nu184g|37a10g|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|ohhc0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|7osl00|Infinity",offsets:"-261.8667|-240|-300|-360",offsetIndices:"01232323232323232323232323232323232323232323232"},{id:"Asia/Rangoon",untils:"-q3gv5b|bnjp3b|1kh520|Infinity",offsets:"-384.7833|-390|-540",offsetIndices:"0121"},{id:"Asia/Riyadh",untils:"-bwgbbg|Infinity",offsets:"-186.8667|-180",offsetIndices:"01"},{id:"Asia/Saigon",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity",offsets:"-426.6667|-426.5|-420|-480|-540",offsetIndices:"0123423232"},{id:"Asia/Sakhalin",untils:"-xl87rc|kvnarc|ikvh40|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|iq5g0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-570.8|-540|-660|-720|-600",offsetIndices:"01232323232323232323232423232323232424242424242424242424242424242"},{id:"Asia/Samarkand",untils:"-nu18eh|37a1ah|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|Infinity",offsets:"-267.8833|-240|-300|-360",offsetIndices:"01232323232323232323232"},{id:"Asia/Seoul",untils:"-w8966g|1yh18g|hkx5a0|1faao0|5cik0|ae5g0|8a2k0|ae5g0|8bx80|c8tg0|6h980|1bj6s0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity",offsets:"-507.8667|-510|-540|-600|-570",offsetIndices:"012232323232141414141414123232"},{id:"Asia/Shanghai",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Singapore",untils:"-xphpwd|eeb94d|4it32o|8n3jc|1v2p60|iy3o60|Infinity",offsets:"-415.4167|-420|-440|-450|-540|-480",offsetIndices:"0123435"},{id:"Asia/Srednekolymsk",untils:"-nu1ogs|37a0os|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-614.8667|-600|-660|-720",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Taipei",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010101010101010"},{id:"Asia/Tashkent",untils:"-nu18tz|379yxz|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|Infinity",offsets:"-277.1833|-300|-360|-420",offsetIndices:"012323232323232323232321"},{id:"Asia/Tbilisi",untils:"-nu14an|h4tjyn|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|9cvs0|9cyk0|9d440|9cyk0|9d440|ipzw0|9cyk0|9q2s0|tivw0|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|4ofw0|6hn40|7k800|Infinity",offsets:"-179.1833|-180|-240|-300",offsetIndices:"0123232323232323232323212121232323232323232323212"},{id:"Asia/Tehran",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity",offsets:"-205.7333|-210|-240|-300|-270",offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141"},{id:"Asia/Tel_Aviv",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity",offsets:"-140.6667|-120|-180|-240",offsetIndices:"012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Thimbu",untils:"-bojclo|kxymno|Infinity",offsets:"-358.6|-330|-360",offsetIndices:"012"},{id:"Asia/Thimphu",untils:"-bojclo|kxymno|Infinity",offsets:"-358.6|-330|-360",offsetIndices:"012"},{id:"Asia/Tokyo",untils:"-bb4900|6uao0|afxc0|8a5c0|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-540|-600",offsetIndices:"010101010"},{id:"Asia/Tomsk",untils:"-q3zbqf|5h7z2f|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|1leo0|97k40|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|tw040|Infinity",offsets:"-339.85|-360|-420|-480",offsetIndices:"0123232323232323232323212323232323232323232323212121212121212121212"},{id:"Asia/Ujung_Pandang",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity",offsets:"-477.6|-480|-540",offsetIndices:"00121"},{id:"Asia/Ulaanbaatar",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|Infinity",offsets:"-427.5333|-420|-480|-540",offsetIndices:"012323232323232323232323232323232323232323232323232"},{id:"Asia/Ulan_Bator",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|Infinity",offsets:"-427.5333|-420|-480|-540",offsetIndices:"012323232323232323232323232323232323232323232323232"},{id:"Asia/Urumqi",untils:"-lx5pjw|Infinity",offsets:"-350.3333|-360",offsetIndices:"01"},{id:"Asia/Ust-Nera",untils:"-q4cl6u|5hl2yu|qi27w0|9eno0|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity",offsets:"-572.9|-480|-540|-720|-660|-600",offsetIndices:"012343434343434343434345434343434343434343434343434343434343434345"},{id:"Asia/Vientiane",untils:"-pysda4|Infinity",offsets:"-402.0667|-420",offsetIndices:"01"},{id:"Asia/Vladivostok",untils:"-oligf7|3yqvf7|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-527.5167|-540|-600|-660",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Yakutsk",untils:"-q4cioy|5hl0gy|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-518.9667|-480|-540|-600",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Yangon",untils:"-q3gv5b|bnjp3b|1kh520|Infinity",offsets:"-384.7833|-390|-540",offsetIndices:"0121"},{id:"Asia/Yekaterinburg",untils:"-rx5hw9|1kybx4|5pfyv5|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-242.55|-225.0833|-240|-300|-360",offsetIndices:"012343434343434343434343234343434343434343434343434343434343434343"},{id:"Asia/Yerevan",untils:"-nu148o|h4tjwo|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|11t180|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity",offsets:"-178|-180|-240|-300",offsetIndices:"0123232323232323232323212121212323232323232323232323232323232"},{id:"Atlantic/Azores",untils:"-u9rbs0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"114.5333|120|60|0",offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323233323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Atlantic/Bermuda",untils:"-kvj2fu|n4pr3u|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"259.3|240|180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Atlantic/Canary",untils:"-oytbtc|ctvupc|hhq7s0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"61.6|60|0|-60",offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Atlantic/Cape_Verde",untils:"-u9rbs0|g06lc0|1mn180|fpqwc0|Infinity",offsets:"94.0667|120|60",offsetIndices:"01212"},{id:"Atlantic/Faeroe",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"27.0667|0|-60",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Atlantic/Faroe",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"27.0667|0|-60",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Atlantic/Jan_Mayen",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Atlantic/Madeira",untils:"-u9rek0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"67.6|60|0|-60",offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Atlantic/Reykjavik",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity",offsets:"88|60|0",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212"},{id:"Atlantic/South_Georgia",untils:"Infinity",offsets:"120",offsetIndices:"0"},{id:"Atlantic/St_Helena",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Atlantic/Stanley",untils:"-u63pac|dbvxqc|8zzw0|9q2s0|8zzw0|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|4xp80|l1pus0|7k580|b5rw0|77c40|biqk0|id6s0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|77c40|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5xg0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|77c40|biqk0|77c40|biqk0|77c40|Infinity",offsets:"231.4|240|180|120",offsetIndices:"012121212121212323212121212121212121212121212121212121212121212121212"},{id:"Australia/ACT",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Adelaide",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Brisbane",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-600|-660",offsetIndices:"01010101010101010"},{id:"Australia/Broken_Hill",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Canberra",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Currie",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Darwin",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity",offsets:"-570|-630",offsetIndices:"010101010"},{id:"Australia/Eucla",untils:"-rnstlc|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity",offsets:"-525|-585",offsetIndices:"0101010101010101010"},{id:"Australia/Hobart",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/LHI",untils:"5tp880|c8uu0|6u7w0|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|777y0|b5w20|7k6m0|biuq0|7k6m0|biuq0|777y0|biuq0|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|7x820|asum0|b5w20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7k6m0|b5w20|8a3y0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9pym0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|Infinity",offsets:"-600|-630|-690|-660",offsetIndices:"0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313"},{id:"Australia/Lindeman",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|Infinity",offsets:"-600|-660",offsetIndices:"010101010101010101010"},{id:"Australia/Lord_Howe",untils:"5tp880|c8uu0|6u7w0|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|777y0|b5w20|7k6m0|biuq0|7k6m0|biuq0|777y0|biuq0|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|7x820|asum0|b5w20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7k6m0|b5w20|8a3y0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9pym0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|Infinity",offsets:"-600|-630|-690|-660",offsetIndices:"0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313"},{id:"Australia/Melbourne",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/North",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity",offsets:"-570|-630",offsetIndices:"010101010"},{id:"Australia/NSW",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Perth",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity",offsets:"-480|-540",offsetIndices:"0101010101010101010"},{id:"Australia/Queensland",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-600|-660",offsetIndices:"01010101010101010"},{id:"Australia/South",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Sydney",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Tasmania",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Victoria",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/West",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity",offsets:"-480|-540",offsetIndices:"0101010101010101010"},{id:"Australia/Yancowinna",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Brazil/Acre",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity",offsets:"271.2|300|240",offsetIndices:"01212121212121212121212121212121"},{id:"Brazil/DeNoronha",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity",offsets:"129.6667|120|60",offsetIndices:"0121212121212121212121212121212121212121"},{id:"Brazil/East",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"186.4667|180|120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Brazil/West",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity",offsets:"240.0667|240|180",offsetIndices:"01212121212121212121212121212121"},{id:"Canada/Atlantic",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"254.4|240|180",offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Canada/Central",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Canada/Eastern",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Canada/Mountain",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|ctzk40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"453.8667|420|360",offsetIndices:"0121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Canada/Newfoundland",untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"210.8667|150.8667|210|150|90",offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Canada/Pacific",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Canada/Saskatchewan",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity",offsets:"418.6|420|360",offsetIndices:"012121212121212121212121221212121212121212121212121212"},{id:"Canada/Yukon",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"540|480|420",offsetIndices:"01010110201212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"CET",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Chile/Continental",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"282.7667|300|240|180",offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Chile/EasterIsland",untils:"-jhfaew|ivmeuw|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|iq2o0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"437.4667|420|360|300",offsetIndices:"012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"CST6CDT",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Cuba",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity",offsets:"329.6|300|240",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"EET",untils:"3s9ms0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-120|-180",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Egypt",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity",offsets:"-120|-180",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Eire",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8800|8a5c0|bvs00|8n400|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"25.35|-34.65|0|-60",offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"EST",untils:"Infinity",offsets:"300",offsetIndices:"0"},{id:"EST5EDT",untils:"-r0ev80|ast80|7x9g0|ast80|bmtus0|1tzb40|2dq40|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Etc/GMT-0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/GMT-1",untils:"Infinity",offsets:"-60",offsetIndices:"0"},{id:"Etc/GMT-10",untils:"Infinity",offsets:"-600",offsetIndices:"0"},{id:"Etc/GMT-11",untils:"Infinity",offsets:"-660",offsetIndices:"0"},{id:"Etc/GMT-12",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Etc/GMT-13",untils:"Infinity",offsets:"-780",offsetIndices:"0"},{id:"Etc/GMT-14",untils:"Infinity",offsets:"-840",offsetIndices:"0"},{id:"Etc/GMT-2",untils:"Infinity",offsets:"-120",offsetIndices:"0"},{id:"Etc/GMT-3",untils:"Infinity",offsets:"-180",offsetIndices:"0"},{id:"Etc/GMT-4",untils:"Infinity",offsets:"-240",offsetIndices:"0"},{id:"Etc/GMT-5",untils:"Infinity",offsets:"-300",offsetIndices:"0"},{id:"Etc/GMT-6",untils:"Infinity",offsets:"-360",offsetIndices:"0"},{id:"Etc/GMT-7",untils:"Infinity",offsets:"-420",offsetIndices:"0"},{id:"Etc/GMT-8",untils:"Infinity",offsets:"-480",offsetIndices:"0"},{id:"Etc/GMT-9",untils:"Infinity",offsets:"-540",offsetIndices:"0"},{id:"Etc/GMT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/GMT+0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/GMT+1",untils:"Infinity",offsets:"60",offsetIndices:"0"},{id:"Etc/GMT+10",untils:"Infinity",offsets:"600",offsetIndices:"0"},{id:"Etc/GMT+11",untils:"Infinity",offsets:"660",offsetIndices:"0"},{id:"Etc/GMT+12",untils:"Infinity",offsets:"720",offsetIndices:"0"},{id:"Etc/GMT+2",untils:"Infinity",offsets:"120",offsetIndices:"0"},{id:"Etc/GMT+3",untils:"Infinity",offsets:"180",offsetIndices:"0"},{id:"Etc/GMT+4",untils:"Infinity",offsets:"240",offsetIndices:"0"},{id:"Etc/GMT+5",untils:"Infinity",offsets:"300",offsetIndices:"0"},{id:"Etc/GMT+6",untils:"Infinity",offsets:"360",offsetIndices:"0"},{id:"Etc/GMT+7",untils:"Infinity",offsets:"420",offsetIndices:"0"},{id:"Etc/GMT+8",untils:"Infinity",offsets:"480",offsetIndices:"0"},{id:"Etc/GMT+9",untils:"Infinity",offsets:"540",offsetIndices:"0"},{id:"Etc/GMT0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/Greenwich",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/UCT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/Universal",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/UTC",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/Zulu",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Europe/Amsterdam",untils:"-s0dvkk|7v980|a51o0|7x6o0|a2yo0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9b6o0|a2yo0|c51c0|6l1c0|902o0|9q000|ci000|682o0|bgyo0|79400|bitc0|779c0|bmio0|7gio0|bbeo0|7eo00|bd9c0|7ctc0|bf400|7ayo0|bvs00|6uao0|bko00|7idc0|b9k00|7gio0|bbeo0|7eo00|bf400|7ayo0|btxc0|21uc0|4uaz8|bitc0|779c0|bko00|7idc0|bd3s0|1aarpc|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-19.5333|-79.5333|-80|-20|-120|-60",offsetIndices:"010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545"},{id:"Europe/Andorra",untils:"-c4xmo0|k3ctg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Astrakhan",untils:"-nu2zkc|37bv8c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-192.2|-180|-240|-300",offsetIndices:"012323232323232323212121212121212121212121212121212121212121212"},{id:"Europe/Athens",untils:"-rvv0cg|8bjasg|2vmk0|4hiw40|16ik0|scog0|7lx40|9o2k0|9eys0|4atzw0|6djw0|bplus0|bq800|71uw0|9d1c0|902o0|91xc0|9o5c0|905g0|9qgo0|9akg0|9iik0|99980|9dcg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-94.8667|-120|-180|-60",offsetIndices:"012121313121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Belfast",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Belgrade",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Berlin",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|2o7w0|6bs00|2txg0|7k800|91xc0|9b9g0|1sqk0|2inw0|51k40|a2yo0|8n400|9q000|902o0|fx91c0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|-180",offsetIndices:"01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Bratislava",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|b5uo0|7vc00|2vs40|4bk00|2vmk0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|0",offsetIndices:"01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Brussels",untils:"-ss5uo0|rrx80|7vc00|a4yw0|7x6o0|asw00|7x6o0|2wh40|5omo0|b5uo0|6uao0|cyo00|7ayo0|bko00|7rmo0|a2yo0|a2yo0|8n400|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|90b00|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|4deo0|1a36k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0121212101010101010101010101010101010101010101010101212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Bucharest",untils:"-k29zi0|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|kp0dc0|6h980|9q000|905g0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-104.4|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Budapest",untils:"-s0e080|7ves0|a4yw0|7x6o0|a31g0|8n180|autg0|bgvw0|b5jeg0|th9k0|7k800|9q000|9d1c0|9d1c0|awd00|9ew00|7q0c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|a4tc0|9q000|1va2g0|6u7w0|bxpg0|6u7w0|cjxg0|64ak0|cluw0|64g40|br3ek0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Busingen",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Chisinau",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-115|-104.4|-120|-180|-60|-240",offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Copenhagen",untils:"-rzo2w0|75bw0|cbs2w0|1aco80|7k800|9q000|9d1c0|9d1c0|9d1c0|6y000|dbmo0|6bs00|clpc0|51hc0|e1k00|4oio0|giutc0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Dublin",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8800|8a5c0|bvs00|8n400|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"25.35|-34.65|0|-60",offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Gibraltar",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|d0tp80|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101012121212121010121010101010101010101012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Guernsey",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Helsinki",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-99.8167|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Isle_of_Man",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Istanbul",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p4040|4zjw0|2vs40|f4d80|9vms0|1u5ek0|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a31g0|8zzw0|a31g0|8n180|5md9g0|o9zw0|a6qs0|75bw0|4iwyw0|7x6o0|7kas0|b5rw0|75hg0|bkl80|77c40|biqk0|7x9g0|a2vw0|8n6s0|4iqc0|2nkw80|38l80|kdes0|8qtc0|8a5c0|9ew00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|902o0|9q000|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|8fe80|Infinity",offsets:"-116.9333|-120|-180|-240",offsetIndices:"0121212121212121212121212121212121212121212121223212121212121212121212121212121212121212121212121212121212121212122"},{id:"Europe/Jersey",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Kaliningrad",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|el00|z6o0|9kd80|82tg0|i9avw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-60|-120|-180|-240",offsetIndices:"01010101010101121232323232323232322121212121212121212121212121212121212121212121"},{id:"Europe/Kiev",untils:"-nu11ng|37a03g|5vd6k0|kzv40|7k800|9q000|1oyg0|jipzs0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|51ek0|neqw0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-122.0667|-120|-180|-60|-240",offsetIndices:"0121313242424242424242424242121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Kirov",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-198.8|-180|-240|-300",offsetIndices:"01232323232323232321212121212121212121212121212121212121212121"},{id:"Europe/Lisbon",untils:"-u9rhc0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"36.75|0|-60|-120",offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Ljubljana",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/London",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Luxembourg",untils:"-y89550|68l290|75hg0|ast80|796s0|at1k0|7x6o0|3lh40|4zmo0|b6300|6u2c0|cytk0|7at40|bktk0|7rh40|a31g0|a2vw0|8n9k0|8zx40|9q2s0|9et80|9b9g0|a2vw0|8n6s0|9px80|905g0|a2vw0|905g0|a2vw0|8ncc0|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|42ao0|1aeak0|7k800|9q000|9d1c0|8n400|a2yo0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-24.6|-60|-120|0",offsetIndices:"0121212131313131313131313131313131313131313131313131212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Madrid",untils:"-qzlus0|8yas0|9cyk0|9eys0|2d2vw0|8sqs0|ssyk0|8n6s0|9px80|905g0|a2yo0|902o0|a2vw0|8n6s0|40lh80|5k2s0|9cyk0|1frw0|7z1c0|j1c80|8a2k0|13yt80|685g0|brzw0|8n6s0|a2vw0|8n6s0|a2vw0|8n6s0|a2vw0|8n6s0|1clx80|7x9g0|cswik0|905g0|9px80|905g0|8zzw0|9d440|9px80|905g0|9q5k0|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"010101010101010101210121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Malta",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9b6o0|8n400|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|9b6o0|9d1c0|ahs00|7m2o0|b45k0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|a4w40|8y580|9q2s0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Mariehamn",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-99.8167|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Minsk",untils:"-nu113c|379zjc|5r1mk0|pbf40|7k800|9q000|9d1c0|4oac0|j6dmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sg2o0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|Infinity",offsets:"-110|-120|-180|-60|-240",offsetIndices:"01213131242424242424242424221212121212121212121212121212121212121212"},{id:"Europe/Monaco",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|mdbo0|7x3w0|7x9g0|c8w80|7k800|9q000|9d1c0|9nzs0|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-9.35|0|-60|-120",offsetIndices:"01212121212121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Moscow",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jwk7|2cvk0|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-150.2833|-151.3167|-211.3167|-271.3167|-240|-180|-300|-120",offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545"},{id:"Europe/Nicosia",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-133.4667|-120|-180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Oslo",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Paris",untils:"-uozn1x|2qx1lx|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|5p8w0|18rcc0|7k800|9q000|9d1c0|7efo0|29k40|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-9.35|0|-60|-120",offsetIndices:"0121212121212121212121212121212121212121212121212123232332323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Podgorica",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Prague",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|b5uo0|7vc00|2vs40|4bk00|2vmk0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|0",offsetIndices:"01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Riga",untils:"-qznlky|7x6o0|a4tc0|2mg00|3myns0|7fhlky|gz180|p5v40|7k800|9q000|9d1c0|9d1c0|k7s0|j14ns0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|asw00|7x6o0|asw00|7x6o0|b5uo0|qaao0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-96.5667|-156.5667|-120|-180|-60|-240",offsetIndices:"010102324242435353535353535353323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Rome",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|clpc0|64dc0|c8qo0|6hc00|clpc0|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Samara",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|jt1g0|89zs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-200.3333|-180|-240|-300",offsetIndices:"0123232323232323232121232323232323232323232323232323232323212"},{id:"Europe/San_Marino",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|clpc0|64dc0|c8qo0|6hc00|clpc0|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Sarajevo",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Saratov",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|13m040|Infinity",offsets:"-184.3|-180|-240|-300",offsetIndices:"012323232323232321212121212121212121212121212121212121212121212"},{id:"Europe/Simferopol",untils:"-nu12ao|37a0qo|5xiyk0|iu340|7k800|9q000|9d1c0|iac0|jajmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|wrjw0|9cyk0|9d440|9cyk0|9d440|1sqk0|7k580|9d440|9cyk0|9q2s0|at4c0|7x9g0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x3w0|asqg0|Infinity",offsets:"-136|-120|-180|-60|-240",offsetIndices:"012131312424242424242424242121212424242212121212121212121212121212121212142"},{id:"Europe/Skopje",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Sofia",untils:"-e6dzw0|7k800|9q000|9d1c0|9d1c0|9d440|hqq240|9eys0|9o2k0|92040|9o2k0|90880|9pug0|90b00|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-120|-60|-180",offsetIndices:"01010102020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020"},{id:"Europe/Stockholm",untils:"-rzo2w0|75hg0|x5bew0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Tallinn",untils:"-r3exx0|3re10|7x6o0|et6g0|ygov0|a1zgd0|ktx80|l94g0|7k800|9q000|9d1c0|8uac0|j27mk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asys0|7x6o0|b5uo0|19dc00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-99|-60|-120|-180|-240",offsetIndices:"012102321212343434343434343433232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Tirane",untils:"-t85vo8|dt2gw8|18pew0|7k800|m800|g7ot40|7rjw0|autg0|7x3w0|ayis0|7x3w0|b5xg0|7k580|b42s0|7lzw0|b42s0|7lzw0|b42s0|7x3w0|ahus0|7x3w0|b5xg0|7x3w0|a4w40|8jbw0|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-79.3333|-60|-120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Tiraspol",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-115|-104.4|-120|-180|-60|-240",offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Ulyanovsk",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-193.6|-180|-240|-300|-120",offsetIndices:"01232323232323232321214121212121212121212121212121212121212121212"},{id:"Europe/Uzhgorod",untils:"-fizzw0|1cm000|7k800|9q000|9d1c0|al900|cnms0|int140|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|e1sc0|iprk0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|-180|-240",offsetIndices:"010101023232323232323232320121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Vaduz",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Vatican",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|clpc0|64dc0|c8qo0|6hc00|clpc0|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Vienna",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|t6000|8a5c0|a7a800|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|iio0|ivmo0|91xc0|9b6o0|9d1c0|a2yo0|8n400|gfyyg0|8zzw0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Vilnius",untils:"-rns980|1g224o|e75nc|4kqk0|acbs40|gpp40|pits0|7k800|9q000|9d1c0|65zo0|j4vx80|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x9g0|asw00|7x6o0|b5uo0|1s3eo0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-84|-95.6|-60|-120|-180|-240",offsetIndices:"012324323234545454545454545443434343434343434332334343434343434343434343434343434343434343434343434343434343434343434343"},{id:"Europe/Volgograd",untils:"-q3cw84|5glrw4|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|239c40|Infinity",offsets:"-177.6667|-180|-240|-300",offsetIndices:"012323232323232321212121212121212121212121212121212121212121212"},{id:"Europe/Warsaw",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-84|-60|-120|-180",offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Zagreb",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Zaporozhye",untils:"-nu12hc|37a0xc|5u1180|mc0g0|7k800|9q000|12qg0|jjc7s0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9cvs0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-140|-120|-180|-60|-240",offsetIndices:"01213132424242424242424242422121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Zurich",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"GB-Eire",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"GB",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"GMT-0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"GMT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"GMT+0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"GMT0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Greenwich",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Hongkong",untils:"-y0i0s0|j44dk0|5k000|4d4y0|2195i0|7x3w0|bj320|6uao0|bvs00|7x6o0|9d1c0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-456.7|-480|-540|-510",offsetIndices:"0123212121212121212121212121212121212121212121212121212121212121212121"},{id:"HST",untils:"Infinity",offsets:"600",offsetIndices:"0"},{id:"Iceland",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity",offsets:"88|60|0",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212"},{id:"Indian/Antananarivo",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Indian/Chagos",untils:"-wvpc2s|1ag64us|Infinity",offsets:"-289.6667|-300|-360",offsetIndices:"012"},{id:"Indian/Christmas",untils:"Infinity",offsets:"-420",offsetIndices:"0"},{id:"Indian/Cocos",untils:"Infinity",offsets:"-390",offsetIndices:"0"},{id:"Indian/Comoro",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Indian/Kerguelen",untils:"-afrs00|Infinity",offsets:"0|-300",offsetIndices:"01"},{id:"Indian/Mahe",untils:"-x6pjlo|Infinity",offsets:"-221.8|-240",offsetIndices:"01"},{id:"Indian/Maldives",untils:"-57x6y0|Infinity",offsets:"-294|-300",offsetIndices:"01"},{id:"Indian/Mauritius",untils:"-wvp9bc|13jnu7c|8bx80|dd0wc0|7x3w0|Infinity",offsets:"-230|-240|-300",offsetIndices:"012121"},{id:"Indian/Mayotte",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Indian/Reunion",untils:"-uks29s|Infinity",offsets:"-221.8667|-240",offsetIndices:"01"},{id:"Iran",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity",offsets:"-205.7333|-210|-240|-300|-270",offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141"},{id:"Israel",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity",offsets:"-140.6667|-120|-180|-240",offsetIndices:"012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Jamaica",untils:"-u85og2|wbl182|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity",offsets:"307.1667|300|240",offsetIndices:"0121212121212121212121"},{id:"Japan",untils:"-bb4900|6uao0|afxc0|8a5c0|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-540|-600",offsetIndices:"010101010"},{id:"Kwajalein",untils:"-h817w0|27sas0|1hjus0|ddxug0|cgv6k0|Infinity",offsets:"-660|-600|-540|720|-720",offsetIndices:"012034"},{id:"Libya",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity",offsets:"-52.7333|-60|-120",offsetIndices:"012121212121212121212121212122122"},{id:"MET",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Mexico/BajaNorte",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"Mexico/BajaSur",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"425.6667|420|360|480",offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Mexico/General",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"396.6|420|360|300",offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"MST",untils:"Infinity",offsets:"420",offsetIndices:"0"},{id:"MST7MDT",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Navajo",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"NZ-CHAT",untils:"-ciya10|f1tq90|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-735|-765|-825",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"NZ",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Pacific/Apia",untils:"-usiiv4|kcrmt4|vp3la0|9odo0|902o0|4zbk0|4qog0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"686.9333|690|660|600|-840|-780",offsetIndices:"01232345454545454545454545454545454545454545454545454545454"},{id:"Pacific/Auckland",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Pacific/Bougainville",untils:"-ecsh40|1n05g0|1071c40|Infinity",offsets:"-600|-540|-660",offsetIndices:"0102"},{id:"Pacific/Chatham",untils:"-ciya10|f1tq90|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-735|-765|-825",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"Pacific/Chuuk",untils:"-su4zs0|29hes0|bkenw0|29fk40|Infinity",offsets:"-600|-540",offsetIndices:"01010"},{id:"Pacific/Easter",untils:"-jhfaew|ivmeuw|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|iq2o0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"437.4667|420|360|300",offsetIndices:"012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Pacific/Efate",untils:"-u964i4|11f4ba4|9cyk0|awo40|7tek0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|64ak0|e1ms0|4ofw0|Infinity",offsets:"-673.2667|-660|-720",offsetIndices:"0121212121212121212121"},{id:"Pacific/Enderbury",untils:"535io0|7yiqk0|Infinity",offsets:"720|660|-780",offsetIndices:"012"},{id:"Pacific/Fakaofo",untils:"lx0jw0|Infinity",offsets:"660|-780",offsetIndices:"01"},{id:"Pacific/Fiji",untils:"-sa2x4w|17bs00w|64dc0|cyo00|5reo0|53a5c0|64dc0|asw00|6uao0|bvs00|4oio0|e1k00|4oio0|eeio0|4bh80|erk40|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3lmo0|fheo0|38o00|fheo0|3lmo0|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|3lmo0|f4g00|3lmo0|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|3lmo0|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|3lmo0|f4g00|3lmo0|Infinity",offsets:"-715.7333|-720|-780",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121"},{id:"Pacific/Funafuti",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Galapagos",untils:"-kcr62o|spdryo|3lsas0|3jp80|Infinity",offsets:"358.4|300|360",offsetIndices:"01212"},{id:"Pacific/Gambier",untils:"-tvndoc|Infinity",offsets:"539.8|540",offsetIndices:"01"},{id:"Pacific/Guadalcanal",untils:"-tvowac|Infinity",offsets:"-639.8|-660",offsetIndices:"01"},{id:"Pacific/Guam",untils:"-en8eg0|1dl9g0|7s1k40|txp80|3frms0|qdrpo|7kgac|3ljw0|c8tg0|6u7w0|bvus0|6u7w0|16uo40|3ljw0|16aas0|4ivxo|cls2c|6h980|c65zw0|Infinity",offsets:"-600|-540|-660",offsetIndices:"01020202020202020200"},{id:"Pacific/Honolulu",untils:"-j50la0|13l00|4jvb00|1tyvu0|2e5e0|votg0|Infinity",offsets:"630|570|600",offsetIndices:"0101102"},{id:"Pacific/Johnston",untils:"-j50la0|13l00|4jvb00|1tyvu0|2e5e0|votg0|Infinity",offsets:"630|570|600",offsetIndices:"0101102"},{id:"Pacific/Kiritimati",untils:"535eyo|7yirhc|Infinity",offsets:"640|600|-840",offsetIndices:"012"},{id:"Pacific/Kosrae",untils:"-su52k0|29hhk0|9cmd40|27sas0|29fk40|cm2540|f9l3w0|Infinity",offsets:"-660|-540|-600|-720",offsetIndices:"01021030"},{id:"Pacific/Kwajalein",untils:"-h817w0|27sas0|1hjus0|ddxug0|cgv6k0|Infinity",offsets:"-660|-600|-540|720|-720",offsetIndices:"012034"},{id:"Pacific/Majuro",untils:"-su52k0|29hhk0|9cmd40|27sas0|1h6w40|deat40|Infinity",offsets:"-660|-540|-600|-720",offsetIndices:"0102103"},{id:"Pacific/Marquesas",untils:"-tvncu0|Infinity",offsets:"558|570",offsetIndices:"01"},{id:"Pacific/Midway",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"Pacific/Nauru",untils:"-pjxiws|ba66ys|1kwca0|hfzda0|Infinity",offsets:"-667.6667|-690|-540|-720",offsetIndices:"01213"},{id:"Pacific/Niue",untils:"-9wyz6o|ehcj4o|Infinity",offsets:"680|690|660",offsetIndices:"012"},{id:"Pacific/Norfolk",untils:"-9x0ps0|cfj8q0|6hc00|l6nk00|239aq0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-672|-690|-750|-660|-720",offsetIndices:"012134343434343434343434343434343434343434"},{id:"Pacific/Noumea",untils:"-u9645o|ye0ixo|4dbw0|ecqs0|4f6k0|99p700|4oio0|Infinity",offsets:"-665.8|-660|-720",offsetIndices:"01212121"},{id:"Pacific/Pago_Pago",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"Pacific/Palau",untils:"Infinity",offsets:"-540",offsetIndices:"0"},{id:"Pacific/Pitcairn",untils:"es2cy0|Infinity",offsets:"510|480",offsetIndices:"01"},{id:"Pacific/Pohnpei",untils:"-su52k0|29hhk0|9cmd40|27sas0|29fk40|Infinity",offsets:"-660|-540|-600",offsetIndices:"010210"},{id:"Pacific/Ponape",untils:"-su52k0|29hhk0|9cmd40|27sas0|29fk40|Infinity",offsets:"-660|-540|-600",offsetIndices:"010210"},{id:"Pacific/Port_Moresby",untils:"Infinity",offsets:"-600",offsetIndices:"0"},{id:"Pacific/Rarotonga",untils:"4mj960|5rbw0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|Infinity",offsets:"630|570|600",offsetIndices:"012121212121212121212121212"},{id:"Pacific/Saipan",untils:"-en8eg0|1dl9g0|7s1k40|txp80|3frms0|qdrpo|7kgac|3ljw0|c8tg0|6u7w0|bvus0|6u7w0|16uo40|3ljw0|16aas0|4ivxo|cls2c|6h980|c65zw0|Infinity",offsets:"-600|-540|-660",offsetIndices:"01020202020202020200"},{id:"Pacific/Samoa",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"Pacific/Tahiti",untils:"-tvnayw|Infinity",offsets:"598.2667|600",offsetIndices:"01"},{id:"Pacific/Tarawa",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Tongatapu",untils:"-f4vrlc|uo2edc|8fpc0|bvs00|4bh80|eelg0|4bh80|7pmis0|3lmo0|Infinity",offsets:"-740|-780|-840",offsetIndices:"0121212121"},{id:"Pacific/Truk",untils:"-su4zs0|29hes0|bkenw0|29fk40|Infinity",offsets:"-600|-540",offsetIndices:"01010"},{id:"Pacific/Wake",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Wallis",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Yap",untils:"-su4zs0|29hes0|bkenw0|29fk40|Infinity",offsets:"-600|-540",offsetIndices:"01010"},{id:"Poland",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-84|-60|-120|-180",offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Portugal",untils:"-u9rhc0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"36.75|0|-60|-120",offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"PRC",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"PST8PDT",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"ROC",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010101010101010"},{id:"ROK",untils:"-w8966g|1yh18g|hkx5a0|1faao0|5cik0|ae5g0|8a2k0|ae5g0|8bx80|c8tg0|6h980|1bj6s0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity",offsets:"-507.8667|-510|-540|-600|-570",offsetIndices:"012232323232141414141414123232"},{id:"Singapore",untils:"-xphpwd|eeb94d|4it32o|8n3jc|1v2p60|iy3o60|Infinity",offsets:"-415.4167|-420|-440|-450|-540|-480",offsetIndices:"0123435"},{id:"Turkey",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p4040|4zjw0|2vs40|f4d80|9vms0|1u5ek0|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a31g0|8zzw0|a31g0|8n180|5md9g0|o9zw0|a6qs0|75bw0|4iwyw0|7x6o0|7kas0|b5rw0|75hg0|bkl80|77c40|biqk0|7x9g0|a2vw0|8n6s0|4iqc0|2nkw80|38l80|kdes0|8qtc0|8a5c0|9ew00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|902o0|9q000|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|8fe80|Infinity",offsets:"-116.9333|-120|-180|-240",offsetIndices:"0121212121212121212121212121212121212121212121223212121212121212121212121212121212121212121212121212121212121212122"},{id:"UCT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Universal",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"US/Alaska",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"600|540|480",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"US/Aleutian",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"US/Arizona",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity",offsets:"420|360",offsetIndices:"01010101010"},{id:"US/Central",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/East-Indiana",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"US/Eastern",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Hawaii",untils:"-j50la0|13l00|4jvb00|1tyvu0|2e5e0|votg0|Infinity",offsets:"630|570|600",offsetIndices:"0101102"},{id:"US/Indiana-Starke",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Michigan",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlbxo|71s2c|9d440|9cyk0|2cmdg0|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"332.1833|360|300|240",offsetIndices:"0123323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"US/Mountain",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Pacific-New",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c5o|f2iic|owao0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Pacific",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c5o|f2iic|owao0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Samoa",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"UTC",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"W-SU",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jwk7|2cvk0|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-150.2833|-151.3167|-211.3167|-271.3167|-240|-180|-300|-120",offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545"},{id:"WET",untils:"3s9ms0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Zulu",untils:"Infinity",offsets:"0",offsetIndices:"0"}]},e.exports=t.default,e.exports.default=t.default},51690:function(e,t,n){t.default=void 0;var i=s(n(96687)),o=s(n(17381)),a=s(n(61189)),r=n(60810);function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t,n,i=e.offsets,o=e.offsetIndices,a=e.untils;return{offsetList:i.split("|").map((function(e){return parseInt(e)})),offsetIndexList:o.split("").map((function(e){return parseInt(e)})),dateList:(n=a,n.split("|").map((function(e){return"Infinity"===e?null:1e3*parseInt(e,36)}))).map((t=0,function(e){return t+=e}))}},u=new(function(){function e(){this.map=new Map}return e.prototype.tryGet=function(e){if(!this.map.get(e)){var t=d.getTimezoneById(e);if(!t)return!1;var n=l(t);this.map.set(e,n)}return this.map.get(e)},e}()),d={_tzCache:u,_timeZones:a.default.zones,getDisplayedTimeZones:function(e){var t=this,n=this._timeZones.map((function(n){var i=l(n),o=t.getUtcOffset(i,e);return{offset:o,title:"(GMT ".concat(t.formatOffset(o),") ").concat(t.formatId(n.id)),id:n.id}}));return(0,i.default)(n).sortBy("offset").toArray()},formatOffset:function(e){var t=Math.floor(e),n=e-t;return((0,r.sign)(e)>=0?"+":"-")+"0".concat(Math.abs(t)).slice(-2)+(n>0?":".concat(60*n):":00")},formatId:function(e){return e.split("/").join(" - ").split("_").join(" ")},getTimezoneById:function(e){if(e){for(var t=this._timeZones,n=0;n<t.length;n++)if(t[n].id===e)return t[n];o.default.log("W0009",e)}},getTimeZoneOffsetById:function(e,t){var n=u.tryGet(e);return n?this.getUtcOffset(n,t):void 0},getTimeZoneDeclarationTuple:function(e,t){var n=u.tryGet(e);return n?this.getTimeZoneDeclarationTupleCore(n,t):[]},getTimeZoneDeclarationTupleCore:function(e,t){for(var n=e.offsetList,i=e.offsetIndexList,o=e.dateList,a=[],r=0;r<o.length;r++){var s=o[r],l=new Date(s).getFullYear();if(l===t){var u=n[i[r+1]];a.push({date:s,offset:-u/60})}if(l>t)break}return a},getUtcOffset:function(e,t){for(var n=e.offsetList,i=e.offsetIndexList,o=e.dateList,a=o.length-1-1;a>=0&&t<o[a];)a--;var r=n[i[a+1]];return-r/60||r}},c=d;t.default=c,e.exports=t.default,e.exports.default=t.default},39545:function(e,t,n){t.DesktopTooltipStrategy=void 0;var i,o=n(25359),a=(i=n(94920))&&i.__esModule?i:{default:i},r=n(60137);function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=i.prototype;return o._prepareBeforeVisibleChanged=function(e){this._tooltip.option("position",{my:"bottom",at:"top",boundary:this._getBoundary(e),offset:this._extraOptions.offset,collision:"fit flipfit"})},o._getBoundary=function(e){return this._options.isAppointmentInAllDayPanel(e[0].appointment)?this._options.container:this._options.getScrollableContainer()},o._onShown=function(){e.prototype._onShown.call(this),this._extraOptions.isButtonClick&&(this._list.focus(),this._list.option("focusedElement",null))},o._createListOption=function(t,n){var i=e.prototype._createListOption.call(this,t,n);return i.showScrollbar=r.touch?"always":"onHover",i},o._createTooltip=function(e,t){var n=this._createTooltipElement("dx-scheduler-appointment-tooltip-wrapper");return this._options.createComponent(n,a.default,{target:e,maxHeight:200,rtlEnabled:this._extraOptions.rtlEnabled,onShown:this._onShown.bind(this),contentTemplate:this._getContentTemplate(t),copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})},o._onListRender=function(e){return this._extraOptions.dragBehavior&&this._extraOptions.dragBehavior(e)},i}(o.TooltipStrategyBase);t.DesktopTooltipStrategy=l},82586:function(e,t,n){t.MobileTooltipStrategy=void 0;var i,o=n(58664),a=(i=n(89799))&&i.__esModule?i:{default:i},r=n(25359),s=n(58201);function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u="auto",d={show:{type:"slide",duration:300,from:{position:{my:"top",at:"bottom",of:(0,s.getWindow)()}},to:{position:{my:"center",at:"center",of:(0,s.getWindow)()}}},hide:{type:"slide",duration:300,to:{position:{my:"top",at:"bottom",of:(0,s.getWindow)()}},from:{position:{my:"center",at:"center",of:(0,s.getWindow)()}}}},c=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var r=i.prototype;return r._shouldUseTarget=function(){return!1},r._onShowing=function(){var e=(0,o.getWidth)((0,s.getWindow)())>700;this._tooltip.option("height",u);var t=(0,o.getOuterHeight)(this._list.$element());this._tooltip.option(e?function(e){return{shading:!0,width:"80%",height:e>.9*(0,o.getHeight)((0,s.getWindow)())?"90%":u,position:{my:"center",at:"center",of:(0,s.getWindow)()}}}(t):function(e){return{shading:!1,width:"100%",height:e>250?250:u,position:{my:"bottom",at:"bottom",of:(0,s.getWindow)()}}}(t))},r._createTooltip=function(e,t){var n=this,i=this._createTooltipElement("dx-scheduler-overlay-panel");return this._options.createComponent(i,a.default,{target:(0,s.getWindow)(),closeOnOutsideClick:!0,animation:d,onShowing:function(){return n._onShowing()},onShown:this._onShown.bind(this),contentTemplate:this._getContentTemplate(t),copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})},i}(r.TooltipStrategyBase);t.MobileTooltipStrategy=c},25359:function(e,t,n){t.TooltipStrategyBase=void 0;var i=s(n(63008)),o=n(68494),a=s(n(68374)),r=s(n(77834));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e){this._tooltip=null,this._options=e,this._extraOptions=null}var t=e.prototype;return t.show=function(e,t,n){this._canShowTooltip(t)&&(this.hide(),this._extraOptions=n,this._showCore(e,t))},t._showCore=function(e,t){this._tooltip?(this._shouldUseTarget()&&this._tooltip.option("target",e),this._list.option("dataSource",t)):this._tooltip=this._createTooltip(e,t),this._prepareBeforeVisibleChanged(t),this._tooltip.option("visible",!0)},t._prepareBeforeVisibleChanged=function(e){},t._getContentTemplate=function(e){var t=this;return function(n){var i=(0,a.default)("<div>");(0,a.default)(n).append(i),t._list=t._createList(i,e)}},t.isAlreadyShown=function(e){if(this._tooltip&&this._tooltip.option("visible"))return this._tooltip.option("target")[0]===e[0]},t._onShown=function(){this._list.option("focusStateEnabled",this._extraOptions.focusStateEnabled)},t.dispose=function(){},t.hide=function(){this._tooltip&&this._tooltip.option("visible",!1)},t._shouldUseTarget=function(){return!0},t._createTooltip=function(){},t._canShowTooltip=function(e){return!!e.length},t._createListOption=function(e){var t=this;return{dataSource:e,onContentReady:this._onListRender.bind(this),onItemClick:function(e){return t._onListItemClick(e)},itemTemplate:function(e,n){return t._renderTemplate(e.appointment,e.targetedAppointment,n,e.color)},_swipeEnabled:!1}},t._onListRender=function(){},t._createTooltipElement=function(e){return(0,a.default)("<div>").appendTo(this._options.container).addClass(e)},t._createList=function(e,t){return this._options.createComponent(e,r.default,this._createListOption(t))},t._renderTemplate=function(e,t,n,i){var r,s,l,u=this._createItemListContent(e,t,i);this._options.addDefaultTemplates((r={},s=this._getItemListTemplateName(),l=new o.FunctionTemplate((function(e){var t=(0,a.default)(e.container);return t.append(u),t})),s in r?Object.defineProperty(r,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[s]=l,r));var d=this._options.getAppointmentTemplate(this._getItemListTemplateName()+"Template");return this._createFunctionTemplate(d,e,t,n)},t._createFunctionTemplate=function(e,t,n,i){var a=this._isEmptyDropDownAppointmentTemplate();return new o.FunctionTemplate((function(o){return e.render({model:a?{appointmentData:t,targetedAppointmentData:n}:t,container:o.container,index:i})}))},t._getItemListTemplateName=function(){return this._isEmptyDropDownAppointmentTemplate()?"appointmentTooltip":"dropDownAppointment"},t._isEmptyDropDownAppointmentTemplate=function(){return!this._extraOptions.dropDownAppointmentTemplate||"dropDownAppointment"===this._extraOptions.dropDownAppointmentTemplate},t._onListItemClick=function(e){this.hide(),this._extraOptions.clickEvent&&this._extraOptions.clickEvent(e),this._options.showAppointmentPopup(e.itemData.appointment,!1,e.itemData.targetedAppointment)},t._createItemListContent=function(e,t,n){var i=this._extraOptions.editing,o=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item");return o.append(this._createItemListMarker(n)),o.append(this._createItemListInfo(this._options.createFormattedDateText(e,t))),!this._options.getAppointmentDisabled(e)&&(i&&!0===i.allowDeleting||!0===i)&&o.append(this._createDeleteButton(e,t)),o},t._createItemListMarker=function(e){var t=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-marker"),n=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-marker-body");return t.append(n),e&&e.done((function(e){return n.css("background",e)})),t},t._createItemListInfo=function(e){var t=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-content"),n=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-content-subject").text(e.text),i=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-content-date").text(e.formatDate);return t.append(n).append(i)},t._createDeleteButton=function(e,t){var n=this,o=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-delete-button-container"),r=(0,a.default)("<div>").addClass("dx-tooltip-appointment-item-delete-button");return o.append(r),this._options.createComponent(r,i.default,{icon:"trash",stylingMode:"text",onClick:function(i){n.hide(),i.event.stopPropagation(),n._options.checkAndDeleteAppointment(e,t)}}),o},e}();t.TooltipStrategyBase=l},98230:function(e,t,n){t.default=void 0;var i=se(n(99393)),o=se(n(80209)),a=se(n(20530)),r=se(n(68374)),s=n(93280),l=n(10688),u=n(89386),d=se(n(44504)),c=n(20576),h=n(47617),f=n(37518),p=se(n(91198)),g=se(n(69434)),m=n(62754),_=n(13306),v=n(95479),y=n(35922),x=n(58201),b=se(n(53305)),w=n(80506),C=se(n(91500)),S=se(n(28109)),k=n(15029),D=n(75811),I=se(n(96688)),T=se(n(14390)),E=n(39288),A=n(25062),O=n(12090),P=n(39545),M=n(82586),R=n(71125),B=se(n(47918)),V=se(n(99981)),F=n(23477),L=se(n(77152)),H=n(88609),N=se(n(32511)),z=se(n(2809)),W=se(n(37833)),G=se(n(32374)),j=se(n(50007)),q=se(n(6763)),$=se(n(81096)),K=se(n(29004)),U=se(n(4453)),Y=se(n(22928)),Z=n(5480),X=n(6678),Q=n(9259),J=n(45835),ee=n(98140),te=n(86474),ne=n(45985),ie=n(17275),oe=n(77640),ae=n(95121),re=n(11305);function se(e){return e&&e.__esModule?e:{default:e}}function le(){return(le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ue(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function de(e,t){return(de=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ce="dx-scheduler",he="".concat(ce,"-small"),fe="".concat(ce,"-adaptive"),pe="".concat(ce,"-readonly"),ge={day:{workSpace:$.default,renderingStrategy:"vertical"},week:{workSpace:U.default,renderingStrategy:"vertical"},workWeek:{workSpace:Y.default,renderingStrategy:"vertical"},month:{workSpace:K.default,renderingStrategy:"horizontalMonth"},timelineDay:{workSpace:W.default,renderingStrategy:"horizontal"},timelineWeek:{workSpace:j.default,renderingStrategy:"horizontal"},timelineWorkWeek:{workSpace:q.default,renderingStrategy:"horizontal"},timelineMonth:{workSpace:G.default,renderingStrategy:"horizontalMonthLine"},agenda:{workSpace:z.default,renderingStrategy:"agenda"}},me="onAppointmentAdding",_e="onAppointmentAdded",ve="onAppointmentDeleting",ye="onAppointmentDeleted",xe="onAppointmentUpdating",be="onAppointmentUpdated",we="editSeries",Ce="editOccurence",Se=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,de(t,n);var b,T,z=i.prototype;return z._getDefaultOptions=function(){var t=(0,_.extend)(e.prototype._getDefaultOptions.call(this),{views:["day","week"],currentView:"day",currentDate:p.default.trimTime(new Date),min:void 0,max:void 0,dateSerializationFormat:void 0,firstDayOfWeek:void 0,groups:[],resources:[],loadedResources:[],resourceLoaderMap:new Map,dataSource:null,customizeDateNavigatorText:void 0,appointmentTemplate:"item",dropDownAppointmentTemplate:"dropDownAppointment",appointmentCollectorTemplate:"appointmentCollector",dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,startDayHour:0,endDayHour:24,editing:{allowAdding:!0,allowDeleting:!0,allowDragging:!0,allowResizing:!0,allowUpdating:!0,allowTimeZoneEditing:!1},showAllDayPanel:!0,showCurrentTimeIndicator:!0,shadeUntilCurrentTime:!1,indicatorUpdateInterval:3e5,indicatorTime:void 0,recurrenceEditMode:"dialog",cellDuration:30,maxAppointmentsPerCell:"auto",selectedCellData:[],groupByDate:!1,onAppointmentRendered:null,onAppointmentClick:null,onAppointmentDblClick:null,onAppointmentContextMenu:null,onCellClick:null,onCellContextMenu:null,onAppointmentAdding:null,onAppointmentAdded:null,onAppointmentUpdating:null,onAppointmentUpdated:null,onAppointmentDeleting:null,onAppointmentDeleted:null,onAppointmentFormOpening:null,appointmentTooltipTemplate:"appointmentTooltip",appointmentPopupTemplate:"appointmentPopup",crossScrollingEnabled:!1,useDropDownViewSwitcher:!1,startDateExpr:"startDate",endDateExpr:"endDate",textExpr:"text",descriptionExpr:"description",allDayExpr:"allDay",recurrenceRuleExpr:"recurrenceRule",recurrenceExceptionExpr:"recurrenceException",disabledExpr:"disabled",remoteFiltering:!1,timeZone:"",startDateTimeZoneExpr:"startDateTimeZone",endDateTimeZoneExpr:"endDateTimeZone",noDataText:S.default.format("dxCollectionWidget-noDataText"),adaptivityEnabled:!1,allowMultipleCellSelection:!0,scrolling:{mode:"standard"},renovateRender:!0,_draggingMode:"outlook",_appointmentTooltipOffset:{x:0,y:0},_appointmentTooltipButtonsPosition:"bottom",_appointmentTooltipOpenButtonText:S.default.format("dxScheduler-openAppointment"),_dropDownButtonIcon:"overflow",_appointmentCountPerCell:2,_collectorOffset:0,_appointmentOffset:26,toolbar:[{location:"before",defaultElement:"dateNavigator"},{location:"after",defaultElement:"viewSwitcher"}]});return(0,_.extend)(!0,t,{integrationOptions:{useDeferUpdateForTemplates:!1}})},z._setDeprecatedOptions=function(){e.prototype._setDeprecatedOptions.call(this),(0,_.extend)(this._deprecatedOptions,{dropDownAppointmentTemplate:{since:"19.2",message:"appointmentTooltipTemplate"}})},z._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:function(){return"desktop"===a.default.real().deviceType&&!a.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!a.default.current().generic},options:{useDropDownViewSwitcher:!0,editing:{allowDragging:!1,allowResizing:!1}}},{device:function(){return(0,D.isMaterial)()},options:{useDropDownViewSwitcher:!0,dateCellTemplate:function(e,t,n){e.text.split(" ").forEach((function(e,t){var i=(0,r.default)("<span>").text(e).addClass("dx-scheduler-header-panel-cell-date");(0,r.default)(n).append(i),t||(0,r.default)(n).append(" ")}))},_appointmentTooltipOffset:{x:0,y:11},_appointmentTooltipButtonsPosition:"top",_appointmentTooltipOpenButtonText:null,_dropDownButtonIcon:"chevrondown",_appointmentCountPerCell:1,_collectorOffset:20,_appointmentOffset:30}}])},z._postponeDataSourceLoading=function(e){this.postponedOperations.add("_reloadDataSource",this._reloadDataSource.bind(this),e)},z._postponeResourceLoading=function(){var e=this,t=this.postponedOperations.add("loadResources",(function(){var t=e._getCurrentViewOption("groups");return(0,ee.loadResources)(t,e.option("resources"),e.option("resourceLoaderMap"))})),n=new m.Deferred;return t.done((function(t){e.option("loadedResources",t),n.resolve(t)})),this._postponeDataSourceLoading(t),n.promise()},z._optionChanged=function(t){var n,i,o,a=this,r=t.value,s=t.name;switch(t.name){case"customizeDateNavigatorText":this._updateOption("header",s,r);break;case"firstDayOfWeek":this._updateOption("workSpace",s,r),this._updateOption("header",s,r);break;case"currentDate":r=this._dateOption(s),r=p.default.trimTime(new Date(r)),this.option("selectedCellData",[]),this._workSpace.option(s,new Date(r)),null===(n=this._header)||void 0===n||n.option(s,new Date(r)),null===(i=this._header)||void 0===i||i.option("startViewDate",this.getStartViewDate()),this._appointments.option("items",[]),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case"dataSource":this._initDataSource(),this.appointmentDataProvider.setDataSource(this._dataSource),this._postponeResourceLoading().done((function(e){a._filterAppointmentsByDate(),a._updateOption("workSpace","showAllDayPanel",a.option("showAllDayPanel"))}));break;case"min":case"max":r=this._dateOption(s),this._updateOption("header",s,new Date(r)),this._updateOption("workSpace",s,new Date(r));break;case"views":var l;this.modelProvider.updateCurrentView(),this._getCurrentViewOptions()?this.repaint():null===(l=this._header)||void 0===l||l.option(s,r);break;case"useDropDownViewSwitcher":null===(o=this._header)||void 0===o||o.option(s,r);break;case"currentView":this.modelProvider.updateCurrentView(),this._validateDayHours(),this._validateCellDuration(),this._appointments.option({items:[],allowDrag:this._allowDragging(),allowResize:this._allowResizing(),itemTemplate:this._getAppointmentTemplate("appointmentTemplate")}),this._postponeResourceLoading().done((function(e){a._refreshWorkSpace(e),a._updateHeader(),a._filterAppointmentsByDate(),a._appointments.option("allowAllDayResize","day"!==r)}));break;case"appointmentTemplate":this._appointments.option("itemTemplate",r);break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":this.repaint();break;case"groups":this._postponeResourceLoading().done((function(e){a._refreshWorkSpace(e),a._filterAppointmentsByDate()}));break;case"resources":this._dataAccessors.resources=(0,ee.createExpressions)(this.option("resources")),this.agendaResourceProcessor.initializeState(r),this.updateFactoryInstances(),this._postponeResourceLoading().done((function(e){a._appointments.option("items",[]),a._refreshWorkSpace(e),a._filterAppointmentsByDate()}));break;case"startDayHour":case"endDayHour":this._validateDayHours(),this.updateFactoryInstances(),this._appointments.option("items",[]),this._updateOption("workSpace",s,r),this._appointments.repaint(),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case me:case _e:case xe:case be:case ve:case ye:case"onAppointmentFormOpening":this._actions[s]=this._createActionByOption(s);break;case"onAppointmentRendered":this._appointments.option("onItemRendered",this._getAppointmentRenderedAction());break;case"onAppointmentClick":this._appointments.option("onItemClick",this._createActionByOption(s));break;case"onAppointmentDblClick":this._appointments.option(s,this._createActionByOption(s));break;case"onAppointmentContextMenu":this._appointments.option("onItemContextMenu",this._createActionByOption(s));break;case"noDataText":case"allowMultipleCellSelection":case"selectedCellData":case"accessKey":case"onCellClick":case"onCellContextMenu":this._workSpace.option(s,r);break;case"crossScrollingEnabled":this._postponeResourceLoading().done((function(e){a._appointments.option("items",[]),a._refreshWorkSpace(e),a._readyToRenderAppointments&&a._appointments.option("items",a._getAppointmentsToRepaint())}));break;case"cellDuration":this._validateCellDuration(),this._appointments.option("items",[]),this._readyToRenderAppointments&&(this._updateOption("workSpace","hoursInterval",r/60),this._appointments.option("items",this._getAppointmentsToRepaint()));break;case"tabIndex":case"focusStateEnabled":this._updateOption("header",s,r),this._updateOption("workSpace",s,r),this._appointments.option(s,r),e.prototype._optionChanged.call(this,t);break;case"width":this._updateOption("header",s,r),this.option("crossScrollingEnabled")&&this._updateOption("workSpace","width",r),this._updateOption("workSpace","schedulerWidth",r),e.prototype._optionChanged.call(this,t),this._dimensionChanged();break;case"height":e.prototype._optionChanged.call(this,t),this._dimensionChanged(),this._updateOption("workSpace","schedulerHeight",r);break;case"editing":this._initEditing();var u=this._editing;this._bringEditingModeToAppointments(u),this.hideAppointmentTooltip(),this._cleanPopup();break;case"showAllDayPanel":this.updateFactoryInstances(),this._postponeResourceLoading().done((function(e){a._filterAppointmentsByDate(),a._updateOption("workSpace","allDayExpanded",r),a._updateOption("workSpace",s,r)}));break;case"showCurrentTimeIndicator":case"indicatorTime":case"indicatorUpdateInterval":case"shadeUntilCurrentTime":case"groupByDate":this._updateOption("workSpace",s,r),this.repaint();break;case"appointmentDragging":case"appointmentTooltipTemplate":case"appointmentPopupTemplate":case"recurrenceEditMode":case"remoteFiltering":case"timeZone":this.updateFactoryInstances(),this.repaint();break;case"dropDownAppointmentTemplate":case"appointmentCollectorTemplate":case"_appointmentTooltipOffset":case"_appointmentTooltipButtonsPosition":case"_appointmentTooltipOpenButtonText":case"_dropDownButtonIcon":case"_appointmentCountPerCell":case"_collectorOffset":case"_appointmentOffset":this.repaint();break;case"dateSerializationFormat":case"maxAppointmentsPerCell":break;case"startDateExpr":case"endDateExpr":case"startDateTimeZoneExpr":case"endDateTimeZoneExpr":case"textExpr":case"descriptionExpr":case"allDayExpr":case"recurrenceRuleExpr":case"recurrenceExceptionExpr":case"disabledExpr":this._updateExpression(s,r),this.appointmentDataProvider.updateDataAccessors(this._dataAccessors),this._initAppointmentTemplate(),this.repaint();break;case"adaptivityEnabled":this._toggleAdaptiveClass(),this.repaint();break;case"scrolling":this.option("crossScrollingEnabled",this._isHorizontalVirtualScrolling()||this.option("crossScrollingEnabled")),this._updateOption("workSpace",t.fullName,r);break;case"renovateRender":this._updateOption("workSpace",s,r);break;case"_draggingMode":this._workSpace.option("draggingMode",r);break;case"toolbar":this._header?this._header.option("items",r):this.repaint();break;case"loadedResources":case"resourceLoaderMap":break;default:e.prototype._optionChanged.call(this,t)}},z._updateHeader=function(){var e;null===(e=this._header)||void 0===e||e.option({intervalCount:this._getViewCountConfig().intervalCount,startViewDate:this.getStartViewDate(),min:this._dateOption("min"),max:this._dateOption("max"),currentDate:this._dateOption("currentDate"),firstDayOfWeek:this.getFirstDayOfWeek(),currentView:this.modelProvider.currentView})},z._dateOption=function(e){var t=this._getCurrentViewOption(e);return g.default.deserializeDate(t)},z._getSerializationFormat=function(e){var t=this._getCurrentViewOption(e);return"number"==typeof t?"number":(0,y.isString)(t)?g.default.getDateSerializationFormat(t):void 0},z._bringEditingModeToAppointments=function(e){var t={allowDelete:e.allowUpdating&&e.allowDeleting};this._isAgenda()||(t.allowDrag=e.allowDragging,t.allowResize=e.allowResizing,t.allowAllDayResize=e.allowResizing&&this._supportAllDayResizing()),this._appointments.option(t),this.repaint()},z._isAgenda=function(){return"agenda"===this.getLayoutManager().appointmentRenderingStrategyName},z._allowDragging=function(){return this._editing.allowDragging&&!this._isAgenda()},z._allowResizing=function(){return this._editing.allowResizing&&!this._isAgenda()},z._allowAllDayResizing=function(){return this._editing.allowResizing&&this._supportAllDayResizing()},z._supportAllDayResizing=function(){return this.modelProvider.supportAllDayResizing()},z._isAllDayExpanded=function(e){return this.option("showAllDayPanel")&&this.appointmentDataProvider.hasAllDayAppointments(e)},z._getTimezoneOffsetByOption=function(e){return N.default.calculateTimezoneByValue(this.option("timeZone"),e)},z._filterAppointmentsByDate=function(){var e=this._workSpace.getDateRange(),t=(0,J.getTimeZoneCalculator)(this.key),n=t.createDate(e[0],{path:"fromGrid"}),i=t.createDate(e[1],{path:"fromGrid"});this.appointmentDataProvider.filterByDate(n,i,this.option("remoteFiltering"),this.option("dateSerializationFormat"))},z._reloadDataSource=function(){var e=new m.Deferred;return this._dataSource?(this._dataSource.load().done(function(){(0,R.hide)(),this._fireContentReadyAction(e)}.bind(this)).fail((function(){(0,R.hide)(),e.reject()})),this._dataSource.isLoading()&&(0,R.show)({container:this.$element(),position:{of:this.$element()}})):this._fireContentReadyAction(e),e.promise()},z._fireContentReadyAction=function(t){var n,i=e.prototype._fireContentReadyAction.bind(this),o=function(){i(),null==t||t.resolve()};this._workSpaceRecalculation?null===(n=this._workSpaceRecalculation)||void 0===n||n.done((function(){o()})):o()},z._dimensionChanged=function(){if(this._toggleSmallClass(),!this._isAgenda()&&this.filteredItems&&this._isVisible()){this._workSpace.option("allDayExpanded",this._isAllDayExpanded(this.filteredItems)),this._workSpace._dimensionChanged();var e=this.getLayoutManager().createAppointmentsMap(this.filteredItems);this._appointments.option("items",e)}this.hideAppointmentTooltip(),this._appointmentPopup.triggerResize(),this._appointmentPopup.updatePopupFullScreenMode()},z._clean=function(){this._cleanPopup(),e.prototype._clean.call(this)},z._toggleSmallClass=function(){var e=(0,f.getBoundingRect)(this.$element().get(0)).width;this.$element().toggleClass(he,e<400)},z._toggleAdaptiveClass=function(){this.$element().toggleClass(fe,this.option("adaptivityEnabled"))},z._visibilityChanged=function(e){e&&this._dimensionChanged()},z._dataSourceOptions=function(){return{paginate:!1}},z._init=function(){this._initExpressions({startDate:this.option("startDateExpr"),endDate:this.option("endDateExpr"),startDateTimeZone:this.option("startDateTimeZoneExpr"),endDateTimeZone:this.option("endDateTimeZoneExpr"),allDay:this.option("allDayExpr"),text:this.option("textExpr"),description:this.option("descriptionExpr"),recurrenceRule:this.option("recurrenceRuleExpr"),recurrenceException:this.option("recurrenceExceptionExpr"),disabled:this.option("disabledExpr")}),e.prototype._init.call(this),this._initDataSource(),this.$element().addClass(ce),this._initEditing(),this.updateFactoryInstances(),this._initActions(),this._compactAppointmentsHelper=new O.CompactAppointmentsHelper(this),this._asyncTemplatesTimers=[],this._dataSourceLoadedCallback=(0,d.default)(),this._subscribes=L.default,this.agendaResourceProcessor=new oe.AgendaResourceProcessor(this.option("resources"))},z.createAppointmentDataProvider=function(){var e=this;this.appointmentDataProvider=new ae.AppointmentDataProvider({dataSource:this._dataSource,dataAccessors:this._dataAccessors,timeZoneCalculator:(0,J.getTimeZoneCalculator)(this.key),dateSerializationFormat:this.option("dateSerializationFormat"),resources:this.option("resources"),startDayHour:this._getCurrentViewOption("startDayHour"),endDayHour:this._getCurrentViewOption("endDayHour"),appointmentDuration:this._getCurrentViewOption("cellDuration"),showAllDayPanel:this.option("showAllDayPanel"),getLoadedResources:function(){return e.option("loadedResources")},getIsVirtualScrolling:function(){return e.isVirtualScrolling()},getSupportAllDayRow:function(){return e._workSpace.supportAllDayRow()},getViewType:function(){return e._workSpace.type},getViewDirection:function(){return e._workSpace.viewDirection},getDateRange:function(){return e._workSpace.getDateRange()},getGroupCount:function(){return e._workSpace._getGroupCount()},getViewDataProvider:function(){return e._workSpace.viewDataProvider}})},z.updateFactoryInstances=function(){var e=this._options._optionManager._options;(0,y.isDefined)(this.key)||(this.key=(0,J.generateKey)(),(0,J.createModelProvider)(this.key,e)),this.getWorkSpace()&&this.createAppointmentDataProvider(),(0,J.createFactoryInstances)({key:this.key,model:e,timeZone:this.option("timeZone")})},z._initTemplates=function(){this._initAppointmentTemplate(),this._templateManager.addDefaultTemplates({appointmentTooltip:new l.EmptyTemplate,dropDownAppointment:new l.EmptyTemplate}),e.prototype._initTemplates.call(this)},z._initAppointmentTemplate=function(){var e,t,n,i=this,o=this._dataAccessors.expr,a=function(e){return(0,h.compileGetter)("appointmentData.".concat(e))},r=function(e){return function(t){var n=e(t);return n instanceof Date?n.valueOf():n}};this._templateManager.addDefaultTemplates((e={},t="item",n=new s.BindableTemplate((function(e,t,n){return i.getAppointmentsInstance()._renderAppointmentTemplate(e,t,n)}),["html","text","startDate","endDate","allDay","description","recurrenceRule","recurrenceException","startDateTimeZone","endDateTimeZone"],this.option("integrationOptions.watchMethod"),{text:a(o.textExpr),startDate:r(a(o.startDateExpr)),endDate:r(a(o.endDateExpr)),startDateTimeZone:a(o.startDateTimeZoneExpr),endDateTimeZone:a(o.endDateTimeZoneExpr),allDay:a(o.allDayExpr),recurrenceRule:a(o.recurrenceRuleExpr)}),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e))},z._renderContent=function(){this._renderContentImpl()},z._dataSourceChangedHandler=function(e){this._readyToRenderAppointments&&this._workSpaceRecalculation.done(function(){this._renderAppointments(),this.getWorkSpace().onDataSourceChanged(this.filteredItems)}.bind(this))},z.isVirtualScrolling=function(){var e,t=this.getWorkSpace();if(t)return t.isVirtualScrolling();var n=this._getCurrentViewOptions(),i=this.option("scrolling");return"virtual"===(null==i?void 0:i.mode)||"virtual"===(null==n||null===(e=n.scrolling)||void 0===e?void 0:e.mode)},z._filterAppointments=function(){this.filteredItems=this.appointmentDataProvider.filter()},z._renderAppointments=function(){var e=this.getWorkSpace();this._filterAppointments(),e.option("allDayExpanded",this._isAllDayExpanded(this.filteredItems));var t=[];this._isVisible()&&(t=this._getAppointmentsToRepaint()),this.modelProvider.isRenovatedAppointments?(0,ie.renderAppointments)({instance:this,$dateTable:this.getWorkSpace()._getDateTable(),viewModel:t}):this._appointments.option("items",t),this.appointmentDataProvider.cleanState()},z._getAppointmentsToRepaint=function(){var e=this.getLayoutManager(),t=e.createAppointmentsMap(this.filteredItems);return this.modelProvider.isRenovatedAppointments?{appointments:t,appointmentTemplate:"item"!==this.option("appointmentTemplate")?this.option("appointmentTemplate"):void 0}:e.getRepaintedAppointments(t,this.getAppointmentsInstance().option("items"))},z._initExpressions=function(e){this._dataAccessors=Q.utils.dataAccessors.create(e,this._dataAccessors,(0,o.default)().forceIsoDateParsing,this.option("dateSerializationFormat")),this._dataAccessors.resources=(0,ee.createExpressions)(this.option("resources"))},z._updateExpression=function(e,t){var n={};n[e.replace("Expr","")]=t,this._initExpressions(n)},z.getResourceDataAccessors=function(){return this._dataAccessors.resources},z._initEditing=function(){var e=this.option("editing");this._editing={allowAdding:!!e,allowUpdating:!!e,allowDeleting:!!e,allowResizing:!!e,allowDragging:!!e},(0,y.isObject)(e)&&(this._editing=(0,_.extend)(this._editing,e)),this._editing.allowDragging=this._editing.allowDragging&&this._editing.allowUpdating,this._editing.allowResizing=this._editing.allowResizing&&this._editing.allowUpdating,this.$element().toggleClass(pe,this._isReadOnly())},z._isReadOnly=function(){var e=!0,t=this._editing;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=e&&!t[n]);return e},z._dispose=function(){var t;this._appointmentTooltip&&this._appointmentTooltip.dispose(),null===(t=this._recurrenceDialog)||void 0===t||t.hide("cancel"),this.hideAppointmentPopup(),this.hideAppointmentTooltip(),this._asyncTemplatesTimers.forEach(clearTimeout),this._asyncTemplatesTimers=[],e.prototype._dispose.call(this),(0,J.disposeFactoryInstances)(this.key)},z._initActions=function(){this._actions={onAppointmentAdding:this._createActionByOption(me),onAppointmentAdded:this._createActionByOption(_e),onAppointmentUpdating:this._createActionByOption(xe),onAppointmentUpdated:this._createActionByOption(be),onAppointmentDeleting:this._createActionByOption(ve),onAppointmentDeleted:this._createActionByOption(ye),onAppointmentFormOpening:this._createActionByOption("onAppointmentFormOpening")}},z._getAppointmentRenderedAction=function(){return this._createActionByOption("onAppointmentRendered",{excludeValidators:["disabled","readOnly"]})},z._renderFocusTarget=function(){return(0,c.noop)()},z._initMarkup=function(){var t=this;if(e.prototype._initMarkup.call(this),this._validateDayHours(),this._validateCellDuration(),this.modelProvider.updateCurrentView(),this._renderMainContainer(),this._renderHeader(),this._layoutManager=new V.default(this),this._appointments=this._createComponent("<div>",B.default,this._appointmentsConfig()),this._appointments.option("itemTemplate",this._getAppointmentTemplate("appointmentTemplate")),this._appointmentTooltip=new(this.option("adaptivityEnabled")?M.MobileTooltipStrategy:P.DesktopTooltipStrategy)(this._getAppointmentTooltipOptions()),this._appointmentForm=this.createAppointmentForm(),this._appointmentPopup=this.createAppointmentPopup(this._appointmentForm),this._isDataSourceLoaded()||this._isDataSourceLoading())this._initMarkupCore(this.option("loadedResources")),this._dataSourceChangedHandler(this._dataSource.items()),this._fireContentReadyAction();else{var n=this._getCurrentViewOption("groups");(0,ee.loadResources)(n,this.option("resources"),this.option("resourceLoaderMap")).done((function(e){t.option("loadedResources",e),t._initMarkupCore(e),t._reloadDataSource()}))}},z._renderMainContainer=function(){this._mainContainer=(0,r.default)("<div>").addClass("dx-scheduler-container"),this.$element().append(this._mainContainer)},z.createAppointmentForm=function(){var e=this,t={createResourceEditorModel:function(){return(0,ee.createResourceEditorModel)(e.option("resources"),e.option("loadedResources"))},getDataAccessors:function(){return e._dataAccessors},createComponent:function(t,n,i){return e._createComponent(t,n,i)},getEditingConfig:function(){return e._editing},getFirstDayOfWeek:function(){return e.option("firstDayOfWeek")},getStartDayHour:function(){return e.option("startDayHour")},getCalculatedEndDate:function(t){return e._workSpace.calculateEndDate(t)}};return new A.AppointmentForm(t)},z.createAppointmentPopup=function(e){var t=this,n={getKey:function(){return t.key},getElement:function(){return t.$element()},createComponent:function(e,n,i){return t._createComponent(e,n,i)},focus:function(){return t.focus()},getResourcesFromItem:function(e){return(0,ee.getResourcesFromItem)(t.option("resources"),t.getResourceDataAccessors(),e,!0)},getEditingConfig:function(){return t._editing},getTimeZoneCalculator:function(){return(0,J.getTimeZoneCalculator)(t.key)},getDataAccessors:function(){return t._dataAccessors},getAppointmentFormOpening:function(){return t._actions.onAppointmentFormOpening},processActionResult:function(e,n){return t._processActionResult(e,n)},addAppointment:function(e){return t.addAppointment(e)},updateAppointment:function(e,n){return t.updateAppointment(e,n)},updateScrollPosition:function(e,n,i){t._workSpace.updateScrollPosition(e,n,i)}};return new E.AppointmentPopup(n,e)},z._getAppointmentTooltipOptions=function(){var e=this,t=this;return{createComponent:t._createComponent.bind(t),container:t.$element(),getScrollableContainer:t.getWorkSpaceScrollableContainer.bind(t),addDefaultTemplates:t._templateManager.addDefaultTemplates.bind(t._templateManager),getAppointmentTemplate:t._getAppointmentTemplate.bind(t),showAppointmentPopup:t.showAppointmentPopup.bind(t),checkAndDeleteAppointment:t.checkAndDeleteAppointment.bind(t),isAppointmentInAllDayPanel:t.isAppointmentInAllDayPanel.bind(t),createFormattedDateText:function(t,n,i){return e.fire("getTextAndFormatDate",t,n,i)},getAppointmentDisabled:function(t){return(0,Z.createAppointmentAdapter)(t,e._dataAccessors,(0,J.getTimeZoneCalculator)(e.key)).disabled}}},z.checkAndDeleteAppointment=function(e,t){var n=this,i=(0,Z.createAppointmentAdapter)(t,this._dataAccessors,(0,J.getTimeZoneCalculator)(this.key));this._checkRecurringAppointment(e,t,i.startDate,(function(){n.deleteAppointment(e)}),!0)},z._getExtraAppointmentTooltipOptions=function(){return{rtlEnabled:this.option("rtlEnabled"),focusStateEnabled:this.option("focusStateEnabled"),editing:this.option("editing"),offset:this.option("_appointmentTooltipOffset")}},z.isAppointmentInAllDayPanel=function(e){var t=this._workSpace;return this.appointmentTakesAllDay(e)&&t.supportAllDayRow()&&t.option("showAllDayPanel")},z._initMarkupCore=function(e){var t=this;this._readyToRenderAppointments=(0,x.hasWindow)(),this._workSpace&&this._cleanWorkspace(),this._renderWorkSpace(e),this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplate((function(){var e;return null===(e=t._workSpaceRecalculation)||void 0===e?void 0:e.resolve()})),this.createAppointmentDataProvider(),this._filterAppointmentsByDate()},z._isDataSourceLoaded=function(){return this._dataSource&&this._dataSource.isLoaded()},z._render=function(){var t;this._toggleSmallClass(),this._toggleAdaptiveClass(),null===(t=this.getWorkSpace())||void 0===t||t.updateHeaderEmptyCellWidth(),e.prototype._render.call(this)},z._renderHeader=function(){if(0!==this.option("toolbar").length){var e=(0,r.default)("<div>").appendTo(this._mainContainer);this._header=this._createComponent(e,F.SchedulerHeader,this._headerConfig())}},z._headerConfig=function(){var e=this,t=this._getCurrentViewOptions(),n=this._getViewCountConfig(),i=(0,_.extend)({firstDayOfWeek:this.getFirstDayOfWeek(),currentView:this.modelProvider.currentView,isAdaptive:this.modelProvider.adaptivityEnabled,tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),rtlEnabled:this.modelProvider.rtlEnabled,useDropDownViewSwitcher:this.option("useDropDownViewSwitcher"),customizeDateNavigatorText:this.option("customizeDateNavigatorText"),agendaDuration:this.option("agendaDuration")||7},t);return i.intervalCount=n.intervalCount,i.views=this.option("views"),i.min=new Date(this._dateOption("min")),i.max=new Date(this._dateOption("max")),i.currentDate=p.default.trimTime(new Date(this._dateOption("currentDate"))),i.onCurrentViewChange=function(t){return e.option("currentView",t)},i.onCurrentDateChange=function(t){return e.option("currentDate",t)},i.items=this.option("toolbar"),i.todayDate=function(){return(0,J.getTimeZoneCalculator)(e.key).createDate(new Date,{path:"toGrid"})},i},z._appointmentsConfig=function(){var e=this;return{getResources:function(){return e.option("resources")},getResourceDataAccessors:this.getResourceDataAccessors.bind(this),getAgendaResourceProcessor:function(){return e.agendaResourceProcessor},getAppointmentColor:this.createGetAppointmentColor(),key:this.key,getAppointmentDataProvider:function(){return e.appointmentDataProvider},dataAccessors:this._dataAccessors,observer:this,onItemRendered:this._getAppointmentRenderedAction(),onItemClick:this._createActionByOption("onAppointmentClick"),onItemContextMenu:this._createActionByOption("onAppointmentContextMenu"),onAppointmentDblClick:this._createActionByOption("onAppointmentDblClick"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),allowDrag:this._allowDragging(),allowDelete:this._editing.allowUpdating&&this._editing.allowDeleting,allowResize:this._allowResizing(),allowAllDayResize:this._allowAllDayResizing(),rtlEnabled:this.option("rtlEnabled"),currentView:this.option("currentView"),groups:this._getCurrentViewOption("groups"),isRenovatedAppointments:this.option("isRenovatedAppointments"),getResizableStep:function(){return e._workSpace?e._workSpace.positionHelper.getResizableStep():0},onContentReady:function(){var t;null===(t=e._workSpace)||void 0===t||t.option("allDayExpanded",e._isAllDayExpanded(e.filteredItems))}}},z.getCollectorOffset=function(){return this._workSpace.needApplyCollectorOffset()&&!this.option("adaptivityEnabled")?this.option("_collectorOffset"):0},z.getAppointmentDurationInMinutes=function(){return this._getCurrentViewOption("cellDuration")},z._validateCellDuration=function(){60*(this._getCurrentViewOption("endDayHour")-this._getCurrentViewOption("startDayHour"))%this._getCurrentViewOption("cellDuration")!=0&&I.default.log("W1015")},z._getCurrentViewType=function(){return this.modelProvider.currentViewType},z._renderWorkSpace=function(e){var t;this._readyToRenderAppointments&&this._toggleSmallClass();var n=(0,r.default)("<div>").appendTo(this._mainContainer),i=this._getViewCountConfig(),o=ge[this._getCurrentViewType()].workSpace,a=this._workSpaceConfig(e,i);this._workSpace=this._createComponent(n,o,a),this._allowDragging()&&this._workSpace.initDragBehavior(this,this._all),this._workSpace._attachTablesEvents(),this._workSpace.getWorkArea().append(this._appointments.$element()),this._recalculateWorkspace(),i.startDate&&(null===(t=this._header)||void 0===t||t.option("currentDate",this._workSpace._getHeaderDate())),this._appointments.option("_collectorOffset",this.getCollectorOffset())},z._getViewCountConfig=function(){var e=this.option("currentView"),t=this._getViewByName(e);return{intervalCount:t&&t.intervalCount||1,startDate:t&&t.startDate||null}},z._getViewByName=function(e){for(var t=this.option("views"),n=0;n<t.length;n++)if(t[n].name===e||t[n].type===e||t[n]===e)return t[n]},z._recalculateWorkspace=function(){var e=this;this._workSpaceRecalculation=new m.Deferred,this._waitAsyncTemplate((function(){(0,w.triggerResizeEvent)(e._workSpace.$element()),e._workSpace._refreshDateTimeIndication()}))},z._workSpaceConfig=function(e,t){var n,i=this,o=this._getCurrentViewOptions(),a=this.option("scrolling"),r="virtual"===a.mode||"virtual"===(null===(n=o.scrolling)||void 0===n?void 0:n.mode),s=r&&(!(0,y.isDefined)(a.orientation)||["horizontal","both"].filter((function(e){var t;return a.orientation===e||(null===(t=o.scrolling)||void 0===t?void 0:t.orientation)===e})).length>0),l=this.option("crossScrollingEnabled")||s,u=(0,_.extend)({resources:this.option("resources"),loadedResources:this.option("loadedResources"),getFilteredItems:function(){return i.filteredItems},getResourceDataAccessors:this.getResourceDataAccessors.bind(this),key:this.key,noDataText:this.option("noDataText"),firstDayOfWeek:this.option("firstDayOfWeek"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),tabIndex:this.option("tabIndex"),accessKey:this.option("accessKey"),focusStateEnabled:this.option("focusStateEnabled"),cellDuration:this.option("cellDuration"),showAllDayPanel:this.option("showAllDayPanel"),showCurrentTimeIndicator:this.option("showCurrentTimeIndicator"),indicatorTime:this.option("indicatorTime"),indicatorUpdateInterval:this.option("indicatorUpdateInterval"),shadeUntilCurrentTime:this.option("shadeUntilCurrentTime"),allDayExpanded:this._appointments.option("items"),crossScrollingEnabled:l,dataCellTemplate:this.option("dataCellTemplate"),timeCellTemplate:this.option("timeCellTemplate"),resourceCellTemplate:this.option("resourceCellTemplate"),dateCellTemplate:this.option("dateCellTemplate"),allowMultipleCellSelection:this.option("allowMultipleCellSelection"),selectedCellData:this.option("selectedCellData"),onSelectionChanged:function(e){i.option("selectedCellData",e.selectedCellData)},groupByDate:this._getCurrentViewOption("groupByDate"),scrolling:a,draggingMode:this.option("_draggingMode"),timeZoneCalculator:(0,J.getTimeZoneCalculator)(this.key),schedulerHeight:this.option("height"),schedulerWidth:this.option("width"),onSelectedCellsClick:this.showAddAppointmentPopup.bind(this),onVirtualScrollingUpdated:this._renderAppointments.bind(this),getHeaderHeight:function(){return Q.utils.DOM.getHeaderHeight(i._header)},onScrollEnd:function(){return i._appointments.updateResizableArea()},renovateRender:this._isRenovatedRender(r),isRenovatedAppointments:this.modelProvider.isRenovatedAppointments},o);return u.observer=this,u.intervalCount=t.intervalCount,u.startDate=t.startDate,u.groups=e,u.onCellClick=this._createActionByOption("onCellClick"),u.onCellContextMenu=this._createActionByOption("onCellContextMenu"),u.currentDate=p.default.trimTime(new Date(this._dateOption("currentDate"))),u.hoursInterval=u.cellDuration/60,u.allDayExpanded=!1,u.dataCellTemplate=u.dataCellTemplate?this._getTemplate(u.dataCellTemplate):null,u.timeCellTemplate=u.timeCellTemplate?this._getTemplate(u.timeCellTemplate):null,u.resourceCellTemplate=u.resourceCellTemplate?this._getTemplate(u.resourceCellTemplate):null,u.dateCellTemplate=u.dateCellTemplate?this._getTemplate(u.dateCellTemplate):null,u.getAppointmentDataProvider=function(){return i.appointmentDataProvider},u},z._isRenovatedRender=function(e){return this.option("renovateRender")&&(0,x.hasWindow)()||e},z._waitAsyncTemplate=function(e){if(this._options.silent("templatesRenderAsynchronously")){var t=setTimeout((function(){e(),clearTimeout(t)}));this._asyncTemplatesTimers.push(t)}else e()},z._getCurrentViewOptions=function(){return this.modelProvider.currentViewOptions},z._getCurrentViewOption=function(e){return this.modelProvider.getCurrentViewOption(e)},z._getAppointmentTemplate=function(e){var t=this._getCurrentViewOptions();return t&&t[e]?this._getTemplate(t[e]):this._getTemplateByOption(e)},z._updateOption=function(e,t,n){var i=this._getCurrentViewOptions();i&&(0,y.isDefined)(i[t])||this["_"+e].option(t,n)},z._refreshWorkSpace=function(e){var t=this;this._cleanWorkspace(),delete this._workSpace,this._renderWorkSpace(e),this._readyToRenderAppointments&&(this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplate((function(){return t._workSpaceRecalculation.resolve()})))},z._cleanWorkspace=function(){this._appointments.$element().detach(),this._workSpace._dispose(),this._workSpace.$element().remove(),this.option("selectedCellData",[])},z.getWorkSpaceScrollable=function(){return this._workSpace.getScrollable()},z.getWorkSpaceScrollableContainer=function(){return this._workSpace.getScrollableContainer()},z.getWorkSpace=function(){return this._workSpace},z.getHeader=function(){return this._header},z._cleanPopup=function(){var e;null===(e=this._appointmentPopup)||void 0===e||e.dispose()},z._checkRecurringAppointment=function(e,t,n,i,o,a,r){var s=this,l=te.ExpressionUtils.getField(this._dataAccessors,"recurrenceRule",e);if((0,H.getRecurrenceProcessor)().evalRecurrenceRule(l).isValid&&this._editing.allowUpdating)switch(this.option("recurrenceEditMode")){case"series":i();break;case"occurrence":this._excludeAppointmentFromSeries(e,t,n,o,a,r);break;default:r&&(r.cancel=new m.Deferred),this._showRecurrenceChangeConfirm(o).done((function(l){l===we&&i(),l===Ce&&s._excludeAppointmentFromSeries(e,t,n,o,a,r)})).fail((function(){return s._appointments.moveAppointmentBack(r)}))}else i()},z._excludeAppointmentFromSeries=function(e,t,n,i,o,a){var r=this,s=(0,Z.createAppointmentAdapter)(le({},e),this._dataAccessors,(0,J.getTimeZoneCalculator)(this.key));s.recurrenceException=this._createRecurrenceException(s,n);var l=le({},t);delete l[this._dataAccessors.expr.recurrenceExceptionExpr],delete l[this._dataAccessors.expr.recurrenceRuleExpr],delete l[this.appointmentDataProvider.keyName],!i&&!o&&this.addAppointment(l),o?(this._appointmentPopup.show(l,{isToolbarVisible:!0,action:E.ACTION_TO_APPOINTMENT.EXCLUDE_FROM_SERIES,excludeInfo:{sourceAppointment:e,updatedAppointment:s.source()}}),this._editAppointmentData=e):this._updateAppointment(e,s.source(),(function(){r._appointments.moveAppointmentBack(a)}),a)},z._createRecurrenceException=function(e,t){var n=[];return e.recurrenceException&&n.push(e.recurrenceException),n.push(this._getSerializedDate(t,e.startDate,e.allDay)),n.join()},z._getSerializedDate=function(e,t,n){return n&&e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),g.default.serializeDate(e,"yyyyMMddTHHmmssZ")},z._showRecurrenceChangeConfirm=function(e){var t=S.default.format(e?"dxScheduler-confirmRecurrenceDeleteMessage":"dxScheduler-confirmRecurrenceEditMessage"),n=S.default.format(e?"dxScheduler-confirmRecurrenceDeleteSeries":"dxScheduler-confirmRecurrenceEditSeries"),i=S.default.format(e?"dxScheduler-confirmRecurrenceDeleteOccurrence":"dxScheduler-confirmRecurrenceEditOccurrence");return this._recurrenceDialog=(0,k.custom)({messageHtml:t,showCloseButton:!0,showTitle:!0,buttons:[{text:n,onClick:function(){return we}},{text:i,onClick:function(){return Ce}}],popupOptions:{onHidden:function(e){e.component.$element().remove()},copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0}}),this._recurrenceDialog.show()},z._getUpdatedData=function(e){var t=(0,J.getTimeZoneCalculator)(this.key),n=function(e){return e?t.createDate(e,{path:"fromGrid"}):void 0},i=function(e){return!isNaN(new Date(e).getTime())},o=this.getTargetCellData(),a=(0,Z.createAppointmentAdapter)(e,this._dataAccessors,(0,J.getTimeZoneCalculator)(this.key)),r=n(o.startDate),s=n(o.endDate),l=new Date(a.startDate),u=new Date(a.endDate),d=r||l;i(l)||(l=d),i(u)||(u=s);var c=u.getTime()-l.getTime();if(this._workSpace.keepOriginalHours()&&i(a.startDate)&&i(r)){var h=p.default.trimTime,f=t.createDate(a.startDate,{path:"toGrid"}),g=f.getTime()-h(f).getTime();d=new Date(h(o.startDate).getTime()+g),d=t.createDate(d,{path:"fromGrid"})}var m=(0,Z.createAppointmentAdapter)({},this._dataAccessors,(0,J.getTimeZoneCalculator)(this.key));void 0!==o.allDay&&(m.allDay=o.allDay),m.startDate=d;var _=new Date(d.getTime()+c);if(this.appointmentTakesAllDay(e)&&!m.allDay&&this._workSpace.supportAllDayRow()&&(_=this._workSpace.calculateEndDate(d)),a.allDay&&!this._workSpace.supportAllDayRow()&&!this._workSpace.keepOriginalHours()){var v=new Date(d);v.setHours(0),0!==(_=new Date(v.getTime()+c)).getHours()&&_.setHours(this._getCurrentViewOption("endDayHour"))}var y=N.default.getTimezoneOffsetChangeInMs(l,u,d,_);m.endDate=new Date(_.getTime()-y);var x=m.source();return(0,ee.setResourceToAppointment)(this.option("resources"),this.getResourceDataAccessors(),x,o.groups),x},z.getTargetedAppointment=function(e,t){var n=Q.utils.dataAccessors.getAppointmentSettings(t),i=Q.utils.dataAccessors.getAppointmentInfo(t),o=(0,r.default)(t).data(this._appointments._itemIndexKey()),a=(0,Z.createAppointmentAdapter)(e,this._dataAccessors,(0,J.getTimeZoneCalculator)(this.key)),s=a.clone();if(this._isAgenda()&&a.isRecurrent){var l=n.agendaSettings;s.startDate=l.startDate,s.endDate=l.endDate}else n&&(s.startDate=i?i.sourceAppointment.startDate:a.startDate,s.endDate=i?i.sourceAppointment.endDate:a.endDate);var u=s.source();return t&&this.setTargetedAppointmentResources(u,t,o),i&&(u.displayStartDate=new Date(i.appointment.startDate),u.displayEndDate=new Date(i.appointment.endDate)),u},z.subscribe=function(e,t){this._subscribes[e]=L.default[e]=t},z.fire=function(e){var t=this._subscribes[e],n=Array.prototype.slice.call(arguments);if(!(0,y.isFunction)(t))throw I.default.Error("E1031",e);return t.apply(this,n.slice(1))},z.getTargetCellData=function(){return this._workSpace.getDataByDroppableCell()},z._updateAppointment=function(e,t,n,i){var o={newData:t,oldData:(0,_.extend)({},e),cancel:!1},a=function(e){if(n&&n.call(this),e&&"Error"===e.name)throw e}.bind(this);return this._actions[xe](o),i&&!(0,y.isDeferred)(i.cancel)&&(i.cancel=new m.Deferred),this._processActionResult(o,(function(n){var o=this,r=new m.Deferred;if(n)a(),r.resolve();else{this._expandAllDayPanel(t);try{r=this.appointmentDataProvider.update(e,t).done((function(){i&&i.cancel.resolve(!1)})).always((function(e){return o._onDataPromiseCompleted(be,e)})).fail((function(){return a()}))}catch(e){a(e),r.resolve()}}return r.promise()}))},z._processActionResult=function(e,t){var n=this,i=new m.Deferred,o=function(e){(0,m.when)((0,m.fromPromise)(e)).always(i.resolve)};return(0,y.isPromise)(e.cancel)?(0,m.when)((0,m.fromPromise)(e.cancel)).always((function(i){(0,y.isDefined)(i)||(i="rejected"===e.cancel.state()),o(t.call(n,i))})):o(t.call(this,e.cancel)),i.promise()},z._expandAllDayPanel=function(e){!this._isAllDayExpanded(this.filteredItems)&&this.appointmentTakesAllDay(e)&&this._workSpace.option("allDayExpanded",!0)},z._onDataPromiseCompleted=function(e,t,n){var i={appointmentData:n||t};t instanceof Error?i.error=t:this._appointmentPopup.visible&&this._appointmentPopup.hide(),this._actions[e](i),this._fireContentReadyAction()},z.getAppointmentsInstance=function(){return this._appointments},z.getLayoutManager=function(){return this._layoutManager},z.getRenderingStrategyInstance=function(){return this.getLayoutManager().getRenderingStrategyInstance()},z.getActions=function(){return this._actions},z.appointmentTakesAllDay=function(e){var t=(0,Z.createAppointmentAdapter)(e,this._dataAccessors,(0,J.getTimeZoneCalculator)(this.key));return(0,re.getAppointmentTakesAllDay)(t,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},z.dayHasAppointment=function(e,t,n){var i=this,o=function(e){return(0,J.getTimeZoneCalculator)(i.key).createDate(e,{path:"toGrid"})},a=(0,Z.createAppointmentAdapter)(t,this._dataAccessors,(0,J.getTimeZoneCalculator)(this.key)),r=new Date(a.startDate),s=new Date(a.endDate);if(r=o(r),s=o(s),e.getTime()===s.getTime())return r.getTime()===s.getTime();n&&(e=p.default.trimTime(e),r=p.default.trimTime(r),s=p.default.trimTime(s));var l=e.getTime(),d=r.getTime(),c=s.getTime();return(0,u.inArray)(l,[d,c])>-1||d<l&&c>l},z.setTargetedAppointmentResources=function(e,t,n){var i=this._getCurrentViewOption("groups");if(null!=i&&i.length){var o,a,r=this.getResourceDataAccessors().setter,s=this._workSpace;this._isAgenda()?(o=function(){var e=this.getLayoutManager()._positionMap[n];return(0,ee.getCellGroups)(e[0].groupIndex,this.getWorkSpace().option("groups"))},a=function(t,n){r[n.name](e,n.id)}):(o=function(){var e=Q.utils.dataAccessors.getAppointmentSettings(t)||{};return s.getCellDataByCoordinates({left:e.left,top:e.top}).groups},a=function(t,n){r[t](e,n)}),(0,v.each)(o.call(this),a)}},z.getStartViewDate=function(){return this._workSpace.getStartViewDate()},z.getEndViewDate=function(){return this._workSpace.getEndViewDate()},z.showAddAppointmentPopup=function(e,t){var n=(0,Z.createAppointmentAdapter)({},this._dataAccessors,(0,J.getTimeZoneCalculator)(this.key)),i=(0,J.getTimeZoneCalculator)(this.key);n.allDay=e.allDay,n.startDate=i.createDate(e.startDate,{path:"fromGrid"}),n.endDate=i.createDate(e.endDate,{path:"fromGrid"});var o=(0,_.extend)(n.source(),t);this.showAppointmentPopup(o,!0)},z.showAppointmentPopup=function(e,t,n){var i=this,o=le({},n);o&&(delete o.displayStartDate,delete o.displayEndDate);var a=(0,Z.createAppointmentAdapter)(o||e,this._dataAccessors,(0,J.getTimeZoneCalculator)(this.key)),r=(0,_.extend)({},e,o),s=null!=t?t:(0,y.isEmptyObject)(e);(0,y.isEmptyObject)(e)&&(e=this.createPopupAppointment()),s?(delete this._editAppointmentData,this._editing.allowAdding&&this._appointmentPopup.show(e,{isToolbarVisible:!0,action:E.ACTION_TO_APPOINTMENT.CREATE})):this._checkRecurringAppointment(e,r,a.startDate,(function(){i._editAppointmentData=e,i._appointmentPopup.show(e,{isToolbarVisible:i._editing.allowUpdating,action:E.ACTION_TO_APPOINTMENT.UPDATE})}),!1,!0)},z.createPopupAppointment=function(){var e={},t=p.default.dateToMilliseconds,n=new Date(this.option("currentDate")),i=new Date(n.getTime()+this.option("cellDuration")*t("minute"));return te.ExpressionUtils.setField(this._dataAccessors,"startDate",e,n),te.ExpressionUtils.setField(this._dataAccessors,"endDate",e,i),e},z.hideAppointmentPopup=function(e){var t;null!==(t=this._appointmentPopup)&&void 0!==t&&t.visible&&(e&&this._appointmentPopup.saveChangesAsync(),this._appointmentPopup.hide())},z.showAppointmentTooltip=function(e,t,n){if(e){var i=Q.utils.dataAccessors.getAppointmentSettings(t),o={itemData:n||e,groupIndex:null==i?void 0:i.groupIndex,groups:this.option("groups")},a=this.createGetAppointmentColor()(o),r=new X.AppointmentTooltipInfo(e,n,a);this.showAppointmentTooltipCore(t,[r])}},z.createGetAppointmentColor=function(){var e=this;return function(t){var n={resources:e.option("resources"),dataAccessors:e.getResourceDataAccessors(),loadedResources:e.option("loadedResources"),resourceLoaderMap:e.option("resourceLoaderMap")};return(0,ee.getAppointmentColor)(n,t)}},z.showAppointmentTooltipCore=function(e,t,n){this._appointmentTooltip.isAlreadyShown(e)?this.hideAppointmentTooltip():this._appointmentTooltip.show(e,t,(0,_.extend)(this._getExtraAppointmentTooltipOptions(),n))},z.hideAppointmentTooltip=function(){this._appointmentTooltip&&this._appointmentTooltip.hide()},z.scrollToTime=function(e,t,n){I.default.log("W0002","dxScheduler","scrollToTime","21.1",'Use the "scrollTo" method instead'),this._workSpace.scrollToTime(e,t,n)},z.scrollTo=function(e,t,n){this._workSpace.scrollTo(e,t,n)},z._isHorizontalVirtualScrolling=function(){var e=this.option("scrolling"),t=e.orientation;return"virtual"===e.mode&&("horizontal"===t||"both"===t)},z.addAppointment=function(e){var t=this,n=(0,Z.createAppointmentAdapter)(e,this._dataAccessors,(0,J.getTimeZoneCalculator)(this.key));n.text=n.text||"";var i=n.source(!0),o={appointmentData:i,cancel:!1};return this._actions[me](o),this._processActionResult(o,(function(e){return e?(new m.Deferred).resolve():(t._expandAllDayPanel(i),t.appointmentDataProvider.add(i).always((function(e){return t._onDataPromiseCompleted(_e,e)})))}))},z.updateAppointment=function(e,t){return this._updateAppointment(e,t)},z.deleteAppointment=function(e){var t={appointmentData:e,cancel:!1};this._actions[ve](t),this._processActionResult(t,(function(t){var n=this;t||this.appointmentDataProvider.remove(e).always((function(t){return n._onDataPromiseCompleted(ye,t,e)}))}))},z.focus=function(){this._editAppointmentData?this._appointments.focus():this._workSpace.focus()},z.getFirstDayOfWeek=function(){return(0,y.isDefined)(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):C.default.firstDayOfWeekIndex()},z._validateDayHours=function(){var e=this._getCurrentViewOption("startDayHour"),t=this._getCurrentViewOption("endDayHour");(0,ne.validateDayHours)(e,t)},b=i,(T=[{key:"filteredItems",get:function(){return this._filteredItems||(this._filteredItems=[]),this._filteredItems},set:function(e){this._filteredItems=e}},{key:"modelProvider",get:function(){return(0,J.getModelProvider)(this.key)}}])&&ue(b.prototype,T),i}(T.default);Se.include(b.default),(0,i.default)("dxScheduler",Se);var ke=Se;t.default=ke,e.exports=t.default,e.exports.default=t.default},9259:function(e,t,n){t.utils=void 0;var i=n(58664),o=d(n(68374)),a=n(95479),r=n(27728),s=n(6415),l=n(47617),u=d(n(69434));function d(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var h={dataAccessors:{getAppointmentSettings:function(e){return(0,o.default)(e).data(r.APPOINTMENT_SETTINGS_KEY)},getAppointmentInfo:function(e){var t=h.dataAccessors.getAppointmentSettings(e);return null==t?void 0:t.info},create:function(e,t,n,i){var o=t?c({},t):{getter:{},setter:{},expr:{}};return(0,a.each)(e,(function(e,t){if(t){var a,r,s,d=(0,l.compileGetter)(t),c=(0,l.compileSetter)(t);("startDate"===(h=e)||"endDate"===h)&&(a=function(e){var t=d(e);return n&&(t=u.default.deserializeDate(t)),t},r=function(e,t){if(i)s=i;else if(n&&!s){var o=d(e);s=u.default.getDateSerializationFormat(o)}var a=u.default.serializeDate(t,s);c(e,a)}),o.getter[e]=a||d,o.setter[e]=r||c,o.expr["".concat(e,"Expr")]=t}else delete o.getter[e],delete o.setter[e],delete o.expr["".concat(e,"Expr")];var h})),o}},DOM:{getHeaderHeight:function(e){return e?e._$element&&parseInt((0,i.getOuterHeight)(e._$element),10):0}},renovation:{renderComponent:function(e,t,n,o,a){var r=e[o];if(r){var l=r.$element(),u=l.get(0).style,d=u.height,c=u.width;r.option(a),d&&(0,i.setHeight)(l,d),c&&(0,i.setWidth)(l,c)}else{var h=(0,s.getPublicElement)(t);r=e._createComponent(h,n,a),e[o]=r}}}};t.utils=h},32511:function(e,t,n){t.default=void 0;var i=r(n(91198)),o=r(n(51690)),a=r(n(26983));function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var u=i.default.dateToMilliseconds,d=function(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()))},c=function(e,t,n,i){return h(n,i)-h(e,t)},h=function(e,t){return new Date(e).getTimezoneOffset()-new Date(t).getTimezoneOffset()},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if("string"==typeof e){var n=d(t);return o.default.getTimeZoneOffsetById(e,n.getTime())}return e},p=function(e,t,n){return f(n,e)-f(n,t)},g=function(e){var t=new Date(new Date(e).setHours(0,0,0,0)),n=new Date(new Date(e).setHours(23,59,59,0));return t.getTimezoneOffset()-n.getTimezoneOffset()!=0},m=function(){var e=s(v(),2),t=e[0],n=e[1];return t.getTimezoneOffset()!==n.getTimezoneOffset()},_=function(e,t){var n=t.getFullYear(),i=function(e){return-e.getTimezoneOffset()/60},a=function(e){return new Date(e-36e5)},r=o.default.getTimeZoneDeclarationTuple(e,n),l=s(r,2),u=l[0],d=l[1];if(r.length<2)return o.default.getTimeZoneOffsetById(e,t)===i(t)&&!m();var c=i(new Date(u.date)),h=i(new Date(d.date));return c===u.offset&&c!==i(a(u.date))&&h===d.offset&&h!==i(a(d.date))},v=function(){var e=new Date(Date.now()),t=new Date,n=new Date;return t.setFullYear(e.getFullYear(),0,1),n.setFullYear(e.getFullYear(),6,1),[t,n]},y={getDaylightOffset:h,getDaylightOffsetInMs:function(e,t){return h(e,t)*u("minute")},getTimezoneOffsetChangeInMinutes:c,getTimezoneOffsetChangeInMs:function(e,t,n,i){return c(e,t,n,i)*u("minute")},calculateTimezoneByValue:f,getCorrectedDateByDaylightOffsets:function(e,t,n,i,o){var a=p(e,t,i)-p(e,t,o);return new Date(n.getTime()-a*u("hour"))},isSameAppointmentDates:function(e,t){return t=new Date(t.getTime()-1),i.default.sameDate(e,t)},correctRecurrenceExceptionByTimezone:function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=(e.getTimezoneOffset()-t.getTimezoneOffset())/60;return i?a=p(t,e,i):n&&(a=p(t,e,n)),new Date(e.getTime()+(o?-1:1)*a*u("hour"))},getClientTimezoneOffset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return 6e4*e.getTimezoneOffset()},createUTCDateWithLocalOffset:function(e){return e?new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())):null},createDateFromUTCWithLocalOffset:function(e){var t=(0,a.default)(e),n=t.getTimezoneOffset();return t.addTime(t.getTimezoneOffset("minute")),t.subtractMinutes(n-t.getTimezoneOffset()),t.source},createUTCDate:d,isTimezoneChangeInDate:g,getDateWithoutTimezoneChange:function(e){var t=new Date(e);if(g(t)){var n=new Date(t);return new Date(n.setDate(n.getDate()+1))}return t},hasDSTInLocalTimeZone:m,isEqualLocalTimeZone:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(Intl){var n=Intl.DateTimeFormat().resolvedOptions().timeZone;if(n===e)return!0}return _(e,t)},isEqualLocalTimeZoneByDeclaration:_,getTimeZones:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=d(e);return o.default.getDisplayedTimeZones(t.getTime())}};t.default=y,e.exports=t.default,e.exports.default=t.default},56012:function(e,t,n){t.Cache=void 0;var i=n(35922);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(){this._cache=new Map}var t,n,a=e.prototype;return a.clear=function(){this._cache.clear()},a.get=function(e,t){return!this._cache.has(e)&&t&&this.set(e,t()),this._cache.get(e)},a.set=function(e,t){(0,i.isDefined)(t)&&this._cache.set(e,t)},t=e,(n=[{key:"size",get:function(){return this._cache.size}}])&&o(t.prototype,n),e}();t.Cache=a},96893:function(e,t,n){t.CellsSelectionController=void 0;var i=n(45985);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=function(){function e(){}var t=e.prototype;return t.handleArrowClick=function(e){var t,n=e.key,i=e.focusedCellPosition,a=e.edgeIndices,r=e.getCellDataByPosition,s=e.isAllDayPanelCell;switch(n){case"down":t=this.getCellFromNextRowPosition(i,"next",a);break;case"up":t=this.getCellFromNextRowPosition(i,"prev",a);break;case"left":t=this.getCellFromNextColumnPosition(o({},e,{direction:"prev"}));break;case"right":t=this.getCellFromNextColumnPosition(o({},e,{direction:"next"}))}var l=r(t.rowIndex,t.columnIndex,s);return this.moveToCell(o({},e,{currentCellData:l}))},t.getCellFromNextRowPosition=function(e,t,n){var i=e.columnIndex,o=e.rowIndex,a=o+("next"===t?1:-1);return{columnIndex:i,rowIndex:a>=0&&a<=n.lastRowIndex?a:o}},t.getCellFromNextColumnPosition=function(e){var t=e.focusedCellPosition,n=e.direction,o=e.edgeIndices,a=e.isRTL,r=e.isGroupedByDate,s=e.groupCount,l=e.isMultiSelection,u=e.viewType,d=t.columnIndex,c=t.rowIndex,h=o.firstColumnIndex,f=o.lastColumnIndex,p=o.firstRowIndex,g=o.lastRowIndex,m=r&&l?s:1,_=a?-1:1,v=d+("next"===n?_*m:-1*_*m);return v>=h&&v<=f?{columnIndex:v,rowIndex:c}:(0,i.isDateAndTimeView)(u)?t:this._processEdgeCell({nextColumnIndex:v,rowIndex:c,columnIndex:d,firstColumnIndex:h,lastColumnIndex:f,firstRowIndex:p,lastRowIndex:g,step:m})},t._processEdgeCell=function(e){var t=e.nextColumnIndex,n=e.rowIndex,i=e.columnIndex,o=e.firstColumnIndex,a=e.lastColumnIndex,r=e.firstRowIndex,s=e.lastRowIndex,l=e.step,u=t,d=n;if(t<o){var c=n-1,h=c>=r;d=h?c:n,u=h?a-(l-i%l-1):i}if(t>a){var f=n+1,p=f<=s;d=p?f:n,u=p?o+i%l:i}return{columnIndex:u,rowIndex:d}},t.moveToCell=function(e){var t=e.isMultiSelection,n=e.isMultiSelectionAllowed,i=e.focusedCellData,o=e.currentCellData;return t&&n?this._getNextCellData(o,i):o},t._getNextCellData=function(e,t,n){return n?t:this._isValidNextFocusedCell(e,t)?e:t},t._isValidNextFocusedCell=function(e,t){if(!t)return!0;var n=t.groupIndex,i=t.allDay,o=e.groupIndex,a=e.allDay;return n===o&&i===a},e}();t.CellsSelectionController=a},10800:function(e,t,n){t.default=void 0;var i,o=(i=n(91198))&&i.__esModule?i:{default:i};function a(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var l=function(){function e(e){this._viewDataProvider=e,this._focusedCell=null,this._selectedCells=null,this._firstSelectedCell=null,this._prevFocusedCell=null,this._prevSelectedCells=null}var t,n,i=e.prototype;return i.setFocusedCell=function(e,t,n){if(e>=0){var i=this._viewDataProvider.getCellData(e,t,n);this._focusedCell=i}},i.setSelectedCells=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this._viewDataProvider,o=e.rowIndex,r=e.columnIndex,s=e.allDay;if(!(o<0)){var l=n?i.getCellData(n.rowIndex,n.columnIndex,n.allDay):this._firstSelectedCell,u=i.getCellData(o,r,s);if(this._firstSelectedCell=l,l.startDate.getTime()>u.startDate.getTime()){var d=[u,l];l=d[0],u=d[1]}var c=l,h=c.startDate,f=c.groupIndex,p=c.index,g=u,m=g.startDate,_=g.index,v=i.getCellsByGroupIndexAndAllDay(f,s),y=v.reduce((function(e,n){var i={firstDate:h,lastDate:m,firstIndex:p,lastIndex:_},o=t._filterCellsByDateAndIndex(n,i);return e.push.apply(e,a(o)),e}),[]);this._selectedCells=y.sort((function(e,t){return e.startDate.getTime()-t.startDate.getTime()}))}},i.setSelectedCellsByData=function(e){this._selectedCells=e},i.getSelectedCells=function(){return this._selectedCells},i.releaseSelectedAndFocusedCells=function(){this.releaseSelectedCells(),this.releaseFocusedCell()},i.releaseSelectedCells=function(){this._prevSelectedCells=this._selectedCells,this._prevFirstSelectedCell=this._firstSelectedCell,this._selectedCells=null,this._firstSelectedCell=null},i.releaseFocusedCell=function(){this._prevFocusedCell=this._focusedCell,this._focusedCell=null},i.restoreSelectedAndFocusedCells=function(){this._selectedCells=this._selectedCells||this._prevSelectedCells,this._focusedCell=this._focusedCell||this._prevFocusedCell,this._firstSelectedCell=this._firstSelectedCell||this._prevFirstSelectedCell,this._prevSelectedCells=null,this._prevFirstSelectedCell=null,this._prevFocusedCell=null},i.clearSelectedAndFocusedCells=function(){this._prevSelectedCells=null,this._selectedCells=null,this._prevFocusedCell=null,this._focusedCell=null},i._filterCellsByDateAndIndex=function(e,t){var n=this,i=t.firstDate,a=t.lastDate,r=t.firstIndex,s=t.lastIndex,l=o.default.trimTime(i).getTime(),u=o.default.trimTime(a).getTime();return e.filter((function(e){var t=e.startDate,i=e.index,a={day:o.default.trimTime(t).getTime(),index:i,firstDay:l,firstIndex:r,lastDay:u,lastIndex:s};return n._compareCellsByDateAndIndex(a)}))},i._compareCellsByDateAndIndex=function(e){var t=e.day,n=e.index,i=e.firstDay,o=e.firstIndex,a=e.lastDay,r=e.lastIndex;if(i===a){var s=o,l=r;if(s>l){var u=[l,s];s=u[0],l=u[1]}return i===t&&n>=s&&n<=l}return t===i&&n>=o||t===a&&n<=r||i<t&&t<a},t=e,(n=[{key:"viewDataProvider",get:function(){return this._viewDataProvider}},{key:"focusedCell",get:function(){var e=this._focusedCell;if(e){var t={groupIndex:e.groupIndex,startDate:e.startDate,isAllDay:e.allDay,index:e.index};return{coordinates:this.viewDataProvider.findCellPositionInMap(t),cellData:e}}}}])&&s(t.prototype,n),e}();t.default=l,e.exports=t.default,e.exports.default=t.default},69576:function(e,t){function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}t.getMaxAllowedPosition=t.getGroupWidth=t.getCellWidth=t.getCellHeight=t.getAllDayHeight=t.PositionHelper=void 0;var r=function(e){var t=e.dateTableCellsMeta,n=null==t?void 0:t.length;if(!n)return{width:0,height:0};var i=t[n>1?1:0][0];return{width:i.width,height:i.height}},s=function(e){return r(e).height};t.getCellHeight=s;var l=function(e){return r(e).width};t.getCellWidth=l;var u=function(e,t,n){if(!e)return 0;if(t){var i=n.dateTableCellsMeta;return(null==i?void 0:i.length)?i[0][0].height:0}var o=n.allDayPanelCellsMeta;return null!=o&&o.length?o[0].height:0};t.getAllDayHeight=u;var d=function(e,t,n,i){return function(e,t,n,i){var o=i.dateTableCellsMeta[0];if(!o)return 0;var a=o[t.getLastGroupCellPosition(e).columnIndex];return a?n?a.left:a.left+a.width:0}(e||0,t,n,i)};t.getMaxAllowedPosition=d,t.getGroupWidth=function(e,t,n){var i=n.isVirtualScrolling,o=n.rtlEnabled,a=n.DOMMetaData,r=l(a),s=t.getCellCount(n)*r;i&&(s=t.groupedDataMap.dateTableGroupedMap[e][0].length*r);var u=d(e,t,o,a),c=u[e];return c&&(s=o?c-u[e+1]:0===e?c:c-u[e-1]),s};var c=function(){function e(e){this.options=e,this.groupStrategy=this.options.isVerticalGrouping?new h(this.options):new f(this.options)}var t=e.prototype;return t.getHorizontalMax=function(e){var t=this,n=function(e){return d(e,t.viewDataProvider,t.rtlEnabled,t.DOMMetaData)};return this.isGroupedByDate?Math.max(n(e),n(this.groupCount-1)):n(e)},t.getResizableStep=function(){var e=l(this.DOMMetaData);return this.isGroupedByDate?this.groupCount*e:e},t.getVerticalMax=function(e){return this.groupStrategy.getVerticalMax(e)},t.getOffsetByAllDayPanel=function(e){return this.groupStrategy.getOffsetByAllDayPanel(e)},t.getGroupTop=function(e){return this.groupStrategy.getGroupTop(e)},a(e,[{key:"viewDataProvider",get:function(){return this.options.viewDataProvider}},{key:"rtlEnabled",get:function(){return this.options.rtlEnabled}},{key:"isGroupedByDate",get:function(){return this.options.isGroupedByDate}},{key:"groupCount",get:function(){return this.options.groupCount}},{key:"DOMMetaData",get:function(){return this.options.getDOMMetaDataCallback()}}]),e}();t.PositionHelper=c;var h=function(){function e(e){this.options=e}var t=e.prototype;return t.getOffsetByAllDayPanel=function(e){var t=e.groupIndex,n=e.supportAllDayRow,i=e.showAllDayPanel,o=0;return n&&i&&(o=u(i,!0,this.DOMMetaData)*(t+1)),o},t.getVerticalMax=function(e){return this._getMaxAllowedVerticalPosition(i({},e,{viewDataProvider:this.viewDataProvider,rtlEnabled:this.rtlEnabled,DOMMetaData:this.DOMMetaData}))+this.getOffsetByAllDayPanel(e)},t.getGroupTop=function(e){var t=e.groupIndex,n=e.showAllDayPanel,i=e.isGroupedAllDayPanel,o=this.viewDataProvider.getRowCountInGroup(t);return this._getMaxAllowedVerticalPosition({groupIndex:t,viewDataProvider:this.viewDataProvider,showAllDayPanel:n,isGroupedAllDayPanel:i,isVerticalGrouping:!0,DOMMetaData:this.DOMMetaData})-s(this.DOMMetaData)*o},t._getAllDayHeight=function(e){return u(e,!0,this.DOMMetaData)},t._getMaxAllowedVerticalPosition=function(e){var t=e.groupIndex,n=e.showAllDayPanel,i=e.isGroupedAllDayPanel,o=this.viewDataProvider.getLastGroupCellPosition(t).rowIndex,a=this.DOMMetaData.dateTableCellsMeta[o];if(!a)return 0;var r=a[0].top+a[0].height;return i&&(r-=(t+1)*this._getAllDayHeight(n)),r},a(e,[{key:"viewDataProvider",get:function(){return this.options.viewDataProvider}},{key:"isGroupedByDate",get:function(){return this.options.isGroupedByDate}},{key:"rtlEnabled",get:function(){return this.options.rtlEnabled}},{key:"groupCount",get:function(){return this.options.groupCount}},{key:"DOMMetaData",get:function(){return this.options.getDOMMetaDataCallback()}}]),e}(),f=function(e){var t,o;function a(){return e.apply(this,arguments)||this}o=e,(t=a).prototype=Object.create(o.prototype),t.prototype.constructor=t,n(t,o);var r=a.prototype;return r.getOffsetByAllDayPanel=function(e){return 0},r.getVerticalMax=function(e){var t=e.isVirtualScrolling,n=e.groupIndex,o=t?n:0;return this._getMaxAllowedVerticalPosition(i({},e,{groupIndex:o}))},r.getGroupTop=function(e){return 0},r._getAllDayHeight=function(e){return u(e,!1,this.DOMMetaData)},a}(h)},2809:function(e,t,n){t.default=void 0;var i=n(58664),o=x(n(68374)),a=x(n(73349)),r=n(20576),s=n(95479),l=n(6415),u=x(n(99393)),d=x(n(44845)),c=n(13306),h=x(n(91500)),f=x(n(37428)),p=n(62060),g=n(98140),m=n(89206),_=n(45985),v=n(27728),y=x(n(91198));function x(e){return e&&e.__esModule?e:{default:e}}function b(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var C=f.default.tableCreator,S="dx-scheduler-group-table",k=function(e){var t,n;function u(){return e.apply(this,arguments)||this}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,w(t,n);var d,f,x=u.prototype;return x.getStartViewDate=function(){return this._startViewDate},x._init=function(){e.prototype._init.call(this),this._activeStateUnit=void 0},x._getDefaultOptions=function(){return(0,c.extend)(e.prototype._getDefaultOptions.call(this),{agendaDuration:7,rowHeight:60,noDataText:""})},x._optionChanged=function(t){var n=t.name,i=t.value;switch(n){case"agendaDuration":break;case"noDataText":case"rowHeight":this._recalculateAgenda(this._rows);break;case"groups":i&&i.length?this._$groupTable||(this._initGroupTable(),this._dateTableScrollable.$content().prepend(this._$groupTable)):this._$groupTable&&(this._$groupTable.remove(),this._$groupTable=null,this._detachGroupCountClass()),e.prototype._optionChanged.call(this,t);break;default:e.prototype._optionChanged.call(this,t)}},x._renderFocusState=function(){return(0,r.noop)()},x._renderFocusTarget=function(){return(0,r.noop)()},x._cleanFocusState=function(){return(0,r.noop)()},x.supportAllDayRow=function(){return!1},x._isVerticalGroupedWorkSpace=function(){return!1},x._getElementClass=function(){return"dx-scheduler-agenda"},x._calculateStartViewDate=function(){return(0,m.calculateStartViewDate)(this.option("currentDate"),this.option("startDayHour"))},x._getRowCount=function(){return this.option("agendaDuration")},x._getCellCount=function(){return 1},x._getTimePanelRowCount=function(){return this.option("agendaDuration")},x._renderAllDayPanel=function(){return(0,r.noop)()},x._toggleAllDayVisibility=function(){return(0,r.noop)()},x._initWorkSpaceUnits=function(){this._initGroupTable(),this._$timePanel=(0,o.default)("<table>").addClass(p.TIME_PANEL_CLASS),this._$dateTable=(0,o.default)("<table>").addClass(p.DATE_TABLE_CLASS),this._$dateTableScrollableContent=(0,o.default)("<div>").addClass("dx-scheduler-date-table-scrollable-content"),this._$dateTableContainer=(0,o.default)("<div>").addClass("dx-scheduler-date-table-container")},x._initGroupTable=function(){var e=this.option("groups");e&&e.length&&(this._$groupTable=(0,o.default)("<table>").addClass(S))},x._renderView=function(){this._startViewDate=this._calculateStartViewDate(),this._rows=[],this._initPositionHelper()},x._recalculateAgenda=function(e){var t=[];this._cleanView(),this._rowsIsEmpty(e)?this._renderNoData():(this._rows=e,this._$groupTable&&(t=this._renderGroupHeader(),this._setGroupHeaderCellsHeight()),this._renderTimePanel(),this._renderDateTable(),this.invoke("onAgendaReady",e),this._applyCellTemplates(t),this._dateTableScrollable.update())},x._renderNoData=function(){this._$noDataContainer=(0,o.default)("<div>").addClass("dx-scheduler-agenda-nodata").html(this.option("noDataText")),this._dateTableScrollable.$content().append(this._$noDataContainer)},x._setTableSizes=function(){return(0,r.noop)()},x._toggleHorizontalScrollClass=function(){return(0,r.noop)()},x._createCrossScrollingConfig=function(){return(0,r.noop)()},x._setGroupHeaderCellsHeight=function(){var e=this._getGroupHeaderCells().filter((function(e,t){return!t.getAttribute("rowSpan")})),t=this._removeEmptyRows(this._rows);if(t.length)for(var n=0;n<e.length;n++){var o=e.eq(n).find(".dx-scheduler-group-header-content");(0,i.setOuterHeight)(o,this._getGroupRowHeight(t[n]))}},x._rowsIsEmpty=function(e){for(var t=!0,n=0;n<e.length;n++)for(var i=e[n],o=0;o<i.length;o++)if(i[o]){t=!1;break}return t},x._attachGroupCountClass=function(){var e=(0,_.getVerticalGroupCountClass)(this.option("groups"));this.$element().addClass(e)},x._removeEmptyRows=function(e){for(var t=[],n=0;n<e.length;n++)e[n].length&&e[n].some((function(e){return e>0}))&&t.push(e[n]);return t},x._getGroupHeaderContainer=function(){return this._$groupTable},x._makeGroupRows=function(){var e=this,t=(0,g.createReducedResourcesTree)(this.option("loadedResources"),(function(t,n){return(0,g.getDataAccessors)(e.option("getResourceDataAccessors")(),t,n)}),this.option("getFilteredItems")()),n=this.option("resourceCellTemplate"),i=p.GROUP_HEADER_CONTENT_CLASS,r=[],s=C.makeGroupedTableFromJSON(C.VERTICAL,t,{cellTag:"th",groupTableClass:S,groupRowClass:p.GROUP_ROW_CLASS,groupCellClass:this._getGroupHeaderClass(),groupCellCustomContent:function(e,t,s,u){var d=a.default.createElement("div"),c=a.default.createElement("div");d.className=i,c.appendChild(t),d.appendChild(c),d.className=i,n&&n.render?r.push(n.render.bind(n,{model:{data:u.data,id:u.value,color:u.color,text:t.textContent},container:(0,l.getPublicElement)((0,o.default)(d)),index:s})):(c.appendChild(t),d.appendChild(c)),e.appendChild(d)},cellTemplate:n});return{elements:(0,o.default)(s).find(".".concat(p.GROUP_ROW_CLASS)),cellTemplates:r}},x._cleanView=function(){this._$dateTable.empty(),this._$timePanel.empty(),this._$groupTable&&this._$groupTable.empty(),this._$noDataContainer&&(this._$noDataContainer.empty(),this._$noDataContainer.remove(),delete this._$noDataContainer)},x._createWorkSpaceElements=function(){this._createWorkSpaceStaticElements()},x._createWorkSpaceStaticElements=function(){this._$dateTableContainer.append(this._$dateTable),this._dateTableScrollable.$content().append(this._$dateTableScrollableContent),this._$groupTable&&this._$dateTableScrollableContent.prepend(this._$groupTable),this._$dateTableScrollableContent.append(this._$timePanel,this._$dateTableContainer),this.$element().append(this._dateTableScrollable.$element())},x._renderDateTable=function(){this._renderTableBody({container:(0,l.getPublicElement)(this._$dateTable),rowClass:p.DATE_TABLE_ROW_CLASS,cellClass:this._getDateTableCellClass()})},x._attachTablesEvents=function(){return(0,r.noop)()},x._attachEvents=function(){return(0,r.noop)()},x._cleanCellDataCache=function(){return(0,r.noop)()},x.isIndicationAvailable=function(){return!1},x._prepareCellTemplateOptions=function(e,t,n,i){var o=this.option("groups"),a={},r=!!o.length;(r&&(0,g.getPathToLeaf)(n,o)||[]).forEach((function(e,t){var n=o[t].name;a[n]=e}));var s=r?this._getGroupIndexByResourceId(a):void 0;return{model:{text:e,date:t,groups:a,groupIndex:s},container:(0,l.getPublicElement)(i),index:n}},x._renderTableBody=function(e){var t,n=[],a=e.cellTemplate;this._$rows=[];var r=function(r,s){if(s){var l,u,d,c=(0,o.default)("<tr>"),f=(0,o.default)("<td>");if((0,i.setHeight)(f,this._getRowHeight(s)),e.getStartDate&&(l=e.getStartDate&&e.getStartDate(r),u=h.default.format(l,"d"),d=h.default.format(l,_.formatWeekday)),a&&a.render){var p=this._prepareCellTemplateOptions(u+" "+d,l,t,f);n.push(a.render.bind(a,p))}else u&&d&&f.addClass("dx-scheduler-agenda-date").text(u+" "+d);e.rowClass&&c.addClass(e.rowClass),e.cellClass&&f.addClass(e.cellClass),c.append(f),this._$rows.push(c)}}.bind(this);for(t=0;t<this._rows.length;t++)(0,s.each)(this._rows[t],r),this._setLastRowClass();(0,o.default)(e.container).append((0,o.default)("<tbody>").append(this._$rows)),this._applyCellTemplates(n)},x._setLastRowClass=function(){this._rows.length>1&&this._$rows.length&&this._$rows[this._$rows.length-1].addClass("dx-scheduler-date-table-last-row")},x._renderTimePanel=function(){this._renderTableBody({container:(0,l.getPublicElement)(this._$timePanel),rowCount:this._getTimePanelRowCount(),cellCount:1,rowClass:"dx-scheduler-time-panel-row",cellClass:"dx-scheduler-time-panel-cell",cellTemplate:this.option("dateCellTemplate"),getStartDate:this._getTimePanelStartDate.bind(this)})},x._getTimePanelStartDate=function(e){var t=new Date(this.option("currentDate"));return new Date(t.setDate(t.getDate()+e))},x._getRowHeight=function(e){var t=this.option("rowHeight");return e?t*e+5*(e-1)+20:0},x._getGroupRowHeight=function(e){if(e){for(var t=0,n=0;n<e.length;n++)t+=this._getRowHeight(e[n]);return t}},x._calculateRows=function(e){return this.renderingStrategy.calculateRows(e,this.option("agendaDuration"),this.option("currentDate"))},x.onDataSourceChanged=function(t){e.prototype.onDataSourceChanged.call(this),this._renderView();var n=this._calculateRows(t);this._recalculateAgenda(n)},x.getAgendaVerticalStepHeight=function(){return this.option("rowHeight")},x.getEndViewDate=function(){var e=new Date(this.option("currentDate")),t=this.option("agendaDuration");e.setHours(this.option("endDayHour"));var n=e.setDate(e.getDate()+t-1)-6e4;return new Date(n)},x.getEndViewDateByEndDayHour=function(){return this.getEndViewDate()},x.getCellDataByCoordinates=function(){return{startDate:null,endDate:null}},x.updateScrollPosition=function(e){var t=this.timeZoneCalculator.createDate(e,{path:"toGrid"}),n=this.getVisibleBounds(),i=t.getHours(),o=t.getMinutes();this.needUpdateScrollPosition(i,o,n,t)&&this.scrollToTime(i,o,t)},x.needUpdateScrollPosition=function(e,t,n){var i=!1;return(e<n.top.hours||e>n.bottom.hours)&&(i=!0),e===n.top.hours&&t<n.top.minutes&&(i=!0),e===n.bottom.hours&&t>n.top.minutes&&(i=!0),i},x.renovatedRenderSupported=function(){return!1},x._setSelectedCellsByCellData=function(){},x._getIntervalDuration=function(){return y.default.dateToMilliseconds("day")*this.option("intervalCount")},x.getDOMElementsMetaData=function(){return{dateTableCellsMeta:[[{}]],allDayPanelCellsMeta:[{}]}},d=u,(f=[{key:"type",get:function(){return v.VIEWS.AGENDA}},{key:"renderingStrategy",get:function(){return this.invoke("getLayoutManager").getRenderingStrategyInstance()}},{key:"appointmentDataProvider",get:function(){return this.option("getAppointmentDataProvider")()}}])&&b(d.prototype,f),u}(d.default);(0,u.default)("dxSchedulerAgenda",k);var D=k;t.default=D,e.exports=t.default,e.exports.default=t.default},10373:function(e,t,n){t.default=void 0;var i=n(58664),o=v(n(68374)),a=n(20576),r=n(13306),s=n(37518),l=v(n(99393)),u=v(n(22955)),d=v(n(91198)),c=v(n(37428)),h=v(n(93837)),f=n(62060),p=n(92956),g=v(n(32511)),m=v(n(8262)),_=n(45985);function v(e){return e&&e.__esModule?e:{default:e}}function y(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function w(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var S=c.default.tableCreator,k="dx-scheduler-group-table",D="dx-scheduler-header-panel-cell",I="dx-scheduler-header-panel-week-cell",T=d.default.dateToMilliseconds,E=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,C(t,n);var u,c,v=l.prototype;return v.getGroupTableWidth=function(){return this._$sidebarTable?(0,i.getOuterWidth)(this._$sidebarTable):0},v._getTotalRowCount=function(e){return this._isHorizontalGroupedWorkSpace()?this._getRowCount():(e=e||1,this._getRowCount()*e)},v._getFormat=function(){return"shorttime"},v._getWorkSpaceHeight=function(){return this.option("crossScrollingEnabled")?(0,s.getBoundingRect)(this._$dateTable.get(0)).height:(0,s.getBoundingRect)(this.$element().get(0)).height},v._dateTableScrollableConfig=function(){var t=e.prototype._dateTableScrollableConfig.call(this);return this.option("crossScrollingEnabled")?t:(0,r.extend)(t,{direction:"horizontal"})},v._needCreateCrossScrolling=function(){return!0},v._headerScrollableConfig=function(){var t=e.prototype._headerScrollableConfig.call(this);return(0,r.extend)(t,{scrollByContent:!0})},v.supportAllDayRow=function(){return!1},v._getGroupHeaderContainer=function(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable},v._insertAllDayRowsIntoDateTable=function(){return!1},v._needRenderWeekHeader=function(){return!1},v._incrementDate=function(e){e.setDate(e.getDate()+1)},v.getIndicationCellCount=function(){var e=this._getTimeDiff();return this._calculateDurationInCells(e)},v._getTimeDiff=function(){var e=this._getToday(),t=this._getIndicationFirstViewDate(),n=this.getStartViewDate(),i=g.default.getDaylightOffsetInMs(n,e);return i&&(e=new Date(e.getTime()+i)),e.getTime()-t.getTime()},v._calculateDurationInCells=function(e){var t=this._getToday(),n=Math.floor(e/T("day")),i=(e-n*T("day")-this.option("startDayHour")*T("hour"))/this.getCellDuration();return t.getHours()>this.option("endDayHour")&&(i=this._getCellCountInDay()),i<0&&(i=0),n*this._getCellCountInDay()+i},v.getIndicationWidth=function(){if(this.isGroupedByDate()){var e=this.getIndicationCellCount(),t=Math.floor(e),n=e-t;return this.getCellWidth()*(t*this._getGroupCount()+n)}return this.getIndicationCellCount()*this.getCellWidth()},v._isVerticalShader=function(){return!1},v._isCurrentTimeHeaderCell=function(){return!1},v._setTableSizes=function(){var t=this._getWorkSpaceMinHeight();(0,i.setHeight)(this._$sidebarTable,t),(0,i.setHeight)(this._$dateTable,t),e.prototype._setTableSizes.call(this),this.virtualScrollingDispatcher.updateDimensions()},v._getWorkSpaceMinHeight=function(){var e=this._getWorkSpaceHeight(),t=(0,i.getOuterHeight)(this.$element(),!0)-this.getHeaderPanelHeight()-2-10;return e<t&&(e=t),e},v._getCellCoordinatesByIndex=function(e){return{columnIndex:e%this._getCellCount(),rowIndex:0}},v._getCellByCoordinates=function(e,t){var n=this._groupedStrategy.prepareCellIndexes(e,t);return this._$dateTable.find("tr").eq(n.rowIndex).find("td").eq(n.columnIndex)},v._getWorkSpaceWidth=function(){return(0,i.getOuterWidth)(this._$dateTable,!0)},v._getIndicationFirstViewDate=function(){return d.default.trimTime(new Date(this.getStartViewDate()))},v._getIntervalBetween=function(e,t){var n=this.option("startDayHour"),i=this.option("endDayHour"),o=this.getStartViewDate(),a=o.getTime(),r=(24-i+n)*T("hour"),s=d.default.getTimezonesDifference(o,e),l=e.getTime(),u=l-a-s,c=Math.floor(u/T("day")),h=u-c*T("day"),f=0,p=this._getCellCountInDay()*(c-this._getWeekendsCount(c)),g=l-d.default.trimTime(new Date(e)).getTime(),m=p*this.option("hoursInterval")*T("hour");return t||(e.getHours()<n?f=h-r+g:e.getHours()>=n&&e.getHours()<i?f=h:e.getHours()>=n&&e.getHours()>=i?f=h-(g-i*T("hour")):c||(m=u),m+=f),m},v._getWeekendsCount=function(){return 0},v.getAllDayContainer=function(){return null},v.getTimePanelWidth=function(){return 0},v.getIntervalDuration=function(e){return this.getCellDuration()},v.getCellMinWidth=function(){return 0},v.getWorkSpaceLeftOffset=function(){return 0},v.scrollToTime=function(e,t,n){var i=this._getScrollCoordinates(e,t,n),o=this.getScrollable(),a=this.option("rtlEnabled")?(0,s.getBoundingRect)(this.getScrollableContainer().get(0)).width:0;this.option("templatesRenderAsynchronously")?setTimeout((function(){o.scrollBy({left:i.left-o.scrollLeft()-a,top:0})})):o.scrollBy({left:i.left-o.scrollLeft()-a,top:0})},v.renderRAllDayPanel=function(){},v.renderRTimeTable=function(){},v._renderGroupAllDayPanel=function(){},v.generateRenderOptions=function(){return b({},e.prototype.generateRenderOptions.call(this,!0),{isGenerateWeekDaysHeaderData:this._needRenderWeekHeader(),getDateForHeaderText:p.getDateForHeaderText})},v._init=function(){e.prototype._init.call(this),this.$element().addClass("dx-scheduler-timeline"),this._$sidebarTable=(0,o.default)("<div>").addClass(k)},v._getDefaultGroupStrategy=function(){return"vertical"},v._toggleGroupingDirectionClass=function(){this.$element().toggleClass("dx-scheduler-work-space-horizontal-grouped",this._isHorizontalGroupedWorkSpace())},v._getDefaultOptions=function(){return(0,r.extend)(e.prototype._getDefaultOptions.call(this),{groupOrientation:"vertical"})},v._createWorkSpaceElements=function(){this._createWorkSpaceScrollableElements()},v._toggleAllDayVisibility=function(){return(0,a.noop)()},v._changeAllDayVisibility=function(){return(0,a.noop)()},v._getDateHeaderTemplate=function(){return this.option("timeCellTemplate")},v._renderView=function(){var e;this.isRenovatedRender()||(e=this._renderGroupHeader()),this.renderWorkSpace(),this._shader=new h.default(this),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this.isRenovatedRender()&&this._isVerticalGroupedWorkSpace()&&this.renderRGroupPanel(),this.updateHeaderEmptyCellWidth(),this._applyCellTemplates(e)},v._setHorizontalGroupHeaderCellsHeight=function(){return(0,a.noop)()},v._setCurrentTimeCells=function(){var e=this._getTimePanelCells();this._getCurrentTimePanelCellIndices().forEach((function(t){e.eq(t).addClass(f.HEADER_CURRENT_TIME_CELL_CLASS)}))},v._cleanCurrentTimeCells=function(){this.$element().find(".".concat(f.HEADER_CURRENT_TIME_CELL_CLASS)).removeClass(f.HEADER_CURRENT_TIME_CELL_CLASS)},v._getTimePanelCells=function(){return this.$element().find(".".concat(D,":not(.").concat(I,")"))},v._getCurrentTimePanelCellIndices=function(){var e=this._getCellCount(),t=this._getToday(),n=this.getCellIndexByDate(t),i=this._getCellCoordinatesByIndex(n).columnIndex;if(void 0===i)return[];var o=this._isHorizontalGroupedWorkSpace()&&!this.isGroupedByDate()?this._getGroupCount():1;return y(new Array(o)).map((function(t,n){return e*n+i}))},v._renderTimePanel=function(){return(0,a.noop)()},v._renderAllDayPanel=function(){return(0,a.noop)()},v._createAllDayPanelElements=function(){return(0,a.noop)()},v._renderDateHeader=function(){var t=e.prototype._renderDateHeader.call(this);if(this._needRenderWeekHeader()){for(var n=new Date(this.getStartViewDate()),i=new Date(n),a=[],r=this._getGroupCount(),s=this._getCellCountInDay(),l=this.isGroupedByDate()?s*r:s,u=this.option("dateCellTemplate"),d=this._isHorizontalGroupedWorkSpace()&&!this.isGroupedByDate()?r:1,c=this.viewDataProvider.viewDataGenerator.daysInInterval*this.option("intervalCount"),h=c*d,f=0;f<h;f++){var p=(0,o.default)("<th>"),g=(0,_.formatWeekdayAndDay)(i);if(u){var m={model:b({text:g,date:new Date(i)},this._getGroupsForDateHeaderTemplate(f,l)),container:p,index:f};u.render(m)}else p.text(g);p.addClass(D).addClass(I).attr("colSpan",l),a.push(p),f%c==c-1?i=new Date(n):this._incrementDate(i)}var v=(0,o.default)("<tr>").addClass("dx-scheduler-header-row").append(a);t.before(v)}},v._renderIndicator=function(e,t,n,o){var a,r=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))a=this._createIndicator(n),(0,i.setHeight)(a,(0,s.getBoundingRect)(n.get(0)).height),a.css("left",t?t-r:r);else for(var l=0;l<o;l++){var u=this.isGroupedByDate()?l*this.getCellWidth():this._getCellCount()*this.getCellWidth()*l;a=this._createIndicator(n),(0,i.setHeight)(a,(0,s.getBoundingRect)(n.get(0)).height),a.css("left",t?t-r-u:r+u)}},v._makeGroupRows=function(e,t){var n="vertical"===this.option("groupOrientation")?S.VERTICAL:S.HORIZONTAL;return S.makeGroupedTable(n,e,{groupRowClass:f.GROUP_ROW_CLASS,groupHeaderRowClass:f.GROUP_ROW_CLASS,groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:f.GROUP_HEADER_CONTENT_CLASS},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getTotalRowCount(this._getGroupCount()),t)},u=l,(c=[{key:"verticalGroupTableClass",get:function(){return k}},{key:"viewDirection",get:function(){return"horizontal"}},{key:"renovatedHeaderPanelComponent",get:function(){return m.default}}])&&w(u.prototype,c),l}(u.default);(0,l.default)("dxSchedulerTimeline",E);var A=E;t.default=A,e.exports=t.default,e.exports.default=t.default},37833:function(e,t,n){t.default=void 0;var i=a(n(99393)),o=n(27728);function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var a,l,u=i.prototype;return u._getElementClass=function(){return"dx-scheduler-timeline-day"},u._needRenderWeekHeader=function(){return this._isWorkSpaceWithCount()},a=i,(l=[{key:"type",get:function(){return o.VIEWS.TIMELINE_DAY}}])&&r(a.prototype,l),i}(a(n(10373)).default);(0,i.default)("dxSchedulerTimelineDay",l);var u=l;t.default=u,e.exports=t.default,e.exports.default=t.default},32374:function(e,t,n){t.default=void 0;var i=d(n(99393)),o=d(n(10373)),a=d(n(91198)),r=d(n(32972)),s=n(19097),l=n(45985),u=n(27728);function d(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var o,d,p=i.prototype;return p._renderView=function(){e.prototype._renderView.call(this),this._updateScrollable()},p._getElementClass=function(){return"dx-scheduler-timeline-month"},p._getDateHeaderTemplate=function(){return this.option("dateCellTemplate")},p._calculateDurationInCells=function(e){return e/this.getCellDuration()},p.isIndicatorVisible=function(){return!0},p._getFormat=function(){return l.formatWeekdayAndDay},p._getIntervalBetween=function(e){var t=this.getStartViewDate(),n=a.default.getTimezonesDifference(t,e);return e.getTime()-(t.getTime()-36e5*this.option("startDayHour"))-n},p._getViewStartByOptions=function(){return(0,s.getViewStartByOptions)(this.option("startDate"),this.option("currentDate"),this.option("intervalCount"),a.default.getFirstMonthDate(this.option("startDate")))},p.generateRenderOptions=function(){return c({},e.prototype.generateRenderOptions.call(this,!0),{getDateForHeaderText:function(e,t){return t}})},o=i,(d=[{key:"type",get:function(){return u.VIEWS.TIMELINE_MONTH}},{key:"viewDirection",get:function(){return"horizontal"}},{key:"renovatedHeaderPanelComponent",get:function(){return r.default}}])&&h(o.prototype,d),i}(o.default);(0,i.default)("dxSchedulerTimelineMonth",p);var g=p;t.default=g,e.exports=t.default,e.exports.default=t.default},50007:function(e,t,n){t.default=void 0;var i=s(n(99393)),o=s(n(10373)),a=n(37518),r=n(27728);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var o,s,d=i.prototype;return d._getElementClass=function(){return"dx-scheduler-timeline-week"},d._getHeaderPanelCellWidth=function(e){return(0,a.getBoundingRect)(e.children().first().get(0)).width},d._needRenderWeekHeader=function(){return!0},d._incrementDate=function(e){e.setDate(e.getDate()+1)},o=i,(s=[{key:"type",get:function(){return r.VIEWS.TIMELINE_WEEK}}])&&l(o.prototype,s),i}(o.default);t.default=d,(0,i.default)("dxSchedulerTimelineWeek",d),e.exports=t.default,e.exports.default=t.default},6763:function(e,t,n){t.default=void 0;var i=s(n(99393)),o=n(27728),a=s(n(50007)),r=n(83866);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this)._getWeekendsCount=r.getWeekendsCount,t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var a,s,d=i.prototype;return d._getElementClass=function(){return"dx-scheduler-timeline-work-week"},d._incrementDate=function(t){5===t.getDay()&&t.setDate(t.getDate()+2),e.prototype._incrementDate.call(this,t)},a=i,(s=[{key:"type",get:function(){return o.VIEWS.TIMELINE_WORK_WEEK}}])&&l(a.prototype,s),i}(a.default);(0,i.default)("dxSchedulerTimelineWorkWeek",d);var c=d;t.default=c,e.exports=t.default,e.exports.default=t.default},12675:function(e,t,n){t.VirtualScrollingRenderer=t.VirtualScrollingDispatcher=void 0;var i=l(n(73349)),o=l(n(55994)),a=n(58201),r=n(39611),s=n(35922);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,d(e,t)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}var p=(0,r.addNamespace)("scroll","dxSchedulerVirtualScrolling"),g="both",m=function(){function e(e){this.options=e,e&&(this._rowHeight=this.getCellHeight(),this._cellWidth=this.getCellWidth(),this._createVirtualScrollingBase())}var t=e.prototype;return t.setViewOptions=function(e){this.options=e},t.getRenderState=function(){var e,t;return c({},(null===(e=this.verticalVirtualScrolling)||void 0===e?void 0:e.getRenderState())||{},(null===(t=this.horizontalVirtualScrolling)||void 0===t?void 0:t.getRenderState())||{})},t.getCellHeight=function(){var e=this.options.getCellHeight(),t=e>0?e:50;return Math.floor(t)},t.getCellWidth=function(){var e=this.options.getCellWidth(),t=this.options.getCellMinWidth();(!e||e<t)&&(e=t);var n=e>0?e:1;return Math.floor(n)},t.calculateCoordinatesByDataAndPosition=function(e,t,n,i,o){var a=t.rowIndex,r=t.columnIndex,s=e.startDate,l=e.endDate,u=e.allDay,d=n.getTime(),c=s.getTime(),h=l.getTime(),f=u||!i?0:(d-c)/(h-c),p=this.getCellWidth(),g=this.getCellHeight(),m=o?(a+f)*g:a*g,_=o?r*p:(r+f)*p;return this.isRTL&&(_=this.options.getScrollableOuterWidth()-_),{top:m,left:_}},t.dispose=function(){this._onScrollHandler&&o.default.off(this.document,p,this._onScrollHandler)},t.createVirtualScrolling=function(){var e=!!this.verticalVirtualScrolling,t=!!this.horizontalVirtualScrolling;this.verticalScrollingAllowed===e&&this.horizontalScrollingAllowed===t||(this._rowHeight=this.getCellHeight(),this._cellWidth=this.getCellWidth(),this._createVirtualScrollingBase())},t._createVirtualScrollingBase=function(){this.verticalScrollingAllowed&&(this.verticalVirtualScrolling=new v(c({},this.options,{viewportHeight:this.viewportHeight,rowHeight:this.rowHeight,outlineCount:this.outlineCount}))),this.horizontalScrollingAllowed&&(this.horizontalVirtualScrolling=new y(c({},this.options,{viewportWidth:this.viewportWidth,cellWidth:this.cellWidth,outlineCount:this.outlineCount})))},t.attachScrollableEvents=function(){!this.horizontalScrollingAllowed&&!this.verticalScrollingAllowed||this.height||this._attachWindowScroll()},t._attachWindowScroll=function(){var e=this,t=(0,a.getWindow)();this._onScrollHandler=this.options.createAction((function(){var n=t.scrollX,i=t.scrollY;(n>=10||i>=10)&&e.handleOnScrollEvent({left:n,top:i})})),o.default.on(this.document,p,this._onScrollHandler)},t.handleOnScrollEvent=function(e){if(e){var t,n,i,o,a=e.left,r=e.top,l=(0,s.isDefined)(r)&&(null===(t=this.verticalVirtualScrolling)||void 0===t?void 0:t.updateState(r)),u=(0,s.isDefined)(a)&&(null===(n=this.horizontalVirtualScrolling)||void 0===n?void 0:n.updateState(a));(l||u)&&(null===(i=(o=this.options).updateRender)||void 0===i||i.call(o))}},t.updateDimensions=function(e){var t=this.getCellHeight(),n=this.verticalScrollingAllowed&&t!==this.rowHeight;(n||e)&&this.verticalVirtualScrolling&&(this.rowHeight=t,this.verticalVirtualScrolling.viewportSize=this.viewportHeight,this.verticalVirtualScrolling.reinitState(t,e));var i,o,a=this.getCellWidth(),r=this.horizontalScrollingAllowed&&a!==this.cellWidth;(r||e)&&this.horizontalVirtualScrolling&&(this.cellWidth=a,this.horizontalVirtualScrolling.viewportSize=this.viewportWidth,this.horizontalVirtualScrolling.reinitState(a,e)),(n||r)&&(null===(i=(o=this.options).updateGrid)||void 0===i||i.call(o))},f(e,[{key:"isRTL",get:function(){return this.options.isRTL()}},{key:"verticalVirtualScrolling",get:function(){return this._verticalVirtualScrolling},set:function(e){this._verticalVirtualScrolling=e}},{key:"horizontalVirtualScrolling",get:function(){return this._horizontalVirtualScrolling},set:function(e){this._horizontalVirtualScrolling=e}},{key:"document",get:function(){return i.default.getDocument()}},{key:"height",get:function(){return this.options.getSchedulerHeight()}},{key:"width",get:function(){return this.options.getSchedulerWidth()}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(e){this._rowHeight=e}},{key:"outlineCount",get:function(){return this.options.getScrolling().outlineCount}},{key:"viewportHeight",get:function(){return this.height?this.options.getViewHeight():(0,a.getWindow)().innerHeight}},{key:"cellWidth",get:function(){return this._cellWidth},set:function(e){this._cellWidth=e}},{key:"viewportWidth",get:function(){return this.width?this.options.getViewWidth():(0,a.getWindow)().innerWidth}},{key:"cellCountInsideTopVirtualRow",get:function(){var e;return(null===(e=this.verticalScrollingState)||void 0===e?void 0:e.virtualItemCountBefore)||0}},{key:"cellCountInsideLeftVirtualCell",get:function(){var e;return(null===(e=this.horizontalScrollingState)||void 0===e?void 0:e.virtualItemCountBefore)||0}},{key:"cellCountInsideRightVirtualCell",get:function(){var e;return(null===(e=this.horizontalScrollingState)||void 0===e?void 0:e.virtualItemCountAfter)||0}},{key:"topVirtualRowsCount",get:function(){return this.cellCountInsideTopVirtualRow>0?1:0}},{key:"leftVirtualCellsCount",get:function(){return(this.isRTL?this.cellCountInsideRightVirtualCell:this.cellCountInsideLeftVirtualCell)>0?1:0}},{key:"virtualRowOffset",get:function(){var e;return(null===(e=this.verticalScrollingState)||void 0===e?void 0:e.virtualItemSizeBefore)||0}},{key:"virtualCellOffset",get:function(){var e;return(null===(e=this.horizontalScrollingState)||void 0===e?void 0:e.virtualItemSizeBefore)||0}},{key:"scrollingState",get:function(){var e,t;return{vertical:null===(e=this.verticalVirtualScrolling)||void 0===e?void 0:e.state,horizontal:null===(t=this.horizontalVirtualScrolling)||void 0===t?void 0:t.state}}},{key:"verticalScrollingState",get:function(){return this.scrollingState.vertical}},{key:"horizontalScrollingState",get:function(){return this.scrollingState.horizontal}},{key:"scrollingOrientation",get:function(){var e=this.options.getScrolling();return"standard"===e.mode?"none":e.orientation||"both"}},{key:"verticalScrollingAllowed",get:function(){return"vertical"===this.scrollingOrientation||this.scrollingOrientation===g}},{key:"horizontalScrollingAllowed",get:function(){return"horizontal"===this.scrollingOrientation||this.scrollingOrientation===g}}]),e}();t.VirtualScrollingDispatcher=m;var _=function(){function e(e){this.options=e,this._state=this.defaultState,this.viewportSize=e.viewportSize,this._itemSize=e.itemSize,this._position=-1,this._itemSizeChanged=!1,this.updateState(0)}var t=e.prototype;return t.needUpdateState=function(e){var t=this.state,n=t.prevPosition;if(t.startIndex<0)return!0;var i=!1;if(this._validateAndSavePosition(e)){if(0===e||e===this.maxScrollPosition)return!0;var o=n,a=Math.floor(o/this.itemSize),r=Math.floor(e/this.itemSize);i=Math.abs(a-r)>=this.outlineCount}return i},t._validateAndSavePosition=function(e){if(!(0,s.isDefined)(e))return!1;var t=this.position!==e;return this.position=e,t},t._correctPosition=function(e){return e>=0?Math.min(e,this.maxScrollPosition):-1},t.updateState=function(e,t){if(e=this._correctPosition(e),!this.needUpdateState(e)&&!t)return!1;var n=this._calcItemInfoBefore(e),i=this._calcItemDeltaBefore(n),o=this._calcItemInfoAfter(i),a=o.outlineCountAfter,r=o.virtualItemCountAfter,s=o.itemCountWithAfter,l=n.virtualItemCountBefore,u=n.outlineCountBefore,d=u+s+a,c=Math.floor(e/this.itemSize);return this.state.prevPosition=c*this.itemSize,this.state.startIndex=c-u,this.state.virtualItemCountBefore=l,this.state.outlineCountBefore=u,this.state.itemCount=d,this.state.outlineCountAfter=a,this.state.virtualItemCountAfter=r,this._updateStateCore(),!0},t.reinitState=function(e,t){var n=this.position;this.itemSize=e,this.updateState(0,t),n>0&&this.updateState(n,t)},t._calcItemInfoBefore=function(e){var t=Math.floor(e/this.itemSize),n=Math.min(t,this.outlineCount);return{virtualItemCountBefore:t-=n,outlineCountBefore:n}},t._calcItemDeltaBefore=function(e){var t=e.virtualItemCountBefore,n=e.outlineCountBefore;return this.getTotalItemCount()-t-n},t.getTotalItemCount=function(){throw"getTotalItemCount method should be implemented"},t.getRenderState=function(){throw"getRenderState method should be implemented"},t._calcItemInfoAfter=function(e){var t=e>=this.pageSize?this.pageSize:e,n=e-t,i=n>0?Math.min(n,this.outlineCount):0;return n>0&&(n-=i),{virtualItemCountAfter:n,outlineCountAfter:i,itemCountWithAfter:t}},t._updateStateCore=function(){var e=this.state,t=e.virtualItemCountBefore,n=e.virtualItemCountAfter,i=e.outlineCountBefore,o=e.outlineCountAfter,a=e.virtualItemSizeBefore,r=e.virtualItemSizeAfter,s=e.outlineSizeBefore,l=e.outlineSizeAfter,u=this.itemSize*t,d=this.itemSize*n,c=a+s<u+this.itemSize*i,h=r+l<d+this.itemSize*o;(this._itemSizeChanged||c||h)&&this._updateStateVirtualItems(u,d)},t._updateStateVirtualItems=function(e,t){var n=this.state;n.virtualItemSizeBefore=e,n.virtualItemSizeAfter=t},f(e,[{key:"itemSize",get:function(){return this._itemSize},set:function(e){this._itemSizeChanged=this._itemSize!==e,this._itemSize=e}},{key:"state",get:function(){return this._state},set:function(e){this._state=e}},{key:"startIndex",get:function(){return this.state.startIndex}},{key:"pageSize",get:function(){return Math.ceil(this.viewportSize/this.itemSize)}},{key:"outlineCount",get:function(){return(0,s.isDefined)(this.options.outlineCount)?this.options.outlineCount:Math.floor(this.pageSize/2)}},{key:"groupCount",get:function(){return this.options.getGroupCount()}},{key:"isVerticalGrouping",get:function(){return this.options.isVerticalGrouping()}},{key:"defaultState",get:function(){return{prevPosition:0,startIndex:-1,itemCount:0,virtualItemCountBefore:0,virtualItemCountAfter:0,outlineCountBefore:0,outlineCountAfter:0,virtualItemSizeBefore:0,virtualItemSizeAfter:0,outlineSizeBefore:0,outlineSizeAfter:0}}},{key:"maxScrollPosition",get:function(){return this.getTotalItemCount()*this.itemSize-this.viewportSize}},{key:"position",get:function(){return this._position},set:function(e){this._position=e}}]),e}(),v=function(e){function t(t){return e.call(this,c({},t,{itemSize:t.rowHeight,viewportSize:t.viewportHeight}))||this}u(t,e);var n=t.prototype;return n.getTotalItemCount=function(){return this.options.getTotalRowCount(this.groupCount,this.isVerticalGrouping)},n.getRenderState=function(){return{topVirtualRowHeight:this.state.virtualItemSizeBefore,bottomVirtualRowHeight:this.state.virtualItemSizeAfter,startRowIndex:this.state.startIndex,rowCount:this.state.itemCount,startIndex:this.state.startIndex}},f(t,[{key:"prevTopPosition",get:function(){return this.state.prevPosition}},{key:"rowCount",get:function(){return this.state.itemCount}},{key:"topVirtualRowCount",get:function(){return this.state.virtualItemCountBefore}},{key:"bottomVirtualRowCount",get:function(){return this.state.virtualItemCountAfter}}]),t}(_),y=function(e){function t(t){return e.call(this,c({},t,{itemSize:t.cellWidth,viewportSize:t.viewportWidth}))||this}u(t,e);var n=t.prototype;return n.getTotalItemCount=function(){return this.options.getTotalCellCount(this.groupCount,this.isVerticalGrouping)},n.getRenderState=function(){return{leftVirtualCellWidth:this.state.virtualItemSizeBefore,rightVirtualCellWidth:this.state.virtualItemSizeAfter,startCellIndex:this.state.startIndex,cellCount:this.state.itemCount,cellWidth:this.itemSize}},n._updateStateVirtualItems=function(t,n){if(this.isRTL){var i=this.state;i.virtualItemSizeAfter=t,i.virtualItemSizeBefore=n,i.startIndex=this.getTotalItemCount()-this.startIndex-this.state.itemCount}else e.prototype._updateStateVirtualItems.call(this,t,n)},f(t,[{key:"isRTL",get:function(){return this.options.isRTL()}}]),t}(_),x=function(){function e(e){this._workspace=e,this._renderAppointmentTimeout=null}var t=e.prototype;return t.getRenderTimeout=function(){return this._workspace.option("isRenovatedAppointments")?-1:15},t.updateRender=function(){this._renderGrid(),this._renderAppointments()},t._renderGrid=function(){this.workspace.renderWorkSpace(!1)},t._renderAppointments=function(){var e=this,t=this.getRenderTimeout();t>=0?(clearTimeout(this._renderAppointmentTimeout),this._renderAppointmentTimeout=setTimeout((function(){return e.workspace.updateAppointments()}),t)):this.workspace.updateAppointments()},f(e,[{key:"workspace",get:function(){return this._workspace}}]),e}();t.VirtualScrollingRenderer=x},6654:function(e,t,n){t.default=void 0;var i=n(37518),o=n(62060),a=function(){function e(e){this._workSpace=e}var t=e.prototype;return t.prepareCellIndexes=function(e,t,n){return this._workSpace.isGroupedByDate()?{rowIndex:e.rowIndex,columnIndex:e.columnIndex*this._workSpace._getGroupCount()+t}:{rowIndex:e.rowIndex,columnIndex:e.columnIndex+t*this._workSpace._getCellCount()}},t.getGroupIndex=function(e,t){var n=this._workSpace.isGroupedByDate(),i=this._workSpace._getGroupCount();return n?t%i:Math.floor(t/this._workSpace._getCellCount())},t.calculateHeaderCellRepeatCount=function(){return this._workSpace._getGroupCount()||1},t.insertAllDayRowsIntoDateTable=function(){return!1},t.getTotalCellCount=function(e){return e=e||1,this._workSpace._getCellCount()*e},t.getTotalRowCount=function(){return this._workSpace._getRowCount()},t.calculateTimeCellRepeatCount=function(){return 1},t.getWorkSpaceMinWidth=function(){return(0,i.getBoundingRect)(this._workSpace.$element().get(0)).width-this._workSpace.getTimePanelWidth()},t.getAllDayOffset=function(){return this._workSpace.getAllDayHeight()},t.getGroupCountClass=function(e){},t.getLeftOffset=function(){return this._workSpace.getTimePanelWidth()},t._createGroupBoundOffset=function(e,t,n){var i=n/2;return{left:e?e.offset().left-i:0,right:t?t.offset().left+n+i:0,top:0,bottom:0}},t._getGroupedByDateBoundOffset=function(e,t){var n=e.length-1,i=e.eq(0),o=e.eq(n);return this._createGroupBoundOffset(i,o,t)},t.getGroupBoundsOffset=function(e,t,n,i,o){if(this._workSpace.isGroupedByDate())return this._getGroupedByDateBoundOffset(t,n);var a,r,s=this._workSpace.getCellIndexByCoordinates(i),l=i.groupIndex||Math.floor(s/e),u=o.dateTableGroupedMap[l];if(u){var d=u[0].length,c=u[0][0].position,h=u[0][d-1].position;a=t.eq(c.columnIndex),r=t.eq(h.columnIndex)}return this._createGroupBoundOffset(a,r,n)},t.shiftIndicator=function(e,t,n,i){var o=this._getIndicatorOffset(i),a=n?n-o:o;e.css("left",a),e.css("top",t)},t._getIndicatorOffset=function(e){return this._workSpace.isGroupedByDate()?this._calculateGroupByDateOffset(e):this._calculateOffset(e)},t._calculateOffset=function(e){return this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(e-1,0)*e+this._workSpace.getIndicatorOffset(e)+e},t._calculateGroupByDateOffset=function(e){return this._workSpace.getIndicatorOffset(0)*this._workSpace._getGroupCount()+this._workSpace.getRoundedCellWidth(e-1,0)*e},t.getShaderOffset=function(e,t){var n=this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(e-1)*e;return this._workSpace.option("rtlEnabled")?(0,i.getBoundingRect)(this._workSpace._dateTableScrollable.$content().get(0)).width-n-this._workSpace.getTimePanelWidth()-t:n},t.getShaderTopOffset=function(e){return-this.getShaderMaxHeight()*(e>0?1:0)},t.getShaderHeight=function(){return this._workSpace.getIndicationHeight()},t.getShaderMaxHeight=function(){return(0,i.getBoundingRect)(this._workSpace._dateTableScrollable.$content().get(0)).height},t.getShaderWidth=function(e){return this._workSpace.getIndicationWidth(e)},t.getScrollableScrollTop=function(e){return e?0:this._workSpace.getScrollable().scrollTop()},t.addAdditionalGroupCellClasses=function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return e=this._addLastGroupCellClass(e,t,o),this._addFirstGroupCellClass(e,t,o)},t._addLastGroupCellClass=function(e,t,n){if(n)return"".concat(e," ").concat(o.LAST_GROUP_CELL_CLASS);if(this._workSpace.isGroupedByDate()){if(t%this._workSpace._getGroupCount()==0)return"".concat(e," ").concat(o.LAST_GROUP_CELL_CLASS)}else if(t%this._workSpace._getCellCount()==0)return"".concat(e," ").concat(o.LAST_GROUP_CELL_CLASS);return e},t._addFirstGroupCellClass=function(e,t,n){if(n)return"".concat(e," ").concat(o.FIRST_GROUP_CELL_CLASS);if(this._workSpace.isGroupedByDate()){if((t-1)%this._workSpace._getGroupCount()==0)return"".concat(e," ").concat(o.FIRST_GROUP_CELL_CLASS)}else if((t-1)%this._workSpace._getCellCount()==0)return"".concat(e," ").concat(o.FIRST_GROUP_CELL_CLASS);return e},e}();t.default=a,e.exports=t.default,e.exports.default=t.default},96311:function(e,t,n){t.default=void 0;var i=n(37518),o=n(56012),a=n(62060),r=n(45985),s=function(){function e(e){this._workSpace=e,this.cache=new o.Cache}var t=e.prototype;return t.prepareCellIndexes=function(e,t,n){var i=e.rowIndex+t*this._workSpace._getRowCount();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(i+=t,n||(i+=1)),{rowIndex:i,columnIndex:e.columnIndex}},t.getGroupIndex=function(e){return Math.floor(e/this._workSpace._getRowCount())},t.calculateHeaderCellRepeatCount=function(){return 1},t.insertAllDayRowsIntoDateTable=function(){return this._workSpace.option("showAllDayPanel")},t.getTotalCellCount=function(){return this._workSpace._getCellCount()},t.getTotalRowCount=function(){return this._workSpace._getRowCount()*this._workSpace._getGroupCount()},t.calculateTimeCellRepeatCount=function(){return this._workSpace._getGroupCount()||1},t.getWorkSpaceMinWidth=function(){var e=this._workSpace._getWorkSpaceWidth(),t=(0,i.getBoundingRect)(this._workSpace.$element().get(0)).width-this._workSpace.getTimePanelWidth()-this._workSpace.getGroupTableWidth()-2;return e<t&&(e=t),e},t.getAllDayOffset=function(){return 0},t.getGroupCountClass=function(e){return(0,r.getVerticalGroupCountClass)(e)},t.getLeftOffset=function(){return this._workSpace.getTimePanelWidth()+this._workSpace.getGroupTableWidth()},t.getGroupBoundsOffset=function(e,t,n,o){var a=this,s=o.groupIndex;return this.cache.get("groupBoundsOffset".concat(s),(function(){var o=t.eq(0).offset().left,l=t.eq(e-1).offset().left+n,u=a._workSpace.option("startDayHour"),d=a._workSpace.option("endDayHour"),c=a._workSpace.option("hoursInterval"),h=(0,r.calculateDayDuration)(u,d)/c*a._workSpace.getCellHeight(),f=a.getScrollableScrollTop(),p=s*h+(0,i.getBoundingRect)(a._workSpace._$thead.get(0)).height+a._workSpace.option("getHeaderHeight")()+10-f;a._workSpace.option("showAllDayPanel")&&a._workSpace.supportAllDayRow()&&(p+=a._workSpace.getCellHeight()*(s+1));var g=p+h;return a._groupBoundsOffset={left:o,right:l,top:p,bottom:g}}))},t.shiftIndicator=function(e,t,n,i){var o=this._workSpace.getIndicatorOffset(0),a=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth(),r=n?n-o:o,s=this._workSpace._getRowCount()*this._workSpace.getCellHeight()*i;this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(s+=this._workSpace.getAllDayHeight()*(i+1)),e.css("left",r+a),e.css("top",t+s)},t.getShaderOffset=function(e,t){var n=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth();return this._workSpace.option("rtlEnabled")?(0,i.getBoundingRect)(this._$container.get(0)).width-n-this._workSpace.getWorkSpaceLeftOffset()-t:n},t.getShaderTopOffset=function(e){return 0},t.getShaderHeight=function(){var e=this._workSpace.getIndicationHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(e+=this._workSpace.getCellHeight()),e},t.getShaderMaxHeight=function(){var e=this._workSpace._getRowCount()*this._workSpace.getCellHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(e+=this._workSpace.getCellHeight()),e},t.getShaderWidth=function(){return this._workSpace.getIndicationWidth(0)},t.getScrollableScrollTop=function(){return this._workSpace.getScrollable().scrollTop()},t.addAdditionalGroupCellClasses=function(e,t,n,i){return e=this._addLastGroupCellClass(e,n+1),this._addFirstGroupCellClass(e,n+1)},t._addLastGroupCellClass=function(e,t){return t%this._workSpace._getRowCount()==0?"".concat(e," ").concat(a.LAST_GROUP_CELL_CLASS):e},t._addFirstGroupCellClass=function(e,t){return(t-1)%this._workSpace._getRowCount()==0?"".concat(e," ").concat(a.FIRST_GROUP_CELL_CLASS):e},e}();t.default=s,e.exports=t.default,e.exports.default=t.default},22955:function(e,t,n){t.default=void 0;var i=n(58664),o=p(n(68374)),a=p(n(44845)),r=p(n(99393)),s=p(n(91198)),l=n(13306),u=n(37518),d=n(58201),c=n(62060),h=n(45985),f=p(n(32511));function p(e){return e&&e.__esModule?e:{default:e}}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=s.default.dateToMilliseconds,y="dx-scheduler-time-panel-current-time-cell",x=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,_(t,n);var r=a.prototype;return r._getToday=function(){return(0,h.getToday)(this.option("indicatorTime"),this.timeZoneCalculator)},r.isIndicationOnView=function(){if(this.option("showCurrentTimeIndicator")){var e=this._getToday(),t=s.default.trimTime(this.getEndViewDate());return s.default.dateInRange(e,this.getStartViewDate(),new Date(t.getTime()+v("day")))}return!1},r.isIndicationAvailable=function(){return!!(0,d.hasWindow)()&&this._getToday()>=s.default.trimTime(new Date(this.getStartViewDate()))},r.isIndicatorVisible=function(){var e=this._getToday(),t=new Date(this.getEndViewDate().getTime()+v("minute")-1),n=new Date(this.getStartViewDate());return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),s.default.dateInRange(e,n,t)},r._renderDateTimeIndication=function(){if(this.isIndicationAvailable()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(),this.isIndicationOnView()&&this.isIndicatorVisible())){var e=this._getGroupCount()||1,t=this._dateTableScrollable.$content(),n=this.getIndicationHeight(),i=this._getRtlOffset(this.getCellWidth());this._renderIndicator(n,i,t,e),this._setCurrentTimeCells()}},r._renderIndicator=function(e,t,n,o){for(var a=this.isGroupedByDate(),r=a?1:o,s=0;s<r;s++){var l=this._createIndicator(n);(0,i.setWidth)(l,a?this.getCellWidth()*o:this.getCellWidth()),this._groupedStrategy.shiftIndicator(l,e,t,s)}},r._createIndicator=function(e){var t=(0,o.default)("<div>").addClass("dx-scheduler-date-time-indicator");return e.append(t),t},r._getRtlOffset=function(e){return this.option("rtlEnabled")?(0,u.getBoundingRect)(this._dateTableScrollable.$content().get(0)).width-this.getTimePanelWidth()-e:0},r._setIndicationUpdateInterval=function(){this.option("showCurrentTimeIndicator")&&0!==this.option("indicatorUpdateInterval")&&(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))},r._clearIndicatorUpdateInterval=function(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)},r._isVerticalShader=function(){return!0},r.getIndicationWidth=function(e){var t=this.getCellWidth()*this._getCellCount(),n=this._getIndicatorDuration();n>this._getCellCount()&&(n=this._getCellCount());var i=n*this.getRoundedCellWidth(e,e*this._getCellCount(),n);return t<i?t:i},r.getIndicatorOffset=function(e){var t=this._getIndicatorDuration()-1;return t*this.getRoundedCellWidth(e,e*this._getCellCount(),t)},r._getIndicatorDuration=function(){var e=this._getToday(),t=new Date(this.getStartViewDate()),n=e.getTime()-t.getTime();return"workWeek"===this.option("type")&&(n-=this._getWeekendsCount(Math.round(n/v("day")))*v("day")),Math.ceil((n+1)/v("day"))},r.getIndicationHeight=function(){var e=f.default.getDateWithoutTimezoneChange(this._getToday()),t=this.getCellHeight(),n=new Date(this.getStartViewDate());return this.isIndicationOnView()&&n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),(e.getTime()-n.getTime())/this.getCellDuration()*t},r._dispose=function(){this._clearIndicatorUpdateInterval(),e.prototype._dispose.apply(this,arguments)},r._refreshDateTimeIndication=function(){var e;this._cleanDateTimeIndicator(),this._cleanCurrentTimeCells(),null===(e=this._shader)||void 0===e||e.clean(),this._renderDateTimeIndication()},r._setCurrentTimeCells=function(){var e=this._getTimePanelCells();this._getCurrentTimePanelCellIndices().forEach((function(t){e.eq(t).addClass(y)}))},r._isCurrentTimeHeaderCell=function(e){if(this.isIndicationOnView()){var t=this.viewDataProvider.completeDateHeaderMap,n=t[t.length-1][e].startDate;return s.default.sameDate(n,this._getToday())}return!1},r._getHeaderPanelCellClass=function(t){var n=e.prototype._getHeaderPanelCellClass.call(this,t);return this._isCurrentTimeHeaderCell(t)?n+" "+c.HEADER_CURRENT_TIME_CELL_CLASS:n},r._cleanView=function(){e.prototype._cleanView.call(this),this._cleanDateTimeIndicator()},r._dimensionChanged=function(){e.prototype._dimensionChanged.call(this),this._refreshDateTimeIndication()},r._cleanDateTimeIndicator=function(){this.$element().find(".dx-scheduler-date-time-indicator").remove()},r._cleanCurrentTimeCells=function(){this.$element().find(".".concat(y)).removeClass(y)},r._cleanWorkSpace=function(){e.prototype._cleanWorkSpace.call(this),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},r._optionChanged=function(t){switch(t.name){case"showCurrentTimeIndicator":case"indicatorTime":this._cleanWorkSpace();break;case"indicatorUpdateInterval":this._setIndicationUpdateInterval();break;case"showAllDayPanel":case"allDayExpanded":case"crossScrollingEnabled":e.prototype._optionChanged.call(this,t),this._refreshDateTimeIndication();break;case"shadeUntilCurrentTime":this._refreshDateTimeIndication();break;default:e.prototype._optionChanged.call(this,t)}},r._getDefaultOptions=function(){return(0,l.extend)(e.prototype._getDefaultOptions.call(this),{showCurrentTimeIndicator:!0,indicatorTime:new Date,indicatorUpdateInterval:5*v("minute"),shadeUntilCurrentTime:!0})},r._getCurrentTimePanelCellIndices=function(){var e,t=this._getTimePanelRowCount(),n=this._getToday(),i=this.getCellIndexByDate(n),o=this._getCellCoordinatesByIndex(i).rowIndex;if(void 0===o)return[];e=0===o?[o]:o%2==0?[o-1,o]:[o,o+1];var a=this._isVerticalGroupedWorkSpace()?this._getGroupCount():1;return g(new Array(a)).reduce((function(n,i,o){return[].concat(g(n),g(e.map((function(e){return t*o+e}))))}),[])},a}(a.default);(0,r.default)("dxSchedulerWorkSpace",x);var b=x;t.default=b,e.exports=t.default,e.exports.default=t.default},44845:function(e,t,n){t.default=void 0;var i=n(58664),o=U(n(68374)),a=U(n(73349)),r=U(n(55994)),s=U(n(91198)),l=n(58201),u=n(6415),d=n(13306),c=n(37518),h=U(n(28109)),f=n(20576),p=n(35922),g=n(39611),m=U(n(93786)),_=U(n(96688)),v=n(95429),y=n(49166),x=n(23174),b=U(n(41183)),w=U(n(6654)),C=U(n(96311)),S=U(n(37428)),k=U(n(58037)),D=U(n(56504)),I=n(27728),T=n(62060),E=U(n(99068)),A=n(31648),O=n(12675),P=U(n(60611)),M=U(n(40181)),R=U(n(36023)),B=U(n(2931)),V=U(n(89687)),F=U(n(11141)),L=U(n(32972)),H=U(n(10800)),N=n(56012),z=n(96893),W=n(45985),G=n(98140),j=n(47367),q=n(69576),$=n(9259),K=n(47617);function U(e){return e&&e.__esModule?e:{default:e}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Z(){return(Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function X(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var J=S.default.tableCreator,ee=E.default.abstract,te=s.default.dateToMilliseconds,ne="dx-scheduler-work-space-vertical-group-table",ie="dx-scheduler-time-panel-cell",oe="dx-scheduler-all-day-panel",ae="dx-scheduler-all-day-table",re="dx-scheduler-all-day-title",se="dx-scheduler-all-day-table-cell",le="dx-scheduler-work-space-mouse-selection",ue="dx-scheduler-date-table-cell",de="dx-scheduler-date-table-droppable-cell",ce=(0,g.addNamespace)(m.default.down,"dxSchedulerWorkSpace"),he={ENTER:(0,g.addNamespace)(x.enter,"dxSchedulerDateTable"),DROP:(0,g.addNamespace)(x.drop,"dxSchedulerDateTable"),LEAVE:(0,g.addNamespace)(x.leave,"dxSchedulerDateTable")},fe=(0,g.addNamespace)(v.name,"dxSchedulerDateTable"),pe=(0,g.addNamespace)(m.default.down,"dxSchedulerDateTable"),ge=(0,g.addNamespace)(m.default.up,"dxSchedulerDateTable"),me=(0,g.addNamespace)(m.default.move,"dxSchedulerDateTable"),_e="dxCellData",ve=te("day"),ye=te("hour"),xe=".".concat(T.DATE_TABLE_CLASS," td, .").concat(ae," td"),be=".".concat(ue,", .").concat(se),we=function(e){var t,n;function m(){return e.apply(this,arguments)||this}n=e,(t=m).prototype=Object.create(n.prototype),t.prototype.constructor=t,Q(t,n);var v,x,S=m.prototype;return S._supportedKeys=function(){var t=this,n=function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=this.cellsSelectionState.getSelectedCells();if(null!=n&&n.length){var i=n.map((function(e){return t._getCellByData(e)})).filter((function(e){return!!e}));e.target=i,this._showPopup=!0,this._cellClickAction({event:e,cellElement:(0,o.default)(i),cellData:n[0]})}},i=function(e,n){var i;e.preventDefault(),e.stopPropagation();var o=null===(i=t.cellsSelectionState.focusedCell)||void 0===i?void 0:i.cellData;if(o){var a=o.allDay&&!t._isVerticalGroupedWorkSpace(),r=e.shiftKey,s=t.option("allowMultipleCellSelection"),l=t._isRTL(),u=t._getGroupCount(),d=t.isGroupedByDate(),c=t._isHorizontalGroupedWorkSpace(),h=t.viewDataProvider.findCellPositionInMap(Z({},o,{isAllDay:o.allDay})),f=c&&r&&!d?t.viewDataProvider.getGroupEdgeIndices(o.groupIndex,a):t.viewDataProvider.getViewEdgeIndices(a),p=t.cellsSelectionController.handleArrowClick({focusedCellPosition:h,edgeIndices:f,isRTL:l,isGroupedByDate:d,groupCount:u,isMultiSelection:r,isMultiSelectionAllowed:s,viewType:t.type,key:n,getCellDataByPosition:t.viewDataProvider.getCellData.bind(t.viewDataProvider),isAllDayPanelCell:a,focusedCellData:o});t._processNextSelectedCell(p,o,r&&s)}};return(0,d.extend)(e.prototype._supportedKeys.call(this),{enter:n,space:n,downArrow:function(e){i(e,"down")},upArrow:function(e){i(e,"up")},rightArrow:function(e){i(e,"right")},leftArrow:function(e){i(e,"left")}})},S._isRTL=function(){return this.option("rtlEnabled")},S._moveToCell=function(e,t){if((0,p.isDefined)(e)&&e.length){var n=this.option("allowMultipleCellSelection"),i=this._getFullCellData(e),o=this.cellsSelectionState.focusedCell.cellData,a=this.cellsSelectionController.moveToCell({isMultiSelection:t,isMultiSelectionAllowed:n,currentCellData:i,focusedCellData:o,isVirtualCell:e.hasClass(T.VIRTUAL_CELL_CLASS)});this._processNextSelectedCell(a,o,n&&t)}},S._processNextSelectedCell=function(e,t,n){var i=this.viewDataProvider.findCellPositionInMap({startDate:e.startDate,groupIndex:e.groupIndex,isAllDay:e.allDay,index:e.index});if(!this.viewDataProvider.isSameCell(t,e)){var o=e.allDay&&!this._isVerticalGroupedWorkSpace()?this._dom_getAllDayPanelCell(i.columnIndex):this._dom_getDateCell(i),a=e.allDay;this._setSelectedCellsStateAndUpdateSelection(a,i,n,o),this._dateTableScrollable.scrollToElement(o)}},S._setSelectedCellsStateAndUpdateSelection=function(e,t,n,i){var o={rowIndex:t.rowIndex,columnIndex:t.columnIndex,allDay:e};this.cellsSelectionState.setFocusedCell(o.rowIndex,o.columnIndex,e),n?this.cellsSelectionState.setSelectedCells(o):this.cellsSelectionState.setSelectedCells(o,o),this.updateCellsSelection(),this._updateSelectedCellDataOption(this.cellsSelectionState.getSelectedCells(),i)},S._hasAllDayClass=function(e){return e.hasClass(se)},S._focusInHandler=function(t){if((0,o.default)(t.target).is(this._focusTarget())&&!1!==this._isCellClick){if(delete this._isCellClick,delete this._contextMenuHandled,e.prototype._focusInHandler.apply(this,arguments),this.cellsSelectionState.restoreSelectedAndFocusedCells(),!this.cellsSelectionState.focusedCell){var n={columnIndex:0,rowIndex:0,allDay:this._isVerticalGroupedWorkSpace()&&this.isAllDayPanelVisible};this.cellsSelectionState.setFocusedCell(n.rowIndex,n.columnIndex,n.allDay),this.cellsSelectionState.setSelectedCells(n,n)}this.updateCellsSelection(),this._updateSelectedCellDataOption(this.cellsSelectionState.getSelectedCells())}},S._focusOutHandler=function(){e.prototype._focusOutHandler.apply(this,arguments),this._contextMenuHandled||this._disposed||(this.cellsSelectionState.releaseSelectedAndFocusedCells(),this.viewDataProvider.updateViewData(this.generateRenderOptions()),this.updateCellsSelection())},S._focusTarget=function(){return this.$element()},S._isVerticalGroupedWorkSpace=function(){return!!this.option("groups").length&&"vertical"===this.option("groupOrientation")},S._isHorizontalGroupedWorkSpace=function(){return!!this.option("groups").length&&"horizontal"===this.option("groupOrientation")},S._isWorkSpaceWithCount=function(){return this.option("intervalCount")>1},S._isWorkspaceWithOddCells=function(){return.5===this.option("hoursInterval")&&!this.isVirtualScrolling()},S._getRealGroupOrientation=function(){return this._isVerticalGroupedWorkSpace()?"vertical":"horizontal"},S.createRAllDayPanelElements=function(){this._$allDayPanel=(0,o.default)("<div>"),this._$allDayTitle=(0,o.default)("<div>").appendTo(this._$headerPanelEmptyCell)},S._dateTableScrollableConfig=function(){var e=this,t={useKeyboard:!1,bounceEnabled:!1,updateManually:!0,onScroll:function(){var t;null===(t=e._groupedStrategy.cache)||void 0===t||t.clear()}};if(this._needCreateCrossScrolling()&&(t=(0,d.extend)(t,this._createCrossScrollingConfig(t))),this.isVirtualScrolling()&&(this.virtualScrollingDispatcher.horizontalScrollingAllowed||this.virtualScrollingDispatcher.height)){var n=t.onScroll;t=Z({},t,{onScroll:function(t){null==n||n(t),e.virtualScrollingDispatcher.handleOnScrollEvent(null==t?void 0:t.scrollOffset)}})}return t},S._createCrossScrollingConfig=function(e){var t=this,n={direction:"both"},i=e.onScroll;return n.onScroll=function(e){i(),t._dataTableSemaphore.take(),t._sideBarSemaphore.isFree()&&t._sidebarScrollable&&t._sidebarScrollable.scrollTo({top:e.scrollOffset.top}),t._headerSemaphore.isFree()&&t._headerScrollable&&t._headerScrollable.scrollTo({left:e.scrollOffset.left}),t._dataTableSemaphore.release()},n.onEnd=function(){t.option("onScrollEnd")()},n},S._headerScrollableConfig=function(){var e=this;return{useKeyboard:!1,showScrollbar:"never",direction:"horizontal",useNative:!1,updateManually:!0,bounceEnabled:!1,onScroll:function(t){e._headerSemaphore.take(),e._dataTableSemaphore.isFree()&&e._dateTableScrollable.scrollTo({left:t.scrollOffset.left}),e._headerSemaphore.release()}}},S._visibilityChanged=function(e){this.cache.clear(),e&&this._updateGroupTableHeight(),e&&this._needCreateCrossScrolling()&&this._setTableSizes()},S._setTableSizes=function(){this.cache.clear(),this._attachTableClasses();var e=this.getCellWidth();e<this.getCellMinWidth()&&(e=this.getCellMinWidth());var t=this.getWorkSpaceMinWidth(),n=this._getGroupCount(),o=e*this._getTotalCellCount(n);o<t&&(o=t),(0,i.setWidth)(this._$headerPanel,o),(0,i.setWidth)(this._$dateTable,o),this._$allDayTable&&(0,i.setWidth)(this._$allDayTable,o),this._attachHeaderTableClasses(),this._updateGroupTableHeight(),this._updateScrollable()},S.getWorkSpaceMinWidth=function(){return this._groupedStrategy.getWorkSpaceMinWidth()},S._dimensionChanged=function(){this.option("crossScrollingEnabled")&&this._setTableSizes(),this.updateHeaderEmptyCellWidth(),this._updateScrollable(),this.cache.clear()},S._needCreateCrossScrolling=function(){return this.option("crossScrollingEnabled")},S._getElementClass=function(){return(0,f.noop)()},S._getRowCount=function(){return this.viewDataProvider.getRowCount({intervalCount:this.option("intervalCount"),currentDate:this.option("currentDate"),viewType:this.type,hoursInterval:this.option("hoursInterval"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour")})},S._getCellCount=function(){return this.viewDataProvider.getCellCount({intervalCount:this.option("intervalCount"),currentDate:this.option("currentDate"),viewType:this.type,hoursInterval:this.option("hoursInterval"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour")})},S.isRenovatedRender=function(){return this.renovatedRenderSupported()&&this.option("renovateRender")},S._isVirtualModeOn=function(){return"virtual"===this.option("scrolling.mode")},S.isVirtualScrolling=function(){return this.isRenovatedRender()&&this._isVirtualModeOn()},S._initVirtualScrolling=function(){this.virtualScrollingDispatcher&&(this.virtualScrollingDispatcher.dispose(),this.virtualScrollingDispatcher=null),this.virtualScrollingDispatcher=new O.VirtualScrollingDispatcher(this._getVirtualScrollingDispatcherOptions()),this.virtualScrollingDispatcher.attachScrollableEvents(),this.renderer=new O.VirtualScrollingRenderer(this)},S.onDataSourceChanged=function(){},S.isGroupedAllDayPanel=function(){return(0,W.calculateIsGroupedAllDayPanel)(this.option("groups"),this.option("groupOrientation"),this.isAllDayPanelVisible)},S.generateRenderOptions=function(e){var t,n=this._getGroupCount()>0?this.option("groupOrientation"):this._getDefaultGroupStrategy();return Z({groupByDate:this.option("groupByDate"),startRowIndex:0,startCellIndex:0,groupOrientation:n,today:null===(t=this._getToday)||void 0===t?void 0:t.call(this),groups:this.option("groups"),isProvideVirtualCellsWidth:e,isAllDayPanelVisible:this.isAllDayPanelVisible,selectedCells:this.cellsSelectionState.getSelectedCells(),focusedCell:this.cellsSelectionState.focusedCell,headerCellTextFormat:this._getFormat(),getDateForHeaderText:function(e,t){return t},startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),cellDuration:this.getCellDuration(),viewType:this.type,intervalCount:this.option("intervalCount"),hoursInterval:this.option("hoursInterval"),currentDate:this.option("currentDate"),startDate:this.option("startDate"),firstDayOfWeek:this.option("firstDayOfWeek")},this.virtualScrollingDispatcher.getRenderState())},S.renovatedRenderSupported=function(){return!0},S._updateGroupTableHeight=function(){this._isVerticalGroupedWorkSpace()&&(0,l.hasWindow)()&&this._setHorizontalGroupHeaderCellsHeight()},S.updateHeaderEmptyCellWidth=function(){if((0,l.hasWindow)()&&this._isRenderHeaderPanelEmptyCell()){var e=this.getTimePanelWidth(),t=this.getGroupTableWidth();this._$headerPanelEmptyCell.css("width",e+t)}},S._isGroupsSpecified=function(e){return this.option("groups").length&&e},S._getGroupIndexByResourceId=function(e){var t=this.option("groups"),n=(0,G.createResourcesTree)(t);return n.length?this._getGroupIndexRecursively(n,e):0},S._getGroupIndexRecursively=function(e,t){var n=this,i=e[0].name,o=t[i];return e.reduce((function(e,i){var a=i.leafIndex,r=i.value,s=i.children,l=o===r;return l&&void 0!==a?a:l?n._getGroupIndexRecursively(s,t):e}),0)},S._getViewStartByOptions=function(){return(0,W.getViewStartByOptions)(this.option("startDate"),this.option("currentDate"),this._getIntervalDuration(),this.option("startDate")?this._calculateViewStartDate():void 0)},S._getIntervalDuration=function(){return this.viewDataProvider.getIntervalDuration(this.option("intervalCount"))},S._getHeaderDate=function(){return this.getStartViewDate()},S._calculateViewStartDate=function(){return(0,W.calculateViewStartDate)(this.option("startDate"))},S._firstDayOfWeek=function(){return this.viewDataProvider.getFirstDayOfWeek(this.option("firstDayOfWeek"))},S._attachEvents=function(){this._createSelectionChangedAction(),this._attachClickEvent(),this._attachContextMenuEvent()},S._attachClickEvent=function(){var e=this,t=this._createAction((function(t){e._pointerDownHandler(t.event)}));this._createCellClickAction();var n=this.$element();r.default.off(n,ce),r.default.off(n,fe),r.default.on(n,ce,(function(e){(0,g.isMouseEvent)(e)&&e.which>1?e.preventDefault():t({event:e})})),r.default.on(n,fe,".dx-scheduler-date-table-cell,.dx-scheduler-all-day-table-cell",(function(t){var n=(0,o.default)(t.target);e._cellClickAction({event:t,cellElement:(0,u.getPublicElement)(n),cellData:e.getCellData(n)})}))},S._createCellClickAction=function(){var e=this;this._cellClickAction=this._createActionByOption("onCellClick",{afterExecute:function(t){return e._cellClickHandler(t.args[0].event)}})},S._createSelectionChangedAction=function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},S._cellClickHandler=function(){this._showPopup&&(delete this._showPopup,this._handleSelectedCellsClick())},S._pointerDownHandler=function(e){var t=(0,o.default)(e.target);if(t.hasClass(ue)||t.hasClass(se))if(this._isCellClick=!0,t.hasClass("dx-scheduler-focused-cell"))this._showPopup=!0;else{var n=this._getCoordinatesByCell(t),i=this._hasAllDayClass(t);this._setSelectedCellsStateAndUpdateSelection(i,n,!1,t)}else this._isCellClick=!1},S._handleSelectedCellsClick=function(){var e=this.cellsSelectionState.getSelectedCells(),t=e[0],n=e[e.length-1],i={startDate:t.startDate,endDate:n.endDate};void 0!==n.allDay&&(i.allDay=n.allDay),this.option("onSelectedCellsClick")(i,n.groups)},S._attachContextMenuEvent=function(){this._createContextMenuAction();var e="."+ue+",."+se,t=this.$element(),n=(0,g.addNamespace)(y.name,this.NAME);r.default.off(t,n,e),r.default.on(t,n,e,this._contextMenuHandler.bind(this))},S._contextMenuHandler=function(e){var t=(0,o.default)(e.target);this._contextMenuAction({event:e,cellElement:(0,u.getPublicElement)(t),cellData:this.getCellData(t)}),this._contextMenuHandled=!0},S._createContextMenuAction=function(){this._contextMenuAction=this._createActionByOption("onCellContextMenu")},S._getGroupHeaderContainer=function(){return this._isVerticalGroupedWorkSpace()?this._$groupTable:this._$thead},S._getDateHeaderContainer=function(){return this._$thead},S._getCalculateHeaderCellRepeatCount=function(){return this._groupedStrategy.calculateHeaderCellRepeatCount()},S._updateScrollable=function(){this._dateTableScrollable.update(),this._headerScrollable&&this._headerScrollable.update(),this._sidebarScrollable&&this._sidebarScrollable.update()},S._getTimePanelRowCount=function(){return this._getCellCountInDay()},S._getCellCountInDay=function(){var e=this.option("hoursInterval"),t=this.option("startDayHour"),n=this.option("endDayHour");return this.viewDataProvider.getCellCountInDay(t,n,e)},S._getTotalCellCount=function(e){return this._groupedStrategy.getTotalCellCount(e)},S._getTotalRowCount=function(e,t){var n=this._groupedStrategy.getTotalRowCount(e);return t&&this.isAllDayPanelVisible&&(n+=e),n},S._getGroupIndex=function(e,t){return this._groupedStrategy.getGroupIndex(e,t)},S.calculateEndDate=function(e){var t=this.viewDataProvider.viewDataGenerator;return t.calculateEndDate(e,t.getInterval(this.option("hoursInterval")),this.option("endDayHour"))},S._getGroupCount=function(){return(0,G.getGroupCount)(this.option("groups"))},S._attachTablesEvents=function(){var e=this.$element();this._attachDragEvents(e),this._attachPointerEvents(e)},S._detachDragEvents=function(e){r.default.off(e,he.ENTER),r.default.off(e,he.LEAVE),r.default.off(e,he.DROP)},S._attachDragEvents=function(e){var t=this;this._detachDragEvents(e),r.default.on(e,he.ENTER,xe,{checkDropTarget:function(e,n){return!t._isOutsideScrollable(e,n)}},(function(e){t.removeDroppableCellClass(),(0,o.default)(e.target).addClass(de)})),r.default.on(e,he.LEAVE,(function(){return t.removeDroppableCellClass()})),r.default.on(e,he.DROP,xe,(function(){return t.removeDroppableCellClass()}))},S._attachPointerEvents=function(e){var t=this,n=!1;r.default.off(e,me),r.default.off(e,pe),r.default.on(e,pe,xe,(function(e){(0,g.isMouseEvent)(e)&&1===e.which&&(n=!0,t.$element().addClass(le),r.default.off(a.default.getDocument(),ge),r.default.on(a.default.getDocument(),ge,(function(){n=!1,t.$element().removeClass(le)})))})),r.default.on(e,me,xe,(function(e){n&&t._dateTableScrollable&&!t._dateTableScrollable.option("scrollByContent")&&(e.preventDefault(),e.stopPropagation(),t._moveToCell((0,o.default)(e.target),!0))}))},S._getFormat=function(){return ee()},S.getWorkArea=function(){return this._$dateTableContainer},S.getScrollable=function(){return this._dateTableScrollable},S.getScrollableScrollTop=function(){return this._dateTableScrollable.scrollTop()},S.getGroupedScrollableScrollTop=function(e){return this._groupedStrategy.getScrollableScrollTop(e)},S.getScrollableScrollLeft=function(){return this._dateTableScrollable.scrollLeft()},S.getScrollableOuterWidth=function(){return this._dateTableScrollable.scrollWidth()},S.getScrollableContainer=function(){return(0,o.default)(this._dateTableScrollable.container())},S.getHeaderPanelHeight=function(){return this._$headerPanel&&(0,i.getOuterHeight)(this._$headerPanel,!0)},S.getTimePanelWidth=function(){return this._$timePanel&&(0,c.getBoundingRect)(this._$timePanel.get(0)).width},S.getGroupTableWidth=function(){return this._$groupTable?(0,i.getOuterWidth)(this._$groupTable):0},S.getWorkSpaceLeftOffset=function(){return this._groupedStrategy.getLeftOffset()},S._getCellCoordinatesByIndex=function(e){var t=Math.floor(e/this._getRowCount());return{columnIndex:t,rowIndex:e-this._getRowCount()*t}},S._getDateGenerationOptions=function(){var e;return{startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),isWorkView:this.viewDataProvider.viewDataGenerator.isWorkView,interval:null===(e=this.viewDataProvider.viewDataGenerator)||void 0===e?void 0:e.getInterval(this.option("hoursInterval")),startViewDate:this.getStartViewDate(),firstDayOfWeek:this._firstDayOfWeek()}},S._getIntervalBetween=function(e,t){var n=this.getStartViewDate(),i=this.option("startDayHour")*ye,o=s.default.getTimezonesDifference(n,e),a=e.getTime()-n.getTime()-o,r=this._getDaysOfInterval(a,i),l=this._getWeekendsCount(r),u=(r-l)*ve;return t||(u=a-r*this.viewDataProvider.hiddenInterval-l*this.getVisibleDayDuration()),u},S._getWeekendsCount=function(){return 0},S._getDaysOfInterval=function(e,t){return Math.floor((e+t)/ve)},S._updateIndex=function(e){return e*this._getRowCount()},S._getDroppableCell=function(){return this._getDateTables().find("."+de)},S._getWorkSpaceWidth=function(){var e=this;return this.cache.get("workspaceWidth",(function(){return e._needCreateCrossScrolling()?(0,c.getBoundingRect)(e._$dateTable.get(0)).width:(0,c.getBoundingRect)(e.$element().get(0)).width-e.getTimePanelWidth()-e.getGroupTableWidth()}))},S._getCellByCoordinates=function(e,t,n){var i=this._groupedStrategy.prepareCellIndexes(e,t,n);return this._dom_getDateCell(i)},S._dom_getDateCell=function(e){return this._$dateTable.find("tr:not(.".concat("dx-scheduler-virtual-row",")")).eq(e.rowIndex).find("td:not(.".concat(T.VIRTUAL_CELL_CLASS,")")).eq(e.columnIndex)},S._dom_getAllDayPanelCell=function(e){return this._$allDayPanel.find("tr").eq(0).find("td").eq(e)},S._getCells=function(e,t){var n=e?se:ue;if("vertical"===t){for(var i=[],a=1;;a++){var r=this.$element().find("tr .".concat(n,":nth-child(").concat(a,")"));if(!r.length)break;i=i.concat(r.toArray())}return(0,o.default)(i)}return this.$element().find("."+n)},S._getAllCells=function(e){if(this._isVerticalGroupedWorkSpace())return this._$dateTable.find("td:not(.".concat(T.VIRTUAL_CELL_CLASS,")"));var t=e&&this.supportAllDayRow()?se:ue;return this.$element().find(".".concat(t))},S._setHorizontalGroupHeaderCellsHeight=function(){var e=(0,c.getBoundingRect)(this._$dateTable.get(0)).height;(0,i.setOuterHeight)(this._$groupTable,e)},S._getGroupHeaderCells=function(){return this.$element().find(".dx-scheduler-group-header")},S._getScrollCoordinates=function(e,t,n,i,o){var a=n||new Date(this.option("currentDate")),r=this.option("startDayHour"),s=this.option("endDayHour");e<r&&(e=r),e>=s&&(e=s-1),a.setHours(e,t,0,0);var l=this.viewDataProvider.findGlobalCellPosition(a,i,o),u=l.position,d=l.cellData;return this.virtualScrollingDispatcher.calculateCoordinatesByDataAndPosition(d,u,a,(0,W.isDateAndTimeView)(this.type),"vertical"===this.viewDirection)},S._isOutsideScrollable=function(e,t){var n=this._dateTableScrollable.$element(),i=(0,c.getBoundingRect)(n.get(0)),a=(0,l.getWindow)(),r=!(0,o.default)(e).closest(n).length,s=t.pageX<i.left||t.pageX>i.left+i.width+(a.scrollX||0),u=t.pageY<i.top||t.pageY>i.top+i.height+(a.scrollY||0);return!(r&&!s)&&(u||s)},S.setCellDataCache=function(e,t,n){var i=JSON.stringify({rowIndex:e.rowIndex,columnIndex:e.columnIndex,groupIndex:t});this.cache.set(i,this.getCellData(n))},S.setCellDataCacheAlias=function(e,t){var n=JSON.stringify({rowIndex:e.rowIndex,columnIndex:e.columnIndex,groupIndex:e.groupIndex}),i=JSON.stringify({top:t.top,left:t.left});this.cache.set(i,this.cache.get(n))},S.supportAllDayRow=function(){return!0},S.keepOriginalHours=function(){return!1},S._filterCellDataFields=function(e){return(0,d.extend)(!0,{},{startDate:e.startDate,endDate:e.endDate,groups:e.groups,groupIndex:e.groupIndex,allDay:e.allDay})},S.getCellData=function(e){var t=this._getFullCellData(e)||{};return this._filterCellDataFields(t)},S._getFullCellData=function(e){if(e[0])return this._getDataByCell(e)},S._getVirtualRowOffset=function(){return this.virtualScrollingDispatcher.virtualRowOffset},S._getVirtualCellOffset=function(){return this.virtualScrollingDispatcher.virtualCellOffset},S._getDataByCell=function(e){var t=e.parent().index()-this.virtualScrollingDispatcher.topVirtualRowsCount,n=e.index()-this.virtualScrollingDispatcher.leftVirtualCellsCount,i=this.viewDataProvider,o=this._hasAllDayClass(e);return i.getCellData(t,n,o)||void 0},S.isGroupedByDate=function(){return this.option("groupByDate")&&this._isHorizontalGroupedWorkSpace()&&this._getGroupCount()>0},S.getCellIndexByDate=function(e,t){var n=this.viewDataProvider.viewDataGenerator,i=t?864e5:n.getInterval(this.option("hoursInterval")),o=(0,W.getStartViewDateTimeOffset)(this.getStartViewDate(),this.option("startDayHour")),a=this._getIntervalBetween(e,t)+o,r=Math.floor(a/i);return t&&(r=this._updateIndex(r)),r<0&&(r=0),r},S.getDroppableCellIndex=function(){var e=this._getDroppableCell(),t=e.parent();return t.index()*t.find("td").length+e.index()},S.getDataByDroppableCell=function(){var e=this.getCellData((0,o.default)(this._getDroppableCell())),t=e.allDay;return{startDate:e.startDate,endDate:e.endDate,allDay:t,groups:e.groups}},S.getDateRange=function(){return[this.getStartViewDate(),this.getEndViewDateByEndDayHour()]},S.getCellMinWidth=function(){return 75},S.getRoundedCellWidth=function(e,t,n){if(e<0||!(0,l.hasWindow)())return 0;var i=0,a=this.$element().find(".".concat(T.DATE_TABLE_ROW_CLASS)).eq(0).find("."+ue),r=this._getCellCount()*e;n=n||this._getCellCount(),(0,p.isDefined)(t)||(t=r);for(var s=t;s<r+n;s++){var u=(0,o.default)(a).eq(s).get(0);i+=u?(0,c.getBoundingRect)(u).width:0}return i/(r+n-t)},S.getCellWidth=function(){return(0,q.getCellWidth)(this.getDOMElementsMetaData())},S.getCellHeight=function(){return(0,q.getCellHeight)(this.getDOMElementsMetaData())},S.getAllDayHeight=function(){return(0,q.getAllDayHeight)(this.option("showAllDayPanel"),this._isVerticalGroupedWorkSpace(),this.getDOMElementsMetaData())},S.getMaxAllowedPosition=function(e){return(0,q.getMaxAllowedPosition)(e,this.viewDataProvider,this.option("rtlEnabled"),this.getDOMElementsMetaData())},S.getAllDayOffset=function(){return this._groupedStrategy.getAllDayOffset()},S.getCellIndexByCoordinates=function(e,t){var n=this._getTotalCellCount(this._getGroupCount()),i=Math.floor(this._getWorkSpaceWidth()/n),o=t?this.getAllDayHeight():this.getCellHeight(),a=Math.floor(Math.floor(e.top)/Math.floor(o)),r=Math.floor((e.left+5)/i);return this._isRTL()&&(r=n-r-1),n*a+r},S.getStartViewDate=function(){return this.viewDataProvider.getStartViewDate()},S.getEndViewDate=function(){return this.viewDataProvider.getLastCellEndDate()},S.getEndViewDateByEndDayHour=function(){return this.viewDataProvider.getLastViewDateByEndDayHour(this.option("endDayHour"))},S.getCellDuration=function(){return(0,W.getCellDuration)(this.type,this.option("startDayHour"),this.option("endDayHour"),this.option("hoursInterval"))},S.getIntervalDuration=function(e){return e?te("day"):this.getCellDuration()},S.getVisibleDayDuration=function(){var e=this.option("startDayHour"),t=this.option("endDayHour"),n=this.option("hoursInterval");return this.viewDataProvider.getVisibleDayDuration(e,t,n)},S.getGroupBounds=function(e){var t=this._getCellCount(),n=this._getCells(),i=this.getCellWidth(),o=this.viewDataProvider.groupedDataMap,a=this._groupedStrategy.getGroupBoundsOffset(t,n,i,e,o);if(this._isRTL()){var r=a.left;a.left=a.right-2*i,a.right=r+2*i}return a},S.needRecalculateResizableArea=function(){return this._isVerticalGroupedWorkSpace()&&0!==this.getScrollable().scrollTop()},S.getCellDataByCoordinates=function(e,t){var n=this,i=JSON.stringify({top:e.top,left:e.left});return this.cache.get(i,(function(){var i=n._getCells(t),o=n.getCellIndexByCoordinates(e,t),a=i.eq(o);return n.getCellData(a)}))},S.getVisibleBounds=function(){var e={},t=this.getScrollable().$element(),n=this.getCellHeight(),o=this.getScrollableScrollTop()/n,a=o+(0,i.getHeight)(t)/n;return e.top={hours:Math.floor(o*this.option("hoursInterval"))+this.option("startDayHour"),minutes:o%2?30:0},e.bottom={hours:Math.floor(a*this.option("hoursInterval"))+this.option("startDayHour"),minutes:Math.floor(a)%2?30:0},e},S.updateScrollPosition=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.timeZoneCalculator.createDate(e,{path:"toGrid"}),o=n&&this.isAllDayPanelVisible;this.needUpdateScrollPosition(i,t,o)&&this.scrollTo(i,t,o,!1)},S.needUpdateScrollPosition=function(e,t,n){var i=this,o=this._getCellsInViewport(n),a=this._isGroupsSpecified(t)?this._getGroupIndexByResourceId(t):0,r=e.getTime(),l=s.default.trimTime(e).getTime();return o.reduce((function(e,t){var o=i.getCellData(t),s=o.startDate,u=o.endDate,d=o.groupIndex,c=s.getTime(),h=u.getTime();return(!(!n&&c<=r&&r<h||n&&l===c)||a!==d)&&e}),!0)},S._getCellsInViewport=function(e){var t=this.getScrollable().$element(),n=this.getCellHeight(),a=this.getCellWidth(),r=this._getTotalCellCount(this._getGroupCount()),s=this.getScrollableScrollTop(),l=this.getScrollableScrollLeft(),u=s/n-this.virtualScrollingDispatcher.topVirtualRowsCount,d=Math.floor(u);s%n!=0&&(d+=1);var c=l/a,h=Math.floor(c);l%a!=0&&(h+=1);var f=Math.floor(u+(0,i.getHeight)(t)/n),p=Math.floor(c+(0,i.getWidth)(t)/a),g=this._getAllCells(e),m=[];return g.each((function(e){var t=(0,o.default)(this),n=e%r,i=e/r;h<=n&&n<p&&d<=i&&i<f&&m.push(t)})),m},S.scrollToTime=function(e,t,n){if(this._isValidScrollDate(n)){var i=this._getScrollCoordinates(e,t,n),o=this.getScrollable();o.scrollBy({top:i.top-o.scrollTop(),left:0})}},S.scrollTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(this._isValidScrollDate(e,o)){var a=this._getGroupCount()&&t?this._getGroupIndexByResourceId(t):0,r=n&&this.isAllDayPanelVisible,s=this._getScrollCoordinates(e.getHours(),e.getMinutes(),e,a,r),l=this.getScrollable(),u=l.$element(),d=this.getCellWidth(),c=this.option("rtlEnabled")?d:0,h=(0,i.getHeight)(u),f=(0,i.getWidth)(u),p=this.getCellHeight(),g=(f-d)/2,m=(h-p)/2,_=s.left-l.scrollLeft()-g-c,v=s.top-l.scrollTop()-m;r&&!this._isVerticalGroupedWorkSpace()&&(v=0),this.option("templatesRenderAsynchronously")?setTimeout((function(){l.scrollBy({left:_,top:v})})):l.scrollBy({left:_,top:v})}},S._isValidScrollDate=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getStartViewDate(),i=this.getEndViewDate();return!(e<n||e>i)||(t&&_.default.log("W1008",e),!1)},S.needApplyCollectorOffset=function(){return!1},S.removeDroppableCellClass=function(e){(e||this._getDroppableCell()).removeClass(de)},S._getCoordinatesByCell=function(e){var t=e.index()-this.virtualScrollingDispatcher.leftVirtualCellsCount,n=e.parent().index(),i=this._hasAllDayClass(e),o=this._isVerticalGroupedWorkSpace();return i&&!o||(n-=this.virtualScrollingDispatcher.topVirtualRowsCount),{rowIndex:n,columnIndex:t}},S._isShowAllDayPanel=function(){return this.option("showAllDayPanel")},S._getTimePanelCells=function(){return this.$element().find(".".concat(ie))},S._getRDateTableProps=function(){return{viewData:this.viewDataProvider.viewData,dataCellTemplate:this.option("dataCellTemplate"),addDateTableClass:!this.option("crossScrollingEnabled")||this.isVirtualScrolling(),groupOrientation:this.option("groupOrientation"),addVerticalSizesClassToRows:!1}},S._updateSelectedCellDataOption=function(e){var t=e.map((function(e){return{startDate:e.startDate,endDate:e.endDate,allDay:e.allDay,groupIndex:e.groupIndex,groups:e.groups}}));this.option("selectedCellData",t),this._selectionChangedAction({selectedCellData:t})},S._getCellByData=function(e){var t=e.startDate,n=e.groupIndex,i=e.allDay,o=e.index,a=this.viewDataProvider.findCellPositionInMap({startDate:t,groupIndex:n,isAllDay:i,index:o});if(a)return i&&!this._isVerticalGroupedWorkSpace()?this._dom_getAllDayPanelCell(a.columnIndex):this._dom_getDateCell(a)},S.getDOMElementsMetaData=function(){var e=this;return this.cache.get("cellElementsMeta",(function(){return{dateTableCellsMeta:e._getDateTableDOMElementsInfo(),allDayPanelCellsMeta:e._getAllDayPanelDOMElementsInfo()}}))},S._getDateTableDOMElementsInfo=function(){var e=this,t=this._getAllCells(!1);if(!t.length||!(0,l.hasWindow)())return[[{}]];var n=this._getDateTable(),i=(0,c.getBoundingRect)(n.get(0)),o=this.viewDataProvider.getColumnsCount(),a=[];return t.each((function(t,n){var r=Math.floor(t/o);a.length===r&&a.push([]),e._addCellMetaData(a[r],n,i)})),a},S._getAllDayPanelDOMElementsInfo=function(){var e=this,t=[];if(this.isAllDayPanelVisible&&!this._isVerticalGroupedWorkSpace()&&(0,l.hasWindow)()){var n=this._getAllCells(!0);if(!n.length)return[{}];var i=this._$allDayPanel,o=(0,c.getBoundingRect)(i.get(0));n.each((function(n,i){e._addCellMetaData(t,i,o)}))}return t},S._addCellMetaData=function(e,t,n){var i=(0,c.getBoundingRect)(t);e.push({left:i.left-n.left,top:i.top-n.top,width:i.width,height:i.height})},S._oldRender_getAllDayCellData=function(e){var t=this;return function(n,i,o){var a=o%t._getCellCount(),r=t._getDateGenerationOptions(!0),l=t.viewDataProvider.viewDataGenerator.getDateByCellIndices(r,i,a,t._getCellCountInDay());l=s.default.trimTime(l);var u=e||0;t.isGroupedByDate()?u=Math.floor(o%t._getGroupCount()):t._isHorizontalGroupedWorkSpace()&&(u=Math.floor(o/t._getCellCount()));var d={startDate:l,endDate:l,allDay:!0,groupIndex:u},c=(0,G.getCellGroups)(u,t.option("groups"));return c.length&&(d.groups=(0,G.getGroupsObjectFromGroupsArray)(c)),{key:_e,value:d}}},S.renderRWorkSpace=function(){this.renderRHeaderPanel(),this.renderRTimeTable(),this.renderRDateTable(),this.renderRAllDayPanel()},S.renderRDateTable=function(){$.utils.renovation.renderComponent(this,this._$dateTable,M.default,"renovatedDateTable",this._getRDateTableProps())},S.renderRGroupPanel=function(){var e={groups:this.option("groups"),groupOrientation:this.option("groupOrientation"),groupByDate:this.isGroupedByDate(),resourceCellTemplate:this.option("resourceCellTemplate"),className:this.verticalGroupTableClass,groupPanelData:this.viewDataProvider.getGroupPanelData(this.generateRenderOptions())};this.option("groups").length?(this._attachGroupCountClass(),$.utils.renovation.renderComponent(this,this._getGroupHeaderContainer(),F.default,"renovatedGroupPanel",e)):this._detachGroupCountClass()},S.renderRAllDayPanel=function(){if(this.isAllDayPanelVisible&&!this.isGroupedAllDayPanel()){var e;this._toggleAllDayVisibility(!1);var t=Z({viewData:this.viewDataProvider.viewData,dataCellTemplate:this.option("dataCellTemplate"),startCellIndex:0},(null===(e=this.virtualScrollingDispatcher.horizontalVirtualScrolling)||void 0===e?void 0:e.getRenderState())||{});$.utils.renovation.renderComponent(this,this._$allDayPanel,R.default,"renovatedAllDayPanel",t),$.utils.renovation.renderComponent(this,this._$allDayTitle,B.default,"renovatedAllDayPanelTitle",{}),this._$allDayTable=this.renovatedAllDayPanel.$element().find(".".concat(ae)),this._$allDayPanel.prepend(this._$allDayContainer)}this._toggleAllDayVisibility(!0)},S.renderRTimeTable=function(){$.utils.renovation.renderComponent(this,this._$timePanel,V.default,"renovatedTimePanel",{timePanelData:this.viewDataProvider.timePanelData,timeCellTemplate:this.option("timeCellTemplate"),groupOrientation:this.option("groupOrientation")})},S.renderRHeaderPanel=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.option("groups").length?this._attachGroupCountClass():this._detachGroupCountClass(),$.utils.renovation.renderComponent(this,this._$thead,this.renovatedHeaderPanelComponent,"renovatedHeaderPanel",{dateHeaderData:this.viewDataProvider.dateHeaderData,groupPanelData:this.viewDataProvider.getGroupPanelData(this.generateRenderOptions()),dateCellTemplate:this.option("dateCellTemplate"),timeCellTemplate:this.option("timeCellTemplate"),groups:this.option("groups"),groupByDate:this.isGroupedByDate(),groupOrientation:this.option("groupOrientation"),resourceCellTemplate:this.option("resourceCellTemplate"),isRenderDateHeader:e})},S.initDragBehavior=function(e){!this.dragBehavior&&e&&(this.dragBehavior=new D.default(e),this._createDragBehavior(this.getWorkArea()),this._createDragBehavior(this.getAllDayContainer()),this._createDragBehavior(this._$allDayPanel))},S._createDragBehavior=function(e){var t={getItemData:function(e,t){return t._getItemData(e)},getItemSettings:function(e){return e.data(I.APPOINTMENT_SETTINGS_KEY)}};this._createDragBehaviorBase(e,t)},S._createDragBehaviorBase=function(e,t){var n=this,i=this.$element().find(".".concat(T.FIXED_CONTAINER_CLASS)),o=this.$element(),a="default"===this.option("draggingMode");this.dragBehavior.addTo(e,Ce(i,a,this.dragBehavior,(function(){return n._attachDragEvents(o)}),(function(){return n._detachDragEvents(o)}),(function(){return n._getDroppableCell()}),(function(){return n._getDateTables()}),(function(){return n.removeDroppableCellClass()}),(function(){return n.getCellWidth()}),t))},S._isRenderHeaderPanelEmptyCell=function(){return this._isVerticalGroupedWorkSpace()},S._dispose=function(){e.prototype._dispose.call(this),this.virtualScrollingDispatcher.dispose()},S._getDefaultOptions=function(){return(0,d.extend)(e.prototype._getDefaultOptions.call(this),{currentDate:new Date,intervalCount:1,startDate:null,firstDayOfWeek:void 0,startDayHour:0,endDayHour:24,hoursInterval:.5,activeStateEnabled:!0,hoverStateEnabled:!0,groups:[],showAllDayPanel:!0,allDayExpanded:!1,onCellClick:null,crossScrollingEnabled:!1,dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,allowMultipleCellSelection:!0,indicatorTime:new Date,indicatorUpdateInterval:5*te("minute"),shadeUntilCurrentTime:!0,groupOrientation:"horizontal",selectedCellData:[],groupByDate:!1,scrolling:{mode:"standard"},renovateRender:!0,height:void 0,draggingMode:"outlook",onScrollEnd:function(){},getHeaderHeight:void 0,onVirtualScrollingUpdated:void 0,onSelectedCellsClick:function(){},timeZoneCalculator:void 0,schedulerHeight:void 0,schedulerWidth:void 0})},S._optionChanged=function(t){switch(t.name){case"startDayHour":(0,W.validateDayHours)(t.value,this.option("endDayHour")),this._cleanWorkSpace();break;case"endDayHour":(0,W.validateDayHours)(this.option("startDayHour"),t.value),this._cleanWorkSpace();break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":case"hoursInterval":case"firstDayOfWeek":case"currentDate":case"startDate":this._cleanWorkSpace();break;case"groups":this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint();break;case"groupOrientation":this._initGroupedStrategy(),this._createAllDayPanelElements(),this._removeAllDayElements(),this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"showAllDayPanel":this._isVerticalGroupedWorkSpace()?(this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint()):this.isRenovatedRender()?this.renderWorkSpace():this._toggleAllDayVisibility(!0);break;case"allDayExpanded":this._changeAllDayVisibility(),this._attachTablesEvents(),this._updateScrollable();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onCellClick":this._createCellClickAction();break;case"onCellContextMenu":this._attachContextMenuEvent();break;case"intervalCount":this._cleanWorkSpace(),this._toggleWorkSpaceCountClass();break;case"groupByDate":this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"crossScrollingEnabled":this._toggleHorizontalScrollClass(),this._dateTableScrollable.option(this._dateTableScrollableConfig());break;case"width":e.prototype._optionChanged.call(this,t),this._dimensionChanged();break;case"timeZoneCalculator":case"allowMultipleCellSelection":case"selectedCellData":break;case"renovateRender":case"scrolling":this.repaint();break;case"schedulerHeight":case"schedulerWidth":this.virtualScrollingDispatcher.updateDimensions(!0);break;default:e.prototype._optionChanged.call(this,t)}},S._getVirtualScrollingDispatcherOptions=function(){var e=this;return{getCellHeight:this.getCellHeight.bind(this),getCellWidth:this.getCellWidth.bind(this),getCellMinWidth:this.getCellMinWidth.bind(this),isRTL:this._isRTL.bind(this),getSchedulerHeight:function(){return e.option("schedulerHeight")},getSchedulerWidth:function(){return e.option("schedulerWidth")},getViewHeight:function(){return e.$element().height?e.$element().height():(0,i.getHeight)(e.$element())},getViewWidth:function(){return e.$element().width?e.$element().width():(0,i.getWidth)(e.$element())},getScrolling:function(){return e.option("scrolling")},getScrollableOuterWidth:this.getScrollableOuterWidth.bind(this),getScrollable:this.getScrollable.bind(this),createAction:this._createAction.bind(this),updateRender:this.updateRender.bind(this),updateGrid:this.updateGrid.bind(this),getGroupCount:this._getGroupCount.bind(this),isVerticalGrouping:this._isVerticalGroupedWorkSpace.bind(this),getTotalRowCount:this._getTotalRowCount.bind(this),getTotalCellCount:this._getTotalCellCount.bind(this)}},S._cleanWorkSpace=function(){this._cleanView(),this._toggleGroupedClass(),this._toggleWorkSpaceWithOddCells(),this.virtualScrollingDispatcher.updateDimensions(!0),this._renderView(),this.option("crossScrollingEnabled")&&this._setTableSizes(),this.cache.clear()},S._init=function(){this._headerSemaphore=new j.Semaphore,this._sideBarSemaphore=new j.Semaphore,this._dataTableSemaphore=new j.Semaphore,this._viewDataProvider=null,this._cellsSelectionState=null,this._activeStateUnit=be,e.prototype._init.call(this),this._initGrouping(),this._toggleHorizontalScrollClass(),this._toggleWorkSpaceCountClass(),this._toggleGroupByDateClass(),this._toggleWorkSpaceWithOddCells(),this.$element().addClass("dx-scheduler-work-space").addClass(this._getElementClass())},S._initPositionHelper=function(){this.positionHelper=new q.PositionHelper({key:this.option("key"),viewDataProvider:this.viewDataProvider,viewStartDayHour:this.option("startDayHour"),viewEndDayHour:this.option("endDayHour"),cellDuration:this.getCellDuration(),groupedStrategy:this._groupedStrategy,isGroupedByDate:this.isGroupedByDate(),rtlEnabled:this.option("rtlEnabled"),startViewDate:this.getStartViewDate(),isVerticalGrouping:this._isVerticalGroupedWorkSpace(),groupCount:this._getGroupCount(),isVirtualScrolling:this.isVirtualScrolling(),getDOMMetaDataCallback:this.getDOMElementsMetaData.bind(this)})},S._initGrouping=function(){this._initGroupedStrategy(),this._toggleGroupingDirectionClass(),this._toggleGroupByDateClass()},S.isVerticalOrientation=function(){return"vertical"===(this.option("groups").length?this.option("groupOrientation"):this._getDefaultGroupStrategy())},S._initGroupedStrategy=function(){var e=this.isVerticalOrientation()?C.default:w.default;this._groupedStrategy=new e(this)},S._getDefaultGroupStrategy=function(){return"horizontal"},S._toggleHorizontalScrollClass=function(){this.$element().toggleClass("dx-scheduler-work-space-both-scrollbar",this.option("crossScrollingEnabled"))},S._toggleGroupByDateClass=function(){this.$element().toggleClass("dx-scheduler-work-space-group-by-date",this.isGroupedByDate())},S._toggleWorkSpaceCountClass=function(){this.$element().toggleClass("dx-scheduler-work-space-count",this._isWorkSpaceWithCount())},S._toggleWorkSpaceWithOddCells=function(){this.$element().toggleClass("dx-scheduler-work-space-odd-cells",this._isWorkspaceWithOddCells())},S._toggleGroupingDirectionClass=function(){this.$element().toggleClass("dx-scheduler-work-space-vertical-grouped",this._isVerticalGroupedWorkSpace())},S._getDateTableCellClass=function(e,t){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-date-table-cell dx-scheduler-cell-sizes-horizontal dx-scheduler-cell-sizes-vertical",t+1,e,t)},S._getGroupHeaderClass=function(e){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-group-header",e+1)},S._initWorkSpaceUnits=function(){this._$headerPanelContainer=(0,o.default)("<div>").addClass("dx-scheduler-header-panel-container"),this._$headerTablesContainer=(0,o.default)("<div>").addClass("dx-scheduler-header-tables-container"),this._$headerPanel=(0,o.default)("<table>"),this._$thead=(0,o.default)("<thead>").appendTo(this._$headerPanel),this._$headerPanelEmptyCell=(0,o.default)("<div>").addClass("dx-scheduler-header-panel-empty-cell"),this._$fixedContainer=(0,o.default)("<div>").addClass(T.FIXED_CONTAINER_CLASS),this._$allDayContainer=(0,o.default)("<div>").addClass("dx-scheduler-all-day-appointments"),this._$dateTableScrollableContent=(0,o.default)("<div>").addClass("dx-scheduler-date-table-scrollable-content"),this._$sidebarScrollableContent=(0,o.default)("<div>").addClass("dx-scheduler-side-bar-scrollable-content"),this._initAllDayPanelElements(),this.isRenovatedRender()?this.createRAllDayPanelElements():this._createAllDayPanelElements(),this._$timePanel=(0,o.default)("<table>").addClass(T.TIME_PANEL_CLASS),this._$dateTable=(0,o.default)("<table>"),this._$dateTableContainer=(0,o.default)("<div>").addClass("dx-scheduler-date-table-container"),this._$groupTable=(0,o.default)("<div>").addClass(ne)},S._initAllDayPanelElements=function(){this._allDayTitles=[],this._allDayTables=[],this._allDayPanels=[]},S._initDateTableScrollable=function(){var e=(0,o.default)("<div>").addClass("dx-scheduler-date-table-scrollable");this._dateTableScrollable=this._createComponent(e,b.default,this._dateTableScrollableConfig())},S._createWorkSpaceElements=function(){this.option("crossScrollingEnabled")?this._createWorkSpaceScrollableElements():this._createWorkSpaceStaticElements()},S._createWorkSpaceStaticElements=function(){this._$dateTableContainer.append(this._$dateTable),this._isVerticalGroupedWorkSpace()?(this._$dateTableContainer.append(this._$allDayContainer),this._$dateTableScrollableContent.append(this._$groupTable,this._$timePanel,this._$dateTableContainer),this._dateTableScrollable.$content().append(this._$dateTableScrollableContent),this._$headerTablesContainer.append(this._$headerPanel)):(this._$dateTableScrollableContent.append(this._$timePanel,this._$dateTableContainer),this._dateTableScrollable.$content().append(this._$dateTableScrollableContent),this._$headerTablesContainer.append(this._$allDayContainer,this._$headerPanel,this._$allDayPanel)),this._appendHeaderPanelEmptyCellIfNecessary(),this._$headerPanelContainer.append(this._$headerTablesContainer),this.$element().append(this._$fixedContainer,this._$headerPanelContainer,this._dateTableScrollable.$element())},S._createWorkSpaceScrollableElements=function(){this.$element().append(this._$fixedContainer),this._$flexContainer=(0,o.default)("<div>").addClass("dx-scheduler-work-space-flex-container"),this._createHeaderScrollable(),this._headerScrollable.$content().append(this._$headerPanel),this._appendHeaderPanelEmptyCellIfNecessary(),this._$headerPanelContainer.append(this._$headerTablesContainer),this.$element().append(this._$headerPanelContainer),this.$element().append(this._$flexContainer),this._createSidebarScrollable(),this._$flexContainer.append(this._dateTableScrollable.$element()),this._$dateTableContainer.append(this._$dateTable),this._$dateTableScrollableContent.append(this._$dateTableContainer),this._dateTableScrollable.$content().append(this._$dateTableScrollableContent),this._isVerticalGroupedWorkSpace()?(this._$dateTableContainer.append(this._$allDayContainer),this._$sidebarScrollableContent.append(this._$groupTable,this._$timePanel)):(this._headerScrollable.$content().append(this._$allDayContainer,this._$allDayPanel),this._$sidebarScrollableContent.append(this._$timePanel)),this._sidebarScrollable.$content().append(this._$sidebarScrollableContent)},S._appendHeaderPanelEmptyCellIfNecessary=function(){this._isRenderHeaderPanelEmptyCell()&&this._$headerPanelContainer.append(this._$headerPanelEmptyCell)},S._createHeaderScrollable=function(){var e=(0,o.default)("<div>").addClass("dx-scheduler-header-scrollable").appendTo(this._$headerTablesContainer);this._headerScrollable=this._createComponent(e,b.default,this._headerScrollableConfig())},S._createSidebarScrollable=function(){var e=this,t=(0,o.default)("<div>").addClass("dx-scheduler-sidebar-scrollable").appendTo(this._$flexContainer);this._sidebarScrollable=this._createComponent(t,b.default,{useKeyboard:!1,showScrollbar:"never",direction:"vertical",useNative:!1,updateManually:!0,bounceEnabled:!1,onScroll:function(t){e._sideBarSemaphore.take(),e._dataTableSemaphore.isFree()&&e._dateTableScrollable.scrollTo({top:t.scrollOffset.top}),e._sideBarSemaphore.release()}})},S._attachTableClasses=function(){if(this._addTableClass(this._$dateTable,T.DATE_TABLE_CLASS),this._isVerticalGroupedWorkSpace())for(var e=this._getGroupCount(),t=0;t<e;t++)this._addTableClass(this._allDayTables[t],ae);else this._addTableClass(this._$allDayTable,ae)},S._attachHeaderTableClasses=function(){this._addTableClass(this._$headerPanel,"dx-scheduler-header-panel")},S._addTableClass=function(e,t){e&&!e.hasClass(t)&&e.addClass(t)},S._initMarkup=function(){this.cache.clear(),this._initWorkSpaceUnits(),this._initVirtualScrolling(),this._initDateTableScrollable(),this._createWorkSpaceElements(),e.prototype._initMarkup.call(this),this.option("crossScrollingEnabled")||(this._attachTableClasses(),this._attachHeaderTableClasses()),this._toggleGroupedClass(),this._renderView(),this._attachEvents()},S._render=function(){e.prototype._render.call(this),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},S._toggleGroupedClass=function(){this.$element().toggleClass("dx-scheduler-work-space-grouped",this._getGroupCount()>0)},S._renderView=function(){this.isRenovatedRender()?this._isVerticalGroupedWorkSpace()&&this.renderRGroupPanel():this._applyCellTemplates(this._renderGroupHeader()),this.renderWorkSpace(),this._updateGroupTableHeight(),this.updateHeaderEmptyCellWidth(),this._shader=new k.default(this)},S.updateCellsSelection=function(){var e=this.generateRenderOptions();this.viewDataProvider.updateViewData(e),this.renderRWorkSpace()},S._renderDateTimeIndication=function(){return(0,f.noop)()},S._setIndicationUpdateInterval=function(){return(0,f.noop)()},S._refreshDateTimeIndication=function(){return(0,f.noop)()},S._detachGroupCountClass=function(){var e=this;(function(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()})(T.VERTICAL_GROUP_COUNT_CLASSES).forEach((function(t){e.$element().removeClass(t)}))},S._attachGroupCountClass=function(){var e=this._groupedStrategy.getGroupCountClass(this.option("groups"));this.$element().addClass(e)},S._getDateHeaderTemplate=function(){return this.option("dateCellTemplate")},S._toggleAllDayVisibility=function(e){var t=this._isShowAllDayPanel();this.$element().toggleClass("dx-scheduler-work-space-all-day",t),this._changeAllDayVisibility(),e&&this._updateScrollable()},S._changeAllDayVisibility=function(){this.cache.clear(),this.$element().toggleClass("dx-scheduler-work-space-all-day-collapsed",!this.option("allDayExpanded")&&this._isShowAllDayPanel())},S._getDateTables=function(){return this._$dateTable.add(this._$allDayTable)},S._getDateTable=function(){return this._$dateTable},S._removeAllDayElements=function(){this._$allDayTable&&this._$allDayTable.remove(),this._$allDayTitle&&this._$allDayTitle.remove()},S._cleanView=function(){var e,t,n;this.cache.clear(),this._cleanTableWidths(),this.cellsSelectionState.clearSelectedAndFocusedCells(),this.isRenovatedRender()||(this._$thead.empty(),this._$dateTable.empty(),this._$timePanel.empty(),this._$groupTable.empty(),null===(t=this._$allDayTable)||void 0===t||t.empty(),null===(n=this._$sidebarTable)||void 0===n||n.empty()),null===(e=this._shader)||void 0===e||e.clean(),delete this._interval},S._clean=function(){r.default.off(a.default.getDocument(),ge),this._disposeRenovatedComponents(),e.prototype._clean.call(this)},S._cleanTableWidths=function(){this._$headerPanel.css("width",""),this._$dateTable.css("width",""),this._$allDayTable&&this._$allDayTable.css("width","")},S._disposeRenovatedComponents=function(){var e,t,n,i,o;null===(e=this.renovatedAllDayPanel)||void 0===e||e.dispose(),this.renovatedAllDayPanel=void 0,null===(t=this.renovatedDateTable)||void 0===t||t.dispose(),this.renovatedDateTable=void 0,null===(n=this.renovatedTimePanel)||void 0===n||n.dispose(),this.renovatedTimePanel=void 0,null===(i=this.renovatedGroupPanel)||void 0===i||i.dispose(),this.renovatedGroupPanel=void 0,null===(o=this.renovatedHeaderPanel)||void 0===o||o.dispose(),this.renovatedHeaderPanel=void 0},S.getGroupedStrategy=function(){return this._groupedStrategy},S.getFixedContainer=function(){return this._$fixedContainer},S.getAllDayContainer=function(){return this._$allDayContainer},S.updateRender=function(){this.renderer.updateRender()},S.updateGrid=function(){this.renderer._renderGrid()},S.updateAppointments=function(){var e;this.option("onVirtualScrollingUpdated")(),null===(e=this.dragBehavior)||void 0===e||e.updateDragSource()},S._createAllDayPanelElements=function(){var e=this._getGroupCount();if(this._isVerticalGroupedWorkSpace()&&0!==e)for(var t=0;t<e;t++){var n=(0,o.default)("<div>").addClass(re).text(h.default.format("dxScheduler-allDay"));this._allDayTitles.push(n),this._$allDayTable=(0,o.default)("<table>"),this._allDayTables.push(this._$allDayTable),this._$allDayPanel=(0,o.default)("<div>").addClass(oe).append(this._$allDayTable),this._allDayPanels.push(this._$allDayPanel)}else this._$allDayTitle=(0,o.default)("<div>").addClass(re).text(h.default.format("dxScheduler-allDay")).appendTo(this.$element()),this._$allDayTable=(0,o.default)("<table>"),this._$allDayPanel=(0,o.default)("<div>").addClass(oe).append(this._$allDayTable)},S.renderWorkSpace=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.cache.clear(),this.viewDataProvider.update(this.generateRenderOptions(),e),this.isRenovatedRender()?(this.renderRWorkSpace(),this.virtualScrollingDispatcher.updateDimensions()):(this._renderDateHeader(),this._renderTimePanel(),this._renderGroupAllDayPanel(),this._renderDateTable(),this._renderAllDayPanel()),this._initPositionHelper()},S._renderGroupHeader=function(){var e=this._getGroupHeaderContainer(),t=[];if(this._getGroupCount()){var n=this._makeGroupRows(this.option("groups"),this.option("groupByDate"));this._attachGroupCountClass(),e.append(n.elements),t=n.cellTemplates}else this._detachGroupCountClass();return t},S._applyCellTemplates=function(e){null==e||e.forEach((function(e){e()}))},S._makeGroupRows=function(e,t){var n=this._isVerticalGroupedWorkSpace()?J.VERTICAL:J.HORIZONTAL;return J.makeGroupedTable(n,e,{groupHeaderRowClass:T.GROUP_ROW_CLASS,groupRowClass:T.GROUP_ROW_CLASS,groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:T.GROUP_HEADER_CONTENT_CLASS},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getGroupCount(),t)},S._renderDateHeader=function(){var e=this._getDateHeaderContainer(),t=(0,o.default)("<tr>").addClass("dx-scheduler-header-row"),n=this._getCellCount(),i=this._getDateHeaderTemplate(),a=this._getCalculateHeaderCellRepeatCount(),r=[],s=this.isGroupedByDate();if(s){for(var l=s?this._getGroupCount():1,u=0;u<n;u++){var d=u*a;this._renderDateHeaderTemplate(t,u,d,i,r).attr("colSpan",l)}e.prepend(t)}else{for(var c=0;c<a;c++)for(var h=0;h<n;h++){var f=c*n+h;this._renderDateHeaderTemplate(t,h,f,i,r)}e.append(t)}return this._applyCellTemplates(r),t},S._renderDateHeaderTemplate=function(e,t,n,i,a){var r=this.isGroupedByDate()?Math.floor(n/this._getGroupCount()):n,s=this.viewDataProvider.completeDateHeaderMap,l=s[s.length-1][r],d=l.text,c=l.startDate,h=(0,o.default)("<th>").addClass(this._getHeaderPanelCellClass(t)).attr("title",d);return null!=i&&i.render?a.push(i.render.bind(i,{model:Z({text:d,date:c},this._getGroupsForDateHeaderTemplate(n)),index:n,container:(0,u.getPublicElement)(h)})):h.text(d),e.append(h),h},S._getGroupsForDateHeaderTemplate=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._isHorizontalGroupedWorkSpace()&&!this.isGroupedByDate()){t=this._getGroupIndex(0,e*i);var o=(0,G.getCellGroups)(t,this.option("groups"));n=(0,G.getGroupsObjectFromGroupsArray)(o)}return{groups:n,groupIndex:t}},S._getHeaderPanelCellClass=function(e){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-header-panel-cell dx-scheduler-cell-sizes-horizontal",e+1,void 0,void 0,this.isGroupedByDate())},S._renderAllDayPanel=function(e){var t=this._getCellCount();this._isVerticalGroupedWorkSpace()||(t*=this._getGroupCount()||1);var n=this._renderTableBody({container:this._allDayPanels.length?(0,u.getPublicElement)(this._allDayTables[e]):(0,u.getPublicElement)(this._$allDayTable),rowCount:1,cellCount:t,cellClass:this._getAllDayPanelCellClass.bind(this),rowClass:"dx-scheduler-all-day-table-row",cellTemplate:this.option("dataCellTemplate"),getCellData:this._oldRender_getAllDayCellData(e),groupIndex:e},!0);this._toggleAllDayVisibility(!0),this._applyCellTemplates(n)},S._renderGroupAllDayPanel=function(){if(this._isVerticalGroupedWorkSpace())for(var e=this._getGroupCount(),t=0;t<e;t++)this._renderAllDayPanel(t)},S._getAllDayPanelCellClass=function(e,t){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-all-day-table-cell dx-scheduler-cell-sizes-horizontal",t+1)},S._renderTimePanel=function(){var e=this,t=this._groupedStrategy.calculateTimeCellRepeatCount(),n=function(t,n){var i=0;e.isAllDayPanelVisible&&(i=1),e.isGroupedAllDayPanel()&&(i=Math.ceil((t+1)/e._getRowCount()));var o=t+i;return e.viewDataProvider.completeTimePanelMap[o][n]};this._renderTableBody({container:(0,u.getPublicElement)(this._$timePanel),rowCount:this._getTimePanelRowCount()*t,cellCount:1,cellClass:this._getTimeCellClass.bind(this),rowClass:"dx-scheduler-time-panel-row",cellTemplate:this.option("timeCellTemplate"),getCellText:function(e){return n(e,"text")},getCellDate:function(e){return n(e,"startDate")},groupCount:this._getGroupCount(),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayTitles:void 0,getTemplateData:function(t){if(!e._isVerticalGroupedWorkSpace())return{};var n=e._getGroupIndex(t,0),i=(0,G.getCellGroups)(n,e.option("groups"));return{groupIndex:n,groups:(0,G.getGroupsObjectFromGroupsArray)(i)}}.bind(this)})},S._getTimeCellClass=function(e){var t=ie+" dx-scheduler-cell-sizes-vertical";return this._isVerticalGroupedWorkSpace()?this._groupedStrategy.addAdditionalGroupCellClasses(t,e,e):t},S._renderDateTable=function(){var e=this,t=this._getGroupCount();this._renderTableBody({container:(0,u.getPublicElement)(this._$dateTable),rowCount:this._getTotalRowCount(t),cellCount:this._getTotalCellCount(t),cellClass:this._getDateTableCellClass.bind(this),rowClass:T.DATE_TABLE_ROW_CLASS,cellTemplate:this.option("dataCellTemplate"),getCellData:function(t,n,i){var o=n;if(e.isGroupedAllDayPanel()){var a=e._getRowCount();o+=Math.ceil(n/a)}var r=e.viewDataProvider.viewDataMap.dateTableMap[o][i].cellData;return{value:e._filterCellDataFields(r),fullValue:r,key:_e}},allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayPanels:void 0,groupCount:t,groupByDate:this.option("groupByDate")})},S._insertAllDayRowsIntoDateTable=function(){return this._groupedStrategy.insertAllDayRowsIntoDateTable()},S._renderTableBody=function(e,t){var n=[];return t?n=J.makeTable(e):this._applyCellTemplates(J.makeTable(e)),n},v=m,(x=[{key:"viewDataProvider",get:function(){return this._viewDataProvider||(this._viewDataProvider=new P.default(this.type)),this._viewDataProvider}},{key:"cache",get:function(){return this._cache||(this._cache=new N.Cache),this._cache}},{key:"cellsSelectionState",get:function(){var e=this;if(!this._cellsSelectionState){this._cellsSelectionState=new H.default(this.viewDataProvider);var t=this.option("selectedCellData");if((null==t?void 0:t.length)>0){var n=t.map((function(t){var n=t.groups;return n&&0!==e._getGroupCount()?Z({},t,{groupIndex:e._getGroupIndexByResourceId(n)}):Z({},t,{groupIndex:0})}));this._cellsSelectionState.setSelectedCellsByData(n)}}return this._cellsSelectionState}},{key:"cellsSelectionController",get:function(){return this._cellsSelectionController||(this._cellsSelectionController=new z.CellsSelectionController),this._cellsSelectionController}},{key:"isAllDayPanelVisible",get:function(){return this._isShowAllDayPanel()&&this.supportAllDayRow()}},{key:"verticalGroupTableClass",get:function(){return ne}},{key:"viewDirection",get:function(){return"vertical"}},{key:"renovatedHeaderPanelComponent",get:function(){return L.default}},{key:"timeZoneCalculator",get:function(){return this.option("timeZoneCalculator")}}])&&X(v.prototype,x),m}(E.default),Ce=function(e,t,n,r,s,l,u,d,h,f){var p={dragElement:void 0,itemData:void 0},g=function(){var e=p.itemData;return!e||(0,K.compileGetter)("disabled")(e)};return{container:e,dragTemplate:function(){return p.dragElement},onDragStart:function(e){t||s();var i=e.cancel,a=e.event,r=(0,o.default)(e.itemElement),l=e.component._appointments;p.itemData=f.getItemData(e.itemElement,l);var u=f.getItemSettings(r,e),d=f.initialPosition;g()||(a.data=a.data||{},i||(u.isCompact||n.updateDragSource(p.itemData,u),p.dragElement=function(e,t,n){var i=n.option("items").length;return t.isCompact=!1,t.virtual=!1,n._renderItem(i,{itemData:e,settings:[t]})[0]}(p.itemData,u,l),a.data.itemElement=p.dragElement,a.data.initialPosition=null!=d?d:(0,A.locate)((0,o.default)(p.dragElement)),a.data.itemData=p.itemData,a.data.itemSettings=u,n.onDragStart(a.data),(0,A.resetPosition)((0,o.default)(p.dragElement))))},onDragMove:function(){if(!t){var e=(0,i.getWidth)(p.dragElement),n=e>h(),r=(0,o.default)(p.dragElement).parent(),s=(0,c.getBoundingRect)(r.get(0)),f=s.left+10,g=s.top+10,m=n?a.default.elementsFromPoint(f,g):a.default.elementsFromPoint(f+e/2,g),_=u(),v=m.find((function(e){var t=e.classList;return 1===_.find(e).length&&(t.contains(ue)||t.contains(se))}));v&&(l().is(v)||d(),(0,o.default)(v).addClass(de))}},onDragEnd:function(e){var i;t||r(),g()||n.onDragEnd(e),null===(i=p.dragElement)||void 0===i||i.remove(),d()},cursorOffset:f.isSetCursorOffset?function(){var e=(0,o.default)(p.dragElement);return{x:(0,i.getWidth)(e)/2,y:(0,i.getHeight)(e)/2}}:void 0,filter:f.filter}},Se=we;t.default=Se,e.exports=t.default,e.exports.default=t.default},81096:function(e,t,n){t.default=void 0;var i=a(n(99393)),o=n(27728);function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var a,l,u=i.prototype;return u._getElementClass=function(){return"dx-scheduler-work-space-day"},u._renderDateHeader=function(){return 1===this.option("intervalCount")?null:e.prototype._renderDateHeader.call(this)},u.renderRHeaderPanel=function(){1===this.option("intervalCount")?e.prototype.renderRHeaderPanel.call(this,!1):e.prototype.renderRHeaderPanel.call(this,!0)},a=i,(l=[{key:"type",get:function(){return o.VIEWS.DAY}}])&&r(a.prototype,l),i}(a(n(72655)).default);(0,i.default)("dxSchedulerWorkSpaceDay",l);var u=l;t.default=u,e.exports=t.default,e.exports.default=t.default},29004:function(e,t,n){t.default=void 0;var i=n(20576),o=p(n(99393)),a=p(n(22955)),r=p(n(91198)),s=n(37518),l=n(9259),u=n(58201),d=p(n(4364)),c=n(19097),h=n(45985),f=n(27728);function p(e){return e&&e.__esModule?e:{default:e}}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function m(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=r.default.dateToMilliseconds,y=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,_(t,n);var a,p,y=o.prototype;return y._getElementClass=function(){return"dx-scheduler-work-space-month"},y._getFormat=function(){return h.formatWeekday},y._getIntervalBetween=function(e){var t=this.getStartViewDate(),n=r.default.getTimezonesDifference(t,e);return e.getTime()-(t.getTime()-36e5*this.option("startDayHour"))-n},y._getDateGenerationOptions=function(){return g({},e.prototype._getDateGenerationOptions.call(this),{cellCountInDay:1})},y.getCellWidth=function(){var e=this;return this.cache.get("cellWidth",(function(){var t=0,n=e._getCells().slice(0,7);return n.each((function(e,n){t+=(0,u.hasWindow)()?(0,s.getBoundingRect)(n).width:0})),0===n.length?void 0:t/7}))},y._insertAllDayRowsIntoDateTable=function(){return!1},y._getCellCoordinatesByIndex=function(e){var t=Math.floor(e/this._getCellCount());return{rowIndex:t,columnIndex:e-this._getCellCount()*t}},y._needCreateCrossScrolling=function(){return this.option("crossScrollingEnabled")||this._isVerticalGroupedWorkSpace()},y._getViewStartByOptions=function(){return(0,c.getViewStartByOptions)(this.option("startDate"),this.option("currentDate"),this.option("intervalCount"),r.default.getFirstMonthDate(this.option("startDate")))},y._updateIndex=function(e){return e},y.isIndicationAvailable=function(){return!1},y.getIntervalDuration=function(){return v("day")},y.getTimePanelWidth=function(){return 0},y.supportAllDayRow=function(){return!1},y.keepOriginalHours=function(){return!0},y.getWorkSpaceLeftOffset=function(){return 0},y.needApplyCollectorOffset=function(){return!0},y._getHeaderDate=function(){return this._getViewStartByOptions()},y.scrollToTime=function(){return(0,i.noop)()},y.renderRAllDayPanel=function(){},y.renderRTimeTable=function(){},y.renderRDateTable=function(){l.utils.renovation.renderComponent(this,this._$dateTable,d.default,"renovatedDateTable",this._getRDateTableProps())},y._createWorkSpaceElements=function(){this._isVerticalGroupedWorkSpace()?this._createWorkSpaceScrollableElements():e.prototype._createWorkSpaceElements.call(this)},y._toggleAllDayVisibility=function(){return(0,i.noop)()},y._changeAllDayVisibility=function(){return(0,i.noop)()},y._renderTimePanel=function(){return(0,i.noop)()},y._renderAllDayPanel=function(){return(0,i.noop)()},y._setMonthClassesToCell=function(e,t){e.toggleClass("dx-scheduler-date-table-current-date",t.isCurrentDate).toggleClass("dx-scheduler-date-table-first-of-month",t.firstDayOfMonth).toggleClass("dx-scheduler-date-table-other-month",t.otherMonth)},y._createAllDayPanelElements=function(){},y._renderTableBody=function(t){var n=this;t.getCellText=function(e,t){var i=n.viewDataProvider.completeViewDataMap[e][t].startDate;return(0,c.getCellText)(i,n.option("intervalCount"))},t.getCellTextClass="dx-scheduler-date-table-cell-text",t.setAdditionalClasses=this._setMonthClassesToCell.bind(this),e.prototype._renderTableBody.call(this,t)},a=o,(p=[{key:"type",get:function(){return f.VIEWS.MONTH}}])&&m(a.prototype,p),o}(a.default);(0,o.default)("dxSchedulerWorkSpaceMonth",y);var x=y;t.default=x,e.exports=t.default,e.exports.default=t.default},72655:function(e,t,n){t.default=void 0;var i,o=(i=n(22955))&&i.__esModule?i:{default:i},a=n(45985);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var o=i.prototype;return o._getFormat=function(){return a.formatWeekdayAndDay},o.generateRenderOptions=function(){return r({},e.prototype.generateRenderOptions.call(this),{isGenerateTimePanelData:!0})},o._isRenderHeaderPanelEmptyCell=function(){return!0},i}(o.default);t.default=l,e.exports=t.default,e.exports.default=t.default},4453:function(e,t,n){t.default=void 0;var i=s(n(99393)),o=n(27728),a=s(n(72655)),r=n(34279);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var a,s,d=i.prototype;return d._getElementClass=function(){return"dx-scheduler-work-space-week"},d._calculateViewStartDate=function(){return(0,r.calculateViewStartDate)(this.option("startDate"),this._firstDayOfWeek())},a=i,(s=[{key:"type",get:function(){return o.VIEWS.WEEK}}])&&l(a.prototype,s),i}(a.default);(0,i.default)("dxSchedulerWorkSpaceWeek",d);var c=d;t.default=c,e.exports=t.default,e.exports.default=t.default},22928:function(e,t,n){t.default=void 0;var i=s(n(99393)),o=n(83866),a=s(n(4453)),r=n(27728);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){var t,n,i,a;function s(){for(var t,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(t=e.call.apply(e,[this].concat(i))||this)._getWeekendsCount=o.getWeekendsCount,t}return n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n),s.prototype._getElementClass=function(){return"dx-scheduler-work-space-work-week"},i=s,(a=[{key:"type",get:function(){return r.VIEWS.WORK_WEEK}}])&&l(i.prototype,a),s}(a.default);(0,i.default)("dxSchedulerWorkSpaceWorkWeek",d);var c=d;t.default=c,e.exports=t.default,e.exports.default=t.default},31986:function(e,t,n){t.DateHeaderDataGenerator=void 0;var i,o=(i=n(91198))&&i.__esModule?i:{default:i},a=n(98140),r=n(45985),s=["startDate","endDate","isFirstGroupCell","isLastGroupCell"];function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var u=function(){function e(e){this._viewDataGenerator=e}var t=e.prototype;return t.getCompleteDateHeaderMap=function(e,t){var n=[];if(e.isGenerateWeekDaysHeaderData){var i=this._generateWeekDaysHeaderRowMap(e,t);n.push(i)}var o=this._generateHeaderDateRow(e,t);return n.push(o),n},t._generateWeekDaysHeaderRowMap=function(e,t){for(var n=e.isGroupedByDate,i=e.groups,o=e.groupOrientation,s=e.startDayHour,u=e.endDayHour,d=e.hoursInterval,c=e.isHorizontalGrouping,h=e.intervalCount,f=this._viewDataGenerator.getCellCountInDay(s,u,d),p=(0,r.getHorizontalGroupCount)(i,o),g=t[0][0].allDay?1:0,m=n?p*f:f,_=(0,a.getGroupCount)(i),v=c&&!n?_:1,y=this._viewDataGenerator.daysInInterval*h*v,x=[],b=0;b<y;b+=1){var w=t[g][b*m];x.push(l({},w,{colSpan:m,text:(0,r.formatWeekdayAndDay)(w.startDate),isFirstGroupCell:!1,isLastGroupCell:!1}))}return x},t._generateHeaderDateRow=function(e,t){var n=e.today,i=e.isGroupedByDate,a=e.groupOrientation,u=e.groups,d=e.headerCellTextFormat,c=e.getDateForHeaderText,h=e.interval,f=e.startViewDate,p=e.startDayHour,g=e.endDayHour,m=e.hoursInterval,_=e.intervalCount,v=e.currentDate,y=e.viewType,x=(0,r.getHorizontalGroupCount)(u,a),b=t[0][0].allDay?1:0,w=i?x:1,C="vertical"===a,S=this._viewDataGenerator.getCellCount({intervalCount:_,currentDate:v,viewType:y,hoursInterval:m,startDayHour:p,endDayHour:g}),k=this._viewDataGenerator.getCellCountInDay(p,g,m);return(i?t[b].filter((function(e,t){return t%x==0})):t[b]).map((function(e,t){var a=e.startDate,u=(e.endDate,e.isFirstGroupCell),g=e.isLastGroupCell;return l({},function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s),{startDate:a,text:(0,r.getHeaderCellText)(t%S,a,d,c,{interval:h,startViewDate:f,startDayHour:p,cellCountInDay:k}),today:o.default.sameDate(a,n),colSpan:w,isFirstGroupCell:i||u&&!C,isLastGroupCell:i||g&&!C})}))},t.generateDateHeaderData=function(e,t,n){var i=n.isGenerateWeekDaysHeaderData,o=n.cellWidth,a=n.isProvideVirtualCellsWidth,r=n.startDayHour,s=n.endDayHour,l=n.hoursInterval,u=[],d={},c=o||0;i&&(d=this._generateDateHeaderDataRow(n,e,t,this._viewDataGenerator.getCellCountInDay(r,s,l),0,c),u.push(d.dateRow));var h=this._generateDateHeaderDataRow(n,e,t,1,i?1:0,c);return u.push(h.dateRow),{dataMap:u,leftVirtualCellWidth:a?h.leftVirtualCellWidth:void 0,rightVirtualCellWidth:a?h.rightVirtualCellWidth:void 0,leftVirtualCellCount:h.leftVirtualCellCount,rightVirtualCellCount:h.rightVirtualCellCount,weekDayLeftVirtualCellWidth:d.leftVirtualCellWidth,weekDayRightVirtualCellWidth:d.rightVirtualCellWidth,weekDayLeftVirtualCellCount:d.leftVirtualCellCount,weekDayRightVirtualCellCount:d.rightVirtualCellCount}},t._generateDateHeaderDataRow=function(e,t,n,i,o,a){var s=e.startCellIndex,l=e.cellCount,u=e.isProvideVirtualCellsWidth,d=e.groups,c=e.groupOrientation,h=e.isGroupedByDate,f=(0,r.getHorizontalGroupCount)(d,c),p=h?f*i:i,g=Math.floor(s/p),m=(0,r.getDisplayedCellCount)(l,n),_=Math.ceil((s+m)/p),v=g*p,y=(0,r.getTotalCellCountByCompleteData)(n)-_*p;return{dateRow:t[o].slice(g,_),leftVirtualCellCount:v,leftVirtualCellWidth:u?v*a:void 0,rightVirtualCellCount:y,rightVirtualCellWidth:u?y*a:void 0}},e}();t.DateHeaderDataGenerator=u},9427:function(e,t,n){t.GroupedDataMapProvider=void 0;var i,o=(i=n(91198))&&i.__esModule?i:{default:i},a=n(45985),r=function(){function e(e,t,n,i){this.groupedDataMap=e.generateGroupedDataMap(t),this.completeViewDataMap=n,this._viewOptions=i}var t=e.prototype;return t.getGroupStartDate=function(e){var t=this.getFirstGroupRow(e);if(t)return t[0].cellData.startDate},t.getGroupEndDate=function(e){var t=this.getLastGroupRow(e);if(t)return t[t.length-1].cellData.endDate},t.findGroupCellStartDate=function(e,t,n,i,a){if(i)return this.findAllDayGroupCellStartDate(e,t);var r=this.getGroupFromDateTableGroupMap(e),s=function(e,i){var s=r[e][i].cellData,l=s.startDate,u=s.endDate;if(a&&(l=o.default.trimTime(l),u=o.default.setToDayEnd(l)),o.default.intervalsOverlap({firstMin:t,firstMax:n,secondMin:l,secondMax:u}))return l},l=function(){for(var e=r[0].length,t=0;t<e;++t)for(var n=0;n<r.length;++n){var i=s(n,t);if(i)return i}}(),u=function(){for(var e=0;e<r.length;++e)for(var t=r[e],n=0;n<t.length;++n){var i=s(e,n);if(i)return i}}();return l>u?u:l},t.findAllDayGroupCellStartDate=function(e,t){var n=this.getGroupStartDate(e);return n>t?n:t},t.findCellPositionInMap=function(e){for(var t=this,n=e.groupIndex,i=e.startDate,r=e.isAllDay,s=e.index,l=r?o.default.trimTime(i).getTime():i.getTime(),u=function(e){if(!(0,a.isDateAndTimeView)(t._viewOptions.viewType))return o.default.sameDate(i,e.startDate);var n=e.startDate.getTime(),s=e.endDate.getTime();return r?e.allDay&&l>=n&&l<=s:l>=n&&l<s},d=this.groupedDataMap,c=d.allDayPanelGroupedMap,h=d.dateTableGroupedMap,f=r&&!this._viewOptions.isVerticalGrouping?[c[n]]||0:h[n]||[],p=0;p<f.length;++p)for(var g=f[p],m=0;m<g.length;++m){var _=g[m],v=_.cellData;if(this._isSameGroupIndexAndIndex(v,n,s)&&u(v))return _.position}},t._isSameGroupIndexAndIndex=function(e,t,n){return e.groupIndex===t&&(void 0===n||e.index===n)},t.getCellsGroup=function(e){var t=this.groupedDataMap.dateTableGroupedMap[e];if(t)return t[0][0].cellData.groups},t.getCompletedGroupsInfo=function(){var e=this;return this.groupedDataMap.dateTableGroupedMap.map((function(t){var n=t[0][0].cellData,i=n.allDay,o=n.groupIndex;return{allDay:i,groupIndex:o,startDate:e.getGroupStartDate(o),endDate:e.getGroupEndDate(o)}})).filter((function(e){return!!e.startDate}))},t.getGroupIndices=function(){return this.getCompletedGroupsInfo().map((function(e){return e.groupIndex}))},t.getGroupFromDateTableGroupMap=function(e){return this.groupedDataMap.dateTableGroupedMap[e]},t.getFirstGroupRow=function(e){var t=this.getGroupFromDateTableGroupMap(e);if(t)return t[0][0].cellData.allDay?t[1]:t[0]},t.getLastGroupRow=function(e){var t=this.groupedDataMap.dateTableGroupedMap[e];if(t)return t[t.length-1]},t.getLastGroupCellPosition=function(e){var t=this.getLastGroupRow(e);return null==t?void 0:t[(null==t?void 0:t.length)-1].position},t.getRowCountInGroup=function(e){var t=this.getLastGroupRow(e);return(t[t.length-1].cellData.index+1)/t.length},e}();t.GroupedDataMapProvider=r},16925:function(e,t,n){t.TimePanelDataGenerator=void 0;var i=n(45985),o=n(34279),a=["allDay","startDate","endDate","groups","groupIndex","isFirstGroupCell","isLastGroupCell","index"];function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var s=function(){function e(e){this._viewDataGenerator=e}var t=e.prototype;return t.getCompleteTimePanelMap=function(e,t){var n=e.startViewDate,i=e.cellDuration,s=e.startDayHour,l=e.isVerticalGrouping,u=e.intervalCount,d=e.currentDate,c=e.viewType,h=e.hoursInterval,f=e.endDayHour,p=this._viewDataGenerator.getRowCount({intervalCount:u,currentDate:d,viewType:c,hoursInterval:h,startDayHour:s,endDayHour:f}),g=this._viewDataGenerator.getCellCount({intervalCount:u,currentDate:d,viewType:c,hoursInterval:h,startDayHour:s,endDayHour:f}),m=0;return t.map((function(e,t){var u=e[0],d=u.allDay,c=u.startDate,h=(u.endDate,u.groups),f=u.groupIndex,_=u.isFirstGroupCell,v=u.isLastGroupCell,y=u.index,x=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(u,a);d&&(m+=1);var b=(t-m)%p;return r({},x,{startDate:c,allDay:d,text:(0,o.getTimePanelCellText)(b,c,n,i,s),groups:l?h:void 0,groupIndex:l?f:void 0,isFirstGroupCell:l&&_,isLastGroupCell:l&&v,index:Math.floor(y/g)})}))},t.generateTimePanelData=function(e,t){var n=t.startRowIndex,o=t.rowCount,a=t.topVirtualRowHeight,r=t.bottomVirtualRowHeight,s=t.isGroupedAllDayPanel,l=t.isVerticalGrouping,u=t.isAllDayPanelVisible,d=n+(l||!u?0:1),c=(0,i.getDisplayedRowCount)(o,e),h=e.slice(d,d+c),f={topVirtualRowHeight:a,bottomVirtualRowHeight:r,isGroupedAllDayPanel:s},p=this._generateTimePanelDataFromMap(h,s).previousGroupedData;return f.groupedData=p,f},t._generateTimePanelDataFromMap=function(e,t){return e.reduce((function(e,n){var i=e.previousGroupIndex,o=e.previousGroupedData,a=n.groupIndex;return a!==i&&o.push({dateTable:[],isGroupedAllDayPanel:t,groupIndex:a}),n.allDay?o[o.length-1].allDayPanel=n:o[o.length-1].dateTable.push(n),{previousGroupIndex:a,previousGroupedData:o}}),{previousGroupIndex:-1,previousGroupedData:[]})},e}();t.TimePanelDataGenerator=s},28673:function(e,t,n){t.getViewDataGeneratorByViewType=void 0;var i=n(27728),o=n(18177),a=n(1482),r=n(96444),s=n(54951),l=n(9794),u=n(27536);t.getViewDataGeneratorByViewType=function(e){switch(e){case i.VIEWS.MONTH:return new r.ViewDataGeneratorMonth;case i.VIEWS.TIMELINE_MONTH:return new s.ViewDataGeneratorTimelineMonth;case i.VIEWS.DAY:case i.VIEWS.TIMELINE_DAY:return new a.ViewDataGeneratorDay;case i.VIEWS.WEEK:case i.VIEWS.TIMELINE_WEEK:return new l.ViewDataGeneratorWeek;case i.VIEWS.WORK_WEEK:case i.VIEWS.TIMELINE_WORK_WEEK:return new u.ViewDataGeneratorWorkWeek;default:return new o.ViewDataGenerator}}},18177:function(e,t,n){t.ViewDataGenerator=void 0;var i,o=(i=n(91198))&&i.__esModule?i:{default:i},a=n(27728),r=n(98140),s=n(45985);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var h=o.default.dateToMilliseconds("hour"),f=o.default.dateToMilliseconds("day"),p=function(){function e(){}var t,n,i=e.prototype;return i.isSkippedDate=function(){return!1},i.getStartViewDate=function(e){return this._calculateStartViewDate(e)},i.getCompleteViewDataMap=function(e){var t,n=e.groups,i=e.isGroupedByDate,o=e.isHorizontalGrouping,a=e.isVerticalGrouping,s=e.intervalCount,l=e.currentDate,d=e.viewType,c=e.startDayHour,h=e.endDayHour,f=e.hoursInterval;this._setVisibilityDates(e),this.setHiddenInterval(c,h,f);var p=(0,r.getAllGroups)(n),g=this.getCellCount({intervalCount:s,currentDate:l,viewType:d,startDayHour:c,endDayHour:h,hoursInterval:f}),m=this.getRowCount({intervalCount:s,currentDate:l,viewType:d,hoursInterval:f,startDayHour:c,endDayHour:h}),_=[],v=this._generateAllDayPanelData(e,m,g),y=this._generateViewCellsData(e,m,g);return v&&_.push(v),(t=_).push.apply(t,u(y)),o&&!i&&(_=this._transformViewDataMapForHorizontalGrouping(_,p)),a&&(_=this._transformViewDataMapForVerticalGrouping(_,p)),i&&(_=this._transformViewDataMapForGroupingByDate(_,p)),this._addKeysToCells(_)},i._transformViewDataMapForHorizontalGrouping=function(e,t){var n=e.map((function(e){return e.slice()}));return t.slice(1).forEach((function(t,i){var o=i+1;e.forEach((function(e,i){var a,r=e.map((function(e){return l({},e,{groups:t,groupIndex:o})}));(a=n[i]).push.apply(a,u(r))}))})),n},i._transformViewDataMapForVerticalGrouping=function(e,t){var n=e.map((function(e){return e.slice()}));return t.slice(1).forEach((function(t,i){var o=i+1,a=e.map((function(e){return e.map((function(e){return l({},e,{groupIndex:o,groups:t})}))}));n.push.apply(n,u(a))})),n},i._transformViewDataMapForGroupingByDate=function(e,t){var n=t.slice(1),i=n.length;return e.map((function(e){return e.reduce((function(e,t){return[].concat(u(e),[l({},t,{isFirstGroupCell:!0,isLastGroupCell:0===i})],u(n.map((function(e,n){return l({},t,{groups:e,groupIndex:n+1,isFirstGroupCell:!1,isLastGroupCell:n===i-1})}))))}),[])}))},i._addKeysToCells=function(e){var t=e[0].length;return e.reduce((function(e,n,i){var o=e.allDayPanelsCount,a=e.currentViewDataMap,r=n[0].allDay,s=(i-o)*t,l=r?o+1:o;return a[i].forEach((function(e,t){e.key=s+t})),{allDayPanelsCount:l,currentViewDataMap:a}}),{allDayPanelsCount:0,currentViewDataMap:e}).currentViewDataMap},i.generateViewDataMap=function(e,t){var n=t.rowCount,i=t.startCellIndex,o=t.startRowIndex,a=t.cellCount,r=t.isVerticalGrouping,l=t.isAllDayPanelVisible,u=function(e,t,n,i){var o=void 0!==i?n+i:void 0;return e.slice(n,o).map((function(e,n){return{cellData:e,position:{rowIndex:t,columnIndex:n}}}))},d=o,c=[];this._isStandaloneAllDayPanel(r,l)&&(d++,c=u(e[0],0,i,a));var h=(0,s.getDisplayedRowCount)(n,e);return{allDayPanelMap:c,dateTableMap:e.slice(d,d+h).map((function(e,t){return u(e,t,i,a)}))}},i._isStandaloneAllDayPanel=function(e,t){return!e&&t},i.getViewDataFromMap=function(e,t,n){var i=n.topVirtualRowHeight,o=n.bottomVirtualRowHeight,a=n.leftVirtualCellWidth,r=n.rightVirtualCellWidth,l=n.cellCount,u=n.rowCount,d=n.startRowIndex,c=n.startCellIndex,h=n.isProvideVirtualCellsWidth,f=n.isGroupedAllDayPanel,p=n.isVerticalGrouping,g=n.isAllDayPanelVisible,m=t.allDayPanelMap,_=t.dateTableMap.reduce((function(e,t){var n=e.previousGroupIndex,i=e.previousGroupedData,o=t.map((function(e){return e.cellData})),a=o[0],r=a.allDay,s=a.groupIndex;return s!==n&&i.push({dateTable:[],isGroupedAllDayPanel:f,groupIndex:s}),r?i[i.length-1].allDayPanel=o:i[i.length-1].dateTable.push(o),{previousGroupedData:i,previousGroupIndex:s}}),{previousGroupIndex:-1,previousGroupedData:[]}).previousGroupedData;this._isStandaloneAllDayPanel(p,g)&&(_[0].allDayPanel=m.map((function(e){return e.cellData})));var v=(0,s.getTotalCellCountByCompleteData)(e),y=(0,s.getTotalRowCountByCompleteData)(e),x=(0,s.getDisplayedCellCount)(l,e),b=(0,s.getDisplayedRowCount)(u,e);return{groupedData:_,topVirtualRowHeight:i,bottomVirtualRowHeight:o,leftVirtualCellWidth:h?a:void 0,rightVirtualCellWidth:h?r:void 0,isGroupedAllDayPanel:f,leftVirtualCellCount:c,rightVirtualCellCount:void 0===l?0:v-c-x,topVirtualRowCount:d,bottomVirtualRowCount:y-d-b}},i._generateViewCellsData=function(e,t,n){for(var i=[],o=0;o<t;o+=1)i.push(this._generateCellsRow(e,!1,o,t,n));return i},i._generateAllDayPanelData=function(e,t,n){return e.isAllDayPanelVisible?this._generateCellsRow(e,!0,0,t,n):null},i._generateCellsRow=function(e,t,n,i,o){for(var a=[],r=0;r<o;++r){var s=this.getCellData(n,r,e,t);s.index=n*o+r,s.isFirstGroupCell=this._isFirstGroupCell(n,r,e,i,o),s.isLastGroupCell=this._isLastGroupCell(n,r,e,i,o),a.push(s)}return a},i.getCellData=function(e,t,n,i){return i?this.prepareAllDayCellData(n,e,t):this.prepareCellData(n,e,t)},i.prepareCellData=function(e,t,n){var i=e.groups,o=e.startDayHour,a=e.endDayHour,s=e.interval,l=e.hoursInterval,u=(0,r.getAllGroups)(i),d=this.getDateByCellIndices(e,t,n,this.getCellCountInDay(o,a,l)),c={startDate:d,endDate:this.calculateEndDate(d,s,a),allDay:this.tableAllDay,groupIndex:0};return u.length>0&&(c.groups=u[0]),c},i.prepareAllDayCellData=function(e,t,n){var i=this.prepareCellData(e,t,n),a=o.default.trimTime(i.startDate);return l({},i,{startDate:a,endDate:a,allDay:!0})},i.getDateByCellIndices=function(e,t,n,i){var a=e.startViewDate,r=e.startDayHour,l=e.interval,u=e.firstDayOfWeek,d=e.intervalCount,c=a.getHours()!==Math.floor(r);if(c){var h=(0,s.getStartViewDateWithoutDST)(a,r);a=new Date(h-o.default.dateToMilliseconds("day"))}var f=this.getCellCount(e),p=this.getRowCount(e),g=this._calculateCellIndex(t,n,p,f),m=this.getMillisecondsOffset(g,l,i),_=this.isWorkView?this.getTimeOffsetByColumnIndex(n,this.getFirstDayOfWeek(u),f,d):0,v=a.getTime(),y=new Date(v+m+_),x=c?0:o.default.getTimezonesDifference(a,y);return y.setTime(y.getTime()+x),y},i.getMillisecondsOffset=function(e,t,n){return t*e+Math.floor(e/n)*this.hiddenInterval},i.getTimeOffsetByColumnIndex=function(e,t,n,i){var o=Math.max(0,t-1),a=n/i,r=Math.floor((e+o)/a);return f*r*2},i.calculateEndDate=function(e,t,n){var i=new Date(e);return i.setMilliseconds(i.getMilliseconds()+Math.round(t)),i},i._calculateCellIndex=function(e,t,n,i){return(0,s.calculateCellIndex)(e,t,n)},i.generateGroupedDataMap=function(e){var t=e.allDayPanelMap,n=e.dateTableMap.reduce((function(e,t){var n=e.previousGroupedDataMap,i=e.previousRowIndex,o=e.previousGroupIndex,a=t[0].cellData.groupIndex,r=a===o?i+1:0;return t.forEach((function(e){var t=e.cellData.groupIndex;n[t]||(n[t]=[]),n[t][r]||(n[t][r]=[]),n[t][r].push(e)})),{previousGroupedDataMap:n,previousRowIndex:r,previousGroupIndex:a}}),{previousGroupedDataMap:[],previousRowIndex:-1,previousGroupIndex:-1}).previousGroupedDataMap,i=[];return null==t||t.forEach((function(e){var t=e.cellData.groupIndex;i[t]||(i[t]=[]),i[t].push(e)})),{allDayPanelGroupedMap:i,dateTableGroupedMap:n}},i._isFirstGroupCell=function(e,t,n,i,o){var s=n.groupOrientation,l=n.groups,u=n.isGroupedByDate,d=(0,r.getGroupCount)(l);return u?t%d==0:s===a.HORIZONTAL_GROUP_ORIENTATION?t%o==0:e%i==0},i._isLastGroupCell=function(e,t,n,i,o){var s=n.groupOrientation,l=n.groups,u=n.isGroupedByDate,d=(0,r.getGroupCount)(l);return u?(t+1)%d==0:s===a.HORIZONTAL_GROUP_ORIENTATION?(t+1)%o==0:(e+1)%i==0},i.markSelectedAndFocusedCells=function(e,t){var n=this,i=t.selectedCells,o=t.focusedCell;if(!i&&!o)return e;var a=e.allDayPanelMap,r=e.dateTableMap.map((function(e){return n._markSelectedAndFocusedCellsInRow(e,i,o)}));return{allDayPanelMap:this._markSelectedAndFocusedCellsInRow(a,i,o),dateTableMap:r}},i._markSelectedAndFocusedCellsInRow=function(e,t,n){return e.map((function(e){var i=e.cellData,o=i.index,a=i.groupIndex,r=i.allDay,s=i.startDate,u=t.findIndex((function(e){var t=e.index,n=e.groupIndex,i=e.allDay,l=e.startDate;return a===n&&(o===t||void 0===t&&s.getTime()===l.getTime())&&!!r==!!i})),d=!!n&&o===n.cellData.index&&a===n.cellData.groupIndex&&r===n.cellData.allDay;return d||-1!==u?l({},e,{cellData:l({},e.cellData,{isSelected:u>-1,isFocused:d})}):e}))},i.getInterval=function(e){return void 0===this._interval&&(this._interval=e*h),this._interval},i._getIntervalDuration=function(e){return o.default.dateToMilliseconds("day")*e},i._setVisibilityDates=function(){},i.getCellCountInDay=function(e,t,n){var i=(0,s.calculateDayDuration)(e,t)/n;return Math.ceil(i)},i.getCellCount=function(e){var t=e.intervalCount,n=e.viewType,i=e.startDayHour,o=e.endDayHour,a=e.hoursInterval,r=this.getCellCountInDay(i,o,a),l=(0,s.isHorizontalView)(n)?r:1;return this.daysInInterval*t*l},i.getRowCount=function(e){var t=e.viewType,n=e.startDayHour,i=e.endDayHour,o=e.hoursInterval,a=this.getCellCountInDay(n,i,o);return(0,s.isHorizontalView)(t)?1:a},i.setHiddenInterval=function(e,t,n){this.hiddenInterval=f-this.getVisibleDayDuration(e,t,n)},i.getVisibleDayDuration=function(e,t,n){return n*this.getCellCountInDay(e,t,n)*h},i.getFirstDayOfWeek=function(e){return e},t=e,(n=[{key:"daysInInterval",get:function(){return 1}},{key:"isWorkView",get:function(){return!1}},{key:"tableAllDay",get:function(){return!1}}])&&c(t.prototype,n),e}();t.ViewDataGenerator=p},1482:function(e,t,n){t.ViewDataGeneratorDay=void 0;var i=n(58824);function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a=function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n),a.prototype._calculateStartViewDate=function(e){return(0,i.calculateStartViewDate)(e.currentDate,e.startDayHour,e.startDate,this._getIntervalDuration(e.intervalCount))},a}(n(18177).ViewDataGenerator);t.ViewDataGeneratorDay=a},96444:function(e,t,n){t.ViewDataGeneratorMonth=void 0;var i,o=n(45985),a=n(18177),r=(i=n(91198))&&i.__esModule?i:{default:i},s=n(19097);function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=r.default.dateToMilliseconds("day"),c=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var a,c,h=i.prototype;return h.getCellData=function(t,n,i,o){var a=e.prototype.getCellData.call(this,t,n,i,!1),r=a.startDate,l=i.indicatorTime,u=i.timeZoneCalculator,d=i.intervalCount;return a.today=this.isCurrentDate(r,l,u),a.otherMonth=this.isOtherMonth(r,this._minVisibleDate,this._maxVisibleDate),a.firstDayOfMonth=(0,s.isFirstCellInMonthWithIntervalCount)(r,d),a.text=(0,s.getCellText)(r,d),a},h.isCurrentDate=function(e,t,n){return r.default.sameDate(e,(0,o.getToday)(t,n))},h.isOtherMonth=function(e,t,n){return!r.default.dateInRange(e,t,n,"date")},h._calculateCellIndex=function(e,t,n,i){return(0,s.calculateCellIndex)(e,t,n,i)},h.calculateEndDate=function(e,t,n){return(0,o.setOptionHour)(e,n)},h.getInterval=function(){return d},h._calculateStartViewDate=function(e){return(0,s.calculateStartViewDate)(e.currentDate,e.startDayHour,e.startDate,e.intervalCount,this.getFirstDayOfWeek(e.firstDayOfWeek))},h._setVisibilityDates=function(e){var t=e.intervalCount,n=e.startDate,i=e.currentDate,o=r.default.getFirstMonthDate(n),a=(0,s.getViewStartByOptions)(n,i,t,o);this._minVisibleDate=new Date(a.setDate(1));var l=new Date(a.setMonth(a.getMonth()+t));this._maxVisibleDate=new Date(l.setDate(0))},h.getCellCount=function(){return 7},h.getRowCount=function(e){return 4*e.intervalCount+2},h.getCellCountInDay=function(){return 1},h.setHiddenInterval=function(){this.hiddenInterval=0},a=i,(c=[{key:"tableAllDay",get:function(){}}])&&l(a.prototype,c),i}(a.ViewDataGenerator);t.ViewDataGeneratorMonth=c},54951:function(e,t,n){t.ViewDataGeneratorTimelineMonth=void 0;var i,o=n(18177),a=n(19097),r=n(75481),s=n(45985);function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=((i=n(91198))&&i.__esModule?i:{default:i}).default.dateToMilliseconds("day"),d=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var o=i.prototype;return o._calculateCellIndex=function(e,t,n,i){return(0,a.calculateCellIndex)(e,t,n,i)},o.calculateEndDate=function(e,t,n){return(0,s.setOptionHour)(e,n)},o.getInterval=function(){return u},o._calculateStartViewDate=function(e){return(0,r.calculateStartViewDate)(e.currentDate,e.startDayHour,e.startDate,e.intervalCount)},o.getCellCount=function(e){for(var t=e.intervalCount,n=e.currentDate,i=0,o=1;o<=t;o++)i+=new Date(n.getFullYear(),n.getMonth()+o,0).getDate();return i},o.setHiddenInterval=function(){this.hiddenInterval=0},i}(o.ViewDataGenerator);t.ViewDataGeneratorTimelineMonth=d},9794:function(e,t,n){t.ViewDataGeneratorWeek=void 0;var i=n(34279);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var s,l,u=r.prototype;return u._getIntervalDuration=function(e){return(0,i.getIntervalDuration)(e)},u._calculateStartViewDate=function(e){return(0,i.calculateStartViewDate)(e.currentDate,e.startDayHour,e.startDate,this._getIntervalDuration(e.intervalCount),this.getFirstDayOfWeek(e.firstDayOfWeek))},s=r,(l=[{key:"daysInInterval",get:function(){return 7}}])&&o(s.prototype,l),r}(n(18177).ViewDataGenerator);t.ViewDataGeneratorWeek=r},27536:function(e,t,n){t.ViewDataGeneratorWorkWeek=void 0;var i=n(83866);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var s,l,u=r.prototype;return u.isSkippedDate=function(e){return(0,i.isDataOnWeekend)(e)},u._calculateStartViewDate=function(e){return(0,i.calculateStartViewDate)(e.currentDate,e.startDayHour,e.startDate,this._getIntervalDuration(e.intervalCount),this.getFirstDayOfWeek(e.firstDayOfWeek))},u.getFirstDayOfWeek=function(e){return e||1},s=r,(l=[{key:"daysInInterval",get:function(){return 5}},{key:"isWorkView",get:function(){return!0}}])&&o(s.prototype,l),r}(n(9794).ViewDataGeneratorWeek);t.ViewDataGeneratorWorkWeek=r},60611:function(e,t,n){t.default=void 0;var i=f(n(91198)),o=n(34854),a=n(97205),r=n(45985),s=n(31986),l=n(9427),u=n(16925),d=n(28673),c=f(n(32511)),h=["groups","groupOrientation","groupByDate","isAllDayPanelVisible"];function f(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var m=function(){function e(e){this.viewDataGenerator=(0,d.getViewDataGeneratorByViewType)(e),this.viewData={},this.completeViewDataMap=[],this.completeDateHeaderMap=[],this.viewDataMap={},this._groupedDataMapProvider=null}var t,n,f=e.prototype;return f.isSkippedDate=function(e){return this.viewDataGenerator.isSkippedDate(e)},f.update=function(e,t){this.viewDataGenerator=(0,d.getViewDataGeneratorByViewType)(e.viewType);var n=this.viewDataGenerator,i=new s.DateHeaderDataGenerator(n),o=new u.TimePanelDataGenerator(n),a=this._transformRenderOptions(e);a.interval=this.viewDataGenerator.getInterval(a.hoursInterval),this._options=a,t&&(this.completeViewDataMap=n.getCompleteViewDataMap(a),this.completeDateHeaderMap=i.getCompleteDateHeaderMap(a,this.completeViewDataMap),a.isGenerateTimePanelData&&(this.completeTimePanelMap=o.getCompleteTimePanelMap(a,this.completeViewDataMap))),this.viewDataMap=n.generateViewDataMap(this.completeViewDataMap,a),this.updateViewData(a),this._groupedDataMapProvider=new l.GroupedDataMapProvider(this.viewDataGenerator,this.viewDataMap,this.completeViewDataMap,{isVerticalGrouping:a.isVerticalGrouping,viewType:a.viewType}),this.dateHeaderData=i.generateDateHeaderData(this.completeDateHeaderMap,this.completeViewDataMap,a),a.isGenerateTimePanelData&&(this.timePanelData=o.generateTimePanelData(this.completeTimePanelMap,a))},f.createGroupedDataMapProvider=function(){this._groupedDataMapProvider=new l.GroupedDataMapProvider(this.viewDataGenerator,this.viewDataMap,this.completeViewDataMap,{isVerticalGrouping:this._options.isVerticalGrouping,viewType:this._options.viewType})},f.updateViewData=function(e){var t=this._transformRenderOptions(e);this.viewDataMapWithSelection=this.viewDataGenerator.markSelectedAndFocusedCells(this.viewDataMap,t),this.viewData=this.viewDataGenerator.getViewDataFromMap(this.completeViewDataMap,this.viewDataMapWithSelection,t)},f._transformRenderOptions=function(e){var t=e.groups,n=e.groupOrientation,i=e.groupByDate,o=e.isAllDayPanelVisible;return p({},function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,h),{startViewDate:this.viewDataGenerator._calculateStartViewDate(e),isVerticalGrouping:(0,a.isVerticalGroupingApplied)(t,n),isHorizontalGrouping:(0,a.isHorizontalGroupingApplied)(t,n),isGroupedByDate:(0,a.isGroupingByDate)(t,n,i),isGroupedAllDayPanel:(0,r.calculateIsGroupedAllDayPanel)(t,n,o),groups:t,groupOrientation:n,isAllDayPanelVisible:o})},f.getGroupPanelData=function(e){var t=this._transformRenderOptions(e);if(t.groups.length>0){var n=this.getCellCount(t);return(0,o.getGroupPanelData)(t.groups,n,t.isGroupedByDate,t.isGroupedByDate?1:n)}},f.getGroupStartDate=function(e){return this._groupedDataMapProvider.getGroupStartDate(e)},f.getGroupEndDate=function(e){return this._groupedDataMapProvider.getGroupEndDate(e)},f.findGroupCellStartDate=function(e,t,n,i,o){return this._groupedDataMapProvider.findGroupCellStartDate(e,t,n,i,o)},f.findAllDayGroupCellStartDate=function(e,t){return this._groupedDataMapProvider.findAllDayGroupCellStartDate(e,t)},f.findCellPositionInMap=function(e){return this._groupedDataMapProvider.findCellPositionInMap(e)},f.getCellsGroup=function(e){return this._groupedDataMapProvider.getCellsGroup(e)},f.getCompletedGroupsInfo=function(){return this._groupedDataMapProvider.getCompletedGroupsInfo()},f.getGroupIndices=function(){return this._groupedDataMapProvider.getGroupIndices()},f.getLastGroupCellPosition=function(e){return this._groupedDataMapProvider.getLastGroupCellPosition(e)},f.getRowCountInGroup=function(e){return this._groupedDataMapProvider.getRowCountInGroup(e)},f.getCellData=function(e,t,n){return n&&!this._options.isVerticalGrouping?this.viewDataMap.allDayPanelMap[t].cellData:this.viewDataMap.dateTableMap[e][t].cellData},f.getCellsByGroupIndexAndAllDay=function(e,t){var n=this._getRowCountWithAllDayRows(),i=this._options.isAllDayPanelVisible,o=this._options.isVerticalGrouping?e*n:0,a=this._options.isVerticalGrouping?(e+1)*n-1:n,r=i&&!t?o+1:o,s=t?r:a;return this.completeViewDataMap.slice(r,s+1).map((function(t){return t.filter((function(t){var n=t.groupIndex;return e===n}))}))},f.getGroupData=function(e){var t=this.viewData.groupedData;if(this._options.isVerticalGrouping)return t.filter((function(t){return t.groupIndex===e}))[0];var n=function(t){return null==t?void 0:t.filter((function(t){return t.groupIndex===e}))},i=t[0],o=i.allDayPanel,a=i.dateTable,r=[];return a.forEach((function(e){r.push(n(e))})),{allDayPanel:n(o),dateTable:r}},f.getCellCountWithGroup=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.groupedDataMap.dateTableGroupedMap;return n.filter((function(t,n){return n<=e})).reduce((function(e,n){return e+n[t].length}),0)},f.getAllDayPanel=function(e){var t=this.getGroupData(e);return null==t?void 0:t.allDayPanel},f.isGroupIntersectDateInterval=function(e,t,n){var i=this.getGroupStartDate(e);return t<this.getGroupEndDate(e)&&n>i},f.findGlobalCellPosition=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.completeViewDataMap,o=this._options.isAllDayPanelVisible,a=0;a<i.length;a+=1)for(var r=i[a],s=0;s<r.length;s+=1){var l=r[s],u=l.startDate,d=l.endDate,c=l.groupIndex,h=l.allDay;if(t===c&&n===!!h&&this._compareDatesAndAllDay(e,u,d,n))return{position:{columnIndex:s,rowIndex:o&&!this._options.isVerticalGrouping?a-1:a},cellData:l}}},f._compareDatesAndAllDay=function(e,t,n,o){var a=e.getTime(),r=i.default.trimTime(e).getTime(),s=t.getTime(),l=n.getTime();return!o&&a>=s&&a<l||o&&r===s},f.getSkippedDaysCount=function(e,t,n,o){for(var a=this._groupedDataMapProvider.groupedDataMap.dateTableGroupedMap[e],r=0,s=0;s<a.length;s+=1)for(var l=0;l<a[s].length;l+=1){var u=a[s][l].cellData;t.getTime()<u.endDate.getTime()&&n.getTime()>u.startDate.getTime()&&(r+=1)}var d=a[a.length-1][a[0].length-1].cellData,c=i.default.trimTime(d.startDate),h=Math.floor((n.getTime()-c.getTime())/i.default.dateToMilliseconds("day"));return o-r-(h>0?h:0)},f.getColumnsCount=function(){var e=this.viewDataMap.dateTableMap;return e?e[0].length:0},f.getViewEdgeIndices=function(e){return e?{firstColumnIndex:0,lastColumnIndex:this.viewDataMap.allDayPanelMap.length-1,firstRowIndex:0,lastRowIndex:0}:{firstColumnIndex:0,lastColumnIndex:this.viewDataMap.dateTableMap[0].length-1,firstRowIndex:0,lastRowIndex:this.viewDataMap.dateTableMap.length-1}},f.getGroupEdgeIndices=function(e,t){var n=this.groupedDataMap.dateTableGroupedMap[e],i=n[0].length,o=n.length,a=n[0][0].position.columnIndex,r=n[0][i-1].position.columnIndex;return t?{firstColumnIndex:a,lastColumnIndex:r,firstRowIndex:0,lastRowIndex:0}:{firstColumnIndex:a,lastColumnIndex:r,firstRowIndex:n[0][0].position.rowIndex,lastRowIndex:n[o-1][0].position.rowIndex}},f.isSameCell=function(e,t){var n=e.startDate,i=e.groupIndex,o=e.allDay,a=e.index,r=t.startDate,s=t.groupIndex,l=t.allDay,u=t.index;return n.getTime()===r.getTime()&&i===s&&o===l&&a===u},f.getLastViewDate=function(){var e=this.completeViewDataMap,t=e.length-1;return e[t][e[t].length-1].endDate},f.getStartViewDate=function(){return this._options.startViewDate},f.getIntervalDuration=function(e){return this.viewDataGenerator._getIntervalDuration(e)},f.getLastCellEndDate=function(){return new Date(this.getLastViewDate().getTime()-i.default.dateToMilliseconds("minute"))},f.getLastViewDateByEndDayHour=function(e){var t=this.getLastCellEndDate(),n=i.default.dateTimeFromDecimal(e),o=new Date(t.setHours(n.hours,n.minutes));return this._adjustEndDateByDaylightDiff(t,o)},f._adjustEndDateByDaylightDiff=function(e,t){var n=c.default.getDaylightOffsetInMs(e,t),o=new Date(t.getTime()-n);return new Date(o.getTime()-i.default.dateToMilliseconds("minute"))},f.getCellCountInDay=function(e,t,n){return this.viewDataGenerator.getCellCountInDay(e,t,n)},f.getCellCount=function(e){return this.viewDataGenerator.getCellCount(e)},f.getRowCount=function(e){return this.viewDataGenerator.getRowCount(e)},f.getVisibleDayDuration=function(e,t,n){return this.viewDataGenerator.getVisibleDayDuration(e,t,n)},f._getRowCountWithAllDayRows=function(){var e=this._options.isAllDayPanelVisible?1:0;return this.getRowCount(this._options)+e},f.getFirstDayOfWeek=function(e){return this.viewDataGenerator.getFirstDayOfWeek(e)},f.setViewOptions=function(e){this._options=this._transformRenderOptions(e)},f.getViewOptions=function(){return this._options},t=e,(n=[{key:"groupedDataMap",get:function(){return this._groupedDataMapProvider.groupedDataMap}},{key:"hiddenInterval",get:function(){return this.viewDataGenerator.hiddenInterval}}])&&g(t.prototype,n),e}();t.default=m,e.exports=t.default,e.exports.default=t.default},4741:function(e,t,n){var i;t.default=void 0;var o=((i=n(3164))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},6866:function(e,t,n){t.default=void 0;var i,o=n(20576),a=(i=n(38377))&&i.__esModule?i:{default:i},r=n(90057),s=a.default.abstract,l=a.default.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,(0,r.cancelAnimationFrame)(this._stepAnimationFrame)},_stepCore:function(){if(this._isStopped())this._stop();else{if(this._isFinished())return this._finished=!0,void this._complete();this._step(),this._stepAnimationFrame=(0,r.requestAnimationFrame)(this._proxiedStepCore)}},_step:s,_isFinished:o.noop,_stop:o.noop,_complete:o.noop,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}});t.default=l,e.exports=t.default,e.exports.default=t.default},3164:function(e,t,n){t.default=void 0;var i=v(n(68374)),o=v(n(20530)),a=n(58201),r=v(n(28109)),s=v(n(99393)),l=n(6415),u=n(13306),d=n(20576),c=v(n(27765)),h=v(n(90778)),f=v(n(91616)),p=v(n(41183)),g=v(n(2492)),m=n(75811),_=v(n(97218));function v(e){return e&&e.__esModule?e:{default:e}}var y={pullDown:c.default,swipeDown:h.default,simulated:f.default},x=!(0,a.hasWindow)(),b={finishLoading:d.noop,release:d.noop,refresh:d.noop,_optionChanged:function(e){if("onUpdated"!==e.name)return this.callBase.apply(this,arguments)}},w=p.default.inherit(x?b:{_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{pullingDownText:r.default.format("dxScrollView-pullingDownText"),pulledDownText:r.default.format("dxScrollView-pulledDownText"),refreshingText:r.default.format("dxScrollView-refreshingText"),reachBottomText:r.default.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"android"===o.default.real().platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return(0,m.isMaterial)()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass("dx-scrollview"),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var e=(0,i.default)("<div>").addClass("dx-scrollview-content");this._$content.wrapInner(e)},_initTopPocket:function(){var e=this._$topPocket=(0,i.default)("<div>").addClass("dx-scrollview-top-pocket"),t=this._$pullDown=(0,i.default)("<div>").addClass("dx-scrollview-pull-down");e.append(t),this._$content.prepend(e)},_initBottomPocket:function(){var e=this._$bottomPocket=(0,i.default)("<div>").addClass("dx-scrollview-bottom-pocket"),t=this._$reachBottom=(0,i.default)("<div>").addClass("dx-scrollview-scrollbottom"),n=(0,i.default)("<div>").addClass("dx-scrollview-scrollbottom-indicator"),o=new g.default((0,i.default)("<div>")).$element(),a=this._$reachBottomText=(0,i.default)("<div>").addClass("dx-scrollview-scrollbottom-text");this._updateReachBottomText(),t.append(n.append(o)).append(a),e.append(t),this._$content.append(e)},_initLoadPanel:function(){var e=(0,i.default)("<div>").addClass("dx-scrollview-loadpanel").appendTo(this.$element()),t={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(e,_.default,t)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var e=this.option("useNative")?this.option("refreshStrategy"):"simulated",t=y[e];this._strategy=new t(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions:function(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._tryRefreshPocketState()},_tryRefreshPocketState:function(){this._pullDownEnable(this.hasActionSubscription("onPullDown")),this._reachBottomEnable(this.hasActionSubscription("onReachBottom"))},on:function(e){var t=this.callBase.apply(this,arguments);return"pullDown"!==e&&"reachBottom"!==e||this._tryRefreshPocketState(),t},_pullDownEnable:function(e){if(0===arguments.length)return this._pullDownEnabled;this._$pullDown&&this._strategy&&(this._$pullDown.toggle(e),this._strategy.pullDownEnable(e),this._pullDownEnabled=e)},_reachBottomEnable:function(e){if(0===arguments.length)return this._reachBottomEnabled;this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(e),this._strategy.reachBottomEnable(e),this._reachBottomEnabled=e)},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(e){if(arguments.length<1)return this._loadingIndicatorEnabled;this._loadingIndicatorEnabled=e},_pullDownLoading:function(){this.startLoading(),this._pullDownAction()},_reachBottomHandler:function(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading:function(){this.startLoading(),this._reachBottomAction()},_releaseHandler:function(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged:function(e){switch(e.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(e)}},content:function(){return(0,l.getPublicElement)(this._$content.children().eq(1))},release:function(e){return void 0!==e&&this.toggleLoading(!e),this._strategy.release()},toggleLoading:function(e){this._reachBottomEnable(e)},refresh:function(){this.hasActionSubscription("onPullDown")&&(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading:function(){this._loadingIndicator()&&this.$element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading:function(){this._loadPanel.hide(),this._unlock()},_dispose:function(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.$element().remove()}});(0,s.default)("dxScrollView",w);var C=w;t.default=C,e.exports=t.default,e.exports.default=t.default},27765:function(e,t,n){t.default=void 0;var i=d(n(68374)),o=d(n(44504)),a=n(31648),r=d(n(78831)),s=d(n(2492)),l=n(95479),u=n(62754);function d(e){return e&&e.__esModule?e:{default:e}}var c="dx-scrollview-pull-down-loading",h="dx-scrollview-pull-down-ready",f=r.default.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$refreshingText=e._$refreshingText,this._$scrollViewContent=(0,i.default)(e.content()),this._$container=(0,i.default)(e.container()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,o.default)(),this.releaseCallbacks=(0,o.default)(),this.reachBottomCallbacks=(0,o.default)()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=(0,i.default)("<div>").addClass("dx-scrollview-pull-down-image"),t=(0,i.default)("<div>").addClass("dx-scrollview-pull-down-indicator"),n=new s.default((0,i.default)("<div>")).$element(),o=this._$pullDownText=(0,i.default)("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=(0,i.default)("<div>").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=(0,i.default)("<div>").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=(0,i.default)("<div>").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(e).append(t.append(n)).append(o)},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}];(0,l.each)(t,(function(t,n){var i=e._state===n.visibleState?"addClass":"removeClass";n.element[i]("dx-scrollview-pull-down-text-visible")}))},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var e=this._$scrollViewContent.get(0),t=this._$container.get(0);this._bottomBoundary=Math.max(e.clientHeight-t.clientHeight,0)},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},_setTopPocketOffset:function(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd:function(){this.callBase(),this._complete()},handleStop:function(){this.callBase(),this._complete()},_complete:function(){1===this._state&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(e){(0,a.move)(this._$topPocket,{top:e}),(0,a.move)(this._$scrollViewContent,{top:e})},handleScroll:function(e){if(this.callBase(e),2!==this._state){var t=this.location().top,n=(this._location||0)-t;this._location=t,this._isPullDown()?this._pullDownReady():n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){3!==this._state&&(this._state=3,this.reachBottomCallbacks.fire())},_pullDownReady:function(){1!==this._state&&(this._state=1,this._$pullDown.addClass(h),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(c).removeClass(h),this._releaseState())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(c).removeClass(h),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(e){e&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=1},release:function(){var e=new u.Deferred;return this._updateDimensions(),clearTimeout(this._releaseTimeout),3===this._state&&(this._state=0),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),400),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});t.default=f,e.exports=t.default,e.exports.default=t.default},90778:function(e,t,n){t.default=void 0;var i=n(58664),o=c(n(68374)),a=c(n(44504)),r=n(31648),s=n(39611),l=c(n(78831)),u=c(n(2492)),d=n(62754);function c(e){return e&&e.__esModule?e:{default:e}}var h="dx-scrollview-pull-down-loading",f=l.default.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$scrollViewContent=(0,o.default)(e.content()),this._$container=(0,o.default)(e.container()),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=(0,a.default)(),this.releaseCallbacks=(0,a.default)(),this.reachBottomCallbacks=(0,a.default)()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=(0,o.default)("<div>").addClass("dx-scrollview-pull-down-indicator"),t=new u.default((0,o.default)("<div>")).$element();this._$icon=(0,o.default)("<div>").addClass("dx-icon-pulldown"),this._$pullDown.empty().append(this._$icon).append(e.append(t))},_releaseState:function(){this._state=0,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var e=this._$scrollViewContent.get(0),t=this._$container.get(0);this._bottomBoundary=Math.max(e.clientHeight-t.clientHeight,0)},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},handleInit:function(e){this.callBase(e),0===this._state&&0===this._location&&(this._startClientY=(0,s.eventData)(e.originalEvent).y,this._state=4)},handleMove:function(e){this.callBase(e),this._deltaY=(0,s.eventData)(e.originalEvent).y-this._startClientY,4===this._state&&(this._pullDownEnabled&&this._deltaY>0?this._state=5:this._complete()),5===this._state&&(e.preventDefault(),this._movePullDown())},_movePullDown:function(){var e=this._getPullDownHeight(),t=Math.min(3*e,this._deltaY+this._getPullDownStartPosition()),n=180*t/e/3;this._$pullDown.css({opacity:1}).toggleClass("dx-scrollview-pull-down-refreshing",t<e),(0,r.move)(this._$pullDown,{top:t}),this._$icon.css({transform:"rotate("+n+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&5===this._state&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*(0,i.getOuterHeight)(this._$element))},_getPullDownStartPosition:function(){return-Math.round(1.5*(0,i.getOuterHeight)(this._$pullDown))},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){4!==this._state&&5!==this._state||this._releaseState()},handleScroll:function(e){if(this.callBase(e),2!==this._state){var t=this.location().top,n=this._location-t;this._location=t,n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(h),this._releaseState())},_pullDownRefreshing:function(){this._state=2,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(h),(0,r.move)(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(e){this._$topPocket.toggle(e),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=1},release:function(){var e=new d.Deferred;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),800),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});t.default=f,e.exports=t.default,e.exports.default=t.default},91616:function(e,t,n){t.default=void 0;var i=n(58664),o=c(n(68374)),a=c(n(44504)),r=n(95479),s=n(20576),l=n(13306),u=n(54142),d=c(n(2492));function c(e){return e&&e.__esModule?e:{default:e}}var h=Math,f="dx-scrollview-pull-down-loading",p="dx-scrollview-pull-down-ready",g=u.Scroller.inherit({ctor:function(){this._topPocketSize=0,this._bottomPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}];(0,r.each)(t,(function(t,n){var i=e._state===n.visibleState?"addClass":"removeClass";n.element[i]("dx-scrollview-pull-down-text-visible")}))},_initCallbacks:function(){this.pullDownCallbacks=(0,a.default)(),this.releaseCallbacks=(0,a.default)(),this.reachBottomCallbacks=(0,a.default)()},_updateBounds:function(){if("horizontal"!==this._direction){this._topPocketSize=this._$topPocket.get(0).clientHeight,this._bottomPocketSize=this._$bottomPocket.get(0).clientHeight;var e=this._$container.get(0),t=this._$content.get(0),n=Math.max(t.clientHeight-e.clientHeight,0);this._bottomBoundary=n-this._topPocketSize-this._bottomPocketSize}this.callBase()},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():0!==this._state&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){var e=this._$container.get(0);return this._reachBottomEnabled&&Math.round(this._bottomBoundary-Math.ceil(e.scrollTop))<=1},_scrollComplete:function(){this._inBounds()&&1===this._state?this._pullDownRefreshing():this._inBounds()&&3===this._state?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){3!==this._state&&(this._state=3,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return h.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){1!==this._state&&(this._state=1,this._maxOffset=0,this._$pullDown.addClass(p),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(f).removeClass(p),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(f).removeClass(p),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return 0===this._state&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=(0,s.executeAsync)(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(e){this._reachBottomEnabled!==e&&(this._reachBottomEnabled=e,this._updateBounds())},_pullDownEnablingHandler:function(e){this._pullDownEnabled!==e&&(this._pullDownEnabled=e,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=(0,i.getHeight)(this._$topPocket)||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=1},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),m=u.SimulatedStrategy.inherit({_init:function(e){this.callBase(e),this._$pullDown=e._$pullDown,this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,a.default)(),this.releaseCallbacks=(0,a.default)(),this.reachBottomCallbacks=(0,a.default)()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var e=(0,o.default)("<div>").addClass("dx-scrollview-pull-down-image"),t=(0,o.default)("<div>").addClass("dx-scrollview-pull-down-indicator"),n=new d.default((0,o.default)("<div>")).$element(),i=this._$pullDownText=(0,o.default)("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=(0,o.default)("<div>").text(this.option("pullingDownText")).appendTo(i),this._$pulledDownText=(0,o.default)("<div>").text(this.option("pulledDownText")).appendTo(i),this._$refreshingText=(0,o.default)("<div>").text(this.option("refreshingText")).appendTo(i),this._$pullDown.empty().append(e).append(t.append(n)).append(i)},pullDownEnable:function(e){this._eventHandler("pullDownEnabling",e)},reachBottomEnable:function(e){this._eventHandler("reachBottomEnabling",e)},_createScroller:function(e){var t=this,n=t._scrollers[e]=new g(t._scrollerOptions(e));n.pullDownCallbacks.add((function(){t.pullDownCallbacks.fire()})),n.releaseCallbacks.add((function(){t.releaseCallbacks.fire()})),n.reachBottomCallbacks.add((function(){t.reachBottomCallbacks.fire()}))},_scrollerOptions:function(e){return(0,l.extend)(this.callBase(e),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function(){var e=this.callBase();return e.top+=(0,i.getHeight)(this._$topPocket),e},dispose:function(){(0,r.each)(this._scrollers,(function(){this.dispose()})),this.callBase()}});t.default=m,e.exports=t.default,e.exports.default=t.default},82205:function(e,t,n){t.deviceDependentOptions=void 0;var i,o=(i=n(20530))&&i.__esModule?i:{default:i},a=n(60137);t.deviceDependentOptions=function(){return[{device:function(){return!a.nativeScrolling},options:{useNative:!1}},{device:function(e){return!o.default.isSimulator()&&"desktop"===o.default.real().deviceType&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:a.touch,showScrollbar:"onHover"}}]}},41183:function(e,t,n){t.default=void 0;var i=n(58664),o=S(n(68374)),a=S(n(55994)),r=n(60137),s=S(n(47810)),l=n(20576),u=n(35922),d=n(13306),c=n(6415),h=n(58201),f=S(n(20530)),p=S(n(99393)),g=S(n(13046)),m=n(39611),_=S(n(37334)),v=n(54142),y=S(n(78831)),x=n(82205),b=n(62754),w=S(n(11071)),C=n(60650);function S(e){return e&&e.__esModule?e:{default:e}}var k="dxScrollable",D="vertical",I="horizontal",T="both",E=g.default.inherit({_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{disabled:!1,onScroll:null,direction:D,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat((0,x.deviceDependentOptions)(),[{device:function(){return r.nativeScrolling&&"android"===f.default.real().platform&&!s.default.mozilla},options:{useSimulatedScrollbar:!0}}])},_initOptions:function(e){this.callBase(e),"useSimulatedScrollbar"in e||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(e){e?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass("dx-scrollable"),t=this._$container=(0,o.default)("<div>").addClass("dx-scrollable-container"),n=this._$wrapper=(0,o.default)("<div>").addClass("dx-scrollable-wrapper");(this._$content=(0,o.default)("<div>").addClass("dx-scrollable-content")).append(e.contents()).appendTo(t),t.appendTo(n),n.appendTo(e)},_dimensionChanged:function(){this.update(),this._updateRtlPosition()},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition(!0)},_updateRtlPosition:function(e){this._strategy.updateRtlPosition(e)},_getMaxOffset:function(){var e=(0,o.default)(this.container()).get(0);return{left:e.scrollWidth-e.clientWidth,top:e.scrollHeight-e.clientHeight}},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};a.default.off(this._$wrapper,"."+k),a.default.on(this._$wrapper,(0,m.addNamespace)(_.default.init,k),t,this._initHandler.bind(this)),a.default.on(this._$wrapper,(0,m.addNamespace)(_.default.start,k),e.handleStart.bind(e)),a.default.on(this._$wrapper,(0,m.addNamespace)(_.default.move,k),e.handleMove.bind(e)),a.default.on(this._$wrapper,(0,m.addNamespace)(_.default.end,k),e.handleEnd.bind(e)),a.default.on(this._$wrapper,(0,m.addNamespace)(_.default.cancel,k),e.handleCancel.bind(e)),a.default.on(this._$wrapper,(0,m.addNamespace)(_.default.stop,k),e.handleStop.bind(e)),a.default.off(this._$container,"."+k),a.default.on(this._$container,(0,m.addNamespace)("scroll",k),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._moveIsAllowed(e))},_moveIsAllowed:function(e){return this._strategy.validate(e)},handleMove:function(e){this._strategy.handleMove(e)},_prepareDirections:function(e){this._strategy._prepareDirections(e)},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass("dx-scrollable-disabled",this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-horizontal").removeClass("dx-scrollable-vertical").removeClass("dx-scrollable-both").addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data("dxScrollableStrategy",this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new y.default(this):new v.SimulatedStrategy(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(e){switch(e.name){case"onStart":case"onEnd":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByContent":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&(0,h.hasWindow)()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===D?"left":e===I?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if((0,u.isPlainObject)(e)){var t=(0,l.ensureDefined)(e.left,e.x),n=(0,l.ensureDefined)(e.top,e.y);return{left:(0,u.isDefined)(t)?-t:void 0,top:(0,u.isDefined)(n)?-n:void 0}}var i=this.option("direction");return{left:i!==D?-e:void 0,top:i!==I?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var t=this.option("direction");return e===D?t!==I:e===I?t!==D:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(T)&&e.vertical&&e.horizontal?this._allowedDirectionValue=T:this._isDirection(I)&&e.horizontal?this._allowedDirectionValue=I:this._isDirection(D)&&e.vertical?this._allowedDirectionValue=D:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},$content:function(){return this._$content},content:function(){return(0,c.getPublicElement)(this._$content)},container:function(){return(0,c.getPublicElement)(this._$container)},scrollOffset:function(){return this._strategy._getScrollOffset()},_isRtlNativeStrategy:function(){var e=this.option(),t=e.useNative,n=e.rtlEnabled;return t&&n},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return(0,i.getHeight)(this._$container)},scrollHeight:function(){return(0,i.getOuterHeight)(this.$content())},clientWidth:function(){return(0,i.getWidth)(this._$container)},scrollWidth:function(){return(0,i.getOuterWidth)(this.$content())},update:function(){if(this._strategy)return(0,b.when)(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){((e=this._normalizeLocation(e)).top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location();this.option("useNative")||(e=this._strategy._applyScaleRatio(e),t=this._strategy._applyScaleRatio(t)),this._isScrollInverted()&&(t.left=this._getScrollSign()*t.left-this._getMaxOffset().left);var n=this._normalizeLocation({left:t.left-(0,l.ensureDefined)(e.left,t.left),top:t.top-(0,l.ensureDefined)(e.top,t.top)});(n.top||n.left)&&this._strategy.scrollBy(n)},_getScrollSign:function(){return(0,w.default)().positive?-1:1},_isScrollInverted:function(){var e=this.option(),t=e.rtlEnabled,n=e.useNative,i=(0,w.default)(),o=i.decreasing,a=i.positive;return n&&t&&o^a},scrollToElement:function(e,t){var n=(0,o.default)(e),i=this.$content().find(e).length,a=n.parents(".dx-scrollable").length-n.parents(".dx-scrollable-content").length==0;if(i&&a){var r={top:0,left:0},s=this.option("direction");s!==D&&(r.left=this.getScrollElementPosition(n,I,t)),s!==I&&(r.top=this.getScrollElementPosition(n,D,t)),this.scrollTo(r)}},getScrollElementPosition:function(e,t,n){var i=this.scrollOffset();return(0,C.getElementLocationInternal)(e.get(0),t,(0,o.default)(this.container()).get(0),i,n)},_updateIfNeed:function(){this.option("updateManually")||this.update()},_useTemplates:function(){return!1},isRenovated:function(){return!!E.IS_RENOVATED_WIDGET}});(0,p.default)(k,E);var A=E;t.default=A,e.exports=t.default,e.exports.default=t.default},78831:function(e,t,n){t.default=void 0;var i=n(58664),o=f(n(68374)),a=f(n(55994)),r=n(39611),s=n(20576),l=n(95479),u=f(n(20530)),d=f(n(38377)),c=f(n(89043)),h=f(n(11071));function f(e){return e&&e.__esModule?e:{default:e}}var p="vertical",g="horizontal",m=d.default.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=(0,o.default)(e.container()),this._$content=e.$content(),this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e),this._getMaxOffset=e._getMaxOffset.bind(e),this._isScrollInverted=e._isScrollInverted.bind(e)},render:function(){var e=u.default.real().platform;this._$element.addClass("dx-scrollable-native").addClass("dx-scrollable-native-"+e).toggleClass("dx-scrollable-scrollbars-hidden",!this._isScrollbarVisible()),this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateRtlPosition:function(e){e&&this.option("rtlEnabled")&&this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._moveScrollbars()},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass("dx-scrollable-scrollbar-simulated"),this._renderScrollbar(p),this._renderScrollbar(g)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new c.default((0,o.default)("<div>").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:s.noop,handleStart:s.noop,handleMove:function(e){this._isLocked()?e.cancel=!0:this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0)},handleEnd:s.noop,handleCancel:s.noop,handleStop:s.noop,_eachScrollbar:function(e){e=e.bind(this),(0,l.each)(this._scrollbars||{},(function(t,n){e(n,t)}))},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var e=this.location(),t=e.left,n=e.top;return{event:this._eventForUserAction,scrollOffset:this._getScrollOffset(),reachedLeft:this._isScrollInverted()?this._isReachedRight(-t):this._isReachedLeft(t),reachedRight:this._isScrollInverted()?this._isReachedLeft(-Math.abs(t)):this._isReachedRight(t),reachedTop:this._isDirection(p)?Math.round(n)>=0:void 0,reachedBottom:this._isDirection(p)?Math.round(Math.abs(n)-this._getMaxOffset().top)>=0:void 0}},_getScrollOffset:function(){var e=this.location(),t=e.top,n=e.left;return{top:-t,left:this._normalizeOffsetLeft(-n)}},_normalizeOffsetLeft:function(e){return this._isScrollInverted()?(0,h.default)().positive?this._getMaxOffset().left-e:this._getMaxOffset().left+e:e},_isReachedLeft:function(e){return this._isDirection(g)?Math.round(e)>=0:void 0},_isReachedRight:function(e){return this._isDirection(g)?Math.round(Math.abs(e)-this._getMaxOffset().left)>=0:void 0},_isScrollbarVisible:function(){var e=this.option().showScrollbar;return"never"!==e&&!1!==e},handleScroll:function(e){this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs())},_moveScrollbars:function(){var e=this._getScrollOffset(),t=e.top,n=e.left;this._eachScrollbar((function(e){e.moveTo({top:-t,left:-n}),e.option("visible",!0)})),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar((function(e){e.option("visible",!1)}))}.bind(this),500)},location:function(){return{left:-this._$container.scrollLeft(),top:-this._$container.scrollTop()}},disabledChanged:s.noop,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:(0,i.getHeight)(this._$container),width:(0,i.getWidth)(this._$container)},this._componentContentSize={height:(0,i.getHeight)(this._component.$content()),width:(0,i.getWidth)(this._component.$content())},this._contentSize={height:(0,i.getHeight)(this._$content),width:(0,i.getWidth)(this._$content)}},_updateScrollbars:function(){this._eachScrollbar((function(e,t){var n=t===p?"height":"width";e.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),e.update()}))},_allowedDirections:function(){return{vertical:this._isDirection(p)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(g)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp("dx-scrollable-native\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),a.default.off(this._$element,".dxNativeScrollable"),a.default.off(this._$container,".dxNativeScrollable"),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar((function(e){e.$element().remove()}))},scrollBy:function(e){var t=this.location();this._$container.scrollTop(Math.round(-t.top-e.top)),this._$container.scrollLeft(Math.round(-t.left-this._getScrollSign()*e.left))},_getScrollSign:function(){return this._isScrollInverted()&&(0,h.default)().positive?-1:1},validate:function(e){return!(this.option("disabled")||(0,r.isDxMouseWheelEvent)(e)&&this._isScrolledInMaxDirection(e)||!this._allowedDirection())},_isScrolledInMaxDirection:function(e){var t=this._$container.get(0);return e.delta>0?e.shiftKey?!t.scrollLeft:!t.scrollTop:e.shiftKey?t.scrollLeft>=this._getMaxOffset().left:t.scrollTop>=this._getMaxOffset().top},getDirection:function(){return this._allowedDirection()}});t.default=m,e.exports=t.default,e.exports.default=t.default},54142:function(e,t,n){t.SimulatedStrategy=t.Scroller=void 0;var i=n(58664),o=x(n(68374)),a=x(n(73349)),r=x(n(55994)),s=n(78008),l=n(13306),u=n(58201),d=n(95479),c=n(35922),h=n(37518),f=n(31648),p=x(n(38377)),g=x(n(6866)),m=n(39611),_=n(20576),v=x(n(89043)),y=n(62754);function x(e){return e&&e.__esModule?e:{default:e}}var b,w,C="dxSimulatedScrollableCursor",S="dxSimulatedScrollableKeyboard",k="dx-scrollable-simulated",D="vertical",I="horizontal",T=.92,E=400/Math.round(1e3/60),A=(1-Math.pow(T,E))/(1-T),O=g.default.inherit({ctor:function(e){this.callBase(),this.scroller=e},VELOCITY_LIMIT:1,_isFinished:function(){return Math.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?T:.5},_complete:function(){this.scroller._scrollComplete()}}),P=O.inherit({VELOCITY_LIMIT:.2,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return T},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),M=p.default.inherit({ctor:function(e){this._initOptions(e),this._initAnimators(),this._initScrollbar()},_initOptions:function(e){var t=this;this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=e.direction===I?"x":"y",this._prop=e.direction===I?"left":"top",this._dimension=e.direction===I?"width":"height",this._scrollProp=e.direction===I?"scrollLeft":"scrollTop",(0,d.each)(e,(function(e,n){t["_"+e]=n}))},_initAnimators:function(){this._inertiaAnimator=new O(this),this._bounceAnimator=new P(this)},_initScrollbar:function(){this._scrollbar=new v.default((0,o.default)("<div>").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(e){return!0===e?"onScroll":!1===e?"never":e},_scrollStep:function(e){var t=this._location;this._location+=e,this._suppressBounce(),this._move(),Math.abs(t-this._location)<1||r.default.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(e){return e=void 0!==e?e:this._location,Math.max(Math.min(e,this._maxOffset),this._minOffset)},_move:function(e){this._location=void 0!==e?e*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var e=this._location;this._$container[this._scrollProp](-e/this._getScaleRatio()),this._moveContentByTranslator(e)},_getScaleRatio:function(){if((0,u.hasWindow)()&&!this._scaleRatio){var e=this._$element.get(0),t=this._getRealDimension(e,this._dimension),n=this._getBaseDimension(e,this._dimension);this._scaleRatio=Math.round(t/n*100)/100}return this._scaleRatio||1},_getRealDimension:function(e,t){return Math.round((0,h.getBoundingRect)(e)[t])},_getBaseDimension:function(e,t){return e["offset"+(0,s.titleize)(t)]},_moveContentByTranslator:function(e){var t,n=-this._maxScrollPropValue;if(t=e>0?e:e<=n?e-n:e%1,this._translateOffset!==t){var i={};i[this._prop]=t,this._translateOffset=t,0!==t?(0,f.move)(this._$content,i):(0,f.resetPosition)(this._$content)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var e=(this._bounceLocation=this._boundLocation())-this._location;this._velocity=e/A},_inBounds:function(e){return e=void 0!==e?e:this._location,this._boundLocation(e)===e},_crossBoundOnNextStep:function(){var e=this._location,t=e+this._velocity;return e<this._minOffset&&t>=this._minOffset||e>this._maxOffset&&t<=this._maxOffset},_initHandler:function(e){this._stopScrolling(),this._prepareThumbScrolling(e)},_stopScrolling:(0,_.deferRenderer)((function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()})),_prepareThumbScrolling:function(e){if(!(0,m.isDxMouseWheelEvent)(e.originalEvent)){var t=(0,o.default)(e.originalEvent.target),n=this._isScrollbar(t);n&&this._moveToMouseLocation(e),this._thumbScrolling=n||this._isThumb(t),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(t),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(e){return this._isThumb(e)},_moveToMouseLocation:function(e){var t=e["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],n=this._location+t/this._containerToContentRatio()-(0,i.getHeight)(this._$container)/2;this._scrollStep(-Math.round(n))},_startHandler:function(){this._showScrollbar()},_moveHandler:function(e){this._crossThumbScrolling||(this._thumbScrolling&&(e[this._axis]=-Math.round(e[this._axis]/this._containerToContentRatio())),this._scrollBy(e))},_scrollBy:function(e){e=e[this._axis],this._inBounds()||(e*=.5),this._scrollStep(e)},_scrollByHandler:function(e){this._scrollBy(e),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(e){return this._completeDeferred=new y.Deferred,this._velocity=e[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){this._inertiaEnabled&&!this._thumbScrolling||(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){var e=this;return this._stopScrolling(),(0,_.deferUpdate)((function(){e._resetScaleRatio(),e._updateLocation(),e._updateBounds(),e._updateScrollbar(),(0,_.deferRender)((function(){e._moveScrollbar(),e._scrollbar.update()}))}))},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=((0,f.locate)(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=this._getMaxOffset(),this._minOffset=this._getMinOffset()},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=Math.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:(0,_.deferUpdater)((function(){var e=this,t=this._containerSize(),n=this._contentSize(),i=this._getBaseDimension(this._$container.get(0),this._dimension),o=this._getBaseDimension(this._$content.get(0),this._dimension);(0,_.deferRender)((function(){e._scrollbar.option({containerSize:t,contentSize:n,baseContainerSize:i,baseContentSize:o,scaleRatio:e._getScaleRatio()})}))})),_moveToBounds:(0,_.deferRenderer)((0,_.deferUpdater)((0,_.deferRenderer)((function(){var e=this._boundLocation(),t=e!==this._location;this._location=e,this._move(),t&&this._scrollAction()})))),_createActionsHandler:function(e){this._scrollAction=e.scroll,this._bounceAction=e.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var e="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),t=this._getRealDimension(this._$content.get(0),this._dimension);if(!e){var n=this._$content[0]["scroll"+(0,s.titleize)(this._dimension)]*this._getScaleRatio();t=Math.max(n,t)}return t},_validateEvent:function(e){var t=(0,o.default)(e.originalEvent.target);return this._isThumb(t)||this._isScrollbar(t)||this._isContent(t)},_isThumb:function(e){return this._scrollByThumb&&this._scrollbar.isThumb(e)},_isScrollbar:function(e){return this._scrollByThumb&&e&&e.is(this._$scrollbar)},_isContent:function(e){return this._scrollByContent&&!!e.closest(this._$element).length},_reachedMin:function(){return Math.round(this._location-this._minOffset)<=0},_reachedMax:function(){return Math.round(this._location-this._maxOffset)>=0},_cursorEnterHandler:function(){this._resetScaleRatio(),this._updateScrollbar(),this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:_.noop});t.Scroller=M;var R=p.default.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=(0,o.default)(e.container()),this._$wrapper=e._$wrapper,this._$content=e.$content(),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e),this._getMaxOffset=e._getMaxOffset.bind(e)},render:function(){this._$element.addClass(k),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(I)&&this._createScroller(I),this._isDirection(D)&&this._createScroller(D),this._$element.toggleClass("dx-scrollable-scrollbars-alwaysvisible","always"===this.option("showScrollbar"))},_createScroller:function(e){this._scrollers[e]=new M(this._scrollerOptions(e))},_scrollerOptions:function(e){return{direction:e,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(e){for(var t in this._scrollers){var n=this._getPropByDirection(t);if((0,c.isDefined)(e[n])){var i=this._scrollers[t];e[n]*=i._getScaleRatio()}}return e},_isAnyThumbScrolling:function(e){var t=!1;return this._eventHandler("isThumbScrolling",e).done((function(e,n){t=e||n})),t},handleInit:function(e){this._suppressDirections(e),this._eventForUserAction=e,this._eventHandler("init",e)},_suppressDirections:function(e){(0,m.isDxMouseWheelEvent)(e.originalEvent)?this._prepareDirections(!0):(this._prepareDirections(),this._eachScroller((function(t,n){var i=t._validateEvent(e);this._validDirections[n]=i})))},_prepareDirections:function(e){e=e||!1,this._validDirections={},this._validDirections.horizontal=e,this._validDirections.vertical=e},_eachScroller:function(e){e=e.bind(this),(0,d.each)(this._scrollers,(function(t,n){e(n,t)}))},handleStart:function(e){this._eventForUserAction=e,this._eventHandler("start").done(this._startAction)},_saveActive:function(){w=this},_resetActive:function(){w===this&&(w=null)},handleMove:function(e){if(this._isLocked())return e.cancel=!0,void this._resetActive();this._saveActive(),e.preventDefault&&e.preventDefault(),this._adjustDistance(e,e.delta),this._eventForUserAction=e,this._eventHandler("move",e.delta)},_adjustDistance:function(e,t){t.x*=this._validDirections.horizontal,t.y*=this._validDirections.vertical;var n=this._tryGetDevicePixelRatio();n&&(0,m.isDxMouseWheelEvent)(e.originalEvent)&&(t.x=Math.round(t.x/n*100)/100,t.y=Math.round(t.y/n*100)/100)},_tryGetDevicePixelRatio:function(){if((0,u.hasWindow)())return(0,u.getWindow)().devicePixelRatio},handleEnd:function(e){return this._resetActive(),this._refreshCursorState(e.originalEvent&&e.originalEvent.target),this._adjustDistance(e,e.velocity),this._eventForUserAction=e,this._eventHandler("end",e.velocity).done(this._endAction)},handleCancel:function(e){return this._resetActive(),this._eventForUserAction=e,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._updateRtlConfig(),this._scrollAction()},_attachKeyboardHandler:function(){r.default.off(this._$element,".".concat(S)),!this.option("disabled")&&this.option("useKeyboard")&&r.default.on(this._$element,(0,m.addNamespace)("keydown",S),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){var t=this;if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout((function(){"tab"===(0,m.normalizeKeyName)(e)&&t._eachScroller((function(e){e._updateHandler()}))})),this._$container.is(a.default.getActiveElement())){var n=!0;switch((0,m.normalizeKeyName)(e)){case"downArrow":this._scrollByLine({y:1});break;case"upArrow":this._scrollByLine({y:-1});break;case"rightArrow":this._scrollByLine({x:1});break;case"leftArrow":this._scrollByLine({x:-1});break;case"pageDown":this._scrollByPage(1);break;case"pageUp":this._scrollByPage(-1);break;case"home":this._scrollToHome();break;case"end":this._scrollToEnd();break;default:n=!1}n&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){var t=this._tryGetDevicePixelRatio(),n=40;t&&(n=Math.abs(n/t*100)/100),this.scrollBy({top:(e.y||0)*-n,left:(e.x||0)*-n})},_scrollByPage:function(e){var t=this._wheelProp(),n={},o="width"===this._dimensionByProp(t)?i.getWidth:i.getHeight;n[t]=e*-o(this._$container),this.scrollBy(n)},_dimensionByProp:function(e){return"left"===e?"width":"height"},_getPropByDirection:function(e){return e===I?"left":"top"},_scrollToHome:function(){var e={};e[this._wheelProp()]=0,this._component.scrollTo(e)},_scrollToEnd:function(){var e=this._wheelProp(),t={},n="width"===this._dimensionByProp(e)?i.getWidth:i.getHeight;t[e]=n(this._$content)-n(this._$container),this._component.scrollTo(t)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(e){var t=arguments,n=this,i=this._createActionByOption(e);return function(){i((0,l.extend)(n._createActionArgs(),t))}},_createActionArgs:function(){var e=this._scrollers,t=e.horizontal,n=e.vertical,i=this._getScrollOffset();return this._scrollOffset={top:n&&i.top,left:t&&i.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:t&&t._reachedMax(),reachedRight:t&&t._reachedMin(),reachedTop:n&&n._reachedMax(),reachedBottom:n&&n._reachedMin()}},_getScrollOffset:function(){return{top:-this.location().top,left:-this.location().left}},_eventHandler:function(e){var t=[].slice.call(arguments).slice(1),n=(0,d.map)(this._scrollers,(function(n){return n["_"+e+"Handler"].apply(n,t)}));return y.when.apply(o.default,n).promise()},location:function(){var e=(0,f.locate)(this._$content);return e.top-=this._$container.scrollTop(),e.left-=this._$container.scrollLeft(),e},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){r.default.off(this._$element,".".concat(C)),!this.option("disabled")&&this._isHoverMode()&&(r.default.on(this._$element,(0,m.addNamespace)("mouseenter",C),this._cursorEnterHandler.bind(this)),r.default.on(this._$element,(0,m.addNamespace)("mouseleave",C),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(e){(e=e||{}).originalEvent=e.originalEvent||{},w||e.originalEvent._hoverHandled||(b&&b._cursorLeaveHandler(),b=this,this._eventHandler("cursorEnter"),e.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(e){b===this&&w!==b&&(this._eventHandler("cursorLeave"),b=null,this._refreshCursorState(e&&e.relatedTarget))},_refreshCursorState:function(e){if(this._isHoverMode()||e&&!w){var t=(0,o.default)(e).closest(".".concat(k,":not(.dx-state-disabled)")),n=t.length&&t.data("dxScrollableStrategy");b&&b!==n&&b._cursorLeaveHandler(),n&&n._cursorEnterHandler()}},update:function(){var e=this,t=this._eventHandler("update").done(this._updateAction);return(0,y.when)(t,(0,_.deferUpdate)((function(){var t=e._allowedDirections();return(0,_.deferRender)((function(){var n=t.vertical?"pan-x":"";n=t.horizontal?"pan-y":n,n=t.vertical&&t.horizontal?"none":n,e._$container.css("touchAction",n)})),(0,y.when)().promise()})))},_allowedDirections:function(){var e=this.option("bounceEnabled"),t=this._scrollers.vertical,n=this._scrollers.horizontal;return{vertical:t&&(t._minOffset<0||e),horizontal:n&&(n._minOffset<0||e)}},_updateBounds:function(){this._scrollers.horizontal&&this._scrollers.horizontal._updateBounds()},_isHorizontalAndRtlEnabled:function(){return this.option("rtlEnabled")&&this.option("direction")!==D},updateRtlPosition:function(e){var t=this;e&&(this._rtlConfig={scrollRight:0,clientWidth:this._$container.get(0).clientWidth,windowPixelRatio:this._getWindowDevicePixelRatio()}),this._updateBounds(),this._isHorizontalAndRtlEnabled()&&(0,_.deferUpdate)((function(){var e=t._getMaxOffset().left-t._rtlConfig.scrollRight;e<=0&&(e=0,t._rtlConfig.scrollRight=t._getMaxOffset().left),(0,_.deferRender)((function(){t._getScrollOffset().left!==e&&(t._rtlConfig.skipUpdating=!0,t._component.scrollTo({left:e}),t._rtlConfig.skipUpdating=!1)}))}))},_updateRtlConfig:function(){if(this._isHorizontalAndRtlEnabled()&&!this._rtlConfig.skipUpdating){var e=this._$container.get(0),t=e.clientWidth,n=e.scrollLeft,i=this._getWindowDevicePixelRatio();this._rtlConfig.windowPixelRatio===i&&this._rtlConfig.clientWidth===t&&(this._rtlConfig.scrollRight=this._getMaxOffset().left-n),this._rtlConfig.clientWidth=t,this._rtlConfig.windowPixelRatio=i}},_getWindowDevicePixelRatio:function(){return(0,u.hasWindow)()?(0,u.getWindow)().devicePixelRatio:1},scrollBy:function(e){var t=this._scrollers.vertical,n=this._scrollers.horizontal;t&&(e.top=t._boundLocation(e.top+t._location)-t._location),n&&(e.left=n._boundLocation(e.left+n._location)-n._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:e.left,y:e.top}),this._endAction(),this._updateRtlConfig()},validate:function(e){return(!(0,m.isDxMouseWheelEvent)(e)||!(0,m.isCommandKeyPressed)(e))&&!this.option("disabled")&&(!!this.option("bounceEnabled")||((0,m.isDxMouseWheelEvent)(e)?this._validateWheel(e):this._validateMove(e)))},_validateWheel:function(e){var t=this,n=this._scrollers[this._wheelDirection(e)],i=n._reachedMin(),o=n._reachedMax(),a=!i||!o,r=!i&&!o,s=i&&e.delta>0,l=o&&e.delta<0,u=a&&(r||s||l);return(u=u||void 0!==this._validateWheelTimer)&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout((function(){t._validateWheelTimer=void 0}),500)),u},_validateMove:function(e){return!(!this.option("scrollByContent")&&!(0,o.default)(e.target).closest(".".concat("dx-scrollable-scrollbar")).length)&&this._allowedDirection()},getDirection:function(e){return(0,m.isDxMouseWheelEvent)(e)?this._wheelDirection(e):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===I?"left":"top"},_wheelDirection:function(e){switch(this.option("direction")){case I:return I;case D:return D;default:return e&&e.shiftKey?I:D}},dispose:function(){this._resetActive(),b===this&&(b=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(k),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){r.default.off(this._$element,".".concat(C)),r.default.off(this._$container,".".concat(S))}});t.SimulatedStrategy=R},89043:function(e,t,n){t.default=void 0;var i=p(n(68374)),o=p(n(73349)),a=p(n(55994)),r=p(n(24311)),s=n(31648),l=p(n(14390)),u=n(39611),d=n(20576),c=n(35922),h=n(13306),f=p(n(93786));function p(e){return e&&e.__esModule?e:{default:e}}var g="dxScrollbar",m="dx-scrollable-scrollbar",_="".concat(m,"-active"),v="horizontal",y="onScroll",x="onHover",b="always",w="never",C=null,S=l.default.inherit({_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:y,containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass("dx-scrollbar-hoverable",this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=(0,i.default)("<div>").addClass("dx-scrollable-scroll"),(0,i.default)("<div>").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass(m).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===x||e===b)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===v?"width":"height",this._prop=e===v?"left":"top"},_attachPointerDownHandler:function(){a.default.on(this._$thumb,(0,u.addNamespace)(f.default.down,g),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(_),C=this},feedbackOff:function(){this.$element().removeClass(_),C=null},cursorEnter:function(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(e){this.option("visibilityMode")===y&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case y:break;case x:e=e||!!this._isHovered;break;case w:e=!1;break;case b:e=!0}return e},moveTo:function(e){if(!this._isHidden()){(0,c.isPlainObject)(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),(0,s.move)(this._$thumb,t)}},_calculateScrollBarPosition:function(e){return-e*this._thumbRatio},_update:function(){var e=Math.round(this.option("containerSize")),t=Math.round(this.option("contentSize")),n=Math.round(this.option("baseContainerSize")),i=Math.round(this.option("baseContentSize"));isNaN(n)&&(n=e,i=t),this._baseContainerToContentRatio=i?n/i:n,this._realContainerToContentRatio=t?e/t:e;var o=Math.round(Math.max(Math.round(e*this._realContainerToContentRatio),15));this._thumbRatio=(e-o)/(this.option("scaleRatio")*(t-e)),this.option(this._dimension,o/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===w},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(e){return(0,c.isPlainObject)(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===C&&(C=null),a.default.off(this._$thumb,"."+g)},_optionChanged:function(e){if(!this._isHidden())switch(e.name){case"containerSize":case"contentSize":this.option()[e.name]=this._normalizeSize(e.value),this._update();break;case"baseContentSize":case"baseContainerSize":case"scaleRatio":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;default:this.callBase.apply(this,arguments)}},update:(0,d.deferRenderer)((function(){this._adjustVisibility()&&this.option("visible",!0)}))});r.default.add((function(){a.default.subscribeGlobal(o.default.getDocument(),(0,u.addNamespace)(f.default.up,g),(function(){C&&C.feedbackOff()}))}));var k=S;t.default=k,e.exports=t.default,e.exports.default=t.default},78665:function(e,t,n){t.default=void 0;var i=_(n(68374)),o=n(20576),a=n(35922),r=n(13306),s=n(89386),l=n(95479),u=n(62754),d=n(6415),c=_(n(17381)),h=_(n(73349)),f=_(n(28109)),p=_(n(99393)),g=_(n(92059));n(20551);var m=n(39611);function _(e){return e&&e.__esModule?e:{default:e}}var v="dx-selectbox-popup-wrapper",y=g.default.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){this._isEditable()?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._savedTextRemoveEvent=e,this._preventSubstitution=!0},i=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return(0,r.extend)({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._resetCaretPosition(!0),t.tab&&t.tab.apply(this,arguments),this._cancelSearchIfNeed()},upArrow:function(e){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(e),!0},downArrow:function(e){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(e),!0},leftArrow:function(){i(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){i(),t.home&&t.home.apply(this,arguments)},end:function(){i(),t.end&&t.end.apply(this,arguments)},escape:function(){var e=t.escape&&t.escape.apply(this,arguments);return this._cancelEditing(),null==e||e},enter:function(e){var n=this.option("opened"),i=this._input().val().trim(),o=i&&this._list&&!this._list.option("focusedElement");if(!i&&(0,a.isDefined)(this.option("value"))&&this.option("allowClearing"))this._saveValueChangeEvent(e),this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),o&&(n&&this._toggleOpenState(),this._valueChangeEventHandler(e)),n;if(t.enter&&t.enter.apply(this,arguments))return n}},space:function(e){var t=this.option("opened"),n=this.option("searchEnabled"),i=this.option("acceptCustomValue");if(t&&!n&&!i)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:n,del:n})},_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{placeholder:f.default.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){(0,a.isDefined)(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,useHiddenSubmitElement:!0})},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this.$element().addClass("dx-selectbox"),this._renderTooltip(),this.callBase(),this._$container.addClass("dx-selectbox-container")},_createPopup:function(){this.callBase(),this._popup.$element().addClass("dx-selectbox-popup"),this._popup.$overlayContent().attr("tabindex",-1)},_popupWrapperClass:function(){return this.callBase()+" "+v},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){if(this._searchValue()){var e=this._list._itemElements(),t=(0,s.inArray)(this.option("selectedItem"),this.option("items")),n=t>=0&&!this._isCustomItemSelected()?e.eq(t):null;this._focusListElement(n)}else this._focusListElement(null)},_renderFocusedElement:function(){if(this._list)if(this._searchValue()&&!this.option("acceptCustomValue")){var e=this._list._itemElements().not(".dx-state-disabled").eq(0);this._focusListElement(e)}else this._focusListElement(null)},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",(0,d.getPublicElement)(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase(),this._dataSource&&this._dataSource.paginate()&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){return this._renderInputValue(),this._setSubmitValue(),(new u.Deferred).resolve()},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderField(),(new u.Deferred).resolve()},_setNextItem:function(e){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)},_setNextValue:function(e){(this._dataSource.isLoaded()?(new u.Deferred).resolve():this._dataSource.load()).done(function(){var t=this._getSelectedIndex(),n=this._dataSource.pageSize(),i=this._dataSource.isLastPage(),o=t===this._items().length-1;this._saveValueChangeEvent(e);var a="downArrow"===(0,m.normalizeKeyName)(e)?1:-1;n&&!i&&o&&a>0?(this._popup||this._createPopup(),this._dataSource.isLoading()||this._list._loadNextPage().done(this._setNextItem.bind(this,a))):this._setNextItem(a)}.bind(this))},_setSelectedItem:function(e){var t=!this._isCustomValueAllowed()&&void 0===e;this.callBase(t?null:e),t||this._isEditable()&&!this._isCustomItemSelected()||this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(e){return e=!(0,a.isDefined)(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=(0,r.extend)(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&(0,r.extend)(e,{showSelectionControls:!0,selectionByClick:!0}),e},_listFocusedItemChangeHandler:function(e){if(!this._preventInputValueRender){var t=e.component,n=(0,i.default)(t.option("focusedElement")),o=t._getItemData(n);this._updateField(o)}},_updateField:function(e){if(!this._getTemplateByOption("fieldTemplate")||!this.option("fieldTemplate")){var t=this._displayGetter(e);return this.option("text",t),void this._renderDisplayText(t)}this._renderField()},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):o.noop},_selectionChangeHandler:function(e){(0,l.each)(e.addedItems||[],function(e,t){this._setValue(this._valueGetter(t))}.bind(this))},_getActualSearchValue:function(){return this._dataSource.searchValue()},_toggleOpenState:function(e){if(!this.option("disabled")){if((e=arguments.length?e:!this.option("opened"))||this._shouldClearFilter()||this._restoreInputText(!0),this._wasSearch()&&e){this._wasSearch(!1);var t=this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded();if(t&&this._dataSource){if(this._searchTimer)return;var n=this._getActualSearchValue();n&&this._wasSearch(!0),this._filterDataSource(n||null)}else this._setListOption("items",[])}e&&this._scrollToSelectedItem(),this.callBase(e)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._dimensionChanged()},_isValueEqualInputText:function(){var e=this.option("selectedItem");if(null===e)return!1;var t=this._displayGetter(e);return(t?String(t):"")===this._searchValue()},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_popupHiddenHandler:function(){this.callBase(),this._shouldCancelSearch()&&(this._wasSearch(!1),this._searchCanceled(),this._shouldCancelSearch(!1))},_restoreInputText:function(e){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(function(){var t=this.option("selectedItem");this.option("acceptCustomValue")?e||(this._updateField(t),this._clearFilter()):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?this._clearTextValue():this._isValueEqualInputText()||this._renderInputValue().always(function(e){var n=(0,o.ensureDefined)(e,t);this._setSelectedItem(n),this._updateField(n),this._clearFilter()}.bind(this))}.bind(this))},_focusOutHandler:function(e){this._preventNestedFocusEvent(e)||(this._isOverlayNestedTarget(e.relatedTarget)||(this._restoreInputText(),this._clearSearchTimer()),this._cancelSearchIfNeed(e)),e.target=this._input().get(0),this.callBase(e)},_cancelSearchIfNeed:function(e){var t=this.option().searchEnabled,n=this._isOverlayNestedTarget(null==e?void 0:e.relatedTarget);if(this._wasSearch()&&t&&!n){var i,o=null===(i=this._popup)||void 0===i?void 0:i._hideAnimationProcessing;this._clearSearchTimer(),o?this._shouldCancelSearch(!0):(this._wasSearch(!1),this._searchCanceled())}},_shouldCancelSearch:function(e){if(!arguments.length)return this._shouldCancelSearchValue;this._shouldCancelSearchValue=e},_isOverlayNestedTarget:function(e){return!!(0,i.default)(e).closest(".".concat(v)).length},_clearTextValue:function(){this.option("selectedItem")&&(this._savedTextRemoveEvent&&this._saveValueChangeEvent(this._savedTextRemoveEvent),this.option("value",null)),delete this._savedTextRemoveEvent},_shouldOpenPopup:function(){return this._needPassDataSourceToList()&&this._wasSearch()},_isFocused:function(){var e=h.default.getActiveElement();return this.callBase()&&(0,i.default)(e).closest(this._input()).length>0},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_fieldRenderData:function(){var e=this._list&&this.option("opened")&&(0,i.default)(this._list.option("focusedElement"));return e&&e.length?this._list._getItemData(e):this.option("selectedItem")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._focusListElement((0,i.default)(e.itemElement)),this._saveValueChangeEvent(e.event),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData),this._shouldClearFilter()&&this._cancelSearchIfNeed()},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(e){this._setValue(e)},_loadItem:function(e,t){var n=this,i=new u.Deferred;return this.callBase(e,t).done(function(e){i.resolve(e)}.bind(this)).fail(function(t){if(null==t||!t.shouldSkipCallback){var o=n.option("selectedItem");n.option("acceptCustomValue")&&e===n._valueGetter(o)?i.resolve(o):i.reject()}}.bind(this)),i.promise()},_loadInputValue:function(e,t){return this._loadItemDeferred=this._loadItem(e).always(t),this._loadItemDeferred},_isCustomItemSelected:function(){var e=this.option("selectedItem"),t=this._searchValue(),n=this._displayGetter(e);return!n||t!==n.toString()},_valueChangeEventHandler:function(e){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&!this._isValueChanging&&(this._isValueChanging=!0,this._customItemAddedHandler(e),this._isValueChanging=!1)},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(e){var t={text:e},n=this._customItemCreatingAction(t),i=(0,o.ensureDefined)(n,t.customItem);return(0,a.isDefined)(n)&&c.default.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(e){var t=this._searchValue(),n=this._createCustomItem(t);if(this._saveValueChangeEvent(e),void 0===n)throw this._renderValue(),c.default.Error("E0121");(0,a.isPromise)(n)?(0,u.fromPromise)(n).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(n)},_setCustomItem:function(e){this._disposed||(e=e||null,this.option("selectedItem",e),this._cancelSearchIfNeed(),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)))},_clearValueHandler:function(e){return this._preventFiltering=!0,this.callBase(e),!1},_wasSearch:function(e){if(!arguments.length)return this._wasSearchValue;this._wasSearchValue=e},_searchHandler:function(){this._preventFiltering?delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),this.callBase(arguments))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=0===e.selectionStart&&e.selectionEnd===this._searchValue().length,n=e.selectionStart!==e.selectionEnd;return this._wasSearch()&&n&&!t},_shouldSubstitutionBeRendered:function(){return!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(this._shouldSubstitutionBeRendered()){var e=this._list&&this._getPlainItems(this._list.option("items"))[0];if(e){var t=this._input(),n=t.val().length;if(0!==n){var i=t.get(0),o=this._displayGetter(e).toString();i.value=o,this._caret({start:n,end:o.length})}}}else delete this._preventSubstitution},_dispose:function(){this._renderInputValueAsync=o.noop,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(e){switch(e.name){case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":this._invalidate();break;case"allowClearing":break;default:this.callBase(e)}}});(0,p.default)("dxSelectBox",y);var x=y;t.default=x,e.exports=t.default,e.exports.default=t.default},68198:function(e,t,n){t.default=void 0;var i=d(n(38377)),o=d(n(83014)),a=d(n(78600)),r=n(13306),s=n(20576),l=n(35922),u=n(62754);function d(e){return e&&e.__esModule?e:{default:e}}var c=i.default.inherit({ctor:function(e){this.options=(0,r.extend)(this._getDefaultOptions(),e,{selectedItemKeys:e.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new o.default(this.options):new a.default(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{allowNullValue:!1,deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:s.noop,key:s.noop,keyOf:function(e){return e},load:function(){return(new u.Deferred).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(e){return e},dataFields:s.noop,filter:s.noop}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(e){if(void 0===e)return this.options.selectionFilter;var t=this.options.selectionFilter!==e&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(e);this.options.selectionFilter=e,t&&this.onSelectionChanged()},setSelection:function(e,t){return this.selectedItemKeys(e,!1,!1,!1,t)},select:function(e){return this.selectedItemKeys(e,!0)},deselect:function(e){return this.selectedItemKeys(e,!0,!0)},selectedItemKeys:function(e,t,n,i,o){var a;return e=null!==(a=e)&&void 0!==a?a:[],e=Array.isArray(e)?e:[e],this.validate(),this._selectionStrategy.selectedItemKeys(e,t,n,i,o)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(e,t){this._selectionStrategy.addSelectedItem(t,e)},_removeSelectedItem:function(e){this._selectionStrategy.removeSelectedItem(e)},_setSelectedItems:function(e,t){this._selectionStrategy.setSelectedItems(e,t)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(e,t){var n,i=this.options.plainItems(),o=i[e];if(!this.isSelectable()||!this.isDataItem(o))return!1;var a=this.options.getItemData(o),r=this.options.keyOf(a);if((t=t||{}).shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)n=this.changeItemSelectionWhenShiftKeyPressed(e,i);else if(t.control){this._resetItemSelectionWhenShiftKeyPressed();var s=this._selectionStrategy.isItemDataSelected(a);"single"===this.options.mode&&this.clearSelectedItems(),s?this._removeSelectedItem(r):this._addSelectedItem(a,r),n=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],r);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([r],[a]),n=!0)}return n?(this._focusedItemIndex=e,this.onSelectionChanged(),!0):void 0},isDataItem:function(e){return this.options.isSelectableItem(e)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(e){return this._selectionStrategy.isItemDataSelected(e,{checkPending:!0})},isItemSelected:function(e,t){return this._selectionStrategy.isItemKeySelected(e,t)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyPressed:function(e,t){var n,i,o,a,r=!1,s=this.options.keyOf,u=t[this._focusedItemIndex],d=this.options.getItemData(u),c=s(d),h=u&&this.isItemDataSelected(d);if((0,l.isDefined)(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,i=this._focusedItemIndex;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(a=s(this.options.getItemData(t[i])),this._removeSelectedItem(a),r=!0);if(e!==this._shiftFocusedItemIndex)for(n=e<this._shiftFocusedItemIndex?1:-1,i=e;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(a=s(o=this.options.getItemData(t[i])),this._addSelectedItem(o,a),r=!0);return this.isDataItem(u)&&!h&&(this._addSelectedItem(d,c),r=!0),r},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(e){for(var t=this._selectionStrategy.getSelectableItems(this.options.plainItems()),n=0;n<t.length;n++){var i=t[n];if(this.isDataItem(i)){var o=this.options.getItemData(i),a=this.options.keyOf(o),r=this.isItemSelected(a);r||e||this._addSelectedItem(o,a),r&&e&&this._removeSelectedItem(a)}}return this.onSelectionChanged(),(new u.Deferred).resolve()},getSelectAllState:function(e){return this._selectionStrategy.getSelectAllState(e)}});t.default=c,e.exports=t.default,e.exports.default=t.default},83014:function(e,t,n){t.default=void 0;var i=n(35922),o=l(n(34344)),a=l(n(96688)),r=l(n(96687)),s=n(62754);function l(e){return e&&e.__esModule?e:{default:e}}var u=o.default.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var e=new s.Deferred,t=this,n=this.options.key(),o=(0,i.isString)(n)?[n]:n;return this._loadFilteredData(this.options.selectionFilter,null,o).done((function(n){var i=n.map((function(e){return t.options.keyOf(e)}));e.resolve(i)})).fail(e.reject),e.promise()},selectedItemKeys:function(e,t,n,i){if(i){var o=this.options.filter();!o||JSON.stringify(o)===JSON.stringify(this.options.selectionFilter)&&n?this._setOption("selectionFilter",n?[]:null):this._addSelectionFilter(n,o,i)}else{t||this._setOption("selectionFilter",[]);for(var a=0;a<e.length;a++)n?this.removeSelectedItem(e[a]):this.addSelectedItem(e[a])}return this.onSelectionChanged(),(new s.Deferred).resolve()},setSelectedItems:function(e){this._setOption("selectionFilter",null);for(var t=0;t<e.length;t++)this.addSelectedItem(e[t])},isItemDataSelected:function(e){return this.isItemKeySelected(e)},isItemKeySelected:function(e){var t=this.options.selectionFilter;return!t||!!(0,r.default)([e]).filter(t).toArray().length},_getKeyExpr:function(){var e=this.options.key();return Array.isArray(e)&&1===e.length?e[0]:e},_normalizeKey:function(e){var t=this.options.key();return Array.isArray(t)&&1===t.length?e[t[0]]:e},_getFilterByKey:function(e){var t=this._getKeyExpr(),n=[t,"=",this._normalizeKey(e)];if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n.push([t[i],"=",e[t[i]]]),i!==t.length-1&&n.push("and")}return n},addSelectedItem:function(e){var t=this._getFilterByKey(e);this._addSelectionFilter(!1,t)},removeSelectedItem:function(e){var t=this._getFilterByKey(e);this._addSelectionFilter(!0,t)},validate:function(){var e=this.options.key;if(e&&void 0===e())throw a.default.Error("E1042","Deferred selection")},_findSubFilter:function(e,t){if(!e)return-1;for(var n=JSON.stringify(t),i=0;i<e.length;i++){var o=e[i];if(o&&JSON.stringify(o)===n)return i}return-1},_isLastSubFilter:function(e,t){return!(!e||!t||this._findSubFilter(e,t)!==e.length-1&&0!==this._findSubFilter([e],t))},_addFilterOperator:function(e,t){return e.length>1&&(0,i.isString)(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&(0,i.isString)(e[0])&&(e=[e]),e},_addSelectionFilter:function(e,t,n){var i=this,o=e?["!",t]:t,a=e?"and":"or",r=!0,s=i.options.selectionFilter||[];if((s=i._denormalizeFilter(s))&&s.length){i._removeSameFilter(s,t,e,n);var l=i._removeSameFilter(s,t,!e),u=this._isKeyFilter(t)&&this._hasKeyFiltersOnlyStartingFromIndex(s,l);(r=t.length&&!u)&&(s=i._addFilterOperator(s,a))}r&&s.push(o),s=i._normalizeFilter(s),i._setOption("selectionFilter",e||s.length?s:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeFilterByIndex:function(e,t,n){var i=e[1];t>0?e.splice(t-1,2):e.splice(t,2),n&&"and"===i&&e.splice(0,e.length)},_isSimpleKeyFilter:function(e,t){return 3===e.length&&e[0]===t&&"="===e[1]},_isKeyFilter:function(e){if(2===e.length&&"!"===e[0])return this._isKeyFilter(e[1]);var t=this._getKeyExpr();if(Array.isArray(t)){if(e.length!==2*t.length-1)return!1;for(var n=0;n<t.length;n++){if(n>0&&"and"!==e[2*n-1])return!1;if(!this._isSimpleKeyFilter(e[2*n],t[n]))return!1}return!0}return this._isSimpleKeyFilter(e,t)},_hasKeyFiltersOnlyStartingFromIndex:function(e,t){if(t>=0){for(var n=t;n<e.length;n++)if("string"!=typeof e[n]&&!this._isKeyFilter(e[n]))return!1;return!0}return!1},_removeSameFilter:function(e,t,n,i){if(t=n?["!",t]:t,JSON.stringify(t)===JSON.stringify(e))return e.splice(0,e.length),0;var o=this._findSubFilter(e,t);if(o>=0)return this._removeFilterByIndex(e,o,i),o;for(var a=0;a<e.length;a++)if(Array.isArray(e[a])&&e[a].length>2){var r=this._removeSameFilter(e[a],t,!1,i);if(r>=0)return e[a].length?1===e[a].length&&(e[a]=e[a][0]):this._removeFilterByIndex(e,a,i),r}return-1},getSelectAllState:function(){var e=this.options.filter(),t=this.options.selectionFilter;return!t||!!t.length&&(e&&e.length?(t=this._denormalizeFilter(t),!!this._isLastSubFilter(t,e)||!this._isLastSubFilter(t,["!",e])&&void 0):void 0)}});t.default=u,e.exports=t.default,e.exports.default=t.default},34344:function(e,t,n){t.default=void 0;var i=l(n(96687)),o=n(20576),a=n(35922),r=l(n(38377)),s=n(62754);function l(e){return e&&e.__esModule?e:{default:e}}var u=r.default.inherit({ctor:function(e){this.options=e,this._setOption("disabledItemKeys",[]),this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:o.noop,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function(){var e=this.options.addedItemKeys,t=this.options.removedItemKeys,n=this.options.addedItems,i=this.options.removedItems,a=this.options.selectedItems,r=this.options.selectedItemKeys,s=this.options.onSelectionChanged||o.noop;this._clearItemKeys(),s({selectedItems:a,selectedItemKeys:r,addedItemKeys:e,removedItemKeys:t,addedItems:n,removedItems:i})},equalKeys:function(e,t){return this.options.equalByReference&&(0,a.isObject)(e)&&(0,a.isObject)(t)?e===t:(0,o.equalByValue)(e,t)},getSelectableItems:function(e){return e.filter((function(e){return!e.disabled}))},_clearSelection:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,n,i)},_loadFilteredData:function(e,t,n,o){var r=encodeURI(JSON.stringify(e)).length,l=this.options.maxFilterLengthInRequest&&r>this.options.maxFilterLengthInRequest,u=new s.Deferred,d={filter:l?void 0:e,select:l?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?u.resolve([]):this.options.load(d).done((function(n){var r=(0,a.isPlainObject)(n)?n.data:n;t&&!o?r=r.filter(t):l&&(r=(0,i.default)(r).filter(e).toArray()),u.resolve(r)})).fail(u.reject.bind(u)),u},updateSelectedItemKeyHash:function(e){for(var t=0;t<e.length;t++){var n=(0,o.getKeyHash)(e[t]);(0,a.isObject)(n)||(this.options.keyHashIndices[n]=this.options.keyHashIndices[n]||[],this.options.keyHashIndices[n].push(t))}},_isAnyItemSelected:function(e){for(var t=0;t<e.length;t++)if(this.options.isItemSelected(e[t]))return;return!1},_getFullSelectAllState:function(){var e=this.options.plainItems(),t=this.options.filter(),n=this.options.selectedItems;t&&(n=(0,i.default)(n).filter(t).toArray());var o=n.length;return o?o>=this.options.totalCount()-this.options.disabledItemKeys.length||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.getSelectableItems(this.options.plainItems()),t=!1,n=!1,i=0;i<e.length;i++){var o=e[i],a=this.options.getItemData(o),r=this.options.keyOf(a);this.options.isSelectableItem(o)&&(this.isItemKeySelected(r)?t=!0:n=!0)}return!!t&&(!n||void 0)}});t.default=u,e.exports=t.default,e.exports.default=t.default},78600:function(e,t,n){t.default=void 0;var i=n(20576),o=n(35922),a=n(89386),r=n(34671),s=c(n(96687)),l=n(62754),u=n(49601),d=c(n(96688));function c(e){return e&&e.__esModule?e:{default:e}}var h=c(n(34344)).default.inherit({ctor:function(e){this.callBase(e),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(e,t){var n,i,o,a=this.options.keyOf;if(a){var r=t&&e.length>1&&!this.options.equalByReference;for(r&&(n={}),o=0;o<e.length;o++){var s=e[o],l=a(s);t?(i=this.removeSelectedItem(l,n),n&&i>=0&&(n[i]=!0)):this.addSelectedItem(l,s)}r&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i<t.length;i++)e[i]||(this.options.selectedItemKeys.push(t[i]),this.options.selectedItems.push(n[i]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(e,t,n){var i=new l.Deferred,o=this.options.key();if(!e.length&&!n)return i.resolve([]),i;var a=this.options.filter();if(n&&t&&!a)return i.resolve(this.getSelectedItems()),i;var r=new u.SelectionFilterCreator(e,n),d=r.getCombinedFilter(o,a),c=[];if(t){var h=this.options.selectedItems;c=d&&e.length!==h.length?(0,s.default)(h).filter(d).toArray():h.slice(0)}var f=c.length?c:this.options.plainItems(!0).filter(this.options.isSelectableItem).map(this.options.getItemData),p=r.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,o);return f=f.filter(p),c.length||!n&&f.length===e.length?i.resolve(f):i=this._loadFilteredData(d,p,null,n),i},_replaceSelectionUpdate:function(e){var t=[],n=this.options.keyOf;if(n){for(var i=0;i<e.length;i++){var o=n(e[i]);t.push(o)}this.setSelectedItems(t,e)}},_warnOnIncorrectKeys:function(e){for(var t=this.options.allowNullValue,n=0;n<e.length;n++){var i=e[n];t&&null===i||this.isItemKeySelected(i)||d.default.log("W1002",i)}},_isMultiSelectEnabled:function(){var e=this.options.mode;return"all"===e||"multiple"===e},_requestInProgress:function(){var e;return"pending"===(null===(e=this._lastLoadDeferred)||void 0===e?void 0:e.state())},_concatRequestsItems:function(e,t,n,i){var o,r=t?e:[];return o=i||(0,a.removeDuplicates)(e,this.options.selectedItemKeys),{addedItems:n.added.concat(o),removedItems:n.removed.concat(r),keys:e}},_collectLastRequestData:function(e,t,n,i){var o=t&&n,a={added:[],removed:[]},s=this._isMultiSelectEnabled(),l=s?this._lastRequestData:{};return s&&(this._shouldMergeWithLastRequest&&(o?(this._lastLoadDeferred.reject(),l={}):(0,r.isKeysEqual)(e,this.options.selectedItemKeys)||(a.added=l.addedItems,a.removed=l.removedItems,t||this._lastLoadDeferred.reject())),l=this._concatRequestsItems(e,t,a,this._shouldMergeWithLastRequest?void 0:i)),l},_updateKeysByLastRequestData:function(e,t,n){var i,o,r=e;return this._isMultiSelectEnabled()&&this._shouldMergeWithLastRequest&&!t&&!n&&(r=(0,a.removeDuplicates)(e.concat(null===(i=this._lastRequestData)||void 0===i?void 0:i.addedItems),null===(o=this._lastRequestData)||void 0===o?void 0:o.removedItems),r=(0,a.uniqueValues)(r)),r},_loadSelectedItems:function(e,t,n,i){var o=this,a=new l.Deferred;return this._shouldMergeWithLastRequest=this._requestInProgress(),this._lastRequestData=this._collectLastRequestData(e,t,n,i),(0,l.when)(o._lastLoadDeferred).always((function(){var i=o._updateKeysByLastRequestData(e,t,n);o._shouldMergeWithLastRequest=!1,o._loadSelectedItemsCore(i,t,n).done(a.resolve).fail(a.reject)})),o._lastLoadDeferred=a,a},selectedItemKeys:function(e,t,n,i,o){var a=this,r=a._loadSelectedItems(e,n,i,o);return r.done((function(e){t?a._preserveSelectionUpdate(e,n):a._replaceSelectionUpdate(e),a.onSelectionChanged()})),r},addSelectedItem:function(e,t){if((0,o.isDefined)(t)&&!this.options.ignoreDisabledItems&&t.disabled)-1===this.options.disabledItemKeys.indexOf(e)&&this.options.disabledItemKeys.push(e);else{var n=this._getKeyHash(e);-1===this._indexOfSelectedItemKey(n)&&(!(0,o.isObject)(n)&&this.options.keyHashIndices&&(this.options.keyHashIndices[n]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(e),this.options.addedItemKeys.push(e),this.options.addedItems.push(t),this.options.selectedItems.push(t))}},_getSelectedIndexByKey:function(e,t){for(var n=this.options.selectedItemKeys,i=0;i<n.length;i++)if((!t||!t[i])&&this.equalKeys(n[i],e))return i;return-1},_getSelectedIndexByHash:function(e,t){var n=this.options.keyHashIndices[e];return n&&n.length>1&&t&&(n=n.filter((function(e){return!t[e]}))),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(e,t){return this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):(0,o.isObject)(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t)},_shiftSelectedKeyIndices:function(e){for(var t=e;t<this.options.selectedItemKeys.length;t++){var n=this.options.selectedItemKeys[t],o=(0,i.getKeyHash)(n),a=this.options.keyHashIndices[o];if(a)for(var r=0;r<a.length;r++)a[r]>e&&a[r]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,a=this._indexOfSelectedItemKey(n,t);if(a<0)return a;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[a]),i)return a;if(this.options.selectedItemKeys.splice(a,1),this.options.selectedItems.splice(a,1),(0,o.isObject)(n)||!this.options.keyHashIndices)return a;var r=this.options.keyHashIndices[n];return r?(r.shift(),r.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(a),a):a},_updateAddedItemKeys:function(e,t){for(var n=0;n<e.length;n++)this.isItemKeySelected(e[n])||(this.options.addedItemKeys.push(e[n]),this.options.addedItems.push(t[n]))},_updateRemovedItemKeys:function(e,t,n){for(var i=0;i<t.length;i++)this.isItemKeySelected(t[i])||(this.options.removedItemKeys.push(t[i]),this.options.removedItems.push(n[i]))},_isItemSelectionInProgress:function(e,t){var n;return!!(t&&this._lastRequestData&&this._requestInProgress())&&(null!==(n=this._lastRequestData.addedItems)&&void 0!==n?n:[]).includes(e)},_getKeyHash:function(e){return this.options.equalByReference?e:(0,i.getKeyHash)(e)},setSelectedItems:function(e,t){this._updateAddedItemKeys(e,t);var n=this.options.selectedItemKeys,i=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(e)),this._setOption("selectedItemKeys",e),this._setOption("selectedItems",t),this._updateRemovedItemKeys(e,n,i)},isItemDataSelected:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.options.keyOf(e);return this.isItemKeySelected(n,t)},isItemKeySelected:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this._isItemSelectionInProgress(e,t.checkPending);if(!n){var i=this._getKeyHash(e),o=this._indexOfSelectedItemKey(i);n=-1!==o}return n},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}});t.default=h,e.exports=t.default,e.exports.default=t.default},56756:function(e,t,n){t.hiddenFocus=function(e){_=!0,e.focus(),_=!1},t.registerKeyboardAction=function(e,t,n,s,u,c){if(t.option("useLegacyKeyboardNavigation"))return l.noop;var h=function(){return(0,i.default)(t.element())},f=function(n){return function(e,t,n,o,s,l){if(!function(e,t,n){var i={event:t,handled:!1};return n?n(i):e._createActionByOption("onKeyDown")(i),i.handled}(t,n.originalEvent,l)){var u=(0,a.normalizeKeyName)(n);"enter"===u||"space"===u?(function(e,t){var n=(0,i.default)(e),o=n.attr("aria-label"),a=y(o,t.element()).index(n);v=(0,r.extend)({},{ariaLabel:o,index:a},{viewInstance:t})}(n.target,t),o&&o({event:n})):"tab"===u?s.addClass(d):w(e,t,n)}}(e,t,n,u,h(),c)},p=function(){m=!0,h().removeClass(d)},g=function(){!m&&!_&&h().addClass(d),m=!1};return o.default.on(n,"keydown",s,f),o.default.on(n,"mousedown",s,p),o.default.on(n,"focusin",s,g),function(){o.default.off(n,"keydown",s,f),o.default.off(n,"mousedown",s,p),o.default.off(n,"focusin",s,g)}},t.restoreFocus=function(e){if(!e.option("useLegacyKeyboardNavigation")&&v){var t=v.viewInstance;if(t){var n=y(v.ariaLabel,t.element()).eq(v.index);v=null,o.default.trigger(n,"focus")}}},t.selectView=w,t.setTabIndex=function(e,t){e.option("useLegacyKeyboardnavigation")||t.attr("tabindex",e.option("tabindex")||0)},t.subscribeVisibilityChange=function(){o.default.on(s.default.getDocument(),"visibilitychange",b)},t.unsubscribeVisibilityChange=function(){o.default.off(s.default.getDocument(),"visibilitychange",b)};var i=u(n(68374)),o=u(n(55994)),a=n(39611),r=n(13306),s=u(n(73349)),l=n(20576);function u(e){return e&&e.__esModule?e:{default:e}}var d="dx-state-focused",c=".dx-datagrid-rowsview .dx-row",h="".concat(c," > td"),f=".dx-treelist-rowsview .dx-row",p="".concat(f," > td"),g={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell .dx-texteditor-input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell .dx-texteditor-input"],rowsView:["".concat(".dx-row-focused"),"".concat(c,"[tabindex]"),"".concat(h,"[tabindex]"),"".concat(h),"".concat(f,"[tabindex]"),"".concat(p,"[tabindex]"),"".concat(p)],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},m=!1,_=!1,v=null;function y(e,t){var n=(0,i.default)(t);return e?n.find('[aria-label="'.concat(e,'"][tabindex]')):n.find("[tabindex]")}function x(e){for(var t in e){var n=e[t],o=(0,i.default)(n).first();if(o.length)return o}}function b(){_="visible"===s.default.getDocument().visibilityState}function w(e,t,n){var i=(0,a.normalizeKeyName)(n);if(n.ctrlKey&&("upArrow"===i||"downArrow"===i))for(var r=Object.keys(g),s=r.indexOf(e);s>=0&&s<r.length;){var l=r[s="upArrow"===i?--s:++s],u=x(g[l]);if(u&&u.length){u.attr("tabindex",t.option("tabindex")||0),o.default.trigger(u,"focus"),u.removeClass("dx-cell-focus-disabled");break}}}},18740:function(e,t,n){t.default=void 0;var i,o,a,r,s=n(35922),l=n(89386),u=n(95479),d=["year","month","day"],c=["year","month","day","hour","minute"],h=function(e){return"date"===e||"datetime"===e},f=function(e){var t,n=[],i=["year","month","day","hour","minute","second"],o=e.headerFilter&&e.headerFilter.groupInterval,a="quarter"===o?"month":o;return h(e.dataType)&&null!==o?(n="datetime"===e.dataType?c:d,(t=(0,l.inArray)(a,i))>=0?((n=i.slice(0,t)).push(o),n):n):(0,s.isDefined)(o)?Array.isArray(o)?o:[o]:void 0},p=(i=function(e,t){var n=e.dataField||e.selector;return"search"===t&&(n=e.displayField||e.calculateDisplayValue||n),n},o=function(e,t){var n,o,a,r,l=this,u=i(l,t);if(Array.isArray(e)&&(0,s.isDefined)(e[0])&&(0,s.isDefined)(e[1]))return o=[u,">=",e[0]],a=[u,"<=",e[1]],h(l.dataType)&&(r=e[1]).getHours()+r.getMinutes()+r.getSeconds()+r.getMilliseconds()<1&&(n=new Date(e[1].getTime()),"date"===l.dataType&&n.setDate(e[1].getDate()+1),a=[u,"<",n]),[o,"and",a]},a=function(e,t,n){var o,a,r,l,d=this,c=(l=e,(0,s.isDate)(l)?[l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds()]:(0,u.map)((""+l).split("/"),(function(e,t){return 1===t?Number(e)-1:Number(e)}))),h=i(d,n);switch("headerFilter"===n?r=f(d)[c.length-1]:"datetime"===d.dataType&&(r="minute"),r){case"year":o=new Date(c[0],0,1),a=new Date(c[0]+1,0,1);break;case"month":o=new Date(c[0],c[1],1),a=new Date(c[0],c[1]+1,1);break;case"quarter":o=new Date(c[0],3*c[1],1),a=new Date(c[0],3*c[1]+3,1);break;case"hour":o=new Date(c[0],c[1],c[2],c[3]),a=new Date(c[0],c[1],c[2],c[3]+1);break;case"minute":o=new Date(c[0],c[1],c[2],c[3],c[4]),a=new Date(c[0],c[1],c[2],c[3],c[4]+1);break;case"second":o=new Date(c[0],c[1],c[2],c[3],c[4],c[5]),a=new Date(c[0],c[1],c[2],c[3],c[4],c[5]+1);break;default:o=new Date(c[0],c[1],c[2]),a=new Date(c[0],c[1],c[2]+1)}switch(t){case"<":return[h,"<",o];case"<=":return[h,"<",a];case">":return[h,">=",a];case">=":return[h,">=",o];case"<>":return[[h,"<",o],"or",[h,">=",a]];default:return[[h,">=",o],"and",[h,"<",a]]}},r=function(e,t,n){var o=i(this,n),a=f(this);if("headerFilter"===n&&a&&(0,s.isDefined)(e)){var r=(""+e).split("/"),l=Number(r[r.length-1]);return[[o,">=",l],"and",[o,"<",l+a[r.length-1]]]}return[o,t||"=",e]},{defaultCalculateFilterExpression:function(e,t,n){var l=this,u=i(l,n),d=l.calculateDisplayValue&&"search"===n,c=d&&l.lookup&&l.lookup.dataType||l.dataType,f=null;if("headerFilter"!==n&&"filterBuilder"!==n||null!==e)if("string"!==c||l.lookup&&!d){if("between"===t)return o.apply(l,[e,n]);if(h(c)&&(0,s.isDefined)(e))return a.apply(l,arguments);if("number"===c)return r.apply(l,arguments);"object"!==c&&(f=[u,t||"=",e])}else f=[u,t||"contains",e];else f=[u,t||"=",null],"string"===c&&(f=[f,"="===t?"or":"and",[u,t||"=",""]]);return f},getGroupInterval:f});t.default=p,e.exports=t.default,e.exports.default=t.default},37178:function(e,t,n){t.default=void 0;var i=n(35922),o={_getSpecificDataSourceOption:function(){var e=this.option("dataSource"),t=!1,n={};return this._getGroupedOption()&&function(e){return Array.isArray(e)&&e.every((function(e){return 2===Object.keys(e).length&&"key"in e&&"items"in e&&Array.isArray(e.items)}))}(e)&&(n=e.reduce((function(e,n){var o=n.items.map((function(e){return(0,i.isObject)(e)||(e={text:e},t=!0),"key"in e||(e.key=n.key),e}));return e.concat(o)}),[]),e={store:{type:"array",data:n},group:{selector:"key",keepInitialKeyOrder:!0}},t&&(e.searchExpr="text")),e}};t.default=o,e.exports=t.default,e.exports.default=t.default},15653:function(e,t,n){t.default=void 0;var i=p(n(68374)),o=p(n(55994)),a=n(35922),r=p(n(26974)),s=n(47617),l=p(n(47810)),u=n(13306),d=p(n(20530)),c=n(6415),h=n(9234),f=n(39611);function p(e){return e&&e.__esModule?e:{default:e}}n(29837),n(34171),n(18859),n(78665),n(29589);var g=r.default.isWrapped,m=function(){var e=function(e,t){return(0,u.extend)(e,{readOnly:t.readOnly,placeholder:t.placeholder,inputAttr:{id:t.id},tabIndex:t.tabIndex},t.editorOptions)},t=function(){return l.default.mozilla||d.default.real().ios},n=function(n){var r={},s=t(),l=n.sharedData||r;return e({placeholder:n.placeholder,width:n.width,value:n.value,onValueChanged:function(e){var t="filterRow"===n.parentType||"searchPanel"===n.parentType,i=e.event&&("input"===e.event.type||"keyup"===e.event.type),o=function(e,t){n&&n.setValue(e.value,t)};clearTimeout(r.valueChangeTimeout),i&&t?l.valueChangeTimeout=r.valueChangeTimeout=setTimeout((function(){o(e,r.valueChangeTimeout!==l.valueChangeTimeout)}),(0,a.isDefined)(n.updateValueTimeout)?n.updateValueTimeout:0):o(e)},onKeyDown:function(e){s&&"enter"===(0,f.normalizeKeyName)(e.event)&&o.default.trigger((0,i.default)(e.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===n.parentType?" keyup input":"")},n)};function r(t){var n,i,o,r=t.lookup,l="filterRow"===t.parentType;if(r){n=(0,s.compileGetter)(r.displayExpr),i=r.dataSource,(0,a.isFunction)(i)&&!g(i)&&(i=i(t.row||{}),function(e){if(e.row&&e.row.watch&&"dataRow"===e.parentType){var t,n=e.editorOptions||{};e.editorOptions=n;var i,o=n.onInitialized;n.onInitialized=function(e){o&&o.apply(this,arguments),(t=e.component).on("disposing",a)};var a=e.row.watch((function(){return(i=e.lookup.dataSource(e.row))&&i.filter}),(function(n,o){e.row=o,t.option("dataSource",i)}))}}(t)),((0,a.isObject)(i)||Array.isArray(i))&&(i=(0,h.normalizeDataSourceOptions)(i),l&&(o=i.postProcess,i.postProcess=function(e){return 0===this.pageIndex()&&(e=e.slice(0)).unshift(null),o?o.call(this,e):e}));var u=Boolean(r.allowClearing&&!l);t.editorName="dxSelectBox",t.editorOptions=e({searchEnabled:!0,value:t.value,valueExpr:t.lookup.valueExpr,searchExpr:t.lookup.searchExpr||t.lookup.displayExpr,allowClearing:u,showClearButton:u,displayExpr:function(e){return null===e?t.showAllText:n(e)},dataSource:i,onValueChanged:function(e){var n=[e.value];!l&&n.push(e.component.option("text")),t.setValue.apply(this,n)}},t)}}return{createEditor:function(o,s){if(s.cancel=!1,s.editorElement=(0,c.getPublicElement)(o),(0,a.isDefined)(s.tabIndex)||(s.tabIndex=this.option("tabIndex")),s.lookup)r(s);else switch(s.dataType){case"date":case"datetime":!function(n){n.editorName="dxDateBox",n.editorOptions=e({value:n.value,onValueChanged:function(e){n.setValue(e.value)},onKeyDown:function(e){t()&&"enter"===(0,f.normalizeKeyName)(e.event)&&(e.component.blur(),e.component.focus())},displayFormat:n.format,type:n.dataType,dateSerializationFormat:null,width:"filterBuilder"===n.parentType?void 0:"auto"},n)}(s);break;case"boolean":!function(t){"filterRow"===t.parentType||"filterBuilder"===t.parentType?r((0,u.extend)(t,{lookup:{displayExpr:function(e){return!0===e?t.trueText||"true":!1===e?t.falseText||"false":void 0},dataSource:[!0,!1]}})):function(t){t.editorName="dxCheckBox",t.editorOptions=e({elementAttr:{id:t.id},value:(0,a.isDefined)(t.value)?t.value:void 0,hoverStateEnabled:!t.readOnly,focusStateEnabled:!t.readOnly,activeStateEnabled:!1,onValueChanged:function(e){t.setValue&&t.setValue(e.value,e)}},t)}(t)}(s);break;case"number":!function(e){var t=n(e);t.value=(0,a.isDefined)(e.value)?e.value:null,e.editorName="dxNumberBox",e.editorOptions=t}(s);break;default:!function(e){var t,i=n(e),o="searchPanel"===e.parentType;e.editorType&&"dxTextBox"!==e.editorType?i.value=e.value:i.value=(t=e.value,(0,a.isDefined)(t)?t.toString():""),i.valueChangeEvent+=o?" keyup input search":"",i.mode=i.mode||(o?"search":"text"),e.editorName="dxTextBox",e.editorOptions=i}(s)}var l=s.editorName;this.executeAction("onEditorPreparing",s),s.cancel||("dataRow"===s.parentType&&s.editorType&&l===s.editorName&&(s.editorName=s.editorType),"dataRow"!==s.parentType||s.isOnForm||(0,a.isDefined)(s.editorOptions.showValidationMark)||(s.editorOptions.showValidationMark=!1),function(e,t){var n=(0,i.default)(t.editorElement);if(t.editorName&&t.editorOptions&&n[t.editorName]){if("dxCheckBox"!==t.editorName&&"dxSwitch"!==t.editorName||t.isOnForm||(n.addClass(e.addWidgetPrefix("checkbox-size")),n.parent().addClass("dx-editor-inline-block")),e._createComponent(n,t.editorName,t.editorOptions),"dxDateBox"===t.editorName){var o=n.dxDateBox("instance"),a=o._supportedKeys().enter;o.registerKeyHandler("enter",(function(e){return o.option("opened")&&a(e),!0}))}"dxTextArea"===t.editorName&&n.dxTextArea("instance").registerKeyHandler("enter",(function(e){"enter"!==(0,f.normalizeKeyName)(e)||e.ctrlKey||e.shiftKey||e.stopPropagation()}))}}(this,s),this.executeAction("onEditorPrepared",s))}}}();t.default=m,e.exports=t.default,e.exports.default=t.default},85643:function(e,t,n){t.default=void 0;var i=m(n(68374)),o=n(6415),a=n(20576),r=n(35922),s=m(n(99393)),l=n(13306),u=m(n(14174)),d=m(n(92719)),c=m(n(11050)),h=m(n(56757)),f=n(91627),p=n(10688),g=m(n(37178));function m(e){return e&&e.__esModule?e:{default:e}}var _=c.default.inherit({ctor:function(e,t){this.callBase(e,t),this._logDeprecatedComponentWarning("20.1","dxDrawer")},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{activeStateEnabled:!1,menuItemTemplate:"menuItem",swipeEnabled:!0,menuVisible:!1,menuPosition:"normal",menuGrouped:!1,menuGroupTemplate:"menuGroup",onMenuItemRendered:null,onMenuGroupRendered:null,contentTemplate:"content",selectionMode:"single",selectedIndex:0,selectionRequired:!0})},_itemClass:function(){return"dx-slideout-item"},_itemDataKey:function(){return"dxSlideoutItemData"},_itemContainer:function(){return(0,i.default)(this._slideOutView.content())},_init:function(){this._selectedItemContentRendered=!1,this.callBase(),this.$element().addClass("dx-slideout"),this._initSlideOutView()},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({menuItem:new f.ChildDefaultTemplate("item"),menuGroup:new f.ChildDefaultTemplate("group"),content:new p.EmptyTemplate})},_initEditStrategy:function(){if(this.option("menuGrouped")){var e=u.default.inherit({_getPlainItems:function(){return this.callBase().reduce((function(e,t){return e.push.apply(e,t.items),e}),[])}});this._editStrategy=new e(this)}else this.callBase()},_initSlideOutView:function(){this._slideOutView=this._createComponent(this.$element(),d.default,{integrationOptions:{},menuVisible:this.option("menuVisible"),swipeEnabled:this.option("swipeEnabled"),menuPosition:this.option("menuPosition"),onOptionChanged:this._slideOutViewOptionChanged.bind(this)}),this._itemContainer().addClass("dx-slideout-item-container")},_slideOutViewOptionChanged:function(e){"menuVisible"===e.name&&this.option(e.name,e.value)},_initMarkup:function(){this._renderList(),this._renderContentTemplate(),this.callBase()},_render:function(){this._slideOutView._renderShield(),this.callBase()},_renderList:function(){var e=this._list&&this._list.$element()||(0,i.default)("<div>").addClass("dx-slideout-menu").appendTo((0,i.default)(this._slideOutView.menuContent()));this._renderItemClickAction(),this._list=this._createComponent(e,h.default,{itemTemplateProperty:"menuTemplate",selectionMode:this.option("selectionMode"),selectionRequired:this.option("selectionRequired"),indicateLoading:!1,onItemClick:this._listItemClickHandler.bind(this),items:this.option("items"),dataSource:this._dataSource,itemTemplate:this._getTemplateByOption("menuItemTemplate"),grouped:this.option("menuGrouped"),groupTemplate:this._getTemplateByOption("menuGroupTemplate"),onItemRendered:this.option("onMenuItemRendered"),onGroupRendered:this.option("onMenuGroupRendered"),onContentReady:this._updateSlideOutView.bind(this)}),this._list.option("selectedIndex",this.option("selectedIndex"))},_getGroupedOption:function(){return this.option("menuGrouped")},_updateSlideOutView:function(){this._slideOutView._dimensionChanged()},_renderItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_listItemClickHandler:function(e){var t=this._list.$element().find(".dx-list-item").index(e.itemElement);this.option("selectedIndex",t),this._itemClickAction(e)},_renderContentTemplate:function(){if(!(0,r.isDefined)(this._singleContent)){var e=this._itemContainer().html().length;this._getTemplateByOption("contentTemplate").render({container:(0,o.getPublicElement)(this._itemContainer())}),this._singleContent=this._itemContainer().html().length!==e}},_itemClickHandler:a.noop,_renderContentImpl:function(){if(!this._singleContent){var e=this.option("items"),t=this.option("selectedIndex");if(e.length&&t>-1){this._selectedItemContentRendered=!0;var n=this._list.getItemByIndex(t);this._renderItems([n])}}},_renderItem:function(e,t){this._itemContainer().find(".dx-slideout-item").remove(),this.callBase(e,t)},_selectedItemElement:function(){return this._itemElements().eq(0)},_updateSelection:function(){this._prepareContent(),this._renderContent()},_getListWidth:function(){return this._slideOutView._getMenuWidth()},_changeMenuOption:function(e,t){this._list.option(e,t),this._updateSlideOutView()},_cleanItemContainer:function(){this._singleContent||this.callBase()},beginUpdate:function(){this.callBase(),this._list&&this._list.beginUpdate()},endUpdate:function(){this._list&&this._list.endUpdate(),this.callBase()},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"menuVisible":case"swipeEnabled":case"rtlEnabled":case"menuPosition":this._slideOutView.option(t,n);break;case"width":this.callBase(e),this._updateSlideOutView();break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"items":this._changeMenuOption("items",this.option("items")),this._selectedItemContentRendered||this._updateSelection();break;case"dataSource":case"selectedIndex":case"selectedItem":this._changeMenuOption(t,n),this.callBase(e);break;case"menuGrouped":this._initEditStrategy(),this._changeMenuOption("grouped",n);break;case"menuGroupTemplate":this._changeMenuOption("groupTemplate",this._getTemplate(n));break;case"onMenuItemRendered":this._changeMenuOption("onItemRendered",n);break;case"onMenuGroupRendered":this._changeMenuOption("onGroupRendered",n);break;case"onItemClick":this._renderItemClickAction();break;case"contentTemplate":this._singleContent=null,this._invalidate();break;default:this.callBase(e)}},showMenu:function(){return this._slideOutView.toggleMenuVisibility(!0)},hideMenu:function(){return this._slideOutView.toggleMenuVisibility(!1)},toggleMenuVisibility:function(e){return this._slideOutView.toggleMenuVisibility(e)}}).include(g.default);(0,s.default)("dxSlideOut",_);var v=_;t.default=v,e.exports=t.default,e.exports.default=t.default},92719:function(e,t,n){t.default=void 0;var i=n(58664),o=y(n(68374)),a=y(n(55994)),r=n(20576),s=n(95429),l=n(31648),u=n(6415),d=n(4928),c=y(n(99393)),h=n(13306),f=y(n(14390)),p=y(n(66894)),g=n(10688),m=n(62754),_=n(58201),v=n(28065);function y(e){return e&&e.__esModule?e:{default:e}}var x=f.default.inherit({ctor:function(e,t){this.callBase(e,t),this._logDeprecatedComponentWarning("20.1","dxDrawer")},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{menuPosition:"normal",menuVisible:!1,swipeEnabled:!0,menuTemplate:"menu",contentTemplate:"content",contentOffset:45})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{android:!0},options:{contentOffset:54}},{device:function(e){return"generic"===e.platform&&"desktop"!==e.deviceType},options:{contentOffset:56}},{device:{win:!0,phone:!1},options:{contentOffset:76}}])},_init:function(){this.callBase(),this.$element().addClass("dx-slideoutview"),this._whenAnimationComplete=void 0,this._whenMenuRendered=void 0,this._initHideTopOverlayHandler()},_initHideTopOverlayHandler:function(){this._hideMenuHandler=this.hideMenu.bind(this)},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this._templateManager.addDefaultTemplates({menu:new g.EmptyTemplate,content:new g.EmptyTemplate}),this.callBase()},_initMarkup:function(){var e=this;this.callBase(),this._renderMarkup(),this._whenMenuRendered=new m.Deferred;var t=this._getTemplate(this.option("menuTemplate"));t&&t.render({container:this.menuContent(),onRendered:function(){e._whenMenuRendered.resolve()}});var n=this.option("contentTemplate"),i=this._getTemplate(n),o=this._templateManager.anonymousTemplateName===n;i&&i.render({container:this.content(),noModel:!0,transclude:o}),this._renderShield(),this._toggleMenuPositionClass()},_render:function(){var e=this;this.callBase(),this._whenMenuRendered.always((function(){e._initSwipeHandlers(),e._dimensionChanged()}))},_renderMarkup:function(){var e=(0,o.default)("<div>").addClass("dx-slideoutview-wrapper");this._$menu=(0,o.default)("<div>").addClass("dx-slideoutview-menu-content"),this._$container=(0,o.default)("<div>").addClass("dx-slideoutview-content"),e.append(this._$menu),e.append(this._$container),this.$element().append(e),a.default.on(this._$container,"MSPointerDown",r.noop)},_renderShield:function(){this._$shield=this._$shield||(0,o.default)("<div>").addClass("dx-slideoutview-shield"),this._$shield.appendTo(this.content()),a.default.off(this._$shield,s.name),a.default.on(this._$shield,s.name,this.hideMenu.bind(this)),this._toggleShieldVisibility(this.option("menuVisible"))},_initSwipeHandlers:function(){this._createComponent((0,o.default)(this.content()),p.default,{disabled:!this.option("swipeEnabled"),elastic:!1,itemSizeFunc:this._getMenuWidth.bind(this),onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this)})},_isRightMenuPosition:function(){var e="inverted"===this.option("menuPosition"),t=this.option("rtlEnabled");return t&&!e||!t&&e},_swipeStartHandler:function(e){v.animation.complete((0,o.default)(this.content()));var t=e.event,n=this.option("menuVisible"),i=this._isRightMenuPosition();t.maxLeftOffset=+(i?!n:n),t.maxRightOffset=+(i?n:!n),this._toggleShieldVisibility(!0)},_swipeUpdateHandler:function(e){var t=e.event,n=this.option("menuVisible")?t.offset+1*this._getRTLSignCorrection():t.offset;n*=this._getRTLSignCorrection(),this._renderPosition(n,!1)},_swipeEndHandler:function(e){var t=0!==e.event.targetOffset*this._getRTLSignCorrection()+this.option("menuVisible");this.option("menuVisible")===t?this._renderPosition(this.option("menuVisible"),!0):this.option("menuVisible",t)},_toggleMenuPositionClass:function(){var e=this._isRightMenuPosition()?"right":"left";this._$menu.removeClass("dx-slideoutview-left dx-slideoutview-right"),this._$menu.addClass("dx-slideoutview-"+e)},_renderPosition:function(e,t){if((0,_.hasWindow)()){var n=this._calculatePixelOffset(e)*this._getRTLSignCorrection();this._toggleHideMenuCallback(e),t?(this._toggleShieldVisibility(!0),v.animation.moveTo((0,o.default)(this.content()),n,this._animationCompleteHandler.bind(this))):(0,l.move)((0,o.default)(this.content()),{left:n})}},_calculatePixelOffset:function(e){return(e=e||0)*this._getMenuWidth()},_getMenuWidth:function(){if(!this._menuWidth){var e=(0,i.getWidth)(this.$element())-this.option("contentOffset"),t=(0,o.default)(this.menuContent());t.css("maxWidth",e<0?0:e);var n=(0,i.getWidth)(t);this._menuWidth=Math.min(n,e)}return this._menuWidth},_animationCompleteHandler:function(){this._toggleShieldVisibility(this.option("menuVisible")),this._whenAnimationComplete&&this._whenAnimationComplete.resolveWith(this)},_toggleHideMenuCallback:function(e){e?d.hideCallback.add(this._hideMenuHandler):d.hideCallback.remove(this._hideMenuHandler)},_getRTLSignCorrection:function(){return this._isRightMenuPosition()?-1:1},_dispose:function(){v.animation.complete((0,o.default)(this.content())),this._toggleHideMenuCallback(!1),this.callBase()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){delete this._menuWidth,this._renderPosition(this.option("menuVisible"),!1)},_toggleShieldVisibility:function(e){this._$shield.toggleClass("dx-state-invisible",!e)},_optionChanged:function(e){switch(e.name){case"width":this.callBase(e),this._dimensionChanged();break;case"contentOffset":this._dimensionChanged();break;case"menuVisible":this._renderPosition(e.value,!0);break;case"menuPosition":this._renderPosition(this.option("menuVisible"),!0),this._toggleMenuPositionClass();break;case"swipeEnabled":this._initSwipeHandlers();break;case"contentTemplate":case"menuTemplate":this._invalidate();break;default:this.callBase(e)}},menuContent:function(){return(0,u.getPublicElement)(this._$menu)},content:function(){return(0,u.getPublicElement)(this._$container)},showMenu:function(){return this.toggleMenuVisibility(!0)},hideMenu:function(){return this.toggleMenuVisibility(!1)},toggleMenuVisibility:function(e){return e=void 0===e?!this.option("menuVisible"):e,this._whenAnimationComplete=new m.Deferred,this.option("menuVisible",e),this._whenAnimationComplete.promise()}});(0,c.default)("dxSlideOutView",x);var b=x;t.default=b,e.exports=t.default,e.exports.default=t.default},28065:function(e,t,n){t.animation=void 0;var i,o=(i=n(87209))&&i.__esModule?i:{default:i},a={moveTo:function(e,t,n){o.default.animate(e,{type:"slide",to:{left:t},duration:400,complete:n})},complete:function(e){o.default.stop(e,!0)}};t.animation=a},97834:function(e,t,n){var i;t.default=void 0;var o=((i=n(63570))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},73437:function(e,t,n){t.SliderTooltipPositionController=void 0;var i,o=n(84228),a=n(31648),r=(i=n(49387))&&i.__esModule?i:{default:i},s=n(13306),l=n(35922);function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d={top:{my:"bottom center",at:"top center",collision:"fit none"},bottom:{my:"top center",at:"bottom center",collision:"fit none"}},c={h:2,v:1},h=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var o=i.prototype;return o._normalizePosition=function(e,t){var n=".".concat("dx-slider"),i=null==t?void 0:t.closest(n),o={of:t,boundaryOffset:c,boundary:null==i?void 0:i.get(0)},a=(0,s.extend)(!0,{},o,this._positionToObject(e));return this._positionSide=this._getDisplaySide(a),a},o._renderContentInitialPosition=function(){e.prototype._renderContentInitialPosition.call(this),this._fitIntoSlider()},o._fitIntoSlider=function(){var e=r.default.calculate(this._$content,this._position).h,t=e.collisionSide,n=e.oversize,i=this._visualPosition.left,o=("left"===t?1:-1)*n;(0,a.move)(this._$content,{left:i+o}),this._updateVisualPositionValue()},o._positionToObject=function(e){return(0,l.isString)(e)?(0,s.extend)({},d[e]):e},i}(o.PopoverPositionController);t.SliderTooltipPositionController=h},63570:function(e,t,n){t.default=void 0;var i=n(58664),o=w(n(99393)),a=w(n(20530)),r=w(n(68374)),s=n(20576),l=n(62754),u=n(13306),d=n(95429),c=n(91633),h=w(n(55994)),f=w(n(66894)),p=w(n(93786)),g=n(39611),m=w(n(18016)),_=n(75811),v=w(n(39661)),y=n(72672),x=w(n(6320)),b=n(60810);function w(e){return e&&e.__esModule?e:{default:e}}var C="dx-slider-label",S="Validation",k=v.default.inherit({_activeStateUnit:".dx-slider-handle",_supportedKeys:function(){var e=this,t=this.option("rtlEnabled"),n=function(t,n){t=e._valueStep(t);var i=e.option("step"),o=e.option("value"),a=o-e.option("min"),r=(0,b.getRemainderByDivision)(a,i,e._getValueExponentLength()),s=n?o-t+(r?i-r:0):o+t-r,l=e.option("min"),u=e.option("max");return s<l?s=l:s>u&&(s=u),e._roundToExponentLength(s)},i=function(i){e.option("value",n(i,t))},o=function(i){e.option("value",n(i,!t))};return(0,u.extend)(this.callBase(),{leftArrow:function(e){this._processKeyboardEvent(e),o(this.option("step"))},rightArrow:function(e){this._processKeyboardEvent(e),i(this.option("step"))},pageUp:function(e){this._processKeyboardEvent(e),i(this.option("step")*this.option("keyStep"))},pageDown:function(e){this._processKeyboardEvent(e),o(this.option("step")*this.option("keyStep"))},home:function(e){this._processKeyboardEvent(e);var t=this.option("min");this.option("value",t)},end:function(e){this._processKeyboardEvent(e);var t=this.option("max");this.option("value",t)}})},_processKeyboardEvent:function(e){e.preventDefault(),e.stopPropagation(),this._saveValueChangeEvent(e)},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{value:50,hoverStateEnabled:!0,activeStateEnabled:!0,step:1,showRange:!0,tooltip:{enabled:!1,format:function(e){return e},position:"top",showMode:"onHover"},label:{visible:!1,position:"bottom",format:function(e){return e}},keyStep:1,useInkRipple:!1,validationMessageOffset:(0,_.isMaterial)()?{h:18,v:0}:{h:7,v:4},focusStateEnabled:!0})},_toggleValidationMessage:function(e){this.option("isValid")||this.$element().toggleClass("dx-invalid-message-visible",e)},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.default.real().deviceType&&!a.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var e=(0,_.current)();return(0,_.isMaterial)(e)},options:{useInkRipple:!0}}])},_initMarkup:function(){this.$element().addClass("dx-slider"),this._renderSubmitElement(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._renderLabels(),this._renderStartHandler(),this._renderAriaMinAndMax()},_attachFocusEvents:function(){this.callBase();var e=this.NAME+S,t=(0,g.addNamespace)("focusin",e),n=(0,g.addNamespace)("focusout",e),i=this._focusTarget();h.default.on(i,t,this._toggleValidationMessage.bind(this,!0)),h.default.on(i,n,this._toggleValidationMessage.bind(this,!1))},_detachFocusEvents:function(){this.callBase();var e=this._focusTarget();this._toggleValidationMessage(!1),h.default.off(e,this.NAME+S)},_render:function(){this.callBase(),this._repaintHandle()},_renderSubmitElement:function(){this._$submitElement=(0,r.default)("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=(0,y.render)({waveSizeCoefficient:.7,isCentered:!0,wavesNumber:2,useHoldAnimation:!1})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_visibilityChanged:function(){this.repaint()},_renderWrapper:function(){this.callBase(),this._$wrapper.addClass("dx-slider-wrapper"),this._createComponent(this._$wrapper,f.default,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._itemWidthFunc.bind(this)})},_renderContainer:function(){this.callBase(),this._$bar.addClass("dx-slider-bar")},_renderRange:function(){this.callBase(),this._$range.addClass("dx-slider-range"),this._renderHandle(),this._renderRangeVisibility()},_renderRangeVisibility:function(){this._$range.toggleClass("dx-slider-range-visible",Boolean(this.option("showRange")))},_renderHandle:function(){this._$handle=this._renderHandleImpl(this.option("value"),this._$handle)},_renderHandleImpl:function(e,t){var n=t||(0,r.default)("<div>").appendTo(this._$range),i=this.option("tooltip");return this.$element().toggleClass("dx-slider-tooltip-position-bottom",i.enabled&&"bottom"===i.position).toggleClass("dx-slider-tooltip-position-top",i.enabled&&"top"===i.position),this._createComponent(n,x.default,{value:e,tooltip:i}),n},_renderAriaMinAndMax:function(){this.setAria({valuemin:this.option("min"),valuemax:this.option("max")},this._$handle)},_toggleActiveState:function(e,t){this.callBase(e,t),this._renderInkWave(e,null,!!t,1)},_toggleFocusClass:function(e,t){if(this.callBase(e,t),!this._disposed){var n=(0,r.default)(t||this._focusTarget());this._renderInkWave(n,null,e,0)}},_renderLabels:function(){if(this.$element().removeClass("dx-slider-label-position-bottom").removeClass("dx-slider-label-position-top"),this.option("label.visible")){var e=this.option("min"),t=this.option("max"),n=this.option("label.position"),i=this.option("label.format");this._$minLabel||(this._$minLabel=(0,r.default)("<div>").addClass(C).appendTo(this._$wrapper)),this._$minLabel.text(m.default.format(e,i)),this._$maxLabel||(this._$maxLabel=(0,r.default)("<div>").addClass(C).appendTo(this._$wrapper)),this._$maxLabel.text(m.default.format(t,i)),this.$element().addClass("dx-slider-label-position-"+n)}else this._$minLabel&&(this._$minLabel.remove(),delete this._$minLabel),this._$maxLabel&&(this._$maxLabel.remove(),delete this._$maxLabel)},_renderStartHandler:function(){var e=this,t=(0,g.addNamespace)(p.default.down,this.NAME),n=(0,g.addNamespace)(d.name,this.NAME),i=this._createAction(this._startHandler.bind(this)),o=this.$element();h.default.off(o,t),h.default.on(o,t,(function(e){(0,g.isMouseEvent)(e)&&i({event:e})})),h.default.off(o,n),h.default.on(o,n,(function(t){var n=e._activeHandle();n&&(h.default.trigger(n,"focusin"),h.default.trigger(n,"focus")),i({event:t})}))},_itemWidthFunc:function(){return this._itemWidthRatio},_swipeStartHandler:function(e){var t=this.option("rtlEnabled");(0,g.isTouchEvent)(e.event)&&this._createAction(this._startHandler.bind(this))({event:e.event}),this._feedbackDeferred=new l.Deferred,(0,c.lock)(this._feedbackDeferred),this._toggleActiveState(this._activeHandle(),this.option("activeStateEnabled")),this._startOffset=this._currentRatio;var n=this._startOffset*this._swipePixelRatio(),o=(1-this._startOffset)*this._swipePixelRatio();e.event.maxLeftOffset=t?o:n,e.event.maxRightOffset=t?n:o,this._itemWidthRatio=(0,i.getWidth)(this.$element())/this._swipePixelRatio(),this._needPreventAnimation=!0},_swipeEndHandler:function(e){this._feedbackDeferred.resolve(),this._toggleActiveState(this._activeHandle(),!1);var t=this.option("rtlEnabled")?-1:1;delete this._needPreventAnimation,this._saveValueChangeEvent(e.event),this._changeValueOnSwipe(this._startOffset+t*e.event.targetOffset/this._swipePixelRatio()),delete this._startOffset,this._renderValue()},_activeHandle:function(){return this._$handle},_swipeUpdateHandler:function(e){this._saveValueChangeEvent(e.event),this._updateHandlePosition(e)},_updateHandlePosition:function(e){var t=this.option("rtlEnabled")?-1:1,n=Math.min(this._startOffset+t*e.event.offset/this._swipePixelRatio(),1);(0,i.setWidth)(this._$range,100*n+"%"),x.default.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(n)},_swipePixelRatio:function(){var e=this.option("min");return(this.option("max")-e)/this._valueStep(this.option("step"))},_valueStep:function(e){return e&&!isNaN(e)||(e=1),e},_getValueExponentLength:function(){var e=this.option(),t=e.step,n=e.min;return Math.max((0,b.getExponentLength)(t),(0,b.getExponentLength)(n))},_roundToExponentLength:function(e){var t=this._getValueExponentLength();return(0,b.roundFloatPart)(e,t)},_changeValueOnSwipe:function(e){var t=this.option("min"),n=this.option("max"),i=this._valueStep(this.option("step")),o=t+e*(n-t);if(!(i<0))if(o===n||o===t)this._setValueOnSwipe(o);else{var a=Math.round((o-t)/i);o=this._roundToExponentLength(a*i+t),this._setValueOnSwipe(Math.max(Math.min(o,n),t))}},_setValueOnSwipe:function(e){this.option("value",e),this._saveValueChangeEvent(void 0)},_startHandler:function(e){var t=e.event;this._currentRatio=((0,g.eventData)(t).x-this._$bar.offset().left)/(0,i.getWidth)(this._$bar),this.option("rtlEnabled")&&(this._currentRatio=1-this._currentRatio),this._saveValueChangeEvent(t),this._changeValueOnSwipe(this._currentRatio)},_renderValue:function(){this.callBase();var e=this.option("value");this._getSubmitElement().val((0,s.applyServerDecimalSeparator)(e)),x.default.getInstance(this._activeHandle()).option("value",e)},_setRangeStyles:function(e){e&&this._$range.css(e)},_callHandlerMethod:function(e,t){x.default.getInstance(this._$handle)[e](t)},_repaintHandle:function(){this._callHandlerMethod("repaint")},_fitTooltip:function(){this._callHandlerMethod("updateTooltipPosition")},_optionChanged:function(e){switch(e.name){case"visible":this.callBase(e),this._renderHandle(),this._repaintHandle();break;case"min":case"max":this._renderValue(),this.callBase(e),this._renderLabels(),this._renderAriaMinAndMax(),this._fitTooltip();break;case"step":this._renderValue();break;case"keyStep":break;case"showRange":this._renderRangeVisibility();break;case"tooltip":this._renderHandle();break;case"label":this._renderLabels();break;case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_refresh:function(){this._toggleRTLDirection(this.option("rtlEnabled")),this._renderDimensions(),this._renderValue(),this._renderHandle(),this._repaintHandle()},_clean:function(){delete this._inkRipple,this.callBase()}});(0,o.default)("dxSlider",k);var D=k;t.default=D,e.exports=t.default,e.exports.default=t.default},6320:function(e,t,n){t.default=void 0;var i=s(n(68374)),o=s(n(14390)),a=s(n(52554)),r=n(13306);function s(e){return e&&e.__esModule?e:{default:e}}var l=o.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{hoverStateEnabled:!1,value:0,tooltip:{enabled:!1,format:function(e){return e},position:"top",showMode:"onHover"}})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-slider-handle"),this.setAria({role:"slider",valuenow:this.option("value")})},_render:function(){this.callBase(),this._renderTooltip()},_renderTooltip:function(){var e=this.option(),t=e.tooltip,n=e.value,o=t.position,r=t.format,s=t.enabled,l=t.showMode;this._sliderTooltip=this._createComponent((0,i.default)("<div>"),a.default,{target:this.$element(),container:this.$element(),position:o,visible:s,showMode:l,format:r,value:n})},_clean:function(){this.callBase(),this._sliderTooltip=null},_updateTooltipOptions:function(e){var t,n=o.default.getOptionsFromContainer(e);this._setWidgetOption("_sliderTooltip",[n]),null===(t=this._sliderTooltip)||void 0===t||t.option("visible",n.enabled)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"value":var i;null===(i=this._sliderTooltip)||void 0===i||i.option("value",n),this.setAria("valuenow",n);break;case"tooltip":this._updateTooltipOptions(e);break;default:this.callBase(arguments)}},updateTooltipPosition:function(){var e;null===(e=this._sliderTooltip)||void 0===e||e.updatePosition()},repaint:function(){var e;null===(e=this._sliderTooltip)||void 0===e||e.repaint()}});t.default=l,e.exports=t.default,e.exports.default=t.default},52554:function(e,t,n){t.default=void 0;var i=s(n(94920)),o=n(13306),a=n(73437),r=s(n(18016));function s(e){return e&&e.__esModule?e:{default:e}}var l=i.default.inherit({_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{visible:!1,position:"top",closeOnOutsideClick:!1,hideTopOverlayHandler:null,hideOnParentScroll:!1,animation:null,arrowPosition:null,templatesRenderAsynchronously:!1,_fixWrapperPosition:!1,useResizeObserver:!1,showMode:"onHover",format:function(e){return e},value:0})},_initMarkup:function(){this.callBase(),this._attachToMarkup(this.option("visible")),this._toggleShowModeClass()},_renderContent:function(){this.callBase(),this._renderContentText()},_renderContentText:function(){var e=this.option(),t=e.value,n=e.format,i=r.default.format(null!=t?t:0,n);this.$content().text(i),this._renderPosition()},_toggleShowModeClass:function(){var e="onHover"===this.option("showMode");this._positionController.$container.toggleClass("dx-slider-tooltip-visible-on-hover",e)},_initPositionController:function(){this._positionController=new a.SliderTooltipPositionController(this._getPositionControllerConfig())},_attachToMarkup:function(e){e?this.$element().appendTo(this._positionController.$container):this.$element().detach()},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"visible":this._attachToMarkup(n),this.callBase(e);break;case"showMode":this._toggleShowModeClass();break;case"format":case"value":this._renderContentText();break;default:this.callBase(e)}},updatePosition:function(){this._renderPosition()}});t.default=l,e.exports=t.default,e.exports.default=t.default},66843:function(e,t,n){t.default=void 0;var i=n(58664),o=g(n(68374)),a=g(n(55994)),r=g(n(99393)),s=n(13306),l=g(n(42160)),u=n(6415),d=n(58201),c=n(37518),h=n(31648),f=g(n(87209)),p=n(62754);function g(e){return e&&e.__esModule?e:{default:e}}var m=(0,d.getWindow)(),_="placeholder",v=function(e){return(0,o.default)(e).is(":visible")},y=function(e,t){var n,i;if(e){var o=(null===(n=t.to)||void 0===n?void 0:n.left)||0,a=(null===(i=t.to)||void 0===i?void 0:i.top)||0;e.style.transform="translate(".concat(o,"px,").concat(a,"px)"),e.style.transition=f.default.off?"":"transform ".concat(t.duration,"ms ").concat(t.easing)}},x=l.default.inherit({_init:function(){this.callBase(),this._sourceScrollHandler=this._handleSourceScroll.bind(this),this._sourceScrollableInfo=null},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{clone:!0,filter:"> *",itemOrientation:"vertical",dropFeedbackMode:"push",allowDropInsideItem:!1,allowReordering:!0,moveItemOnDrop:!1,onDragChange:null,onAdd:null,onRemove:null,onReorder:null,onPlaceholderPrepared:null,animation:{type:"slide",duration:300,easing:"ease"},fromIndex:null,toIndex:null,dropInsideItem:!1,itemPoints:null,fromIndexOffset:0,offset:0,autoUpdate:!1,draggableElementSize:0})},reset:function(){this.option({dropInsideItem:!1,toIndex:null,fromIndex:null,itemPoints:null,fromIndexOffset:0,draggableElementSize:0}),this._$placeholderElement&&this._$placeholderElement.remove(),this._$placeholderElement=null,!this._isIndicateMode()&&this._$modifiedItem&&(this._$modifiedItem.css("marginBottom",this._modifiedItemMargin),this._$modifiedItem=null)},_getPrevVisibleItem:function(e,t){return e.slice(0,t).reverse().filter(v)[0]},_dragStartHandler:function(e){if(this.callBase.apply(this,arguments),!0!==e.cancel){var t=this._getSourceElement();this._updateItemPoints(),this._subscribeToSourceScroll(e),this.option("fromIndex",this._getElementIndex(t)),this.option("fromIndexOffset",this.option("offset"))}},_subscribeToSourceScroll:function(e){var t=this._getScrollable((0,o.default)(e.target));t&&(this._sourceScrollableInfo={element:t,scrollLeft:t.scrollLeft(),scrollTop:t.scrollTop()},a.default.on(t,"scroll",this._sourceScrollHandler))},_unsubscribeFromSourceScroll:function(){this._sourceScrollableInfo&&(a.default.off(this._sourceScrollableInfo.element,"scroll",this._sourceScrollHandler),this._sourceScrollableInfo=null)},_handleSourceScroll:function(e){var t=this,n=this._sourceScrollableInfo;n&&["scrollLeft","scrollTop"].forEach((function(i){if(e.target[i]!==n[i]){var o=e.target[i]-n[i];t._correctItemPoints(o),t._movePlaceholder(),n[i]=e.target[i]}}))},_dragEnterHandler:function(e){if(this.callBase.apply(this,arguments),this._subscribeToSourceScroll(e),this!==this._getSourceDraggable()&&(this._updateItemPoints(),this.option("fromIndex",-1),!this._isIndicateMode())){var t=this.option("itemPoints"),n=t[t.length-1];if(n){var a=this.$element(),r=this._getSourceElement(),s=this._isVerticalOrientation(),l=s?(0,i.getOuterHeight)(r,!0):(0,i.getOuterWidth)(r,!0),u=a.get(0)[s?"scrollHeight":"scrollWidth"],d=a.get(0)[s?"scrollTop":"scrollLeft"],c=s?"top":"left",h=n[c],f=a.offset()[c],p=f+u-d-h;if(p<l&&s){var g=this._getItems(),m=(0,o.default)(this._getPrevVisibleItem(g));this._$modifiedItem=m,this._modifiedItemMargin=m.get(0).style.marginBottom,m.css("marginBottom",l-p);var _=m.closest(".dx-sortable"),v=_.data("dxScrollable")||_.data("dxScrollView");v&&v.update()}}}},_dragLeaveHandler:function(){this.callBase.apply(this,arguments),this._unsubscribeFromSourceScroll()},dragEnter:function(){this!==this._getTargetDraggable()&&this.option("toIndex",-1)},dragLeave:function(){this!==this._getTargetDraggable()&&this.option("toIndex",this.option("fromIndex"))},_allowDrop:function(e){var t=this._getTargetDraggable().$element(),n=this._getScrollable(t);if(n){var o=function(e){var t=e.offset(),n=e[0].style,o=parseFloat(n.paddingLeft)||0,a=parseFloat(n.paddingRight)||0,r=parseFloat(n.paddingTop)||0,s=e[0].clientWidth-(o+a),l=(0,i.getHeight)(e),u=t.left+o,d=t.top+r;return{left:u,right:u+s,top:d,bottom:d+l}}(n),a=o.left,r=o.right,s=o.top,l=o.bottom,u=this.option("toIndex"),d=this.option("itemPoints"),c=null==d?void 0:d.filter((function(e){return e.index===u}))[0];if(c&&void 0!==c.top)return this._isVerticalOrientation()?s<=c.top&&c.top<=l:a<=c.left&&c.left<=r}return!0},dragEnd:function(e){var t,n,i,o;null===(t=(n=e.fromComponent)._unsubscribeFromSourceScroll)||void 0===t||t.call(n),null===(i=(o=e.toComponent)._unsubscribeFromSourceScroll)||void 0===i||i.call(o);var a,r,s=this._getSourceElement(),l=this._getSourceDraggable(),u=l.NAME!==this.NAME,d=this.option("toIndex"),c=e.event,f=this._allowDrop(c);return null!==d&&d>=0&&f&&(l!==this&&((a=this._fireAddEvent(c))||(r=this._fireRemoveEvent(c))),u&&(0,h.resetPosition)(s),this.option("moveItemOnDrop")&&!a&&this._moveItem(s,d,r),l===this)?this._fireReorderEvent(c):(new p.Deferred).resolve()},dragMove:function(e){var t=this.option("itemPoints");if(t){for(var n,i=this._isVerticalOrientation(),o=i?"top":"left",a=i?e.pageY:e.pageX,r=this.option("rtlEnabled"),s=t.length-1;s>=0;s--){var l=t[s+1]&&(t[s][o]+t[s+1][o])/2;if(!(!i&&r?a>l:l>a)&&void 0!==l)break;n=t[s]}n&&(this._updatePlaceholderPosition(e,n),this._verticalScrollHelper.isScrolling()&&this._isIndicateMode()&&this._movePlaceholder())}},_isIndicateMode:function(){return"indicate"===this.option("dropFeedbackMode")||this.option("allowDropInsideItem")},_createPlaceholder:function(){var e;return this._isIndicateMode()&&(e=(0,o.default)("<div>").addClass(this._addWidgetPrefix(_)).insertBefore(this._getSourceDraggable()._$dragElement)),this._$placeholderElement=e,e},_getItems:function(){var e=this._getItemsSelector();return this._$content().find(e).not("."+this._addWidgetPrefix(_)).not("."+this._addWidgetPrefix("clone")).toArray()},_allowReordering:function(){return this._getSourceDraggable()!==this._getTargetDraggable()||this.option("allowReordering")},_isValidPoint:function(e,t,n){var i=this.option("allowDropInsideItem");return!!(n||this._allowReordering()||0===e&&i)&&(!this._isIndicateMode()||-1===t||e!==t&&(n||e!==t+1))},_getItemPoints:function(){var e,t,n,a=this,r=[],l=a.option("rtlEnabled"),u=a._isVerticalOrientation(),d=a._getItems(),c=d.filter(v),h=c.length,f=this._getDraggableElement(),p=c.indexOf(f.get(0));if(h){for(var g=0;g<=h;g++){var m=!u&&l^g===h,_=u&&g===h;g<h&&(t=(e=(0,o.default)(c[g])).offset(),n=(0,i.getOuterWidth)(e)),r.push({dropInsideItem:!1,left:t.left+(m?n:0),top:t.top+(_?r[g-1].height:0),index:g===h?d.length:d.indexOf(e.get(0)),$item:e,width:(0,i.getOuterWidth)(e),height:(0,i.getOuterHeight)(e),isValid:a._isValidPoint(g,p)})}if(this.option("allowDropInsideItem")){var y=r;r=[];for(var x=0;x<y.length;x++)r.push(y[x]),y[x+1]&&r.push((0,s.extend)({},y[x],{dropInsideItem:!0,top:Math.floor((y[x].top+y[x+1].top)/2),left:Math.floor((y[x].left+y[x+1].left)/2),isValid:this._isValidPoint(x,p,!0)}))}}else r.push({dropInsideItem:!1,index:0,isValid:!0});return r},_updateItemPoints:function(e){(e||this.option("autoUpdate")||!this.option("itemPoints"))&&this.option("itemPoints",this._getItemPoints())},_correctItemPoints:function(e){var t=this.option("itemPoints");if(e&&t&&!this.option("autoUpdate")){var n=this._isVerticalOrientation()?"top":"left";t.forEach((function(t){t[n]-=e}))}},_getElementIndex:function(e){return this._getItems().indexOf(e.get(0))},_getDragTemplateArgs:function(e){var t=this.callBase.apply(this,arguments);return t.model.fromIndex=this._getElementIndex(e),t},_togglePlaceholder:function(e){this._$placeholderElement&&this._$placeholderElement.toggle(e)},_isVerticalOrientation:function(){return"vertical"===this.option("itemOrientation")},_normalizeToIndex:function(e,t){var n=this._getSourceDraggable()!==this._getTargetDraggable(),i=this.option("fromIndex");return null===e?i:Math.max(n||i>=e||t?e:e-1,0)},_updatePlaceholderPosition:function(e,t){var n=this._getSourceDraggable(),i=this._normalizeToIndex(t.index,t.dropInsideItem),o=(0,s.extend)(this._getEventArgs(e),{toIndex:i,dropInsideItem:t.dropInsideItem});t.isValid&&this._getAction("onDragChange")(o),!o.cancel&&t.isValid?(this.option({dropInsideItem:t.dropInsideItem,toIndex:t.index}),this._getAction("onPlaceholderPrepared")((0,s.extend)(this._getEventArgs(e),{placeholderElement:(0,u.getPublicElement)(this._$placeholderElement),dragElement:(0,u.getPublicElement)(n._$dragElement)})),this._updateItemPoints()):t.isValid||this.option({dropInsideItem:!1,toIndex:null})},_makeWidthCorrection:function(e,t){if(this._$scrollable=this._getScrollable(e),this._$scrollable&&(0,i.getWidth)(this._$scrollable)<t){var n=(0,i.getWidth)(this._$scrollable),o=e.offset().left-this._$scrollable.offset().left,a=n-(0,i.getOuterWidth)(e)-o;t=o>0?n-o:a>0?n-a:n}return t},_updatePlaceholderSizes:function(e,t){var n=this,a=n.option("dropInsideItem"),r=(0,o.default)(t),s=n._isVerticalOrientation(),l="",u="";e.toggleClass(n._addWidgetPrefix("placeholder-inside"),a),(s||a)&&(l=(0,i.getOuterWidth)(r)),s&&!a||(u=(0,i.getOuterHeight)(r)),l=n._makeWidthCorrection(r,l),e.css({width:l,height:u})},_moveItem:function(e,t,n){var i,o=this._getItems(),a=o[t],r=this._getSourceDraggable();n&&(e=e.clone(),r._toggleDragSourceClass(!1,e)),a||(i=o[t-1]),this._moveItemCore(e,a,i)},_moveItemCore:function(e,t,n){t||n?n?e.insertAfter((0,o.default)(n)):e.insertBefore((0,o.default)(t)):e.appendTo(this.$element())},_getDragStartArgs:function(e,t){return(0,s.extend)(this.callBase.apply(this,arguments),{fromIndex:this._getElementIndex(t)})},_getEventArgs:function(e){var t=this._getSourceDraggable(),n=this._getTargetDraggable(),i=n.option("dropInsideItem");return(0,s.extend)(this.callBase.apply(this,arguments),{fromIndex:t.option("fromIndex"),toIndex:this._normalizeToIndex(n.option("toIndex"),i),dropInsideItem:i})},_optionChanged:function(e){var t=this,n=e.name;switch(n){case"onDragChange":case"onPlaceholderPrepared":case"onAdd":case"onRemove":case"onReorder":this["_"+n+"Action"]=this._createActionByOption(n);break;case"itemOrientation":case"allowDropInsideItem":case"moveItemOnDrop":case"dropFeedbackMode":case"itemPoints":case"animation":case"allowReordering":case"fromIndexOffset":case"offset":case"draggableElementSize":case"autoUpdate":break;case"fromIndex":[!1,!0].forEach((function(n){var i=n?e.value:e.previousValue;if(null!==i){var a=(0,o.default)(t._getItems()[i]);t._toggleDragSourceClass(n,a)}}));break;case"dropInsideItem":this._optionChangedDropInsideItem(e);break;case"toIndex":this._optionChangedToIndex(e);break;default:this.callBase(e)}},_optionChangedDropInsideItem:function(){this._isIndicateMode()&&this._$placeholderElement&&this._movePlaceholder()},_isPositionVisible:function(e){var t,n=this.$element();if("hidden"!==n.css("overflow")?t=n.get(0):n.parents().each((function(){if("visible"!==(0,o.default)(this).css("overflow"))return t=this,!1})),t){var i=(0,c.getBoundingRect)(t),a=this._isVerticalOrientation(),r=a?"top":"left",s=a?"bottom":"right",l=a?m.pageYOffset:m.pageXOffset;if(e[r]<i[r]+l||e[r]>i[s]+l)return!1}return!0},_optionChangedToIndex:function(e){var t=e.value;if(this._isIndicateMode()){var n=null!==t&&t>=0;this._togglePlaceholder(n),n&&this._movePlaceholder()}else this._moveItems(e.previousValue,e.value,e.fullUpdate)},update:function(){if(null!==this.option("fromIndex")||null!==this.option("toIndex")){this._updateItemPoints(!0),this._updateDragSourceClass();var e=this.option("toIndex");this._optionChangedToIndex({value:e,fullUpdate:!0})}},_updateDragSourceClass:function(){var e=this._getActualFromIndex(),t=(0,o.default)(this._getItems()[e]);t.length&&(this._$sourceElement=t,this._toggleDragSourceClass(!0,t))},_makeLeftCorrection:function(e,t){var n=this._$scrollable;return n&&this._isVerticalOrientation()&&n.scrollLeft()>t&&(e+=n.scrollLeft()-t),e},_movePlaceholder:function(){var e=this,t=e._$placeholderElement||e._createPlaceholder();if(t){var n=e._getItems(),a=e.option("toIndex"),r=e._isVerticalOrientation(),s=this.option("rtlEnabled"),l=e.option("dropInsideItem"),u=null,d=0,c=n[a];if(c){var h=(0,o.default)(c);u=h.offset(),d=parseFloat(h.css("marginLeft")),r||!s||l||(u.left+=(0,i.getOuterWidth)(h,!0))}else{var f=c=this._getPrevVisibleItem(n,a);f&&(u=(0,o.default)(f).offset(),r?u.top+=(0,i.getOuterHeight)(f,!0):s||(u.left+=(0,i.getOuterWidth)(f,!0)))}e._updatePlaceholderSizes(t,c),u&&!e._isPositionVisible(u)&&(u=null),u&&(u.left=e._makeLeftCorrection(u.left,d),e._move(u,t)),t.toggle(!!u)}},_getPositions:function(e,t,n,i){for(var o=[],a=0;a<e.length;a++){var r=0;null!==i&&null!==n?(-1===n?a>=i&&(r=t):-1===i?a>n&&(r=-t):n<i?a>n&&a<i&&(r=-t):n>i&&a>=i&&a<n&&(r=t),o.push(r)):o.push(r)}return o},_getDraggableElementSize:function(e){var t=this._getDraggableElement(),n=this.option("draggableElementSize");return n||(n=e?((0,i.getOuterHeight)(t)+(0,i.getOuterHeight)(t,!0))/2:((0,i.getOuterWidth)(t)+(0,i.getOuterWidth)(t,!0))/2,this.option("autoUpdate")||this.option("draggableElementSize",n)),n},_getActualFromIndex:function(){var e=this.option(),t=e.fromIndex,n=e.fromIndexOffset,i=e.offset;return null==t?null:t+n-i},_moveItems:function(e,t,n){for(var i,o,a,r,l=this._getActualFromIndex(),u=this._isVerticalOrientation(),d=u?"top":"left",c=this._getDraggableElementSize(u),h=this._getItems(),f=this._getPositions(h,c,l,e),p=this._getPositions(h,c,l,t),g=this.option("animation"),m=this.option("rtlEnabled"),_=0;_<h.length;_++){var v=h[_],x=f[_],b=p[_];null===t||null===l?(r=v)&&(r.style.transform="",r.style.transition=""):(x!==b||n&&b)&&y(v,(0,s.extend)({},g,{to:(i={},o=d,a=!u&&m?-b:b,o in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i)}))}},_toggleDragSourceClass:function(e,t){var n=t||this._$sourceElement;this.callBase.apply(this,arguments),this._isIndicateMode()||n&&n.toggleClass(this._addWidgetPrefix("source-hidden"),e)},_dispose:function(){this.reset(),this.callBase()},_fireAddEvent:function(e){var t=this._getEventArgs(e);return this._getAction("onAdd")(t),t.cancel},_fireRemoveEvent:function(e){var t=this._getSourceDraggable(),n=this._getEventArgs(e);return t._getAction("onRemove")(n),n.cancel},_fireReorderEvent:function(e){var t=this._getEventArgs(e);return this._getAction("onReorder")(t),t.promise||(new p.Deferred).resolve()}});(0,r.default)("dxSortable",x);var b=x;t.default=b,e.exports=t.default,e.exports.default=t.default},17017:function(e,t,n){var i;t.default=void 0;var o=((i=n(43161))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},81374:function(e,t,n){t.default=void 0;var i=n(18058).repaint;t.default=i,e.exports=t.default,e.exports.default=t.default},43161:function(e,t,n){t.default=void 0;var i=u(n(99393)),o=n(13306),a=u(n(73176)),r=u(n(24311)),s=u(n(14390)),l=n(18058);function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=u(n(92591)).default.getSwatchContainer,h=r.default.add,f=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n);var r=i.prototype;return r._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{icon:"",onClick:null,label:"",visible:!0,index:0,onContentReady:null,activeStateEnabled:!0,hoverStateEnabled:!0,animation:{show:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:0,opacity:0},to:{scale:1,opacity:1}},hide:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:1,opacity:1},to:{scale:0,opacity:0}}},id:new a.default})},r._optionChanged=function(t){switch(t.name){case"onClick":case"icon":case"label":case"visible":case"index":case"onInitializing":(0,l.initAction)(this);break;case"animation":case"id":break;default:e.prototype._optionChanged.call(this,t)}},r._render=function(){var e=this;this._toggleVisibility(!1),c(this.$element())?(0,l.initAction)(this):h((function(){return(0,l.initAction)(e)}))},r._dispose=function(){(0,l.disposeAction)(this._options.silent("id")),e.prototype._dispose.call(this)},i}(s.default);(0,i.default)("dxSpeedDialAction",f);var p=f;t.default=p,e.exports=t.default,e.exports.default=t.default},37668:function(e,t,n){t.default=void 0;var i=f(n(68374)),o=n(13306),a=f(n(55994)),r=n(39611),s=n(95429),l=n(44899),u=f(n(89799)),d=n(72672),c=n(75811),h=n(35922);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e){var t,n;function u(){return e.apply(this,arguments)||this}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var f=u.prototype;return f._getDefaultOptions=function(){return(0,o.extend)(e.prototype._getDefaultOptions.call(this),{shading:!1,useInkRipple:!1,callOverlayRenderShading:!1,width:"auto",zIndex:1500,_observeContentResize:!1})},f._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:function(){return(0,c.isMaterial)()},options:{useInkRipple:!0}}])},f._render=function(){this.$element().addClass("dx-fa-button"),this._renderIcon(),this._renderLabel(),e.prototype._render.call(this),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick()},f._renderLabel=function(){this._$label&&this._$label.remove();var e=this.option("label");if(e){var t=(0,i.default)("<div>").addClass("dx-fa-button-label"),n=(0,i.default)("<div>").addClass("dx-fa-button-label-wrapper");this._$label=n.prependTo(this.$content()).append(t.text(e)),this.$content().toggleClass("dx-fa-button-content-reverse",this._isPositionLeft(this.option("parentPosition")))}else this._$label=null},f._isPositionLeft=function(e){var t="";return e&&((0,h.isPlainObject)(e)&&e.at?t=e.at.x?e.at.x:e.at:"string"==typeof e&&(t=e)),"left"===t.split(" ")[0]},f._renderButtonIcon=function(e,t,n){e&&e.remove(),e=(0,i.default)("<div>").addClass(n);var o=(0,l.getImageContainer)(t);return e.append(o).appendTo(this.$content()),e},f._renderIcon=function(){this._$icon=this._renderButtonIcon(this._$icon,this._options.silent("icon"),"dx-fa-button-icon")},f._renderWrapper=function(){this._options.silent("callOverlayRenderShading")&&e.prototype._renderWrapper.call(this)},f._getVisibleActions=function(e){return(e||this.option("actions")||[]).filter((function(e){return e.option("visible")}))},f._getActionComponent=function(){return 1===this._getVisibleActions().length?this._getVisibleActions()[0]:this.option("actionComponent")||this.option("actions")[0]},f._initContentReadyAction=function(){this._contentReadyAction=this._getActionComponent()._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]},!0)},f._fireContentReadyAction=function(){this._contentReadyAction({actionElement:this.$element()})},f._updateZIndexStackPosition=function(){var e=this.option("zIndex");this._$wrapper.css("zIndex",e),this._$content.css("zIndex",e)},f._setClickAction=function(){var e=this,t=(0,r.addNamespace)(s.name,this.NAME),n=this.$element().find(".dx-overlay-content");a.default.off(n,t),a.default.on(n,t,(function(t){var n={event:t,actionElement:e.element(),element:e._getActionComponent().$element()};e._clickAction(n)}))},f._defaultActionArgs=function(){return{component:this._getActionComponent()}},f._renderClick=function(){this._clickAction=this._getActionComponent()._createActionByOption("onClick"),this._setClickAction()},f._renderInkRipple=function(){this._inkRipple=(0,d.render)()},f._getInkRippleContainer=function(){return this._$icon},f._toggleActiveState=function(t,n,i){if(e.prototype._toggleActiveState.apply(this,arguments),this._inkRipple){var o={element:this._getInkRippleContainer(),event:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},f._optionChanged=function(t){switch(t.name){case"icon":this._renderIcon();break;case"onClick":this._renderClick();break;case"label":this._renderLabel();break;case"visible":this._currentVisible=t.previousValue,t.value?this._show():this._hide();break;case"useInkRipple":this._render();break;default:e.prototype._optionChanged.call(this,t)}},u}(u.default);t.default=g,e.exports=t.default,e.exports.default=t.default},18058:function(e,t,n){t.disposeAction=function(e){if(m){var t=m.option("actions");t.length!==(t=t.filter((function(t){return t._options.silent("id")!==e}))).length&&(t.length?1===t.length?m.option((0,r.extend)({},_(t[0]),{actions:t})):m.option({actions:t}):(m.dispose(),m.$element().remove(),m=null))}},t.initAction=function(e){e._options.silent("onInitializing",null);var t=!1;if(m){var n=m.option("actions");if(n.forEach((function(n){if(n._options.silent("id")===e._options.silent("id"))return t=!0,e})),m._options.silent("position"),t)1===n.length?m.option((0,r.extend)({},_(n[0]),{actions:n,position:m._getPosition()})):m.option((0,r.extend)(m._getCurrentOptions(n),{actions:n}));else{if(m._getVisibleActions(n).length>=m.option("maxSpeedDialActionCount"))return e.dispose(),void l.default.log("W1014");n.push(e),m.option((0,r.extend)(m._getCurrentOptions(n),{actions:n}))}}else{var i=(0,o.default)("<div>").appendTo(p(e.$element()));m=e._createComponent(i,v,(0,r.extend)({},_(e),{actions:[e]}))}},t.repaint=function(){if(m){var e=m._getVisibleActions(),t=1===e.length?e[0].option("icon"):m._getDefaultOptions().icon,n=1===e.length?e[0].option("label"):m._getDefaultOptions().label;m.option({actions:m.option("actions"),icon:t,closeIcon:m._getDefaultOptions().closeIcon,position:m._getPosition(),label:n,maxSpeedDialActionCount:m._getDefaultOptions().maxSpeedDialActionCount,direction:m._getDefaultOptions().direction})}};var i=n(58664),o=h(n(68374)),a=h(n(80209)),r=n(13306),s=h(n(55994)),l=h(n(96688)),u=h(n(92591)),d=h(n(37668)),c=n(75811);function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=u.default.getSwatchContainer,g="dx-state-invisible",m=null,_=function(e){var t=e.option(),n=t.icon,i=t.onClick,o=t.label,a=t.visible,s=t.index,l=t.onContentReady,u=t.activeStateEnabled,d=t.hoverStateEnabled,c=t.animation,h=t.id,f=t.actions,p=t.actionComponent,g=t.actionVisible,m=t.zIndex,_=t.position,v=t.hint,y=t.parentPosition,x=t.direction;return(0,r.extend)({},{icon:n,onClick:i,label:o,visible:a,index:s,onContentReady:l,activeStateEnabled:u,hoverStateEnabled:d,animation:c,id:h,actions:f,actionComponent:p,actionVisible:g,zIndex:m,position:_,hint:v,parentPosition:y,direction:x},{onInitialized:null,onDisposing:null})},v=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var u=l.prototype;return u._getDefaultOptions=function(){return(0,r.extend)(e.prototype._getDefaultOptions.call(this),(0,r.extend)({icon:"add",closeIcon:"close",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,hint:"",label:"",direction:"auto",actions:[],activeStateEnabled:!0,hoverStateEnabled:!0,indent:55,childIndent:40,childOffset:9,callOverlayRenderShading:!0,closeOnOutsideClick:!0},(0,a.default)().floatingActionButtonConfig,{shading:!1}))},u._defaultOptionsRules=function(){return e.prototype._defaultOptionsRules.call(this).concat([{device:function(){return(0,c.isMaterial)()},options:{indent:72,childIndent:56,childOffset:8}}])},u._render=function(){this.$element().addClass("dx-fa-button-main"),e.prototype._render.call(this),this._moveToContainer(),this._renderCloseIcon(),this._renderClick()},u._renderLabel=function(){e.prototype._renderLabel.call(this),this.$element().toggleClass("dx-fa-button-with-label",!!this._$label)},u._renderCloseIcon=function(){this._$closeIcon=this._renderButtonIcon(this._$closeIcon,this._options.silent("closeIcon"),"dx-fa-button-icon-close"),this._$closeIcon.addClass(g)},u._renderClick=function(){this._clickAction=1===this._getVisibleActions().length?this._getActionComponent()._createActionByOption("onClick"):this._createAction(this._clickHandler.bind(this)),this._setClickAction()},u._getVisibleActions=function(e){return(e||this.option("actions")).filter((function(e){return e.option("visible")}))},u._getCurrentOptions=function(e){var t=m._getVisibleActions(e),n=this._getDefaultOptions();return delete n.elementAttr,1===t.length?(0,r.extend)(_(t[0]),{position:this._getPosition()}):(0,r.extend)(n,{visible:0!==t.length})},u._clickHandler=function(){var e=this._actionItems.filter((function(e){return e.option("actionVisible")})).sort((function(e,t){return e.option("index")-t.option("index")}));if(1!==e.length){for(var t=e.length-1,n=0;n<e.length;n++)e[n].option("animation",this._getActionAnimation(e[n],n,t)),e[n].option("position",this._getActionPosition(e,n)),e[n]._$wrapper.css("position",this._$wrapper.css("position")),e[n].toggle();(0,a.default)().floatingActionButtonConfig.shading&&(this._isShadingShown=!this.option("shading"),this.option("shading",this._isShadingShown)),this._$icon.toggleClass(g),this._$closeIcon.toggleClass(g)}},u._updateZIndexStackPosition=function(){e.prototype._updateZIndexStackPosition.call(this),this._overlayStack().push(this)},u._renderActions=function(){var e=this,t=this.option("actions");if(this._actionItems&&this._actionItems.length&&(this._actionItems.forEach((function(e){e.dispose(),e.$element().remove()})),this._actionItems=[]),this._actionItems=[],1!==t.length)for(var n=0;n<t.length;n++){var i=t[n],a=(0,o.default)("<div>").appendTo(p(i.$element()));s.default.off(a,"click"),s.default.on(a,"click",(function(){e._clickHandler()})),i._options.silent("actionComponent",i),i._options.silent("parentPosition",this._getPosition()),i._options.silent("actionVisible",i._options.silent("visible")),this._actionItems.push(this._createComponent(a,d.default,(0,r.extend)({},_(i),{visible:!1})))}},u._getActionAnimation=function(e,t,n){return e._options.silent("animation.show.delay",30*t),e._options.silent("animation.hide.delay",30*(n-t)),e._options.silent("animation")},u._getDirectionIndex=function(e,t){if("auto"===t){var n=(0,i.getHeight)(this.$content()),o=this.initialOption("indent")+this.initialOption("childIndent")*e.length-n,a=this.$content().offset().top;return o<a||a>=(0,i.getHeight)(this._positionController._$wrapperCoveredElement)-n-a?-1:1}return"down"!==t?-1:1},u._getActionPosition=function(e,t){var n=e[t],i=this.initialOption("childOffset"),o=n._options.silent("label")&&!this._$label?this._isPositionLeft(this._getPosition())?i:-i:0,a=this.initialOption("indent")+this.initialOption("childIndent")*t,r=this._getDirectionIndex(e,this.option("direction"))*a,s=n._options.silent("label")?this._isPositionLeft(this._getPosition())?"left":"right":"center";return{of:this.$content(),at:s,my:s,offset:{x:o,y:r}}},u._outsideClickHandler=function(e){this._isShadingShown&&(0,o.default)(e.target)[0]===this._$wrapper[0]&&(e.preventDefault(),this._clickHandler())},u._setPosition=function(){this.option("visible")&&(this._hide(),this._show())},u._getPosition=function(){return this._getDefaultOptions().position},u._getInkRippleContainer=function(){return this.$content()},u._optionChanged=function(t){switch(t.name){case"actions":this._isVisible()&&(this._renderIcon(),this._renderLabel()),this._renderCloseIcon(),this._renderClick(),this._renderActions();break;case"maxSpeedDialActionCount":this._renderActions();break;case"closeIcon":this._renderCloseIcon();break;case"position":e.prototype._optionChanged.call(this,t),this._setPosition();break;case"label":this._isVisible()&&this._renderLabel(),this._setPosition();break;case"icon":this._isVisible()&&this._renderIcon();break;default:e.prototype._optionChanged.call(this,t)}},l}(d.default)},93288:function(e,t,n){t.default=void 0;var i=d(n(68374)),o=d(n(14390)),a=d(n(73349)),r=d(n(55994)),s=d(n(93786)),l=n(58201),u=n(39611);function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=(0,l.getWindow)(),f="dx-splitter",p="".concat(f,"-wrapper"),g="".concat(f,"-inactive"),m="".concat(f,"-border"),_="".concat(f,"-initial"),v="dx-state-disabled",y="dxSplitterResizing",x=(0,u.addNamespace)(s.default.down,y),b=(0,u.addNamespace)(s.default.move,y),w=(0,u.addNamespace)(s.default.up,y),C=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var s=o.prototype;return s._initMarkup=function(){e.prototype._initMarkup.call(this),this._initActions(),this._$container=this.option("container"),this._$leftElement=this.option("leftElement"),this._$rightElement=this.option("rightElement"),this.$element().addClass(p).addClass(_),this._$splitterBorder=(0,i.default)("<div>").addClass(m).appendTo(this.$element()),this._$splitter=(0,i.default)("<div>").addClass(f).addClass(g).appendTo(this._$splitterBorder)},s._initActions=function(){this._actions={onApplyPanelSize:this._createActionByOption("onApplyPanelSize"),onActiveStateChanged:this._createActionByOption("onActiveStateChanged")}},s._render=function(){e.prototype._render.call(this),this._detachEventHandlers(),this._attachEventHandlers()},s._clean=function(){this._detachEventHandlers(),e.prototype._clean.call(this)},s._attachEventHandlers=function(){var e=a.default.getDocument();r.default.on(this._$splitterBorder,x,this._onMouseDownHandler.bind(this)),r.default.on(e,b,this._onMouseMoveHandler.bind(this)),r.default.on(e,w,this._onMouseUpHandler.bind(this))},s._detachEventHandlers=function(){var e=a.default.getDocument();r.default.off(this._$splitterBorder,x),r.default.off(e,b),r.default.off(e,w)},s._dimensionChanged=function(e){e&&"height"===e||(this._containerWidth=this._$container.get(0).clientWidth,this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))},s._onMouseDownHandler=function(e){e.preventDefault(),this._offsetX=e.pageX-this._$splitterBorder.offset().left<=this._getSplitterBorderWidth()?e.pageX-this._$splitterBorder.offset().left:0,this._containerWidth=this._$container.get(0).clientWidth,this.$element().removeClass(_),this._toggleActive(!0),this._setSplitterPositionLeft({needUpdatePanels:!0})},s._onMouseMoveHandler=function(e){this._isSplitterActive&&this._setSplitterPositionLeft({splitterPositionLeft:this._getNewSplitterPositionLeft(e),needUpdatePanels:!0})},s._onMouseUpHandler=function(){this._isSplitterActive&&(this._leftPanelPercentageWidth=null,this._toggleActive(!1),this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))},s._getNewSplitterPositionLeft=function(e){var t=e.pageX-this._getContainerLeftOffset()-this._offsetX;return t=Math.max(0-this._getSplitterOffset(),t),Math.min(this._containerWidth-this._getSplitterOffset()-this._getSplitterWidth(),t)},s._getContainerLeftOffset=function(){var e=this._$container.offset().left;if(h){var t=h.getComputedStyle(this._$container.get(0));e+=(parseFloat(t.paddingLeft)||0)+(parseFloat(t.borderLeftWidth)||0)}return e},s._getSplitterOffset=function(){return(this._getSplitterBorderWidth()-this._getSplitterWidth())/2},s._getSplitterWidth=function(){return this._$splitter.get(0).clientWidth},s._getSplitterBorderWidth=function(){return this._$splitterBorder.get(0).clientWidth},s._getLeftPanelWidth=function(){return this._$leftElement.get(0).clientWidth},s.getSplitterBorderElement=function(){return this._$splitterBorder},s._toggleActive=function(e){this.$element().toggleClass(g,!e),this._$splitter.toggleClass(g,!e),this._isSplitterActive=e,this._actions.onActiveStateChanged({isActive:e})},s.toggleDisabled=function(e){this.$element().toggleClass(v,e),this._$splitter.toggleClass(v,e)},s.isSplitterMoved=function(){return!this.$element().hasClass(_)},s.disableSplitterCalculation=function(e){this._isSplitterCalculationDisabled=e},s._setSplitterPositionLeft=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.splitterPositionLeft,n=void 0===t?null:t,i=e.needUpdatePanels,o=void 0!==i&&i,a=e.usePercentagePanelsWidth,r=void 0!==a&&a,s=(n=n||this._getLeftPanelWidth()-this._getSplitterOffset())+this._getSplitterOffset(),l=this._containerWidth-s;this._isSplitterCalculationDisabled||this.$element().css("left",n),this._leftPanelPercentageWidth=this._leftPanelPercentageWidth||this._convertToPercentage(s);var u=this._convertToPercentage(this._containerWidth-this._convertToPixels(this._leftPanelPercentageWidth));o&&this._actions.onApplyPanelSize({leftPanelWidth:r?"".concat(this._leftPanelPercentageWidth,"%"):s,rightPanelWidth:r?"".concat(u,"%"):l})},s._optionChanged=function(t){switch(t.name){case"initialLeftPanelWidth":this._leftPanelPercentageWidth=this._convertToPercentage(t.value),this._dimensionChanged();break;case"leftElement":this.repaint();break;case"onActiveStateChanged":case"onApplyPanelSize":this._actions[t.name]=this._createActionByOption(t.name);break;default:e.prototype._optionChanged.call(this,t)}},s._convertToPercentage=function(e){return e/this._$container.get(0).clientWidth*100},s._convertToPixels=function(e){return e/100*this._$container.get(0).clientWidth},o}(o.default);t.default=C,e.exports=t.default,e.exports.default=t.default},31609:function(e,t,n){t.default=void 0;var i=n(58664),o=v(n(68374)),a=v(n(55994)),r=v(n(20530)),s=n(13306),l=v(n(99393)),u=v(n(96452)),d=n(39611),c=n(91633),h=n(37518),f=v(n(87209)),p=v(n(28109)),g=n(95429),m=v(n(66894)),_=n(62754);function v(e){return e&&e.__esModule?e:{default:e}}var y="dx-switch-on-value",x=100,b=u.default.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=function(e){e.preventDefault(),this._clickAction({event:e})},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._saveValueChangeEvent(t),this._animateValue(e)};return(0,s.extend)(this.callBase(),{space:t,enter:t,leftArrow:n.bind(this,!!e),rightArrow:n.bind(this,!e)})},_useTemplates:function(){return!1},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,switchedOnText:p.default.format("dxSwitch-switchedOnText"),switchedOffText:p.default.format("dxSwitch-switchedOffText"),value:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===r.default.real().deviceType&&!r.default.isSimulator()},options:{focusStateEnabled:!0}}])},_feedbackHideTimeout:0,_animating:!1,_initMarkup:function(){this._renderContainers(),this.$element().addClass("dx-switch").append(this._$switchWrapper),this._renderSubmitElement(),this._renderClick(),this.setAria("role","button"),this._renderSwipeable(),this.callBase(),this._renderSwitchInner(),this._renderLabels(),this._renderValue()},_getInnerOffset:function(e,t){return(t-this._offsetDirection()*Number(!e))/2*100+"%"},_getHandleOffset:function(e,t){return this.option("rtlEnabled")&&(e=!e),e?100*-t-100+"%":100*-t+"%"},_renderSwitchInner:function(){this._$switchInner=(0,o.default)("<div>").addClass("dx-switch-inner").appendTo(this._$switchContainer),this._$handle=(0,o.default)("<div>").addClass("dx-switch-handle").appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=(0,o.default)("<div>").addClass("dx-switch-on").prependTo(this._$switchInner),this._$labelOff=(0,o.default)("<div>").addClass("dx-switch-off").appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=(0,o.default)("<div>").addClass("dx-switch-container"),this._$switchWrapper=(0,o.default)("<div>").addClass("dx-switch-wrapper").append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.$element(),m.default,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getItemSizeFunc.bind(this)})},_getItemSizeFunc:function(){return(0,i.getOuterWidth)(this._$switchContainer,!0)-(0,h.getBoundingRect)(this._$handle.get(0)).width},_renderSubmitElement:function(){this._$submitElement=(0,o.default)("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_renderPosition:function(e,t){var n=this._getInnerOffset(e,t),i=this._getHandleOffset(e,t);this._$switchInner.css("transform"," translateX("+n+")"),this._$handle.css("transform"," translateX("+i+")")},_validateValue:function(){var e=this.option("value");"boolean"!=typeof e&&this._options.silent("value",!!e)},_renderClick:function(){var e=(0,d.addNamespace)(g.name,this.NAME),t=this.$element();this._clickAction=this._createAction(this._clickHandler.bind(this)),a.default.off(t,e),a.default.on(t,e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){var t=e.event;this._saveValueChangeEvent(t),this._animating||this._swiping||this._animateValue(!this.option("value"))},_animateValue:function(e){var t=this.option("value"),n=e;if(t!==n){this._animating=!0;var i=this._getInnerOffset(t,0),o=this._getInnerOffset(n,0),a=this._getHandleOffset(t,0),r=this._getHandleOffset(n,0),s=this,l={},u={},d={},c={};l.transform=" translateX("+i+")",u.transform=" translateX("+o+")",d.transform=" translateX("+a+")",c.transform=" translateX("+r+")",this.$element().toggleClass(y,n),f.default.animate(this._$handle,{from:d,to:c,duration:x}),f.default.animate(this._$switchInner,{from:l,to:u,duration:x,complete:function(){s._animating=!1,s.option("value",n)}})}},_swipeStartHandler:function(e){var t=this.option("value"),n=this.option("rtlEnabled"),i=n?0:1,o=n?1:0;e.event.maxLeftOffset=t?i:o,e.event.maxRightOffset=t?o:i,this._swiping=!0,this._feedbackDeferred=new _.Deferred,(0,c.lock)(this._feedbackDeferred),this._toggleActiveState(this.$element(),this.option("activeStateEnabled"))},_swipeUpdateHandler:function(e){this._renderPosition(this.option("value"),e.event.offset)},_swipeEndHandler:function(e){var t=this,n=this._offsetDirection(),i={},o={},a=this._getInnerOffset(t.option("value"),e.event.targetOffset),r=this._getHandleOffset(t.option("value"),e.event.targetOffset);i.transform=" translateX("+a+")",o.transform=" translateX("+r+")",f.default.animate(this._$handle,{to:o,duration:x}),f.default.animate(this._$switchInner,{to:i,duration:x,complete:function(){t._swiping=!1;var i=t.option("value")+n*e.event.targetOffset;t._saveValueChangeEvent(e.event),t.option("value",Boolean(i)),t._feedbackDeferred.resolve(),t._toggleActiveState(t.$element(),!1)}})},_renderValue:function(){this._validateValue();var e=this.option("value");this._renderPosition(e,0),this.$element().toggleClass(y,e),this._getSubmitElement().val(e),this.setAria({pressed:e,label:e?this.option("switchedOnText"):this.option("switchedOffText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("switchedOnText")),this._$labelOff&&this._$labelOff.text(this.option("switchedOffText"))},_visibilityChanged:function(e){e&&this.repaint()},_optionChanged:function(e){switch(e.name){case"width":delete this._marginBound,this._refresh();break;case"switchedOnText":case"switchedOffText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(e);break;default:this.callBase(e)}}});(0,l.default)("dxSwitch",b);var w=b;t.default=w,e.exports=t.default,e.exports.default=t.default},21807:function(e,t,n){t.default=void 0;var i=n(58664),o=v(n(68374)),a=n(60137),r=n(13306),s=v(n(20530)),l=v(n(73349)),u=v(n(99393)),d=v(n(86478)),c=v(n(13453)),h=v(n(31590)),f=n(44899),p=n(6415),g=n(35922),m=n(93280),_=n(58201);function v(e){return e&&e.__esModule?e:{default:e}}var y=d.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.default.real().deviceType&&!s.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!a.touch},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}}])},_init:function(){this.callBase(),this.$element().addClass("dx-tabpanel"),this.setAria("role","tabpanel")},_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new m.BindableTemplate((function(e,t){if((0,g.isPlainObject)(t)){var n=(0,f.getImageContainer)(t.icon);n&&e.append(n),(0,g.isDefined)(t.title)&&!(0,g.isPlainObject)(t.title)&&e.append(l.default.createTextNode(t.title))}else(0,g.isDefined)(t)&&e.text(String(t));e.wrapInner((0,o.default)("<span>").addClass("dx-tab-text"))}),["title","icon"],this.option("integrationOptions.watchMethod"))})},_createTitleActions:function(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction:function(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction:function(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction:function(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderContent:function(){var e=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout((function(){e._updateLayout()}),0))},_renderLayout:function(){if(this._tabs)this._updateLayout();else{var e=this.$element();this._$tabContainer=(0,o.default)("<div>").addClass("dx-tabpanel-tabs").appendTo(e);var t=(0,o.default)("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(t,c.default,this._tabConfig()),this._$container=(0,o.default)("<div>").addClass("dx-tabpanel-container").appendTo(e),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if((0,_.hasWindow)()){var e=(0,i.getOuterHeight)(this._$tabContainer);this._$container.css({marginTop:-e,paddingTop:e})}},_refreshActiveDescendant:function(){if(this._tabs){var e=this._tabs,t=e.itemElements(),n=(0,o.default)(t[e.option("selectedIndex")]),i=this.getFocusedItemId();this.setAria("controls",void 0,(0,o.default)(t)),this.setAria("controls",i,n)}},_tabConfig:function(){return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),repaintChangesOnly:this.option("repaintChangesOnly"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),badgeExpr:this.option("badgeExpr"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(e){this.option("selectedIndex",e.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(e){if("focusedElement"===e.name)if(e.value){var t=(0,o.default)(e.value),n=this._itemElements().eq(t.index());this.option("focusedElement",(0,p.getPublicElement)(n))}else this.option("focusedElement",e.value)}.bind(this),onFocusIn:function(e){this._focusInHandler(e.event)}.bind(this),onFocusOut:function(e){this._isFocusOutHandlerExecuting||this._focusOutHandler(e.event)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1)},_updateFocusState:function(e,t){this.callBase(e,t),e.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(t,this._focusTarget())},_focusOutHandler:function(e){this._isFocusOutHandlerExecuting=!0,this.callBase.apply(this,arguments),this._tabs._focusOutHandler(e),this._isFocusOutHandlerExecuting=!1},_setTabsOption:function(e,t){this._tabs&&this._tabs.option(e,t)},_visibilityChanged:function(e){e&&(this._tabs._dimensionChanged(),this._updateLayout())},registerKeyHandler:function(e,t){this.callBase(e,t),this._tabs&&this._tabs.registerKeyHandler(e,t)},repaint:function(){this.callBase(),this._tabs.repaint()},_optionChanged:function(e){var t=e.name,n=e.value,i=e.fullName;switch(t){case"dataSource":default:this.callBase(e);break;case"items":this._setTabsOption(t,this.option(t)),this._updateLayout(),this.option("repaintChangesOnly")||this._tabs.repaint(),this.callBase(e);break;case"width":this.callBase(e),this._tabs.repaint();break;case"selectedIndex":case"selectedItem":if(this._setTabsOption(i,n),this.callBase(e),!0===this.option("focusStateEnabled")){var a=this.option("selectedIndex"),r=this._itemElements().eq(a);this.option("focusedElement",(0,p.getPublicElement)(r))}break;case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(i,n),this.callBase(e);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(i,n);break;case"focusedElement":var s=n?(0,o.default)(n).index():n,l=n?this._tabs._itemElements().eq(s):n;this._setTabsOption("focusedElement",(0,p.getPublicElement)(l)),this.callBase(e);break;case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",n);break;case"badgeExpr":this._invalidate()}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});y.ItemClass=h.default,(0,u.default)("dxTabPanel",y);var x=y;t.default=x,e.exports=t.default,e.exports.default=t.default},31590:function(e,t,n){t.default=void 0;var i,o=(i=n(54778))&&i.__esModule?i:{default:i},a=n(20576);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),i.prototype._renderWatchers=function(){return this._startWatcher("badge",a.noop),e.prototype._renderWatchers.call(this)},i}(o.default);t.default=s,e.exports=t.default,e.exports.default=t.default},13453:function(e,t,n){t.default=void 0;var i=n(58664),o=D(n(68374)),a=D(n(55994)),r=D(n(20530)),s=D(n(99393)),l=D(n(63008)),u=n(72672),d=n(39611),c=n(13306),h=n(35922),f=D(n(93786)),p=n(95479),g=D(n(25411)),m=n(98897),_=n(75811),v=D(n(11699)),y=D(n(41183)),x=D(n(69010)),b=n(44899),w=n(93280),C=n(62754),S=n(70602),k=n(92721);function D(e){return e&&e.__esModule?e:{default:e}}var I="dx-tabs-stretched",T="dx-tabs-nav-buttons",E="dx-overflow-hidden",A="chevronnext",O="chevronprev",P=x.default.inherit({_activeStateUnit:".dx-tab",_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(e){return e?e.badge:void 0},_itemAttributes:{role:"tab"}})},_defaultOptionsRules:function(){var e=(0,_.current)();return this.callBase().concat([{device:function(){return"desktop"!==r.default.real().deviceType},options:{showNavButtons:!1}},{device:{deviceType:"desktop"},options:{scrollByContent:!1}},{device:function(){return"desktop"===r.default.real().deviceType&&!r.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,_.isMaterial)(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass("dx-tabs"),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=100},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new w.BindableTemplate(function(e,t){(0,h.isPlainObject)(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var n=(0,b.getImageContainer)(t.icon);n&&n.prependTo(e),e.wrapInner((0,o.default)("<span>").addClass("dx-tab-text"))}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))})},_createItemByTemplate:function(e,t){var n=this,i=t.itemData,o=t.container,a=t.index;return this._deferredTemplates[a]=new C.Deferred,e.render({model:i,container:o,index:a,onRendered:function(){return n._deferredTemplates[a].resolve()}})},_itemClass:function(){return"dx-tab"},_selectedItemClass:function(){return"dx-tab-selected"},_itemDataKey:function(){return"dxTabData"},_initMarkup:function(){this._deferredTemplates=[],this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(E)},_render:function(){this.callBase(),this._deferRenderScrolling()},_deferRenderScrolling:function(){var e=this;C.when.apply(this,this._deferredTemplates).done((function(){return e._renderScrolling()}))},_renderScrolling:function(){var e=[I,m.TABS_EXPANDED_CLASS,E];if(this.$element().removeClass(e.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()){this._scrollable||(this._renderScrollable(),this._renderNavButtons());var t=this.getScrollable();if(t.update(),this.option("rtlEnabled")){var n=(0,k.getScrollLeftMax)((0,o.default)(this.getScrollable().container()).get(0));t.scrollTo({left:n})}this._updateNavButtonsVisibility(),this._scrollToItem(this.option("selectedItem"))}this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(I),this.$element().removeClass(T).addClass(m.TABS_EXPANDED_CLASS))},_isItemsWidthExceeded:function(){return this._getSummaryItemsWidth(this._getVisibleItems(),!0)-1>(0,i.getWidth)(this.$element())},_needStretchItems:function(){var e=this._getVisibleItems(),t=(0,i.getWidth)(this.$element()),n=[];return(0,p.each)(e,(function(e,t){n.push((0,i.getOuterWidth)(t,!0))})),Math.max.apply(null,n)>t/e.length},_cleanNavButtons:function(){this._leftButton&&this._rightButton&&(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=(0,u.render)()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=(0,o.default)("<div>").addClass("dx-tabs-wrapper"),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var e=this,t=this.$element().wrapInner((0,o.default)("<div>").addClass("dx-tabs-scrollable")).children();this._scrollable=this._createComponent(t,y.default,{direction:"horizontal",showScrollbar:"never",useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:function(){e._updateNavButtonsVisibility()}}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_renderNavButtons:function(){if(this.$element().toggleClass(T,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-30,e?A:O);var t=this._leftButton.$element();t.addClass("dx-tabs-nav-button-left"),this.$element().prepend(t),this._rightButton=this._createNavButton(30,e?O:A);var n=this._rightButton.$element();n.addClass("dx-tabs-nav-button-right"),this.$element().append(n)}},_updateNavButtonsVisibility:function(){var e=this.getScrollable();this._leftButton&&this._leftButton.option("disabled",(0,S.isReachedLeft)(e.scrollLeft(),1)),this._rightButton&&this._rightButton.option("disabled",(0,S.isReachedRight)((0,o.default)(e.container()).get(0),e.scrollLeft(),1))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var n=this,i=n._createAction((function(){n._holdInterval=setInterval((function(){n._updateScrollPosition(e,5)}),5)})),r=(0,d.addNamespace)(v.default.name,"dxNavButton"),s=(0,d.addNamespace)(f.default.up,"dxNavButton"),u=(0,d.addNamespace)(f.default.out,"dxNavButton"),c=this._createComponent((0,o.default)("<div>").addClass("dx-tabs-nav-button"),l.default,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}}),h=c.$element();return a.default.on(h,r,{timeout:300},function(e){i({event:e})}.bind(this)),a.default.on(h,s,(function(){n._clearInterval()})),a.default.on(h,u,(function(){n._clearInterval()})),c},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(e){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(e[0]),{left:1,right:1})},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._deferredTemplates=[],this._cleanScrolling(),this.callBase()},_optionChanged:function(e){switch(e.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":case"badgeExpr":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(e.name,e.value);break;case"width":this.callBase(e),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(e);break;default:this.callBase(e)}},_afterItemElementInserted:function(){this.callBase(),this._deferRenderScrolling()},_afterItemElementDeleted:function(e,t){this.callBase(e,t),this._renderScrolling()},getScrollable:function(){return this._scrollable}});P.ItemClass=g.default,(0,s.default)("dxTabs",P);var M=P;t.default=M,e.exports=t.default,e.exports.default=t.default},98897:function(e,t){t.TABS_EXPANDED_CLASS=void 0,t.TABS_EXPANDED_CLASS="dx-tabs-expanded"},25411:function(e,t,n){t.default=void 0;var i=a(n(68374)),o=a(n(54778));function a(e){return e&&e.__esModule?e:{default:e}}var r=o.default.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(e){if(this._$element.children(".dx-badge").remove(),e){var t=(0,i.default)("<div>").addClass("dx-tabs-item-badge").addClass("dx-badge").text(e);this._$element.append(t)}}});t.default=r,e.exports=t.default,e.exports.default=t.default},31362:function(e,t,n){t.default=void 0;var i=n(58664),o=E(n(68374)),a=E(n(20530)),r=n(97906),s=E(n(55994)),l=E(n(99393)),u=n(20576),d=n(49601),c=n(62754),h=n(3532),f=n(6415),p=n(35922),g=n(58201),m=n(13306),_=n(89386),v=n(95479),y=E(n(28109)),x=n(39611),b=n(95429),w=E(n(21516)),C=n(9234),S=E(n(11071)),k=E(n(78665)),D=n(93280),I=n(51203),T=E(n(96688));function E(e){return e&&e.__esModule?e:{default:e}}function A(e){return(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})(e)}var O="dxTagData",P="dx-tag",M="dx-tagbox-multi-tag",R="dx-tag-custom",B="dx-tag-remove-button",V="dx-tagbox-single-line",F="dx-native-click",L=k.default.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(t){return e._list._keyboardHandler(t)},i=this.option("rtlEnabled");return(0,m.extend)({},t,{backspace:function(e){if(this._isCaretAtTheStart()){this._processKeyboardEvent(e),this._isTagRemoved=!0;var t=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==t.length&&(this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag)}},upArrow:function(i,o){return i.altKey||!e._list?t.upArrow.call(e,i):n(o)},downArrow:function(i,o){return i.altKey||!e._list?t.downArrow.call(e,i):n(o)},del:function(e){if(this._$focusedTag&&this._isCaretAtTheStart()){this._processKeyboardEvent(e),this._isTagRemoved=!0;var t=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag}},enter:function(e,t){var i=this._list&&null!==this._list.option("focusedElement");if(this.option("acceptCustomValue")&&!i)return e.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler(e));this.option("opened")&&(this._saveValueChangeEvent(e),n(t),e.preventDefault())},space:function(e,t){var i=this.option("opened"),o=this._shouldRenderSearchEvent();i&&!o&&(this._saveValueChangeEvent(e),n(t),e.preventDefault())},leftArrow:function(e){if(!(!this._isCaretAtTheStart()||this._isEmpty()||this._isEditable()&&i&&!this._$focusedTag)){e.preventDefault();var t=i?"next":"prev";this._moveTagFocus(t),!this.option("multiline")&&this._scrollContainer(t)}},rightArrow:function(e){if(this._isCaretAtTheStart()&&!this._isEmpty()&&(!this._isEditable()||i||this._$focusedTag)){e.preventDefault();var t=i?"prev":"next";this._moveTagFocus(t),!this.option("multiline")&&this._scrollContainer(t)}}})},_processKeyboardEvent:function(e){e.preventDefault(),e.stopPropagation(),this._saveValueChangeEvent(e)},_isEmpty:function(){return 0===this._getValue().length},_updateTagsContainer:function(e){this._$tagsContainer=e.addClass("dx-tag-container").addClass(F),this._$tagsContainer.parent().addClass(F)},_allowSelectItemByTab:function(){return!1},_isCaretAtTheStart:function(){var e=(0,w.default)(this._input());return 0===e.start&&0===e.end},_moveTagFocus:function(e,t){if(!this._$focusedTag){var n=this._tagElements();return this._$focusedTag="next"===e?n.first():n.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var i=this._$focusedTag[e](".".concat(P));i.length>0?this._replaceFocusedTag(i):(t||"next"===e&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(e){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=e,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(e){return e&&e.length&&e[0]!==this._focusTarget()[0]?e:this.callBase()},_getLabelContainer:function(){return this._$tagsContainer},_scrollContainer:function(e){if(!this.option("multiline")&&(0,g.hasWindow)()&&this._$tagsContainer){var t=this._getScrollPosition(e);this._$tagsContainer.scrollLeft(t)}},_getScrollPosition:function(e){return"start"===e||"end"===e?this._getBorderPosition(e):this._$focusedTag?this._getFocusedTagPosition(e):this._getBorderPosition("end")},_getBorderPosition:function(e){var t=this.option("rtlEnabled"),n="end"===e^t,o=(0,S.default)(),a=t&&o.decreasing^o.positive,r=!t||o.positive?1:-1;return n^!a?0:r*(this._$tagsContainer.get(0).scrollWidth-(0,i.getOuterWidth)(this._$tagsContainer))},_getFocusedTagPosition:function(e){var t=this.option("rtlEnabled"),n="next"===e^t,o=this._$focusedTag.position().left,a=this._$tagsContainer.scrollLeft();if(n&&(o+=(0,i.getOuterWidth)(this._$focusedTag,!0)-(0,i.getOuterWidth)(this._$tagsContainer)),n^o<0){var r=(0,S.default)();a+=o*(t&&!r.decreasing&&r.positive?-1:1)}return a},_setNextValue:u.noop,_getDefaultOptions:function(){return(0,m.extend)(this.callBase(),{value:[],showDropDownButton:!1,maxFilterQueryLength:1500,tagTemplate:"tag",selectAllText:y.default.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init:function(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions:function(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction:function(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:function(e){this._multiTagPreparingHandler(e.args[0])}.bind(this),excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler:function(e){var t=this._getValue().length;this.option("showMultiTagOnly")?e.text=y.default.getFormatter("dxTagBox-selected")(t):e.text=y.default.getFormatter("dxTagBox-moreSelected")(t-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({tag:new D.BindableTemplate((function(e,t){var n,i=(0,o.default)("<div>").addClass("dx-tag-content");(0,o.default)("<span>").text(null!==(n=t.text)&&void 0!==n?n:t).appendTo(i),(0,o.default)("<div>").addClass(B).appendTo(i),e.append(i)}),["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})})},_toggleSubmitElement:function(e){e?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement:function(){this.option("useSubmitBehavior")&&(this._$submitElement=(0,o.default)("<select>").attr("multiple","multiple").css("display","none").appendTo(this.$element()))},_setSubmitValue:function(){if(this.option("useSubmitBehavior")){for(var e=this._getValue(),t=[],n=0,i=e.length;n<i;n++){var a=this._shouldUseDisplayValue(e[n]);t.push((0,o.default)("<option>").val(a?this._displayGetter(e[n]):e[n]).attr("selected","selected"))}this._getSubmitElement().empty().append(t)}},_initMarkup:function(){this._tagElementsCache=(0,o.default)();var e=!this.option("multiline");this.$element().addClass("dx-tagbox").toggleClass("dx-tagbox-only-select",!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(V,e),this._initTagTemplate(),this.callBase()},_render:function(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate:function(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField:function(){var e=!(0,p.isDefined)(this.option("fieldTemplate"));this.$element().toggleClass("dx-tagbox-default-template",e).toggleClass("dx-tagbox-custom-template",!e),this.callBase()},_renderTagRemoveAction:function(){var e=this._createAction(this._removeTagHandler.bind(this)),t=(0,x.addNamespace)(b.name,"dxTagBoxTagRemove");s.default.off(this._$tagsContainer,t),s.default.on(this._$tagsContainer,t,".".concat(B),(function(t){e({event:t})}))},_renderSingleLineScroll:function(){var e=(0,x.addNamespace)("dxmousewheel",this.NAME),t=this.$element(),n=this.option("multiline");s.default.off(t,e),"desktop"===a.default.real().deviceType?n||s.default.on(t,e,this._tagContainerMouseWheelHandler.bind(this)):this._$tagsContainer&&this._$tagsContainer.css("overflowX",n?"":"auto")},_tagContainerMouseWheelHandler:function(e){var t=this._$tagsContainer.scrollLeft(),n=-.3*e.delta;if(!(0,x.isCommandKeyPressed)(e)&&(0,I.allowScroll)(this._$tagsContainer,n,!0))return this._$tagsContainer.scrollLeft(t+n),!1},_renderEvents:function(){var e=this;this.callBase();var t=this._input(),n=(0,x.addNamespace)("keydown",this.NAME);s.default.on(t,n,(function(t){var n=(0,x.normalizeKeyName)(t);!e._isControlKey(n)&&e._isEditable()&&e._clearTagFocus()}))},_popupWrapperClass:function(){return this.callBase()+" dx-tagbox-popup-wrapper"},_renderInput:function(){this.callBase(),this._renderPreventBlur(this._inputWrapper())},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return(0,c.when)()},_clearTextValue:function(){this._input().val(""),this._toggleEmptinessEventHandler(),this.option("text","")},_focusInHandler:function(e){this._preventNestedFocusEvent(e)||this._scrollContainer("end"),this.callBase(e)},_renderInputValue:function(){return this.option("displayValue",this._searchValue()),this.callBase()},_restoreInputText:function(e){e||this._clearTextValue()},_focusOutHandler:function(e){this._preventNestedFocusEvent(e)||(this._clearTagFocus(),this._scrollContainer("start")),this.callBase(e)},_getFirstPopupElement:function(){return this.option("showSelectionControls")?this._list.$element():this.callBase()},_initSelectAllValueChangedAction:function(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList:function(){var e=this;this.callBase(),this._setListDataSourceFilter(),this.option("showSelectionControls")&&(this._list.registerKeyHandler("tab",(function(t){return e._popupElementTabHandler(t)})),this._list.registerKeyHandler("escape",(function(t){return e._popupElementEscHandler(t)})))},_canListHaveFocus:function(){return"useButtons"===this.option("applyValueMode")},_listConfig:function(){var e=this,t=this.option("showSelectionControls")?"all":"multiple";return(0,m.extend)(this.callBase(),{selectionMode:t,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:function(t){var n=t.value;e._selectAllValueChangeAction({value:n})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var e=this,t=new c.Deferred;return this._updateTagsContainer(this._$textEditorInputContainer),this._renderInputSize(),this._renderTags().done((function(){e._popup&&e._popup.refreshPosition(),t.resolve()})).fail(t.reject),t.promise()},_listItemClickHandler:function(e){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&(this.callBase(e),this._saveValueChangeEvent(void 0))},_shouldClearFilter:function(){var e=this.callBase();return!this.option("showSelectionControls")&&e},_renderInputSize:function(){var e=this._input(),t=e.val(),n=(0,p.isString)(t)&&t,o="",a="",r=this.option("searchEnabled")||this.option("acceptCustomValue");if(n&&r){var s=(0,h.createTextElementHiddenCopy)(e,t,{includePaddings:!0});s.insertAfter(e),o=(0,i.getOuterWidth)(s)+5,s.remove()}else t||(a=1);e.css("width",o),e.attr("size",a)},_renderInputSubstitution:function(){this.callBase(),this._updateWidgetHeight()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var e=this._getValue(),t=this.option("maxDisplayedTags");return(0,p.isDefined)(t)&&e.length>t},_renderMultiTag:function(e){var t=(0,o.default)("<div>").addClass(P).addClass(M),n={multiTagElement:(0,f.getPublicElement)(t),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(n),!n.cancel&&(t.data(O,n.text),t.insertBefore(e),this._tagTemplate.render({model:n.text,container:(0,f.getPublicElement)(t)}),t)},_getFilter:function(e){var t=this._dataSource.filter(),n=e.getCombinedFilter(this.option("valueExpr"),t),i=encodeURI(JSON.stringify(n)).length,o=this.option("maxFilterQueryLength");if(i<=o)return n;T.default.log("W1019",o)},_getFilteredItems:function(e){var t,n,i,o=this;null===(t=this._loadFilteredItemsPromise)||void 0===t||t.reject();var a=new d.SelectionFilterCreator(e),r=null===(n=this._list)||void 0===n?void 0:n.option("selectedItems"),s=!!r&&(null===(i=this._list.getDataSource())||void 0===i?void 0:i.isLoaded()),l=r||this.option("selectedItems"),u=a.getLocalFilter(this._valueGetter),h=l.filter(u),f=h.length===e.length,p=new c.Deferred,g=this._dataSource;if(g){if(this._isDataSourceChanged&&!s||!f){var m=g.loadOptions(),_=m.customQueryParams,v=m.expand,y=m.select,x=this._getFilter(a);return g.store().load({filter:x,customQueryParams:_,expand:v,select:y}).done((function(e,t){if(o._isDataSourceChanged=!1,o._disposed)p.reject();else{var n=(0,C.normalizeLoadResult)(e,t).data,i=g._applyMapFunction(n);p.resolve(i.filter(u))}})).fail(p.reject),this._loadFilteredItemsPromise=p,p.promise()}return p.resolve(h).promise()}return p.resolve([]).promise()},_createTagsData:function(e,t){var n=this,i=[],o={},a="this"===this._valueGetterExpr(),r={};t.forEach((function(e){var t=a?JSON.stringify(e):n._valueGetter(e);r[t]=e}));var s=[];e.forEach((function(e,t){var l=r[a?JSON.stringify(e):e];if(a&&!(0,p.isDefined)(l))s.push(n._loadItem(e,o).always((function(o){var a=n._createTagData(i,o,e,t);i.splice(t,0,a)})));else{var u=n._createTagData(i,l,e,t);i.splice(t,0,u)}}));var l=new c.Deferred;return c.when.apply(this,s).always((function(){l.resolve(i)})),l.promise()},_createTagData:function(e,t,n,i){if((0,p.isDefined)(t))return this._selectedItems.push(t),t;var o=this.option("selectedItem");return this._valueGetter(o)===n?o:n},_isGroupedData:function(){var e;return this.option("grouped")&&!(null!==(e=this._dataSource)&&void 0!==e&&e.group())},_getItemsByValues:function(e){var t=[];return e.forEach(function(e){var n=this._getItemFromPlain(e);(0,p.isDefined)(n)&&t.push(n)}.bind(this)),t},_getFilteredGroupedItems:function(e){var t=this,n=new c.Deferred;return this._dataSource?(this._filteredGroupedItemsLoadPromise&&this._dataSource.cancel(this._filteredGroupedItemsLoadPromise.operationId),this._dataSource.items().length?n.resolve(this._getItemsByValues(e)):this._filteredGroupedItemsLoadPromise=this._dataSource.load().done((function(){n.resolve(t._getItemsByValues(e))})).fail((function(){n.resolve([])})).always((function(){t._filteredGroupedItemsLoadPromise=void 0})),n.promise()):n.promise()},_loadTagsData:function(){var e=this,t=this._getValue(),n=new c.Deferred;return this._selectedItems=[],(this._isGroupedData()?this._getFilteredGroupedItems(t):this._getFilteredItems(t)).done((function(i){e._createTagsData(t,i).always((function(e){n.resolve(e)}))})).fail(n.reject.bind(this)),n.promise()},_renderTags:function(){var e=this,t=new c.Deferred,n=!1;return this._shouldGetItemsFromPlain(this._valuesToUpdate)&&(this._selectedItems=this._getItemsFromPlain(this._valuesToUpdate),this._selectedItems.length===this._valuesToUpdate.length&&(this._renderTagsImpl(this._selectedItems),n=!0,t.resolve())),n||this._loadTagsData().done((function(n){e._disposed?t.reject():(e._renderTagsImpl(n),t.resolve())})).fail(t.reject),t.promise()},_renderTagsImpl:function(e){this._renderTagsCore(e),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus()},_shouldGetItemsFromPlain:function(e){return e&&this._dataSource.isLoaded()&&e.length<=this._getPlainItems().length},_getItemsFromPlain:function(e){var t=this._getSelectedItemsFromList(e);if(0===t.length&&e.length>0||t.length<e.length){var n=this._getPlainItems();t=this._filterSelectedItems(n,e)}return t},_getSelectedItemsFromList:function(e){var t,n=null===(t=this._list)||void 0===t?void 0:t.option("selectedItems"),i=[];return e.length===(null==n?void 0:n.length)&&(i=this._filterSelectedItems(n,e)),i},_filterSelectedItems:function(e,t){var n=this;return e.filter((function(e){for(var i,o=0;o<t.length;o++)if(i=t[o],(0,p.isObject)(i)){if(n._isValueEquals(e,i))return!0}else if(n._isValueEquals(n._valueGetter(e),i))return!0;return!1}),this)},_integrateInput:function(){this.callBase(),this._updateTagsContainer((0,o.default)(".".concat("dx-texteditor-input-container"))),this._renderTagRemoveAction()},_renderTagsCore:function(e){var t=this;this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags();var n=this._multiTagRequired()&&this._renderMultiTag(this._input()),i=this.option("showMultiTagOnly"),o=this.option("maxDisplayedTags");e.forEach((function(e,a){if(n&&i||n&&!i&&a-o>=-1)return!1;t._renderTag(e,n||t._input())})),this._isFocused()&&this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var e=this._tagElements(),t=this._getValue();(0,v.each)(e,(function(e,n){var i=(0,o.default)(n);(0,_.inArray)(i.data(O),t)<0&&i.remove()}))}},_renderEmptyState:function(){var e=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(e),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_refreshTagElements:function(){this._tagElementsCache=this.$element().find(".".concat(P))},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(e,t){this._tagTemplate.render({model:e,container:(0,f.getPublicElement)(t)})},_renderTag:function(e,t){var n=this._valueGetter(e);if((0,p.isDefined)(n)){var i=this._getTag(n),o=this._displayGetter(e),a=this._getItemModel(e,o);i?((0,p.isDefined)(o)&&(i.empty(),this._applyTagTemplate(a,i)),i.removeClass(R)):(i=this._createTag(n,t),(0,p.isDefined)(e)?this._applyTagTemplate(a,i):(i.addClass(R),this._applyTagTemplate(n,i)))}},_getItemModel:function(e,t){return(0,p.isObject)(e)&&(0,p.isDefined)(t)?e:(0,u.ensureDefined)(t,"")},_getTag:function(e){for(var t=this._tagElements(),n=t.length,i=!1,a=0;a<n;a++){var s=t[a],l=(0,r.data)(s,O);if(e===l||(0,u.equalByValue)(e,l)){i=(0,o.default)(s);break}}return i},_createTag:function(e,t){return(0,o.default)("<div>").addClass(P).data(O,e).insertBefore(t)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(e){this.callBase(e),this._clearTextValue()},_removeTagHandler:function(e){var t=e.event;t.stopPropagation(),this._saveValueChangeEvent(t);var n=(0,o.default)(t.target).closest(".".concat(P));this._removeTagElement(n)},_removeTagElement:function(e){if(e.hasClass(M))this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags")));else{var t=e.data(O);this._removeTagWithUpdate(t),this._refreshTagElements()}},_updateField:u.noop,_removeTagWithUpdate:function(e){var t=this._getValue().slice();this._removeTag(t,e),this.option("value",t),0===t.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(e){var t=this;if("useButtons"!==this.option("applyValueMode")){var n=this._getValue().slice();if((0,v.each)(e.removedItems||[],(function(e,i){t._removeTag(n,t._valueGetter(i))})),(0,v.each)(e.addedItems||[],(function(e,i){t._addTag(n,t._valueGetter(i))})),this._updateWidgetHeight(),!(0,u.equalByValue)(this._list.option("selectedItemKeys"),this.option("value"))){var i=this._list._getSelectionChangeEvent();i&&this._saveValueChangeEvent(i),this.option("value",n)}this._list._saveSelectionChangeEvent(void 0)}},_removeTag:function(e,t){var n=this._valueIndex(t,e);n>=0&&e.splice(n,1)},_addTag:function(e,t){this._valueIndex(t)<0&&e.push(t)},_fieldRenderData:function(){return this._selectedItems.slice()},_completeSelection:function(e){this.option("showSelectionControls")||this._setValue(e)},_setValue:function(e){if(null!==e){var t="useButtons"===this.option("applyValueMode"),n=this._valueIndex(e),i=(t?this._list.option("selectedItemKeys"):this._getValue()).slice();n>=0?i.splice(n,1):i.push(e),"useButtons"===this.option("applyValueMode")?this._list.option("selectedItemKeys",i):this.option("value",i)}},_isSelectedValue:function(e,t){return this._valueIndex(e,null,t)>-1},_valueIndex:function(e,t,n){var i=this,o=-1;return n&&"object"!==A(e)&&(n.indexByValues||(n.indexByValues={},(t=t||this._getValue()).forEach((function(e,t){n.indexByValues[e]=t}))),e in n.indexByValues)?n.indexByValues[e]:(t=t||this._getValue(),(0,v.each)(t,(function(t,n){if(i._isValueEquals(e,n))return o=t,!1})),o)},_lastValue:function(){var e=this._getValue(),t=e[e.length-1];return null!=t?t:null},_valueChangeEventHandler:u.noop,_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(e){this.option("searchEnabled")&&e&&!this._isTagRemoved&&(this.callBase(arguments),this._setListDataSourceFilter()),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var e=this.$element(),t=(0,i.getHeight)(e);this._renderInputSize();var n=(0,i.getHeight)(e);this._popup&&this.option("opened")&&this._isEditable()&&n!==t&&this._popup.repaint()},_refreshSelected:function(){var e;(null===(e=this._list)||void 0===e?void 0:e.getDataSource())&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter:function(){var e=this._getDataSource();e&&(delete this._userFilter,e.filter(null),e.reload())},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var e=this._getDataSource();if(e){var t=this._valueGetterExpr();if((0,p.isString)(t)&&"this"!==t){var n=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=e.filter()||null),this._userFilter&&n.push(this._userFilter),n.length?e.filter(n):e.filter(null)}else e.filter(this._dataSourceFilterFunction.bind(this));e.load()}}},_dataSourceFilterExpr:function(){var e=this,t=[];return(0,v.each)(this._getValue(),(function(n,i){t.push(["!",[e._valueGetterExpr(),i]])})),t},_dataSourceFilterFunction:function(e){var t=this,n=this._valueGetter(e),i=!0;return(0,v.each)(this._getValue(),(function(e,o){if(t._isValueEquals(o,n))return i=!1,!1})),i},_dataSourceChangedHandler:function(){this._isDataSourceChanged=!0,this.callBase.apply(this,arguments)},_applyButtonHandler:function(e){this._saveValueChangeEvent(e.event),this.option("value",this._getSortedListValues()),this._clearTextValue(),this.callBase(),this._cancelSearchIfNeed()},_getSortedListValues:function(){var e=this._getListValues(),t=this.option("value")||[],n=e.length?t.filter((function(t){return-1!==e.indexOf(t)})):[],i=n.length?e.filter((function(e){return-1===t.indexOf(e)})):e;return n.concat(i)},_getListValues:function(){var e=this;if(!this._list)return[];var t=this._getPlainItems(this._list.option("selectedItems")),n=[];return(0,v.each)(t,(function(t,i){n[t]=e._valueGetter(i)})),n},_setListDataSource:function(){var e=this._getValue();this.callBase(),e!==this.option("value")&&this.option("value",e),this._refreshSelected()},_renderOpenedState:function(){this.callBase(),"useButtons"!==this.option("applyValueMode")||this.option("opened")||this._refreshSelected()},reset:function(){this._restoreInputText();var e=this._getDefaultOptions().value,t=this.option("value");e&&0===e.length&&t&&e.length===t.length||this.callBase()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._valuesToUpdate,delete this._tagTemplate},_removeDuplicates:function(e,t){var n=this,i=[];return(0,v.each)(e,(function(e,o){t.filter((function(e){return n._valueGetter(o)===n._valueGetter(e)})).length||i.push(o)})),i},_optionChanged:function(e){switch(e.name){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":e.value?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(e.value);break;case"displayExpr":this.callBase(e),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"readOnly":case"disabled":this.callBase(e),!e.value&&this._refreshEvents();break;case"value":this._valuesToUpdate=null==e?void 0:e.value,this.callBase(e),this._valuesToUpdate=void 0,this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(e.name,e.value);break;case"selectedItem":case"maxFilterQueryLength":break;case"selectedItems":this._selectionChangedAction({addedItems:this._removeDuplicates(e.value,e.previousValue),removedItems:this._removeDuplicates(e.previousValue,e.value)});break;case"multiline":this.$element().toggleClass(V,!e.value),this._renderSingleLineScroll();break;default:this.callBase(e)}},_getActualSearchValue:function(){return this.callBase()||this._searchValue()},_popupHidingHandler:function(){this.callBase(),this._clearFilter()}});(0,l.default)("dxTagBox",L);var H=L;t.default=H,e.exports=t.default,e.exports.default=t.default},51237:function(e,t,n){t.default=void 0;var i=g(n(68374)),o=g(n(55994)),a=n(20576),r=n(58201),s=g(n(99393)),l=n(13306),u=n(35922),d=n(39611),c=g(n(93786)),h=g(n(37334)),f=n(58664),p=n(51203);function g(e){return e&&e.__esModule?e:{default:e}}var m=g(n(29837)).default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup:function(){this.$element().addClass("dx-textarea"),this.callBase(),this.setAria("multiline","true")},_renderContentImpl:function(){this._updateInputHeight(),this.callBase()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var e=(0,i.default)("<textarea>");return this._applyInputAttributes(e,this.option("inputAttr")),this._updateInputAutoResizeAppearance(e),e},_applyInputAttributes:function(e,t){e.attr(t).addClass("dx-texteditor-input")},_renderScrollHandler:function(){this._eventY=0;var e=this._input(),t=(0,p.prepareScrollData)(e,!0);o.default.on(e,(0,d.addNamespace)(h.default.init,this.NAME),t,a.noop),o.default.on(e,(0,d.addNamespace)(c.default.down,this.NAME),this._pointerDownHandler.bind(this)),o.default.on(e,(0,d.addNamespace)(c.default.move,this.NAME),this._pointerMoveHandler.bind(this))},_pointerDownHandler:function(e){this._eventY=(0,d.eventData)(e).y},_pointerMoveHandler:function(e){var t=(0,d.eventData)(e).y,n=this._eventY-t;(0,p.allowScroll)(this._input(),n)&&(e.isScrollingEvent=!0,e.stopPropagation()),this._eventY=t},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t),o=this.option("minHeight"),a=this.option("maxHeight");e.css({minHeight:void 0!==o?o:"",maxHeight:void 0!==a?a:"",width:n,height:i})},_resetDimensions:function(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents:function(){this.option("autoResizeEnabled")&&o.default.on(this._input(),(0,d.addNamespace)("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){o.default.off(this._input(),(0,d.addNamespace)("input paste",this.NAME)),this.callBase()},_getHeightDifference:function(e){return(0,f.getVerticalOffsets)(this._$element.get(0),!1)+(0,f.getVerticalOffsets)(this._$textEditorContainer.get(0),!1)+(0,f.getVerticalOffsets)(this._$textEditorInputContainer.get(0),!1)+(0,f.getElementBoxParams)("height",(0,r.getWindow)().getComputedStyle(e.get(0))).margin},_updateInputHeight:function(){var e=this._input(),t=void 0===this.option("height")&&this.option("autoResizeEnabled");if(t){this._resetDimensions(),this._$element.css("height",(0,f.getOuterHeight)(this._$element)),e.css("height",0);var n=this._getHeightDifference(e);this._renderDimensions();var i=this._getBoundaryHeight("minHeight"),o=this._getBoundaryHeight("maxHeight"),a=e[0].scrollHeight;if(void 0!==i&&(a=Math.max(a,i-n)),void 0!==o){var r=o-n,s=a>r;a=Math.min(a,r),this._updateInputAutoResizeAppearance(e,!s)}e.css("height",a),t&&this._$element.css("height","auto")}else e.css("height","")},_getBoundaryHeight:function(e){var t=this.option(e);if((0,u.isDefined)(t))return"number"==typeof t?t:(0,f.parseHeight)(t,this._$textEditorContainer.get(0))},_renderInputType:a.noop,_visibilityChanged:function(e){e&&this._updateInputHeight()},_updateInputAutoResizeAppearance:function(e,t){if(e){var n=(0,a.ensureDefined)(t,this.option("autoResizeEnabled"));e.toggleClass("dx-texteditor-input-auto-resize",n)}},_dimensionChanged:function(){this.option("visible")&&this._updateInputHeight()},_optionChanged:function(e){switch(e.name){case"autoResizeEnabled":this._updateInputAutoResizeAppearance(this._input(),e.value),this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(e),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(e),e.value&&this._updateInputHeight();break;default:this.callBase(e)}}});(0,s.default)("dxTextArea",m);var _=m;t.default=_,e.exports=t.default,e.exports.default=t.default},29837:function(e,t,n){var i;t.default=void 0;var o=((i=n(98356))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},98356:function(e,t,n){t.default=void 0;var i=c(n(68374)),o=n(58201),a=n(89386),r=n(13306),s=c(n(99393)),l=c(n(63513)),u=n(39611),d=n(58664);function c(e){return e&&e.__esModule?e:{default:e}}var h=(0,o.getWindow)(),f=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],p="dx-searchbox",g=l.default.inherit({ctor:function(e,t){t&&(this._showClearButton=t.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup:function(){this.$element().addClass("dx-textbox"),this.callBase(),this.setAria("role","textbox")},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_useTemplates:function(){return!1},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){var e=this._getMaxLength();e&&e>0?this._input().attr("maxLength",e):this._input().removeAttr("maxLength")},_renderSearchMode:function(){var e=this._$element;"search"===this.option("mode")?(e.addClass(p),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(e.removeClass(p),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var e=(0,i.default)("<div>").addClass("dx-icon").addClass("dx-icon-search");e.prependTo(this._input().parent()),this._$searchIcon=e},_getLabelContainerWidth:function(){if(this._$searchIcon){var e=this._input().parent();return(0,d.getWidth)(e)-this._getLabelBeforeWidth()}return this.callBase()},_getLabelBeforeWidth:function(){var e=this.callBase();return this._$searchIcon&&(e+=(0,d.getOuterWidth)(this._$searchIcon)),e},_optionChanged:function(e){switch(e.name){case"maxLength":this._toggleMaxLengthProp();break;case"mode":this.callBase(e),this._updateLabelWidth();break;case"mask":this.callBase(e),this._toggleMaxLengthProp();break;default:this.callBase(e)}},_onKeyDownCutOffHandler:function(e){var t=this._getMaxLength();if(!t||e.ctrlKey||this._hasSelection())return!0;var n=(0,i.default)(e.target),o=(0,u.normalizeKeyName)(e);return this._cutOffExtraChar(n),n.val().length<t||-1!==(0,a.inArray)(o,f)||""!==h.getSelection().toString()},_onChangeCutOffHandler:function(e){var t=(0,i.default)(e.target);this.option("maxLength")&&this._cutOffExtraChar(t)},_cutOffExtraChar:function(e){var t=this._getMaxLength(),n=e.val();t&&n.length>t&&e.val(n.substr(0,t))},_getMaxLength:function(){return this.option("mask")?null:this.option("maxLength")}});(0,s.default)("dxTextBox",g);var m=g;t.default=m,e.exports=t.default,e.exports.default=t.default},11483:function(e,t,n){t.default=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=function(){function e(e,t,n){this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=t,this.name=e,this.options=n||{}}var t=e.prototype;return t._addPlaceMarker=function(e){this.$placeMarker=(0,o.default)("<div>").appendTo(e)},t._addToContainer=function(e){var t=this.$placeMarker,n=this.$container;t?t.replaceWith(e):e.appendTo(n)},t._attachEvents=function(){throw"Not implemented"},t._create=function(){throw"Not implemented"},t._isRendered=function(){return!!this.instance},t._isVisible=function(){var e=this.editor;return this.options.visible||!e.option("readOnly")},t._isDisabled=function(){throw"Not implemented"},t._shouldRender=function(){return this._isVisible()&&!this._isRendered()},t.dispose=function(){var e=this.instance,t=this.$placeMarker;e&&(e.dispose?e.dispose():e.remove(),this.instance=null),t&&t.remove()},t.render=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=e,this._isVisible()){var t=this._create(),n=t.instance,i=t.$element;this.instance=n,this._attachEvents(n,i)}else this._addPlaceMarker(e)},t.update=function(){return this._shouldRender()&&this.render(),!!this.instance},e}();t.default=a,e.exports=t.default,e.exports.default=t.default},44470:function(e,t,n){t.default=void 0;var i=d(n(68374)),o=d(n(11483)),a=d(n(63008)),r=n(13306),s=d(n(55994)),l=n(24028),u=n(95429);function d(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h="dx-custom-button-hovered",f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var d=o.prototype;return d._attachEvents=function(e,t){var n=this.editor;s.default.on(t,l.start,(function(){n.$element().addClass(h)})),s.default.on(t,l.end,(function(){n.$element().removeClass(h)})),s.default.on(t,u.name,(function(e){e.stopPropagation()}))},d._create=function(){var e=this.editor,t=(0,i.default)("<div>");return this._addToContainer(t),{$element:t,instance:e._createComponent(t,a.default,(0,r.extend)({},this.options,{ignoreParentReadOnly:!0,disabled:this._isDisabled(),integrationOptions:this._prepareIntegrationOptions(e)}))}},d._prepareIntegrationOptions=function(e){return(0,r.extend)({},e.option("integrationOptions"),{skipTemplates:["content"]})},d.update=function(){var t=e.prototype.update.call(this);return this.instance&&this.instance.option("disabled",this._isDisabled()),t},d._isVisible=function(){return this.editor.option("visible")},d._isDisabled=function(){return void 0!==this.options.disabled?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")},o}(o.default);t.default=f,e.exports=t.default,e.exports.default=t.default},91202:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=l(n(44470)),a=n(13306),r=n(89386),s=l(n(96688));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(-1!==e.indexOf(t))throw s.default.Error("E1055",t);e.push(t)}var c=function(){function e(e,t){this.buttons=[],this.defaultButtonsInfo=t,this.editor=e}var t=e.prototype;return t._compileButtonInfo=function(e){var t=this,n=[];return e.map((function(e){var i,l,c="string"==typeof e;if(c||(i=e,function(){if(!i||"object"!==u(i)||Array.isArray(i))throw s.default.Error("E1053")}(),function(){if(!("name"in i))throw s.default.Error("E1054")}(),function(){if("string"!=typeof i.name)throw s.default.Error("E1055")}(),l=i.location,"location"in i&&"after"!==l&&"before"!==l&&(i.location="after")),c||function(e,t){return!!(0,r.find)(t,(function(t){return t.name===e}))}(e.name,t.defaultButtonsInfo)){var h=(0,r.find)(t.defaultButtonsInfo,(function(t){var n=t.name;return n===e||n===e.name}));if(!h)throw s.default.Error("E1056",t.editor.NAME,e);return d(n,e),h}var f=e.name;return d(n,f),(0,a.extend)(e,{Ctor:o.default})}))},t._createButton=function(e){var t=e.Ctor,n=e.options,i=new t(e.name,this.editor,n);return this.buttons.push(i),i},t._renderButtons=function(e,t,n){var o=this,a=null;return(e?this._compileButtonInfo(e):this.defaultButtonsInfo).forEach((function(e){var r=e.location;(void 0===r?"after":r)===n&&o._createButton(e).render((a=a||(0,i.default)("<div>").addClass("dx-texteditor-buttons-container"),"before"===n?t.prepend(a):t.append(a),a))})),a},t.clean=function(){this.buttons.forEach((function(e){return e.dispose()})),this.buttons=[]},t.getButton=function(e){var t=(0,r.find)(this.buttons,(function(t){return t.name===e}));return t&&t.instance},t.renderAfterButtons=function(e,t){return this._renderButtons(e,t,"after")},t.renderBeforeButtons=function(e,t){return this._renderButtons(e,t,"before")},t.updateButtons=function(e){this.buttons.forEach((function(t){e&&-1===e.indexOf(t.name)||t.update()}))},e}();t.default=c,e.exports=t.default,e.exports.default=t.default},86530:function(e,t,n){t.default=void 0;var i=k(n(68374)),o=k(n(73349)),a=k(n(55994)),r=n(31421),s=n(35922),l=n(13306),u=n(89386),d=n(95479),c=n(75811),h=k(n(20530)),f=k(n(96452)),p=n(39611),g=k(n(93786)),m=k(n(49714)),_=k(n(91202)),v=k(n(80209)),y=k(n(96688)),x=n(62754),b=k(n(2492)),w=n(78986),C=n(58664),S=k(n(91784));function k(e){return e&&e.__esModule?e:{default:e}}var D="dx-placeholder",I="dx-validation-pending",T=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],E=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"],A=w.TextEditorLabel;function O(e){if((0,s.isDefined)(e)&&!Array.isArray(e))throw y.default.Error("E1053")}var P=f.default.inherit({ctor:function(e,t){t&&O(t.buttons),this._buttonCollection=new _.default(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._labelContainerElement=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,displayValueFormatter:function(e){return(0,s.isDefined)(e)&&!1!==e?e:""},stylingMode:(0,v.default)().editorStylingMode||"outlined",showValidationMark:!0,label:"",labelMode:"static",labelMark:""})},_defaultOptionsRules:function(){var e=(0,c.current)();return this.callBase().concat([{device:function(){return(0,c.isMaterial)(e)},options:{stylingMode:(0,v.default)().editorStylingMode||"filled",labelMode:"floating"}}])},_getDefaultButtons:function(){return[{name:"clear",Ctor:m.default}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(".dx-texteditor-input").first()},_isFocused:function(){return(0,r.focused)(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find(".dx-texteditor-buttons-container").eq(0)},_isControlKey:function(e){return-1!==E.indexOf(e)},_renderStylingMode:function(){this.callBase(),this._updateButtonsStyling(this.option("stylingMode"))},_initMarkup:function(){this.$element().addClass("dx-texteditor"),this._renderInput(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue(),this._renderLabel()},_render:function(){this.callBase(),this._renderPlaceholder(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent()},_renderInput:function(){this._$buttonsContainer=this._$textEditorContainer=(0,i.default)("<div>").addClass("dx-texteditor-container").appendTo(this.$element()),this._$textEditorInputContainer=(0,i.default)("<div>").addClass("dx-texteditor-input-container").appendTo(this._$textEditorContainer),this._$textEditorInputContainer.append(this._createInput()),this._renderButtonContainers()},_getInputContainer:function(){return this._$textEditorInputContainer},_renderPendingIndicator:function(){this.$element().addClass(I);var e=this._getInputContainer(),t=(0,i.default)("<div>").addClass("dx-pending-indicator").appendTo(e);this._pendingIndicator=this._createComponent(t,b.default)},_disposePendingIndicator:function(){this._pendingIndicator&&(this._pendingIndicator.dispose(),this._pendingIndicator.$element().remove(),this._pendingIndicator=null,this.$element().removeClass(I))},_renderValidationState:function(){this.callBase();var e="pending"===this.option("validationStatus"),t=this.$element();e?(!this._pendingIndicator&&this._renderPendingIndicator(),this._showValidMark=!1):("invalid"===this.option("validationStatus")&&(this._showValidMark=!1),this._showValidMark||!0!==this.option("showValidationMark")||(this._showValidMark="valid"===this.option("validationStatus")&&!!this._pendingIndicator),this._disposePendingIndicator()),t.toggleClass("dx-valid",!!this._showValidMark)},_renderButtonContainers:function(){var e=this.option("buttons");this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(e,this._$buttonsContainer),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(e,this._$buttonsContainer)},_cleanButtonContainers:function(){var e,t;null===(e=this._$beforeButtonsContainer)||void 0===e||e.remove(),null===(t=this._$afterButtonsContainer)||void 0===t||t.remove(),this._buttonCollection.clean()},_clean:function(){this._buttonCollection.clean(),this._disposePendingIndicator(),this._cleanLabelObservable(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._$textEditorContainer=null,this._$buttonsContainer=null,this.callBase()},_createInput:function(){var e=(0,i.default)("<input>");return this._applyInputAttributes(e,this.option("inputAttr")),e},_setSubmitElementName:function(e){var t=this.option("inputAttr.name");return this.callBase(e||t||"")},_applyInputAttributes:function(e,t){var n=(0,l.extend)(this._getDefaultAttributes(),t);e.attr(n).addClass("dx-texteditor-input").css("minHeight",this.option("height")?"0":"")},_getDefaultAttributes:function(){var e={autocomplete:"off"},t=h.default.real(),n=t.ios,i=t.mac;return(n||i)&&(e.placeholder=" "),e},_updateButtons:function(e){this._buttonCollection.updateButtons(e)},_updateButtonsStyling:function(e){var t=this;(0,d.each)(this.option("buttons"),(function(n,i){var o=i.options,a=i.name;if(o&&!o.stylingMode&&t.option("visible")){var r=t.getButton(a);r.option&&r.option("stylingMode","underlined"===e?"text":"contained")}}))},_renderValue:function(){return this._renderInputValue().promise()},_renderInputValue:function(e){var t;e=null!==(t=e)&&void 0!==t?t:this.option("value");var n=this.option("text"),i=this.option("displayValue"),o=this.option("displayValueFormatter");return void 0!==i&&null!==e?n=o(i):(0,s.isDefined)(n)||(n=o(e)),this.option("text",n),this._input().val()!==((0,s.isDefined)(n)?n:"")?this._renderDisplayText(n):this._toggleEmptinessEventHandler(),(new x.Deferred).resolve()},_renderDisplayText:function(e){this._input().val(e),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var e=this._input().get(0).validity;if(e)return e.valid}return!0},_toggleEmptiness:function(e){this.$element().toggleClass("dx-texteditor-empty",e),this._togglePlaceholder(e)},_togglePlaceholder:function(e){this.$element().find(".".concat(D)).eq(0).toggleClass("dx-state-invisible",!e)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments);var t=this._input();t.prop("disabled",e)},_toggleTabIndex:function(){var e=this._input(),t=this.option("disabled"),n=this.option("focusStateEnabled");t||!n?e.attr("tabIndex",-1):e.removeAttr("tabIndex")},_toggleReadOnlyState:function(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue:function(){return this.option("readOnly")},_toggleSpellcheckState:function(){this._input().prop("spellcheck",this.option("spellcheck"))},_cleanLabelObservable:function(){this._labelContainerElement&&(S.default.unobserve(this._labelContainerElement),this._labelContainerElement=null)},_getLabelContainer:function(){return this._input()},_getLabelContainerWidth:function(){return(0,C.getWidth)(this._getLabelContainer())},_getLabelBeforeWidth:function(){var e=this._$beforeButtonsContainer&&(0,C.getWidth)(this._$beforeButtonsContainer);return null!=e?e:0},_updateLabelWidth:function(){this._label.updateBeforeWidth(this._getLabelBeforeWidth()),this._label.updateMaxWidth(this._getLabelContainerWidth())},_renderLabel:function(){this._cleanLabelObservable(),this._labelContainerElement=(0,i.default)(this._getLabelContainer()).get(0);var e=this.option(),t=e.label,n=e.labelMode,o=e.labelMark,a={$editor:this.$element(),text:t,mark:o,mode:n,containsButtonsBefore:!!this._$beforeButtonsContainer,containerWidth:this._getLabelContainerWidth(),beforeWidth:this._getLabelBeforeWidth()};this._label=new A(a),this._labelContainerElement&&S.default.observe(this._labelContainerElement,this._updateLabelWidth.bind(this))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var e=this._input(),t=this.option("placeholder"),n=this._$placeholder=(0,i.default)("<div>").attr("data-dx_placeholder",t);n.insertAfter(e),n.addClass(D)},_attachPlaceholderEvents:function(){var e=this,t=(0,p.addNamespace)(g.default.up,this.NAME);a.default.on(this._$placeholder,t,(function(){a.default.trigger(e._input(),"focus")})),this._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||(0,i.default)()},_clearValueHandler:function(e){var t=this._input();e.stopPropagation(),this._saveValueChangeEvent(e),this._clearValue(),!this._isFocused()&&a.default.trigger(t,"focus"),a.default.trigger(t,"input")},_clearValue:function(){this.reset()},_renderEvents:function(){var e=this,t=this._input();(0,d.each)(T,(function(n,i){if(e.hasActionSubscription("on"+i)){var o=e._createActionByOption("on"+i,{excludeValidators:["readOnly"]});a.default.on(t,(0,p.addNamespace)(i.toLowerCase(),e.NAME),(function(t){e._disposed||o({event:t})}))}}))},_refreshEvents:function(){var e=this,t=this._input();(0,d.each)(T,(function(n,i){a.default.off(t,(0,p.addNamespace)(i.toLowerCase(),e.NAME))})),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_keyDownHandler:function(e){var t=this._input(),n=e.ctrlKey&&"enter"===(0,p.normalizeKeyName)(e),i=t.val()!==this.option("value");n&&i&&a.default.trigger(t,"change")},_renderValueChangeEvent:function(){var e=(0,p.addNamespace)(this._renderValueEventName(),"".concat(this.NAME,"TextChange")),t=(0,p.addNamespace)(this.option("valueChangeEvent"),"".concat(this.NAME,"ValueChange")),n=(0,p.addNamespace)("keydown","".concat(this.NAME,"TextChange")),i=this._input();a.default.on(i,e,this._keyPressHandler.bind(this)),a.default.on(i,t,this._valueChangeEventHandler.bind(this)),a.default.on(i,n,this._keyDownHandler.bind(this))},_cleanValueChangeEvent:function(){var e=".".concat(this.NAME,"ValueChange"),t=".".concat(this.NAME,"TextChange");a.default.off(this._input(),e),a.default.off(this._input(),t)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusEventTarget:function(){return this.element()},_isInput:function(e){return e===this._input().get(0)},_preventNestedFocusEvent:function(e){if(e.isDefaultPrevented())return!0;var t=this._isNestedTarget(e.relatedTarget);return"focusin"===e.type&&(t=t&&this._isNestedTarget(e.target)&&!this._isInput(e.target)),t&&e.preventDefault(),t},_isNestedTarget:function(e){return!!this.$element().find(e).length},_focusClassTarget:function(){return this.$element()},_focusInHandler:function(e){this._preventNestedFocusEvent(e),this.callBase.apply(this,arguments)},_focusOutHandler:function(e){this._preventNestedFocusEvent(e),this.callBase.apply(this,arguments)},_toggleFocusClass:function(e,t){this.callBase(e,this._focusClassTarget(t))},_hasFocusClass:function(e){return this.callBase((0,i.default)(e||this.$element()))},_renderEmptinessEvent:function(){var e=this._input();a.default.on(e,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var e=this._input().val(),t=(""===e||null===e)&&this._isValueValid();this._toggleEmptiness(t)},_valueChangeEventHandler:function(e,t){this.option("readOnly")||(this._saveValueChangeEvent(e),this.option("value",arguments.length>1?t:this._input().val()),this._saveValueChangeEvent(void 0))},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),a.default.off(this._input(),"keyup.onEnterKey.dxTextEditor"),a.default.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(e){this._disposed||"enter"===(0,p.normalizeKeyName)(e)&&this._enterKeyAction({event:e})},_updateValue:function(){this._options.silent("text",null),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_hasActiveElement:function(){return this._input().is(o.default.getActiveElement())},_optionChanged:function(e){var t=e.name,n=e.fullName,i=e.value;if((0,u.inArray)(t.replace("on",""),T)>-1)this._refreshEvents();else switch(t){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(e),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder();break;case"label":this._label.updateText(i);break;case"labelMark":this._label.updateMark(i);break;case"labelMode":this._label.updateMode(i);break;case"width":this.callBase(e),this._label.updateMaxWidth(this._getLabelContainerWidth());break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(e);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":case"showValidationMark":break;case"value":this._updateValue(),this.callBase(e);break;case"inputAttr":this._applyInputAttributes(this._input(),this.option(t));break;case"stylingMode":this._renderStylingMode(),this._updateLabelWidth();break;case"buttons":n===t&&O(i),this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")),this._updateLabelWidth(),this._label.updateContainsButtonsBefore(0!==i.length);break;case"visible":this.callBase(e),i&&this.option("buttons")&&(this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")));break;case"displayValueFormatter":this._invalidate();break;default:this.callBase(e)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(e){var t=this._input();"search"===e&&(e="text");try{t.prop("type",e)}catch(e){t.prop("type","text")}},getButton:function(e){return this._buttonCollection.getButton(e)},focus:function(){a.default.trigger(this._input(),"focus")},reset:function(){this._showValidMark&&(this._showValidMark=!1,this._renderValidationState());var e=this._getDefaultOptions();this.option("value")===e.value?(this._options.silent("text",""),this._renderValue()):this.option("value",e.value)},on:function(e,t){var n=this.callBase(e,t),i=e.charAt(0).toUpperCase()+e.substr(1);return T.indexOf(i)>=0&&this._refreshEvents(),n}});t.default=P,e.exports=t.default,e.exports.default=t.default},49714:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=u(n(55994)),a=u(n(11483)),r=n(39611),s=u(n(93786)),l=n(95429);function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=s.default.down,h="dx-state-invisible",f=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n);var s=a.prototype;return s._create=function(){var e=(0,i.default)("<span>").addClass("dx-clear-button-area").append((0,i.default)("<span>").addClass("dx-icon").addClass("dx-icon-clear"));return this._addToContainer(e),this.update(!0),{instance:e,$element:e}},s._isVisible=function(){return this.editor._isClearButtonVisible()},s._attachEvents=function(e,t){var n=this.editor,i=n.NAME;o.default.on(t,(0,r.addNamespace)(c,i),(function(e){e.preventDefault(),"mouse"!==e.pointerType&&n._clearValueHandler(e)})),o.default.on(t,(0,r.addNamespace)(l.name,i),(function(e){return n._clearValueHandler(e)}))},s._legacyRender=function(e,t){e.toggleClass("dx-show-clear-button",t)},s.update=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!t&&e.prototype.update.call(this);var n=this.editor,i=this.instance,o=n.$element(),a=this._isVisible();i&&i.toggleClass(h,!a),this._legacyRender(o,a)},a}(a.default);t.default=f,e.exports=t.default,e.exports.default=t.default},63513:function(e,t,n){t.default=void 0;var i=a(n(99393)),o=a(n(88839));function a(e){return e&&e.__esModule?e:{default:e}}(0,i.default)("dxTextEditor",o.default);var r=o.default;t.default=r,e.exports=t.default,e.exports.default=t.default},78986:function(e,t,n){t.TextEditorLabel=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a="dx-texteditor-with-label",r="dx-texteditor-with-floating-label",s="dx-texteditor-with-before-buttons",l=function(){function e(e){var t=e.$editor,n=e.text,i=e.mode,o=e.mark,a=e.containsButtonsBefore,r=e.containerWidth,s=e.beforeWidth;this._props={$editor:t,text:n,mode:i,mark:o,containsButtonsBefore:a,containerWidth:r,beforeWidth:s},this._render(),this._toggleMarkupVisibility()}var t=e.prototype;return t._isVisible=function(){return!!this._props.text&&"hidden"!==this._props.mode},t._render=function(){this._$before=(0,o.default)("<div>").addClass("dx-label-before"),this._$labelSpan=(0,o.default)("<span>"),this._$label=(0,o.default)("<div>").addClass("dx-label").append(this._$labelSpan),this._$after=(0,o.default)("<div>").addClass("dx-label-after"),this._$root=(0,o.default)("<div>").addClass("dx-texteditor-label").append(this._$before).append(this._$label).append(this._$after),this._updateMark(),this._updateText(),this._updateBeforeWidth(),this._updateMaxWidth()},t._toggleMarkupVisibility=function(){var e=this._isVisible();this._updateEditorBeforeButtonsClass(e),this._updateEditorLabelClass(e),e?this._$root.appendTo(this._props.$editor):this._$root.detach()},t._updateEditorLabelClass=function(e){if(this._props.$editor.removeClass(r).removeClass(a),e){var t="floating"===this._props.mode?r:a;this._props.$editor.addClass(t)}},t._updateEditorBeforeButtonsClass=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible();if(this._props.$editor.removeClass(s),e){var t=this._props.containsButtonsBefore?s:"";this._props.$editor.addClass(t)}},t._updateMark=function(){this._$labelSpan.attr("data-mark",this._props.mark)},t._updateText=function(){this._$labelSpan.text(this._props.text)},t._updateBeforeWidth=function(){this._$before.css({width:this._props.beforeWidth})},t._updateMaxWidth=function(){this._$label.css({maxWidth:this._props.containerWidth})},t.$element=function(){return this._$root},t.isVisible=function(){return this._isVisible()},t.updateMode=function(e){this._props.mode=e,this._toggleMarkupVisibility()},t.updateText=function(e){this._props.text=e,this._updateText(),this._toggleMarkupVisibility()},t.updateMark=function(e){this._props.mark=e,this._updateMark()},t.updateContainsButtonsBefore=function(e){this._props.containsButtonsBefore=e,this._updateEditorBeforeButtonsClass()},t.updateBeforeWidth=function(e){this._props.beforeWidth=e,this._updateBeforeWidth()},t.updateMaxWidth=function(e){this._props.containerWidth=e,this._updateMaxWidth()},e}();t.TextEditorLabel=l},88839:function(e,t,n){t.default=void 0;var i=x(n(68374)),o=x(n(21516)),a=n(26692),r=n(95479),s=n(39611),l=x(n(55994)),u=n(13306),d=n(31421),c=n(35922),h=x(n(28109)),f=n(20576),p=n(68752),g=n(765),m=n(20175),_=x(n(86530)),v=x(n(15140)),y=x(n(75188));function x(e){return e&&e.__esModule?e:{default:e}}var b=function(){return{}},w=o.default,C="dx-texteditor-masked",S="forward",k={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(e){return I(e)},l:function(e){return I(e)||T(e)},C:/\S/,c:/./,A:function(e){return I(e)||D(e)},a:function(e){return I(e)||D(e)||T(e)}};function D(e){return/[0-9]/.test(e)}function I(e){var t=e.charCodeAt();return 64<t&&t<91||96<t&&t<123||t>127}function T(e){return" "===e}var E=_.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:h.default.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var e=this,t={backspace:e._maskStrategy.getHandler("backspace"),del:e._maskStrategy.getHandler("del"),enter:e._changeHandler},n=e.callBase();return(0,r.each)(t,(function(t,i){var o=n[t];n[t]=function(t){e.option("mask")&&i.call(e,t),o&&o(t)}})),n},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){this._maskStrategy=(0,a.isInputEventsL2Supported)()?new y.default(this):new v.default(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){if(this._onMouseWheel!==f.noop){var e=this._input(),t=(0,s.addNamespace)(g.name,this.NAME),n=this._createAction(function(t){var n=t.event;(0,d.focused)(e)&&!(0,s.isCommandKeyPressed)(n)&&(this._onMouseWheel(n),n.preventDefault(),n.stopPropagation())}.bind(this));l.default.off(e,t),l.default.on(e,t,(function(e){n({event:e})}))}},_onMouseWheel:f.noop,_render:function(){this._renderMask(),this.callBase(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=(0,i.default)("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(C),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass(C),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_suppressCaretChanging:function(e,t){w=b;try{e.apply(this,t)}finally{w=o.default}},_changeHandler:function(e){var t=this._input(),n=t.val();if(n!==this._changedValue){this._changedValue=n;var i=(0,s.createEvent)(e,{type:"change"});l.default.trigger(t,i)}},_parseMask:function(){this._maskRules=(0,u.extend)({},k,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(e){var t=this.option("mask");if(e>=t.length)return new m.EmptyMaskRule;var n=t[e],i="\\"===n,o=i?new m.StubMaskRule({maskChar:t[e+1]}):this._getMaskRule(n);return o.next(this._parseMaskRule(e+1+i)),o},_getMaskRule:function(e){var t;return(0,r.each)(this._maskRules,(function(n,i){if(n===e)return t={pattern:n,allowedChars:i},!1})),(0,c.isDefined)(t)?new m.MaskRule((0,u.extend)({maskChar:this.option("maskChar")},t)):new m.StubMaskRule({maskChar:e})},_renderMaskedValue:function(){if(this._maskRulesChain){var e=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var t={length:e.length};t[this._isMaskedValueMode()?"text":"value"]=e,this._handleChain(t),this._displayMask()}},_replaceSelectedText:function(e,t,n){return void 0===n?e:e.slice(0,t.start)+n+e.slice(t.end)},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(e){e=e||this._caret(),this._renderValue(),this._caret(e)},_isValueEmpty:function(){return(0,p.isEmpty)(this._value)},_shouldShowMask:function(){return"onFocus"!==this.option("showMaskMode")||(0,d.focused)(this._input())||!this._isValueEmpty()},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var e=this._maskRulesChain.text();this.option("text",e),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(e)}},_renderValue:function(){if(this._maskRulesChain&&(this._showMaskPlaceholder(),this._$hiddenElement)){var e=this._maskRulesChain.value(),t=(0,p.isEmpty)(e)?"":this._getPreparedValue();this._$hiddenElement.val(t)}return this.callBase()},_getPreparedValue:function(){return this._convertToValue().replace(/\s+$/,"")},_valueChangeEventHandler:function(e){this._maskRulesChain?(this._saveValueChangeEvent(e),this.option("value",this._getPreparedValue())):this.callBase.apply(this,arguments)},_isControlKeyFired:function(e){return this._isControlKey((0,s.normalizeKeyName)(e))||(0,s.isCommandKeyPressed)(e)},_handleChain:function(e){var t=this._maskRulesChain.handle(this._normalizeChainArguments(e));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),t},_normalizeChainArguments:function(e){return(e=e||{}).index=0,e.fullText=this._maskRulesChain.text(),e},_convertToValue:function(e){return this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(e||this._textValue||""):e||this._value||""},_replaceMaskCharWithEmpty:function(e){return e.replace(new RegExp(this.option("maskChar"),"g")," ")},_maskKeyHandler:function(e,t){var n=this;if(!this.option("readOnly")){this.setForwardDirection(),e.preventDefault(),this._handleSelection();var i=this._input().val(),o=function(){i!==n._input().val()&&n._maskStrategy.runWithoutEventProcessing((function(){return l.default.trigger(n._input(),"input")}))},a=t();a?a.then(o):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),o())}},_handleKey:function(e,t){this._direction(t||S),this._adjustCaret(e),this._handleKeyChain(e),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var e=this._caret(),t=new Array(e.end-e.start+1).join(" ");this._handleKeyChain(t)}},_handleKeyChain:function(e){var t=this._caret(),n=this.isForwardDirection()?t.start:t.start-1,i=this.isForwardDirection()?t.end:t.end-1,o=n===i?1:i-n;this._handleChain({text:e,start:n,length:o})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var e=this._caret().start;return this._adjustCaret(),!e||e!==this._caret().start},_adjustCaret:function(e){var t=this._caret().start,n=this.isForwardDirection(),i=this._maskRulesChain.adjustedCaret(t,n,e);this._caret({start:i,end:i})},_moveCaret:function(){var e=this._caret().start,t=e+(this.isForwardDirection()?0:-1),n=this._maskRulesChain.isAccepted(t)?e+(this.isForwardDirection()?1:-1):e;this._caret({start:n,end:n})},_caret:function(e,t){var n=this._input();if(n.length)return arguments.length?void w(n,e,t):w(n)},_hasSelection:function(){var e=this._caret();return e.start!==e.end},_direction:function(e){if(!arguments.length)return this._typingDirection;this._typingDirection=e},setForwardDirection:function(){this._direction(S)},setBackwardDirection:function(){this._direction("backward")},isForwardDirection:function(){return this._direction()===S},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var e=(0,p.isEmpty)(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:e,validationError:e?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_updateHiddenElement:function(){this._removeHiddenElement(),this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask()},_processEmptyMask:function(e){if(!e){var t=this.option("value");this.option({text:t,isValid:!0}),this.validationRequest.fire({value:t,editor:this}),this._renderValue()}},_optionChanged:function(e){switch(e.name){case"mask":this._updateMaskOption(),this._processEmptyMask(e.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(e),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(e)}}});t.default=E,e.exports=t.default,e.exports.default=t.default},20175:function(e,t,n){t.StubMaskRule=t.MaskRule=t.EmptyMaskRule=void 0;var i,o=(i=n(38377))&&i.__esModule?i:{default:i},a=n(13306),r=n(89386),s=n(35922),l=n(20576),u=" ",d=o.default.inherit({ctor:function(e){this._value=u,(0,a.extend)(this,e)},next:function(e){if(!arguments.length)return this._next;this._next=e},text:l.noop,value:l.noop,rawValue:l.noop,handle:l.noop,_prepareHandlingArgs:function(e,t){var n,i,o;t=t||{};var a=Object.prototype.hasOwnProperty.call(e,"value")?"value":"text";return e[a]=null!==(n=t.str)&&void 0!==n?n:e[a],e.start=null!==(i=t.start)&&void 0!==i?i:e.start,e.length=null!==(o=t.length)&&void 0!==o?o:e.length,e.index=e.index+1,e},reset:l.noop,clear:l.noop,first:function(e){return e=e||0,this.next().first(e+1)},isAccepted:function(){return!1},adjustedCaret:function(e,t,n){return t?this._adjustedForward(e,0,n):this._adjustedBackward(e,0,n)},_adjustedForward:l.noop,_adjustedBackward:l.noop,isValid:l.noop}),c=d.inherit({next:l.noop,handle:function(){return 0},text:function(){return""},value:function(){return""},first:function(){return 0},rawValue:function(){return""},adjustedCaret:function(){return 0},isValid:function(){return!0}});t.EmptyMaskRule=c;var h=d.inherit({text:function(){return(this._value!==u?this._value:this.maskChar)+this.next().text()},value:function(){return this._value+this.next().value()},rawValue:function(){return this._value+this.next().rawValue()},handle:function(e){var t=Object.prototype.hasOwnProperty.call(e,"value")?e.value:e.text;if(!t||!t.length||!e.length)return 0;if(e.start)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start-1}));var n=t[0],i=t.substring(1);return this._tryAcceptChar(n,e),this._accepted()?this.next().handle(this._prepareHandlingArgs(e,{str:i,length:e.length-1}))+1:this.handle(this._prepareHandlingArgs(e,{str:i,length:e.length-1}))},clear:function(e){this._tryAcceptChar(u,e),this.next().clear(this._prepareHandlingArgs(e))},reset:function(){this._accepted(!1),this.next().reset()},_tryAcceptChar:function(e,t){if(this._accepted(!1),this._isAllowed(e,t)){var n=e===u?this.maskChar:e;t.fullText=t.fullText.substring(0,t.index)+n+t.fullText.substring(t.index+1),this._accepted(!0),this._value=e}},_accepted:function(e){if(!arguments.length)return!!this._isAccepted;this._isAccepted=!!e},first:function(e){return this._value===u?e||0:this.callBase(e)},_isAllowed:function(e,t){return e===u||this._isValid(e,t)},_isValid:function(e,t){var n=this.allowedChars;return n instanceof RegExp?n.test(e):(0,s.isFunction)(n)?n(e,t.index,t.fullText):Array.isArray(n)?(0,r.inArray)(e,n)>-1:n===e},isAccepted:function(e){return 0===e?this._accepted():this.next().isAccepted(e-1)},_adjustedForward:function(e,t,n){return t>=e?t:this.next()._adjustedForward(e,t+1,n)||t+1},_adjustedBackward:function(e,t){return t>=e-1?e:this.next()._adjustedBackward(e,t+1)||t+1},isValid:function(e){return this._isValid(this._value,e)&&this.next().isValid(this._prepareHandlingArgs(e))}});t.MaskRule=h;var f=h.inherit({value:function(){return this.next().value()},handle:function(e){var t=Object.prototype.hasOwnProperty.call(e,"value"),n=t?e.value:e.text;if(!n.length||!e.length)return 0;if(e.start||t)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start&&e.start-1}));var i=n[0],o=n.substring(1);this._tryAcceptChar(i);var a=this._isAllowed(i)?this._prepareHandlingArgs(e,{str:o,length:e.length-1}):e;return this.next().handle(a)+1},clear:function(e){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(e))},_tryAcceptChar:function(e){this._accepted(this._isValid(e))},_isValid:function(e){return e===this.maskChar},first:function(e){return e=e||0,this.next().first(e+1)},_adjustedForward:function(e,t,n){return t>=e&&n===this.maskChar?t:e===t+1&&this._accepted()?e:this.next()._adjustedForward(e,t+1,n)},_adjustedBackward:function(e,t){return t>=e-1?0:this.next()._adjustedBackward(e,t+1)},isValid:function(e){return this.next().isValid(this._prepareHandlingArgs(e))}});t.StubMaskRule=f},33124:function(e,t,n){t.default=void 0;var i=l(n(55994)),o=n(39611),a=l(n(47810)),r=n(89386),s=n(3532);function l(e){return e&&e.__esModule?e:{default:e}}var u="dxMask",d=function(){function e(e){this.editor=e,this.DIRECTION={FORWARD:"forward",BACKWARD:"backward"},this.NAME=this._getStrategyName()}var t=e.prototype;return t._getStrategyName=function(){return"base"},t.editorOption=function(){var e;return(e=this.editor).option.apply(e,arguments)},t.editorInput=function(){return this.editor._input()},t.editorCaret=function(e){if(!e)return this.editor._caret();this.editor._caret(e)},t.getHandler=function(e){return(this["_".concat(e,"Handler")]||function(){}).bind(this)},t.attachEvents=function(){var e=this,t=this.editorInput();this.getHandleEventNames().forEach((function(n){var a=(0,o.addNamespace)(n.toLowerCase(),u);i.default.on(t,a,e.getEventHandler(n))})),this._attachChangeEventHandlers()},t.getHandleEventNames=function(){return["focusIn","focusOut","keyDown","input","paste","cut","drop"]},t.getEventHandler=function(e){return this["_".concat(e,"Handler")].bind(this)},t.detachEvents=function(){i.default.off(this.editorInput(),".".concat(u))},t._attachChangeEventHandlers=function(){-1!==(0,r.inArray)("change",this.editorOption("valueChangeEvent").split(" "))&&i.default.on(this.editorInput(),(0,o.addNamespace)("blur beforedeactivate",u),function(e){this._suppressCaretChanging(this._changeHandler,[e]),this._changeHandler(e)}.bind(this.editor))},t._focusInHandler=function(){if(this.editor._showMaskPlaceholder(),this.editor._direction(this.DIRECTION.FORWARD),!this.editor._isValueEmpty()&&this.editorOption("isValid"))this.editor._adjustCaret();else{var e=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(function(){this._caret({start:e,end:e})}.bind(this.editor),0)}},t._focusOutHandler=function(e){this.editor._changeHandler(e),"onFocus"===this.editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this.editorOption("text",""),this.editor._renderDisplayText(""))},t._cutHandler=function(e){var t=this.editorCaret(),n=this.editorInput().val().substring(t.start,t.end);this.editor._maskKeyHandler(e,(function(){return(0,s.clipboardText)(e,n)}))},t._dropHandler=function(){this._clearDragTimer(),this._dragTimer=setTimeout(function(){this.option("value",this._convertToValue(this._input().val()))}.bind(this.editor))},t._clearDragTimer=function(){clearTimeout(this._dragTimer)},t._keyDownHandler=function(){this._keyPressHandled=!1},t._pasteHandler=function(e){var t=this.editor;this._keyPressHandled=!0;var n=this.editorCaret();t._maskKeyHandler(e,(function(){var i=(0,s.clipboardText)(e),o=t._maskRulesChain.text().substring(n.end),a=t._handleChain({text:i,start:n.start,length:i.length}),r=n.start+a;t._handleChain({text:o,start:r,length:o.length}),t._caret({start:r,end:r})}))},t._autoFillHandler=function(e){var t=this,n=this.editor,i=this.editorInput().val();this._inputHandlerTimer=setTimeout((function(){t._keyPressHandled=!0,t._isAutoFill()&&(t._keyPressHandled=!0,n._maskKeyHandler(e,(function(){n._handleChain({text:i,start:0,length:i.length})})),n._validateMask())}))},t._isAutoFill=function(){var e=this.editor._input(),t=!1;if(a.default.webkit){var n=e.get(0);t=n&&n.matches(":-webkit-autofill")}return t},t.runWithoutEventProcessing=function(e){var t=this._keyPressHandled;this._keyPressHandled=!0,e(),this._keyPressHandled=t},t._backspaceHandler=function(){},t._delHandler=function(e){var t=this.editor;this._keyPressHandled=!0,t._maskKeyHandler(e,(function(){return!t._hasSelection()&&t._handleKey(" ")}))},t.clean=function(){this._clearDragTimer(),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout),clearTimeout(this._inputHandlerTimer)},e}();t.default=d,e.exports=t.default,e.exports.default=t.default},15140:function(e,t,n){t.default=void 0;var i=r(n(33124)),o=n(39611),a=r(n(48136));function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,l(t,n);var r=i.prototype;return r._getStrategyName=function(){return"default"},r.getHandleEventNames=function(){return[].concat(function(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.prototype.getHandleEventNames.call(this)),["keyPress"])},r._keyPressHandler=function(e){if(!this._keyPressHandled&&(this._keyPressHandled=!0,!this.editor._isControlKeyFired(e))){var t=this.editor;t._maskKeyHandler(e,(function(){return t._handleKey((0,o.getChar)(e))}))}},r._inputHandler=function(e){if(this._backspaceInputHandled(e.originalEvent&&e.originalEvent.inputType)&&this._handleBackspaceInput(e),e.originalEvent&&this._autoFillHandler(e),!this._keyPressHandled){this._keyPressHandled=!0;var t=this.editorInput().val(),n=this.editorCaret();if(n.end){n.start=n.end-1;var i=t.substring(0,n.start)+t.substring(n.end),o=t[n.start],a=this.editor;this.editorInput().val(i),a._caret({start:n.start,end:n.start}),a._maskKeyHandler(e,(function(){return a._handleKey(o)}))}}},r._backspaceHandler=function(e){var t=this,n=this.editor;this._keyPressHandled=!0;var i=function(e,i){e&&(n._direction(t.DIRECTION.FORWARD),n._adjustCaret());var o=t.editorCaret();return new a.default((function(e){clearTimeout(t._backspaceHandlerTimeout),t._backspaceHandlerTimeout=setTimeout((function(){i(o),e()}))}))};n._maskKeyHandler(e,(function(){return n._hasSelection()?i(!0,(function(e){n._displayMask(e),n._maskRulesChain.reset()})):n._tryMoveCaretBackward()?i(!1,(function(e){t.editorCaret(e)})):(n._handleKey(" ",t.DIRECTION.BACKWARD),i(!0,(function(e){n._displayMask(e),n._maskRulesChain.reset()})))}))},r._backspaceInputHandled=function(e){return"deleteContentBackward"===e&&!this._keyPressHandled},r._handleBackspaceInput=function(e){var t=this.editorCaret(),n=t.start,i=t.end;this.editorCaret({start:n+1,end:i+1}),this._backspaceHandler(e)},i}(i.default);t.default=u,e.exports=t.default,e.exports.default=t.default},75188:function(e,t,n){var i;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.default=void 0;var r=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var r=i.prototype;return r._getStrategyName=function(){return"inputEvents"},r.getHandleEventNames=function(){return[].concat(function(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.prototype.getHandleEventNames.call(this)),["beforeInput"])},r._beforeInputHandler=function(){this._prevCaret=this.editorCaret()},r._inputHandler=function(e){var t=e.originalEvent;if(t){var n=t.inputType,i=t.data,o=this.editorCaret();if("deleteContentBackward"===n){var a=this._prevCaret.end-this._prevCaret.start||1;this.editor.setBackwardDirection(),this._updateEditorMask({start:o.start,length:a,text:this._getEmptyString(a)})}else{var r,s,l;if(!o.end)return;this._autoFillHandler(t),this.editorCaret(o);var u=(null===(r=this._prevCaret)||void 0===r?void 0:r.end)-(null===(s=this._prevCaret)||void 0===s?void 0:s.start),d=i+(u?this._getEmptyString(u-i.length):"");this.editor.setForwardDirection(),this._updateEditorMask({start:null===(l=this._prevCaret)||void 0===l?void 0:l.start,length:u||d.length,text:d})||this.editorCaret(this._prevCaret)}}},r._getEmptyString=function(e){return Array(e+1).join(" ")},r._updateEditorMask=function(e){var t=e.text.length,n=this.editor._handleChain(e);if(this.editor.isForwardDirection()){var i=this.editorCaret(),o=i.start,a=i.end,r=n-t;o<=n&&n>1&&this.editorCaret({start:o+r,end:a+r}),this.editor.isForwardDirection()&&this.editor._adjustCaret()}return this.editor._displayMask(),!!n},i}(((i=n(33124))&&i.__esModule?i:{default:i}).default);t.default=r,e.exports=t.default,e.exports.default=t.default},21516:function(e,t,n){t.default=void 0;var i=s(n(68374)),o=n(35922),a=s(n(20530)),r=s(n(73349));function s(e){return e&&e.__esModule?e:{default:e}}var l=a.default.real(),u=l.ios,d=l.mac,c=u||d,h=function(e){var t;try{t={start:e.selectionStart,end:e.selectionEnd}}catch(e){t={start:0,end:0}}return t},f=function(e,t){if(r.default.getBody().contains(e))try{e.selectionStart=t.start,e.selectionEnd=t.end}catch(e){}};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e=(0,i.default)(e).get(0),!(0,o.isDefined)(t))return h(e);!n&&c&&r.default.getActiveElement()!==e||f(e,t)},e.exports=t.default,e.exports.default=t.default},51203:function(e,t,n){t.prepareScrollData=t.allowScroll=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(39611),r=function(e,t,n){var i=(0,o.default)(e),a=n?i.scrollLeft():i.scrollTop(),r=n?"Width":"Height",s=i.prop("scroll".concat(r))-i.prop("client".concat(r))-a;return(0!==a||0!==s)&&(!!(0===a&&t>=0||0===s&&t<=0||a>0&&s>0)||void 0)};t.allowScroll=r,t.prepareScrollData=function(e,t){var n=(0,o.default)(e);return{validate:function(i){if((0,a.isDxMouseWheelEvent)(i)&&(s=i.target,!t||(0,o.default)(s).is(e)))return!!r(n,-i.delta,i.shiftKey)&&(i._needSkipEvent=!0,!0);var s}}}},26692:function(e,t,n){t.isInputEventsL2Supported=function(){return"onbeforeinput"in i.default.createElement("input")||(t=(e=o.default.real()).android,n=e.version,t&&n[0]>4);var e,t,n};var i=a(n(73349)),o=a(n(20530));function a(e){return e&&e.__esModule?e:{default:e}}},75811:function(e,t,n){t.attachCssClasses=L,t.current=F,t.default=void 0,t.detachCssClasses=H,t.init=V,t.initialized=Z,t.isCompact=q,t.isDark=j,t.isGeneric=G,t.isMaterial=W,t.isPendingThemeLoaded=R,t.isWebFontLoaded=$,t.ready=N,t.resetTheme=Y,t.setDefaultTimeout=X,t.waitForThemeLoad=M,t.waitWebFont=K;var i=n(58664),o=m(n(20530)),a=m(n(73349)),r=m(n(48136)),s=m(n(68374)),l=n(62754),u=n(61371),d=n(95479),c=m(n(24311)),h=n(77695),f=n(58201),p=n(89729),g=m(n(96688));function m(e){return e&&e.__esModule?e:{default:e}}var _,v,y,x,b,w,C=(0,f.getWindow)(),S=c.default.add,k=h.value,D=h.changeCallback,I=new l.Deferred,T="link[rel=dx-theme]",E="any",A=15e3,O="dx.";function P(){if(!(0,f.hasWindow)())return null;var e,t=(0,s.default)("<div>",_).addClass("dx-theme-marker").appendTo(_.documentElement);try{return(e=C.getComputedStyle(t.get(0)).fontFamily)?(e=e.replace(/["']/g,"")).substr(0,O.length)!==O?null:e.substr(O.length):null}finally{t.remove()}}function M(e){var t,n,i=!0;function o(){b=null,clearInterval(n),i=!0,p.themeReadyCallback.fire(),p.themeReadyCallback.empty(),I.resolve()}if(b=e,R()||!A)o();else{if(!i)return void(b&&(b=e));t=Date.now(),i=!1,n=setInterval((function(){var e=R(),n=!e&&Date.now()-t>A;n&&g.default.log("W0004",b),(e||n)&&o()}),10)}}function R(){if(!b)return!0;var e=b===E;if("resolved"===I.state()&&e)return!0;var t=P();return!(!t||!e)||t===b}function B(e){var t=e?e.split("."):[],n=null;if(y){if(e in y)return e;(0,d.each)(y,(function(e,i){var o=e.split(".");if(!(t[0]&&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 V(e){var t;(function(e){try{e!==_&&(y=null)}catch(e){y=null}_=e})((e=e||{}).context||a.default.getDocument()),_&&((t=(0,s.default)(T,_)).length&&(y={},v=(0,s.default)((0,u.parseHTML)("<link rel=stylesheet>"),_),t.each((function(){var e=(0,s.default)(this,_),t=e.attr("data-theme"),n=e.attr("href"),i="true"===e.attr("data-active");y[t]={url:n,isActive:i}})),t.last().after(v),t.remove()),x=void 0,F(e))}function F(e){if(!arguments.length)return x=x||P();H(k()),"string"==typeof(e=e||{})&&(e={theme:e});var t,n=e._autoInit,i=e.loadCallback;if((x=B(e.theme||x))&&(t=y[x]),i&&p.themeReadyCallback.add(i),t)v.attr("href",y[x].url),(p.themeReadyCallback.has()||"resolved"!==I.state()||e._forceTimeout)&&M(x);else{if(!n)throw g.default.Error("E0021",x);(0,f.hasWindow)()&&M(E),p.themeReadyCallback.fire(),p.themeReadyCallback.empty()}I.done((function(){return L((0,h.originalViewPort)(),x)}))}function L(e,t){w=function(e){var t=[],n=(e=e||F())&&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]+(W(e)?"-"+n[2]:""))),t}(t).join(" "),(0,s.default)(e).addClass(w),function(){var t=(0,f.hasWindow)()&&C.devicePixelRatio;if(t&&!(t<2)){var n=(0,s.default)("<div>");n.css("border",".5px solid transparent"),(0,s.default)("body").append(n),1===(0,i.getOuterHeight)(n)&&((0,s.default)(e).addClass("dx-hairlines"),w+=" dx-hairlines"),n.remove()}}()}function H(e){(0,s.default)(e).removeClass(w)}function N(e){p.themeReadyCallback.add(e)}function z(e,t){return t||(t=x||P()),new RegExp(e).test(t)}function W(e){return z("material",e)}function G(e){return z("generic",e)}function j(e){return z("dark",e)}function q(e){return z("compact",e)}function $(e,t){var n=a.default.getDocument(),i=n.createElement("span");i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",i.style.visibility="hidden",i.style.fontFamily="Arial",i.style.fontSize="250px",i.style.fontWeight=t,i.innerHTML=e,n.body.appendChild(i);var o=i.offsetWidth;i.style.fontFamily="Roboto, RobotoFallback, Arial";var r=i.offsetWidth;return i.parentNode.removeChild(i),o!==r}function K(e,t){return new r.default((function(n){var i=function(){clearInterval(o),clearTimeout(a),n()},o=setInterval((function(){$(e,t)&&i()}),15),a=setTimeout(i,2e3)}))}function U(){if(V({_autoInit:!0,_forceTimeout:!0}),(0,s.default)(T,_).length)throw g.default.Error("E0022")}function Y(){v&&v.attr("href","about:blank"),x=null,b=null,I=new l.Deferred}function Z(e){I.done(e)}function X(e){A=e}(0,f.hasWindow)()?U():S(U),D.add((function(e,t){I.done((function(){H(t),L(e)}))})),o.default.changed.add((function(){V({_autoInit:!0})}));var Q={setDefaultTimeout:X,initialized:Z,resetTheme:Y,ready:N,waitWebFont:K,isWebFontLoaded:$,isCompact:q,isDark:j,isGeneric:G,isMaterial:W,detachCssClasses:H,attachCssClasses:L,current:F,waitForThemeLoad:M,isPendingThemeLoaded:R};t.default=Q},89729:function(e,t,n){var i;t.themeReadyCallback=void 0;var o=new(((i=n(44504))&&i.__esModule?i:{default:i}).default);t.themeReadyCallback=o},93094:function(e,t,n){t.default=void 0;var i=n(58664),o=g(n(68374)),a=g(n(20530)),r=g(n(99393)),s=n(95479),l=n(35922),u=n(13306),d=n(58201),c=n(6415),h=n(20576),f=g(n(4741)),p=g(n(11050));function g(e){return e&&e.__esModule?e:{default:e}}var m={horizontal:{itemMainRatio:"widthRatio",itemCrossRatio:"heightRatio",baseItemMainDimension:"baseItemWidth",baseItemCrossDimension:"baseItemHeight",mainDimension:"width",crossDimension:"height",mainPosition:"left",crossPosition:"top"},vertical:{itemMainRatio:"heightRatio",itemCrossRatio:"widthRatio",baseItemMainDimension:"baseItemHeight",baseItemCrossDimension:"baseItemWidth",mainDimension:"height",crossDimension:"width",mainPosition:"top",crossPosition:"left"}},_=p.default.inherit({_activeStateUnit:".dx-tile",_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{items:null,direction:"horizontal",hoverStateEnabled:!0,showScrollbar:"never",height:500,baseItemWidth:100,baseItemHeight:100,itemMargin:20,activeStateEnabled:!0,indicateLoading:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.default.real().deviceType&&!a.default.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return"dx-tile"},_itemDataKey:function(){return"dxTileData"},_itemContainer:function(){return this._$container},_init:function(){this.callBase(),this.$element().addClass("dx-tileview"),this._initScrollView()},_dataSourceLoadingChangedHandler:function(e){var t=this._scrollView;t&&t.startLoading&&(e&&this.option("indicateLoading")?t.startLoading():t.finishLoading())},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_initScrollView:function(){var e=this.option(),t=e.width,n=e.height,i=e.direction,a=e.showScrollbar;this._scrollView=this._createComponent(this.$element(),f.default,{direction:i,width:t,height:n,scrollByContent:!0,useKeyboard:!1,showScrollbar:a}),this._$container=(0,o.default)(this._scrollView.content()),this._$container.addClass("dx-tileview-wrapper"),this._scrollView.option("onUpdated",this._renderGeometry.bind(this))},_initMarkup:function(){this.callBase(),(0,h.deferRender)(function(){this._cellsPerDimension=1,this._renderGeometry(),this._updateScrollView(),this._fireContentReadyAction()}.bind(this))},_updateScrollView:function(){this._scrollView.option("direction",this.option("direction")),this._scrollView.update(),this._indicateLoadingIfAlreadyStarted()},_indicateLoadingIfAlreadyStarted:function(){this._isDataSourceLoading()&&this._dataSourceLoadingChangedHandler(!0)},_renderGeometry:function(){this._config=m[this.option("direction")];var e,t=this.option("items")||[],n=this._config,o=this.option("itemMargin"),a=Math.max.apply(Math,(0,s.map)(t||[],(function(e){return Math.round(e[n.itemCrossRatio]||1)})));e=d.hasWindow?("width"===n.crossDimension?i.getWidth:i.getHeight)(this.$element()):parseInt(this.$element().get(0).style[n.crossDimension]),this._cellsPerDimension=Math.floor(e/(this.option(n.baseItemCrossDimension)+o)),this._cellsPerDimension=Math.max(this._cellsPerDimension,a),this._cells=[],this._cells.push(new Array(this._cellsPerDimension)),this._arrangeItems(t),this._renderContentSize(n,o)},_renderContentSize:function(e,t){var n=e.mainDimension,o=e.baseItemMainDimension;if((0,d.hasWindow)()){var a=this._cells.length*this.option(o)+(this._cells.length+1)*t,r=("width"===n?i.getWidth:i.getHeight)(this.$element());("width"===n?i.setWidth:i.setHeight)(this._$container,Math.max(a,r))}},_arrangeItems:function(e){var t=this._config,n=t.itemMainRatio,i=t.itemCrossRatio,o=t.mainPosition;this._itemsPositions=[],(0,s.each)(e,function(e,a){var r={};r[n]=a[n]||1,r[i]=a[i]||1,r.index=e,r[n]=r[n]<=0?0:Math.round(r[t.itemMainRatio]),r[i]=r[i]<=0?0:Math.round(r[t.itemCrossRatio]);var s=this._getItemPosition(r);-1===s[o]&&(s[o]=this._cells.push(new Array(this._cellsPerDimension))-1),this._occupyCells(r,s),this._arrangeItem(r,s),this._itemsPositions.push(s)}.bind(this))},_getItemPosition:function(e){var t=this._config,n=t.mainPosition,i=t.crossPosition,o={};o[n]=-1,o[i]=0;for(var a=0;a<this._cells.length;a++){for(var r=0;r<this._cellsPerDimension;r++)if(this._itemFit(a,r,e)){o[n]=a,o[i]=r;break}if(o[n]>-1)break}return o},_itemFit:function(e,t,n){var i=!0,o=this._config,a=n[o.itemMainRatio],r=n[o.itemCrossRatio];if(t+r>this._cellsPerDimension)return!1;for(var s=e;s<e+a;s++)for(var l=t;l<t+r;l++)if(this._cells.length-1<s)this._cells.push(new Array(this._cellsPerDimension));else if(void 0!==this._cells[s][l]){i=!1;break}return i},_occupyCells:function(e,t){for(var n=this._config,i=t[n.mainPosition],o=t[n.crossPosition],a=e[n.itemMainRatio],r=e[n.itemCrossRatio],s=i;s<i+a;s++)for(var l=o;l<o+r;l++)this._cells[s][l]=e.index},_arrangeItem:function(e,t){var n=this._config,o=t[n.mainPosition],a=t[n.crossPosition],r=e[n.itemMainRatio],s=e[n.itemCrossRatio],l=this.option(n.baseItemCrossDimension),u=this.option(n.baseItemMainDimension),d=this.option("itemMargin"),c={display:r<=0||s<=0?"none":""},h=r*u+(r-1)*d,f=s*l+(s-1)*d;if(c[n.mainDimension]=h<0?0:h,c[n.crossDimension]=f<0?0:f,c[n.mainPosition]=o*u+(o+1)*d,c[n.crossPosition]=a*l+(a+1)*d,this.option("rtlEnabled")){var p=(0,i.getWidth)(this._$container),g=this.option("baseItemWidth"),m=t.left,_=m*g,v=(g+d)*e.widthRatio,y=m*d;c.left=p-(_+v+y)}this._itemElements().eq(e.index).css(c)},_moveFocus:function(e){var t="up",n="down",i=this.option("rtlEnabled")?"right":"left",a=this.option("rtlEnabled")?"left":"right",r="pageup",s="pagedown",u="horizontal"===this.option("direction"),d=this._cells,h=(0,o.default)(this.option("focusedElement")).index(),f=this._itemsPositions[h].left,p=this._itemsPositions[h].top,g=(u?d:d[0]).length,m=(u?d[0]:d).length,_=function(e,t){return u?d[e][t]:d[t][e]};switch(e){case r:case t:for(;p>0&&h===_(f,p);)p--;p<0&&(p=0);break;case s:case n:for(;p<m&&h===_(f,p);)p++;p===m&&(p=m-1);break;case a:for(;f<g&&h===_(f,p);)f++;f===g&&(f=g-1);break;case i:for(;f>=0&&h===_(f,p);)f--;f<0&&(f=0);break;default:return void this.callBase.apply(this,arguments)}var v=_(f,p);if((0,l.isDefined)(v)){var y=this._itemElements().eq(v);this.option("focusedElement",(0,c.getPublicElement)(y)),this._scrollToItem(y)}},_scrollToItem:function(e){if(e.length){var t=this._config,n="width"===t.mainDimension?i.getOuterWidth:i.getOuterHeight,o=this.option("itemMargin"),a=e.position()[t.mainPosition],r=n(e),s=a+r,l=this.scrollPosition(),u=n(this.$element());l<=a&&s<=l+u||(l>a?this._scrollView.scrollTo(a-o):this._scrollView.scrollTo(a+r-u+o))}},_optionChanged:function(e){switch(e.name){case"items":this.callBase(e),this._renderGeometry(),this._updateScrollView();break;case"showScrollbar":this._initScrollView();break;case"disabled":this._scrollView.option("disabled",e.value),this.callBase(e);break;case"baseItemWidth":case"baseItemHeight":case"itemMargin":this._renderGeometry();break;case"width":case"height":this.callBase(e),this._renderGeometry(),this._scrollView.option(e.name,e.value),this._updateScrollView();break;case"direction":this._renderGeometry(),this._updateScrollView();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;default:this.callBase(e)}},scrollPosition:function(){return this._scrollView.scrollOffset()[this._config.mainPosition]}});(0,r.default)("dxTileView",_);var v=_;t.default=v,e.exports=t.default,e.exports.default=t.default},37748:function(e,t,n){t.default=void 0;var i=m(n(68374)),o=n(58201),a=m(n(73349)),r=m(n(55994)),s=m(n(24311)),l=n(20576),u=n(35922),d=n(13306),c=n(89386),h=m(n(93786)),f=m(n(99393)),p=m(n(89799)),g=n(75811);function m(e){return e&&e.__esModule?e:{default:e}}var _=(0,o.getWindow)(),v=s.default.add,y="dx-toast-",x=["info","warning","error","success"],b=[],w=null,C={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left",of:null,offset:"0 0"}},S={h:0,v:0};v((function(){r.default.subscribeGlobal(a.default.getDocument(),h.default.down,(function(e){for(var t=b.length-1;t>=0;t--)if(!b[t]._proxiedDocumentDownHandler(e))return}))}));var k=p.default.inherit({_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,to:0}},shading:!1,height:"auto",hideTopOverlayHandler:null,closeOnSwipe:!0,closeOnClick:!1,resizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"android"},options:{closeOnOutsideClick:!0,width:"auto",position:{at:"bottom left",my:"bottom left",offset:"20 -20"},animation:{show:{type:"slide",duration:200,from:{position:{my:"top",at:"bottom",of:_}}},hide:{type:"slide",duration:200,to:{position:{my:"top",at:"bottom",of:_}}}}}},{device:function(e){var t="phone"===e.deviceType,n="android"===e.platform;return t&&n},options:{width:"100vw",position:{at:"bottom center",my:"bottom center",offset:"0 0"}}},{device:function(e){return"phone"===e.deviceType},options:{width:"100vw"}},{device:function(){return(0,g.isMaterial)()},options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=(0,i.default)("<div>").addClass("dx-toast-message").text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),(0,c.inArray)(this.option("type").toLowerCase(),x)>-1&&this.$content().prepend((0,i.default)("<div>").addClass("dx-toast-icon")),this.callBase()},_render:function(){this.callBase(),this.$element().addClass("dx-toast"),this.$wrapper().addClass("dx-toast-wrapper"),this.$content().addClass(y+String(this.option("type")).toLowerCase()),this.$content().addClass("dx-toast-content"),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:l.noop,_toggleCloseEvents:function(e){var t="dx"+e.toLowerCase();r.default.off(this.$content(),t),this.option("closeOn"+e)&&r.default.on(this.$content(),t,this.hide.bind(this))},_posStringToObject:function(){if((0,u.isString)(this.option("position"))){var e=this.option("position").split(" ")[0],t=this.option("position").split(" ")[1];switch(this.option("position",(0,d.extend)({boundaryOffset:S},C[e])),t){case"center":case"left":case"right":this.option("position").at+=" "+t,this.option("position").my+=" "+t}}},_show:function(){return w&&w!==this&&(clearTimeout(w._hideTimeout),w.hide()),w=this,this.callBase.apply(this,arguments).done(function(){clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))}.bind(this))},_hide:function(){return w=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return b},_zIndexInitValue:function(){return this.callBase()+8e3},_dispose:function(){clearTimeout(this._hideTimeout),w=null,this.callBase()},_optionChanged:function(e){switch(e.name){case"type":this.$content().removeClass(y+e.previousValue),this.$content().addClass(y+String(e.value).toLowerCase());break;case"message":this._message&&this._message.text(e.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":break;default:this.callBase(e)}}});(0,f.default)("dxToast",k);var D=k;t.default=D,e.exports=t.default,e.exports.default=t.default},71042:function(e,t,n){t.default=void 0;var i=n(58664),o=p(n(68374)),a=p(n(99393)),r=n(20576),s=n(13306),l=n(89386),u=n(95479),d=p(n(67279)),c=p(n(85861)),h=p(n(997)),f=n(91627);function p(e){return e&&e.__esModule?e:{default:e}}var g={actionSheet:d.default,dropDownMenu:c.default},m="dx-toolbar-item-auto-hide",_="dx-toolbar-item-invisible",v=h.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{menuItemTemplate:"menuItem",submenuType:"dropDownMenu",menuContainer:void 0,overflowMenuVisible:!1})},updateDimensions:function(){this._dimensionChanged()},_dimensionChanged:function(e){"height"!==e&&(this.callBase(),this._menuStrategy.renderMenuItems())},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({actionSheetItem:new f.ChildDefaultTemplate("item")})},_initMarkup:function(){this.callBase(),this._renderMenu()},_postProcessRenderItems:function(){var e=this;this._hideOverflowItems(),this._menuStrategy._updateMenuVisibility(),this.callBase(),(0,r.deferRender)((function(){e._menuStrategy.renderMenuItems()}))},_renderItem:function(e,t,n,i){var o=this.callBase(e,t,n,i);return"auto"===t.locateInMenu&&o.addClass(m),"dxButton"===t.widget&&"inMenu"===t.showText&&o.toggleClass("dx-toolbar-text-auto-hide"),o},_getItemsWidth:function(){return this._getSummaryItemsWidth([this._$beforeSection,this._$centerSection,this._$afterSection])},_hideOverflowItems:function(e){var t=this.$element().find(".dx-toolbar-item-auto-hide");if(t.length){e=e||(0,i.getWidth)(this.$element()),(0,o.default)(t).removeClass(_);for(var n=this._getItemsWidth();t.length&&e<n;){var a=t.eq(-1);n-=(0,i.getOuterWidth)(a),a.addClass(_),t.splice(-1,1)}}},_getMenuItems:function(){var e=this,t=(0,r.grep)(this.option("items")||[],(function(t){return e._isMenuItem(t)})),n=this._itemContainer().children(".dx-toolbar-item-auto-hide."+_).not(".dx-state-invisible");this._restoreItems=this._restoreItems||[];var i=[].slice.call(n).map((function(t){var n=e._getItemData(t),i=(0,o.default)(t).children(),a=i.children();return(0,s.extend)({menuItemTemplate:function(){return e._restoreItems.push({container:i,item:a}),(0,o.default)("<div>").addClass(m).append(a)}},n)}));return(0,l.merge)(i,t)},_getToolbarItems:function(){var e=this;return(0,r.grep)(this.option("items")||[],(function(t){return!e._isMenuItem(t)}))},_renderMenu:function(){var e=this;this._renderMenuStrategy(),(0,r.deferRender)((function(){e._menuStrategy.render()}))},_renderMenuStrategy:function(){var e=this.option("submenuType");this._requireDropDownStrategy()&&(e="dropDownMenu");var t=g[e];this._menuStrategy&&this._menuStrategy.NAME===e||(this._menuStrategy=new t(this))},_requireDropDownStrategy:function(){var e=this.option("items")||[],t=!1;return(0,u.each)(e,(function(e,n){("auto"===n.locateInMenu||"always"===n.locateInMenu&&n.widget)&&(t=!0)})),t},_arrangeItems:function(){if(!this.$element().is(":hidden")){this._$centerSection.css({margin:"0 auto",float:"none"}),(0,u.each)(this._restoreItems||[],(function(e,t){(0,o.default)(t.container).append(t.item)})),this._restoreItems=[];var e=(0,i.getWidth)(this.$element());this._hideOverflowItems(e),this.callBase(e)}},_itemOptionChanged:function(e,t,n){this._isMenuItem(e)?this._menuStrategy.renderMenuItems():this._isToolbarItem(e)?this.callBase(e,t,n):(this.callBase(e,t,n),this._menuStrategy.renderMenuItems()),"location"===t&&this.repaint()},_isMenuItem:function(e){return"menu"===e.location||"always"===e.locateInMenu},_isToolbarItem:function(e){return void 0===e.location||"never"===e.locateInMenu},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"submenuType":this._invalidate();break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"onItemClick":this._changeMenuOption(t,n),this.callBase.apply(this,arguments);break;case"menuContainer":this._changeMenuOption("container",n);break;case"overflowMenuVisible":this._changeMenuOption("dropDownMenu"===this._menuStrategy.NAME?"opened":"visible",n);break;default:this.callBase.apply(this,arguments)}},_changeMenuOption:function(e,t){this._menuStrategy.widgetOption(e,t)}});(0,a.default)("dxToolbar",v);var y=v;t.default=y,e.exports=t.default,e.exports.default=t.default},10329:function(e,t){t.TOOLBAR_CLASS=void 0,t.TOOLBAR_CLASS="dx-toolbar"},997:function(e,t,n){t.default=void 0;var i=n(58664),o=y(n(68374)),a=n(75811),r=n(20576),s=n(35922),l=y(n(99393)),u=n(89386),d=n(13306),c=n(95479),h=n(37518),f=y(n(25970)),p=y(n(48136)),g=n(93280),m=y(n(17381)),_=y(n(87209)),v=n(10329);function y(e){return e&&e.__esModule?e:{default:e}}var x="dx-toolbar-before",b="dx-toolbar-compact",w=".dx-toolbar-label",C="dx-toolbar-multiline",S="text",k=f.default.inherit({compactMode:!1,ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t),"height"in this._userOptions&&m.default.log("W0001",this.NAME,"height","20.1","Functionality associated with this option is not intended for the Toolbar widget.")},_getSynchronizableOptionsForCreateComponent:function(){return this.callBase().filter((function(e){return"disabled"!==e}))},_initTemplates:function(){this.callBase();var e=new g.BindableTemplate(function(e,t,n){(0,s.isPlainObject)(t)?(t.text&&e.text(t.text).wrapInner("<div>"),t.html&&e.html(t.html),"dxDropDownButton"===t.widget&&this.option("useFlatButtons")&&(t.options=t.options||{},t.options.stylingMode=t.options.stylingMode||S),"dxButton"===t.widget&&(this.option("useFlatButtons")&&(t.options=t.options||{},t.options.stylingMode=t.options.stylingMode||S),this.option("useDefaultButtons")&&(t.options=t.options||{},t.options.type=t.options.type||"default"))):e.text(String(t)),this._getTemplate("dx-polymorph-widget").render({container:e,model:n,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:e,menuItem:e})},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1,multiline:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,a.isMaterial)()},options:{useFlatButtons:!0}}])},_itemContainer:function(){return this._$toolbarItemsContainer.find([".dx-toolbar-before",".dx-toolbar-center",".dx-toolbar-after"].join(","))},_itemClass:function(){return"dx-toolbar-item"},_itemDataKey:function(){return"dxToolbarItemDataKey"},_buttonClass:function(){return"dx-toolbar-button"},_dimensionChanged:function(){this._arrangeItems(),this._applyCompactMode()},_initMarkup:function(){this._renderToolbar(),this._renderSections(),this.callBase(),this.setAria("role","toolbar")},_waitParentAnimationFinished:function(){var e=this,t=this.$element();return new p.default((function(n){!function i(){clearTimeout(e._waitParentAnimationTimeout),e._waitParentAnimationTimeout=setTimeout((function(){return e=!0,t.parents().each((function(t,n){if(_.default.isAnimating((0,o.default)(n)))return e=!1,!1})),e&&n(),e||i();var e}),15)}()}))},_render:function(){this.callBase(),this._renderItemsAsync(),(0,a.isMaterial)()&&p.default.all([this._waitParentAnimationFinished(),this._checkWebFontForLabelsLoaded()]).then(this._dimensionChanged.bind(this))},_postProcessRenderItems:function(){this._arrangeItems()},_renderToolbar:function(){this.$element().addClass(v.TOOLBAR_CLASS).toggleClass(C,this.option("multiline")),this._$toolbarItemsContainer=(0,o.default)("<div>").addClass("dx-toolbar-items-container").appendTo(this.$element())},_renderSections:function(){var e=this._$toolbarItemsContainer,t=this;(0,c.each)(["before","center","after"],(function(){var n="dx-toolbar-"+this,i=e.find("."+n);i.length||(t["_$"+this+"Section"]=i=(0,o.default)("<div>").addClass(n).appendTo(e))}))},_checkWebFontForLabelsLoaded:function(){var e=this.$element().find(w),t=[];return e.each((function(e,n){var i=(0,o.default)(n).text(),r=(0,o.default)(n).css("fontWeight");t.push((0,a.waitWebFont)(i,r))})),p.default.all(t)},_arrangeItems:function(e){e=e||(0,i.getWidth)(this.$element()),this._$centerSection.css({margin:"0 auto",float:"none"});var t=(0,h.getBoundingRect)(this._$beforeSection.get(0)),n=(0,h.getBoundingRect)(this._$afterSection.get(0));this._alignCenterSection(t,n,e);var o=this._$toolbarItemsContainer.find(w).eq(0),a=o.parent();if(o.length){var r=t.width?t.width:o.position().left,s=a.hasClass(x)?0:r,l=a.hasClass("dx-toolbar-after")?0:n.width,u=0;a.children().not(w).each((function(){u+=(0,i.getOuterWidth)(this)}));var d=e-u,c=Math.max(d-s-l,0);if(a.hasClass(x))this._alignSection(this._$beforeSection,c);else{var f=(0,i.getOuterWidth)(o)-(0,i.getWidth)(o);o.css("maxWidth",c-f)}}},_alignCenterSection:function(e,t,n){this._alignSection(this._$centerSection,n-e.width-t.width);var i=this.option("rtlEnabled"),o=i?t:e,a=i?e:t,r=(0,h.getBoundingRect)(this._$centerSection.get(0));(o.right>r.left||r.right>a.left)&&this._$centerSection.css({marginLeft:o.width,marginRight:a.width,float:o.width>a.width?"none":"right"})},_alignSection:function(e,t){var n=e.find(w).toArray();t-=this._getCurrentLabelsPaddings(n);var i=this._getCurrentLabelsWidth(n),o=Math.abs(i-t);t<i?(n=n.reverse(),this._alignSectionLabels(n,o,!1)):this._alignSectionLabels(n,o,!0)},_alignSectionLabels:function(e,t,n){for(var i=function(e){return(0,h.getBoundingRect)(e).width},a=0;a<e.length;a++){var r=(0,o.default)(e[a]),s=Math.ceil(i(e[a])),l=void 0;n&&r.css("maxWidth","inherit");var u=Math.ceil(n?i(e[a]):s);if(!(u<t)){l=n?s+t:s-t,r.css("maxWidth",l);break}l=n?u:0,t-=u,r.css("maxWidth",l)}},_applyCompactMode:function(){var e=this.$element();e.removeClass(b),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>(0,i.getWidth)(e)&&e.addClass(b)},_getCurrentLabelsWidth:function(e){var t=0;return e.forEach((function(e,n){t+=(0,i.getOuterWidth)(e)})),t},_getCurrentLabelsPaddings:function(e){var t=0;return e.forEach((function(e,n){t+=(0,i.getOuterWidth)(e)-(0,i.getWidth)(e)})),t},_renderItem:function(e,t,n,i){var o=t.location||"center",a=n||this["_$"+o+"Section"],r=!(!t.text&&!t.html),s=this.callBase(e,t,a,i);return s.toggleClass(this._buttonClass(),!r).toggleClass("dx-toolbar-label",r).addClass(t.cssClass),s},_renderGroupedItems:function(){var e=this;(0,c.each)(this.option("items"),(function(t,n){var i=n.items,a=(0,o.default)("<div>").addClass("dx-toolbar-group"),r=n.location||"center";i&&i.length&&((0,c.each)(i,(function(t,n){e._renderItem(t,n,a,null)})),e._$toolbarItemsContainer.find(".dx-toolbar-"+r).append(a))}))},_renderItems:function(e){this.option("grouped")&&e.length&&e[0].items?this._renderGroupedItems():this.callBase(e)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var e=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===e.length),this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e),this._applyCompactMode()},_renderEmptyMessage:r.noop,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.$element().empty()},_visibilityChanged:function(e){e&&this._arrangeItems()},_isVisible:function(){return(0,i.getWidth)(this.$element())>0&&(0,i.getHeight)(this.$element())>0},_getIndexByItem:function(e){return(0,u.inArray)(e,this._getToolbarItems())},_itemOptionChanged:function(e,t,n){this.callBase.apply(this,[e,t,n]),this._arrangeItems()},_optionChanged:function(e){var t=e.name;switch(t){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"multiline":this.$element().toggleClass(C,e.value);break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:this.callBase.apply(this,arguments)}},_dispose:function(){this.callBase(),clearTimeout(this._waitParentAnimationTimeout)}});(0,l.default)("dxToolbarBase",k);var D=k;t.default=D,e.exports=t.default,e.exports.default=t.default},26564:function(e,t,n){t.default=void 0;var i=s(n(68374)),o=s(n(99393)),a=n(95479),r=n(31583);function s(e){return e&&e.__esModule?e:{default:e}}var l="dx-toolbar-menu-last-section",u=r.ListBase.inherit({_activeStateUnit:".dx-toolbar-menu-action",_initMarkup:function(){this._renderSections(),this.callBase()},_getSections:function(){return this._itemContainer().children()},_itemElements:function(){return this._getSections().children(this._itemSelector())},_renderSections:function(){var e=this,t=this._itemContainer();(0,a.each)(["before","center","after","menu"],(function(){var n="_$"+this+"Section",o=e[n];o||(e[n]=o=(0,i.default)("<div>").addClass("dx-toolbar-menu-section")),o.appendTo(t)}))},_renderItems:function(){this.callBase.apply(this,arguments),this._updateSections()},_updateSections:function(){var e=this.$element().find(".dx-toolbar-menu-section");e.removeClass(l),e.not(":empty").eq(-1).addClass(l)},_renderItem:function(e,t,n,i){var o=t.location||"menu",a=this["_$"+o+"Section"],r=this.callBase(e,t,a,i);return this._getItemTemplateName({itemData:t})&&r.addClass("dx-toolbar-menu-custom"),("menu"===o||"dxButton"===t.widget||"dxButtonGroup"===t.widget||t.isAction)&&r.addClass("dx-toolbar-menu-action"),"dxButton"===t.widget&&r.addClass("dx-toolbar-hidden-button"),"dxButtonGroup"===t.widget&&r.addClass("dx-toolbar-hidden-button-group"),r.addClass(t.cssClass),r},_getItemTemplateName:function(e){var t=this.callBase(e),n=e.itemData;return n&&n.menuItemTemplate||t},_itemClickHandler:function(e,t,n){(0,i.default)(e.target).closest(".dx-toolbar-menu-action").length&&this.callBase(e,t,n)},_clean:function(){this._getSections().empty(),this.callBase()}});(0,o.default)("dxToolbarMenu",u);var d=u;t.default=d,e.exports=t.default,e.exports.default=t.default},67279:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=l(n(62380)),a=n(13306),r=l(n(81476)),s=l(n(63008));function l(e){return e&&e.__esModule?e:{default:e}}var u=o.default.inherit({NAME:"actionSheet",_getMenuItemTemplate:function(){return this._toolbar._getTemplate("actionSheetItem")},render:function(){this._hasVisibleMenuItems()&&(this._renderMenuButton(),this._renderWidget())},_renderMenuButton:function(){var e=this;this._renderMenuButtonContainer(),this._$button=(0,i.default)("<div>").appendTo(this._$menuButtonContainer).addClass("dx-toolbar-menu-button"),this._toolbar._createComponent(this._$button,s.default,{icon:"overflow",onClick:function(){e._toolbar.option("overflowMenuVisible",!e._toolbar.option("overflowMenuVisible"))}})},_menuWidget:function(){return r.default},_menuContainer:function(){return this._toolbar.$element()},_widgetOptions:function(){var e=this;return(0,a.extend)(this.callBase(),{target:this._$button,showTitle:!1,onOptionChanged:function(t){var n=t.name,i=t.value;"visible"===n&&e._toolbar.option("overflowMenuVisible",i)}})}});t.default=u,e.exports=t.default,e.exports.default=t.default},85861:function(e,t,n){t.default=void 0;var i=n(13306),o=u(n(73349)),a=u(n(62380)),r=u(n(26564)),s=u(n(79561)),l=u(n(20530));function u(e){return e&&e.__esModule?e:{default:e}}var d=a.default.inherit({NAME:"dropDownMenu",render:function(){this._hasVisibleMenuItems()&&(this._renderMenuButtonContainer(),this._renderWidget())},renderMenuItems:function(){this._menu||this.render(),this.callBase(),this._menu&&!this._menu.option("items").length&&this._menu.close()},_menuWidget:function(){return s.default},_widgetOptions:function(){var e=this;return(0,i.extend)(this.callBase(),{deferRendering:!0,container:this._toolbar.option("menuContainer"),popupMaxHeight:"android"===l.default.current().platform?o.default.getDocumentElement().clientHeight-20:void 0,menuWidget:r.default,onOptionChanged:function(t){var n=t.name,i=t.value;"opened"===n&&e._toolbar.option("overflowMenuVisible",i),"items"===n&&e._updateMenuVisibility(i)},popupPosition:{at:"bottom right",my:"top right"}})},_updateMenuVisibility:function(e){var t=e||this._getMenuItems(),n=t.length&&this._hasVisibleMenuItems(t);this._toggleMenuVisibility(n)},_toggleMenuVisibility:function(e){this._menuContainer()&&this._menuContainer().toggleClass("dx-state-invisible",!e)},_menuContainer:function(){return this._$menuButtonContainer}});t.default=d,e.exports=t.default,e.exports.default=t.default},62380:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=n(20576),a=n(95479),r=n(47617),s=l(n(38377));function l(e){return e&&e.__esModule?e:{default:e}}var u=s.default.abstract,d=s.default.inherit({ctor:function(e){this._toolbar=e},_widgetOptions:function(){var e=this._toolbar._createActionByOption("onItemClick");return{itemTemplate:this._getMenuItemTemplate.bind(this),onItemClick:function(t){this._toolbar.option("overflowMenuVisible",!1),e(t)}.bind(this)}},_getMenuItemTemplate:function(){return this._toolbar._getTemplateByOption("menuItemTemplate")},_renderWidget:function(){var e=(0,i.default)("<div>").appendTo(this._menuContainer());this._menu=this._toolbar._createComponent(e,this._menuWidget(),this._widgetOptions()),this.renderMenuItems()},_menuContainer:u,_menuWidget:u,_hasVisibleMenuItems:function(e){var t=e||this._toolbar.option("items"),n=!1,i=(0,r.compileGetter)("visible"),o=(0,r.compileGetter)("locateInMenu");return(0,a.each)(t,(function(e,t){var a=i(t,{functionsAsIs:!0}),r=o(t,{functionsAsIs:!0});(!1===a||"auto"!==r&&"always"!==r)&&"menu"!==t.location||(n=!0)})),n},_getMenuItems:function(){return this._toolbar._getMenuItems()},_updateMenuVisibility:o.noop,_renderMenuButtonContainer:function(){var e=this._toolbar._$afterSection;this._$menuButtonContainer=(0,i.default)("<div>").appendTo(e).addClass(this._toolbar._buttonClass()).addClass("dx-toolbar-menu-container")},renderMenuItems:function(){this._menu&&this._menu.option("items",this._getMenuItems())},widgetOption:function(e,t){this._menu&&this._menu.option(e,t)}});t.default=d,e.exports=t.default,e.exports.default=t.default},94920:function(e,t,n){var i;t.default=void 0;var o=((i=n(4731))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},4731:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=u(n(73176)),a=u(n(99393)),r=n(13306),s=u(n(22348)),l=n(35922);function u(e){return e&&e.__esModule?e:{default:e}}var d=s.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{toolbarItems:[],showCloseButton:!1,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,propagateOutsideClick:!0})},_render:function(){this.$element().addClass("dx-tooltip"),this.$wrapper().addClass("dx-tooltip-wrapper"),this.callBase()},_renderContent:function(){this.callBase(),this._contentId="dx-"+new o.default,this.$overlayContent().attr({id:this._contentId,role:"tooltip"}),this._toggleAriaDescription(!0)},_toggleAriaDescription:function(e){var t=(0,i.default)(this.option("target")),n=e?this._contentId:void 0;(0,l.isWindow)(t.get(0))||this.setAria("describedby",n,t)}});(0,a.default)("dxTooltip",d);var c=d;t.default=c,e.exports=t.default,e.exports.default=t.default},63898:function(e,t,n){t.hide=function(){return u?u.hide().done(c).promise():(new r.Deferred).resolve()},t.show=function(e){return c(),function(e){var t=(e=(0,a.extend)({position:"top"},e)).content;delete e.content;var n=(0,i.default)("<div>").html(t).appendTo((0,s.value)());d=function(){n.remove()},u=new o.default(n,e)}(e),u.show()};var i=l(n(68374)),o=l(n(4731)),a=n(13306),r=n(62754),s=n(77695);function l(e){return e&&e.__esModule?e:{default:e}}var u=null,d=null,c=function(){u&&(d(),u=null)}},39661:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=u(n(96452)),a=u(n(99393)),r=n(13306),s=n(58201),l=u(n(87209));function u(e){return e&&e.__esModule?e:{default:e}}var d=o.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass("dx-trackbar"),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=(0,i.default)("<div>").addClass("dx-trackbar-wrapper").appendTo(this.$element())},_renderContainer:function(){this._$bar=(0,i.default)("<div>").addClass("dx-trackbar-container").appendTo(this._$wrapper)},_renderRange:function(){this._$range=(0,i.default)("<div>").addClass("dx-trackbar-range").appendTo(this._$bar)},_renderValue:function(){var e=this.option("value"),t=this.option("min"),n=this.option("max");if(!(t>n)){if(e<t)return this.option("value",t),void(this._currentRatio=0);if(e>n)return this.option("value",n),void(this._currentRatio=1);var i=t===n?0:(e-t)/(n-t);!this._needPreventAnimation&&this._setRangeStyles({width:100*i+"%"}),this.setAria({valuemin:this.option("min"),valuemax:n,valuenow:e}),this._currentRatio=i}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(e){l.default.stop(this._$range),e?!this._needPreventAnimation&&(0,s.hasWindow)()&&l.default.animate(this._$range,{type:"custom",duration:100,to:e}):this._$range.css({width:0})},_optionChanged:function(e){switch(e.name){case"value":this._renderValue(),this.callBase(e);break;case"max":case"min":this._renderValue();break;default:this.callBase(e)}},_dispose:function(){l.default.stop(this._$range),this.callBase()}});(0,a.default)("dxTrackBar",d);var c=d;t.default=c,e.exports=t.default,e.exports.default=t.default},82655:function(e,t,n){var i;t.default=void 0;var o=((i=n(73033))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},14735:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(47766);o.default.registerModule("adaptivity",a.adaptivityModule)},65132:function(e,t,n){t.default=void 0;var i=c(n(99393)),o=n(20576),a=n(35922),r=n(95479),s=n(13306),l=c(n(14390)),u=c(n(27411)),d=n(75811);function c(e){return e&&e.__esModule?e:{default:e}}n(17573),n(90033),n(63333),n(56432),n(43459),n(98637),n(91153),n(95377),n(71247);var h=u.default.callModuleItemsMethod,f="dx-treelist";u.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","editingRowBased","editingFormBased","editingCellBased","editing","grouping","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var p=l.default.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var e=this.callBase();return(0,r.each)(u.default.modules,(function(){(0,a.isFunction)(this.defaultOptions)&&(0,s.extend)(!0,e,this.defaultOptions())})),e},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,d.isMaterial)()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}}])},_init:function(){var e=this;e.callBase(),u.default.processModules(e,u.default),h(e,"init")},_clean:o.noop,_optionChanged:function(e){h(this,"optionChanged",[e]),e.handled||this.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.$element().addClass(f),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;(0,o.deferRender)((function(){e._renderContentImpl()}))},_dispose:function(){this.callBase(),h(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),h(this,"beginUpdate")},endUpdate:function(){h(this,"endUpdate"),this.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.callBase(),(0,a.isDefined)(e)&&this.getController("keyboardNavigation").focus(e)}});p.registerModule=u.default.registerModule.bind(u.default),(0,i.default)("dxTreeList",p);var g=p;t.default=g,e.exports=t.default,e.exports.default=t.default},85158:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(7922);o.default.registerModule("columnChooser",a.columnChooserModule)},38538:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(42182);o.default.registerModule("columnFixing",a.columnFixingModule)},17573:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(2366);o.default.registerModule("columnHeaders",a.columnHeadersModule)},90033:function(e,t,n){t.ColumnsController=void 0;var i,o=n(35922),a=(i=n(27411))&&i.__esModule?i:{default:i},r=n(459),s=r.columnsControllerModule.controllers.columns.inherit({_getFirstItems:function(e){return this.callBase(e).map((function(e){return e.data}))},getFirstDataColumnIndex:function(){for(var e=this.getVisibleColumns(),t=e.length,n=0,i=0;i<=t-1;i++)if(!(0,o.isDefined)(e[i].command)){n=e[i].index;break}return n}});t.ColumnsController=s,a.default.registerModule("columns",{defaultOptions:r.columnsControllerModule.defaultOptions,controllers:{columns:s}})},22319:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(84268);o.default.registerModule("columnsResizingReordering",a.columnsResizingReorderingModule)},98637:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(1826);o.default.registerModule("contextMenu",a.contextMenuModule)},27411:function(e,t,n){t.default=void 0;var i,o=n(13306),a=(i=n(12310))&&i.__esModule?i:{default:i},r=(0,o.extend)({},a.default,{modules:[],foreachNodes:function(e,t,n){for(var i=0;i<e.length;i++)!1!==t(e[i])&&(n||e[i].hasChildren)&&e[i].children.length&&this.foreachNodes(e[i].children,t,n)}});t.default=r,e.exports=t.default,e.exports.default=t.default},63333:function(e,t,n){t.DataController=void 0;var i=n(13306),o=n(62754),a=u(n(27411)),r=n(20576),s=u(n(55516)),l=n(46958);function u(e){return e&&e.__esModule?e:{default:e}}var d=l.dataControllerModule.controllers.data.inherit({_getDataSourceAdapter:function(){return s.default},_getNodeLevel:function(e){for(var t=-1;e.parent;)e.visible&&t++,e=e.parent;return t},_generateDataItem:function(e,t){return{rowType:"data",node:e,key:e.key,data:e.data,isExpanded:this.isRowExpanded(e.key,t),level:this._getNodeLevel(e)}},_loadOnOptionChange:function(){this._dataSource.load()},_isItemEquals:function(e,t){return!(!this.callBase.apply(this,arguments)||e.node&&t.node&&e.node.hasChildren!==t.node.hasChildren||e.level!==t.level||e.isExpanded!==t.isExpanded)},init:function(){this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed"),this.callBase.apply(this,arguments)},keyOf:function(e){var t=this._dataSource;if(t)return t.keyOf(e)},key:function(){var e=this._dataSource;if(e)return e.getKeyExpr()},publicMethods:function(){return this.callBase().concat(["expandRow","collapseRow","isRowExpanded","getRootNode","getNodeByKey","loadDescendants","forEachNode"])},changeRowExpand:function(e){var t=this;if(this._dataSource){var n={key:e},i=this.isRowExpanded(e);if(this.executeAction(i?"onRowCollapsing":"onRowExpanding",n),!n.cancel)return this._dataSource.changeRowExpand(e).done((function(){t.executeAction(i?"onRowCollapsed":"onRowExpanded",n)}))}return(new o.Deferred).resolve()},isRowExpanded:function(e,t){return this._dataSource&&this._dataSource.isRowExpanded(e,t)},expandRow:function(e){return this.isRowExpanded(e)?(new o.Deferred).resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new o.Deferred).resolve()},getRootNode:function(){return this._dataSource&&this._dataSource.getRootNode()},optionChanged:function(e){switch(e.name){case"rootValue":case"parentIdExpr":case"itemsExpr":case"filterMode":case"expandNodesOnFiltering":case"autoExpandAll":case"hasItemsExpr":case"dataStructure":this._columnsController.reset(),this._items=[],this._refreshDataSource(),e.handled=!0;break;case"expandedRowKeys":case"onNodesInitialized":!this._dataSource||this._dataSource._isNodesInitializing||(0,r.equalByValue)(e.value,e.previousValue)||this._loadOnOptionChange(),e.handled=!0;break;case"maxFilterLengthInRequest":e.handled=!0;break;default:this.callBase(e)}},getNodeByKey:function(e){if(this._dataSource)return this._dataSource.getNodeByKey(e)},getChildNodeKeys:function(e){if(this._dataSource)return this._dataSource.getChildNodeKeys(e)},loadDescendants:function(e,t){if(this._dataSource)return this._dataSource.loadDescendants(e,t)},forEachNode:function(){this._dataSource.forEachNode.apply(this,arguments)}});t.DataController=d,a.default.registerModule("data",{defaultOptions:function(){return(0,i.extend)({},l.dataControllerModule.defaultOptions(),{itemsExpr:"items",parentIdExpr:"parentId",rootValue:0,dataStructure:"plain",expandedRowKeys:[],filterMode:"withAncestors",expandNodesOnFiltering:!0,autoExpandAll:!1,onNodesInitialized:null,maxFilterLengthInRequest:1500,paging:{enabled:!1}})},controllers:{data:d}})},55516:function(e,t,n){t.default=void 0;var i=m(n(27411)),o=m(n(96688)),a=n(20576),r=n(35922),s=n(95479),l=n(47617),u=n(13306),d=m(n(13615)),c=n(60637),h=m(n(26562)),f=m(n(96687)),p=m(n(83567)),g=n(62754);function m(e){return e&&e.__esModule?e:{default:e}}var _=m(n(99236)).default.queryByOptions,v=function(e){return"fullBranch"===e.option("filterMode")},y=p.default.inherit({_createKeyGetter:function(){var e=this.getKeyExpr();return(0,l.compileGetter)(e)},_createKeySetter:function(){var e=this.getKeyExpr();return(0,r.isFunction)(e)?e:(0,l.compileSetter)(e)},createParentIdGetter:function(){return(0,l.compileGetter)(this.option("parentIdExpr"))},createParentIdSetter:function(){var e=this.option("parentIdExpr");return(0,r.isFunction)(e)?e:(0,l.compileSetter)(e)},_createItemsGetter:function(){return(0,l.compileGetter)(this.option("itemsExpr"))},_createHasItemsGetter:function(){var e=this.option("hasItemsExpr");return e&&(0,l.compileGetter)(e)},_createHasItemsSetter:function(){var e=this.option("hasItemsExpr");return(0,r.isFunction)(e)?e:e&&(0,l.compileSetter)(e)},_updateIndexByKeyObject:function(e){var t=this;t._indexByKey={},(0,s.each)(e,(function(e,n){t._indexByKey[n.key]=e}))},_calculateHasItems:function(e,t){var n,i=this,o=t.storeLoadOptions.parentIds,a=v(i);return i._hasItemsGetter&&(o||!t.storeLoadOptions.filter||a)&&(n=i._hasItemsGetter(e.data)),void 0===n&&(n=!(i._isChildrenLoaded[e.key]||!t.remoteOperations.filtering||!o&&!a)||(t.loadOptions.filter&&!t.remoteOperations.filtering&&a?e.children.length:e.hasChildren)),!!n},_fillVisibleItemsByNodes:function(e,t,n){for(var i=0;i<e.length;i++)e[i].visible&&n.push(e[i]),(this.isRowExpanded(e[i].key,t)||!e[i].visible)&&e[i].hasChildren&&e[i].children.length&&this._fillVisibleItemsByNodes(e[i].children,t,n)},_convertItemToNode:function(e,t,n){var i=this._keyGetter(e),o=this._parentIdGetter(e),a=n[o=(0,r.isDefined)(o)?o:t]=n[o]||{key:o,children:[]},s=n[i]=n[i]||{key:i,children:[]};return s.data=e,s.parent=a,s},_createNodesByItems:function(e,t){var n,i=this,o=i.option("rootValue"),a={},r=i._nodeByKey={};if(t)for(n=0;n<t.length;n++)a[this._keyGetter(t[n])]=!0;for(n=0;n<e.length;n++){var s=i._convertItemToNode(e[n],o,r);if(void 0===s.key)return;s.visible=!t||!!a[s.key],s.parent&&s.parent.children.push(s)}var l=r[o]||{key:o,children:[]};return l.level=-1,l},_convertDataToPlainStructure:function(e,t,n){var i;if(this._itemsGetter&&!e.isConverted){n=n||[];for(var o=0;o<e.length;o++){var a=(0,c.createObjectWithChanges)(e[o]);void 0===(i=this._keyGetter(a))&&(i=n.length+1,this._keySetter(a,i)),this._parentIdSetter(a,void 0===t?this.option("rootValue"):t),n.push(a);var s=this._itemsGetter(a);if(s&&s.length){this._convertDataToPlainStructure(s,i,n);var l=this.option("itemsExpr");(0,r.isFunction)(l)||delete a[l]}}return n.isConverted=!0,n}return e},_createIdFilter:function(e,t){for(var n=[],i=0;i<t.length;i++)n.push([e,"=",t[i]]);return d.default.combineFilters(n,"or")},_customizeRemoteOperations:function(e,t){this.callBase.apply(this,arguments),e.remoteOperations.paging=!1;var n=!1;this.option("autoExpandAll")&&(e.remoteOperations.sorting=!1,e.remoteOperations.filtering=!1,this._lastLoadOptions&&(!t.filtering||e.storeLoadOptions.filter)||e.isCustomLoading||(n=!0)),e.isCustomLoading||(this._isReload=this._isReload||t.reload,e.cachedStoreData||(this._isChildrenLoaded={},this._isReload&&(this._nodeByKey={})),this.option("expandNodesOnFiltering")&&(t.filtering||this._isReload&&e.storeLoadOptions.filter)&&(e.storeLoadOptions.filter?n=!0:e.collapseVisibleNodes=!0)),e.expandVisibleNodes=n},_getParentIdsToLoad:function(e){for(var t=[],n=0;n<e.length;n++){var i=this.getNodeByKey(e[n]);(!i||i.hasChildren&&!i.children.length)&&t.push(e[n])}return t},_handleCustomizeStoreLoadOptions:function(e){var t=this.option("rootValue"),n=this.option("parentIdExpr"),i=e.storeLoadOptions.parentIds;if(i&&(e.isCustomLoading=!1),this.callBase.apply(this,arguments),e.remoteOperations.filtering&&!e.isCustomLoading&&(v(this)&&e.cachedStoreData||!e.storeLoadOptions.filter)){var o=e.collapseVisibleNodes?[]:this.option("expandedRowKeys");i=[t].concat(o).concat(i||[]);var a=e.data?this._getParentIdsToLoad(i):i;a.length&&(e.cachedPagingData=void 0,e.data=void 0,e.mergeStoreLoadData=!0,e.delay=this.option("loadingTimeout")),e.storeLoadOptions.parentIds=a,e.storeLoadOptions.filter=this._createIdFilter(n,a)}},_generateInfoToLoad:function(e,t){var n,i,o=this,a={},r={},s=[],l=o.option("rootValue");for(i=0;i<e.length;i++)a[n=t?o._parentIdGetter(e[i]):o._keyGetter(e[i])]=!0;for(i=0;i<e.length;i++){n=t?o._keyGetter(e[i]):o._parentIdGetter(e[i]);var u=t?o.isRowExpanded(n):n!==l;a[n]||r[n]||!u||(r[n]=!0,s.push(n))}return{keyMap:r,keys:s}},_loadParentsOrChildren:function(e,t,n){var i,o,a=this,r=this,s=r._generateInfoToLoad(e,n),l=s.keys,d=s.keyMap,c=new g.Deferred,p=t.remoteOperations.filtering,m=r.option("maxFilterLengthInRequest"),_=p?t.storeLoadOptions:t.loadOptions;function v(t){return p&&(r._cachedStoreData=r._cachedStoreData.concat(t)),e.concat(t)}if(!l.length)return c.resolve(e);var y=l.map((function(e){return a.getNodeByKey(e)})).filter((function(e){return e&&e.data}));if(y.length===l.length&&(n&&(y=y.reduce((function(e,t){return e.concat(t.children)}),[])),y.length))return r._loadParentsOrChildren(v(y.map((function(e){return e.data}))),t,n);var x=n?r.option("parentIdExpr"):r.getKeyExpr();i=r._createIdFilter(x,l),encodeURI(JSON.stringify(i)).length>m&&(i=function(e){return d[r._keyGetter(e)]},o=p),_=(0,u.extend)({},_,{filter:o?null:i});var b=t.fullData?new h.default(t.fullData):r._dataSource.store();return r.loadFromStore(_,b).done((function(a){a.length?(o&&(a=(0,f.default)(a).filter(i).toArray()),r._loadParentsOrChildren(v(a),t,n).done(c.resolve).fail(c.reject)):c.resolve(e)})).fail(c.reject),c},_loadParents:function(e,t){return this._loadParentsOrChildren(e,t)},_loadChildrenIfNeed:function(e,t){return v(this)?this._loadParentsOrChildren(e,t,!0):(0,g.when)(e)},_updateHasItemsMap:function(e){var t=e.storeLoadOptions.parentIds;if(t)for(var n=0;n<t.length;n++)this._isChildrenLoaded[t[n]]=!0},_getKeyInfo:function(){return{key:function(){return"key"},keyOf:function(e){return e.key}}},_applyBatch:function(e){var t=this,n=[];e.forEach((function(e){"insert"===e.type?n=n.concat(t._applyInsert(e)):"remove"===e.type?n=n.concat(t._applyRemove(e)):"update"===e.type&&n.push({type:e.type,key:e.key,data:{data:e.data}})})),this.callBase(n)},_setHasItems:function(e,t){var n=this._hasItemsSetter;e.hasChildren=t,n&&e.data&&n(e.data,t)},_applyInsert:function(e){var t=this,n=[],i=t.parentKeyOf(e.data),o=t.getNodeByKey(i);if(o){var a=t.option("rootValue"),r=t._convertItemToNode(e.data,a,t._nodeByKey);if(r.hasChildren=!1,r.level=o.level+1,r.visible=!0,o.children.push(r),t._isChildrenLoaded[r.key]=!0,t._setHasItems(o,!0),(!o.parent||t.isRowExpanded(o.key))&&void 0!==e.index){var s=t.items().indexOf(o)+1;s+=e.index>=0?Math.min(e.index,o.children.length):o.children.length,n.push({type:e.type,data:r,index:s})}}return n},_applyRemove:function(e){var t=[],n=this.getNodeByKey(e.key),i=n&&n.parent;if(i){var o=i.children.indexOf(n);o>=0&&(i.children.splice(o,1),i.children.length||this._setHasItems(i,!1),t.push(e),t=t.concat(this.getChildNodeKeys(e.key).map((function(t){return{type:e.type,key:t}}))))}return t},_handleDataLoaded:function(e){var t=e.data=this._convertDataToPlainStructure(e.data);!e.remoteOperations.filtering&&e.loadOptions.filter&&(e.fullData=_((0,f.default)(e.data),{sort:e.loadOptions&&e.loadOptions.sort}).toArray()),this._updateHasItemsMap(e),this.callBase(e),t.isConverted&&this._cachedStoreData&&(this._cachedStoreData.isConverted=!0)},_fillNodes:function(e,t,n,o){var a=v(this);o=o||0;for(var r=0;r<e.length;r++){var s=e[r],l=!1;this._fillNodes(e[r].children,t,n,o+1),s.level=o,s.hasChildren=this._calculateHasItems(s,t),s.visible&&s.hasChildren&&(a?s.children.filter((function(e){return e.visible})).length?l=!0:s.children.length&&i.default.foreachNodes(s.children,(function(e){e.visible=!0})):l=!0,t.expandVisibleNodes&&l&&n.push(s.key)),(s.visible||s.hasChildren)&&(s.parent.hasChildren=!0)}},_processTreeStructure:function(e,t){var n=e.data,i=e.storeLoadOptions.parentIds,a=[];if(i&&i.length||this._isReload){if(e.fullData&&e.fullData.length>e.data.length&&(n=e.fullData,t=t||e.data),this._rootNode=this._createNodesByItems(n,t),!this._rootNode)return void(e.data=(new g.Deferred).reject(o.default.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,e,a),this._isNodesInitializing=!0,(e.collapseVisibleNodes||a.length)&&this.option("expandedRowKeys",a),this._isReload=!1,this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1}var r=[];this._fillVisibleItemsByNodes(this._rootNode.children,e,r),e.data=r,this._totalItemsCount=r.length},_handleDataLoadedCore:function(e){var t,n=this,i=e.data,o=n.callBase,a=e.storeLoadOptions.filter||e.loadOptions.filter,r=n.option("filterMode"),s=e.storeLoadOptions.parentIds,l=a&&(!s||!s.length)&&"standard"!==r;if(!e.isCustomLoading){if(l){var u=e.data=new g.Deferred;return"matchOnly"===r&&(t=i),n._loadParents(i,e).done((function(i){n._loadChildrenIfNeed(i,e).done((function(i){e.data=i,n._processTreeStructure(e,t),o.call(n,e),u.resolve(e.data)}))})).fail(u.reject)}n._processTreeStructure(e)}n.callBase(e)},_handlePush:function(e){var t=e.changes,n=this._dataSource._reshapeOnPush,i=n&&!!t.length;i&&(this._isReload=!0),this.callBase.apply(this,arguments)},init:function(e,t){this.callBase.apply(this,arguments);var n=this.option("dataStructure");this._keyGetter=this._createKeyGetter(),this._parentIdGetter=this.createParentIdGetter(),this._hasItemsGetter=this._createHasItemsGetter(),this._hasItemsSetter=this._createHasItemsSetter(),"tree"===n&&(this._itemsGetter=this._createItemsGetter(),this._keySetter=this._createKeySetter(),this._parentIdSetter=this.createParentIdSetter()),this._nodeByKey={},this._isChildrenLoaded={},this._totalItemsCount=0,this.createAction("onNodesInitialized")},getKeyExpr:function(){var e=this.store(),t=e&&e.key(),n=this.option("keyExpr");if((0,r.isDefined)(t)&&(0,r.isDefined)(n)&&!(0,a.equalByValue)(t,n))throw o.default.Error("E1044");return t||n||"id"},keyOf:function(e){return this._keyGetter&&this._keyGetter(e)},parentKeyOf:function(e){return this._parentIdGetter&&this._parentIdGetter(e)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount},isRowExpanded:function(e,t){if(t){var n=t.isExpandedByKey;return n||(n=t.isExpandedByKey={},this.option("expandedRowKeys").forEach((function(e){n[e]=!0}))),!!n[e]}return d.default.getIndexByKey(e,this.option("expandedRowKeys"),null)>=0},_changeRowExpandCore:function(e){var t=this.option("expandedRowKeys").slice(),n=d.default.getIndexByKey(e,t,null);n<0?t.push(e):t.splice(n,1),this.option("expandedRowKeys",t)},changeRowExpand:function(e){return this._changeRowExpandCore(e),this._isNodesInitializing?(new g.Deferred).resolve():this.load()},getNodeByKey:function(e){if(this._nodeByKey)return this._nodeByKey[e]},getNodeLeafKeys:function(){var e=this,t=[];return(e._rootNode?[e._rootNode.key]:[]).forEach((function(n){var o=e.getNodeByKey(n);o&&i.default.foreachNodes([o],(function(e){!e.children.length&&t.push(e.key)}))})),t},getChildNodeKeys:function(e){var t=this.getNodeByKey(e),n=[];return t&&i.default.foreachNodes(t.children,(function(e){n.push(e.key)})),n},loadDescendants:function(e,t){var n=this,i=new g.Deferred,o=n.remoteOperations();if(e=(0,r.isDefined)(e)?Array.isArray(e)?e:[e]:n.getNodeLeafKeys(),!o.filtering||!e.length)return i.resolve();var a=n._dataSource._createStoreLoadOptions();return a.parentIds=e,n.load(a).done((function(){if(!t){var o=function(e,t){var n=[];return t.forEach((function(t){var i=e.getNodeByKey(t);i&&i.children.forEach((function(e){n.push(e.key)}))})),n}(n,e);if(o.length)return void n.loadDescendants(o,t).done(i.resolve).fail(i.reject)}i.resolve()})).fail(i.reject),i.promise()},forEachNode:function(){var e,t=[];if(1===arguments.length){e=arguments[0];var n=this.getRootNode();t=n&&n.children||[]}else 2===arguments.length&&(e=arguments[1],t=arguments[0],t=Array.isArray(t)?t:[t]);i.default.foreachNodes(t,e)}}),x={extend:function(e){y=y.inherit(e)},create:function(e){return new y(e)}};t.default=x,e.exports=t.default,e.exports.default=t.default},32297:function(e,t,n){n(92497);var i=h(n(68374)),o=h(n(96688)),a=n(35922),r=n(13306),s=n(62754),l=h(n(28109)),u=h(n(27411)),d=h(n(13615)),c=n(6447);function h(e){return e&&e.__esModule?e:{default:e}}var f="insert",p=c.editingModule.controllers.editing.inherit({_generateNewItem:function(e){var t=this.callBase(e);return t.data={key:e},t.children=[],t.level=0,t.parentKey=this.option("rootValue"),t},_isProcessedItem:function(){return!0},_setInsertAfterOrBeforeKey:function(e,t){void 0!==t&&t!==this.option("rootValue")?e.insertAfterKey=t:this.callBase.apply(this,arguments)},_getLoadedRowIndex:function(e,t){var n=this.getController("data"),i=n.dataSource(),o=null==i?void 0:i.parentKeyOf(t.data);if(void 0!==o&&o!==this.option("rootValue")){var a=d.default.getIndexByKey(o,e);return a>=0&&this._dataController.isRowExpanded(o)?a+1:-1}return this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var e=this.callBase.apply(this,arguments),t=this.option("editing");return e||t.allowAdding},_isDefaultButtonVisible:function(e,t){var n=this.callBase.apply(this,arguments),i=t.row;return"add"===e.name?this.allowAdding(t)&&i.rowIndex!==this._getVisibleEditRowIndex()&&!(i.removed||i.isNewRow):n},_getEditingButtons:function(e){var t=this.callBase.apply(this,arguments);return e.column.buttons||t.unshift(this._getButtonConfig("add",e)),t},_beforeSaveEditData:function(e){var t=this._dataController,n=this.callBase.apply(this,arguments);if(e&&e.type!==f){var i=null==t?void 0:t.store(),r=null==i?void 0:i.key();if(!(0,a.isDefined)(r))throw o.default.Error("E1045")}return n},addRowByRowIndex:function(e){var t=this.getController("data").getVisibleRows()[e];return this.addRow(t?t.key:void 0)},addRow:function(e){return void 0===e&&(e=this.option("rootValue")),this.callBase.call(this,e)},_addRowCore:function(e,t,n){var i=this,o=this.callBase,a=this.option("rootValue"),r=this.getController("data"),l=r.dataSource().createParentIdGetter();if(void 0!==(t=l(e))&&t!==a&&!r.isRowExpanded(t)){var u=new s.Deferred;return r.expandRow(t).done((function(){setTimeout((function(){o.call(i,e,t,n).done(u.resolve).fail(u.reject)}))})).fail(u.reject),u.promise()}return o.call(this,e,t,n)},_initNewRow:function(e,t){var n=this.getController("data"),i=n.dataSource(),o=i.createParentIdSetter();return o(e.data,t),this.callBase.apply(this,arguments)},allowAdding:function(e){return this._allowEditAction("allowAdding",e)},_needToCloseEditableCell:function(e){return this.callBase.apply(this,arguments)||e.closest(".dx-treelist-icon-container").length&&this.isEditing()},getButtonLocalizationNames:function(){var e=this.callBase.apply(this);return e.add="dxTreeList-editingAddRowToNode",e}}),g=c.editingModule.extenders.views.rowsView._rowClick,m=c.editingModule.extenders.views.rowsView._rowDblClick,_=function(e){var t=(0,i.default)(e.event.target),n="dxdblclick"===e.event.type?m:g;return!t.closest(".dx-select-checkbox").length&&!v.call(this,e,n)};function v(e,t){return!(0,i.default)(e.event.target).closest(".dx-treelist-icon-container").length&&(t.call(this,e),!0)}var y=(0,r.extend)({},c.editingModule.extenders.views.rowsView,{_renderCellCommandContent:function(e,t){var n=this._editingController,i=t.row&&n.isEditRow(t.row.rowIndex),o=t.isEditing||i;return!o&&this.callBase.apply(this,arguments)},_rowClick:function(e){_.call(this,e)&&this.callBase.apply(this,arguments)},_rowDblClick:function(e){_.call(this,e)&&this.callBase.apply(this,arguments)}});u.default.registerModule("editing",{defaultOptions:function(){return(0,r.extend)(!0,c.editingModule.defaultOptions(),{editing:{texts:{addRowToNode:l.default.format("dxTreeList-editingAddRowToNode")}}})},controllers:{editing:p},extenders:{controllers:(0,r.extend)(!0,{},c.editingModule.extenders.controllers,{data:{changeRowExpand:function(){return this._editingController.refresh(),this.callBase.apply(this,arguments)}}}),views:{rowsView:y,headerPanel:c.editingModule.extenders.views.headerPanel}}})},62040:function(e,t,n){var i=a(n(27411)),o=a(n(68004));function a(e){return e&&e.__esModule?e:{default:e}}i.default.registerModule("editingCellBased",o.default)},90584:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(42252);o.default.registerModule("editingFormBased",a.editingFormBasedModule)},15017:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(27966);o.default.registerModule("editingRowBased",a.editingRowBasedModule)},92497:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(45630);o.default.registerModule("editorFactory",a.editorFactoryModule)},91153:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(49743);o.default.registerModule("errorHandling",a.errorHandlingModule)},1447:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(82970);o.default.registerModule("filterBuilder",a.filterBuilderModule)},32674:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(25065);o.default.registerModule("filterPanel",a.filterPanelModule)},18037:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(51711);o.default.registerModule("filterRow",a.filterRowModule)},46234:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(11276);o.default.registerModule("filterSync",a.filterSyncModule)},1889:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(13306),r=n(62754),s=n(8783);o.default.registerModule("focus",(0,a.extend)(!0,{},s.focusModule,{extenders:{controllers:{data:{changeRowExpand:function(e){return this.option("focusedRowEnabled")&&this.isRowExpanded(e)&&this._isFocusedRowInside(e)&&this.option("focusedRowKey",e),this.callBase.apply(this,arguments)},_isFocusedRowInside:function(e){for(var t=this.option("focusedRowKey"),n=this.getRowIndexByKey(t),i=n>=0&&this.getVisibleRows()[n],o=i&&i.node.parent;o;){if(o.key===e)return!0;o=o.parent}return!1},getParentKey:function(e){var t=this._dataSource,n=this.getNodeByKey(e),i=new r.Deferred;return n?i.resolve(n.parent?n.parent.key:void 0):t.load({filter:[t.getKeyExpr(),"=",e]}).done((function(e){var n=e[0];n?i.resolve(t.parentKeyOf(n)):i.reject()})).fail(i.reject),i.promise()},expandAscendants:function(e){var t=this,n=t._dataSource,i=new r.Deferred;return t.getParentKey(e).done((function(e){n&&void 0!==e&&e!==t.option("rootValue")?(n._isNodesInitializing=!0,t.expandRow(e),n._isNodesInitializing=!1,t.expandAscendants(e).done(i.resolve).fail(i.reject)):i.resolve()})).fail(i.reject),i.promise()},getPageIndexByKey:function(e){var t=this,n=t._dataSource,i=new r.Deferred;return t.expandAscendants(e).done((function(){n.load({parentIds:[]}).done((function(n){var o,a,r=(o=function(n){return t.keyOf(n.data)===e},a=-1,n.forEach((function(e,t){o(e)&&(a=t)})),a),s=-1;r>=0&&(s=Math.floor(r/t.pageSize())),i.resolve(s)})).fail(i.reject)})).fail(i.reject),i.promise()}}}}}))},95377:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(75775),r=a.gridViewModule.views.gridView.inherit({_getWidgetAriaLabel:function(){return"dxTreeList-ariaTreeList"},_getTableRoleName:function(){return"treegrid"}});o.default.registerModule("gridView",{defaultOptions:a.gridViewModule.defaultOptions,controllers:a.gridViewModule.controllers,views:{gridView:r},extenders:{controllers:{resizing:{_toggleBestFitMode:function(e){this.callBase(e),this._rowsView.getTableElement().find(".dx-treelist-cell-expandable").toggleClass(this.addWidgetPrefix("best-fit"),e)}}}}})},86925:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(82228);o.default.registerModule("headerFilter",a.headerFilterModule)},71247:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(28935);o.default.registerModule("headerPanel",a.headerPanelModule)},73033:function(e,t,n){t.default=void 0;var i,o=(i=n(65132))&&i.__esModule?i:{default:i};n(68680),n(85158),n(19530),n(32297),n(15017),n(90584),n(62040),n(74429),n(89156),n(18037),n(86925),n(46234),n(1447),n(32674),n(114),n(22319),n(38538),n(14735),n(96200),n(98490),n(72581),n(61877),n(1889),n(80010);var a=o.default;t.default=a,e.exports=t.default,e.exports.default=t.default},72581:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(71402),r=n(13306);o.default.registerModule("keyboardNavigation",(0,r.extend)(!0,{},a.keyboardNavigationModule,{extenders:{controllers:{keyboardNavigation:{_leftRightKeysHandler:function(e,t){var n=this.getVisibleRowIndex(),i=this._dataController;if(!e.ctrl)return this.callBase.apply(this,arguments);var o=this._getDirectionCodeByKey(e.keyName),a=i.getKeyByRowIndex(n);"nextInRow"===o?i.expandRow(a):i.collapseRow(a)}}}}}))},19530:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(40214),r=n(13306);o.default.registerModule("masterDetail",(0,r.extend)(!0,{},a.masterDetailModule,{extenders:{controllers:{data:{isRowExpanded:function(){return this.callBase.apply(this,arguments)},_processItems:function(){return this.callBase.apply(this,arguments)},_processDataItem:function(){return this.callBase.apply(this,arguments)}}}}}))},114:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(23316);o.default.registerModule("pager",a.pagerModule)},80010:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(82213);o.default.registerModule("rowDragging",a.rowDraggingModule)},43459:function(e,t,n){t.RowsView=void 0;var i=r(n(68374)),o=r(n(27411)),a=n(71211);function r(e){return e&&e.__esModule?e:{default:e}}var s="dx-treelist-text-content",l=a.rowsModule.views.rowsView.inherit({_renderIconContainer:function(e,t){var n=this,o=(0,i.default)("<div>").addClass("dx-treelist-icon-container").appendTo(e);return t.watch&&t.watch((function(){return[t.row.level,t.row.isExpanded,t.row.node.hasChildren]}),(function(){o.empty(),n._renderIcons(o,t)})),e.addClass("dx-treelist-cell-expandable"),this._renderIcons(o,t)},_renderIcons:function(e,t){for(var n,o,a,r=t.row,s=r.level,l=0;l<=s;l++)e.append((n=l===s&&r.node.hasChildren,o=r.isExpanded,a=void 0,a=(0,i.default)("<div>").addClass("dx-treelist-empty-space"),n&&a.toggleClass("dx-treelist-expanded",o).toggleClass("dx-treelist-collapsed",!o).append((0,i.default)("<span>")),a));return e},_renderCellCommandContent:function(e,t){return this._renderIconContainer(e,t),!0},_processTemplate:function(e,t){var n=this,o=this.callBase(e),a=n._columnsController.getFirstDataColumnIndex();return o&&t.column.index===a?{render:function(e){var t=e.container;n._renderCellCommandContent(t,e.model)&&(e.container=function(e){return(0,i.default)("<div>").addClass(s).appendTo(e)}(t)),o.render(e)}}:o},_updateCell:function(e,t){e=e.hasClass(s)?e.parent():e,this.callBase(e,t)},_rowClick:function(e){var t=this._dataController,n=(0,i.default)(e.event.target),o=this.isExpandIcon(n),a=t&&t.items()[e.rowIndex];o&&a&&t.changeRowExpand(a.key),this.callBase(e)},_createRow:function(e){var t=e&&e.node,n=this.callBase.apply(this,arguments);return t&&(this.setAria("level",e.level+1,n),t.hasChildren&&this.setAria("expanded",e.isExpanded,n)),n},isExpandIcon:function(e){return!!e.closest(".dx-treelist-expanded, .dx-treelist-collapsed").length}});t.RowsView=l,o.default.registerModule("rows",{defaultOptions:a.rowsModule.defaultOptions,views:{rowsView:l}})},98490:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(54697);o.default.registerModule("search",a.searchModule)},96200:function(e,t,n){var i=u(n(68374)),o=u(n(27411)),a=n(20576),r=n(80040),s=n(13306),l=n(35922);function u(e){return e&&e.__esModule?e:{default:e}}var d=r.selectionModule.extenders.views.rowsView._rowClick,c=r.selectionModule.extenders.controllers.data._handleDataChanged,h=function(e,t){return!!e.filter((function(e){return e===t})).length};o.default.registerModule("selection",(0,s.extend)(!0,{},r.selectionModule,{defaultOptions:function(){return(0,s.extend)(!0,r.selectionModule.defaultOptions(),{selection:{showCheckBoxesMode:"always",recursive:!1}})},extenders:{controllers:{data:{_handleDataChanged:function(e){var t=this.getController("selection"),n=t.isRecursiveSelection();!n||e&&"updateSelectionState"===e.changeType||t.updateSelectionState({selectedItemKeys:this.option("selectedRowKeys")}),c.apply(this,arguments)},loadDescendants:function(){var e=this,t=e.callBase.apply(e,arguments),n=e.getController("selection"),i=n.isRecursiveSelection();return i&&t.done((function(){n.updateSelectionState({selectedItemKeys:e.option("selectedRowKeys")})})),t}},selection:{init:function(){this.callBase.apply(this,arguments),this._selectionStateByKey={}},_getSelectionConfig:function(){var e=arguments,t=this,n=this.callBase.apply(this,arguments),i=n.plainItems;return n.plainItems=function(n){return n?t._dataController.getCachedStoreData()||[]:i.apply(t,e).map((function(e){return e.data}))},n.isItemSelected=function(e){var n=t._dataController.keyOf(e);return t.isRowSelected(n)},n.isSelectableItem=function(){return!0},n.getItemData=function(e){return e},n},renderSelectCheckBoxContainer:function(e,t){var n=this.component.getView("rowsView");e.addClass("dx-cell-focus-disabled");var i=n._renderSelectCheckBox(e,{value:t.row.isSelected,row:t.row,column:t.column});n._attachCheckBoxClickEvent(i)},_updateSelectColumn:a.noop,_getSelectAllNodeKeys:function(){var e=this.component,t=e.getRootNode(),n={},i=[],a=this.isRecursiveSelection();return t&&o.default.foreachNodes(t.children,(function(t){return void 0!==t.key&&(t.visible||a)&&i.push(t.key),!t.visible||!a&&e.isRowExpanded(t.key,n)})),i},isSelectAll:function(){if(0===(this.option("selectedRowKeys")||[]).length)return!1;var e=this.component,t=this._getSelectAllNodeKeys(),n=this.isRecursiveSelection(),i=!1,o=t.filter((function(t){var o=e.isRowSelected(t,n);return void 0===o&&(i=!0),o}));return o.length?o.length===t.length||void 0:!!i&&void 0},selectAll:function(){var e=this,t=this._getSelectAllNodeKeys().filter((function(t){return!e.isRowSelected(t)}));return this.focusedItemIndex(-1),this.selectRows(t,!0)},deselectAll:function(){var e=this._getSelectAllNodeKeys();return this.focusedItemIndex(-1),this.deselectRows(e)},selectedItemKeys:function(e,t,n,i){var o=this,r=o.option("selectedRowKeys"),s=this.isRecursiveSelection()&&o._normalizeSelectionArgs({keys:(0,l.isDefined)(e)?e:[]},t,!n);return s&&!(0,a.equalByValue)(s.selectedRowKeys,r)?(o._isSelectionNormalizing=!0,this.callBase(s.selectedRowKeys,!1,!1,!1).always((function(){o._isSelectionNormalizing=!1})).done((function(e){s.selectedRowsData=e,o._fireSelectionChanged(s)}))):this.callBase(e,t,n,i)},changeItemSelection:function(e,t){var n=this.isRecursiveSelection();if(n&&!t.shift){var i=this._dataController.getKeyByRowIndex(e);return this.selectedItemKeys(i,!0,this.isRowSelected(i))}return this.callBase.apply(this,arguments)},_updateParentSelectionState:function(e,t){var n=this,i=t,o=e.parent;o&&(o.children.length>1&&(!1===t?i=!!o.children.some((function(e,t,i){return n._selectionStateByKey[e.key]}))&&void 0:!0===t&&(i=!o.children.some((function(e){return!n._selectionStateByKey[e.key]}))||void 0)),this._selectionStateByKey[o.key]=i,o.parent&&o.parent.level>=0&&this._updateParentSelectionState(o,i))},_updateChildrenSelectionState:function(e,t){var n=this,i=e.children;i&&i.forEach((function(e){n._selectionStateByKey[e.key]=t,e.children.length>0&&n._updateChildrenSelectionState(e,t)}))},_updateSelectionStateCore:function(e,t){for(var n=this._dataController,i=0;i<e.length;i++){this._selectionStateByKey[e[i]]=t;var o=n.getNodeByKey(e[i]);o&&(this._updateParentSelectionState(o,t),this._updateChildrenSelectionState(o,t))}},_getSelectedParentKeys:function(e,t,n){for(var i,o=this._dataController.getNodeByKey(e),a=o&&o.parent,r=[];a&&a.level>=0;){if(r.unshift(a.key),n?!h(t,a.key)&&this.isRowSelected(a.key):t.indexOf(a.key)>=0){i=a,r=this._getSelectedParentKeys(i.key,t,n).concat(r);break}if(n)break;a=a.parent}return i&&r||[]},_getSelectedChildKeys:function(e,t){var n=this,i=[],a=this._dataController.getNodeByKey(e);return a&&o.default.foreachNodes(a.children,(function(e){var o=t.indexOf(e.key);return o<0&&i.push(e.key),o>0||o<0&&void 0===n._selectionStateByKey[e.key]})),i},_normalizeParentKeys:function(e,t){var n=[e],i=this._getSelectedParentKeys(e,t.selectedRowKeys);if(i.length){(n=n.concat(i)).forEach((function(e){var n=t.selectedRowKeys.indexOf(e);n>=0&&t.selectedRowKeys.splice(n,1)}));var o=this._getSelectedChildKeys(i[0],n);t.selectedRowKeys=t.selectedRowKeys.concat(o)}},_normalizeChildrenKeys:function(e,t){var n=this,i=this._dataController.getNodeByKey(e);i&&i.children.forEach((function(e){var i=t.selectedRowKeys.indexOf(e.key);i>=0&&t.selectedRowKeys.splice(i,1),n._normalizeChildrenKeys(e.key,t)}))},_normalizeSelectedRowKeysCore:function(e,t,n,i){var o=this;e.forEach((function(e){if(!n||o.isRowSelected(e)!==i){o._normalizeChildrenKeys(e,t);var a=t.selectedRowKeys.indexOf(e);i?(a<0&&t.selectedRowKeys.push(e),t.currentSelectedRowKeys.push(e)):(a>=0&&t.selectedRowKeys.splice(a,1),t.currentDeselectedRowKeys.push(e),o._normalizeParentKeys(e,t))}}))},_normalizeSelectionArgs:function(e,t,n){var i,o=Array.isArray(e.keys)?e.keys:[e.keys],a=this.option("selectedRowKeys")||[];return o.length&&(i={currentSelectedRowKeys:[],currentDeselectedRowKeys:[],selectedRowKeys:t?a.slice(0):[]},this._normalizeSelectedRowKeysCore(o,i,t,n)),i},_updateSelectedItems:function(e){this.updateSelectionState(e),this.callBase(e)},_fireSelectionChanged:function(){this._isSelectionNormalizing||this.callBase.apply(this,arguments)},_isModeLeavesOnly:function(e){return"leavesOnly"===e},_removeDuplicatedKeys:function(e){var t=[],n={};return e.forEach((function(e){n[e]||(n[e]=!0,t.push(e))})),t},_getAllChildKeys:function(e){var t=[],n=this._dataController.getNodeByKey(e);return n&&o.default.foreachNodes(n.children,(function(e){t.push(e.key)}),!0),t},_getAllSelectedRowKeys:function(e){var t=this,n=[];return e.forEach((function(e){var i=t._getSelectedParentKeys(e,[],!0),o=t._getAllChildKeys(e);n.push.apply(n,i.concat([e],o))})),n=this._removeDuplicatedKeys(n)},_getParentSelectedRowKeys:function(e){var t=this,n=[];return e.forEach((function(i){!t._getSelectedParentKeys(i,e).length&&n.push(i)})),n},_getLeafSelectedRowKeys:function(e){var t=[],n=this._dataController;return e.forEach((function(e){var i=n.getNodeByKey(e);i&&!i.hasChildren&&t.push(e)})),t},isRecursiveSelection:function(){var e=this.option("selection.mode"),t=this.option("selection.recursive");return"multiple"===e&&t},updateSelectionState:function(e){var t=e.removedItemKeys||[],n=e.selectedItemKeys||[];this.isRecursiveSelection()&&(this._updateSelectionStateCore(t,!1),this._updateSelectionStateCore(n,!0))},isRowSelected:function(e,t){var n,i=this.callBase.apply(this,arguments);return t=null!==(n=t)&&void 0!==n?n:this.isRecursiveSelection(),!i&&t?e in this._selectionStateByKey&&this._selectionStateByKey[e]:i},getSelectedRowKeys:function(e){var t=this;if(!t._dataController)return[];var n=t.callBase.apply(t,arguments);return e&&(this.isRecursiveSelection()&&(n=this._getAllSelectedRowKeys(n)),"all"!==e&&("excludeRecursive"===e?n=t._getParentSelectedRowKeys(n):t._isModeLeavesOnly(e)&&(n=t._getLeafSelectedRowKeys(n)))),n},getSelectedRowsData:function(e){var t=this._dataController,n=this.getSelectedRowKeys(e)||[],i=[];return n.forEach((function(e){var n=t.getNodeByKey(e);n&&i.push(n.data)})),i},refresh:function(){return this._selectionStateByKey={},this.callBase.apply(this,arguments)}}},views:{columnHeadersView:{_processTemplate:function(e,t){var n=this,i=this.callBase(e,t),o=n._columnsController.getFirstDataColumnIndex();return i&&"header"===t.rowType&&t.column.index===o?{render:function(e){"multiple"===n.option("selection.mode")&&n.renderSelectAll(e.container,e.model),i.render(e)}}:i},renderSelectAll:function(e,t){e.addClass("dx-treelist-select-all"),this._renderSelectAllCheckBox(e)},_isSortableElement:function(e){return this.callBase(e)&&!e.closest(".dx-select-checkbox").length}},rowsView:{_renderIcons:function(e,t){return this.callBase.apply(this,arguments),t.row.isNewRow||"multiple"!==this.option("selection.mode")||this.getController("selection").renderSelectCheckBoxContainer(e,t),e},_rowClick:function(e){var t=(0,i.default)(e.event.target);this.isExpandIcon(t)?this.callBase.apply(this,arguments):d.apply(this,arguments)}}}}}))},56432:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(35846);o.default.registerModule("sorting",a.sortingModule)},68680:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(13306),r=n(10093),s=r.stateStoringModule.extenders.controllers.stateStoring.applyState;o.default.registerModule("stateStoring",(0,a.extend)(!0,{},r.stateStoringModule,{extenders:{controllers:{stateStoring:{applyState:function(e){s.apply(this,arguments),Object.prototype.hasOwnProperty.call(e,"expandedRowKeys")&&this.option("expandedRowKeys",e.expandedRowKeys&&e.expandedRowKeys.slice())}},data:{getUserState:function(){var e=this.callBase.apply(this,arguments);return this.option("autoExpandAll")||(e.expandedRowKeys=this.option("expandedRowKeys")),e}}}}}))},74429:function(e,t,n){var i,o=n(13306),a=(i=n(27411))&&i.__esModule?i:{default:i},r=n(33562),s=(0,o.extend)({},r.validatingModule.extenders.controllers.editing);delete s.processItems,delete s.processDataItem,a.default.registerModule("validating",{defaultOptions:r.validatingModule.defaultOptions,controllers:r.validatingModule.controllers,extenders:{controllers:{editing:s,editorFactory:r.validatingModule.extenders.controllers.editorFactory},views:r.validatingModule.extenders.views}})},61877:function(e,t,n){var i,o=(i=n(27411))&&i.__esModule?i:{default:i},a=n(55464);o.default.registerModule("virtualColumns",a.virtualColumnsModule)},89156:function(e,t,n){var i=s(n(27411)),o=s(n(55516)),a=n(8831),r=n(13306);function s(e){return e&&e.__esModule?e:{default:e}}var l=a.virtualScrollingModule.defaultOptions,u=a.virtualScrollingModule.extenders.controllers.data,d=a.virtualScrollingModule.extenders.dataSourceAdapter;a.virtualScrollingModule.extenders.controllers.data=(0,r.extend)({},u,{_loadOnOptionChange:function(){var e=this._dataSource&&this._dataSource._virtualScrollController;e&&e.reset(),this.callBase()}}),a.virtualScrollingModule.extenders.dataSourceAdapter=(0,r.extend)({},d,{changeRowExpand:function(){var e=this;return this.callBase.apply(this,arguments).done((function(){var t=e.getViewportItemIndex();t>=0&&e.setViewportItemIndex(t)}))}}),i.default.registerModule("virtualScrolling",(0,r.extend)({},a.virtualScrollingModule,{defaultOptions:function(){return(0,r.extend)(!0,l(),{scrolling:{mode:"virtual"}})}})),o.default.extend(a.virtualScrollingModule.extenders.dataSourceAdapter)},30254:function(e,t,n){var i;t.default=void 0;var o=((i=n(76986))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},60903:function(e,t,n){t.default=void 0;var i=n(58664),o=T(n(68374)),a=T(n(73349)),r=T(n(55994)),s=T(n(28109)),l=n(95429),u=n(20576),d=n(58201),c=n(35922),h=n(13306),f=n(95479),p=n(6415),g=T(n(18859)),m=T(n(65810)),_=n(39611),v=T(n(93786)),y=n(85272),x=T(n(87209)),b=T(n(41183)),w=T(n(2492)),C=n(62754),S=T(n(96688)),k=n(60137),D=n(1515),I=n(23842);function T(e){return e&&e.__esModule?e:{default:e}}var E="dx-treeview",A="".concat(E,"-node"),O="".concat(A,"-container"),P="".concat(A,"-loadindicator"),M="".concat(A,"-container-opened"),R="".concat(A,"-is-leaf"),B="".concat(E,"-item"),V="".concat(B,"-with-checkbox"),F="".concat(B,"-without-checkbox"),L="".concat(B,"-data"),H="".concat(E,"-toggle-item-visibility"),N="".concat(E,"-loadindicator"),z="".concat(E,"-loadindicator-wrapper"),W="".concat(E,"-toggle-item-visibility-opened"),G="".concat(E,"-select-all-item"),j="dx-state-invisible",q="dx-state-disabled",$="dxTreeView_expand",K="data-item-id",U=m.default.inherit({_supportedKeys:function(e){var t=this,n=function(e){var n=(0,o.default)(t.option("focusedElement"));n.length&&(e.target=n,e.currentTarget=n,t._itemClickHandler(e,n.children("."+B)),t._getEventNameByOption(t.option("expandEvent"))===(0,_.addNamespace)(l.name,$)&&t._expandEventHandler(e))},i=function(e){e.preventDefault();var n=(0,o.default)(t.option("focusedElement")),i=t._getCheckBoxInstance(n);if(!i.option("disabled")){var a=i.option("value");t._updateItemSelection(!a,n.find("."+B).get(0),!0)}},a=function(e,t){if(this.option("expandAllEnabled")){t.preventDefault();var n=(0,o.default)(this.option("focusedElement"));if(n.length){var i=this._getItemData(n.find(".".concat(B)));this._toggleExpandedNestedItems([i],e)}}};return(0,h.extend)(this.callBase(),{enter:this._showCheckboxes()?i:n,space:this._showCheckboxes()?i:n,asterisk:a.bind(this,!0),minus:a.bind(this,!1)})},_toggleExpandedNestedItems:function(e,t){if(e)for(var n=0,i=e.length;n<i;n++){var o=e[n],a=this._dataAdapter.getNodeByItem(o);this._toggleExpandedState(a,t),this._toggleExpandedNestedItems(o.items,t)}},_getNodeElement:function(e,t){var n=this._encodeString(e.internalFields.key);if(t)return t.$nodeByKey||(t.$nodeByKey={},this.$element().find(".".concat(A)).each((function(){var e=(0,o.default)(this),n=e.attr(K);t.$nodeByKey[n]=e}))),t.$nodeByKey[n]||(0,o.default)();var i=this.$element().get(0).querySelector("[".concat(K,'="').concat(n,'"]'));return(0,o.default)(i)},_activeStateUnit:"."+B,_widgetClass:function(){return E},_getDefaultOptions:function(){var e=(0,h.extend)(this.callBase(),{animationEnabled:!0,dataStructure:"tree",deferRendering:!0,expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",selectAllText:s.default.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",useNativeScrolling:!0,virtualModeEnabled:!1,rootValue:0,focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1,createChildren:null,onSelectAllValueChanged:null});return(0,h.extend)(!0,e,{integrationOptions:{useDeferUpdateForTemplates:!1}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!k.nativeScrolling},options:{useNativeScrolling:!1}}])},_initSelectedItems:u.noop,_syncSelectionOptions:u.asyncNoop,_fireSelectionChanged:function(){var e=this._selectionChangePromise;(0,C.when)(e).done(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()}.bind(this))},_createSelectAllValueChangedAction:function(){this._selectAllValueChangedAction=this._createActionByOption("onSelectAllValueChanged",{excludeValidators:["disabled","readOnly"]})},_fireSelectAllValueChanged:function(e){this._selectAllValueChangedAction({value:e})},_checkBoxModeChange:function(e,t){if("none"!==t&&"none"!==e){var n=this._$selectAllItem&&this._$selectAllItem.length;switch(e){case"selectAll":n||(this._createSelectAllValueChangedAction(),this._renderSelectAllItem());break;case"normal":n&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}}else this.repaint()},_removeSelection:function(){var e=this;(0,f.each)(this._dataAdapter.getFullData(),(function(t,n){e._hasChildren(n)&&e._dataAdapter.toggleSelection(n.internalFields.key,!1,!0)}))},_optionChanged:function(e){var t=e.name,n=e.value,i=e.previousValue;switch(t){case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",n);break;case"showCheckBoxesMode":this._checkBoxModeChange(n,i);break;case"scrollDirection":this.getScrollable().option("direction",n);break;case"useNativeScrolling":this.getScrollable().option("useNative",n);break;case"items":delete this._$selectAllItem,this.callBase(e);break;case"dataSource":this.callBase(e),this._initDataAdapter(),this._filter={};break;case"hasItemsExpr":this._initAccessors(),this.repaint();break;case"expandEvent":this._initExpandEvent();break;case"deferRendering":case"dataStructure":case"rootValue":case"createChildren":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":break;case"selectionMode":this._initDataAdapter(),this.callBase(e);break;case"onSelectAllValueChanged":this._createSelectAllValueChangedAction();break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",e.value),this.repaint();break;default:this.callBase(e)}},_initDataSource:function(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(function(e){e&&e.length&&this.option("items",e)}.bind(this)):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode:function(){var e=this._filter;e.custom||(e.custom=this._dataSource.filter()),e.internal||(e.internal=[this.option("parentIdExpr"),this.option("rootValue")])},_useCustomChildrenLoader:function(){return(0,c.isFunction)(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader:function(e){var t=this.option("createChildren").call(this,e);return Array.isArray(t)?(new C.Deferred).resolve(t).promise():t&&(0,c.isFunction)(t.then)?(0,C.fromPromise)(t):(new C.Deferred).resolve([]).promise()},_combineFilter:function(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler:function(){this._renderEmptyMessage()},_init:function(){this._filter={},this.callBase(),this._initStoreChangeHandlers()},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&this._isVirtualMode()&&t.length||this.option("items",e)},_removeTreeViewLoadIndicator:function(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator:function(){return this._treeViewLoadIndicator=(0,o.default)("<div>").addClass(N),this._createComponent(this._treeViewLoadIndicator,w.default,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(e){var t;if(this._isVirtualMode()&&(t=this._combineFilter(),this._dataSource.filter(t)),e&&!this._dataSource.isLoaded()){this.option("items",[]);var n=(0,o.default)("<div>").addClass(z);this._createTreeViewLoadIndicator().appendTo(n),this.itemsContainer().append(n),this._isVirtualMode()&&this._dataSource.filter()!==t&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){var e=this;"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",(function(t){e.option().items=e.option("items").concat(t),e._dataAdapter.addItem(t),e._dataAdapter.isFiltered(t)&&e._updateLevel(e._parentIdGetter(t))})).on("removed",(function(t){var n=e._dataAdapter.getNodeByKey(t);(0,c.isDefined)(n)&&(e.option("items")[e._dataAdapter.getIndexByKey(n.internalFields.key)]=0,e._markChildrenItemsToRemove(n),e._removeItems(),e._dataAdapter.removeItem(t),e._updateLevel(e._parentIdGetter(n)))}))},_markChildrenItemsToRemove:function(e){var t=this,n=e.internalFields.childrenKeys;(0,f.each)(n,(function(e,n){t.option("items")[t._dataAdapter.getIndexByKey(n)]=0,t._markChildrenItemsToRemove(t._dataAdapter.getNodeByKey(n))}))},_removeItems:function(){var e=this,t=(0,h.extend)(!0,[],this.option("items")),n=0;(0,f.each)(t,(function(t,i){i||(e.option("items").splice(t-n,1),n++)}))},_updateLevel:function(e){var t=this._getContainerByParentKey(e);this._renderItems(t,this._dataAdapter.getChildrenNodes(e))},_getOldContainer:function(e){if(e.length)return e.children(".".concat(O));var t=this.getScrollable();return t?(0,o.default)(t.content()).children():(0,o.default)()},_getContainerByParentKey:function(e){var t=this._dataAdapter.getNodeByKey(e),n=t?this._getNodeElement(t):[];this._getOldContainer(n).remove();var i=this._renderNodeContainer(n);if(this._isRootLevel(e)){var a=this.getScrollable();a||this._renderScrollableContainer(),(0,o.default)(a.content()).append(i)}return i},_isRootLevel:function(e){return e===this.option("rootValue")},_getAccessors:function(){var e=this.callBase();return e.push("hasItems"),e},_getDataAdapterOptions:function(){return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort()}},_initMarkup:function(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this.setAria("role","tree")},_renderContentImpl:function(){var e=this._renderNodeContainer();(0,o.default)(this.getScrollable().content()).append(e),this.option("items")&&this.option("items").length&&(this._renderItems(e,this._dataAdapter.getRootNodes()),this._initExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(e)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){var e=this.getDataSource(),t=e&&!e.isLoaded(),n=this.getScrollable();n&&(0,d.hasWindow)()&&n.update(),t||this.callBase(),n&&(0,d.hasWindow)()&&n.update()},_renderScrollableContainer:function(){this._scrollable=this._createComponent((0,o.default)("<div>").appendTo(this.$element()),b.default,{useNative:this.option("useNativeScrolling"),direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(e){var t=(0,o.default)("<ul>").addClass(O);if(this.setAria("role","group",t),e&&e.length){var n=this._getItemData(e.children("."+B));this._expandedGetter(n)&&t.addClass(M),t.appendTo(e)}return t},_createDOMElement:function(e,t){var n=(0,o.default)("<li>").addClass(A).attr(K,this._encodeString(t.internalFields.key)).prependTo(e);return this.setAria({role:"treeitem",label:this._displayGetter(t.internalFields.item)||"",expanded:t.internalFields.expanded||!1,level:this._getLevel(e)},n),n},_getLevel:function(e){var t=e.parent();return t.hasClass("dx-scrollable-content")?1:parseInt(t.attr("aria-level"))+1},_showCheckboxes:function(){return"none"!==this.option("showCheckBoxesMode")},_selectAllEnabled:function(){return"selectAll"===this.option("showCheckBoxesMode")&&!this._isSingleSelection()},_renderItems:function(e,t){for(var n=t.length-1;n>=0;n--)this._renderItem(n,t[n],e);this._renderedItemsCount+=t.length},_renderItem:function(e,t,n){var i=this._createDOMElement(n,t),o=t.internalFields,a=this._showCheckboxes();i.addClass(a?V:F),i.toggleClass(j,!1===o.item.visible),a&&this._renderCheckBox(i,t),this.setAria("selected",o.selected,i),this._toggleSelectedClass(i,o.selected),this.callBase(this._renderedItemsCount+e,o.item,i),!1!==o.item.visible&&this._renderChildren(i,t)},_setAriaSelected:function(){},_renderChildren:function(e,t){var n=this;this._hasChildren(t)?(this._renderToggleItemVisibilityIcon(e,t),this.option("deferRendering")&&!t.internalFields.expanded||this._loadSublevel(t).done((function(i){n._renderSublevel(e,n._getActualNode(t),i)}))):this._addLeafClass(e)},_getActualNode:function(e){return this._dataAdapter.getNodeByKey(e.internalFields.key)},_hasChildren:function(e){return this._isVirtualMode()||this._useCustomChildrenLoader()?!1!==this._hasItemsGetter(e.internalFields.item):this.callBase(e)},_loadSublevel:function(e){var t=this,n=new C.Deferred,i=this._getChildNodes(e);return i.length?n.resolve(i):this._loadNestedItems(e).done((function(e){n.resolve(t._dataAdapter.getNodesByItems(e))})),n.promise()},_renderSublevel:function(e,t,n){var i=this._renderNodeContainer(e,t),o=n.filter((function(e){return-1!==t.internalFields.childrenKeys.indexOf(e.internalFields.key)}));if(this._renderItems(i,o),o.length&&!t.internalFields.selected){var a=o[0];this._updateParentsState(a,this._getNodeElement(a))}this._normalizeIconState(e,o.length),t.internalFields.expanded&&i.addClass(M)},_executeItemRenderAction:function(e,t,n){var i=this._getNode(n);this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t,node:this._dataAdapter.getPublicNode(i)})},_addLeafClass:function(e){e.addClass(R)},_expandEventHandler:function(e){(0,o.default)(e.currentTarget.parentNode).hasClass(R)||this._toggleExpandedState(e.currentTarget,void 0,e)},_initExpandEvent:function(){var e=this._getEventNameByOption(this.option("expandEvent")),t=this._itemContainer(),n=this._itemSelector();r.default.off(t,".dxTreeView_expand",n),r.default.on(t,e,n,this._expandEventHandler.bind(this))},_getEventNameByOption:function(e){var t="click"===e?l.name:y.name;return(0,_.addNamespace)(t,$)},_getNode:function(e){if(!(0,c.isDefined)(e))return null;if(e.internalFields)return e;if((0,c.isPrimitive)(e))return this._dataAdapter.getNodeByKey(e);var t=(0,o.default)(e).get(0);return t?a.default.isElementNode(t)?this._getNodeByElement(t):this._dataAdapter.getNodeByItem(t):null},_getNodeByElement:function(e){var t=(0,o.default)(e).closest("."+A),n=this._decodeString(t.attr(K));return this._dataAdapter.getNodeByKey(n)},_toggleExpandedState:function(e,t,n){var i=this._getNode(e);if(!i)return(new C.Deferred).reject().promise();if(i.internalFields.disabled)return(new C.Deferred).reject().promise();var o=i.internalFields.expanded;if(o===t)return(new C.Deferred).resolve().promise();if(this._hasChildren(i)){var a=this._getNodeElement(i);if(a.find(".".concat(P,":not(.").concat(j,")")).length)return(new C.Deferred).reject().promise();this._createLoadIndicator(a)}return(0,c.isDefined)(t)||(t=!o),this._dataAdapter.toggleExpansion(i.internalFields.key,t),this._updateExpandedItemsUI(i,t,n)},_createLoadIndicator:function(e){var t=e.children("."+H),n=e.children(".".concat(O));t.hasClass(W)||n.not(":empty").length||(this._createComponent((0,o.default)("<div>").addClass(P),w.default,{}).$element().appendTo(e),t.hide())},_renderToggleItemVisibilityIcon:function(e,t){var n=(0,o.default)("<div>").addClass(H).appendTo(e);t.internalFields.expanded&&(n.addClass(W),e.parent().addClass(M)),t.internalFields.disabled&&n.addClass(q),this._renderToggleItemVisibilityIconClick(n,t)},_renderToggleItemVisibilityIconClick:function(e,t){var n=this,i=(0,_.addNamespace)(l.name,this.NAME);r.default.off(e,i),r.default.on(e,i,(function(e){n._toggleExpandedState(t.internalFields.key,void 0,e)}))},_updateExpandedItemsUI:function(e,t,n){var i=this._getNodeElement(e),o=!i.length||t&&i.is(":hidden");if(this.option("expandNodesRecursive")&&o){var a=this._getNode(e.internalFields.parentKey);a&&this._updateExpandedItemsUI(a,t,n)}var r=i.children("."+H),s=i.children(".".concat(O));r.toggleClass(W,t);var l=s.length>0,u=new C.Deferred;return!t||l&&!s.is(":empty")?(this._animateNodeContainer(e,t,n,u),u.promise()):0===e.internalFields.childrenKeys.length&&(this._isVirtualMode()||this._useCustomChildrenLoader())?(this._loadNestedItemsWithUpdate(e,t,n,u),u.promise()):(this._renderSublevel(i,e,this._getChildNodes(e)),this._fireContentReadyAction(),this._animateNodeContainer(e,t,n,u),u.promise())},_loadNestedItemsWithUpdate:function(e,t,n,i){var o=this,a=this._getNodeElement(e);this._loadNestedItems(e).done((function(r){var s=o._getActualNode(e);o._renderSublevel(a,s,o._dataAdapter.getNodesByItems(r)),r&&r.length&&(o._fireContentReadyAction(),o._animateNodeContainer(s,t,n,i))}))},_loadNestedItems:function(e){var t=this;if(this._useCustomChildrenLoader()){var n=this._dataAdapter.getPublicNode(e);return this._loadChildrenByCustomLoader(n).done((function(e){t._areNodesExists(e)||t._appendItems(e)}))}return this._isVirtualMode()?(this._filter.internal=[this.option("parentIdExpr"),e.internalFields.key],this._dataSource.filter(this._combineFilter()),this._dataSource.load().done((function(e){t._areNodesExists(e)||t._appendItems(e)}))):(new C.Deferred).resolve([]).promise()},_areNodesExists:function(e,t){var n=this.keyOf(e[0]),i=this._dataAdapter.getFullData();return!!this._dataAdapter.getNodeByKey(n,i)},_appendItems:function(e){this.option().items=this.option("items").concat(e),this._initDataAdapter()},_animateNodeContainer:function(e,t,n,o){var a=this._getNodeElement(e),r=a.children(".".concat(O));e&&o&&0===r.length&&o.resolve(),r.addClass(M);var s=(0,i.getHeight)(r);x.default.stop(r,!0),x.default.animate(r,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{maxHeight:t?0:s},to:{maxHeight:t?s:0},complete:function(){r.css("maxHeight","none"),r.toggleClass(M,t),this.setAria("expanded",t,a),this.getScrollable().update(),this._fireExpandedStateUpdatedEvent(t,e,n),o&&o.resolve()}.bind(this)})},_fireExpandedStateUpdatedEvent:function(e,t,n){if(this._hasChildren(t)){var i=e?"onItemExpanded":"onItemCollapsed";if((0,c.isDefined)(n))this._itemDXEventHandler(n,i,{node:this._dataAdapter.getPublicNode(t)});else{var o=this._getNodeElement(t);this._itemEventHandler(o,i,{event:n,node:this._dataAdapter.getPublicNode(t)})}}},_normalizeIconState:function(e,t){var n=e.find(".".concat(P));n.length&&w.default.getInstance(n).option("visible",!1),t?e.find("."+H).show():(e.find("."+H).removeClass(H),e.addClass(R))},_emptyMessageContainer:function(){var e=this.getScrollable();return e?(0,o.default)(e.content()):this.callBase()},_renderContent:function(){var e=this.option("items");e&&e.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem:function(e){e=e||this.$element().find(".".concat(O)).first(),this._$selectAllItem=(0,o.default)("<div>").addClass(G);var t=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,g.default,{value:t,text:this.option("selectAllText"),onValueChanged:this._onSelectAllCheckboxValueChanged.bind(this)}),this._toggleSelectedClass(this._$selectAllItem,t),e.before(this._$selectAllItem)},_onSelectAllCheckboxValueChanged:function(e){this._toggleSelectAll(e),this._fireSelectAllValueChanged(e.value)},_toggleSelectAll:function(e){this._dataAdapter.toggleSelectAll(e.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox:function(e,t){var n=(0,o.default)("<div>").appendTo(e);this._createComponent(n,g.default,{value:t.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,disabled:this._disabledGetter(t)})},_toggleSelectedClass:function(e,t){e.toggleClass("dx-state-selected",!!t)},_toggleNodeDisabledState:function(e,t){var n=this._getNodeElement(e),i=n.find("."+B).eq(0);this._dataAdapter.toggleNodeDisabledState(e.internalFields.key,t),i.toggleClass(q,!!t),this._showCheckboxes()&&this._getCheckBoxInstance(n).option("disabled",!!t)},_itemOptionChanged:function(e,t,n){var i=this._dataAdapter.getNodeByItem(e);t===this.option("disabledExpr")&&this._toggleNodeDisabledState(i,n)},_changeCheckboxValue:function(e){var t=(0,o.default)(e.element).parent("."+A).children("."+B),n=this._getItemData(t),i=this._getNodeByElement(t),a=e.value;i&&i.internalFields.selected===a||this._updateItemSelection(a,n,e.event)},_isSingleSelection:function(){return"single"===this.option("selectionMode")},_isRecursiveSelection:function(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_isLastSelectedBranch:function(e,t,n){var i=t.indexOf(e.key);return i>=0&&t.splice(i,1),n&&(0,f.each)(e.children,function(e,n){this._isLastSelectedBranch(n,t,!0)}.bind(this)),e.parent&&this._isLastSelectedBranch(e.parent,t),0===t.length},_isLastRequired:function(e){var t=this.option("selectionRequired"),n=this._isSingleSelection(),i=this.getSelectedNodeKeys();if(t)return n?1===i.length:this._isLastSelectedBranch(e.internalFields.publicNode,i.slice(),!0)},_updateItemSelection:function(e,t,n){var i=this,o=this._getNode(t);if(!o||!1===o.visible)return!1;if(o.internalFields.selected===e)return!0;if(!e&&this._isLastRequired(o)){if(this._showCheckboxes()){var a=this._getNodeElement(o);this._getCheckBoxInstance(a).option("value",!0)}return!1}if(e&&this._isSingleSelection()){var r=this.getSelectedNodeKeys();(0,f.each)(r,(function(e,t){i._dataAdapter.toggleSelection(t,!1),i._updateItemsUI(),i._fireItemSelectionChanged(i._getNode(t))}))}this._dataAdapter.toggleSelection(o.internalFields.key,e);var s=this._dataAdapter.isAllSelected(),l=this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value")!==s;return this._updateItemsUI(),this._fireItemSelectionChanged(o,n),this._fireSelectionChanged(),l&&this._fireSelectAllValueChanged(s),!0},_fireItemSelectionChanged:function(e,t){var n=t||this._findItemElementByItem(e.internalFields.item);(t?this._itemDXEventHandler:this._itemEventHandler).call(this,n,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(e),itemData:e.internalFields.item})},_getCheckBoxInstance:function(e){return e.children(".dx-checkbox").dxCheckBox("instance")},_updateItemsUI:function(){var e=this,t={};if((0,f.each)(this._dataAdapter.getData(),(function(n,i){var o=e._getNodeElement(i,t),a=i.internalFields.selected;o.length&&(e._toggleSelectedClass(o,a),e.setAria("selected",a,o),e._showCheckboxes()&&e._getCheckBoxInstance(o).option("value",a))})),this._selectAllEnabled()){var n=this._$selectAllItem.dxCheckBox("instance");n.option("onValueChanged",void 0),n.option("value",this._dataAdapter.isAllSelected()),n.option("onValueChanged",this._onSelectAllCheckboxValueChanged.bind(this))}},_updateParentsState:function(e,t){if(t){var n=this._dataAdapter.getNodeByKey(e.internalFields.parentKey),i=(0,o.default)(t.parents("."+A)[0]);if(this._showCheckboxes()){var a=n.internalFields.selected;this._getCheckBoxInstance(i).option("value",a),this._toggleSelectedClass(i,a)}n.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(n,i)}},_itemEventHandlerImpl:function(e,t,n){var i=(0,o.default)(e).closest("."+A).children("."+B);return t((0,h.extend)(this._extendActionArgs(i),n))},_itemContextMenuHandler:function(e){this._createEventHandler("onItemContextMenu",e)},_itemHoldHandler:function(e){this._createEventHandler("onItemHold",e)},_createEventHandler:function(e,t){var n=this._getNodeByElement(t.currentTarget);this._itemDXEventHandler(t,e,{node:this._dataAdapter.getPublicNode(n)})},_itemClass:function(){return B},_itemDataKey:function(){return L},_attachClickEvent:function(){var e="."+this._itemClass(),t="."+A+", ."+G,n=(0,_.addNamespace)(l.name,this.NAME),i=(0,_.addNamespace)(v.default.down,this.NAME),a=this._itemContainer(),s=this;r.default.off(a,n,e),r.default.off(a,i,t),r.default.on(a,n,e,(function(e){s._itemClickHandler(e,(0,o.default)(this))})),r.default.on(a,i,t,(function(e){s._itemPointerDownHandler(e)}))},_itemClickHandler:function(e,t){var n=this._getItemData(t),i=this._getNodeByElement(t);this._itemDXEventHandler(e,"onItemClick",{node:this._dataAdapter.getPublicNode(i)}),this.option("selectByClick")&&!e.isDefaultPrevented()&&this._updateItemSelection(!i.internalFields.selected,n,e)},_updateSelectionToFirstItem:function(e,t){for(var n=t;n>=0;){var i=(0,o.default)(e[n]);this._updateItemSelection(!0,i.find("."+B).get(0)),n--}},_updateSelectionToLastItem:function(e,t){for(var n=e.length,i=t;i<n;){var a=(0,o.default)(e[i]);this._updateItemSelection(!0,a.find("."+B).get(0)),i++}},_focusInHandler:function(e){var t=this;if(this._updateFocusState(e,!0),this.option("focusedElement"))return clearTimeout(this._setFocusedItemTimeout),void(this._setFocusedItemTimeout=setTimeout((function(){t._setFocusedItem((0,o.default)(t.option("focusedElement")))})));var n=this._getActiveItem();this.option("focusedElement",(0,p.getPublicElement)(n.closest("."+A)))},_setFocusedItem:function(e){e&&e.length&&(e.children().hasClass(q)||this.callBase(e))},_itemPointerDownHandler:function(e){if(this.option("focusStateEnabled")){var t=(0,o.default)(e.target).closest("."+A+", ."+G);if(t.length){var n=t.hasClass(q)?null:t;this.option("focusedElement",(0,p.getPublicElement)(n))}}},_findNonDisabledNodes:function(e){return e.not((function(){return(0,o.default)(this).children("."+B).hasClass(q)}))},_moveFocus:function(e,t){var n="up",i="down",o="first",a="last",r=this.option("rtlEnabled")?"right":"left",s=this.option("rtlEnabled")?"left":"right";this.$element().find(".".concat(O)).each((function(){x.default.stop(this,!0)}));var l=this._findNonDisabledNodes(this._nodeElements());if(l&&l.length)switch(e){case n:var u=this._prevItem(l);this.option("focusedElement",(0,p.getPublicElement)(u));var d=this._getNodeItemElement(u);this.getScrollable().scrollToElement(d),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,d);break;case i:var c=this._nextItem(l);this.option("focusedElement",(0,p.getPublicElement)(c));var h=this._getNodeItemElement(c);this.getScrollable().scrollToElement(h),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,h);break;case o:var f=l.first();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(l,l.index(this._prevItem(l))),this.option("focusedElement",(0,p.getPublicElement)(f)),this.getScrollable().scrollToElement(this._getNodeItemElement(f));break;case a:var g=l.last();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(l,l.index(this._nextItem(l))),this.option("focusedElement",(0,p.getPublicElement)(g)),this.getScrollable().scrollToElement(this._getNodeItemElement(g));break;case s:this._expandFocusedContainer();break;case r:this._collapseFocusedContainer();break;default:return void this.callBase.apply(this,arguments)}},_getNodeItemElement:function(e){return e.find("."+B).get(0)},_nodeElements:function(){return this.$element().find("."+A).not(":hidden")},_expandFocusedContainer:function(){var e=(0,o.default)(this.option("focusedElement"));if(e.length&&!e.hasClass(R)){if(e.find(".".concat(O)).eq(0).hasClass(M)){var t=this._nextItem(this._findNonDisabledNodes(this._nodeElements()));return this.option("focusedElement",(0,p.getPublicElement)(t)),void this.getScrollable().scrollToElement(this._getNodeItemElement(t))}var n=this._getNodeByElement(e.children("."+B));this._toggleExpandedState(n,!0)}},_getClosestNonDisabledNode:function(e){do{e=e.parent().closest("."+A)}while(e.children(".dx-treeview-item.dx-state-disabled").length);return e},_collapseFocusedContainer:function(){var e=(0,o.default)(this.option("focusedElement"));if(e.length){var t=e.find(".".concat(O)).eq(0);if(!e.hasClass(R)&&t.hasClass(M)){var n=this._getNodeByElement(e.children("."+B));this._toggleExpandedState(n,!1)}else{var i=this._getClosestNonDisabledNode(e);i.length&&this.option("focusedElement",(0,p.getPublicElement)(i)),this.getScrollable().scrollToElement(this._getNodeItemElement(i))}}},_encodeString:function(e){return(0,c.isString)(e)?encodeURI(e):e},_decodeString:function(e){return(0,c.isString)(e)?decodeURI(e):e},getScrollable:function(){return this._scrollable},updateDimensions:function(){var e=this,t=new C.Deferred,n=this.getScrollable();return n?n.update().done((function(){t.resolveWith(e)})):t.resolveWith(this),t.promise()},selectItem:function(e){return this._updateItemSelection(!0,e)},unselectItem:function(e){return this._updateItemSelection(!1,e)},expandItem:function(e){return this._toggleExpandedState(e,!0)},collapseItem:function(e){return this._toggleExpandedState(e,!1)},getNodes:function(){return this._dataAdapter.getTreeNodes()},getSelectedNodes:function(){var e=this;return this.getSelectedNodeKeys().map((function(t){var n=e._dataAdapter.getNodeByKey(t);return e._dataAdapter.getPublicNode(n)}))},getSelectedNodesKeys:function(){return S.default.log("W0002","dxTreeView","getSelectedNodesKeys","20.1","Use the 'getSelectedNodeKeys' method instead"),this.getSelectedNodeKeys()},getSelectedNodeKeys:function(){return this._dataAdapter.getSelectedNodesKeys()},selectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!0):this._toggleSelectAll({value:!0})},unselectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!1):this._toggleSelectAll({value:!1})},expandAll:function(){var e=this._dataAdapter;(0,f.each)(e.getData(),(function(t,n){return e.toggleExpansion(n.internalFields.key,!0)})),this.repaint()},collapseAll:function(){(0,f.each)(this._dataAdapter.getExpandedNodesKeys(),function(e,t){this._toggleExpandedState(t,!1)}.bind(this))},scrollToItem:function(e){var t=this,n=this._getNode(e);if(!n)return(new C.Deferred).reject().promise();for(var i=[],o=n.internalFields.publicNode.parent;null!=o;)o.expanded||i.push(o.key),o=o.parent;var a=new C.Deferred;return this._expandNodes(i.reverse()).always((function(){var e=t._getNodeElement(n);e&&e.length?(t.scrollToElementTopLeft(e.get(0)),a.resolve()):a.reject()})),a.promise()},scrollToElementTopLeft:function(e){var t=this.getScrollable(),n=this.option(),i=n.scrollDirection,a=n.rtlEnabled,r={top:0,left:0},s=(0,D.getRelativeOffset)(I.SCROLLABLE_CONTENT_CLASS,e);if(i!==I.DIRECTION_VERTICAL){var l=(0,o.default)(t.container()).get(0);r.left=a?s.left+e.offsetWidth-l.clientWidth:s.left}i!==I.DIRECTION_HORIZONTAL&&(r.top=s.top),t.scrollTo(r)},_expandNodes:function(e){var t=this;if(!e||0===e.length)return(new C.Deferred).resolve().promise();var n=new C.Deferred,i=e.map((function(e){return t.expandItem(e)}));return C.when.apply(o.default,i).done((function(){return n.resolve()})).fail((function(){return n.reject()})),n.promise()},_dispose:function(){this.callBase(),clearTimeout(this._setFocusedItemTimeout)}});t.default=U,e.exports=t.default,e.exports.default=t.default},76986:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=u(n(99393)),a=u(n(2630)),r=u(n(29837)),s=n(13306),l=u(n(60903));function u(e){return e&&e.__esModule?e:{default:e}}a.default.setEditorClass(r.default);var d="dx-treeview",c="".concat(d,"-node-container"),h=l.default.inherit(a.default).inherit({_addWidgetPrefix:function(e){return"".concat(d,"-").concat(e)},_optionChanged:function(e){switch(e.name){case"searchValue":this._showCheckboxes()&&this._isRecursiveSelection()&&this._removeSelection(),this._initDataAdapter(),this._updateSearch(),this._repaintContainer(),this.option("focusedElement",null);break;case"searchExpr":this._initDataAdapter(),this.repaint();break;case"searchMode":this.option("expandNodesRecursive")?this._updateDataAdapter():this._initDataAdapter(),this.repaint();break;default:this.callBase(e)}},_updateDataAdapter:function(){this._setOptionWithoutOptionChange("expandNodesRecursive",!1),this._initDataAdapter(),this._setOptionWithoutOptionChange("expandNodesRecursive",!0)},_getDataAdapterOptions:function(){return(0,s.extend)(this.callBase(),{searchValue:this.option("searchValue"),searchMode:this.option("searchMode")||"contains",searchExpr:this.option("searchExpr")})},_updateSearch:function(){if(this._searchEditor){var e=this._getSearchEditorOptions();this._searchEditor.option(e)}},_repaintContainer:function(){var e,t=this.$element().find(".".concat(c)).first();t.length&&(t.empty(),e=this._dataAdapter.getRootNodes(),this._renderEmptyMessage(e),this._renderItems(t,e),this._fireContentReadyAction())},_itemContainer:function(e){return this._scrollable&&e?(0,i.default)(this._scrollable.content()):this.callBase()},_addWidgetClass:function(){this.$element().addClass(this._widgetClass())},_clean:function(){this.callBase(),this._removeSearchBox()}});(0,o.default)("dxTreeView",h);var f=h;t.default=f,e.exports=t.default,e.exports.default=t.default},76299:function(e,t,n){var i;t.default=void 0;var o=((i=n(38377))&&i.__esModule?i:{default:i}).default.inherit({ctor:function(e,t){var n=this;this.editor=e,this.validator=t,this.validationRequestsCallbacks=[];var i=function(e){n.validationRequestsCallbacks.forEach((function(t){return t(e)}))};e.validationRequest.add(i),e.on("disposing",(function(){e.validationRequest.remove(i)}))},getValue:function(){return this.editor.option("value")},getCurrentValidationError:function(){return this.editor.option("validationError")},bypass:function(){return this.editor.option("disabled")},applyValidationResults:function(e){this.editor.option({validationErrors:e.brokenRules,validationStatus:e.status})},reset:function(){this.editor.reset()},focus:function(){this.editor.focus()}});t.default=o,e.exports=t.default,e.exports.default=t.default},90964:function(e,t,n){t.default=void 0;var i=g(n(38377)),o=n(13306),a=n(89386),r=n(95479),s=n(80566),l=g(n(17381)),u=n(20576),d=n(35922),c=g(n(18016)),h=g(n(28109)),f=g(n(48136)),p=n(62754);function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_(e,t)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v="valid",y="invalid",x="pending",b=function(){function e(){this.NAME="base"}var t=e.prototype;return t.defaultMessage=function(e){return h.default.getFormatter("validation-".concat(this.NAME))(e)},t.defaultFormattedMessage=function(e){return h.default.getFormatter("validation-".concat(this.NAME,"-formatted"))(e)},t._isValueEmpty=function(e){return!O.required.validate(e,{})},t.validate=function(e,t){var n=this,i=Array.isArray(e)?e:[e],o=!0;return i.length?i.every((function(e){return o=n._validate(e,t)})):o=this._validate(null,t),o},e}(),w=function(e){function t(){var t;return(t=e.call(this)||this).NAME="required",t}return m(t,e),t.prototype._validate=function(e,t){return!!(0,d.isDefined)(e)&&!1!==e&&(e=String(e),!t.trim&&(0,d.isDefined)(t.trim)||(e=e.trim()),""!==e)},t}(b),C=function(e){function t(){var t;return(t=e.call(this)||this).NAME="numeric",t}return m(t,e),t.prototype._validate=function(e,t){return!(!1===t.ignoreEmptyValue||!this._isValueEmpty(e))||(t.useCultureSettings&&(0,d.isString)(e)?!isNaN(c.default.parse(e)):(0,d.isNumeric)(e))},t}(b),S=function(e){function t(){var t;return(t=e.call(this)||this).NAME="range",t}return m(t,e),t.prototype._validate=function(e,t){if(!1!==t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=O.numeric.validate(e,t),i=(0,d.isDefined)(e)&&""!==e,o=n?parseFloat(e):i&&e.valueOf(),a=t.min,r=t.max;if(!n&&!(0,d.isDate)(e)&&!i)return!1;if((0,d.isDefined)(a))return(0,d.isDefined)(r)?o>=a&&o<=r:o>=a;if((0,d.isDefined)(r))return o<=r;throw l.default.Error("E0101")},t}(b),k=function(e){function t(){var t;return(t=e.call(this)||this).NAME="stringLength",t}return m(t,e),t.prototype._validate=function(e,t){var n;return e=String(null!==(n=e)&&void 0!==n?n:""),!t.trim&&(0,d.isDefined)(t.trim)||(e=e.trim()),!(!t.ignoreEmptyValue||!this._isValueEmpty(e))||O.range.validate(e.length,(0,o.extend)({},t))},t}(b),D=function(e){function t(){var t;return(t=e.call(this)||this).NAME="custom",t}return m(t,e),t.prototype.validate=function(e,t){if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.validator,i=n&&(0,d.isFunction)(n.option)&&n.option("dataGetter"),a=(0,d.isFunction)(i)&&i(),r={value:e,validator:n,rule:t};return a&&(0,o.extend)(r,a),t.validationCallback(r)},t}(b),I=function(e){function t(){var t;return(t=e.call(this)||this).NAME="async",t}m(t,e);var n=t.prototype;return n.validate=function(e,t){if((0,d.isDefined)(t.reevaluate)||(0,o.extend)(t,{reevaluate:!0}),t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.validator,i=n&&(0,d.isFunction)(n.option)&&n.option("dataGetter"),a=(0,d.isFunction)(i)&&i(),r={value:e,validator:n,rule:t};a&&(0,o.extend)(r,a);var s=t.validationCallback(r);if(!(0,d.isPromise)(s))throw l.default.Error("E0103");return this._getWrappedPromise((0,p.fromPromise)(s).promise())},n._getWrappedPromise=function(e){var t=new p.Deferred;return e.then((function(e){t.resolve(e)}),(function(e){var n={isValid:!1};(0,d.isDefined)(e)&&((0,d.isString)(e)?n.message=e:(0,d.isObject)(e)&&(0,d.isDefined)(e.message)&&(0,d.isString)(e.message)&&(n.message=e.message)),t.resolve(n)})),t.promise()},t}(D),T=function(e){function t(){var t;return(t=e.call(this)||this).NAME="compare",t}return m(t,e),t.prototype._validate=function(e,t){if(!t.comparisonTarget)throw l.default.Error("E0102");if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;(0,o.extend)(t,{reevaluate:!0});var n=t.comparisonTarget();switch(t.comparisonType||"=="){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n}},t}(b),E=function(e){function t(){var t;return(t=e.call(this)||this).NAME="pattern",t}return m(t,e),t.prototype._validate=function(e,t){if(!1!==t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.pattern;return(0,d.isString)(n)&&(n=new RegExp(n)),n.test(e)},t}(b),A=function(e){function t(){var t;return(t=e.call(this)||this).NAME="email",t}return m(t,e),t.prototype._validate=function(e,t){return!(!1===t.ignoreEmptyValue||!this._isValueEmpty(e))||O.pattern.validate(e,(0,o.extend)({},t,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))},t}(b),O={required:new w,numeric:new C,range:new S,stringLength:new k,custom:new D,async:new I,compare:new T,pattern:new E,email:new A},P=i.default.inherit({ctor:function(e){this.group=e,this.validators=[],this._pendingValidators=[],this._onValidatorStatusChanged=this._onValidatorStatusChanged.bind(this),this._resetValidationInfo(),this._eventsStrategy=new s.EventsStrategy(this)},validate:function(){var e=this,t={isValid:!0,brokenRules:[],validators:[],status:v,complete:null};return this._unsubscribeFromAllChangeEvents(),this._pendingValidators=[],this._resetValidationInfo(),(0,r.each)(this.validators,(function(n,i){var o=i.validate();t.isValid=t.isValid&&o.isValid,o.brokenRules&&(t.brokenRules=t.brokenRules.concat(o.brokenRules)),t.validators.push(i),o.status===x&&e._addPendingValidator(i),e._subscribeToChangeEvents(i)})),this._pendingValidators.length?t.status=x:(t.status=t.isValid?v:y,this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(t)),this._updateValidationInfo(t),(0,o.extend)({},this._validationInfo.result)},_subscribeToChangeEvents:function(e){e.on("validating",this._onValidatorStatusChanged),e.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents:function(e){e.off("validating",this._onValidatorStatusChanged),e.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents:function(){var e=this;(0,r.each)(this.validators,(function(t,n){e._unsubscribeFromChangeEvents(n)}))},_updateValidationInfo:function(e){this._validationInfo.result=e,e.status===x&&(this._validationInfo.deferred||(this._validationInfo.deferred=new p.Deferred,this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator:function(e){(0,u.grep)(this._pendingValidators,(function(t){return t===e}))[0]||this._pendingValidators.push(e)},_removePendingValidator:function(e){var t=(0,a.inArray)(e,this._pendingValidators);t>=0&&this._pendingValidators.splice(t,1)},_orderBrokenRules:function(e){var t=[];return(0,r.each)(this.validators,(function(n,i){var o=(0,u.grep)(e,(function(e){return e.validator===i}));o.length&&(t=t.concat(o))})),t},_updateBrokenRules:function(e){if(this._validationInfo.result){var t=this._validationInfo.result.brokenRules,n=(0,u.grep)(t,(function(t){return t.validator!==e.validator}));e.brokenRules&&(t=n.concat(e.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(t)}},_onValidatorStatusChanged:function(e){e.status!==x?this._resolveIfComplete(e):this._addPendingValidator(e.validator)},_resolveIfComplete:function(e){if(this._removePendingValidator(e.validator),this._updateBrokenRules(e),!this._pendingValidators.length){if(this._unsubscribeFromAllChangeEvents(),!this._validationInfo.result)return;this._validationInfo.result.status=0===this._validationInfo.result.brokenRules.length?v:y,this._validationInfo.result.isValid=this._validationInfo.result.status===v;var t=(0,o.extend)({},this._validationInfo.result,{complete:null}),n=this._validationInfo.deferred;this._validationInfo.deferred=null,this._raiseValidatedEvent(t),n&&setTimeout((function(){n.resolve(t)}))}},_raiseValidatedEvent:function(e){this._eventsStrategy.fireEvent("validated",[e])},_resetValidationInfo:function(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo:function(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator:function(e){var t=(0,a.inArray)(e,this.validators);t>-1&&(this.validators.splice(t,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:e}))},registerValidator:function(e){(0,a.inArray)(e,this.validators)<0&&(this.validators.push(e),this._synchronizeValidationInfo())},reset:function(){(0,r.each)(this.validators,(function(e,t){t.reset()})),this._pendingValidators=[],this._resetValidationInfo()},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this}}),M={groups:[],getGroupConfig:function(e){var t=(0,u.grep)(this.groups,(function(t){return t.group===e}));if(t.length)return t[0]},findGroup:function(e,t){var n=e.parents(".dx-validationgroup").first();return n.length?n.dxValidationGroup("instance"):t},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(e){var t=this.getGroupConfig(e);return t||(t=new P(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=(0,a.inArray)(t,this.groups);return n>-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e){var t=e.rule,n=e.validator,i=e.name;(0,d.isDefined)(t.message)||(n.defaultFormattedMessage&&(0,d.isDefined)(i)?t.message=n.defaultFormattedMessage(i):t.message=n.defaultMessage())},_addBrokenRule:function(e){var t=e.result,n=e.rule;t.brokenRule||(t.brokenRule=n),t.brokenRules||(t.brokenRules=[]),t.brokenRules.push(n)},validate:function(e,t,n){var i,o=this,a={name:n,value:e,brokenRule:null,brokenRules:null,isValid:!0,validationRules:t,pendingRules:null,status:v,complete:null},s=null==t||null===(i=t[0])||void 0===i?void 0:i.validator,u=[];return(0,r.each)(t||[],(function(t,i){var r,s=O[i.type];if(!s)throw l.default.Error("E0100");return(0,d.isDefined)(i.isValid)&&i.value===e&&!i.reevaluate?!!i.isValid||(a.isValid=!1,o._addBrokenRule({result:a,rule:i}),!1):(i.value=e,"async"===i.type?(u.push({rule:i,ruleValidator:s}),!0):(r=s.validate(e,i),i.isValid=r,r||(a.isValid=!1,o._setDefaultMessage({rule:i,validator:s,name:n}),o._addBrokenRule({result:a,rule:i})),!!i.isValid&&void 0))})),a.isValid&&!a.brokenRules&&u.length&&(a=this._validateAsyncRules({value:e,items:u,result:a,name:n})),this._synchronizeGroupValidationInfo(s,a),a.status=a.pendingRules?x:a.isValid?v:y,a},_synchronizeGroupValidationInfo:function(e,t){var n;if(e){var i=M.getGroupConfig(e._validationGroup);i._updateBrokenRules.call(i,{validator:e,brokenRules:null!==(n=t.brokenRules)&&void 0!==n?n:[]})}},_validateAsyncRules:function(e){var t=this,n=e.result,i=e.value,o=e.items,a=e.name,s=[];return(0,r.each)(o,(function(e,o){var r=o.ruleValidator.validate(i,o.rule);if((0,d.isPromise)(r)){n.pendingRules||(n.pendingRules=[]),n.pendingRules.push(o.rule);var l=r.then((function(e){var n=t._getPatchedRuleResult(e);return t._updateRuleConfig({rule:o.rule,ruleResult:n,validator:o.ruleValidator,name:a}),n}));s.push(l)}else t._updateRuleConfig({rule:o.rule,ruleResult:t._getPatchedRuleResult(r),validator:o.ruleValidator,name:a})})),s.length&&(n.complete=f.default.all(s).then((function(e){return t._getAsyncRulesResult({result:n,values:e})}))),n},_updateRuleConfig:function(e){var t=e.rule,n=e.ruleResult,i=e.validator,o=e.name;t.isValid=n.isValid,n.isValid||((0,d.isDefined)(n.message)&&(0,d.isString)(n.message)&&n.message.length?t.message=n.message:this._setDefaultMessage({rule:t,validator:i,name:o}))},_getPatchedRuleResult:function(e){var t;return(0,d.isObject)(e)?(t=(0,o.extend)({},e),(0,d.isDefined)(t.isValid)||(t.isValid=!0)):t={isValid:!(0,d.isBoolean)(e)||e},t},_getAsyncRulesResult:function(e){var t=this,n=e.values,i=e.result;return(0,r.each)(n,(function(e,n){if(!1===n.isValid){i.isValid=n.isValid;var o=i.pendingRules[e];t._addBrokenRule({result:i,rule:o})}})),i.pendingRules=null,i.complete=null,i.status=i.isValid?v:y,i},registerValidatorInGroup:function(e,t){var n=M.addGroup(e);n.registerValidator.call(n,t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=M.getGroupConfig(e);if(n){n.removeRegisteredValidator.call(n,t);var i=n.validators;this._shouldRemoveGroup(e,i)&&this.removeGroup(e)}},initValidationOptions:function(e){var t=this,n={};return e&&["isValid","validationStatus","validationError","validationErrors"].forEach((function(i){i in e&&(0,o.extend)(n,t.synchronizeValidationOptions({name:i,value:e[i]},e))})),n},synchronizeValidationOptions:function(e,t){var n=e.name,i=e.value;switch(n){case"validationStatus":var o=i===v||i===x;return t.isValid!==o?{isValid:o}:{};case"isValid":var a=t.validationStatus,r=a;return i&&a===y?r=v:i||a===y||(r=y),r!==a?{validationStatus:r}:{};case"validationErrors":var s=i&&i.length?i[0]:null;return t.validationError!==s?{validationError:s}:{};case"validationError":var l=t.validationErrors;if(!i&&l)return{validationErrors:null};if(i&&!l)return{validationErrors:[i]};if(i&&l&&i!==l[0])return l[0]=i,{validationErrors:l.slice()}}return{}},validateGroup:function(e){var t=M.getGroupConfig(e);if(!t)throw l.default.Error("E0110");return t.validate()},resetGroup:function(e){var t=M.getGroupConfig(e);if(!t)throw l.default.Error("E0110");return t.reset()}};M.initGroups();var R=M;t.default=R,e.exports=t.default,e.exports.default=t.default},4401:function(e,t,n){t.default=void 0;var i=u(n(68374)),o=u(n(99393)),a=u(n(13046)),r=u(n(97289)),s=u(n(90964)),l=u(n(39562));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c="dx-validationgroup",h=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,d(t,n);var a=o.prototype;return a._getDefaultOptions=function(){return e.prototype._getDefaultOptions.call(this)},a._init=function(){e.prototype._init.call(this),s.default.addGroup(this)},a._initMarkup=function(){var t=this.$element();t.addClass(c),t.find(".".concat("dx-validator")).each((function(e,t){l.default.getInstance((0,i.default)(t))._initGroupRegistration()})),t.find(".".concat("dx-validationsummary")).each((function(e,t){r.default.getInstance((0,i.default)(t))._initGroupRegistration()})),e.prototype._initMarkup.call(this)},a.validate=function(){return s.default.validateGroup(this)},a.reset=function(){return s.default.resetGroup(this)},a._dispose=function(){s.default.removeGroup(this),this.$element().removeClass(c),e.prototype._dispose.call(this)},a._useTemplates=function(){return!1},o}(a.default);(0,o.default)("dxValidationGroup",h);var f=h;t.default=f,e.exports=t.default,e.exports.default=t.default},8336:function(e,t,n){t.default=void 0;var i=n(58664),o=d(n(68374)),a=d(n(99393)),r=d(n(89799)),s=n(13306),l=n(68752),u=n(37518);function d(e){return e&&e.__esModule?e:{default:e}}var c="dx-invalid-message",h=r.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{integrationOptions:{},templatesRenderAsynchronously:!1,shading:!1,width:"auto",height:"auto",closeOnOutsideClick:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1,rtlEnabled:!1,contentTemplate:this._renderInnerHtml,maxWidth:"100%",mode:"auto",validationErrors:void 0,positionRequest:void 0,boundary:void 0,offset:{h:0,v:0},contentId:void 0})},_init:function(){this.callBase(),this.updateMaxWidth(),this._updatePosition()},_initMarkup:function(){this.callBase(),this._ensureMessageNotEmpty(),this._toggleModeClass(),this._updateContentId()},_ensureMessageNotEmpty:function(){this._textMarkup=this._getTextMarkup();var e=this.option("visible")&&this._textMarkup;this._toggleVisibilityClasses(e)},_toggleVisibilityClasses:function(e){e?(this.$element().addClass(c),this.$wrapper().addClass(c)):(this.$element().removeClass(c),this.$wrapper().removeClass(c))},_updateContentId:function(){var e=this.option(),t=e.container,n=e.contentId,i=null!=n?n:(0,o.default)(t).attr("aria-describedby");this.$content().addClass("dx-invalid-message-content").attr("id",i)},_renderInnerHtml:function(e){var t=e&&(0,o.default)(e);null==t||t.html(this._textMarkup)},_getTextMarkup:function(){var e,t=null!==(e=this.option("validationErrors"))&&void 0!==e?e:[],n="";return t.forEach((function(e){var t;n+=(n?"<br />":"")+(0,l.encodeHtml)(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:"")})),n},_toggleModeClass:function(){var e=this.option("mode");this.$wrapper().toggleClass("dx-invalid-message-auto","auto"===e).toggleClass("dx-invalid-message-always","always"===e)},updateMaxWidth:function(){var e=this.option("target"),t=(0,i.getOuterWidth)(e),n="100%";t&&(n=Math.max(t,100)),this.option({maxWidth:n})},_updatePosition:function(){var e=this.option(),t=e.positionRequest,n=e.rtlEnabled,i=e.offset,o=e.boundary,a=(0,u.getDefaultAlignment)(n),r="below"===t?[" top"," bottom"]:[" bottom"," top"];n&&(i.h=-i.h),"below"!==t&&(i.v=-i.v),this.option("position",{offset:i,boundary:o,my:a+r[0],at:a+r[1],collision:"none flip"})},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"target":this.updateMaxWidth(),this.callBase(e);break;case"boundary":this.option("position.boundary",n);break;case"mode":this._toggleModeClass(n);break;case"rtlEnabled":case"offset":case"positionRequest":this._updatePosition();break;case"container":this._updateContentId(),this.callBase(e);break;case"contentId":this._updateContentId();break;case"validationErrors":this._ensureMessageNotEmpty(),this._renderInnerHtml(this.$content());break;default:this.callBase(e)}}});(0,a.default)("dxValidationMessage",h);var f=h;t.default=f,e.exports=t.default,e.exports.default=t.default},97289:function(e,t,n){t.default=void 0;var i=d(n(99393)),o=d(n(55994)),a=n(20576),r=n(13306),s=n(95479),l=d(n(90964)),u=d(n(11050));function d(e){return e&&e.__esModule?e:{default:e}}var c=u.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference:function(){this.callBase(),(0,r.extend)(this._optionsByReference,{validationGroup:!0})},_init:function(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration:function(){var e=this.$element(),t=this.option("validationGroup")||l.default.findGroup(e,this._modelByElement(e)),n=l.default.addGroup(t);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=t,this.groupSubscription=this._groupValidationHandler.bind(this),n.on("validated",this.groupSubscription)},_unsubscribeGroup:function(){var e=l.default.getGroupConfig(this._validationGroup);e&&e.off("validated",this.groupSubscription)},_getOrderedItems:function(e,t){var n=[];return(0,s.each)(e,(function(e,i){var o=(0,a.grep)(t,(function(e){if(e.validator===i)return!0}));o.length&&(n=n.concat(o))})),n},_groupValidationHandler:function(e){var t=this,n=this._getOrderedItems(e.validators,(0,s.map)(e.brokenRules,(function(e){return{text:e.message,validator:e.validator,index:e.index}})));this.validators=e.validators,(0,s.each)(this.validators,(function(e,n){if(n._validationSummary!==t){var i=t._itemValidationHandler.bind(t);n.on("validated",i),n.on("disposing",(function(){n.off("validated",i),n._validationSummary=null,i=null})),n._validationSummary=t}})),this.option("items",n)},_itemValidationHandler:function(e){for(var t=e.isValid,n=e.validator,i=e.brokenRules,o=this.option("items"),r=!1,l=0,u=function(){var e=o[l];if(e.validator===n){var s=(0,a.grep)(i||[],(function(t){return t.index===e.index}))[0];if(t||!s)return o.splice(l,1),r=!0,"continue";s.message!==e.text&&(e.text=s.message,r=!0)}l++};l<o.length;)u();(0,s.each)(i,(function(e,t){(0,a.grep)(o,(function(e){return e.validator===n&&e.index===t.index}))[0]||(o.push({text:t.message,validator:n,index:t.index}),r=!0)})),r&&(o=this._getOrderedItems(this.validators,o),this.option("items",o))},_initMarkup:function(){this.$element().addClass("dx-validationsummary"),this.callBase()},_optionChanged:function(e){"validationGroup"===e.name?this._initGroupRegistration():this.callBase(e)},_itemClass:function(){return"dx-validationsummary-item"},_itemDataKey:function(){return"dx-validationsummary-item-data"},_postprocessRenderItem:function(e){o.default.on(e.itemElement,"click",(function(){e.itemData.validator&&e.itemData.validator.focus&&e.itemData.validator.focus()}))},_dispose:function(){this.callBase(),this._unsubscribeGroup()}});(0,i.default)("dxValidationSummary",c);var h=c;t.default=h,e.exports=t.default,e.exports.default=t.default},39562:function(e,t,n){t.default=void 0;var i=n(97906),o=p(n(44504)),a=p(n(96688)),r=p(n(13046)),s=n(13306),l=n(95479),u=p(n(90964)),d=p(n(76299)),c=p(n(99393)),h=n(62754),f=p(n(73176));function p(e){return e&&e.__esModule?e:{default:e}}var g="valid",m="pending",_=r.default.inherit({_initOptions:function(e){this.callBase.apply(this,arguments),this.option(u.default.initValidationOptions(e))},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),this.focused=(0,o.default)(),this._initAdapter(),this._validationInfo={result:null,deferred:null,skipValidation:!1}},_initGroupRegistration:function(){var e=this._findGroup();this._groupWasInit||this.on("disposing",(function(e){u.default.removeRegisteredValidator(e.component._validationGroup,e.component)})),this._groupWasInit&&this._validationGroup===e||(u.default.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,u.default.registerValidatorInGroup(e,this))},_setOptionsByReference:function(){this.callBase(),(0,s.extend)(this._optionsByReference,{validationGroup:!0})},_getEditor:function(){var e=this.$element()[0];return(0,i.data)(e,"dx-validation-target")},_initAdapter:function(){var e=this,t=this._getEditor(),n=this.option("adapter");if(!n){if(t)return(n=new d.default(t,this)).validationRequestsCallbacks.push((function(t){e._validationInfo.skipValidation||e.validate(t)})),void this.option("adapter",n);throw a.default.Error("E0120")}var i=n.validationRequestsCallbacks;i&&i.push((function(t){e.validate(t)}))},_toggleRTLDirection:function(e){var t,n,i,o=null!==(t=null===(n=this.option("adapter"))||void 0===n||null===(i=n.editor)||void 0===i?void 0:i.option("rtlEnabled"))&&void 0!==t?t:e;this.callBase(o)},_initMarkup:function(){this.$element().addClass("dx-validator"),this.callBase()},_render:function(){this.callBase(),this._toggleAccessibilityAttributes()},_toggleAccessibilityAttributes:function(){var e=this._getEditor();if(e){var t=(this.option("validationRules")||[]).some((function(e){return"required"===e.type}))||null;e.setAria("required",t)}},_visibilityChanged:function(e){e&&this._initGroupRegistration()},_optionChanged:function(e){switch(e.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),this._toggleAccessibilityAttributes(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;case"isValid":case"validationStatus":this.option(u.default.synchronizeValidationOptions(e,this.option()));break;default:this.callBase(e)}},_getValidationRules:function(){var e=this;return this._validationRules||(this._validationRules=(0,l.map)(this.option("validationRules"),(function(t,n){return(0,s.extend)({},t,{validator:e,index:n})}))),this._validationRules},_findGroup:function(){var e=this.$element();return this.option("validationGroup")||u.default.findGroup(e,this._modelByElement(e))},_resetValidationRules:function(){delete this._validationRules},validate:function(e){var t,n=this,i=this.option("adapter"),o=this.option("name"),a=i.bypass&&i.bypass(),r=e&&void 0!==e.value?e.value:i.getValue(),l=i.getCurrentValidationError&&i.getCurrentValidationError(),d=this._getValidationRules(),c=this._validationInfo&&this._validationInfo.result;return c&&c.status===m&&c.value===r?(0,s.extend)({},c):(a?t={isValid:!0,status:g}:l&&l.editorSpecific?(l.validator=this,t={isValid:!1,status:"invalid",brokenRule:l,brokenRules:[l]}):t=u.default.validate(r,d,o),t.id=(new f.default).toString(),this._applyValidationResult(t,i),t.complete&&t.complete.then((function(e){e.id===n._validationInfo.result.id&&n._applyValidationResult(e,i)})),(0,s.extend)({},this._validationInfo.result))},reset:function(){var e=this.option("adapter"),t={id:null,isValid:!0,brokenRule:null,brokenRules:null,pendingRules:null,status:g,complete:null};this._validationInfo.skipValidation=!0,e.reset(),this._validationInfo.skipValidation=!1,this._resetValidationRules(),this._applyValidationResult(t,e)},_updateValidationResult:function(e){if(this._validationInfo.result&&this._validationInfo.result.id===e.id)for(var t in e)"id"!==t&&"complete"!==t&&(this._validationInfo.result[t]=e[t]);else{var n=this._validationInfo.deferred&&this._validationInfo.result.complete;this._validationInfo.result=(0,s.extend)({},e,{complete:n})}},_applyValidationResult:function(e,t){var n=this._createActionByOption("onValidated",{excludeValidators:["readOnly"]});if(e.validator=this,this._updateValidationResult(e),t.applyValidationResults&&t.applyValidationResults(this._validationInfo.result),this.option({validationStatus:this._validationInfo.result.status}),this._validationInfo.result.status===m)return this._validationInfo.deferred||(this._validationInfo.deferred=new h.Deferred,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this._eventsStrategy.fireEvent("validating",[this._validationInfo.result]);this._validationInfo.result.status!==m&&(n(e),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(e),this._validationInfo.deferred=null))},focus:function(){var e=this.option("adapter");e&&e.focus&&e.focus()},_useTemplates:function(){return!1}});(0,c.default)("dxValidator",_);var v=_;t.default=v,e.exports=t.default,e.exports.default=t.default},31421:function(e,t,n){t.tabbable=t.focused=t.focusable=void 0;var i=a(n(68374)),o=a(n(73349));function a(e){return e&&e.__esModule?e:{default:e}}var r=function(e,t){if(!function(e){var t=(0,i.default)(e);return t.is(":visible")&&"hidden"!==t.css("visibility")&&"hidden"!==t.parents().css("visibility")}(e))return!1;var n=e.nodeName.toLowerCase(),o=!isNaN(t),a=e.disabled,r=/^(input|select|textarea|button|object|iframe)$/.test(n),s="a"===n,l=e.isContentEditable;return r||l?!a:s&&e.href||o};t.focusable=function(e,t){return r(t,(0,i.default)(t).attr("tabIndex"))},t.tabbable=function(e,t){var n=(0,i.default)(t).attr("tabIndex");return(isNaN(n)||n>=0)&&r(t,n)},t.focused=function(e){var t=(0,i.default)(e).get(0);return o.default.getActiveElement()===t}},92591:function(e,t,n){t.default=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(77695),r="dx-swatch-",s={getSwatchContainer:function(e){var t=(0,o.default)(e).closest('[class^="'.concat(r,'"], [class*=" ').concat(r,'"]')),n=(0,a.value)();if(!t.length)return n;var i=new RegExp("(\\s|^)(".concat(r,".*?)(\\s|$)")),s=t[0].className.match(i)[2],l=n.children("."+s);return l.length||(l=(0,o.default)("<div>").addClass(s).appendTo(n)),l}};t.default=s,e.exports=t.default,e.exports.default=t.default},96688:function(e,t,n){t.default=void 0;var i=a(n(95640)),o=a(n(17381));function a(e){return e&&e.__esModule?e:{default:e}}var r=(0,i.default)(o.default.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"',E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',E1058:'The "startDayHour" must be earlier than the "endDayHour"',E1059:"The following column names are not unique: {0}",E1060:"All editable columns must have names",W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config.",W1015:'The "cellDuration" should divide the range from the "startDayHour" to the "endDayHour" into even intervals',W1016:"The '{0}' field in the HTML Editor toolbar item configuration was renamed to '{1}'. Please make a corresponding change in your code.",W1017:"The 'key' property is not specified for a lookup data source. Please specify it to prevent requests for the entire dataset when users filter data.",W1018:"Infinite scrolling may not work properly with multiple selection. To use these features together, set 'selection.deferred' to true or set 'selection.selectAllMode' to 'page'.",W1019:"Filter query string exceeds maximum length limit of {0} characters.",W1020:"hideEvent is ignored when the shading property is true"});t.default=r,e.exports=t.default,e.exports.default=t.default},2630:function(e,t,n){t.default=void 0;var i=l(n(68374)),o=n(13306),a=l(n(28109)),r=l(n(96688)),s=n(62754);function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,n(2146).stubComponent)("TextBox"),d={_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var e=this.$element(),t=this.option("searchEnabled"),n=this._addWidgetPrefix("search"),o=this._addWidgetPrefix("with-search");if(!t)return e.removeClass(o),void this._removeSearchBox();var a=this._getSearchEditorOptions();this._searchEditor?this._searchEditor.option(a):(e.addClass(o),this._$searchEditorElement=(0,i.default)("<div>").addClass(n).prependTo(e),this._searchEditor=this._createComponent(this._$searchEditorElement,u,a))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var e=this,t=e.option("searchEditorOptions"),n=a.default.format("Search");return(0,o.extend)({mode:"search",placeholder:n,tabIndex:e.option("tabIndex"),value:e.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":n},onValueChanged:function(t){var n=e.option("searchTimeout");e._valueChangeDeferred=new s.Deferred,clearTimeout(e._valueChangeTimeout),e._valueChangeDeferred.done(function(){this.option("searchValue",t.value)}.bind(e)),t.event&&"input"===t.event.type&&n?e._valueChangeTimeout=setTimeout((function(){e._valueChangeDeferred.resolve()}),n):e._valueChangeDeferred.resolve()}},t)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(e,t){this.option("searchEnabled")&&this._toggleFocusClass(t,this.$element()),this.callBase(e,t)},getOperationBySearchMode:function(e){return"equals"===e?"=":e},_cleanAria:function(e){this.setAria({role:null,activedescendant:null},e),e.attr("tabIndex",null)},_optionChanged:function(e){switch(e.name){case"searchEnabled":case"searchEditorOptions":this._cleanAria(this.option("searchEnabled")?this.$element():this._itemContainer()),this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void r.default.log("W1009");"searchMode"===e.name?this._dataSource.searchOperation(this.getOperationBySearchMode(e.value)):this._dataSource[e.name](e.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(e)}},focus:function(){this.option("focusedElement")||!this.option("searchEnabled")?this.callBase():this._searchEditor&&this._searchEditor.focus()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()},setEditorClass:function(e){u=e}};t.default=d,e.exports=t.default,e.exports.default=t.default},14390:function(e,t,n){t.default=void 0;var i=g(n(68374)),o=g(n(62414)),a=g(n(13046)),r=n(72918),s=n(20576),l=n(95479),u=n(13306),d=n(31421),c=n(89386),h=n(35922),f=g(n(20530)),p=n(58020);function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){e="role"===e||"id"===e?e:"aria-".concat(e),t=(0,h.isDefined)(t)?t.toString():null,n.attr(e,t)}n(95429),n(91633),n(24028);var _=a.default.inherit({_feedbackHideTimeout:400,_feedbackShowTimeout:30,_supportedKeys:function(){return{}},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{hoveredElement:null,isActive:!1,disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:void 0,onFocusIn:null,onFocusOut:null,onKeyboardHandled:null,ignoreParentReadOnly:!1,useResizeObserver:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=f.default.real(),t=e.platform,n=e.version;return"ios"===t&&(0,p.compare)(n,"13.3")<=0||"android"===t&&(0,p.compare)(n,"4.4.4")<=0},options:{useResizeObserver:!1}}])},_init:function(){this.callBase(),this._initContentReadyAction()},_innerWidgetOptionChanged:function(e,t){var n=_.getOptionsFromContainer(t);e&&e.option(n),this._options.cache(t.name,n)},_bindInnerWidgetOptions:function(e,t){var n=this,i=function(){return n._options.silent(t,(0,u.extend)({},e.option()))};i(),e.on("optionChanged",i)},_getAriaTarget:function(){return this._focusTarget()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){var e=this.option(),t=e.disabled,n=e.visible;this.$element().addClass("dx-widget"),this._toggleDisabledState(t),this._toggleVisibility(n),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents(),this._toggleIndependentState()},_renderHint:function(){var e=this.option().hint;this.$element().attr("title",e||null)},_renderContent:function(){var e=this;(0,s.deferRender)((function(){return e._disposed?void 0:e._renderContentImpl()})).done((function(){return e._disposed?void 0:e._fireContentReadyAction()}))},_renderContentImpl:s.noop,_fireContentReadyAction:(0,s.deferRenderer)((function(){return this._contentReadyAction()})),_dispose:function(){this._contentReadyAction=null,this._detachKeyboardEvents(),this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass("dx-state-invisible",!e),this.setAria("hidden",!e||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget(),t=this.option().accessKey;e.attr("accesskey",t)},_isFocusable:function(){var e=this.option(),t=e.focusStateEnabled,n=e.disabled;return t&&!n},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var e=this._eventBindingTarget();return this._activeStateUnit?e.find(this._activeStateUnit).not(".dx-state-disabled"):e},_renderFocusTarget:function(){var e=this.option().tabIndex;this._focusTarget().attr("tabIndex",e)},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget:function(){return this._focusTarget()},_focusInHandler:function(e){var t=this;e.isDefaultPrevented()||this._createActionByOption("onFocusIn",{beforeExecute:function(){return t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})},_focusOutHandler:function(e){var t=this;e.isDefaultPrevented()||this._createActionByOption("onFocusOut",{beforeExecute:function(){return t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState:function(e,t){var n=e.target;-1!==(0,c.inArray)(n,this._focusTarget())&&this._toggleFocusClass(t,(0,i.default)(n))},_toggleFocusClass:function(e,t){(t&&t.length?t:this._focusTarget()).toggleClass("dx-state-focused",e)},_hasFocusClass:function(e){return(0,i.default)(e||this._focusTarget()).hasClass("dx-state-focused")},_isFocused:function(){return this._hasFocusClass()},_getKeyboardListeners:function(){return[]},_attachKeyboardEvents:function(){var e=this;this._detachKeyboardEvents();var t=this.option(),n=t.focusStateEnabled,i=t.onKeyboardHandled,o=this._getKeyboardListeners().length;(n||o||i)&&(this._keyboardListenerId=r.keyboard.on(this._keyboardEventBindingTarget(),this._focusTarget(),(function(t){return e._keyboardHandler(t)})))},_keyboardHandler:function(e,t){if(!t){var n=e.originalEvent,i=e.keyName,o=e.which,a=this._supportedKeys(n),r=a[i]||a[o];if(void 0!==r&&!r.bind(this)(n,e))return!1}var s=this._getKeyboardListeners(),l=this.option().onKeyboardHandled;return s.forEach((function(t){return t&&t._keyboardHandler(e)})),l&&l(e),!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){this._focusTarget().removeAttr("tabIndex"),this._toggleFocusClass(!1),this._detachFocusEvents(),this._detachKeyboardEvents()},_detachKeyboardEvents:function(){r.keyboard.off(this._keyboardListenerId),this._keyboardListenerId=null},_attachHoverEvents:function(){var e=this,t=this.option().hoverStateEnabled,n=this._activeStateUnit,a="UIFeedback",s=this._eventBindingTarget();r.hover.off(s,{selector:n,namespace:a}),t&&r.hover.on(s,new o.default((function(t){var n=t.event,o=t.element;e._hoverStartHandler(n),e.option("hoveredElement",(0,i.default)(o))}),{excludeValidators:["readOnly"]}),(function(t){e.option("hoveredElement",null),e._hoverEndHandler(t)}),{selector:n,namespace:a})},_attachFeedbackEvents:function(){var e=this,t=this.option().activeStateEnabled,n=this._activeStateUnit,a="UIFeedback",s=this._eventBindingTarget();r.active.off(s,{namespace:a,selector:n}),t&&r.active.on(s,new o.default((function(t){var n=t.event,o=t.element;return e._toggleActiveState((0,i.default)(o),!0,n)})),new o.default((function(t){var n=t.event,o=t.element;return e._toggleActiveState((0,i.default)(o),!1,n)}),{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:n,namespace:a})},_detachFocusEvents:function(){var e=this._focusEventTarget();r.focus.off(e,{namespace:"".concat(this.NAME,"Focus")})},_attachFocusEvents:function(){var e=this,t=this._focusEventTarget();r.focus.on(t,(function(t){return e._focusInHandler(t)}),(function(t){return e._focusOutHandler(t)}),{namespace:"".concat(this.NAME,"Focus"),isFocusable:function(e,t){return(0,i.default)(t).is(d.focusable)}})},_hoverStartHandler:s.noop,_hoverEndHandler:s.noop,_toggleActiveState:function(e,t){this.option("isActive",t),e.toggleClass("dx-state-active",t)},_updatedHover:function(){var e=this._options.silent("hoveredElement");this._hover(e,e)},_findHoverTarget:function(e){return e&&e.closest(this._activeStateUnit||this._eventBindingTarget())},_hover:function(e,t){var n=this.option(),i=n.hoverStateEnabled,o=n.disabled,a=n.isActive;if((t=this._findHoverTarget(t))&&t.toggleClass("dx-state-hover",!1),e&&i&&!o&&!a){var r=this._findHoverTarget(e);r&&r.toggleClass("dx-state-hover",!0)}},_toggleDisabledState:function(e){this.$element().toggleClass("dx-state-disabled",Boolean(e)),this.setAria("disabled",e||void 0)},_toggleIndependentState:function(){this.$element().toggleClass("dx-state-independent",this.option("ignoreParentReadOnly"))},_setWidgetOption:function(e,t){var n=this;if(this[e])if((0,h.isPlainObject)(t[0]))(0,l.each)(t[0],(function(t,i){return n._setWidgetOption(e,[t,i])}));else{var i=t[0],o=t[1];1===t.length&&(o=this.option(i));var a=this["".concat(e,"OptionMap")];this[e].option(a?a(i):i,o)}},_optionChanged:function(e){var t=e.name,n=e.value,i=e.previousValue;switch(t){case"disabled":this._toggleDisabledState(n),this._updatedHover(),this._refreshFocusState();break;case"hint":this._renderHint();break;case"ignoreParentReadOnly":this._toggleIndependentState();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents(),this._updatedHover();break;case"tabIndex":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":case"useResizeObserver":break;case"accessKey":this._renderAccessKey();break;case"hoveredElement":this._hover(n,i);break;case"isActive":this._updatedHover();break;case"visible":this._toggleVisibility(n),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(n?"shown":"hiding");break;case"onKeyboardHandled":this._attachKeyboardEvents();break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){var e=this.option().visible;return this.callBase()&&e},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){if(0===arguments.length)return this._isReady;this._isReady=e},setAria:function(){if((0,h.isPlainObject)(arguments.length<=0?void 0:arguments[0])){var e=(arguments.length<=1?void 0:arguments[1])||this._getAriaTarget();(0,l.each)(arguments.length<=0?void 0:arguments[0],(function(t,n){return m(t,n,e)}))}else m(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],(arguments.length<=2?void 0:arguments[2])||this._getAriaTarget())},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){r.focus.trigger(this._focusTarget())},registerKeyHandler:function(e,t){var n=this._supportedKeys();this._supportedKeys=function(){return(0,u.extend)(n,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t))}}});_.getOptionsFromContainer=function(e){var t=e.name,n=e.fullName,i=e.value,o={};return t===n?o=i:o[n.split(".").pop()]=i,o};var v=_;t.default=v,e.exports=t.default,e.exports.default=t.default},72672:function(e,t,n){t.hideWave=p,t.render=t.initConfig=void 0,t.showWave=d;var i,o=n(58664),a=(i=n(68374))&&i.__esModule?i:{default:i},r="dx-inkripple-showing",s="dx-inkripple-hiding",l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.useHoldAnimation,n=e.waveSizeCoefficient,i=e.isCentered,o=e.wavesNumber;return{waveSizeCoefficient:n||2,isCentered:i||!1,wavesNumber:o||1,durations:h(null==t||t)}};t.initConfig=l,t.render=function(e){var t=l(e);return{showWave:d.bind(this,t),hideWave:p.bind(this,t)}};var u=function(e,t){for(var n=function(e){var t=e.children(".dx-inkripple");return 0===t.length&&(t=(0,a.default)("<div>").addClass("dx-inkripple").appendTo(e)),t}((0,a.default)(e)),i=n.children(".dx-inkripple-wave").toArray(),o=i.length;o<t;o++){var r=(0,a.default)("<div>").appendTo(n).addClass("dx-inkripple-wave");i.push(r[0])}return(0,a.default)(i)};function d(e,t){var n=u(t.element,e.wavesNumber).eq(t.wave||0);e.hidingTimeout&&clearTimeout(e.hidingTimeout),f(n),n.css(function(e,t){var n,i,r=(0,a.default)(t.element),s=(0,o.getOuterWidth)(r),l=(0,o.getOuterHeight)(r),u=parseInt(Math.sqrt(s*s+l*l)),d=Math.min(4e3,parseInt(u*e.waveSizeCoefficient));if(e.isCentered)n=(s-d)/2,i=(l-d)/2;else{var c=t.event,h=r.offset();n=c.pageX-h.left-d/2,i=c.pageY-h.top-d/2}return{left:n,top:i,height:d,width:d}}(e,t)),e.showingTimeout=setTimeout(c.bind(this,e,n),0)}function c(e,t){var n=e.durations.showingScale+"ms";t.addClass(r).css("transitionDuration",n)}function h(e){return{showingScale:e?1e3:300,hidingScale:300,hidingOpacity:300}}function f(e){e.removeClass(s).css("transitionDuration","")}function p(e,t){e.showingTimeout&&clearTimeout(e.showingTimeout);var n=u(t.element,t.wavesNumber).eq(t.wave||0),i=e.durations,o=i.hidingScale+"ms, "+i.hidingOpacity+"ms";n.addClass(s).removeClass(r).css("transitionDuration",o);var a=Math.max(i.hidingScale,i.hidingOpacity);e.hidingTimeout=setTimeout(f.bind(this,n),a)}},53805:function(e,t,n){t.default=void 0;var i=n(19157),o={logarithmic:"logarithmic",discrete:"discrete",numeric:"numeric",left:"left",right:"right",top:"top",bottom:"bottom",center:"center",horizontal:"horizontal",vertical:"vertical",convertTicksToValues:function(e){return(0,i.map)(e||[],(function(e){return e.value}))},validateOverlappingMode:function(e){return"ignore"===e||"none"===e?e:"hide"},getTicksCountInRange:function(e,t,n){var i=1;if(e.length>1)for(;i<e.length&&!(Math.abs(e[i].coords[t]-e[0].coords[t])>=n);i++);return i},areLabelsOverlap:function(e,t,n,i){var o=e.x>t.x,a=e.y>t.y,r=e.x,s=t.x,l=e.width,u=t.width;"left"===i?(r+=l/2,s+=u/2):"right"===i&&(r-=l/2,s-=u/2);var d=o?s+u+n>r:r+l+n>s,c=a?t.y+t.height>e.y:e.y+e.height>t.y;return d&&c}};t.default=o,e.exports=t.default,e.exports.default=t.default},32945:function(e,t){t.measureLabels=t.calculateCanvasMargins=void 0;var n=Math.max;t.calculateCanvasMargins=function(e,t){var i=t.left,o=t.top,a=t.width-t.right,r=t.height-t.bottom;return e.reduce((function(e,t){return!t||t.isEmpty?e:{left:n(e.left,i-t.x),top:n(e.top,o-t.y),right:n(e.right,t.x+t.width-a),bottom:n(e.bottom,t.y+t.height-r)}}),{left:0,right:0,top:0,bottom:0})},t.measureLabels=function(e){e.forEach((function(e){var t=e.getContentContainer();e.labelBBox=t?t.getBBox():{x:0,y:0,width:0,height:0}}))}},41278:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.Axis=void 0;var o=n(41583),a=n(19157),r=n(35922),s=k(n(53805)),l=n(13306),u=n(89386),d=k(n(30343)),c=n(8587),h=n(45971),f=n(87276),p=n(21177),g=n(41013),m=n(60810),_=k(n(91198)),v=n(20576),y=k(n(99415)),x=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(4331)),b=k(n(87713)),w=k(n(54978)),C=n(62754),S=n(32945);function k(e){return e&&e.__esModule?e:{default:e}}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=s.default.convertTicksToValues,T=Math,E=T.abs,A=T.max,O=T.min,P=Array.isArray,M=s.default.top,R=s.default.bottom,B=s.default.left,V=s.default.right,F=s.default.center,L="keep",H="shift",N="reset",z="rotate",W=864e5,G=6048e5;function j(e,t,n,i,o,a){var r,s=a.allowNegatives,l=a.linearThreshold;return(0,h.tickGenerator)({axisType:e.type,dataType:e.dataType,logBase:e.logarithmBase,allowNegatives:s,linearThreshold:l,axisDivisionFactor:o(e.axisDivisionFactor||50),minorAxisDivisionFactor:o(e.minorAxisDivisionFactor||15),numberMultipliers:e.numberMultipliers,calculateMinors:e.minorTick.visible||e.minorGrid.visible||e.calculateMinors,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:t,firstDayOfWeek:null===(r=e.workWeek)||void 0===r?void 0:r[0],skipTickGeneration:n,skipCalculationLimits:e.skipCalculationLimits,generateExtraTick:e.generateExtraTick,minTickInterval:e.minTickInterval,rangeIsEmpty:i})}function q(e,t,n){var i=e.getOptions();return(0,g.tick)(e,t,i.tick,i.grid,n,!1)}function $(e,t){var n=e.getOptions();return(0,g.tick)(e,t,n.minorTick,n.minorGrid)}function K(e,t,n){var i=e.getOptions();return(0,g.tick)(e,t,(0,l.extend)({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,n?-1:1)}function U(e,t,n,i){(e||[]).forEach((function(e){return e[t](n,i)}))}function Y(e){U(e,"initCoords")}function Z(e,t){U(e,"drawMark",t)}function X(e,t){U(e,"drawGrid",t)}function Q(e,t,n){U(e,"updateTickPosition",t,n)}function J(e,t){U(e,"updateGridPosition",t)}function ee(e){for(var t=e.length-1;t>=0&&te(e,t);t--);for(t=0;t<e.length&&te(e,t);t++)t--}function te(e,t){return(null===e[t].coords.x||null===e[t].coords.y)&&(e.splice(t,1),!0)}function ne(e,t){return 180*T.asin((e[0].height+t.minSpacing)/(e[1].x-e[0].x))/T.PI<45?-45:-90}function ie(e,t,n){e.forEach((function(e,i){e.getContentContainer()&&(i%t!=0?e.removeLabel():n&&n(e,i))}))}function oe(e,t){return void 0===e?t:null===e?void 0:e}var ae=function(e){var t=this;t._renderer=e.renderer,t._incidentOccurred=e.incidentOccurred,t._eventTrigger=e.eventTrigger,t._stripsGroup=e.stripsGroup,t._stripLabelAxesGroup=e.stripLabelAxesGroup,t._labelsAxesGroup=e.labelsAxesGroup,t._constantLinesGroup=e.constantLinesGroup,t._scaleBreaksGroup=e.scaleBreaksGroup,t._axesContainerGroup=e.axesContainerGroup,t._gridContainerGroup=e.gridGroup,t._axisCssPrefix=e.widgetClass+"-"+(e.axisClass?e.axisClass+"-":""),t._setType(e.axisType,e.drawingType),t._createAxisGroups(),t._translator=t._createTranslator(),t.isArgumentAxis=e.isArgumentAxis,t._viewport={},t._firstDrawing=!0,t._initRange={},t._getTemplate=e.getTemplate};t.Axis=ae,ae.prototype={constructor:ae,_drawAxis:function(){var e=this._options;e.visible&&(this._axisElement=this._createAxisElement(),this._updateAxisElementPosition(),this._axisElement.attr({"stroke-width":e.width,stroke:e.color,"stroke-opacity":e.opacity}).sharp(this._getSharpParam(!0),this.getAxisSharpDirection()).append(this._axisLineGroup))},_createPathElement:function(e,t,n){return this.sharp(this._renderer.path(e,"line").attr(t),n)},sharp:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.sharp(this._getSharpParam(),t)},customPositionIsAvailable:function(){return!1},getOrthogonalAxis:v.noop,getCustomPosition:v.noop,getCustomBoundaryPosition:v.noop,resolveOverlappingForCustomPositioning:v.noop,hasNonBoundaryPosition:function(){return!1},customPositionIsBoundaryOrthogonalAxis:function(){return!1},getResolvedBoundaryPosition:function(){return this.getOptions().position},getAxisSharpDirection:function(){var e=this.getResolvedBoundaryPosition();return this.hasNonBoundaryPosition()||e!==R&&e!==V?1:-1},getSharpDirectionByCoords:function(e){var t=this._getCanvasStartEnd(),n=Math.max(t.start,t.end);return this.getRadius?0:n!==e[this._isHorizontal?"x":"y"]?1:-1},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return i.points?e._createPathElement(i.points,n,e.getSharpDirectionByCoords(t.coords)):null}},_getGridPoints:function(e){var t=this,n=this._isHorizontal,i=n?"x":"y",o=this._orthogonalPositions,a=o.start,r=o.end,s=t.borderOptions,l=n?B:M,u=n?V:R,d=t.getCanvas(),c={left:d.left,right:d.width-d.right,top:d.top,bottom:d.height-d.bottom},h=4+(s.visible&&s[l]?c[l]:void 0),f=(s.visible&&s[u]?c[u]:void 0)-4;return t.areCoordsOutsideAxis(e)||void 0===e[i]||e[i]<h||e[i]>f?{points:null}:{points:n?null!==e[i]?[e[i],a,e[i],r]:null:null!==e[i]?[a,e[i],r,e[i]]:null}},_getConstantLinePos:function(e,t,n){var i=this._getTranslatedCoord(e);if(!(!(0,r.isDefined)(i)||i<O(t,n)||i>A(t,n)))return i},_getConstantLineGraphicAttributes:function(e){var t=this._orthogonalPositions.start,n=this._orthogonalPositions.end;return{points:this._isHorizontal?[e,t,e,n]:[t,e,n,e]}},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t,(n=e,i=this._getCanvasStartEnd(),Math.max(i.start,i.end)!==n?1:-1));var n,i},_drawConstantLineLabelText:function(e,t,n,i,o){var r=i.font,s=i.cssClass;return this._renderer.text(e,t,n).css((0,a.patchFontOptions)((0,l.extend)({},this._options.label.font,r))).attr({align:"center",class:s}).append(o)},_drawConstantLineLabels:function(e,t,n,i){var o,a=this,r=t.text,s=a._options.label;a._checkAlignmentConstantLineLabels(t),r=null!==(o=r)&&void 0!==o?o:a.formatLabel(e,s);var l=a._getConstantLineLabelsCoords(n,t);return a._drawConstantLineLabelText(r,l.x,l.y,t,i)},_getStripPos:function(e,t,n,i,o){var a,s,l,d,c,h=!(!o.minVisible&&!o.maxVisible),f=(o.categories||[]).reduce((function(e,t){return e.push(t.valueOf()),e}),[]);if(!h&&(0,r.isDefined)(e)&&(0,r.isDefined)(t)){var p=this.parser(e),g=this.parser(t);if(d=(0,u.inArray)((0,r.isDefined)(p)?p.valueOf():void 0,f),c=(0,u.inArray)((0,r.isDefined)(g)?g.valueOf():void 0,f),-1===d||-1===c)return{from:0,to:0,outOfCanvas:!0};d>c&&(l=t,t=e,e=l)}(0,r.isDefined)(e)?(e=this.validateUnit(e,"E2105","strip"),a=this._getTranslatedCoord(e,-1)):a=n,(0,r.isDefined)(t)?(t=this.validateUnit(t,"E2105","strip"),s=this._getTranslatedCoord(t,1)):s=i;var m=a<s?{from:a,to:s}:{from:s,to:a},_=this.getVisibleArea();return(m.from<=_[0]&&m.to<=_[0]||m.from>=_[1]&&m.to>=_[1])&&(m.outOfCanvas=!0),m},_getStripGraphicAttributes:function(e,t){var n,i,o,a,r=this._orthogonalPositions,s=r.start,l=r.end;return this._isHorizontal?(n=e,i=O(s,l),o=t-e,a=E(s-l)):(n=O(s,l),i=e,o=E(s-l),a=E(e-t)),{x:n,y:i,width:o,height:a}},_createStrip:function(e){return this._renderer.rect(e.x,e.y,e.width,e.height)},_adjustStripLabels:function(){var e=this;this._strips.forEach((function(t){t.label&&t.label.attr(e._getAdjustedStripLabelCoords(t))}))},_adjustLabelsCoord:function(e,t,n){var i=this,o=function(o){return i._getLabelAdjustedCoord(o,e+(o.labelOffset||0),t,n)};this._majorTicks.forEach((function(e){e.label?(e.updateMultilineTextAlignment(),e.label.attr(o(e))):e.templateContainer&&e.templateContainer.attr(o(e))}))},_adjustLabels:function(e){var t=this,n=t.getOptions(),i=n.position===n.label.position,o=t._majorTicks.reduce((function(e,t){if(!t.getContentContainer())return e;var n=t.labelRotationAngle?(0,a.rotateBBox)(t.labelBBox,[t.labelCoords.x,t.labelCoords.y],-t.labelRotationAngle):t.labelBBox;return{width:A(e.width||0,n.width),height:A(e.height||0,n.height),offset:A(e.offset||0,t.labelOffset||0)}}),{}),r=i?t._isHorizontal?o.height:o.width:0;return t._adjustLabelsCoord(e,o.width),e+r+(r&&t._options.label.indentFromAxis)+(i?o.offset:0)},_getLabelAdjustedCoord:function(e,t,n){t=t||0;var i,o,r=this,s=r._options,l=e.templateContainer&&e.templateContainer.getBBox()||(0,a.rotateBBox)(e.labelBBox,[e.labelCoords.x,e.labelCoords.y],-e.labelRotationAngle||0),u=e.labelAlignment||s.label.alignment,d="discrete"===r._options.type,c=e.labelRotationAngle%90==0,h=s.label.indentFromAxis,f=s.label.position,p=r._axisPosition,g=e.labelCoords,m=g.x;return r._isHorizontal?(o=f===R?p+h-l.y+t:p-h-(l.y+l.height)-t,i=u===V?d&&c?e.coords.x-(l.x+l.width):m-l.x-l.width:u===B?d&&c?m-l.x-(e.coords.x-m):m-l.x:m-l.x-l.width/2):(o=g.y-l.y-l.height/2,f===B?(i=u===B?p-h-n-l.x:u===F?p-h-n/2-l.x-l.width/2:p-h-l.x-l.width,i-=t):(i=u===V?p+h+n-l.x-l.width:u===F?p+h+n/2-l.x-l.width/2:p+h-l.x,i+=t)),{translateX:i,translateY:o}},_createAxisConstantLineGroups:function(){var e=this._renderer,t=this._axisCssPrefix+"constant-lines",n=e.g().attr({class:t}),i=e.g().attr({class:t}),o=e.g().attr({class:t});return{inside:n,outside1:i,left:i,top:i,outside2:o,right:o,bottom:o,remove:function(){this.inside.remove(),this.outside1.remove(),this.outside2.remove()},clear:function(){this.inside.clear(),this.outside1.clear(),this.outside2.clear()}}},_createAxisGroups:function(){var e=this,t=e._renderer,n=e._axisCssPrefix;e._axisGroup=t.g().attr({class:n+"axis"}).enableLinks(),e._axisStripGroup=t.g().attr({class:n+"strips"}),e._axisGridGroup=t.g().attr({class:n+"grid"}),e._axisElementsGroup=t.g().attr({class:n+"elements"}),e._axisLineGroup=t.g().attr({class:n+"line"}).linkOn(e._axisGroup,"axisLine").linkAppend(),e._axisTitleGroup=t.g().attr({class:n+"title"}).append(e._axisGroup),e._axisConstantLineGroups={above:e._createAxisConstantLineGroups(),under:e._createAxisConstantLineGroups()},e._axisStripLabelGroup=t.g().attr({class:n+"axis-labels"})},_clearAxisGroups:function(){var e=this;e._axisGroup.remove(),e._axisStripGroup.remove(),e._axisStripLabelGroup.remove(),e._axisConstantLineGroups.above.remove(),e._axisConstantLineGroups.under.remove(),e._axisGridGroup.remove(),e._axisTitleGroup.clear(),e._options.label.template&&e.isRendered()||(e._axisElementsGroup.remove(),e._axisElementsGroup.clear()),e._axisLineGroup&&e._axisLineGroup.clear(),e._axisStripGroup&&e._axisStripGroup.clear(),e._axisGridGroup&&e._axisGridGroup.clear(),e._axisConstantLineGroups.above.clear(),e._axisConstantLineGroups.under.clear(),e._axisStripLabelGroup&&e._axisStripLabelGroup.clear()},_getLabelFormatObject:function(e,t,n,i,a,r){n=n||this._getViewportRange();var s={value:e,valueText:(0,o.smartFormatter)(e,{labelOptions:t,ticks:r||I(this._majorTicks),tickInterval:null!=a?a:this._tickInterval,dataType:this._options.dataType,logarithmBase:this._options.logarithmBase,type:this._options.type,showTransition:!this._options.marker.visible,point:i})||"",min:n.minVisible,max:n.maxVisible};return i&&(s.point=i),s},formatLabel:function(e,t,n,i,o,a){var s=this._getLabelFormatObject(e,t,n,i,o,a);return(0,r.isFunction)(t.customizeText)?t.customizeText.call(s,s):s.valueText},formatHint:function(e,t,n){var i=this._getLabelFormatObject(e,t,n);return(0,r.isFunction)(t.customizeHint)?t.customizeHint.call(i,i):void 0},formatRange:function(e,t,n){return(0,o.formatRange)(e,t,n,this.getOptions())},_setTickOffset:function(){var e=this._options.discreteAxisDivisionMode;this._tickOffset=+("crossLabels"!==e||!e)},resetApplyingAnimation:function(e){this._resetApplyingAnimation=!0,e&&(this._firstDrawing=!0)},isFirstDrawing:function(){return this._firstDrawing},getMargins:function(){var e,t,n=this,i=n._options,o=i.position,a=i.offset,s=i.customPosition,l=i.placeholderSize,u=i.grid,d=i.tick,c=i.crosshairMargin,h=(0,r.isDefined)(s),f=n.getResolvedBoundaryPosition(),p=n.getCanvas(),g=p.left,m=p.top,_=p.width-p.right,v=p.height-p.bottom,y=A(u.visible&&u.width||0,d.visible&&d.width||0),x=n._axisConstantLineGroups.above,b=n._axisConstantLineGroups.under,w=[n._axisElementsGroup,x.outside1,x.outside2,b.outside1,b.outside2,n._axisLineGroup].map((function(e){return e&&e.getBBox()})).concat((!(t=(e=n._axisTitleGroup)&&e.getBBox())||t.isEmpty||(n._isHorizontal?(t.x=g,t.width=_-g):(t.y=m,t.height=v-m)),t)),C=(0,S.calculateCanvasMargins)(w,p);if(C[o]+=c,n.hasNonBoundaryPosition()&&h&&(C[f]=0),l&&(C[o]=l),y&&(n._isHorizontal&&p.right<y&&C.right<y&&(C.right=y),!n._isHorizontal&&p.bottom<y&&C.bottom<y&&(C.bottom=y)),!h&&(0,r.isDefined)(a)){var k=n.customPositionIsBoundary()&&(a>0&&(f===B||f===M)||a<0&&(f===V||f===R));C[f]-=k?a:0}return C},validateUnit:function(e,t,n){return void 0===(e=this.parser(e))&&t&&this._incidentOccurred(t,[n]),e},_setType:function(e,t){var n;switch(e){case"xyAxes":n=y.default;break;case"polarAxes":n=x}(0,l.extend)(this,n[t])},_getSharpParam:function(){return!0},_disposeBreaksGroup:v.noop,dispose:function(){var e=this;[e._axisElementsGroup,e._axisStripGroup,e._axisGroup].forEach((function(e){e.dispose()})),e._strips=e._title=null,e._axisStripGroup=e._axisConstantLineGroups=e._axisStripLabelGroup=e._axisBreaksGroup=null,e._axisLineGroup=e._axisElementsGroup=e._axisGridGroup=null,e._axisGroup=e._axisTitleGroup=null,e._axesContainerGroup=e._stripsGroup=e._constantLinesGroup=e._labelsAxesGroup=null,e._renderer=e._options=e._textOptions=e._textFontStyles=null,e._translator=null,e._majorTicks=e._minorTicks=null,e._disposeBreaksGroup(),e._templatesRendered&&e._templatesRendered.reject()},getOptions:function(){return this._options},setPane:function(e){this.pane=e,this._options.pane=e},setTypes:function(e,t,n){this._options.type=e||this._options.type,this._options[n]=t||this._options[n],this._updateTranslator()},resetTypes:function(e){this._options.type=this._initTypes.type,this._options[e]=this._initTypes[e]},getTranslator:function(){return this._translator},updateOptions:function(e){var t=this,n=e.label;!function(e){var t,n,i,o=e.label,a=e.position,r=e.isHorizontal?R:B,s=e.isHorizontal?M:V,l=o.position;(a!==r&&a!==s&&(a=r),l&&"outside"!==l)?"inside"===l&&(l=(i={},D(i,M,R),D(i,R,M),D(i,B,V),D(i,V,B),i)[a]):l=a;l!==r&&l!==s&&(l=a),o.alignment===F||o.userAlignment||(o.alignment=(n={},D(n,M,F),D(n,R,F),D(n,B,V),D(n,V,B),n)[l]),e.position=a,o.position=l,e.hoverMode=e.hoverMode?e.hoverMode.toLowerCase():"none",o.minSpacing=null!==(t=o.minSpacing)&&void 0!==t?t:5,e.type&&(e.type=e.type.toLowerCase()),e.argumentType&&(e.argumentType=e.argumentType.toLowerCase()),e.valueType&&(e.valueType=e.valueType.toLowerCase())}(e),t._options=e,e.tick=e.tick||{},e.minorTick=e.minorTick||{},e.grid=e.grid||{},e.minorGrid=e.minorGrid||{},e.title=e.title||{},e.marker=e.marker||{},t._initTypes={type:e.type,argumentType:e.argumentType,valueType:e.valueType},t._setTickOffset(),t._isHorizontal=e.isHorizontal,t.pane=e.pane,t.name=e.name,t.priority=e.priority,t._hasLabelFormat=""!==n.format&&(0,r.isDefined)(n.format),t._textOptions={opacity:n.opacity,align:"center",class:n.cssClass},t._textFontStyles=(0,a.patchFontOptions)(n.font),e.type===s.default.logarithmic&&e.logarithmBaseError&&(t._incidentOccurred("E2104"),delete e.logarithmBaseError),t._updateTranslator(),t._createConstantLines(),t._strips=(e.strips||[]).map((function(e){return(0,w.default)(t,e)})),t._majorTicks=t._minorTicks=null,t._firstDrawing=!0},calculateInterval:function(e,t){var n=this._options;if(!n||n.type!==s.default.logarithmic)return E(e-t);var i=new p.Range(this.getTranslator().getBusinessRange()),o=i.allowNegatives,r=i.linearThreshold;return E((0,a.getLogExt)(e,n.logarithmBase,o,r)-(0,a.getLogExt)(t,n.logarithmBase,o,r))},getCanvasRange:function(){var e=this._translator;return{startValue:e.from(e.translate("canvas_position_start")),endValue:e.from(e.translate("canvas_position_end"))}},_processCanvas:function(e){return e},updateCanvas:function(e,t){if(t)this._orthogonalPositions=null;else{var n=this._orthogonalPositions={start:this._isHorizontal?e.top:e.left,end:this._isHorizontal?e.height-e.bottom:e.width-e.right};n.center=n.start+(n.end-n.start)/2}this._canvas=e,this._translator.updateCanvas(this._processCanvas(e)),this._initAxisPositions()},getCanvas:function(){return this._canvas},getAxisShift:function(){return this._axisShift||0},hideTitle:function(){var e=this;e._options.title.text&&(e._incidentOccurred("W2105",[e._isHorizontal?"horizontal":"vertical"]),e._axisTitleGroup.clear())},getTitle:function(){return this._title},hideOuterElements:function(){var e=this;!e._options.label.visible&&!e._outsideConstantLines.length||e._translator.getBusinessRange().isEmpty()||(e._incidentOccurred("W2106",[e._isHorizontal?"horizontal":"vertical"]),e._axisElementsGroup.clear(),U(e._outsideConstantLines,"removeLabel"))},_resolveLogarithmicOptionsForRange:function(e){var t=this._options;t.type===s.default.logarithmic&&(e.addRange({allowNegatives:void 0!==t.allowNegatives?t.allowNegatives:e.min<=0}),isNaN(t.linearThreshold)||(e.linearThreshold=t.linearThreshold))},adjustViewport:function(e){var t=this,n=t._options,i=n.type===s.default.discrete,o=t._seriesData&&t._seriesData.categories||[],l=t.adjustRange((0,a.getVizRangeObject)(n.wholeRange)),u=t.getViewport()||{},d=new p.Range(e);t._addConstantLinesToRange(d,"minVisible","maxVisible");var c=(0,r.isDefined)(u.startValue),h=(0,r.isDefined)(u.endValue);i||(c=c&&(!(0,r.isDefined)(l.endValue)||u.startValue<l.endValue),h=h&&(!(0,r.isDefined)(l.startValue)||u.endValue>l.startValue));var f,g,m=c?u.startValue:d.minVisible,_=h?u.endValue:d.maxVisible;i?(o=(0,a.getCategoriesInfo)(o,l.startValue,l.endValue).categories,d.categories=o):(d.min=null!==(f=l.startValue)&&void 0!==f?f:d.min,d.max=null!==(g=l.endValue)&&void 0!==g?g:d.max);var v=(0,a.adjustVisualRange)({axisType:n.type,dataType:n.dataType,base:n.logarithmBase},{startValue:c?u.startValue:void 0,endValue:h?u.endValue:void 0,length:u.length},{categories:o,min:l.startValue,max:l.endValue},{categories:o,min:m,max:_});return d.minVisible=v.startValue,d.maxVisible=v.endValue,!(0,r.isDefined)(d.min)&&(d.min=d.minVisible),!(0,r.isDefined)(d.max)&&(d.max=d.maxVisible),d.addRange({}),t._resolveLogarithmicOptionsForRange(d),d},adjustRange:function(e){e=e||{};var t=this._options.type===s.default.discrete,n=this._options.type===s.default.logarithmic,i=!1===this._options.allowNegatives;if(n&&(e.startValue=i&&e.startValue<=0?null:e.startValue,e.endValue=i&&e.endValue<=0?null:e.endValue),!t&&(0,r.isDefined)(e.startValue)&&(0,r.isDefined)(e.endValue)&&e.startValue>e.endValue){var o=e.endValue;e.endValue=e.startValue,e.startValue=o}return e},_getVisualRangeUpdateMode:function(e,t,n){var i=this._options.visualRangeUpdateMode,o=this._translator,a=this._seriesData;if(this.isArgumentAxis){if(-1===[H,L,N].indexOf(i))if(a.axisType===s.default.discrete){var r=a.categories,l=t.categories,u=this.visualRange();i=r&&l&&r.length&&-1!==l.map((function(e){return e.valueOf()})).join(",").indexOf(r.map((function(e){return e.valueOf()})).join(","))&&(u.startValue.valueOf()!==r[0].valueOf()||u.endValue.valueOf()!==r[r.length-1].valueOf())?L:N}else{var d=o.translate(a.min),c=o.translate(e.startValue),h=o.translate(a.max),f=o.translate(e.endValue);i=d===c&&h===f?N:d!==c&&h===f?H:L}}else-1===[L,N].indexOf(i)&&(i=n===L?L:N);return i},_handleBusinessRangeChanged:function(e,t,n){var i=this,o=this.visualRange();if(!t&&!i._translator.getBusinessRange().isEmpty()){var a=i._lastVisualRangeUpdateMode=i._getVisualRangeUpdateMode(o,n,e),s=i.getViewport();(0,r.isDefined)(s.startValue)||(0,r.isDefined)(s.endValue)||(0,r.isDefined)(s.length)?i._prevDataWasEmpty&&(a=L):a=N,a===L&&i._setVisualRange([o.startValue,o.endValue]),a===N&&i._setVisualRange([null,null]),a===H&&i._setVisualRange({length:i.getVisualRangeLength()})}},getVisualRangeLength:function(e){var t=e||this._translator.getBusinessRange(),n=this._options.type;return n===s.default.logarithmic?(0,m.adjust)(this.calculateInterval(t.maxVisible,t.minVisible)):n===s.default.discrete?(0,a.getCategoriesInfo)(t.categories,t.minVisible,t.maxVisible).categories.length:t.maxVisible-t.minVisible},getVisualRangeCenter:function(e,t){var n,i=this.getTranslator(),o=i.getBusinessRange(),u=t?(0,l.extend)(!0,{},o,e||{}):e||o,d=this._options,c=d.type,h=d.logarithmBase;if((0,r.isDefined)(u.minVisible)&&(0,r.isDefined)(u.maxVisible)){if(c===s.default.logarithmic){var f=u.allowNegatives,p=u.linearThreshold,g=u.minVisible,_=u.maxVisible;n=(0,a.raiseToExt)((0,m.adjust)((0,a.getLogExt)(_,h,f,p)+(0,a.getLogExt)(g,h,f,p))/2,h,f,p)}else if(c===s.default.discrete){var v=(0,a.getCategoriesInfo)(u.categories,u.minVisible,u.maxVisible),y=Math.ceil(v.categories.length/2)-1;n=o.categories.indexOf(v.categories[y])}else n=i.toValue((u.maxVisible.valueOf()+u.minVisible.valueOf())/2);return n}},setBusinessRange:function(e,t,n,i){var o,a,l=this,u=l._options,d=u.type===s.default.discrete;l._handleBusinessRangeChanged(n,t,e),l._seriesData=new p.Range(e);var c=l._seriesData.isEmpty();if(l._prevDataWasEmpty=c,l._seriesData.addRange({categories:u.categories,dataType:u.dataType,axisType:u.type,base:u.logarithmBase,invert:u.inverted}),l._resolveLogarithmicOptionsForRange(l._seriesData),!d){if(!(0,r.isDefined)(l._seriesData.min)&&!(0,r.isDefined)(l._seriesData.max)){var h=l.getViewport();h&&l._seriesData.addRange({min:h.startValue,max:h.endValue})}var f=u.synchronizedValue;(0,r.isDefined)(f)&&l._seriesData.addRange({min:f,max:f})}l._seriesData.minVisible=null!==(o=l._seriesData.minVisible)&&void 0!==o?o:l._seriesData.min,l._seriesData.maxVisible=null!==(a=l._seriesData.maxVisible)&&void 0!==a?a:l._seriesData.max,!l.isArgumentAxis&&u.showZero&&l._seriesData.correctValueZeroLevel(),l._seriesData.sortCategories(l.getCategoriesSorter(i)),l._seriesData.userBreaks=l._seriesData.isEmpty()?[]:l._getScaleBreaks(u,l._seriesData,l._series,l.isArgumentAxis),l._translator.updateBusinessRange(l._getViewportRange())},_addConstantLinesToRange:function(e,t,n){this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach((function(i){if(i.options.extendAxis){var o,a=i.getParsedValue();e.addRange((D(o={},t,a),D(o,n,a),o))}}))},setGroupSeries:function(e){this._series=e},getLabelsPosition:function(){var e=this,t=e._options,n=t.position,i=t.label.indentFromAxis+(e._axisShift||0)+e._constantLabelOffset,o=e._axisPosition;return n===M||n===B?o-i:o+i},getFormattedValue:function(e,t,n){var i=this._options.label;return(0,r.isDefined)(e)?this.formatLabel(e,(0,l.extend)(!0,{},i,t),void 0,n):null},_getBoundaryTicks:function(e,t){var n=this,i=e.length,o=n._options,a=o.customBoundTicks,l=t.minVisible,u=t.maxVisible,d=o.showCustomBoundaryTicks?n._boundaryTicksVisibility:{},c=[];return o.type===s.default.discrete?n._tickOffset&&0!==e.length&&(c=[e[0],e[e.length-1]]):a?(d.min&&(0,r.isDefined)(a[0])&&c.push(a[0]),d.max&&(0,r.isDefined)(a[1])&&c.push(a[1])):(d.min&&(0===i||e[0]>l)&&c.push(l),d.max&&(0===i||e[i-1]<u)&&c.push(u)),c},setPercentLabelFormat:function(){this._hasLabelFormat||(this._options.label.format="percent")},resetAutoLabelFormat:function(){this._hasLabelFormat||delete this._options.label.format},getMultipleAxesSpacing:function(){return this._options.multipleAxesSpacing||0},getTicksValues:function(){return{majorTicksValues:I(this._majorTicks),minorTicksValues:I(this._minorTicks)}},estimateTickInterval:function(e){var t=this;return t.updateCanvas(e),t._tickInterval!==t._getTicks(t._getViewportRange(),v.noop,!0).tickInterval},setTicks:function(e){var t=e.majorTicks||[];this._majorTicks=t.map(q(this,this._renderer,this._getSkippedCategory(t))),this._minorTicks=(e.minorTicks||[]).map($(this,this._renderer)),this._isSynchronized=!0},_adjustDivisionFactor:function(e){return e},_getTicks:function(e,t,n){var i=this,o=i._options,a=o.customTicks,r=o.customMinorTicks;return j(o,t||i._incidentOccurred,n,i._translator.getBusinessRange().isEmpty(),i._adjustDivisionFactor.bind(i),e)({min:e.minVisible,max:e.maxVisible,categories:e.categories,isSpacedMargin:e.isSpacedMargin},i._getScreenDelta(),o.tickInterval,"ignore"===o.label.overlappingBehavior||o.forceUserTickInterval,{majors:a,minors:r},o.minorTickInterval,o.minorTickCount,i._initialBreaks)},_createTicksAndLabelFormat:function(e,t){var n=this._options,i=this._getTicks(e,t,!1);return e.isEmpty()||n.type!==s.default.discrete||"datetime"!==n.dataType||this._hasLabelFormat||!i.ticks.length||(n.label.format=d.default.getDateFormatByTicks(i.ticks)),i},getAggregationInfo:function(e,t){var n,i,o,u=this,d=u._options,c=u._marginOptions,h=new p.Range(u.getTranslator().getBusinessRange()).addRange(t),f=u.getViewport(),g=null!==(n=null==f?void 0:f.startValue)&&void 0!==n?n:h.minVisible,m=null!==(i=null==f?void 0:f.endValue)&&void 0!==i?i:h.maxVisible,y=[];if(d.type===s.default.discrete&&d.aggregateByCategory)return{aggregateByCategory:!0};var x=d.aggregationInterval,b=d.aggregationGroupWidth;!b&&c&&(c.checkInterval&&(b=d.axisDivisionFactor),c.sizePointNormalState&&(b=Math.min(c.sizePointNormalState,d.axisDivisionFactor)));var w=!d.aggregationGroupWidth&&!x&&t.interval,C=function(e,t,n,i,o){var a=(0,l.extend)({},e,{endOnTick:!0,axisDivisionFactor:t,skipCalculationLimits:!0,generateExtraTick:!0,minTickInterval:o});return function(e,t,o,s,l){return j(a,v.noop,t,n.isEmpty(),(function(e){return e}),n)({min:o,max:s,categories:n.categories,isSpacedMargin:n.isSpacedMargin},i,e,(0,r.isDefined)(e),void 0,void 0,void 0,l)}}(d,b,h,u._getScreenDelta(),w),S=C(x,!0,g,m,null===(o=u._seriesData)||void 0===o?void 0:o.breaks).tickInterval;if(d.type!==s.default.discrete){var k=e?h.min:g,D=e?h.max:m;if((0,r.isDefined)(k)&&(0,r.isDefined)(D)){var I=(0,a.getAddFunction)({base:d.logarithmBase,axisType:d.type,dataType:d.dataType},!1),T=k,E=D;if(!e){var A=Math.max(u.calculateInterval(D,k),"datetime"===d.dataType?_.default.dateToMilliseconds(S):S);T=I(k,A,-1),E=I(D,A)}T=T<h.min?h.min:T,E=E>h.max?h.max:E;var O=u._getScaleBreaks(d,{minVisible:T,maxVisible:E},u._series,u.isArgumentAxis);y=C(S,!1,T,E,u._filterBreaks(O,{minVisible:T,maxVisible:E},d.breakStyle)).ticks}}return u._aggregationInterval=S,{interval:S,ticks:y}},getTickInterval:function(){return this._tickInterval},getAggregationInterval:function(){return this._aggregationInterval},createTicks:function(e){var t=this,n=t._renderer,i=t._options;if(e){t._isSynchronized=!1,t.updateCanvas(e);var o=t._getViewportRange();t._initialBreaks=o.breaks=this._seriesData.breaks=t._filterBreaks(this._seriesData.userBreaks,o,i.breakStyle),t._estimatedTickInterval=t._getTicks(t.adjustViewport(this._seriesData),v.noop,!0).tickInterval;var s=this._calculateValueMargins();o.addRange({minVisible:s.minValue,maxVisible:s.maxValue,isSpacedMargin:s.isSpacedMargin});var l=t._createTicksAndLabelFormat(o),u=t._getBoundaryTicks(l.ticks,t._getViewportRange());i.showCustomBoundaryTicks&&u.length?(t._boundaryTicks=[u[0]].map(K(t,n,!0)),u.length>1&&(t._boundaryTicks=t._boundaryTicks.concat([u[1]].map(K(t,n,!1))))):t._boundaryTicks=[];var d=(l.minorTicks||[]).filter((function(e){return!u.some((function(t){return(0,a.valueOf)(t)===(0,a.valueOf)(e)}))}));t._tickInterval=l.tickInterval,t._minorTickInterval=l.minorTickInterval;var c=t._majorTicks||[],h=c.reduce((function(e,t){return e[t.value.valueOf()]=t,e}),{}),f=(0,r.type)(l.ticks[0])===(0,r.type)(c[0]&&c[0].value),p=t._getSkippedCategory(l.ticks),g=l.ticks.map((function(e){var i=h[e.valueOf()];return i&&f?(delete h[e.valueOf()],i.setSkippedCategory(p),i):q(t,n,p)(e)}));t._majorTicks=g;var m=t._minorTicks||[];t._minorTicks=d.map((function(e,i){var o=m[i];return o?(o.updateValue(e),o):$(t,n)(e)})),t._ticksToRemove=Object.keys(h).map((function(e){return h[e]})).concat(m.slice(t._minorTicks.length,m.length)),t._ticksToRemove.forEach((function(e){var t;return null===(t=e.label)||void 0===t?void 0:t.removeTitle()})),l.breaks&&(t._seriesData.breaks=l.breaks),t._reinitTranslator(t._getViewportRange())}},_reinitTranslator:function(e){var t=this._translator;this._isSynchronized||t.updateBusinessRange(e)},_getViewportRange:function(){return this.adjustViewport(this._seriesData)},setMarginOptions:function(e){this._marginOptions=e},getMarginOptions:function(){var e;return null!==(e=this._marginOptions)&&void 0!==e?e:{}},_calculateRangeInterval:function(e){var t="datetime"===this._options.dataType,n=[],i=function(e){(0,r.isDefined)(e)&&n.push(t?_.default.dateToMilliseconds(e):e)};return i(this._tickInterval),i(this._estimatedTickInterval),(0,r.isDefined)(e)&&n.push(e),i(this._aggregationInterval),this._calculateWorkWeekInterval(O.apply(this,n))},_calculateWorkWeekInterval:function(e){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&e){var n=t.workWeek.length*W,i=G-n;n!==e&&i<e?e-=i*Math.ceil(e/G):i>=e&&e>W&&(e=W)}return e},_getConvertIntervalCoefficient:function(e,t){var n=this._translator.ratioOfCanvasRange();return n/(n*t/(e+t))},_calculateValueMargins:function(e){this._resetMargins();var t,n,i,o=this,l=o.getMarginOptions(),u=(l.size||0)/2,d=o._options,c=o._getViewportRange(),h=o.getViewport(),f=o._getScreenDelta(),p=-1!==(d.type||"").indexOf(s.default.discrete),g=d.valueMarginsEnabled&&!p&&!o.customPositionIsBoundaryOrthogonalAxis(),m=o._translator,_=d.minValueMargin,v=d.maxValueMargin,y=0,x=0,b=0;if(c.stubData||!f)return{startPadding:0,endPadding:0};if(o.isArgumentAxis&&l.checkInterval){t=o._calculateRangeInterval(c.interval);var w=m.getInterval(t);isFinite(w)?b=Math.ceil(w/(2*o._getConvertIntervalCoefficient(w,f))):t=0}var C=.8*f/2;g&&((0,r.isDefined)(_)?n=isFinite(_)?_:0:!o.isArgumentAxis&&l.checkInterval&&(0,a.valueOf)(c.minVisible)>0&&(0,a.valueOf)(c.minVisible)===(0,a.valueOf)(c.min)?y=5:(y=Math.max(u,b),y=Math.min(C,y)),(0,r.isDefined)(v)?i=isFinite(v)?v:0:!o.isArgumentAxis&&l.checkInterval&&(0,a.valueOf)(c.maxVisible)<0&&(0,a.valueOf)(c.maxVisible)===(0,a.valueOf)(c.max)?x=5:(x=Math.max(u,b),x=Math.min(C,x))),l.percentStick&&!this.isArgumentAxis&&(1===E(c.max)&&(x=0),1===E(c.min)&&(y=0));var S,k,D,I,T,O,P=o._getCanvasStartEnd(),M=(f-y-x)/(1+(n||0)+(i||0))||f;if(void 0===n&&void 0===i||(void 0!==n&&(y=M*n),void 0!==i&&(x=M*i)),d.type!==s.default.discrete&&e&&e.length>1&&!d.skipViewportExtending&&!h.action&&!1!==d.endOnTick){var R=e.length,B=m.translate(e[0].value),V=m.translate(e[R-1].value),F=B>V?-1:1,L=A(F*(P.start-B),0),H=A(F*(V-P.end),0);if(L>y||H>x){var N=H+L,z=o._getConvertIntervalCoefficient(N,f);L>=y&&(S=e[0].value),H>=x&&(k=e[R-1].value),y=A(L,y)/z,x=A(H,x)/z}}n=void 0===n?y/M:n,i=void 0===i?x/M:i,p||(this._translator.isInverted()?(S=null!==(D=S)&&void 0!==D?D:m.from(P.start+f*n,-1),k=null!==(I=k)&&void 0!==I?I:m.from(P.end-f*i,1)):(S=null!==(T=S)&&void 0!==T?T:m.from(P.start-f*n,-1),k=null!==(O=k)&&void 0!==O?O:m.from(P.end+f*i,1)));var W=o.getCorrectedValuesToZero(S,k),G=W.correctedMin,j=W.correctedMax,q=W.start,$=W.end;return y=null!=q?q:y,x=null!=$?$:x,{startPadding:m.isInverted()?x:y,endPadding:m.isInverted()?y:x,minValue:null!=G?G:S,maxValue:null!=j?j:k,interval:t,isSpacedMargin:y===x&&0!==y}},getCorrectedValuesToZero:function(e,t){var n,i,o,a,r=this,s=r._translator,l=r._getCanvasStartEnd(),u=r._getViewportRange(),d=r._getScreenDelta(),c=r._options,h=function(e,t){var o=E(l.start-e),a=E(l.end-t),s=r._getConvertIntervalCoefficient(o+a,d);n=o/s,i=a/s};return r.isArgumentAxis||"datetime"===c.dataType||(e*u.min<=0&&e*u.minVisible<=0&&(h(s.translate(0),s.translate(t)),o=0),t*u.max<=0&&t*u.maxVisible<=0&&(h(s.translate(e),s.translate(0)),a=0)),{start:isFinite(n)?n:null,end:isFinite(i)?i:null,correctedMin:o,correctedMax:a}},applyMargins:function(){if(!this._isSynchronized){var e=this._calculateValueMargins(this._majorTicks),t=(0,l.extend)({},this._canvas,{startPadding:e.startPadding,endPadding:e.endPadding});if(this._translator.updateCanvas(this._processCanvas(t)),isFinite(e.interval)){var n=this._translator.getBusinessRange();n.addRange({interval:e.interval}),this._translator.updateBusinessRange(n)}}},_resetMargins:function(){this._reinitTranslator(this._getViewportRange()),this._canvas&&this._translator.updateCanvas(this._processCanvas(this._canvas))},_createConstantLines:function(){var e=this,t=(this._options.constantLines||[]).map((function(t){return(0,b.default)(e,t)}));this._outsideConstantLines=t.filter((function(e){return"outside"===e.labelPosition})),this._insideConstantLines=t.filter((function(e){return"inside"===e.labelPosition}))},draw:function(e,t){var n=this,i=this._options;n.borderOptions=t||{visible:!1},n._resetMargins(),n.createTicks(e),n.applyMargins(),n._clearAxisGroups(),Y(n._majorTicks),Y(n._minorTicks),Y(n._boundaryTicks),n._axisGroup.append(n._axesContainerGroup),n._drawAxis(),n._drawTitle(),Z(n._majorTicks,i.tick),Z(n._minorTicks,i.minorTick),Z(n._boundaryTicks,i.tick);var o=n._getGridLineDrawer();X(n._majorTicks,o),X(n._minorTicks,o),U(n._majorTicks,"drawLabel",n._getViewportRange(),n._getTemplate(i.label.template)),n._templatesRendered&&n._templatesRendered.reject(),n._templatesRendered=new C.Deferred,n._majorTicks.forEach((function(e){e.labelRotationAngle=0,e.labelAlignment=void 0,e.labelOffset=0})),U(n._outsideConstantLines.concat(n._insideConstantLines),"draw"),U(n._strips,"draw"),n._dateMarkers=n._drawDateMarkers()||[],n._stripLabelAxesGroup&&n._axisStripLabelGroup.append(n._stripLabelAxesGroup),n._gridContainerGroup&&n._axisGridGroup.append(n._gridContainerGroup),n._stripsGroup&&n._axisStripGroup.append(n._stripsGroup),n._labelsAxesGroup&&n._axisElementsGroup.append(n._labelsAxesGroup),n._constantLinesGroup&&(n._axisConstantLineGroups.above.inside.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside1.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside2.append(n._constantLinesGroup.above),n._axisConstantLineGroups.under.inside.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside1.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside2.append(n._constantLinesGroup.under)),n._measureTitle(),(0,S.measureLabels)(n._majorTicks),!i.label.template&&n._applyWordWrap(),(0,S.measureLabels)(n._outsideConstantLines),(0,S.measureLabels)(n._insideConstantLines),(0,S.measureLabels)(n._strips),(0,S.measureLabels)(n._dateMarkers),n._adjustConstantLineLabels(n._insideConstantLines),n._adjustStripLabels();var a=n._constantLabelOffset=n._adjustConstantLineLabels(n._outsideConstantLines);n._translator.getBusinessRange().isEmpty()||(n._setLabelsPlacement(),a=n._adjustLabels(a)),C.when.apply(this,n._majorTicks.map((function(e){return e.getTemplateDeferred()}))).done((function(){n._templatesRendered.resolve()})),a=n._adjustDateMarkers(a),n._adjustTitle(a)},getTemplatesDef:function(){return this._templatesRendered},setRenderedState:function(e){this._drawn=e},isRendered:function(){return this._drawn},_applyWordWrap:function(){var e,t,n,i=this,o=this._options,a=i._tickInterval;(0,r.isDefined)(a)&&(e=i.getTranslator().getInterval("datetime"===o.dataType?_.default.dateToMilliseconds(a):a));var s=i._validateDisplayMode(o.label.displayMode),l=i._validateOverlappingMode(o.label.overlappingBehavior,s),u=o.label.wordWrap||"none",d=o.label.textOverflow||"none";if(("none"!==u||"none"!==d)&&s!==z&&l!==z&&"auto"!==l){var c=(0,r.isDefined)(o.placeholderSize)?o.placeholderSize-o.label.indentFromAxis:void 0;i._isHorizontal?(t=e,n=c):(t=c,n=e);var h=!1,f=!1;t&&i._majorTicks.some((function(e){return e.labelBBox.width>t}))&&(h=!0),n&&i._majorTicks.some((function(e){return e.labelBBox.height>n}))&&(f=!0),(h||f)&&(i._majorTicks.forEach((function(e){e.label&&e.label.setMaxSize(t,n,o.label)})),(0,S.measureLabels)(i._majorTicks))}},_measureTitle:v.noop,animate:function(){U(this._majorTicks,"animateLabels")},updateSize:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this;i.updateCanvas(e),n&&(i._checkTitleOverflow(),i._measureTitle(),i._updateTitleCoords()),i._reinitTranslator(i._getViewportRange()),i.applyMargins();var o=!i._firstDrawing&&t,a=i._options;Y(i._majorTicks),Y(i._minorTicks),Y(i._boundaryTicks),i._resetApplyingAnimation&&!i._firstDrawing&&i._resetStartCoordinates(),ee(i._majorTicks),ee(i._minorTicks),ee(i._boundaryTicks),i._axisElement&&i._updateAxisElementPosition(),Q(i._majorTicks,a.tick,o),Q(i._minorTicks,a.minorTick,o),Q(i._boundaryTicks,a.tick),U(i._majorTicks,"updateLabelPosition",o),i._outsideConstantLines.concat(i._insideConstantLines||[]).forEach((function(e){return e.updatePosition(o)})),U(i._strips,"updatePosition",o),J(i._majorTicks,o),J(i._minorTicks,o),o&&U(i._ticksToRemove||[],"fadeOutElements"),i.prepareAnimation(),i._ticksToRemove=null,i._translator.getBusinessRange().isEmpty()||(i._firstDrawing=!1),i._resetApplyingAnimation=!1,i._updateLabelsPosition()},_updateLabelsPosition:v.noop,prepareAnimation:function(){var e=this,t="saveCoords";U(e._majorTicks,t),U(e._minorTicks,t),U(e._insideConstantLines,t),U(e._outsideConstantLines,t),U(e._strips,t)},_resetStartCoordinates:function(){var e=this,t="resetCoordinates";U(e._majorTicks,t),U(e._minorTicks,t),U(e._insideConstantLines,t),U(e._outsideConstantLines,t),U(e._strips,t)},applyClipRects:function(e,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":e}),this._axisElementsGroup.attr({"clip-path":t})},_validateVisualRange:function(e){var t=(0,a.getVizRangeObject)(e);return void 0!==t.startValue&&(t.startValue=this.validateUnit(t.startValue)),void 0!==t.endValue&&(t.endValue=this.validateUnit(t.endValue)),(0,a.convertVisualRangeObject)(t,!P(e))},_validateOptions:function(e){var t=this;e.wholeRange=t._validateVisualRange(e.wholeRange),e.visualRange=e._customVisualRange=t._validateVisualRange(e._customVisualRange),t._setVisualRange(e._customVisualRange)},validate:function(){var e=this,t=e._options,n=e.isArgumentAxis?t.argumentType:t.valueType,i=n?(0,c.getParser)(n):function(e){return e};e.parser=i,t.dataType=n,e._validateOptions(t)},resetVisualRange:function(e){this._seriesData.minVisible=this._seriesData.min,this._seriesData.maxVisible=this._seriesData.max,this.handleZooming([null,null],{start:!!e,end:!!e})},_setVisualRange:function(e,t){var n=this.adjustRange((0,a.getVizRangeObject)(e));t?((0,r.isDefined)(n.startValue)&&(this._viewport.startValue=n.startValue),(0,r.isDefined)(n.endValue)&&(this._viewport.endValue=n.endValue)):this._viewport=n},_applyZooming:function(e,t){var n=this;n._resetVisualRangeOption(),n._setVisualRange(e,t);var i=n.getViewport();n._seriesData.userBreaks=n._getScaleBreaks(n._options,{minVisible:i.startValue,maxVisible:i.endValue},n._series,n.isArgumentAxis),n._translator.updateBusinessRange(n._getViewportRange())},getZoomStartEventArg:function(e,t){return{axis:this,range:this.visualRange(),cancel:!1,event:e,actionType:t}},_getZoomEndEventArg:function(e,t,n,i,o){var a=this.visualRange();return{axis:this,previousRange:e,range:a,cancel:!1,event:t,actionType:n,zoomFactor:i,shift:o,rangeStart:a.startValue,rangeEnd:a.endValue}},getZoomBounds:function(){var e=(0,a.getVizRangeObject)(this._options.wholeRange),t=this.getTranslator().getBusinessRange(),n={startValue:oe(this._initRange.startValue,t.min),endValue:oe(this._initRange.endValue,t.max)};return{startValue:oe(e.startValue,n.startValue),endValue:oe(e.endValue,n.endValue)}},setInitRange:function(){this._initRange={},0===Object.keys(this._options.wholeRange||{}).length&&(this._initRange=this.getZoomBounds())},_resetVisualRangeOption:function(){this._options._customVisualRange={}},getTemplatesGroups:function(){return this._majorTicks?this._majorTicks.map((function(e){return e.templateContainer})).filter((function(e){return(0,r.isDefined)(e)})):[]},setCustomVisualRange:function(e){this._options._customVisualRange=e},visualRange:function(){var e,t=this,n=arguments;if(0===n.length){var i,o,u=t._getAdjustedBusinessRange(),d=u.minVisible,c=u.maxVisible;return t._options.type===s.default.discrete?{startValue:d=null!==(i=d)&&void 0!==i?i:u.categories[0],endValue:c=null!==(o=c)&&void 0!==o?o:u.categories[u.categories.length-1],categories:(0,a.getCategoriesInfo)(u.categories,d,c).categories}:{startValue:d,endValue:c}}e=P(n[0])?n[0]:(0,r.isPlainObject)(n[0])?(0,l.extend)({},n[0]):[n[0],n[1]];var h=t.handleZooming(e,n[1]);h.isPrevented||t._visualRange(t,h)},handleZooming:function(e,t,n,i){var o=this;t=t||{},(0,r.isDefined)(e)&&((e=o._validateVisualRange(e)).action=i);var a=o.getZoomStartEventArg(n,i),s=a.range;!t.start&&o._eventTrigger("zoomStart",a);var l={isPrevented:a.cancel,skipEventRising:t.skipEventRising,range:e||a.range};return a.cancel||((0,r.isDefined)(e)&&o._applyZooming(e,t.allowPartialUpdate),(0,r.isDefined)(o._storedZoomEndParams)||(o._storedZoomEndParams={startRange:s,type:this.getOptions().type}),o._storedZoomEndParams.event=n,o._storedZoomEndParams.action=i,o._storedZoomEndParams.prevent=!!t.end),l},handleZoomEnd:function(){var e=this;if((0,r.isDefined)(e._storedZoomEndParams)&&!e._storedZoomEndParams.prevent){var t=e._storedZoomEndParams.startRange,n=e._storedZoomEndParams.event,i=e._storedZoomEndParams.action,o={minVisible:t.startValue,maxVisible:t.endValue,categories:t.categories},a=e.getOptions().type===e._storedZoomEndParams.type,s=a?(0,m.adjust)(e.getVisualRangeCenter()-e.getVisualRangeCenter(o,!1)):NaN,l=a?+(Math.round(e.getVisualRangeLength(o)/(e.getVisualRangeLength()||1)+"e+2")+"e-2"):NaN,u=e._getZoomEndEventArg(t,n,i,l,s);u.cancel=e.checkZoomingLowerLimitOvercome(1===l?"pan":"zoom",l).stopInteraction,e._eventTrigger("zoomEnd",u),u.cancel&&e._restorePreviousVisualRange(t),e._storedZoomEndParams=null}},_restorePreviousVisualRange:function(e){var t=this;t._storedZoomEndParams=null,t._applyZooming(e),t._visualRange(t,e)},checkZoomingLowerLimitOvercome:function(e,t,n){var i,o=this,s=o._options,l=o._translator,u=s.minVisualRangeLength,d=n,c="zoom"===e&&t>=1,h=l.getBusinessRange();n&&(i={minVisible:(i=o.adjustRange((0,a.getVizRangeObject)(n))).startValue,maxVisible:i.endValue,categories:h.categories});var f=o.getVisualRangeLength(h),p=o.getVisualRangeLength(i);if((0,r.isDefined)(u)||"discrete"===s.type)u=l.convert(u),i&&u<f&&u>=p?(d=(0,a.getVizRangeObject)(l.getRangeByMinZoomValue(u,i)),c=!1):c&=u>p;else{var g=o._translator.canvasLength,m={minVisible:h.min,maxVisible:h.max,categories:h.categories};c&=o.getVisualRangeLength(m)/g>=p}return{stopInteraction:!!c,correctedRange:d}},isExtremePosition:function(e){var t,n;"discrete"===this._options.type?(n=this._translator.getBusinessRange(),t=e?n.categories[n.categories.length-1]:n.categories[0]):(n=this.getZoomBounds(),t=e?n.endValue:n.startValue);var i=this.getTranslator(),o=i.translate(t),a=this.visualRange(),r=e?i.translate(a.endValue):i.translate(a.startValue);return E(r-o)<5},getViewport:function(){return this._viewport},getFullTicks:function(){var e=this._majorTicks||[];return this._options.type===s.default.discrete?I(e):I(e.concat(this._minorTicks,this._boundaryTicks)).sort((function(e,t){return(0,a.valueOf)(e)-(0,a.valueOf)(t)}))},measureLabels:function(e,t){var n,i,o=this,a=o._options,r=a.visible?a.width:0,s=t?a.label.indentFromAxis+.5*a.tick.length:0,l=o._getViewportRange();if(l.isEmpty()||!a.label.visible||!o._axisElementsGroup)return{height:r,width:r,x:0,y:0};o._majorTicks?n=I(o._majorTicks):(o.updateCanvas(e),n=o._createTicksAndLabelFormat(l,v.noop),i=n.tickInterval,n=n.ticks);var u=n.reduce((function(e,t,r){var s=o.formatLabel(t,a.label,l,void 0,i,n);return e.length<s.length?s:e}),o.formatLabel(n[0],a.label,l,void 0,i,n)),d=o._renderer.text(u,0,0).css(o._textFontStyles).attr(o._textOptions).append(o._renderer.root),c=d.getBBox();return d.remove(),{x:c.x,y:c.y,width:c.width+s,height:c.height+s}},_setLabelsPlacement:function(){if(this._options.label.visible){var e,t=this,n=t._options.label,i=t._validateDisplayMode(n.displayMode),o=t._validateOverlappingMode(n.overlappingBehavior,i),a="none"===o||"ignore"===o,r={rotationAngle:n.rotationAngle,staggeringSpacing:n.staggeringSpacing},s=t._majorTicks.map((function(e){return e.labelBBox})),l=t._getStep(s);switch(i){case z:a&&(e=!0,l=1),t._applyLabelMode(i,l,s,n,e);break;case"stagger":a&&(l=2),t._applyLabelMode(i,A(l,2),s,n);break;default:t._applyLabelOverlapping(s,o,l,r)}}},_applyLabelOverlapping:function(e,t,n,i){var o=this,a=o._options.label,r=o._majorTicks;"none"!==t&&"ignore"!==t&&(n>1&&e.some((function(e,t,n){return 0!==t&&s.default.areLabelsOverlap(e,n[t-1],a.minSpacing,a.alignment)}))&&o._applyLabelMode(t,n,e,i),o._checkBoundedLabelsOverlapping(r,e,t),o._checkShiftedLabels(r,e,a.minSpacing,a.alignment))},_applyLabelMode:function(e,t,n,i,o){var a,r,s=this,l=s._majorTicks,u=s._options.label,d=i.rotationAngle;switch(e){case z:u.userAlignment||(r=d<0?V:B,d%90==0&&(r=F)),ie(l,t=o?t:s._getStep(n,d),(function(e){var t=e.getContentContainer();t&&(t.rotate(d),e.labelRotationAngle=d,r&&(e.labelAlignment=r))}));break;case"stagger":a=s._getMaxLabelHeight(n,i.staggeringSpacing),ie(l,t-1,(function(e,n){n/(t-1)%2!=0&&(e.labelOffset=a)}));break;case"auto":case"_auto":2===t?s._applyLabelMode("stagger",t,n,i):s._applyLabelMode(z,t,n,{rotationAngle:ne(n,u)});break;default:ie(l,t)}},getMarkerTrackers:v.noop,_drawDateMarkers:v.noop,_adjustDateMarkers:v.noop,coordsIn:v.noop,areCoordsOutsideAxis:v.noop,_getSkippedCategory:v.noop,_initAxisPositions:v.noop,_drawTitle:v.noop,_updateTitleCoords:v.noop,_adjustConstantLineLabels:v.noop,_createTranslator:function(){return new f.Translator2D({},{},{})},_updateTranslator:function(){var e=this._translator;e.update(e.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var e,t,n,i=this._options;return{isHorizontal:this._isHorizontal,shiftZeroValue:!this.isArgumentAxis,interval:i.semiDiscreteInterval,firstDayOfWeek:null===(e=i.workWeek)||void 0===e?void 0:e[0],stick:this._getStick(),breaksSize:null!==(t=null===(n=i.breakStyle)||void 0===n?void 0:n.width)&&void 0!==t?t:0}},getVisibleArea:function(){var e=this._getCanvasStartEnd();return[e.start,e.end].sort((function(e,t){return e-t}))},_getCanvasStartEnd:function(){var e=this._isHorizontal,t=this._canvas||{},n=this._translator.getBusinessRange().invert,i=e?[t.left,t.width-t.right]:[t.height-t.bottom,t.top];return n&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var e=this,t=e._getCanvasStartEnd(),n=e._seriesData&&e._seriesData.breaks||[],i=n.length;return E(t.start-t.end)-(i?n[i-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_filterBreaks:function(){return[]},_adjustTitle:v.noop,_checkTitleOverflow:v.noop,getSpiderTicks:v.noop,setSpiderTicks:v.noop,_checkBoundedLabelsOverlapping:v.noop,_checkShiftedLabels:v.noop,drawScaleBreaks:v.noop,_visualRange:v.noop,_rotateConstantLine:v.noop,applyVisualRangeSetter:function(e){this._visualRange=e},getCategoriesSorter:function(e){var t;if(this.isArgumentAxis)t=e;else{var n=this._options.categoriesSortingMethod;t=null!=n?n:this._options.categories}return t},_getAdjustedBusinessRange:function(){return this.adjustViewport(this._translator.getBusinessRange())}}},87713:function(e,t,n){t.default=function(e,t){var n,o,a,r=t.label||{},s=r.position||"inside",l=!1;return e._checkAlignmentConstantLineLabels(r),{options:t,labelOptions:r,labelPosition:s,label:null,line:null,getParsedValue:function(){return l||(n=e.validateUnit(t.value,"E2105","constantLine"),l=!0),n},draw:function(){if(!(0,i.isDefined)(t.value)||e._translator.getBusinessRange().isEmpty())return this;var n=e._getCanvasStartEnd(),o=this.getParsedValue();this.coord=e._getConstantLinePos(o,n.start,n.end);var a=t.displayBehindSeries?e._axisConstantLineGroups.under:e._axisConstantLineGroups.above,l=a[s];if(l||(l=a[e._isHorizontal?r.verticalAlignment:r.horizontalAlignment]),!(0,i.isDefined)(this.coord))return this;var u=e._createConstantLine(this.coord,{stroke:t.color,"stroke-width":t.width,dashStyle:t.dashStyle});return this.line=u.append(a.inside),this.label=r.visible?e._drawConstantLineLabels(o,r,this.coord,l):null,this.updatePosition(),this},getContentContainer:function(){return this.label},removeLabel:function(){this.label&&this.label.remove()},updatePosition:function(t){var n=e._getCanvasStartEnd(),o=e._getConstantLinePos(this.getParsedValue(),n.start,n.end);(0,i.isDefined)(o)&&(this.coord=o,t&&a?(this.label&&this.label.attr(e._getConstantLineLabelsCoords(a,this.labelOptions)),this.line&&this.line.attr(e._getConstantLineGraphicAttributes(a)),this.label&&this.label.animate(e._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.animate(e._getConstantLineGraphicAttributes(this.coord))):(this.label&&this.label.attr(e._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.attr(e._getConstantLineGraphicAttributes(this.coord)),e._rotateConstantLine(this.line,this.coord)))},saveCoords:function(){o=a,a=this.coord},resetCoordinates:function(){a=o}}};var i=n(35922);e.exports=t.default,e.exports.default=t.default},89530:function(e,t,n){t.generateDateBreaks=function(e,t,n,i,u){var d=function(e){var t,n=(t=e,a.filter((function(e){return!t.some((function(t){return t===e}))})));if(n.length<7)for(;r(n[n.length-1])===n[0];)n.unshift(n.pop());return n}(n),c=function(e,t,n){var i=e.getDate(),a=[];return n.reduce((function(e,t){var n=e[1];return void 0===n.start?(n={start:t,end:r(t)},e[0].push(n),[e[0],n]):n.end===t?(n.end=r(t),e):(n={start:t,end:r(t)},e[0].push(n),[e[0],n])}),[[],{}])[0].forEach((function(n){var r=new Date(e);for(r=o.default.trimTime(r);r<t;){i=r.getDay();var u=r.getDate();if(s(n,i)){var d=new Date(r);r.setDate(u+l(i,n.end));var c=new Date(r);a.push({from:d,to:c})}r.setDate(r.getDate()+1)}})),a}(e,t,d);return c.push.apply(c,function(e,t,n,i){var a,r=function(e){return e===a},s=o.default.trimTime(e),l=o.default.trimTime(t);return l.setDate(t.getDate()+1),n.reduce((function(e,t){var n,u;return t=new Date(t),a=t.getDay(),!i.some(r)&&t>=s&&t<=l&&(n=o.default.trimTime(t),(u=new Date(n)).setDate(n.getDate()+1),e.push({from:n,to:u})),e}),[])}(e,t,u||[],d)),function(e){return e.map((function(e){return{from:e.from,to:e.to,gapSize:o.default.convertMillisecondsToDateUnits(e.to-e.from)}}))}(function(e,t){var n,i=e.slice(),a=function(e){if(e=o.default.trimTime(new Date(e)),i[n].from<=e&&i[n].to>e){var t=function(e,t){var n=[],i=new Date(t);return i.setDate(t.getDate()+1),t>e.from&&n.push({from:e.from,to:t}),i<e.to&&n.push({from:i,to:e.to}),n}(i[n],e);2===t.length?i.splice(n,1,t[0],t[1]):1===t.length?i.splice(n,1,t[0]):i.splice(n,1)}};for(n=0;n<i.length;n++)t.forEach(a);return i}(c,i||[]))};var i,o=(i=n(91198))&&i.__esModule?i:{default:i},a=[0,1,2,3,4,5,6];function r(e){return(e+1)%7}function s(e,t){for(var n=e.start,i=e.end;n!==i;){if(n===t)return!0;n=r(n)}return!1}function l(e,t){for(var n=0;e!==t;)e=r(e),n++;return n}},4331:function(e,t,n){t.linearSpider=t.linear=t.circularSpider=t.circular=void 0;var i=n(19157),o=n(35922),a=n(13306),r=c(n(53805)),s=c(n(99415)),l=n(41013),u=n(32945),d=n(20576);function c(e){return e&&e.__esModule?e:{default:e}}var h=Math.PI,f=Math.abs,p=Math.atan,g=Math.round,m=Math.min,_=Math.max,v=s.default.linear,y=90;function x(e){var t;return(e=(0,i.normalizeAngle)(e))>=315&&e<=360||e<45&&e>=0?t=1:e>=45&&e<135?t=2:e>=135&&e<225?t=3:e>=225&&e<315&&(t=4),t}var b={_calculateValueMargins:function(e){var t=this._getViewportRange(),n=t.minVisible,i=t.maxVisible;return e&&e.length>1&&(i=(n=n<e[0].value?n:e[0].value)>e[e.length-1].value?i:e[e.length-1].value),{minValue:n,maxValue:i}},applyMargins:function(){var e=this._calculateValueMargins(this._majorTicks),t=this._translator.getBusinessRange();t.addRange({minVisible:e.minValue,maxVisible:e.maxValue,interval:this._calculateRangeInterval(t.interval)}),this._translator.updateBusinessRange(t)},_getTranslatorOptions:function(){return{isHorizontal:!0,conversionValue:!0,addSpiderCategory:this._getSpiderCategoryOption(),stick:this._getStick()}},getCenter:function(){return this._center},getRadius:function(){return this._radius},getAngles:function(){var e=this._options;return[e.startAngle,e.endAngle]},_updateRadius:function(e){var t=m(e.width-e.left-e.right,e.height-e.top-e.bottom)/2;this._radius=t<0?0:t},_updateCenter:function(e){this._center={x:e.left+(e.width-e.right-e.left)/2,y:e.top+(e.height-e.top-e.bottom)/2}},_processCanvas:function(e){return this._updateRadius(e),this._updateCenter(e),{left:0,right:0,width:this._getScreenDelta()}},_createAxisElement:function(){return this._renderer.circle()},_updateAxisElementPosition:function(){var e=this.getCenter();this._axisElement.attr({cx:e.x,cy:e.y,r:this.getRadius()})},_boundaryTicksVisibility:{min:!0},_getSpiderCategoryOption:function(){return this._options.firstPointOnStartAngle},_validateOptions:function(e){var t=e.originValue,n=e.wholeRange={},a=e.period;(0,o.isDefined)(t)&&(t=this.validateUnit(t)),a>0&&e.argumentType===r.default.numeric&&(t=t||0,n.endValue=t+a,this._viewport=(0,i.getVizRangeObject)([t,n.endValue])),(0,o.isDefined)(t)&&(n.startValue=t)},getMargins:function(){var e=this._options.tick,t=_(e.visible?e.length/2+e.shift:0,0),n=this.getRadius(),i=this._center,o=i.x,r=i.y,s=this._majorTicks.map((function(e){return e.label&&e.label.getBBox()})).filter((function(e){return e})),l=(0,a.extend)({},this._canvas,{left:o-n,top:r-n,right:this._canvas.width-(o+n),bottom:this._canvas.height-(r+n)}),d=(0,u.calculateCanvasMargins)(s,l);return Object.keys(d).forEach((function(e){return d[e]=d[e]<t?t:d[e]})),d},_updateLabelsPosition:function(){var e=this;(0,u.measureLabels)(e._majorTicks),e._adjustLabelsCoord(0,0,!0),e._checkBoundedLabelsOverlapping(this._majorTicks,this._majorTicks.map((function(e){return e.labelBBox})))},_setVisualRange:d.noop,applyVisualRangeSetter:d.noop,_getStick:function(){return this._options.firstPointOnStartAngle||this._options.type!==r.default.discrete},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)-y},_getCanvasStartEnd:function(){return{start:-90,end:270}},_getStripGraphicAttributes:function(e,t){var n=this.getCenter(),i=this.getAngles()[0],o=this.getRadius();return{x:n.x,y:n.y,innerRadius:0,outerRadius:o,startAngle:-t-i,endAngle:-e-i}},_createStrip:function(e){return this._renderer.arc(e.x,e.y,e.innerRadius,e.outerRadius,e.startAngle,e.endAngle)},_getStripLabelCoords:function(e,t){var n=this,o=n._getStripGraphicAttributes(e,t),a=o.startAngle+(o.endAngle-o.startAngle)/2,s=(0,i.getCosAndSin)(a),l=n.getRadius()/2,u=n.getCenter();return{x:g(u.x+l*s.cos),y:g(u.y-l*s.sin),align:r.default.center}},_getConstantLineGraphicAttributes:function(e){var t=this.getCenter(),n=this.getRadius();return{points:[t.x,t.y,t.x+n,t.y]}},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t)},_rotateConstantLine:function(e,t){var n=this.getCenter(),i=n.x,o=n.y;e.rotate(t+this.getAngles()[0],i,o)},_getConstantLineLabelsCoords:function(e){var t=this,n=(0,i.getCosAndSin)(-e-t.getAngles()[0]),o=t.getRadius()/2,a=t.getCenter();return{x:g(a.x+o*n.cos),y:g(a.y-o*n.sin)}},_checkAlignmentConstantLineLabels:d.noop,_adjustDivisionFactor:function(e){return 180*e/(this.getRadius()*h)},_getScreenDelta:function(){var e=this.getAngles();return f(e[0]-e[1])},_getTickMarkPoints:function(e,t,n){var i=n.shift,o=void 0===i?0:i,a=this.getCenter(),r=this.getRadius()+t*{inside:-1,center:-.5,outside:0}[this._options.tickOrientation||"center"];return[a.x+r+o,a.y,a.x+r+t+o,a.y]},_getLabelAdjustedCoord:function(e,t,n,o){var a=e.labelCoords,r=a.y,s=a.angle,l=(0,i.getCosAndSin)(s),u=l.cos,d=l.sin,c=e.labelBBox,h=c.width/2,f=c.height/2,p=this._options.label.indentFromAxis||0,g=a.x+p*u,m=r+(r-c.y-f)+p*d,_=0,v=0;switch(x(s)){case 1:_=h,v=f*d;break;case 2:_=h*u,v=f;break;case 3:_=-h,v=f*d;break;case 4:_=h*u,v=-f}if(o){var y=this._canvas,b=g-a.x+_,w=m-a.y+v;c.x+b<y.originalLeft&&(_-=c.x+b-y.originalLeft),c.x+c.width+b>y.width-y.originalRight&&(_-=c.x+c.width+b-(y.width-y.originalRight)),c.y+w<y.originalTop&&(v-=c.y+w-y.originalTop),c.y+c.height+w>y.height-y.originalBottom&&(v-=c.y+c.height+w-(y.height-y.originalBottom))}return{x:g+_,y:m+v}},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e.getCenter();return e._createPathElement(e._getGridPoints().points,n).rotate(t.coords.angle,i.x,i.y)}},_getGridPoints:function(){var e=this.getRadius(),t=this.getCenter();return{points:[t.x,t.y,t.x+e,t.y]}},_getTranslatedValue:function(e,t){var n=this.getAngles()[0],o=this._translator.translate(e,-t),a=(0,i.convertPolarToXY)(this.getCenter(),n,o,this.getRadius());return{x:a.x,y:a.y,angle:this.getTranslatedAngle(o)}},_getAdjustedStripLabelCoords:function(e){var t=e.labelBBox;return{translateY:e.label.attr("y")-t.y-t.height/2}},coordsIn:function(e,t){return(0,i.convertXYToPolar)(this.getCenter(),e,t).r>this.getRadius()},_rotateTick:function(e,t){var n=this.getCenter();e.rotate(t.angle,n.x,n.y)},_validateOverlappingMode:function(e){return r.default.validateOverlappingMode(e)},_validateDisplayMode:function(){return"standard"},_getStep:function(e){var t=this,n=t.getRadius()+(t._options.label.indentFromAxis||0),i=e.reduce((function(e,t){var n=e;return e.width<t.width&&(n.width=t.width),e.height<t.height&&(n.height=t.height),n}),{width:0,height:0}),o=f(2*p(i.height/(2*n-i.width))*180/h),a=f(2*p(i.width/(2*n-i.height))*180/h);return r.default.getTicksCountInRange(t._majorTicks,"angle",_(o,a))},_checkBoundedLabelsOverlapping:function(e,t,n){var i=this._options.label;if("hide"===(n=n||this._validateOverlappingMode(i.overlappingBehavior))){var o=e.reduce((function(e,t,n){return t.label?n:e}),null);o&&r.default.areLabelsOverlap(t[0],t[o],i.minSpacing,r.default.center)&&("first"===i.hideFirstOrLast?e[0].removeLabel():e[o].removeLabel())}},shift:function(e){this._axisGroup.attr({translateX:e.right,translateY:e.bottom}),this._axisElementsGroup.attr({translateX:e.right,translateY:e.bottom})},getTranslatedAngle:function(e){return e+this.getAngles()[0]-y}},w=b;t.circular=w;var C=(0,a.extend)({},b,{_createAxisElement:function(){return this._renderer.path([],"area")},_updateAxisElementPosition:function(){this._axisElement.attr({points:(0,i.map)(this.getSpiderTicks(),(function(e){return{x:e.coords.x,y:e.coords.y}}))})},_getStick:function(){return!0},_getSpiderCategoryOption:function(){return!0},getSpiderTicks:function(){var e=this,t=e.getFullTicks();return e._spiderTicks=t.map((0,l.tick)(e,e.renderer,{},{},e._getSkippedCategory(t),!0)),e._spiderTicks.forEach((function(e){e.initCoords()})),e._spiderTicks},_getStripGraphicAttributes:function(e,t){for(var n,i,o,a,r=this.getCenter(),s=this.getSpiderTicks(),l=[],u=0,d=s.length;u<d;)(a=s[u].coords).angle>=e&&a.angle<=t&&(n||(n=(s[u-1]||s[s.length-1]).coords,l.push((a.x+n.x)/2,(a.y+n.y)/2)),l.push(a.x,a.y),o=(s[u+1]||s[0]).coords,i={x:(a.x+o.x)/2,y:(a.y+o.y)/2}),u++;return l.push(i.x,i.y),l.push(r.x,r.y),{points:l}},_createStrip:function(e){var t=e.points;return this._renderer.path(t,"area")},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)-y},_setTickOffset:function(){this._tickOffset=!1}});t.circularSpider=C;var S={_resetMargins:function(){this._reinitTranslator(this._getViewportRange())},_getStick:v._getStick,_getSpiderCategoryOption:d.noop,_getTranslatorOptions:function(){return{isHorizontal:!0,stick:this._getStick()}},getRadius:b.getRadius,getCenter:b.getCenter,getAngles:b.getAngles,_updateRadius:b._updateRadius,_updateCenter:b._updateCenter,_processCanvas:function(e){return this._updateRadius(e),this._updateCenter(e),{left:0,right:0,startPadding:e.startPadding,endPadding:e.endPadding,width:this.getRadius()}},_createAxisElement:v._createAxisElement,_updateAxisElementPosition:function(){var e=this.getCenter();this._axisElement.attr({points:[e.x,e.y,e.x+this.getRadius(),e.y]}).rotate(this.getAngles()[0]-y,e.x,e.y)},_getScreenDelta:function(){return this.getRadius()},_getTickMarkPoints:function(e,t){return[e.x-t/2,e.y,e.x+t/2,e.y]},_getLabelAdjustedCoord:function(e){var t=e.labelCoords,n=t.y,o=(0,i.getCosAndSin)(t.angle),a=this._options.label.indentFromAxis||0,r=e.labelBBox;return{x:t.x-f(a*o.sin)+f(r.width/2*o.cos)-r.width/2,y:n+(n-r.y)-f(r.height/2*o.sin)+f(a*o.cos)}},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return e._renderer.circle(i.cx,i.cy,i.r).attr(n).sharp()}},_getGridPoints:function(e){var t=this.getCenter(),n=(0,i.getDistance)(t.x,t.y,e.x,e.y);return n>this.getRadius()?{cx:null,cy:null,r:null}:{cx:t.x,cy:t.y,r:n}},_getTranslatedValue:function(e,t){var n=this.getAngles()[0],o=(0,i.convertPolarToXY)(this.getCenter(),n,0,this._translator.translate(e,t));return{x:o.x,y:o.y,angle:n-y}},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)},_getCanvasStartEnd:function(){var e=this.getTranslator().getBusinessRange().invert,t=[0,this.getRadius()];return e&&t.reverse(),{start:t[0],end:t[1]}},_getStripGraphicAttributes:function(e,t){var n=this.getCenter();return{x:n.x,y:n.y,innerRadius:e,outerRadius:t}},_createStrip:function(e){return this._renderer.arc(e.x,e.y,e.innerRadius,e.outerRadius,0,360)},_getAdjustedStripLabelCoords:b._getAdjustedStripLabelCoords,_getStripLabelCoords:function(e,t){var n=e+(t-e)/2,i=this.getCenter(),o=g(i.y-n);return{x:i.x,y:o,align:r.default.center}},_getConstantLineGraphicAttributes:function(e){var t=this.getCenter();return{cx:t.x,cy:t.y,r:e}},_createConstantLine:function(e,t){var n=this._getConstantLineGraphicAttributes(e);return this._renderer.circle(n.cx,n.cy,n.r).attr(t).sharp()},_getConstantLineLabelsCoords:function(e){var t=this.getCenter(),n=g(t.y-e);return{x:t.x,y:n}},_checkAlignmentConstantLineLabels:d.noop,_rotateTick:function(e,t,n){!n&&e.rotate(t.angle+y,t.x,t.y)},_validateOverlappingMode:b._validateOverlappingMode,_validateDisplayMode:b._validateDisplayMode,_getStep:function(e){var t=x(this.getAngles()[0]),n=this._options.label.minSpacing,i=2===t||4===t?function(e){return e.width+n}:function(e){return e.height},o=e.reduce((function(e,t){return _(e,i(t))}),0);return r.default.getTicksCountInRange(this._majorTicks,2===t||4===t?"x":"y",o)}};t.linear=S;var k=(0,a.extend)({},S,{_createPathElement:function(e,t){return this._renderer.path(e,"area").attr(t).sharp()},setSpiderTicks:function(e){this._spiderTicks=e},_getGridLineDrawer:function(){var e=this;return function(t,n){return e._createPathElement(e._getGridPoints(t.coords).points,n)}},_getGridPoints:function(e){var t=this.getCenter(),n=(0,i.getDistance)(t.x,t.y,e.x,e.y);return this._getGridPointsByRadius(n)},_getGridPointsByRadius:function(e){var t=this.getCenter();return e>this.getRadius()?{points:null}:{points:(0,i.map)(this._spiderTicks,(function(n){var o=(0,i.getCosAndSin)(n.coords.angle);return{x:g(t.x+e*o.cos),y:g(t.y+e*o.sin)}}))}},_getStripGraphicAttributes:function(e,t){var n=this._getGridPointsByRadius(t).points;return{points:[this._getGridPointsByRadius(e).points,n.reverse()]}},_createStrip:C._createStrip,_getConstantLineGraphicAttributes:function(e){return this._getGridPointsByRadius(e)},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t)}});t.linearSpider=k},41583:function(e,t,n){t.formatRange=function(e,t,n,r){var s=r.dataType,l=r.type,d=r.logarithmBase;if("discrete"===l)return"";if("datetime"===s)return function(e,t,n){var o=g(e,t),r=a.default.getDateFormatByTickInterval(n),s=b(i.default.getDateFormatByDifferences(o,r)),l=[];if(n in o){var d=function(e,t){var n=!1;for(var o in e)n?e[o]=!1:o===t?n=!0:e[o]=!0;return b(i.default.getDateFormatByDifferences(e))}(g(e,t),n),c=u(e,d);c&&l.push(c)}else{var h=function(e){var t=!1;for(var n in e)!0===e[n]||"hour"===n||t?(e[n]=!1,t=!0):!1===e[n]&&(e[n]=!0);return b(i.default.getDateFormatByDifferences(e))}(g(e,t)),f=u(e,h);f&&l.push(f),l.push("".concat(u(e,s)," - ").concat(u(t,s)))}return l.join(", ")}(e,t,function(e){if((0,o.isObject)(e)){var t=Object.keys(e);if(1===t.reduce((function(t,n){return e[n]+t}),0)){var n=t.filter((function(t){return 1===e[t]}))[0];return n.slice(0,n.length-1)}}return e}(n));var c={ticks:[],type:l,dataType:s,tickInterval:n,logarithmBase:d,labelOptions:{}};return"".concat(w(e,c)," - ").concat(w(t,c))},t.smartFormatter=w;var i=l(n(30343)),o=n(35922),a=l(n(91198)),r=n(60810),s=n(19157);function l(e){return e&&e.__esModule?e:{default:e}}var u=i.default.format,d=Math.abs,c=Math.floor,h="exponential",f=["fixedPoint","thousands","millions","billions","trillions",h],p=["millisecond","second","minute","hour","day","month","year"];function g(e,t,n,i){var o,r,s,l,u,d=p.length;"week"===i?i="day":"quarter"===i?i="month":"shorttime"===i?i="hour":"longtime"===i&&(i="second");var c=p.indexOf(i);if(n){if(r=a.default.getDatesDifferences(t,n),o=a.default.getDatesDifferences(t,e),r[i])for(l=d-1;l>=c;l--)if(s=p[l],l===c)v(r,c+(r.millisecond?2:1));else if(r[s]){_(r,l);break}}else for(o=a.default.getDatesDifferences(e,t),l=d-1;l>=c;l--)if(o[s=p[l]]){if(l-c>1){for(u=c+1;u>=0;u--)_(o,u);break}if(m(t,s)){for(u=l-1;u>0;u--)_(o,u);break}}return n?r:o}function m(e,t){var n,i=[e.getMilliseconds(),e.getSeconds(),e.getMinutes(),e.getHours(),e.getDate(),e.getMonth()],o=p.indexOf(t);for(n=0;n<o;n++)if(4===n&&1!==i[n]||4!==n&&0!==i[n])return!1;return!0}function _(e,t){var n=p[t];e[n]&&(e[n]=!1,e.count--)}function v(e,t){var n=p[t];!1===e[n]&&(e[n]=!0,e.count++)}function y(e,t){var n,i,o,a=0;for(o=d(t-e[0]),n=1;n<e.length;n++)(i=d(t-e[n]))<o&&(o=i,a=n);return a}function x(e){return e.toString().split(".")}function b(e){var t;return(0,o.isFunction)(e)&&(t=e,e=null),{type:e,formatter:t}}function w(e,t){var n,l,p,m,_,v,w,C,S,k,D=t.tickInterval,I=d(e).toString(),T=0,E=0,A=0,O=-1,P=t.labelOptions.format,M=t.ticks,R="logarithmic"===t.type;if(1!==M.length||0!==M.indexOf(e)||(0,o.isDefined)(D)||(D=d(e)>=1?1:(0,r.adjust)(1-d(e),e)),!(0,o.isDefined)(P)&&"discrete"!==t.type&&e&&(10===t.logarithmBase||!R))if("datetime"!==t.dataType&&(0,o.isDefined)(D)){if(M.length&&-1===M.indexOf(e)&&(O=y(M,e),D=(0,r.adjust)(d(e-M[O]),e)),(_=x(D))<2&&(_=x(e)),R)if((w=(0,s.getAdjustedLog10)(d(e)))>0)m=f[c(w/3)]||h;else{if(!(w<-4))return u((0,r.adjust)(e));m=h}else _.length>1&&!(0,o.isExponential)(D)?(T=_[1].length,m=f[A]):(0,o.isExponential)(D)&&(-1!==I.indexOf(".")||(0,o.isExponential)(e))?(m=h,T=(0,o.isExponential)(e)?Math.max(d((0,r.getExponent)(e)-(0,r.getExponent)(D)),d((0,r.getPrecision)(e)-(0,r.getPrecision)(D))):d((k=I.split(".")[1]).length-parseInt(k).toString().length-(0,r.getExponent)(D)+1)):(n=c((0,s.getAdjustedLog10)(D)),p=l=c((0,s.getAdjustedLog10)(d(e))),l-n>=2&&(p=n),E=3*(A=c(p/3)),A<5?(n-E==2&&l>=3&&(E=3*++A),m=f[A]):m=f[f.length-1],E>0&&(_=x(D/Math.pow(10,E)))[1]&&(T=_[1].length));void 0===m&&void 0===T||(P={type:m,precision:T})}else"datetime"===t.dataType&&(m=a.default.getDateFormatByTickInterval(D),t.showTransition&&M.length&&(O=M.map(Number).indexOf(+e),1===M.length&&0===O?m=i.default.getDateFormatByTicks(M):(-1===O?C=y(M,e):(C=0===O?M.length-1:O-1,S=0===O?1:-1),v=g(M[C],e,M[S],m),m=i.default.getDateFormatByDifferences(v,m))),P=b(m));return u(e,P)}},54978:function(e,t,n){t.default=function(e,t){var n,r,s=t.label||{};return{options:t,label:null,rect:null,_getCoord:function(){var n=e._getCanvasStartEnd(),i=e._translator.getBusinessRange();return e._getStripPos(t.startValue,t.endValue,n.start,n.end,i)},_drawLabel:function(t){return e._renderer.text(s.text,t.x,t.y).css((0,o.patchFontOptions)((0,a.extend)({},e.getOptions().label.font,s.font))).attr({align:"center",class:s.cssClass}).append(e._axisStripLabelGroup)},draw:function(){if(!e._translator.getBusinessRange().isEmpty()&&((0,i.isDefined)(t.startValue)||(0,i.isDefined)(t.endValue))&&(0,i.isDefined)(t.color)){var n=this._getCoord();if(this.labelCoords=s.text?e._getStripLabelCoords(n.from,n.to,s):null,n.outOfCanvas||!(0,i.isDefined)(n.to)||!(0,i.isDefined)(n.from))return;this.rect=e._createStrip(e._getStripGraphicAttributes(n.from,n.to)).attr({fill:t.color}).append(e._axisStripGroup),this.label=s.text?this._drawLabel(this.labelCoords):null}},getContentContainer:function(){return this.label},removeLabel:function(){},updatePosition:function(i){var o=this._getCoord();i&&n?(this.label&&this.label.attr(e._getStripLabelCoords(n.from,n.to,t.label)),this.rect&&this.rect.attr(e._getStripGraphicAttributes(n.from,n.to)),this.label&&this.label.animate(e._getStripLabelCoords(o.from,o.to,t.label)),this.rect&&this.rect.animate(e._getStripGraphicAttributes(o.from,o.to))):(this.label&&this.label.attr(e._getStripLabelCoords(o.from,o.to,t.label)),this.rect&&this.rect.attr(e._getStripGraphicAttributes(o.from,o.to)))},saveCoords:function(){r=n,n=this._getCoord()},resetCoordinates:function(){n=r}}};var i=n(35922),o=n(19157),a=n(13306);e.exports=t.default,e.exports.default=t.default},41013:function(e,t,n){t.tick=function(e,t,n,s,l,u,d){var c=d||e._tickOffset,h=e._axisLineGroup,f=e._axisElementsGroup,p=r(n),g=r(s),m=/^\s+$/,_=e.getOptions().label,v=e._textOptions;function y(t){var n=e._textFontStyles,i=_.customizeColor;return i&&i.call&&(n=(0,o.extend)({},e._textFontStyles,{fill:i.call(t,t)})),n}function x(t,n){var o=e.formatHint(t.value,_,n);(0,i.isDefined)(o)&&""!==o&&t.getContentContainer().setTitle(o)}return function(o){var r={value:o,updateValue:function(e){this.value=o=e},initCoords:function(){this.coords=e._getTranslatedValue(o,c),this.labelCoords=e._getTranslatedValue(o)},saveCoords:function(){this._lastStoredCoordinates={coords:this._storedCoords,labelCoords:this._storedLabelsCoords},this._storedCoords=this.coords,this._storedLabelsCoords=this.templateContainer?this._getTemplateCoords():this.labelCoords},resetCoordinates:function(){this._lastStoredCoordinates&&(this._storedCoords=this._lastStoredCoordinates.coords,this._storedLabelsCoords=this._lastStoredCoordinates.labelCoords)},drawMark:function(t){n.visible&&l!==o&&(e.areCoordsOutsideAxis(this.coords)||(this.mark?(this.mark.append(h),e.sharp(this.mark,e.getSharpDirectionByCoords(this.coords)),this.updateTickPosition(t)):(this.mark=e._createPathElement([],p,e.getSharpDirectionByCoords(this.coords)).append(h),this.updateTickPosition(t))))},setSkippedCategory:function(e){l=e},_updateLine:function(t,n,i,o,a){t&&(null!==n.points&&null!==n.r?(o&&i&&null!==i.points?(n.opacity=1,t.attr(i),t.animate(n)):(n.opacity=o?0:1,t.attr(n),o&&t.animate({opacity:1},{delay:.5,partitionDuration:.5})),this.coords.angle&&e._rotateTick(t,this.coords,a)):t.remove())},updateTickPosition:function(t,i){this._updateLine(this.mark,{points:e._getTickMarkPoints(r.coords,n.length,t)},this._storedCoords&&{points:e._getTickMarkPoints(r._storedCoords,n.length,t)},i,!1)},drawLabel:function(n,r){var s=this;if(this.templateContainer&&e.isRendered())this.updateLabelPosition();else if(!_.visible||u||e.getTranslator().getBusinessRange().isEmpty()||e.areCoordsOutsideAxis(this.labelCoords))this.label&&this.removeLabel();else{var l=_.template,d=e.formatLabel(o,_,n);if(this.label)return this.label.attr({text:d,rotate:0}).append(f),x(this,n),void this.updateLabelPosition();l?(this.templateContainer=t.g().append(f),this._templateDef&&this._templateDef.reject(),this._templateDef=new a.Deferred,r.render({model:{valueText:d,value:this.value,labelFontStyle:y(this),labelStyle:v},container:this.templateContainer.element,onRendered:function(){s.updateLabelPosition(),s._templateDef&&s._templateDef.resolve()}})):(0,i.isDefined)(d)&&""!==d&&!m.test(d)&&(this.label=t.text(d).css(y(this)).attr(v).append(f),this.updateLabelPosition(),x(this,n));var c=this.getContentContainer();c&&c.data("chart-data-argument",this.value),this.templateContainer&&x(this,n)}},getTemplateDeferred:function(){return this._templateDef},getContentContainer:function(){return this.templateContainer||this.label},fadeOutElements:function(){var t={opacity:1},n={opacity:0},i={partitionDuration:.5};this.getContentContainer()&&this._fadeOutLabel(),this.grid&&this.grid.append(e._axisGridGroup).attr(t).animate(n,i),this.mark&&this.mark.append(e._axisLineGroup).attr(t).animate(n,i)},_fadeInLabel:function(){var t=e._renderer.g().attr({opacity:0}).append(e._axisElementsGroup).animate({opacity:1},{delay:.5,partitionDuration:.5});this.getContentContainer().append(t)},_fadeOutLabel:function(){var t=e._renderer.g().attr({opacity:1}).animate({opacity:0},{partitionDuration:.5}).append(e._axisElementsGroup).toBackground();this.getContentContainer().append(t)},_getTemplateCoords:function(){return e._getLabelAdjustedCoord(this,(e._constantLabelOffset||0)+(r.labelOffset||0))},updateLabelPosition:function(e){var t=this.templateContainer;if(this.getContentContainer())if(e&&this._storedLabelsCoords)if(t){t.attr(this._storedLabelsCoords);var n=this._getTemplateCoords();t.animate(n)}else this.label.attr({x:this._storedLabelsCoords.x,y:this._storedLabelsCoords.y}),this.label.animate({x:this.labelCoords.x,y:this.labelCoords.y});else{if(t){var i=this._getTemplateCoords();t.attr(i)}else this.label.attr({x:this.labelCoords.x,y:this.labelCoords.y});e&&this._fadeInLabel()}},updateMultilineTextAlignment:function(){!_.template&&this.label&&this.label.attr({textsAlignment:this.labelAlignment||e.getOptions().label.alignment})},drawGrid:function(t){s.visible&&l!==this.value&&(this.grid?(this.grid.append(e._axisGridGroup),e.sharp(this.grid,e.getSharpDirectionByCoords(this.coords)),this.updateGridPosition()):(this.grid=t(this,g),this.grid&&this.grid.append(e._axisGridGroup)))},updateGridPosition:function(t){this._updateLine(this.grid,e._getGridPoints(r.coords),this._storedCoords&&e._getGridPoints(this._storedCoords),t,!0)},removeLabel:function(){var e=this.getContentContainer();e&&e.remove(),this._templateDef&&this._templateDef.reject(),this._templateDef=this.templateContainer=this.label=null}};return r}};var i=n(35922),o=n(13306),a=n(62754);function r(e){return{stroke:e.color,"stroke-width":e.width,"stroke-opacity":e.opacity,opacity:1}}},45971:function(e,t,n){t.tickGenerator=void 0;var i,o=n(19157),a=(i=n(91198))&&i.__esModule?i:{default:i},r=n(35922),s=n(60810),l=n(13306);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var d=a.default.convertDateUnitToMilliseconds,c=a.default.dateToMilliseconds,h=Math,f=h.abs,p=h.floor,g=h.ceil,m=h.pow,_=[1,2,2.5,5],v=[1,2,3,5],y={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2],week:[1,2],month:[1,2,3,6]},x=(0,l.extend)({},y,{day:[1]}),b={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2,3,7,14],month:[1,2,3,6]},w=[2,4,5,8,10],C=function(e){return e},S=function(e,t,n){return function(i){return(0,o.getLogExt)(i,e,t,n)}},k=function(e,t,n){return function(i,o){return(0,s.adjust)(e(t((0,s.adjust)(n(i)/o))*o))}};function D(e,t,n,i){return(0,r.isDefined)(i)?i?e:t:function(i,o,a,s){var l=e(i,o);return i-l==0||!(0,r.isDefined)(a)||n(i,l,o,a)||s?l:t(i,o)}}function I(e,t,n,i){var a=n-f(t-e),r=h.max(g(i.businessDelta/n),2),s=i.screenDelta/(r*n),l=h.round(s*a),u=(0,o.getLogExt)(s*n/i.axisDivisionFactor,2)+1,d=(i.isSpacedMargin?2:1)*u,c=h.round(3*d);return i.businessDelta>i.interval&&l>=c}function T(e){return function(t,n,i,a){return I((0,o.getLogExt)(t,e),(0,o.getLogExt)(n,e),i,a)}}function E(e,t,n,i){return I(e.valueOf(),t.valueOf(),c(n),i)}function A(e,t){var n=0;return t&&(n=t.reduce((function(e,t){return e+(t.to-t.from)}),0)),f(e.max-e.min-n)}function O(e,t,n,i){var o=t/n-(i||0);return e/(o<1?1:o)}function P(e,t){return m(10,p((0,o.getLogExt)(e,10))+(t||0))}function M(e,t,n,i,o,a,r,s,l,u){var d=O(e,t,o,s),c=1,h=!1===r;return i&&n||((d>=1||!h&&d>0)&&(c=R(d,a,h)),(!n||!i&&n<c)&&(n=c)),!i&&u&&(u=R(u,a,h))>n&&(n=u),n}function R(e,t,n){var i=P(e,-1),o=1;return t=t||_,e>0&&(e/=i,o=t.concat(10*t[0]).map((function(e){return 10*e})).reduce((function(t,o){return.1===i&&n&&25===o?t:t<e?o:t}),0),o=(0,s.adjust)(o*i,i)),o}function B(e,t,n,i){var o=O(e,t,i);return n||w.reduce((function(t,n){var i=e/n;return i>=o?i:t}),0)}function V(e){return function(t,n){var i=P(t);return!e&&i<1&&(i=1),(n=n||v).concat(10*n[0]).reduce((function(e,n){return e<t?n*i:e}),0)}}function F(e,t){return function(n,i){return!n&&e<=d(t,i)&&((n={})[t+"s"]=i),n}}function L(e,t){return function(n,i){var o=t*i;return!n&&e<=d("year",o)&&2.5!==o&&(n={years:o}),n}}function H(e,t,n,i,o,a,r,s,l,u){if(!i||!n){var d=N(O(e,t,o),a,null,l);(!n||!i&&c(n)<=c(d))&&(n=d)}return!i&&u&&(u=N(u,a,null,l),c(u)>c(n)&&(n=u)),n}function N(e,t,n,i){var o;for(var a in t=t||function(e){return e&&e>2?x:y}(i))if(o=t[a].reduce(F(e,a),o))break;if(!o)for(var r=1;!(o=_.reduce(L(e,r),o));r*=10);return o}function z(e,t,n,i){return H(e,t,n,!0,i,b)}function W(e,t){return function(n){return n&&t(f((0,s.adjust)(e(n[1])-e(n[0]))))||void 0}}function G(e,t,n){return a.default.addInterval(e,t,n)}function j(e,t,n){return G(e,t,n)}function q(e,t,n){return t=t.filter((function(e){return!e.gapSize})),function(i,o,a){var r;return i=e(i,o,a),t.every((function(t){return i>=e(t.from,o)&&e(i,o)<t.to&&(r=t.to-t.from-2*(e(t.from,o)-t.from)),!r}))||(i=n(e(i,r),o)),i}}function $(e,t,n,i){return function(o,a,s,l,u,d,c,h,f){var p,g=function(e,t){return function(n){var i;return t.every((function(e){return n>=e.from&&n<e.to&&(i=e.gapSize),!i}))||(n=e(n,i)),n}}(e,l),m=o.min,_=o.max,v={screenDelta:c,businessDelta:d,axisDivisionFactor:h,isSpacedMargin:o.isSpacedMargin,interval:a},y=t(m,a,v),x=[];for(null!=u&&u.length&&(e=q(e,u,t)),y>_&&(y=t(m,n(d/2),v))>_&&(y=t(m,a,v,s=!0)),y=g(y);y<_&&y!==p||f&&y<=_;)x.push(y),p=y,y=g(e(y,a));return(s||y-_==0||!(0,r.isDefined)(s)&&i(_,y,a,v))&&x.push(y),x}}function K(e,t,n,i,o){return function(a,r,s,l,u,d,c){var h=u/l,f=s[s.length-1],p=s[0],g=c-1;if(null!=d&&d.length&&(t=q(t,d,n)),0===(l=e(l,p,p,h)))return[];var m=i(n(a,u,a),l);l=e(l,p,m,h);for(var _=[];m<p&&(!g||g>0);)m>=a&&_.push(m),g--,m=t(m,l);var v=s.reduce((function(n,o){if(g=c-1,null===n.prevTick)return n.prevTick=o,n;l=e(l,o,n.prevTick,h);for(var a=i(n.prevTick,l);a<o&&(!g||g>0);)a!==n.prevTick&&n.minors.push(a),g--,a=t(a,l);return n.prevTick=o,n}),{prevTick:null,minors:[]});_=_.concat(v.minors);var y,x=o(r,u,a);for(l=e(l,x,x,h),m=i(f,l);m<r&&m!==y;)_.push(m),y=m,m=t(m,l);return f-r!=0&&m-r==0&&_.push(m),_}}function U(e,t){if(t.length){var n=t.reduce((function(t,n){var i,o=[];for(i=t[1];i<e.length;i++){var a=e[i];if(a<n.from&&o.push(a),a>=n.to)break}return[t[0].concat(o),i]}),[[],0]);return n[0].concat(e.slice(n[1]))}return e}function Y(e,t,n,i,o,a,r,s,l,u){function d(t,n,i){return t&&n/r(t)>=i+1&&(e.incidentOccurred("W2003"),t=void 0),t}return function(c,h,f,p,g,m,_,v){g=g||{};var y=t(c,v),x=function(e){return{tickInterval:o(e.majors),ticks:e.majors||[],minorTickInterval:a(e.minors),minorTicks:e.minors||[]}}(g);return isNaN(y)||(0!==y||g.majors?(x=function(t,i,o,a,r,l,c,h){if(c.majors)return t.breaks=h,t;var f,p=h.filter((function(e){return e.gapSize}));return r=e.skipCalculationLimits?r:d(r,o,a),r=n(o,a,r,l,e.axisDivisionFactor,e.numberMultipliers,e.allowDecimals,h.length,p[0]&&p[0].gapSize.days,e.minTickInterval),e.skipTickGeneration||(f=U(f=s(i,r,e.endOnTick,p,h,o,a,e.axisDivisionFactor,e.generateExtraTick),h=u(h,f,r)),t.breaks=h,t.ticks=t.ticks.concat(f)),t.tickInterval=r,t}(x,c,y,h,f,p,g,v||[]),!e.skipTickGeneration&&y>0&&(x=function(t,n,o,s,u,c,h){if(!e.calculateMinors)return t;if(h.minors)return t;var f=r(t.tickInterval),p=s*f/o,g=t.breaks;return!u&&c?u=a([f/(c+1),f/(c+1)*2]):c=void 0,u=d(u,f,p),u=i(f,p,u,e.minorAxisDivisionFactor),t.minorTicks=U(t.minorTicks.concat(l(n.min,n.max,t.ticks,u,t.tickInterval,g,c)),g),t.minorTickInterval=u,t}(x,c,y,h,m,_,g))):x.ticks=[c.min]),x}}function Z(e,t,n,i){var o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),a=o[0],s=o[1];return(!(0,r.isDefined)(a)||f(i(e)-i(a))/n>.25)&&((0,r.isDefined)(s)?a=s:(0,r.isDefined)(a)||(a=e)),a}function X(e,t,n){return function(i,o,a){var r=e(a),s=.5*r;return i.reduce((function(e,i){var a=o.filter((function(e){return e<=i.from})),l=n(Z(i.from,[].concat(a[a.length-1],o[a.length]),r,t),s);a=o.filter((function(e){return e>=i.to}));var u=n(Z(i.to,[].concat(a[0],o[o.length-a.length-1]),r,t),-s);return t(u)-t(l)<0&&(u=n(a[0],-s)),t(u)-t(l)<r&&!i.gapSize?e:i.gapSize?e.concat([i]):e.concat([{from:l,to:u,cumulativeWidth:i.cumulativeWidth}])}),[])}}var Q=function(e,t,n){return function(i,o){return(0,s.sign)(i)*(0,s.adjust)(e(t(i)((0,s.adjust)(n(i)/o))*o))}};t.tickGenerator=function(e){return e.rangeIsEmpty?function(e){return function(t,n,i,o){var a=p(n/e.axisDivisionFactor),r=n/(a=a<1?1:a);return{ticks:r>0?Array.apply(null,new Array(a+1)).map((function(e,t){return r*t})):[],tickInterval:r}}}(e):"discrete"===e.axisType?function(e){return function(t,n,i,a){var r=(0,o.getCategoriesInfo)(t.categories,t.min,t.max).categories;return{ticks:r,tickInterval:g(r.length*e.axisDivisionFactor/n)}}}(e):"logarithmic"===e.axisType?function(e){var t,n=e.logBase,i=function(e,t,n){return function(i){return(0,o.raiseToExt)(i,e,t,n)}}(n,e.allowNegatives,e.linearThreshold),a=S(n,e.allowNegatives,e.linearThreshold),r=function(e){return function(t){return 0===t?0:(0,o.getLog)(f(t),e)}}(n),s=function(e){return function(t){return(0,o.raiseTo)(t,e)}}(n),l=Q(s,(function(e){return e<0?g:p}),r),u=Q(s,(function(e){return e<0?p:g}),r),d=k(C,g,C);return Y(e,function(e,t,n){var i=S(e,t,n);return function(e,t){var n=0;return t&&(n=t.reduce((function(e,t){return e+f(i(t.to/t.from))}),0)),g(f(i(e.max)-i(e.min))-n)}}(n,e.allowNegatives,e.linearThreshold),(t=e.skipCalculationLimits,function(e,n,i,o,a,r,s,l,u,d){var c=O(e,n,a),h=0,f=V(t);return o&&i||(c>0&&(h=f(c,r)),(!i||!o&&i<h)&&(i=h)),!o&&d&&(d=f(d,r))>i&&(i=d),i}),B,W(a,C),W(C,C),C,$(function(e,t){return function(n,i,o){return t(G(e(n),i,o))}}(a,i),D(l,u,T(n),e.endOnTick),V(e.skipCalculationLimits),T(n)),K((function(e,t,n,i){return Math.max(Math.abs(t),Math.abs(n))/i}),G,l,d,u),X(C,a,(function(e,t){return i(a(e)+t)})))}(e):"datetime"===e.dataType?function(e){function t(t,n){var i=k(C,p,C),o=(0,r.isString)(n)?a.default.getDateIntervalByString(n.toLowerCase()):n,s=c(n);(o.days%7==0||n.quarters)&&(o=N(s));var l=function(t){return a.default.correctDateWithUnitBeginning(t,o,null,e.firstDayOfWeek)},u=function(e){return new Date(p((e.getTime()-6e4*e.getTimezoneOffset())/s)*s+6e4*e.getTimezoneOffset())};return t=l(t),"years"in o?t.setFullYear(i(t.getFullYear(),o.years)):"quarters"in o?t=l(u(t)):"months"in o?t.setMonth(i(t.getMonth(),o.months)):"weeks"in o||"days"in o?t=l(u(t)):"hours"in o?t.setHours(i(t.getHours(),o.hours)):"minutes"in o?t.setMinutes(i(t.getMinutes(),o.minutes)):"seconds"in o?t.setSeconds(i(t.getSeconds(),o.seconds)):"milliseconds"in o&&(t=u(t)),t}var n=W(C,a.default.convertMillisecondsToDateUnits);return Y(e,A,H,z,n,n,c,$(j,D(t,(function(e,n){for(var i=t(e,n);e-i>0;)i=j(i,n);return i}),E,e.endOnTick),N,E),K(C,j,t,j,C),X(c,C,(function(e,t){return new Date(e.getTime()+t)})))}(e):function(e){var t=k(C,p,C),n=k(C,g,C),i=W(C,C);return Y(e,A,M,B,i,i,C,$(G,D(t,n,I,e.endOnTick),R,I),K(C,G,t,G,C),X(C,C,(function(e,t){return e+t})))}(e)}},99415:function(e,t,n){t.default=void 0;var i=n(21177),o=h(n(30343)),a=h(n(91198)),r=n(13306),s=n(89530),l=n(20576),u=n(19157),d=n(35922),c=h(n(53805));function h(e){return e&&e.__esModule?e:{default:e}}var f=a.default.getNextDateUnit,p=a.default.correctDateWithUnitBeginning,g=Math,m=g.max,_=c.default.top,v=c.default.bottom,y=c.default.left,x=c.default.right,b=c.default.center,w={left:-1,top:-1,right:0,bottom:0,center:-.5};function C(e){return e.sort((function(e,t){return e.from-t.from}))}function S(e,t,n,i){var r=i,s=t&&a.default.getDatesDifferences(t,e);return t&&"year"!==n&&(function(e,t){var n,i;if("week"===t&&(t="day"),"quarter"===t&&(t="month"),e[t])for(i=0;i<a.default.dateUnitIntervals.length&&(e[n=a.default.dateUnitIntervals[i]]&&(e[n]=!1,e.count--),n!==t);i++);}(s,n),r=o.default.getDateFormatByDifferences(s)),r}function k(e,t){return t.reduce((function(t,n){return m(t,e(n))}),0)}function D(e,t,n){return e.some((function(e){return e.label.verticalAlignment===t}))&&n||0}function I(e){return g.abs(e.x)||0}function T(e){return g.abs(e.width-g.abs(e.x))||0}var E={linear:{_getStep:function(e,t){var n=this._options.label.minSpacing,i=k(this._isHorizontal?function(e){return e.width+n}:function(e){return e.height},e);return t&&(i=function(e,t){var n=(t=(t=g.abs(t))%180>=90?90-t%90:t%90)*(g.PI/180);return n>=g.atan(e.height/e.width)?e.height/g.abs(g.sin(n)):e.width}({width:i,height:this._getMaxLabelHeight(e,0)},t)),c.default.getTicksCountInRange(this._majorTicks,this._isHorizontal?"x":"y",i)},_getMaxLabelHeight:function(e,t){return k((function(e){return e.height}),e)+t},_validateOverlappingMode:function(e,t){return this._isHorizontal&&("rotate"===t||"stagger"===t)||!this._isHorizontal?c.default.validateOverlappingMode(e):e},_validateDisplayMode:function(e){return this._isHorizontal?e:"standard"},getMarkerTrackers:function(){return this._markerTrackers},_getSharpParam:function(e){return this._isHorizontal^e?"h":"v"},_createAxisElement:function(){return this._renderer.path([],"line")},_updateAxisElementPosition:function(){var e=this._axisPosition,t=this._getCanvasStartEnd();this._axisElement.attr({points:this._isHorizontal?[t.start,e,t.end,e]:[e,t.start,e,t.end]})},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)},_initAxisPositions:function(){var e=this;e.customPositionIsAvailable()&&(e._customBoundaryPosition=e.getCustomBoundaryPosition()),!e.customPositionIsAvailable()||e.customPositionIsBoundary()?e._axisPosition=e.getPredefinedPosition(e.getResolvedBoundaryPosition()):e._axisPosition=e.getCustomPosition()},_getTickMarkPoints:function(e,t,n){var i,o=this._isHorizontal,a=this._options.tickOrientation,r=this._options.label.position;if((0,d.isDefined)(a))i=w[a]*t;else{var s=n.shift||0;(!o&&r===y||o&&r!==v)&&(s=-s),i=s+this.getTickStartPositionShift(t)}return[e.x+(o?0:i),e.y+(o?i:0),e.x+(o?0:i+t),e.y+(o?i+t:0)]},getTickStartPositionShift:function(e){var t=this._options.width,n=this.getResolvedBoundaryPosition();return e%2==1?(t%2!=0||n!==y&&n!==_)&&(t%2!=1||n!==x&&n!==v||this.hasNonBoundaryPosition())?-Math.floor(e/2):Math.floor(-e/2):-e/2+(t%2==0?0:n===v||n===x?-1:1)},_getTitleCoords:function(){var e=this,t=e._isHorizontal,n=e._axisPosition,i=e._axisPosition,o=e._options.title.alignment,a=e._getCanvasStartEnd(),r=t||e._options.position===y,s=r?a.start:a.end,l=r?a.end:a.start,u=o===y?s:o===x?l:a.start+(a.end-a.start)/2;return t?n=u:i=u,{x:n,y:i}},_drawTitleText:function(e,t){var n=this._options,i=n.title,o={opacity:i.opacity,align:i.alignment,class:i.cssClass};if(i.text&&e){t=t||this._getTitleCoords(),this._isHorizontal||(o.rotate=n.position===y?270:90);var a=this._renderer.text(i.text,t.x,t.y).css((0,u.patchFontOptions)(i.font)).attr(o).append(e);return this._checkTitleOverflow(a),a}},_updateTitleCoords:function(){this._title&&this._title.element.attr(this._getTitleCoords())},_drawTitle:function(){var e=this._drawTitleText(this._axisTitleGroup);e&&(this._title={element:e})},_measureTitle:function(){this._title&&(this._title.bBox&&!this._title.originalSize&&(this._title.originalSize=this._title.bBox),this._title.bBox=this._title.element.getBBox())},_drawDateMarker:function(e,t,n){var i,o=this,a=o._options.marker,r=o._translator.getBusinessRange().invert,s=a.width+a.textLeftIndent;if(null!==t.x){t.withoutStick||(i=o._renderer.path([t.x,t.y,t.x,t.y+a.separatorHeight],"line").attr({"stroke-width":a.width,stroke:a.color,"stroke-opacity":a.opacity,sharp:"h"}).append(o._axisElementsGroup));var l=String(o.formatLabel(e,t.labelOptions,n));return{date:e,x:t.x,y:t.y,cropped:t.withoutStick,label:o._renderer.text(l,t.x,t.y).css((0,u.patchFontOptions)(a.label.font)).append(o._axisElementsGroup),line:i,getContentContainer:function(){return this.label},getEnd:function(){return this.x+(r?-1:1)*(s+this.labelBBox.width)},setTitle:function(){this.title=l},hideLabel:function(){this.label.dispose(),this.label=null,this.title=l},hide:function(){i&&(i.dispose(),i=null),this.label.dispose(),this.label=null,this.hidden=!0}}}},_drawDateMarkers:function(){var e,t=this,n=t._options,i=t._translator,o=t._getViewportRange(),r=o.minVisible,s=[];function l(e,n,a){return t._drawDateMarker(e,{x:i.translate(e),y:u,labelOptions:t._getLabelFormatOptions(n),withoutStick:a},o)}if(o.isEmpty()||!n.marker.visible||"datetime"!==n.argumentType||"discrete"===n.type||t._majorTicks.length<=1)return[];var u=t._axisPosition+n.marker.topIndent,d=a.default.getDateUnitInterval(this._tickInterval),c=function(e){var t=f(e);return"quarter"===t&&(t=f(t)),t}(d),h=function(e,t,n){var i,o=e;return e=p(e,n),t=p(t,n),(i=a.default.getSequenceByInterval(e,t,n)).length&&o>i[0]&&(i=i.slice(1)),i}(r,o.maxVisible,c);return(h.length>1||1===h.length&&r<h[0])&&(s=h.reduce((function(e,t,n,i){var o=l(t,S(t,i[n-1]||r<t&&r,d,c));return o&&e.push(o),e}),[]),r<h[0]&&(e=l(r,S(r,h[0],d,c),!0))&&s.unshift(e)),s},_adjustDateMarkers:function(e){e=e||0;var t,n=this,i=this._options.marker,o=i.width+i.textLeftIndent,a=this._translator.getBusinessRange().invert,r=n._getCanvasStartEnd(),s=this._dateMarkers;return s.length?(s[0].cropped&&(this._checkMarkersPosition(a,s[1],s[0])||s[0].hideLabel()),s.forEach((function(e,i,o){e.cropped||((a?e.getEnd()<r.end:e.getEnd()>r.end)?e.hideLabel():n._checkMarkersPosition(a,e,t)?t=e:e.hide())})),this._dateMarkers.forEach((function(t){if(t.label){var n=t.labelBBox,r=t.y+i.textTopIndent-n.y;t.label.attr({translateX:a?t.x-o-n.x-n.width:t.x+o-n.x,translateY:r+e})}t.line&&t.line.attr({translateY:e})})),n._initializeMarkersTrackers(e),e+i.topIndent+i.separatorHeight):e},_checkMarkersPosition:function(e,t,n){return void 0===n||(e?t.x<n.getEnd():t.x>n.getEnd())},_initializeMarkersTrackers:function(e){var t=this,n=t._options.marker.separatorHeight,i=t._renderer,o=this._translator.getBusinessRange(),a=t._getCanvasStartEnd(),r=t._axisElementsGroup;t._markerTrackers=this._dateMarkers.filter((function(e){return!e.hidden})).map((function(t,s,l){var u=l[s+1]||{x:a.end,date:o.max},d=t.x,c=t.y+e,h=i.path([d,c,d,c+n,u.x,c+n,u.x,c,d,c],"area").attr({"stroke-width":1,stroke:"grey",fill:"grey",opacity:1e-4}).append(r);return h.data("range",{startValue:t.date,endValue:u.date}),t.title&&h.setTitle(t.title),h}))},_getLabelFormatOptions:function(e){var t=this,n=t._markerLabelOptions;return n||(t._markerLabelOptions=n=(0,r.extend)(!0,{},t._options.marker.label)),(0,d.isDefined)(t._options.marker.label.format)||(n.format=e),n},_adjustConstantLineLabels:function(e){var t=this,n=t._options.position,i=t.getCanvas(),o=i.left,a=i.width-i.right,r=i.top,s=i.height-i.bottom,l=r+(s-r)/2,u=o+(a-o)/2,d=0;return e.forEach((function(e){var i,c,h=t._isHorizontal,f=e.options,p=f.paddingTopBottom,g=f.paddingLeftRight,_=f.label,w=_.verticalAlignment,C=_.horizontalAlignment,S="inside"===_.position,k=e.label,D=e.labelBBox;if(null!==k&&!D.isEmpty){if(h)if(S)switch(i=C===y?e.coord-g-D.x-D.width:e.coord+g-D.x,w){case b:c=l-D.y-D.height/2;break;case v:c=s-p-D.y-D.height;break;default:c=r+p-D.y}else n===w&&(d=m(d,D.height+p)),i=e.coord-D.x-D.width/2,c=w===v?s+p-D.y:r-p-D.y-D.height;else if(S)switch(c=w===v?e.coord+p-D.y:e.coord-p-D.y-D.height,C){case b:i=u-D.x-D.width/2;break;case x:i=a-g-D.x-D.width;break;default:i=o+g-D.x}else n===C&&(d=m(d,D.width+g)),c=e.coord-D.y-D.height/2,i=C===x?a+g-D.x:o-g-D.x-D.width;k.attr({translateX:i,translateY:c})}})),d},_drawConstantLinesForEstimating:function(e){var t=this,n=this._renderer,i=n.g();return e.forEach((function(e){t._drawConstantLineLabelText(e.label.text,0,0,e.label,i).attr({align:"center"})})),i.append(n.root)},_estimateLabelHeight:function(e,t){var n=e.height,i=t.drawingType;if("stagger"!==this._validateDisplayMode(i)&&"stagger"!==this._validateOverlappingMode(t.overlappingBehavior,i)||(n=2*n+t.staggeringSpacing),"rotate"===this._validateDisplayMode(i)||"rotate"===this._validateOverlappingMode(t.overlappingBehavior,i)){var o=(0,u.getCosAndSin)(t.rotationAngle);n=n*o.cos+e.width*o.sin}return n&&(n+t.indentFromAxis||0)||0},estimateMargins:function(e){this.updateCanvas(e);var t=this,n=t._getViewportRange(),i=this._createTicksAndLabelFormat(n),o=i.ticks,a=i.tickInterval,r=this._options,s=t._outsideConstantLines.filter((function(e){return e.labelOptions.visible})).map((function(e){return e.options})),l=t._renderer.root,u=r.label.visible&&!n.isEmpty()&&o.length,d=u&&t.formatLabel(o[o.length-1],r.label,void 0,void 0,a,o),c=u&&t._renderer.text(d,0,0).css(t._textFontStyles).attr(t._textOptions).append(l),h=t._drawTitleText(l,{x:0,y:0}),f=t._drawConstantLinesForEstimating(s),p=!r.label.template&&c&&c.getBBox()||{x:0,y:0,width:0,height:0},g=h&&h.getBBox()||{x:0,y:0,width:0,height:0},_=f.getBBox(),v=g.height?g.height+r.title.margin:0,y=t._estimateLabelHeight(p,r.label),x=_.height?_.height+s.reduce((function(e,t){return m(e,t.paddingTopBottom)}),0):0,b=y+v,w={left:m(I(p),I(_)),right:m(T(p),T(_)),top:("top"===r.position?b:0)+D(s,"top",x),bottom:("top"!==r.position?b:0)+D(s,"bottom",x)};return c&&c.remove(),h&&h.remove(),f&&f.remove(),w},_checkAlignmentConstantLineLabels:function(e){var t=e.position,n=(e.verticalAlignment||"").toLowerCase(),i=(e.horizontalAlignment||"").toLowerCase();this._isHorizontal?"outside"===t?(n=n===v?v:_,i=b):(n=n===b?b:n===v?v:_,i=i===y?y:x):"outside"===t?(n=b,i=i===y?y:x):(n=n===v?v:_,i=i===x?x:i===b?b:y),e.verticalAlignment=n,e.horizontalAlignment=i},_getConstantLineLabelsCoords:function(e,t){var n=this,i=e,o=e;return n._isHorizontal?o=n._orthogonalPositions["top"===t.verticalAlignment?"start":"end"]:i=n._orthogonalPositions["right"===t.horizontalAlignment?"end":"start"],{x:i,y:o}},_getAdjustedStripLabelCoords:function(e){var t=e.options,n=t.paddingTopBottom,i=t.paddingLeftRight,o=t.label.horizontalAlignment,a=t.label.verticalAlignment,r=e.labelBBox,s=r.height,l=r.width,u=e.labelCoords,d=u.y-r.y,c=u.x-r.x;return a===_?d+=n:a===b?d-=s/2:a===v&&(d-=n+s),o===y?c+=i:o===b?c-=l/2:o===x&&(c-=i+l),{translateX:c,translateY:d}},_adjustTitle:function(e){if(e=e||0,this._title){var t=this,n=t._options,i=n.position,o=n.title.margin,a=t._title,r=a.bBox,s=r.x,l=r.y,u=r.width,d=r.height,c=t._axisPosition,h=c-o-e,f=c+o+e,p={};t._isHorizontal?p.translateY=i===_?h-(l+d):f-l:p.translateX=i===y?h-(s+u):f-s,a.element.attr(p)}},_checkTitleOverflow:function(e){if(this._title||e){var t=this._getScreenDelta(),n=e?{bBox:e.getBBox(),element:e}:this._title,i=this._options.title,o=n.bBox;if((this._isHorizontal?o.width:o.height)>t)n.element.setMaxSize(t,void 0,{wordWrap:i.wordWrap||"none",textOverflow:i.textOverflow||"ellipsis"}),this._wrapped=i.wordWrap&&"none"!==i.wordWrap;else{var a=n.originalSize&&t>(this._isHorizontal?n.originalSize.width:n.originalSize.height);!this._wrapped&&a&&n.element.restoreText()}}},coordsIn:function(e,t){var n=this.getCanvas(),i=this._options.isHorizontal,o=this._options.position,a=i?t:e;return!(i&&(e<n.left||e>n.width-n.right)||!i&&(t<n.top||t>n.height-n.bottom))&&(i&&o===c.default.top||!i&&o===c.default.left?a<n[o]:a>n[i?"height":"width"]-n[o])},_boundaryTicksVisibility:{min:!0,max:!0},adjust:function(){var e=this,t=e._seriesData,n=e._series.filter((function(e){return e.isVisible()})).reduce((function(e,t){var n=t.getViewport();return e.min=(0,d.isDefined)(n.min)?e.min<n.min?e.min:n.min:e.min,e.max=(0,d.isDefined)(n.max)?e.max>n.max?e.max:n.max:e.max,t.showZero&&(e=new i.Range(e)).correctValueZeroLevel(),e}),{});(0,d.isDefined)(n.min)&&(0,d.isDefined)(n.max)&&(t.minVisible=n.min,t.maxVisible=n.max),t.userBreaks=e._getScaleBreaks(e._options,{minVisible:t.minVisible,maxVisible:t.maxVisible},e._series,e.isArgumentAxis),e._translator.updateBusinessRange(e._getViewportRange())},hasWrap:function(){return this._wrapped},getAxisPosition:function(){return this._axisPosition},_getStick:function(){return!this._options.valueMarginsEnabled},_getStripLabelCoords:function(e,t,n){var i,o,a,r,s=this._orthogonalPositions,l=this._isHorizontal,u=n.horizontalAlignment,d=n.verticalAlignment;return l?(u===b?i=e+(t-e)/2:u===y?i=e:u===x&&(i=t),o=s[(a=d,r="start","center"===a&&(r="center"),"bottom"===a&&(r="end"),r)]):(i=s[function(e){var t="start";return"center"===e&&(t="center"),"right"===e&&(t="end"),t}(u)],d===_?o=e:d===b?o=t+(e-t)/2:d===v&&(o=t)),{x:i,y:o}},_getTranslatedValue:function(e,t){var n=this._translator.translate(e,t,"semidiscrete"===this._options.type&&this._options.tickInterval),i=this._axisPosition,o=this._isHorizontal;return{x:o?n:i,y:o?i:n}},areCoordsOutsideAxis:function(e){var t=this._isHorizontal?e.x:e.y,n=this.getVisibleArea();return t<n[0]||t>n[1]},_getSkippedCategory:function(e){var t;return this._options.type===c.default.discrete&&this._tickOffset&&0!==e.length&&(t=e[e.length-1]),t},_filterBreaks:function(e,t,n){var i=t.minVisible,o=t.maxVisible,r=n?n.width:0;return e.reduce((function(e,t){var n,s=t.from,l=t.to,u=e[e.length-1];if(!(0,d.isDefined)(s)||!(0,d.isDefined)(l))return e;if(s>l&&(l=[s,s=l][0]),e.length&&s<u.to)l>u.to&&(u.to=l>o?o:l,u.gapSize&&(u.gapSize=void 0,u.cumulativeWidth+=r));else if((s>=i&&s<o||l<=o&&l>i)&&(l=l<=o?l:o)-(s=s>=i?s:i)<o-i){var c,h;n={from:s,to:l,cumulativeWidth:(null!==(c=null==u?void 0:u.cumulativeWidth)&&void 0!==c?c:0)+r},t.gapSize&&(n.gapSize=a.default.convertMillisecondsToDateUnits(l-s),n.cumulativeWidth=null!==(h=null==u?void 0:u.cumulativeWidth)&&void 0!==h?h:0),e.push(n)}return e}),[])},_getScaleBreaks:function(e,t,n,i){var o=this,a=(e.breaks||[]).map((function(e){return{from:o.parser(e.startValue),to:o.parser(e.endValue)}}));return"discrete"!==e.type&&"datetime"===e.dataType&&e.workdaysOnly&&(a=a.concat((0,s.generateDateBreaks)(t.minVisible,t.maxVisible,e.workWeek,e.singleWorkdays,e.holidays))),!i&&"discrete"!==e.type&&"datetime"!==e.dataType&&e.autoBreaksEnabled&&0!==e.maxAutoBreakCount&&(a=a.concat(function(e,t,n){for(var i=e.logarithmBase,o=e.type,a=e.maxAutoBreakCount,r=[],s="logarithmic"===o?function(e,t){return(0,u.getLog)(t/e,i)}:function(e,t){return t-e},l=s(n.minVisible,n.maxVisible),c=t.reduce((function(e,t){var n=t.getPointsInViewPort();return e[0]=e[0].concat(n[0]),e[1]=e[1].concat(n[1]),e}),[[],[]]),h=.3*l,f=function(e,t,n){var i,o,a,r,s,l=null,u=[];for(i=1,o=e.length;i<o;i++)s=n(a=e[i],r=e[i-1]),t.indexOf(a)>=0?(!l||s>l.length)&&(l={start:a,end:r,length:s}):(l&&s<l.length?u.push(l):u.push({start:a,end:r,length:s}),l=null);return l&&u.push(l),u}(c[0].concat(c[1]).sort((function(e,t){return t-e})),c[1].filter((function(e){return c[0].indexOf(e)<0})),s).sort((function(e,t){return t.length-e.length})),p=g.min.apply(null,f.map((function(e){return e.length})))/1e3,m=(0,d.isDefined)(a)?g.min(a,f.length):f.length,_=0;_<m&&f[_].length>=h&&!(l<=f[_].length);_++)((l-=f[_].length)>p||l<-p)&&(r.push({from:f[_].start,to:f[_].end}),h=.3*l);return C(r),r}(e,n,t))),C(a)},_drawBreak:function(e,t,n,i,o,a){var r=this,s=e-(r._translator.isInverted()?0:i+1),l={"stroke-width":1,stroke:o.borderColor,sharp:o.isWaved?void 0:o.isHorizontal?"h":"v"},u={stroke:o.color,"stroke-width":i},d=r._isHorizontal?A:function(e){return e},c=function(e,t,n,i,o,a,r){var s=r?"bezier":"line",l=e.g().append(t);return function(t,u){e.path(n(function(e,t,n,i,o){if(!o)return[e,t+i,n,t+i];var a,r=(t+=i)+0,s=t+2,l=t+4,u=[[e,s]];for(a=e;a<n+24;a+=24)u.push([a+6,r,a+6,r,a+12,s,a+18,l,a+18,l,a+24,s]);return[].concat.apply([],u)}(i,o,a,t,r)),s).attr(u).append(l)}}(r._renderer,a,d,t,s,n,o.isWaved);c(i/2,u),c(0,l),c(i,l)},_createBreakClipRect:function(e,t){var n,i=this,o=i._canvas,a=t-e;return n=i._isHorizontal?i._renderer.clipRect(o.left,e,o.width,a):i._renderer.clipRect(e,o.top,a,o.height),i._breaksElements=i._breaksElements||[],i._breaksElements.push(n),n.id},_createBreaksGroup:function(e,t){var n=this,i=n._renderer.g().attr({class:n._axisCssPrefix+"breaks","clip-path":n._createBreakClipRect(e,t)}).append(n._scaleBreaksGroup);return n._breaksElements=n._breaksElements||[],n._breaksElements.push(i),i},_disposeBreaksGroup:function(){(this._breaksElements||[]).forEach((function(e){e.dispose()})),this._breaksElements=null},drawScaleBreaks:function(e){var t,n,i,o,a,r=this,s=r._options,l=s.breakStyle,u=s.position,d=r._translator.getBusinessRange().breaks||[];if(r._disposeBreaksGroup(),d&&d.length){var c={color:r._options.containerColor,borderColor:l.color,isHorizontal:r._isHorizontal,isWaved:"straight"!==l.line.toLowerCase()};e?(t=e.start,n=e.end):(t=r._orthogonalPositions.start-(!s.visible||r._axisShift||u!==y&&u!==_?0:3),n=r._orthogonalPositions.end+(!s.visible||u!==x&&u!==v?0:3));var h=r._createBreaksGroup(t,n);r._axisShift&&s.visible&&(o=r._axisPosition-r._axisShift-3,a=o+6,i=r._createBreaksGroup(o,a)),d.forEach((function(e){if(!e.gapSize){var u=r._getTranslatedCoord(e.to);r._drawBreak(u,t,n,l.width,c,h),r._axisShift&&s.visible&&r._drawBreak(u,o,a,l.width,c,i)}}))}},_getSpiderCategoryOption:l.noop,shift:function(e){var t=this,n=t._options,i=n.isHorizontal,o=t.getMultipleAxesSpacing(),a=t._axisConstantLineGroups;function r(t,n){var a={translateX:0,translateY:0},r=e[t]?e[t]+o:0;return a[i?"translateY":"translateX"]=(t===y||t===_?-1:1)*r,(n[t]||n).attr(a),r}t._axisShift=r(n.position,t._axisGroup),r(n.position,t._axisElementsGroup),(i?[_,v]:[y,x]).forEach((function(e){r(e,a.above),r(e,a.under)}))},getCustomPosition:function(e){var t,n=this,i=n.getOrthogonalAxis(),o=null!=e?e:n.getResolvedPositionOption(),a=n.getOptions().offset,r=i.getTranslator(),s=i.getOptions().type,l=i.validateUnit(o);return"discrete"===s&&(!r._categories||r._categories.indexOf(l)<0)&&(l=void 0),t=n.positionIsBoundary(o)?n.getPredefinedPosition(o):(0,d.isDefined)(l)?r.to(l,-1):n.getPredefinedPosition(n.getOptions().position),isFinite(t)&&isFinite(a)&&(t+=a),t},getCustomBoundaryPosition:function(e){var t=this,n=t.getOptions(),i=n.customPosition,o=n.offset,a=null!=e?e:t.getResolvedPositionOption(),r=t.getOrthogonalAxis(),s=r.getTranslator(),l=s.getCanvasVisibleArea();if((0,d.isDefined)(r._orthogonalPositions)&&0!==s.canvasLength){var u=t.getCustomPosition(a);if(!(0,d.isDefined)(u))return t.getResolvedBoundaryPosition();if((0,d.isDefined)(i)){if(u<=l.min)return t._isHorizontal?_:y;if(u>=l.max)return t._isHorizontal?v:x}else if((0,d.isDefined)(o)){if(u<=t._orthogonalPositions.start)return t._isHorizontal?_:y;if(u>=t._orthogonalPositions.end)return t._isHorizontal?v:x}return u}},getResolvedPositionOption:function(){var e,t=this.getOptions();return null!==(e=t.customPosition)&&void 0!==e?e:t.position},customPositionIsAvailable:function(){var e=this.getOptions();return(0,d.isDefined)(this.getOrthogonalAxis())&&((0,d.isDefined)(e.customPosition)||isFinite(e.offset))},hasNonBoundaryPosition:function(){return this.customPositionIsAvailable()&&!this.customPositionIsBoundary()},getResolvedBoundaryPosition:function(){return this.customPositionIsBoundary()?this._customBoundaryPosition:this.getOptions().position},customPositionEqualsToPredefined:function(){return this.customPositionIsBoundary()&&this._customBoundaryPosition===this.getOptions().position},customPositionIsBoundary:function(){return this.positionIsBoundary(this._customBoundaryPosition)},positionIsBoundary:function(e){return[_,y,v,x].indexOf(e)>=0},getPredefinedPosition:function(e){var t;return null===(t=this._orthogonalPositions)||void 0===t?void 0:t[e===_||e===y?"start":"end"]},resolveOverlappingForCustomPositioning:function(e){var t=this;if(t.hasNonBoundaryPosition()||t.customPositionIsBoundary()||e.some((function(e){return e.hasNonBoundaryPosition()}))){var n={axes:[],ticks:[]};e.filter((function(e){return e.pane===t.pane})).forEach((function(e){for(var i=0;i<t._majorTicks.length;i++){var o=t._majorTicks[i],a=o.label;if(a){n.axes.indexOf(e)<0&&t._detectElementsOverlapping(a,e._axisElement)&&(n.axes.push(e),t._shiftThroughOrthogonalAxisOverlappedTick(a,e));for(var r=0;r<e._majorTicks.length;r++){var s=e._majorTicks[r].label;if(s&&t._detectElementsOverlapping(a,s)){n.ticks.push(o),t._shiftThroughAxisOverlappedTick(o),i=t._majorTicks.length;break}}}o.mark&&n.ticks.indexOf(o)<0&&(t._isHorizontal&&o.mark.attr("translateY")?o.mark.attr({translateY:0}):!t._isHorizontal&&o.mark.attr("translateX")&&o.mark.attr({translateX:0}))}}))}},_shiftThroughOrthogonalAxisOverlappedTick:function(e,t){var n=this,i=e.getBBox(),o=t.getAxisPosition(),a=t.getOptions().label,r=a.position,s=a.indentFromAxis/2,l=n._isHorizontal?"translateX":"translateY",u=n._isHorizontal?y:_,d=e.attr(l),c=(n._isHorizontal?i.x:i.y)+d,h=o-c,f=c+(n._isHorizontal?i.width:i.height)-o,p={};p[l]=d,h>0&&f>0&&(f-h>1?p[l]+=h+s:h-f>1?p[l]-=f+s:p[l]+=r===u?h+s:-(f+s),e.attr(p))},_shiftThroughAxisOverlappedTick:function(e){var t,n=this,i=e.label;if(i){var o=i.getBBox(),a=null===(t=e.mark)||void 0===t?void 0:t.getBBox(),r=n.getAxisPosition(),s=n.getOptions().label,l=s.indentFromAxis,u=s.position,d=n._isHorizontal?_:y,c=n._isHorizontal?"translateY":"translateX",h=i.attr(c),f=(n._isHorizontal?o.y:o.x)+h,p=n._isHorizontal?o.height:o.width,g={};if(g[c]=h+(u===d?r-f+l:-(f-r+p+l)),i.attr(g),e.mark){var m=n._isHorizontal?a.height:a.width,v=u===d?1:-1;g[c]=v*(m-1),e.mark.attr(g)}}},_detectElementsOverlapping:function(e,t){if(!e||!t)return!1;var n=e.getBBox(),i=n.x+e.attr("translateX"),o=n.y+e.attr("translateY"),a=t.getBBox(),r=a.x+t.attr("translateX"),s=a.y+t.attr("translateY");return(r>=i&&r<=i+n.width||i>=r&&i<=r+a.width)&&(s>=o&&s<=o+n.height||o>=s&&o<=s+a.height)}}};function A(e){var t,n=[];for(t=0;t<e.length;t+=2)n.push(e[t+1]),n.push(e[t]);return n}t.default=E,e.exports=t.default,e.exports.default=t.default},45888:function(e,t,n){t.default=void 0;var i=n(44898).dxBarGauge;t.default=i,e.exports=t.default,e.exports.default=t.default},88950:function(e,t,n){var i;t.default=void 0;var o=((i=n(59989))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},99511:function(e,t,n){t.default=void 0;var i=n(58664),o=n(20576),a=n(13306),r=n(89386),s=n(58201),l=n(95479),u=k(n(99393)),d=n(34434),c=n(19157),h=n(35922),f=n(60810),p=n(33224),g=k(n(42597)),m=n(42602),_=n(97882),v=n(97574),y=k(n(63407)),x=n(21495),b=n(21177),w=k(n(70714)),C=k(n(59345)),S=n(77129);function k(e){return e&&e.__esModule?e:{default:e}}var D="default",I=[{name:D,border:{}}],T="discrete",E=Array.isArray;function A(e,t,n){var i=e.getOptions().grid,o=e.getOptions().minorGrid;i.visible=t,o&&(o.visible=n)}function O(e,t){return e.priority-t.priority}function P(e,t){var n=!1;return(0,l.each)(e,(function(e,i){if(i.name===t)return n=!0,!1})),n}function M(e,t,n,i){var o=t[e]||0,a=n[e]||0;return o+a+(o&&a?i:0)}function R(e,t,n){return B(t[e],n[e])}function B(e,t){return Math.max(e||0,t||0)}function V(e){return e.getMargins()}function F(e,t){return e.reduce((function(e,n){var i,o=t(n),a=e.panes[n.pane]=e.panes[n.pane]||{},r=n.getMultipleAxesSpacing();a.top=M("top",a,o,r),a.bottom=M("bottom",a,o,r),a.left=R("left",a,o),a.right=R("right",a,o),e.top=R("top",a,e),e.bottom=R("bottom",a,e),e.left=R("left",a,e),e.right=R("right",a,e);var s=null===(i=n.getOrthogonalAxis)||void 0===i?void 0:i.call(n);return!s||!s.customPositionIsAvailable()||n.customPositionIsBoundaryOrthogonalAxis()&&s.customPositionEqualsToPredefined()||(e[s.getResolvedBoundaryPosition()]=0),e}),{panes:{}})}function L(e){return e.reduce((function(e,t){var n=t.getMargins(),i=e.panes[t.pane]=e.panes[t.pane]||{},o=t.getMultipleAxesSpacing();return i.top=R("top",i,n),i.bottom=R("bottom",i,n),i.left=M("left",i,n,o),i.right=M("right",i,n,o),e.top=R("top",i,e),e.bottom=R("bottom",i,e),e.left=R("left",i,e),e.right=R("right",i,e),e}),{panes:{}})}function H(e,t,n,i,o){e.forEach((function(e){e[t](n&&n[e.pane],i&&i[e.pane]||i,o)}))}function N(e,t,n,i,o){function a(t,n,i){return(-1===(e?["left","right"]:["top","bottom"]).indexOf(t)?n:n.panes[i]||{})[t]}function r(e,t,n,i){return B(a(e,t,i),a(e,n,i))}var s=function(e){return"original".concat(e[0].toUpperCase()).concat(e.slice(1))};function l(e,t,a,l,u,d){(t=t.sort((function(t,n){return e[n][l]-e[t][l]}))).forEach((function(t){var n=e[t];d.forEach((function(e){n[e]=n[s(e)]+r(e,i,o,t)}))}));var h=e[t[0]],f=t.reduce((function(e,t){return e-(r(l,i,o,t)+r(u,i,o,t))}),h[a]-h[s(u)]-e[t[t.length-1]][s(l)])-c.PANE_PADDING*(t.length-1);f-=Object.keys(n).reduce((function(e,t){return e+((0,c.isRelativeHeightPane)(n[t])?0:n[t].height)}),0),t.reduce((function(t,s){var d=e[s],p=n[s];return t-=r(u,i,o,s),d[u]=h[a]-t,t-=(0,c.isRelativeHeightPane)(p)?Math.floor(f*p.height):p.height,d[l]=t,t-(r(l,i,o,s)+c.PANE_PADDING)}),h[a]-h[s(u)]-(f<0?f:0))}var u=Object.keys(t);return e?l(t,u,"width","left","right",["top","bottom"]):l(t,u,"height","top","bottom",["left","right"]),t}function z(e,t,n,i){t&&(H(e,"createTicks",n),g.default.synchronize(e)),H(e,"draw",!t&&n,i)}function W(e,t){var n={};return function(i){if(!i.customPositionIsAvailable()||i.customPositionEqualsToPredefined()){var o=n[i.pane]=n[i.pane]||{top:0,left:0,bottom:0,right:0},a=i.getMultipleAxesSpacing(),r=i.getMargins();i.shift(o),o[e]=M(e,o,r,a),o[t]=M(t,o,r,a)}else i.shift({top:0,left:0,bottom:0,right:0})}}function G(e,t){var n,i,o=0;for(n in t.panes)i=t.panes[n],o+="height"===e?i.top+i.bottom:i.left+i.right;return o}function j(e,t,n,i){var o=0;e[t]>0&&(o=G(t,i(n,V)),H(n,"hideTitle"),e[t]-=o-G(t,i(n,V))),e[t]>0&&H(n,"hideOuterElements")}var q=m.AdvancedChart.inherit({_themeSection:"chart",_fontFields:["crosshair.label.font"],_initCore:function(){this.paneAxis={},this.callBase()},_init:function(){this._containerInitialHeight=(0,s.hasWindow)()?(0,i.getHeight)(this._$element):0,this.callBase()},_correctAxes:function(){this._correctValueAxes(!0)},_getExtraOptions:o.noop,_createPanes:function(){var e,t=this,n=t.option("panes"),i=0;return(!n||E(n)&&!n.length)&&(n=I),t.callBase(),e=t.option("defaultPane"),n=(0,a.extend)(!0,[],E(n)?n:[n]),(0,l.each)(n,(function(e,t){t.name=(0,h.isDefined)(t.name)?t.name:D+i++})),(0,h.isDefined)(e)?P(n,e)||(t._incidentOccurred("W2101",[e]),e=n[n.length-1].name):e=n[n.length-1].name,t.defaultPane=e,t._isRotated()?n.reverse():n},_getAxisRenderingOptions:function(){return{axisType:"xyAxes",drawingType:"linear"}},_prepareAxisOptions:function(e,t,n){return{isHorizontal:"argumentAxis"===e!==n,containerColor:this._themeManager.getOptions("containerBackgroundColor")}},_checkPaneName:function(e){var t=(0,c.map)(this.panes,(function(e){return e.name}));return e.pane=e.pane||this.defaultPane,-1!==(0,r.inArray)(e.pane,t)},_initCustomPositioningAxes:function(){var e=this,t=e.getArgumentAxis(),n=t.getOptions().customPositionAxis,i=e._valueAxes.filter((function(e){return e.pane===t.pane&&(!n||n===e.name)}))[0];e._valueAxes.forEach((function(e){t!==e.getOrthogonalAxis()&&(e.getOrthogonalAxis=function(){return t},e.customPositionIsBoundaryOrthogonalAxis=function(){return t.customPositionIsBoundary()})})),(0,h.isDefined)(i)&&i!==t.getOrthogonalAxis()?(t.getOrthogonalAxis=function(){return i},t.customPositionIsBoundaryOrthogonalAxis=function(){return e._valueAxes.some((function(e){return e.customPositionIsBoundary()}))}):(0,h.isDefined)(t.getOrthogonalAxis())&&!(0,h.isDefined)(i)&&(t.getOrthogonalAxis=o.noop)},_getAllAxes:function(){return this._argumentAxes.concat(this._valueAxes)},_resetAxesAnimation:function(e,t){((0,h.isDefined)(t)?t^this._isRotated()?this._argumentAxes:this._valueAxes:this._getAllAxes()).forEach((function(t){t.resetApplyingAnimation(e)}))},_axesBoundaryPositioning:function(){var e=this._getAllAxes(),t=!1;return e.forEach((function(e){if(!e.customPositionIsAvailable())return!1;var n=e.customPositionIsBoundary();e._customBoundaryPosition=e.getCustomBoundaryPosition(),t|=n!==e.customPositionIsBoundary()})),t},_getValueAxis:function(e,t){var n,i,o=this,a=o._valueAxes,r=o.option("valueAxis")||{},s=E(r)?r:[r],l=o._isRotated(),u=o._getCrosshairMargins();return t=t||function(e,t,n){for(var i,o=0;o<e.length;o++)if(e[o].pane===t||void 0===e[o].pane&&t===n){i=e[o].name;break}return i||(i=e[0].name),i}(a,e,o.defaultPane),(i=function e(t,n,i){var o,a;for(a=0;a<i.length;a++)if((o=i[a]).name===n&&o.pane===t)return o;if(t)return e(void 0,n,i)}(e,t,a))||((n=function(e,t,n){var i,o;for(o=0;o<t.length;o++)if(t[o].name===n){(i=t[o]).priority=o;break}if(!i)for(o=0;o<e.length;o++)if(e[o].name===n){(i=e[o].getOptions()).priority=e[o].priority;break}return i}(a,s,t))||(o._incidentOccurred("W2102",[t]),n={name:t,priority:a.length}),(i=o._createAxis(!1,o._populateAxesOptions("valueAxis",n,{pane:e,name:t,optionPath:E(r)?"valueAxis[".concat(n.priority,"]"):"valueAxis",crosshairMargin:l?u.y:u.x},l))).applyVisualRangeSetter(o._getVisualRangeSetter()),a.push(i)),i.setPane(e),i},_correctValueAxes:function(e){var t=this,n=t._themeManager.getOptions("synchronizeMultiAxes"),i=t._valueAxes,o={};t.series.forEach((function(e){var t=e.getValueAxis();o[t.pane]=!0})),t.panes.forEach((function(a){var r,s,l,u,d,c=a.name;o[c]||t._getValueAxis(c),e&&n&&(r=i.filter((function(e){return e.pane===c})),s=!1,l=[],u=r.some((function(e){var t=e.getOptions().minorGrid;return t&&t.visible})),d=r.some((function(e){var t=e.getOptions().grid;return t&&t.visible})),r.length>1&&(r.forEach((function(e){var t=e.getOptions().grid;s?A(e,!1,!1):t&&t.visible&&(e.getTranslator().getBusinessRange().isEmpty()?(A(e,!1,!1),l.push(e)):(s=!0,A(e,d,u)))})),!s&&l.length&&A(l[0],d,u)))})),t._valueAxes=i.filter((function(e){e.pane||e.setPane(t.defaultPane);var n=P(t.panes,e.pane);return n||(e.dispose(),e=null),n})).sort(O);var a=this.getValueAxis();t._valueAxes.forEach((function(e){var n=e.getOptions().optionPath;if(n){var i=t._valueAxes.filter((function(e){return e.getOptions().optionPath===n}));i.length>1&&(i.some((function(e){return e===a}))?i.forEach((function(e){e!==a&&(e.getOptions().optionPath=null)})):i.forEach((function(e,t){0!==t&&(e.getOptions().optionPath=null)})))}}))},_getSeriesForPane:function(e){var t=[];return(0,l.each)(this.series,(function(n,i){i.pane===e&&t.push(i)})),t},_createPanesBorderOptions:function(){var e=this._themeManager.getOptions("commonPaneSettings").border,t={};return this.panes.forEach((function(n){return t[n.name]=(0,a.extend)(!0,{},e,n.border)})),t},_createScrollBar:function(){var e=this,t=e._themeManager.getOptions("scrollBar")||{},n=e._scrollBarGroup;t.visible?(t.rotated=e._isRotated(),e._scrollBar=(e._scrollBar||new _.ScrollBar(e._renderer,n)).update(t)):(n.linkRemove(),e._scrollBar&&e._scrollBar.dispose(),e._scrollBar=null)},_executeAppendAfterSeries:function(e){e()},_prepareToRender:function(e){var t=this._createPanesBorderOptions();return this._createPanesBackground(),this._appendAxesGroups(),this._adjustViewport(),t},_adjustViewport:function(){this._themeManager.getOptions("adjustOnZoom")&&this._valueAxes.forEach((function(e){return e.adjust()}))},_recreateSizeDependentObjects:function(e){var t=this,n=t._getVisibleSeries(),i=n.some((function(e){return e.useAggregation()})),o=t._isZooming();i&&(t._argumentAxes.forEach((function(e){e.updateCanvas(t._canvas,!0)})),n.forEach((function(t){t.useAggregation()&&(e||o||!t._useAllAggregatedPoints)&&t.createPoints()})),t._processSeriesFamilies())},_isZooming:function(){var e=this,t=e.getArgumentAxis();if(!t||!t.getTranslator())return!1;var n=t.getTranslator().getBusinessRange(),i=t.getViewport(),o=i?i.min:0,a=i?i.max:0;"logarithmic"===n.axisType&&(o=(0,c.getLog)(o,n.base),a=(0,c.getLog)(a,n.base));var r=n.axisType===T?(0,c.getCategoriesInfo)(n.categories,o,a).categories.length:Math.abs(a-o),s=(0,f.getPrecision)(r);s=s>1?Math.pow(10,s-2):1;var l=Math.round((e._zoomLength-r)*s)/s!=0;return e._zoomLength=r,l},_handleSeriesDataUpdated:function(){var e=this,t=new b.Range;e.series.forEach((function(e){t.addRange(e.getArgumentRange())})),e._argumentAxes.forEach((function(n){n.updateCanvas(e._canvas,!0),n.setBusinessRange(t,e._axesReinitialized)})),e.callBase()},_isLegendInside:function(){return this._legend&&"inside"===this._legend.getPosition()},_isRotated:function(){return this._themeManager.getOptions("rotated")},_getLayoutTargets:function(){return this.panes},_applyClipRects:function(e){var t=this;t._drawPanesBorders(e),t._createClipRectsForPanes(),t._applyClipRectsForAxes(),t._fillPanesBackground()},_updateLegendPosition:function(e,t){var n=this;if(e.drawLegend&&n._legend&&t){var i=n.panes,o=(0,a.extend)({},i[0].canvas),r=new x.LayoutManager;o.right=i[i.length-1].canvas.right,o.bottom=i[i.length-1].canvas.bottom,r.layoutInsideLegend(n._legend,o)}},_allowLegendInsidePosition:function(){return!0},_applyExtraSettings:function(e){var t=this,n=t._getPaneIndex(e.pane),i=t._panesClipRects,o=i.wide[n];e.setClippingParams(i.base[n].id,o&&o.id,t._getPaneBorderVisibility(n))},_updatePanesCanvases:function(e){e.recreateCanvas&&(0,c.updatePanesCanvases)(this.panes,this._canvas,this._isRotated())},_normalizePanesHeight:function(){(0,c.normalizePanesHeight)(this.panes)},_renderScaleBreaks:function(){this._valueAxes.concat(this._argumentAxes).forEach((function(e){e.drawScaleBreaks()}))},_getArgFilter:function(){return y.default.getViewPortFilter(this.getArgumentAxis().visualRange()||{})},_applyPointMarkersAutoHiding:function(){var e=this,t=e.series;e._themeManager.getOptions("autoHidePointMarkers")?e.panes.forEach((function(n){var i=n.borderCoords,o=n.name,r=t.filter((function(e){return e.pane===o&&e.usePointsToDefineAutoHiding()})),s=e.getArgumentAxis(),l=function(e,t,n){var i=[],o={},r=n.visualRange(),s=n.getTranslator(),l=y.default.getViewPortFilter(r||{});return t.forEach((function(n){var r=n.getValueAxis(),u=r.getCanvasRange(),d=r.getTranslator(),c=e.indexOf(n),h=y.default.getViewPortFilter(u||{});o[c]={},t.forEach((function(t){return o[c][e.indexOf(t)]=0}));var f=[];n.getPoints().filter((function(e){return e.getOptions().visible&&l(e.argument)&&(h(e.getMinValue(!0))||h(e.getMaxValue(!0)))})).forEach((function(e){var t={seriesIndex:c,argument:e.argument,value:e.getMaxValue(!0),size:e.bubbleSize||e.getOptions().size};if(e.getMinValue(!0)!==e.getMaxValue(!0)){var n=(0,a.extend)({},t);n.value=e.getMinValue(!0),n.x=s.to(n.argument,1),n.y=d.to(n.value,1),f.push(n)}t.x=s.to(t.argument,1),t.y=d.to(t.value,1),f.push(t)})),o[c].pointsCount=f.length,o[c].total=0,o[c].continuousSeries=0,i.push({name:n.name,index:c,points:f})})),{series:i,overloadedSeries:o}}(t,r,s);if(function(e,t,n){for(var i=e.width*e.height,o=t.series,a=function(e){var a=n.filter((function(t){return t.name===o[e].name}))[0],r=o[e].points,s=r.length?r[0].size:0,l=s*s*r.length;if(a.autoHidePointMarkersEnabled()&&l>=i/o.length){var u=o[e].index;a.autoHidePointMarkers=!0,o.splice(e,1),n.splice(n.indexOf(a),1),delete t.overloadedSeries[u]}},r=o.length-1;r>=0;r--)a(r)}(i,l,r),l.series.length){var u=s.visualRange(),d=s.getOptions().type===T?function(e,t){return u.categories.indexOf(e.argument)-u.categories.indexOf(t.argument)}:function(e,t){return e.argument-t.argument},c=[];l.series.forEach((function(e){return c=c.concat(e.points)})),c.sort(d),function(e,t){for(var n=!1,i=0;i<e.length-1;i++){var o=e[i],a=o.size;if((0,h.isDefined)(o.x)&&(0,h.isDefined)(o.y))for(var r=i+1;r<e.length;r++){var s=e[r],l=null==s?void 0:s.x,u=null==s?void 0:s.y;if(!(0,h.isDefined)(l)||Math.abs(o.x-l)>=a){n&=r!==i+1;break}var d=(0,h.isDefined)(l)&&(0,h.isDefined)(u)&&Math.sqrt(Math.pow(o.x-l,2)+Math.pow(o.y-u,2));d&&d<a&&(t[o.seriesIndex][s.seriesIndex]++,t[o.seriesIndex].total++,n||(t[o.seriesIndex].continuousSeries++,n=!0))}}}(c,l.overloadedSeries),function(e,t,n,i){var o=i.getOptions().type;t.forEach((function(t){var a=e.indexOf(t);t.autoHidePointMarkers=!1;var r=i.getTicksValues().majorTicksValues.length;if(t.autoHidePointMarkersEnabled()&&(o===T||n[a].pointsCount>r))for(var s in n[a]){var l=parseInt(s);if(!(isNaN(l)||n[a].total/n[a].continuousSeries<3))if(l===a){if(2*n[l][l]>=n[l].pointsCount){t.autoHidePointMarkers=!0;break}}else if(n[a].total>=n[a].pointsCount){t.autoHidePointMarkers=!0;break}}}))}(t,r,l.overloadedSeries,s)}})):t.forEach((function(e){return e.autoHidePointMarkers=!1}))},_renderAxes:function(e,t){function n(e){return e.map((function(e){if(!e.getTitle)return 0;var t=e.getTitle();return t?t.bBox.width:0}))}var i=this,o=i._isRotated(),r=i._themeManager.getOptions("synchronizeMultiAxes"),s=i._scrollBar?[i._scrollBar]:[],l=i._isArgumentAxisBeforeScrollBar()?i._argumentAxes.concat(s):s.concat(i._argumentAxes),u=o?i._argumentAxes:i._valueAxes,d=o?l:i._valueAxes,c=o?i._valueAxes:i._argumentAxes,h=o?i._valueAxes:l,f=u.concat(c),p=f.concat(s),g=u.some((function(e){return e.isFirstDrawing()}));i._normalizePanesHeight(),i._updatePanesCanvases(e);var m=i.panes.reduce((function(e,t){return e[t.name]=(0,a.extend)({},t.canvas),e}),{}),_=i.panes.reduce((function(e,t){return e[t.name]={height:t.height,unit:t.unit},e}),{}),v=(0,a.extend)(!0,{},m);i._initCustomPositioningAxes();var y=i._axesBoundaryPositioning();if(!e.adjustAxes&&!y)return z(u,!o&&r,m,t),z(c,o&&r,m,t),H(f,"prepareAnimation"),i._renderScaleBreaks(),c.forEach((function(e){return e.resolveOverlappingForCustomPositioning(u)})),u.forEach((function(e){return e.resolveOverlappingForCustomPositioning(c)})),!1;y&&f.forEach((function(e){return e.customPositionIsAvailable()&&e.shift({top:0,left:0,bottom:0,right:0})})),i._scrollBar&&i._scrollBar.setPane(i.panes);var x={panes:{}},b=F(h,(function(e){return e.estimateMargins(m[e.pane])}));m=N(o,m,_,x,b);var w=function(e){z(e?c:u,(e?o:!o)&&r,m,t),e?b=F(h,V):x=L(d),m=N(o,m,_,x,b)};w(!1),w(!0),!i._changesApplying&&i._estimateTickIntervals(u,m)&&w(!1);var C=n(u),S=i._getVisibleSeries(),k=function(e,t){var n=t.reduce((function(e,t){return e+t}),0)/t.length;return e.animate&&n<=e.animationPointsLimit}(e,i._getPointsToAnimation(S));return H(p,"updateSize",m,k),h.forEach(W("top","bottom")),d.forEach(W("left","right")),i._renderScaleBreaks(),i.panes.forEach((function(e){(0,a.extend)(e.canvas,m[e.name])})),i._valueAxes.forEach((function(e){e.setInitRange()})),u.forEach((function(e,t){var a;if(null!==(a=e.hasWrap)&&void 0!==a&&a.call(e)){var r=e.getTitle(),s=(r?r.bBox.width:0)-C[t];"right"===e.getOptions().position?x.right+=s:(x.left+=s,i.panes.forEach((function(e){var t=e.name;return x.panes[t].left+=s}))),m=N(o,m,_,x,b),H(p,"updateSize",m,!1,!1),C=n(u)}})),u.some((function(e){return e.customPositionIsAvailable()&&e.getCustomPosition()!==e._axisPosition}))&&(k&&i._resetAxesAnimation(g,!1),H(u,"updateSize",m,k)),c.forEach((function(e){return e.resolveOverlappingForCustomPositioning(u)})),u.forEach((function(e){return e.resolveOverlappingForCustomPositioning(c)})),v},_getExtraTemplatesItems:function(){var e=this,t=(e._argumentAxes||[]).concat(e._valueAxes||[]),n=e._collectTemplatesFromItems(t);return{items:n.items,groups:n.groups,launchRequest:function(){t.forEach((function(e){e.setRenderedState(!0)}))},doneRequest:function(){t.forEach((function(e){e.setRenderedState(!1)}))}}},_estimateTickIntervals:function(e,t){return e.some((function(e){return e.estimateTickInterval(t[e.pane])}))},checkForMoreSpaceForPanesCanvas:function(){var e=this,t=e._isRotated(),n=!1;if(e.panes.filter((function(e){return e.unit})).length===e.panes.length){var i=0,o=0;if(t){var a=e.getArgumentAxis().getMargins().right,r=Math.min.apply(Math,e.panes.map((function(e){return e.canvas.right})));i=e._canvas.right+a-r}else{var s=e.getArgumentAxis().getMargins().bottom,l=Math.min.apply(Math,e.panes.map((function(e){return e.canvas.bottom})));o=e._canvas.bottom+s-l}if(n=(i>0||o>0)&&{width:i,height:o},0!==o){var u=e.getSize(),d=e.option("size"),c=e._$element[0],h=!!parseInt(c.style.height)||0!==e._containerInitialHeight;t||d&&d.height||h||(e._forceResize(u.width,u.height+o),n=!1)}}else n=e.layoutManager.needMoreSpaceForPanesCanvas(e._getLayoutTargets(),t,(function(e){return{width:t&&!!e.unit,height:!t&&!!e.unit}}));return n},_forceResize:function(e,t){this._renderer.resize(e,t),this._updateSize(),this._setContentSize(),this._preserveOriginalCanvas(),this._updateCanvasClipRect(this._canvas)},_shrinkAxes:function(e,t){if(e&&t){this._renderer.stopAllAnimations(!0);var n=this,i=n._isRotated(),o=n._scrollBar?[n._scrollBar]:[],r=n._isArgumentAxisBeforeScrollBar()?n._argumentAxes.concat(o):o.concat(n._argumentAxes),s=i?r:n._valueAxes,l=i?n._valueAxes:r,u=s.concat(l);if(e.width||e.height){j(e,"height",l,F),j(e,"width",s,L),H(u,"updateSize",t);var d=n.panes.reduce((function(e,t){return e[t.name]={height:t.height,unit:t.unit},e}),{});H(u,"updateSize",t=N(i,t,d,L(s),F(l,V))),l.forEach(W("top","bottom")),s.forEach(W("left","right")),n.panes.forEach((function(e){return(0,a.extend)(e.canvas,t[e.name])}))}}},_isArgumentAxisBeforeScrollBar:function(){var e=this,t=e.getArgumentAxis();if(e._scrollBar){var n,i=t.getResolvedBoundaryPosition(),o=null===(n=t.getOptions().label)||void 0===n?void 0:n.position,a=e._scrollBar.getOptions().position;return t.hasNonBoundaryPosition()||a===i&&o!==a}return!1},_getPanesParameters:function(){var e,t=this,n=t.panes,i=[];for(e=0;e<n.length;e++)t._getPaneBorderVisibility(e)&&i.push({coords:n[e].borderCoords,clipRect:t._panesClipRects.fixed[e]});return i},_createCrosshairCursor:function(){var e=this,t=e._themeManager.getOptions("crosshair")||{},n=e.getArgumentAxis(),i=e._isRotated()?[e._valueAxes,[n]]:[[n],e._valueAxes],o={canvas:e._getCommonCanvas(),panes:e._getPanesParameters(),axes:i};t&&t.enabled&&(e._crosshair?e._crosshair.update(t,o):e._crosshair=new v.Crosshair(e._renderer,t,o,e._crosshairCursorGroup),e._crosshair.render())},_getCommonCanvas:function(){var e,t,n,i=this.panes;for(e=0;e<i.length;e++)t=i[e].canvas,n?(n.right=t.right,n.bottom=t.bottom):n=(0,a.extend)({},t);return n},_createPanesBackground:function(){var e,t,n,i=this,o=i._themeManager.getOptions("commonPaneSettings").backgroundColor,a=i._renderer,r=[];for(i._panesBackgroundGroup.clear(),n=0;n<i.panes.length;n++)(e=i.panes[n].backgroundColor||o)&&"none"!==e?(t=a.rect(0,0,0,0).attr({fill:e,"stroke-width":0}).append(i._panesBackgroundGroup),r.push(t)):r.push(null);i.panesBackground=r},_fillPanesBackground:function(){var e,t=this;(0,l.each)(t.panes,(function(n,i){e=i.borderCoords,null!==t.panesBackground[n]&&t.panesBackground[n].attr({x:e.left,y:e.top,width:e.width,height:e.height})}))},_calcPaneBorderCoords:function(e){var t=e.canvas,n=e.borderCoords=e.borderCoords||{};n.left=t.left,n.top=t.top,n.right=t.width-t.right,n.bottom=t.height-t.bottom,n.width=Math.max(n.right-n.left,0),n.height=Math.max(n.bottom-n.top,0)},_drawPanesBorders:function(e){var t=this,n=t._isRotated();t._panesBorderGroup.linkRemove().clear(),(0,l.each)(t.panes,(function(i,o){var a=e[o.name],r={fill:"none",stroke:a.color,"stroke-opacity":a.opacity,"stroke-width":a.width,dashStyle:a.dashStyle,"stroke-linecap":"square"};if(t._calcPaneBorderCoords(o,n),a.visible){var s=o.borderCoords,l=(0,d.prepareSegmentRectPoints)(s.left,s.top,s.width,s.height,a);t._renderer.path(l.points,l.pathType).attr(r).append(t._panesBorderGroup)}})),t._panesBorderGroup.linkAppend()},_createClipRect:function(e,t,n,i,o,a){var r=e[t];r?r.attr({x:n,y:i,width:o,height:a}):(r=this._renderer.clipRect(n,i,o,a),e[t]=r)},_createClipRectsForPanes:function(){var e=this,t=e._canvas;(0,l.each)(e.panes,(function(n,i){var o=!1,a=i.borderCoords,r=a.left,s=a.top,u=a.width,d=a.height,c=e._panesClipRects;e._createClipRect(c.fixed,n,r,s,u,d),e._createClipRect(c.base,n,r,s,u,d),(0,l.each)(e.series,(function(e,t){t.pane===i.name&&(t.isFinancialSeries()||t.areErrorBarsVisible())&&(o=!0)})),o?(e._isRotated()?(s=0,d=t.height):(r=0,u=t.width),e._createClipRect(c.wide,n,r,s,u,d)):c.wide[n]=null}))},_applyClipRectsForAxes:function(){for(var e=this,t=e._getAllAxes(),n=e._getCanvasClipRectID(),i=0;i<t.length;i++){var o=e._getElementsClipRectID(t[i].pane);t[i].applyClipRects(o,n)}},_getPaneBorderVisibility:function(e){var t=this._themeManager.getOptions("commonPaneSettings").border.visible,n=(this.panes[e]||{}).border||{};return"visible"in n?n.visible:t},_getCanvasForPane:function(e){var t,n=this.panes,i=n.length;for(t=0;t<i;t++)if(n[t].name===e)return n[t].canvas},_getTrackerSettings:function(){var e=this,t=e._themeManager;return(0,a.extend)(this.callBase(),{chart:e,rotated:e._isRotated(),crosshair:e._getCrosshairOptions().enabled?e._crosshair:null,stickyHovering:t.getOptions("stickyHovering")})},_resolveLabelOverlappingStack:function(){var e=this,t=e._isRotated(),n=t?function(e,t){return{x:e.x-t,y:e.y}}:function(e,t){return{x:e.x,y:e.y-t}};(0,l.each)(e._getStackPoints(),(function(i,o){(0,l.each)(o,(function(i,o){var a=o[0].series.getValueAxis().getOptions().inverted;p.overlapping.resolveLabelOverlappingInOneDirection(o,e._getCommonCanvas(),t,a,n,(function(e,n){var i=t?1:0;return e.labels[0].getFigureCenter()[i]-n.labels[0].getFigureCenter()[i]==0?(e.value()-n.value())*(e.labels[0].getPoint().series.getValueAxis().getTranslator().isInverted()?-1:1):0}))}))}))},_getStackPoints:function(){var e={},t=this._getVisibleSeries();return(0,l.each)(t,(function(t,n){var i=n.getPoints(),o=n.getStackName()||null;(0,l.each)(i,(function(t,n){var i=n.argument;e[i]||(e[i]={}),e[i][o]||(e[i][o]=[]),e[i][o].push(n)}))})),e},_getCrosshairOptions:function(){return this._getOption("crosshair")},zoomArgument:function(e,t){this._initialized&&((0,h.isDefined)(e)||(0,h.isDefined)(t))&&this.getArgumentAxis().visualRange([e,t])},resetVisualRange:function(){var e=this,t=e._argumentAxes,n=e.getArgumentAxis();t.forEach((function(t){t.resetVisualRange(n!==t),e._applyCustomVisualRangeOption(t)})),e.callBase()},getVisibleArgumentBounds:function(){var e=this._argumentAxes[0].getTranslator().getBusinessRange(),t=e.axisType===T,n=e.categories;return{minVisible:t?e.minVisible||n[0]:e.minVisible,maxVisible:t?e.maxVisible||n[n.length-1]:e.maxVisible}},_change_FULL_RENDER:function(){this.callBase(),this._changes.has("VISUAL_RANGE")&&this._raiseZoomEndHandlers()},_getAxesForScaling:function(){return[this.getArgumentAxis()].concat(this._valueAxes)},_applyVisualRangeByVirtualAxes:function(e,t){if(e.isArgumentAxis){if(e!==this.getArgumentAxis())return!0;this._argumentAxes.filter((function(t){return t!==e})).forEach((function(e){return e.visualRange(t,{start:!0,end:!0})}))}return!1},_raiseZoomEndHandlers:function(){this._argumentAxes.forEach((function(e){return e.handleZoomEnd()})),this.callBase()},_setOptionsByReference:function(){this.callBase(),(0,a.extend)(this._optionsByReference,{"argumentAxis.visualRange":!0})},option:function(){var e=this.callBase.apply(this,arguments),t=this._options.silent("valueAxis");if("array"===(0,h.type)(t))for(var n=0;n<t.length;n++){var i="valueAxis[".concat(n,"].visualRange");this._optionsByReference[i]=!0}return e},_notifyVisualRange:function(){var e=this,t=e._argumentAxes[0],n=(0,c.convertVisualRangeObject)(t.visualRange(),!E(e.option("argumentAxis.visualRange")));t.skipEventRising&&(0,c.rangesAreEqual)(n,e.option("argumentAxis.visualRange"))?t.skipEventRising=null:e.option("argumentAxis.visualRange",n),e.callBase()}});q.addPlugin(w.default),q.addPlugin(C.default),q.addPlugin(S.plugins.core),q.addPlugin(S.plugins.chart),(0,u.default)("dxChart",q);var $=q;t.default=$,e.exports=t.default,e.exports.default=t.default},42602:function(e,t,n){t.AdvancedChart=void 0;var i,o=n(13306),a=n(89386),r=n(95479),s=n(21177),l=n(41278),u=n(1939),d=n(33224),c=n(97574),h=(i=n(63407))&&i.__esModule?i:{default:i},f=n(35922),p=n(20576),g=n(19157);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var _=Array.isArray,v="default",y="VISUAL_RANGE";function x(e){return _(e)?0===e.length?[{}]:e:[e]}function b(e,t,n,i){var o,a;if(n){a=e.value,o={skipEventRising:!0};var r=w(e.fullName,a);r&&(o={allowPartialUpdate:!0},a=r)}else a=((0,f.isDefined)(i)?e.value[i]:e.value).visualRange;t.visualRange(a,o)}function w(e,t){var n=e.split("."),i=n[n.length-1];if("endValue"===i||"startValue"===i)return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},i,t)}var C=d.BaseChart.inherit({_fontFields:["commonAxisSettings.label.font","commonAxisSettings.title.font"],_partialOptionChangesMap:{visualRange:y,_customVisualRange:y,strips:"REFRESH_AXES",constantLines:"REFRESH_AXES"},_partialOptionChangesPath:{argumentAxis:["strips","constantLines","visualRange","_customVisualRange"],valueAxis:["strips","constantLines","visualRange","_customVisualRange"]},_initCore:function(){this._panesClipRects={},this.callBase()},_disposeCore:function(){var e=this._disposeObjectsInArray,t=this._panesClipRects;this.callBase(),e.call(t,"fixed"),e.call(t,"base"),e.call(t,"wide"),this._panesClipRects=null,this._labelsAxesGroup.linkOff(),this._labelsAxesGroup.dispose(),this._labelsAxesGroup=null},_dispose:function(){var e=this,t=this._disposeObjectsInArray;e.callBase(),e.panes=null,e._legend&&(e._legend.dispose(),e._legend=null),t.call(e,"panesBackground"),t.call(e,"seriesFamilies"),e._disposeAxes()},_createPanes:function(){this._cleanPanesClipRects("fixed"),this._cleanPanesClipRects("base"),this._cleanPanesClipRects("wide")},_cleanPanesClipRects:function(e){(this._panesClipRects[e]||[]).forEach((function(e){return e&&e.dispose()})),this._panesClipRects[e]=[]},_getElementsClipRectID:function(e){var t=this._panesClipRects.fixed[this._getPaneIndex(e)];return t&&t.id},_getPaneIndex:function(e){var t,n=e||v;return(0,r.each)(this.panes,(function(e,i){if(i.name===n)return t=e,!1})),t},_updateSize:function(){this.callBase(),(0,g.setCanvasValues)(this._canvas)},_reinitAxes:function(){this.panes=this._createPanes(),this._populateAxes(),this._axesReinitialized=!0},_getCrosshairMargins:function(){var e=this._getCrosshairOptions()||{},t=e.enabled,n=(0,c.getMargins)();return{x:t&&e.horizontalLine.visible?n.x:0,y:t&&e.verticalLine.visible?n.y:0}},_populateAxes:function(){var e,t,n=this,i=n.panes,o=n._isRotated(),s=x(n.option("argumentAxis")||{})[0],l=n.option("valueAxis"),u=x(l||{}),d=[],c=[],h=0,f=n._getCrosshairMargins();t=o?"right"===s.position?i[i.length-1].name:i[0].name:"top"===s.position?i[0].name:i[i.length-1].name,e=(0,g.map)(i,(function(e){var i=e.name!==t;return n._populateAxesOptions("argumentAxis",s,{pane:e.name,name:null,optionPath:"argumentAxis",crosshairMargin:o?f.x:f.y},o,i)})),(0,r.each)(u,(function(e,t){var i,s=[],u=t.name;u&&-1!==(0,a.inArray)(u,c)?n._incidentOccurred("E2102"):(u&&c.push(u),t.pane&&s.push(t.pane),null!==(i=t.panes)&&void 0!==i&&i.length&&(s=s.concat(t.panes.slice(0))),(s=(0,g.unique)(s)).length||s.push(void 0),(0,r.each)(s,(function(i,a){var r=_(l)?"valueAxis[".concat(e,"]"):"valueAxis";d.push(n._populateAxesOptions("valueAxis",t,{name:u||"defaultAxisName"+h++,pane:a,priority:e,optionPath:r,crosshairMargin:o?f.y:f.x},o))})))})),n._redesignAxes(e,!0,t),n._redesignAxes(d,!1)},_redesignAxes:function(e,t,n){var i=this,o=[],a=t?i._argumentAxes:i._valueAxes;(0,r.each)(e,(function(e,n){var s=a&&a.filter((function(e){return e.name===n.name&&(!(0,f.isDefined)(n.pane)&&i.panes.some((function(t){return t.name===e.pane}))||e.pane===n.pane)}));s&&s.length>0?(0,r.each)(s,(function(e,a){var r=function(e,t,n){if(n)return{argumentAxisType:e.argumentAxisType,argumentType:e.argumentType};var i=e.groups.filter((function(e){return e.valueAxis===t}))[0];return{valueAxisType:i.valueAxisType,valueType:i.valueType}}(i._groupsData,a,t);a.updateOptions(n),t?a.setTypes(r.argumentAxisType,r.argumentType,"argumentType"):a.setTypes(r.valueAxisType,r.valueType,"valueType"),a.validate(),o.push({axis:a})})):o.push({options:n})})),a?(0,r.reverseEach)(a,(function(e,n){o.some((function(e){return e.axis&&e.axis===n}))||i._disposeAxis(e,t)})):a=t?i._argumentAxes=[]:i._valueAxes=[],(0,r.each)(o,(function(e,o){var r=o.axis;o.axis&&t?o.axis.isVirtual=o.axis.pane!==n:o.options&&(r=i._createAxis(t,o.options,t?o.options.pane!==n:void 0),a.push(r)),r.applyVisualRangeSetter(i._getVisualRangeSetter())}))},_disposeAxis:function(e,t){var n=t?this._argumentAxes:this._valueAxes,i=n[e];i&&(i.dispose(),n.splice(e,1))},_disposeAxes:function(){var e=this,t=e._disposeObjectsInArray;t.call(e,"_argumentAxes"),t.call(e,"_valueAxes")},_appendAdditionalSeriesGroups:function(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets:function(){var e=this;return(this.series||[]).map((function(t){var n=e._getLegendOptions(t);return n.legendData.series=t,t.getOptions().showInLegend||(n.legendData.visible=!1),n}))},_legendItemTextField:"name",_seriesPopulatedHandlerCore:function(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers:function(){var e;for(e=0;e<this.series.length;++e)this.series[e].drawTrackers()},_specialProcessSeries:function(){this._processSeriesFamilies()},_processSeriesFamilies:function(){var e,t,n=this,i=[],o=[],s=n._themeManager,l=s.getOptions("negativesAsZeroes"),d=s.getOptions("negativesAsZeros"),c={minBubbleSize:s.getOptions("minBubbleSize"),maxBubbleSize:s.getOptions("maxBubbleSize"),barGroupPadding:s.getOptions("barGroupPadding"),barGroupWidth:s.getOptions("barGroupWidth"),negativesAsZeroes:(0,f.isDefined)(l)?l:d};null!==(e=n.seriesFamilies)&&void 0!==e&&e.length?(0,r.each)(n.seriesFamilies,(function(e,t){t.updateOptions(c),t.adjustSeriesValues()})):((0,r.each)(n.series,(function(e,t){-1===(0,a.inArray)(t.type,i)&&i.push(t.type)})),(0,r.each)(n._getLayoutTargets(),(function(e,a){t=n._getSeriesForPane(a.name),(0,r.each)(i,(function(e,i){var r=new u.SeriesFamily({type:i,pane:a.name,minBubbleSize:c.minBubbleSize,maxBubbleSize:c.maxBubbleSize,barGroupPadding:c.barGroupPadding,barGroupWidth:c.barGroupWidth,negativesAsZeroes:c.negativesAsZeroes,rotated:n._isRotated()});r.add(t),r.adjustSeriesValues(),o.push(r)}))})),n.seriesFamilies=o)},_updateSeriesDimensions:function(){var e,t=this.seriesFamilies||[];for(e=0;e<t.length;e++){var n=t[e];n.updateSeriesValues(),n.adjustSeriesDimensions()}},_getLegendCallBack:function(e){return this._legend&&this._legend.getActionCallback(e)},_appendAxesGroups:function(){var e=this;e._stripsGroup.linkAppend(),e._gridGroup.linkAppend(),e._axesGroup.linkAppend(),e._labelsAxesGroup.linkAppend(),e._constantLinesGroup.linkAppend(),e._stripLabelAxesGroup.linkAppend(),e._scaleBreaksGroup.linkAppend()},_populateMarginOptions:function(){var e,t,n,i,o,a,r=this,s=(e=r.getSize(),t=r.panes.length,n=r._themeManager.getOptions("maxBubbleSize"),o=(i=r._isRotated())?e.width/t:e.width,a=i?e.height:e.height/t,Math.min(o,a)*n),l={};r._valueAxes.forEach((function(e){var t=r.series.filter((function(t){return t.getValueAxis()===e})),n={};t.forEach((function(e){if(e.isVisible()){var t=function(e,t){return e.processBubbleSize&&(e.size=t),e}(e.getMarginOptions(),s);n=(0,g.mergeMarginOptions)(n,t),l=(0,g.mergeMarginOptions)(l,t)}})),e.setMarginOptions(n)})),r._argumentAxes.forEach((function(e){return e.setMarginOptions(l)}))},_populateBusinessRange:function(e,t){var n=this,i=n._isRotated(),o=n._getVisibleSeries(),a={},r=new s.Range({rotated:!!i}),l=function(e){return e.pane||v};if(n.panes.forEach((function(e){return a[e.name]=new s.Range({rotated:!!i})})),n._valueAxes.forEach((function(r){var u=new s.Range({rotated:!!i,pane:r.pane,axis:r.name}),d=o.filter((function(e){return e.getValueAxis()===r}));d.forEach((function(e){var t=e.getRangeData();u.addRange(t.val),a[l(r)].addRange(t.arg)})),(!e||e&&d.length&&r===e)&&(r.setGroupSeries(d),r.setBusinessRange(u,n._axesReinitialized||t,n._argumentAxes[0]._lastVisualRangeUpdateMode))})),!e||e&&o.length){Object.keys(a).forEach((function(e){return r.addRange(a[e])}));var u=r.interval;n._argumentAxes.forEach((function(e){var t,i=null!==(t=a[l(e)].interval)&&void 0!==t?t:u;e.setBusinessRange(new s.Range(m({},r,{interval:i})),n._axesReinitialized,void 0,n._groupsData.categories)}))}n._populateMarginOptions()},getArgumentAxis:function(){return(this._argumentAxes||[]).filter((function(e){return!e.isVirtual}))[0]},getValueAxis:function(e){var t=this;return(this._valueAxes||[]).filter((0,f.isDefined)(e)?function(t){return t.name===e}:function(e){return e.pane===t.defaultPane})[0]},_getGroupsData:function(){var e=this,t=[];return e._valueAxes.forEach((function(n){t.push({series:e.series.filter((function(e){return e.getValueAxis()===n})),valueAxis:n,valueOptions:n.getOptions()})})),{groups:t,argumentAxes:e._argumentAxes,argumentOptions:e._argumentAxes[0].getOptions()}},_groupSeries:function(){var e=this;e._correctValueAxes(!1),e._groupsData=e._getGroupsData()},_processValueAxisFormat:function(){var e=[];this.series.forEach((function(t){var n=t.getValueAxis();t.isFullStackedSeries()&&(n.setPercentLabelFormat(),e.push(n))})),this._valueAxes.forEach((function(t){-1===e.indexOf(t)&&t.resetAutoLabelFormat()}))},_populateAxesOptions:function(e,t,n,i,a){var r=this._prepareStripsAndConstantLines(e,t,i),s=(0,o.extend)(!0,{},r,n,this._prepareAxisOptions(e,r,i));return a&&(s.visible=s.tick.visible=s.minorTick.visible=s.label.visible=!1,s.title={}),s},_getValFilter:function(e){return h.default.getViewPortFilter(e.getValueAxis().visualRange()||{})},_createAxis:function(e,t,n){var i=this,a=e?"argumentAxis":"valueAxis",r=(0,o.extend)({renderer:i._renderer,incidentOccurred:i._incidentOccurred,eventTrigger:i._eventTrigger,axisClass:e?"arg":"val",widgetClass:"dxc",stripsGroup:i._stripsGroup,stripLabelAxesGroup:i._stripLabelAxesGroup,constantLinesGroup:i._constantLinesGroup,scaleBreaksGroup:i._scaleBreaksGroup,axesContainerGroup:i._axesGroup,labelsAxesGroup:i._labelsAxesGroup,gridGroup:i._gridGroup,isArgumentAxis:e,getTemplate:function(e){return i._getTemplate(e)}},i._getAxisRenderingOptions(a)),s=new l.Axis(r);return s.updateOptions(t),s.isVirtual=n,s},_applyVisualRangeByVirtualAxes:function(e,t){return!1},_applyCustomVisualRangeOption:function(e,t){e.getOptions().optionPath&&this._parseVisualRangeOption("".concat(e.getOptions().optionPath,".visualRange"),t)},_getVisualRangeSetter:function(){var e=this;return function(t,n){var i=n.skipEventRising,o=n.range;e._applyCustomVisualRangeOption(t,o),t.setCustomVisualRange(o),t.skipEventRising=i,e._applyVisualRangeByVirtualAxes(t,o)||(e._applyingChanges?e._change_VISUAL_RANGE():e._requestChange([y]))}},_getTrackerSettings:function(){return(0,o.extend)(this.callBase(),{argumentAxis:this.getArgumentAxis()})},_prepareStripsAndConstantLines:function(e,t,n){return(t=this._themeManager.getOptions(e,t,n)).strips&&(0,r.each)(t.strips,(function(e){t.strips[e]=(0,o.extend)(!0,{},t.stripStyle,t.strips[e])})),t.constantLines&&(0,r.each)(t.constantLines,(function(e,n){t.constantLines[e]=(0,o.extend)(!0,{},t.constantLineStyle,n)})),t},refresh:function(){this._disposeAxes(),this.callBase()},_layoutAxes:function(e){e();var t=this.checkForMoreSpaceForPanesCanvas();if(t){var n=this._rect.slice(),i=this._layout.backward(n,n,[t.width,t.height]);t.width=Math.max(0,i[0]),t.height=Math.max(0,i[1]),this._canvas=this._createCanvasFromRect(n),e(t)}},checkForMoreSpaceForPanesCanvas:function(){return this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),this._isRotated())},_parseVisualRangeOption:function(e,t){var n=this,i=e.split(/[.[]/)[0],o=e.match(/\d+/g);o=(0,f.isDefined)(o)?parseInt(o[0]):o,e.indexOf("visualRange")>0?("object"!==(0,f.type)(t)&&(t=w(e,t)||t),n._setCustomVisualRange(i,o,t)):("object"===(0,f.type)(t)||_(t))&&i.indexOf("Axis")>0&&JSON.stringify(t).indexOf("visualRange")>0&&((0,f.isDefined)(t.visualRange)?n._setCustomVisualRange(i,o,t.visualRange):_(t)&&t.forEach((function(e,t){return(0,f.isDefined)(e.visualRange)&&n._setCustomVisualRange(i,t,e.visualRange)})))},_setCustomVisualRange:function(e,t,n){var i=this._options.silent(e);i&&((0,f.isDefined)(t)?i[t]._customVisualRange=n:i._customVisualRange=n,this._axesReinitialized=!0)},_raiseZoomEndHandlers:function(){this._valueAxes.forEach((function(e){return e.handleZoomEnd()}))},_setOptionsByReference:function(){this.callBase(),(0,o.extend)(this._optionsByReference,{"valueAxis.visualRange":!0})},_notifyOptionChanged:function(e,t,n){this.callBase.apply(this,arguments),this._optionChangedLocker||this._parseVisualRangeOption(e,t)},_notifyVisualRange:function(){var e=this;e._valueAxes.forEach((function(t){var n=t.getOptions().optionPath;if(n){var i="".concat(n,".visualRange"),o=(0,g.convertVisualRangeObject)(t.visualRange(),!_(e.option(i)));t.skipEventRising&&(0,g.rangesAreEqual)(o,e.option(i))?t.skipEventRising=null:e.option(n)||"valueAxis"===n?e.option(i,o):e.option(n,{name:t.name,visualRange:o})}}))},_notify:function(){this.callBase(),this._axesReinitialized=!1,!0!==this.option("disableTwoWayBinding")&&(this.skipOptionsRollBack=!0,this._notifyVisualRange(),this.skipOptionsRollBack=!1)},_getAxesForScaling:function(){return this._valueAxes},_getAxesByOptionPath:function(e,t,n){var i,o=this._getAxesForScaling(),a=[];return t?(e.fullName&&(i=e.fullName.slice(0,e.fullName.indexOf("."))),a=o.filter((function(e){return e.getOptions().optionPath===i}))):"object"===(0,f.type)(e.value)?a=o.filter((function(t){return t.getOptions().optionPath===e.name})):_(e.value)&&e.value.forEach((function(t,i){var r=o.filter((function(t){return t.getOptions().optionPath==="".concat(e.name,"[").concat(i,"]")}))[0];(0,f.isDefined)(t[n])&&(0,f.isDefined)(r)&&(a[i]=r)})),a},_optionChanged:function(e){var t=this;if(!t._optionChangedLocker){var n,i="visualRange",o=e.fullName.indexOf(i)>0||!(t.getPartialChangeOptionsName(e).indexOf(i)>-1)&&void 0;(0,f.isDefined)(o)&&(n=t._getAxesByOptionPath(e,o,i))&&(n.length>1||_(e.value)?n.forEach((function(t,n){return b(e,t,o,n)})):1===n.length&&b(e,n[0],o))}t.callBase(e)},_change_VISUAL_RANGE:function(){var e=this;if(e._recreateSizeDependentObjects(!1),!e._changes.has("FULL_RENDER")){var t=e.option("resizePanesOnZoom");e._doRender({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:null!=t?t:e.option("adjustAxesOnZoom")||!1,animate:!1}),e._raiseZoomEndHandlers()}},resetVisualRange:function(){var e=this;e._valueAxes.forEach((function(t){t.resetVisualRange(!1),e._applyCustomVisualRangeOption(t)})),e._requestChange([y])},_legendDataField:"series",_adjustSeriesLabels:p.noop,_correctValueAxes:p.noop});t.AdvancedChart=C},33224:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.overlapping=t.BaseChart=void 0;var o=n(20576),a=S(n(55994)),r=n(35922),s=n(95479),l=n(13306),u=n(89386),d=n(39611),c=S(n(59063)),h=n(16342),f=n(45865),p=n(54932),g=n(99327),m=n(21495),_=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(19957)),v=n(19157),y=n(82454),x=n(17384),b=n(1539),w=n(14371),C=n(64758);function S(e){return e&&e.__esModule?e:{default:e}}var k=Array.isArray,D="_reinit",I="_forceRender",T="_resize",E=[D,"_updateDataSource","_dataInit",I,T];function A(e,t){var n=t.end-t.start,i=0;for(e.forEach((function(e){i+=e.getBoundingRect().width}));n<i;)i-=O(e)}function O(e){var t=e.reduce((function(e,t,n){if(!t)return e;var i=t.value();return i<e.value?{value:i,rollingStock:t,index:n}:e}),{rollingStock:void 0,value:1/0,index:void 0});t.rollingStock.getLabels()[0].draw(!1);var n=t.rollingStock.getBoundingRect().width;return e[t.index]=null,n}function P(e){var t,n,i,o,a=!1;for(t=0,i=e.length-1;t<i;t++){for(n=t+1,o=e.length;n<o;n++)if(t!==n&&M(e[t],e[n],!0)){a=!0;break}if(a)break}return a}function M(e,t,n){if(e&&t){var i=e.getBoundingRect(),o=t.getBoundingRect(),a=!n||i.oppositeStart<=o.oppositeStart&&i.oppositeEnd>o.oppositeStart||o.oppositeStart<=i.oppositeStart&&o.oppositeEnd>i.oppositeStart;return i.end>o.start&&a}}function R(e){var t,n,i;for(t=0;t<e.length-1;t++)M(n=i||e[t],e[t+1])?(n.toChain(e[t+1]),e[t+1]=null,i=n):i=e[t+1]||n}function B(e,t){var n,i,o,a,r;for(n=0;n<e.length;n++){if(V(o=e[n],t))for(r=o.getBoundingRect(),i=n+1;i<e.length;i++)if((a=e[i])&&a.getBoundingRect().end>r.start-(r.end-t.end)){a.toChain(o),e[n]=o=null;break}o&&o.setRollingStockInCanvas(t)}}function V(e,t){return e&&e.getBoundingRect().end>t.end}function F(e,t,n){var i=e.getBoundingRect(),o=i.x,a=i.y,r=i.x+i.width,s=i.y+i.height;return this.labels=[e],this.shiftFunction=n,this._bBox={start:t?o:a,width:t?i.width:i.height,end:t?r:s,oppositeStart:t?a:o,oppositeEnd:t?s:r},this._initialPosition=t?i.x:i.y,this}F.prototype={toChain:function(e){var t=e.getBoundingRect();e.shift(t.start-this._bBox.end),this._changeBoxWidth(t.width),this.labels=this.labels.concat(e.labels)},getBoundingRect:function(){return this._bBox},shift:function(e){var t=this.shiftFunction;(0,s.each)(this.labels,(function(n,i){var o=i.getBoundingRect(),a=t(o,e);i.hideInsideLabel(a)||i.shift(a.x,a.y)})),this._bBox.end-=e,this._bBox.start-=e},setRollingStockInCanvas:function(e){this._bBox.end>e.end&&this.shift(this._bBox.end-e.end)},getLabels:function(){return this.labels},value:function(){return this.labels[0].getData().value},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(e){this._bBox.end+=e,this._bBox.width+=e}};var L={resolveLabelOverlappingInOneDirection:function(e,t,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(){return 0},r=[],s={start:n?t.left:t.top,end:n?t.width-t.right:t.height-t.bottom},l=!1;if(e.forEach((function(e){e&&(l=l||e.series.isStackedSeries()||e.series.isFullStackedSeries(),e.getLabels().forEach((function(e){e.isVisible()&&r.push(new F(e,n,o))})))})),l)!n^i&&r.reverse();else{var u=r.slice();r.sort((function(e,t){return a(e,t)||e.getInitialPosition()-t.getInitialPosition()||u.indexOf(e)-u.indexOf(t)}))}return!!P(r)&&(A(r,s),R(r),r.reverse(),B(r,s),!0)}};t.overlapping=L;var H=c.default.inherit({_eventsMap:{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onDone:{name:"done"},onZoomStart:{name:"zoomStart"},onZoomEnd:{name:"zoomEnd"}},_fontFields:["legend.font","legend.title.font","legend.title.subtitle.font","commonSeriesSettings.label.font"],_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["INIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.options=this.option(),e},_createThemeManager:function(){var e=this.option(),t=new g.ThemeManager(this._getThemeManagerOptions());return t.setTheme(e.theme,e.rtlEnabled),t},_initCore:function(){var e=this;e._canvasClipRect=e._renderer.clipRect(),e._createHtmlStructure(),e._createLegend(),e._createTracker(),e._needHandleRenderComplete=!0,e.layoutManager=new m.LayoutManager,e._createScrollBar(),a.default.on(e._$element,"contextmenu",(function(e){((0,d.isTouchEvent)(e)||(0,d.isPointerEvent)(e))&&e.preventDefault()})),a.default.on(e._$element,"MSHoldVisual",(function(e){e.preventDefault()}))},_getLayoutItems:o.noop,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit:function(){var e=this;(0,v.setCanvasValues)(e._canvas),e._reinitAxes(),e._requestChange(["DATA_SOURCE","DATA_INIT","CORRECT_AXIS","FULL_RENDER"])},_correctAxes:o.noop,_createHtmlStructure:function(){var e=this,t=e._renderer,n=t.root,i=function(){return t.g().attr({class:"dxc-constant-lines-group"}).linkOn(n,"constant-lines")};e._constantLinesGroup={dispose:function(){this.under.dispose(),this.above.dispose()},linkOff:function(){this.under.linkOff(),this.above.linkOff()},clear:function(){this.under.linkRemove().clear(),this.above.linkRemove().clear()},linkAppend:function(){this.under.linkAppend(),this.above.linkAppend()}},e._labelsAxesGroup=t.g().attr({class:"dxc-elements-axes-group"});var o=function(){e._labelsAxesGroup.linkOn(n,"elements")};e._backgroundRect=t.rect().attr({fill:"gray",opacity:1e-4}).append(n),e._panesBackgroundGroup=t.g().attr({class:"dxc-background"}).append(n),e._stripsGroup=t.g().attr({class:"dxc-strips-group"}).linkOn(n,"strips"),e._gridGroup=t.g().attr({class:"dxc-grids-group"}).linkOn(n,"grids"),e._panesBorderGroup=t.g().attr({class:"dxc-border"}).linkOn(n,"border"),e._axesGroup=t.g().attr({class:"dxc-axes-group"}).linkOn(n,"axes"),e._executeAppendBeforeSeries(o),e._stripLabelAxesGroup=t.g().attr({class:"dxc-strips-labels-group"}).linkOn(n,"strips-labels"),e._constantLinesGroup.under=i(),e._seriesGroup=t.g().attr({class:"dxc-series-group"}).linkOn(n,"series"),e._executeAppendAfterSeries(o),e._constantLinesGroup.above=i(),e._scaleBreaksGroup=t.g().attr({class:"dxc-scale-breaks"}).linkOn(n,"scale-breaks"),e._labelsGroup=t.g().attr({class:"dxc-labels-group"}).linkOn(n,"labels"),e._crosshairCursorGroup=t.g().attr({class:"dxc-crosshair-cursor"}).linkOn(n,"crosshair"),e._legendGroup=t.g().attr({class:"dxc-legend","clip-path":e._getCanvasClipRectID()}).linkOn(n,"legend").linkAppend(n).enableLinks(),e._scrollBarGroup=t.g().attr({class:"dxc-scroll-bar"}).linkOn(n,"scroll-bar")},_executeAppendBeforeSeries:function(){},_executeAppendAfterSeries:function(){},_disposeObjectsInArray:function(e,t){(0,s.each)(this[e]||[],(function(e,n){t&&n?(0,s.each)(t,(function(e,t){n[t]&&n[t].dispose()})):n&&n.dispose()})),this[e]=null},_disposeCore:function(){var e=this,t=function(t){e[t]&&(e[t].dispose(),e[t]=null)},n=function(t){e[t].linkOff()},i=this._disposeObjectsInArray;e._renderer.stopAllAnimations(),i.call(e,"series"),t("_tracker"),t("_crosshair"),e.layoutManager=e._userOptions=e._canvas=e._groupsData=null,n("_stripsGroup"),n("_gridGroup"),n("_axesGroup"),n("_constantLinesGroup"),n("_stripLabelAxesGroup"),n("_panesBorderGroup"),n("_seriesGroup"),n("_labelsGroup"),n("_crosshairCursorGroup"),n("_legendGroup"),n("_scrollBarGroup"),n("_scaleBreaksGroup"),t("_canvasClipRect"),t("_panesBackgroundGroup"),t("_backgroundRect"),t("_stripsGroup"),t("_gridGroup"),t("_axesGroup"),t("_constantLinesGroup"),t("_stripLabelAxesGroup"),t("_panesBorderGroup"),t("_seriesGroup"),t("_labelsGroup"),t("_crosshairCursorGroup"),t("_legendGroup"),t("_scrollBarGroup"),t("_scaleBreaksGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(e){return this._themeManager.getOptions(e)},_applySize:function(e){this._rect=e.slice(),this._changes.has("FULL_RENDER")||this._processRefreshData(T)},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){var e=this;e._tracker=new _[e._trackerType]({seriesGroup:e._seriesGroup,renderer:e._renderer,tooltip:e._tooltip,legend:e._legend,eventTrigger:e._eventTrigger})},_getTrackerSettings:function(){return(0,l.extend)({chart:this},this._getSelectionModes())},_getSelectionModes:function(){var e=this._themeManager;return{seriesSelectionMode:e.getOptions("seriesSelectionMode"),pointSelectionMode:e.getOptions("pointSelectionMode")}},_updateTracker:function(e){var t=this;t._tracker.update(t._getTrackerSettings()),t._tracker.setCanvases({left:0,right:t._canvas.width,top:0,bottom:t._canvas.height},e)},_createCanvasFromRect:function(e){var t=this._canvas;return(0,v.setCanvasValues)({left:e[0],top:e[1],right:t.width-e[2],bottom:t.height-e[3],width:t.width,height:t.height})},_doRender:function(e){var t=this;if(0!==t._canvas.width||0!==t._canvas.height){t._resetIsReady();var n=t._prepareDrawOptions(e),i=n.recreateCanvas;t._preserveOriginalCanvas(),i?t.__currentCanvas=t._canvas:t._canvas=t.__currentCanvas,i&&t._updateCanvasClipRect(t._canvas),this._canvas=this._createCanvasFromRect(this._rect),t._renderer.stopAllAnimations(!0),t._cleanGroups();var o=new Date;t._renderElements(n),t._lastRenderingTime=new Date-o}},_preserveOriginalCanvas:function(){this.__originalCanvas=this._canvas,this._canvas=(0,l.extend)({},this._canvas)},_layoutAxes:o.noop,_renderElements:function(e){var t,n,i,o=this,a=o._prepareToRender(e),r=o._isRotated(),s=o._isLegendInside(),u=[];(0,l.extend)({},o._canvas),o._renderer.lock(),e.drawLegend&&o._legend&&o._legendGroup.linkAppend(),o.layoutManager.setOptions(o._layoutManagerOptions());var d=o._getLayoutTargets();this._layoutAxes((function(t){var n=t?(0,l.extend)({},e,{animate:!1,recreateCanvas:!0}):e,i=o._renderAxes(n,a);o._shrinkAxes(t,i)})),o._applyClipRects(a),o._appendSeriesGroups(),o._createCrosshairCursor(),d.forEach((function(e){var t=e.canvas;u.push({left:t.left,right:t.width-t.right,top:t.top,bottom:t.height-t.bottom})})),o._scrollBar&&("discrete"===(t=o._argumentAxes[0].getTranslator().getBusinessRange()).axisType&&t.categories&&t.categories.length<=1||"discrete"!==t.axisType&&t.min===t.max?n=i=void 0:(n=t.minVisible,i=t.maxVisible),o._scrollBar.init(t,!o._argumentAxes[0].getOptions().valueMarginsEnabled).setPosition(n,i)),o._updateTracker(u),o._updateLegendPosition(e,s),o._applyPointMarkersAutoHiding(),o._renderSeries(e,r,s),o._renderer.unlock()},_updateLegendPosition:o.noop,_createCrosshairCursor:o.noop,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(e,t,n){this._calculateSeriesLayout(e,t),this._renderSeriesElements(e,n)},_calculateSeriesLayout:function(e,t){e.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),t)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(e)},_getArgFilter:function(){return function(){return!0}},_getValFilter:function(e){return function(){return!0}},_getPointsToAnimation:function(e){var t=this,n=this._getArgFilter();return e.map((function(e){var i=t._getValFilter(e);return e.getPoints().filter((function(e){return e.getOptions().visible&&n(e.argument)&&(i(e.getMinValue(!0))||i(e.getMaxValue(!0)))})).length}))},_renderSeriesElements:function(e,t){var n,i,o=this,a=o.series,r=a.length,s=o._themeManager.getOptions("resolveLabelOverlapping"),l=o._getPointsToAnimation(a);for(n=0;n<r;n++)i=a[n],o._applyExtraSettings(i,e),i.draw(e.animate&&l[n]<=e.animationPointsLimit&&o._renderer.animationEnabled(),e.hideLayoutLabels,o._getLegendCallBack(i));"none"===s?o._adjustSeriesLabels(!1):o._locateLabels(s),o._renderTrackers(t),o._tracker.repairTooltip(),o._renderExtraElements(),o._clearCanvas(),o._seriesElementsDrawn=!0},_changesApplied:function(){var e=this;e._seriesElementsDrawn&&(e._seriesElementsDrawn=!1,e._drawn(),e._renderCompleteHandler())},_locateLabels:function(e){this._resolveLabelOverlapping(e)},_renderExtraElements:function(){},_clearCanvas:function(){this._canvas=this.__originalCanvas},_resolveLabelOverlapping:function(e){var t;switch(e){case"stack":t=this._resolveLabelOverlappingStack;break;case"hide":t=this._resolveLabelOverlappingHide;break;case"shift":t=this._resolveLabelOverlappingShift}return(0,r.isFunction)(t)&&t.call(this)},_getVisibleSeries:function(){return(0,o.grep)(this.getAllSeries(),(function(e){return e.isVisible()}))},_resolveLabelOverlappingHide:function(){var e,t,n,i,o,a,r,s,l=[],u=this._getVisibleSeries();for(i=0;i<u.length;i++)for(a=u[i].getVisiblePoints(),o=0;o<a.length;o++)l.push.apply(l,a[o].getLabels());for(i=0;i<l.length;i++)if((e=l[i]).isVisible())for(n=e.getBoundingRect(),o=i+1;o<l.length;o++)s=(t=l[o]).getBoundingRect(),((r=n).x<=s.x&&s.x<=r.x+r.width||r.x>=s.x&&r.x<=s.x+s.width)&&(r.y<=s.y&&s.y<=r.y+r.height||r.y>=s.y&&r.y<=s.y+s.height)&&t.draw(!1)},_cleanGroups:function(){var e=this;e._stripsGroup.linkRemove().clear(),e._gridGroup.linkRemove().clear(),e._axesGroup.linkRemove().clear(),e._constantLinesGroup.above.clear(),e._stripLabelAxesGroup.linkRemove().clear(),e._labelsGroup.linkRemove().clear(),e._crosshairCursorGroup.linkRemove().clear(),e._scaleBreaksGroup.linkRemove().clear()},_allowLegendInsidePosition:function(){return!1},_createLegend:function(){var e,t,n,i=this,o=(e=i._legendDataField,{getFormatObject:function(e){var t={};return t[n.indexField]=e.id,t[n.colorField]=e.states.normal.fill,t[n.nameField]=e.text,t},textField:(n={nameField:(t=e)+"Name",colorField:t+"Color",indexField:t+"Index"}).nameField});i._legend=new h.Legend({renderer:i._renderer,widget:i,group:i._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",titleGroupClass:"dxc-title",textField:o.textField,getFormatObject:o.getFormatObject,allowInsidePosition:i._allowLegendInsidePosition()}),i._updateLegend(),i._layout.add(i._legend)},_updateLegend:function(){var e=this,t=e._themeManager,n=t.getOptions("legend"),i=e._getLegendData();n.containerBackgroundColor=t.getOptions("containerBackgroundColor"),n._incidentOccurred=e._incidentOccurred,e._legend.update(i,n,t.theme("legend").title),this._change(["LAYOUT"])},_prepareDrawOptions:function(e){var t=this._getAnimationOptions(),n=(0,l.extend)({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,animate:t.enabled,animationPointsLimit:t.maxPointCountSupported},e,this.__renderOptions);return(0,r.isDefined)(n.recreateCanvas)||(n.recreateCanvas=n.adjustAxes&&n.drawLegend&&n.drawTitle),n},_processRefreshData:function(e){var t=(0,u.inArray)(this._currentRefreshData,E),n=(0,u.inArray)(e,E);(!this._currentRefreshData||t>=0&&n<t)&&(this._currentRefreshData=e),this._requestChange(["REFRESH"])},_getLegendData:function(){return(0,v.map)(this._getLegendTargets(),(function(e){var t=e.legendData,n=e.getLegendStyles,i=n.normal.opacity;e.visible||((!(0,r.isDefined)(i)||i>.3)&&(i=.3),t.textOpacity=.3);var o={opacity:i};return t.states={hover:(0,l.extend)({},n.hover,o),selection:(0,l.extend)({},n.selection,o),normal:(0,l.extend)({},n.normal,o)},t}))},_getLegendOptions:function(e){return{legendData:{text:e[this._legendItemTextField],id:e.index,visible:!0},getLegendStyles:e.getLegendStyles(),visible:e.isVisible()}},_disposeSeries:function(e){var t,n=this;n.series&&((0,r.isDefined)(e)?(n.series[e].dispose(),n.series.splice(e,1)):((0,s.each)(n.series,(function(e,t){return t.dispose()})),n.series.length=0)),null!==(t=n.series)&&void 0!==t&&t.length||(n.series=[])},_disposeSeriesFamilies:function(){var e=this;(0,s.each)(e.seriesFamilies||[],(function(e,t){t.dispose()})),e.seriesFamilies=null,e._needHandleRenderComplete=!0},_optionChanged:function(e){this._themeManager.resetOptions(e.name),this.callBase.apply(this,arguments)},_applyChanges:function(){var e=this;e._themeManager.update(e._options.silent()),e.callBase.apply(e,arguments)},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",paletteExtensionMode:"PALETTE",legend:"FORCE_DATA_INIT",seriesTemplate:"FORCE_DATA_INIT",export:"FORCE_RENDER",valueAxis:"AXES_AND_PANES",argumentAxis:"AXES_AND_PANES",commonAxisSettings:"AXES_AND_PANES",panes:"AXES_AND_PANES",commonPaneSettings:"AXES_AND_PANES",defaultPane:"AXES_AND_PANES",containerBackgroundColor:"AXES_AND_PANES",rotated:"ROTATED",autoHidePointMarkers:"REFRESH_SERIES_REINIT",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_optionChangesOrder:["ROTATED","PALETTE","REFRESH_SERIES_REINIT","AXES_AND_PANES","INIT","REINIT","DATA_SOURCE","REFRESH_SERIES_DATA_INIT","DATA_INIT","FORCE_DATA_INIT","REFRESH_AXES","CORRECT_AXIS"],_customChangesOrder:["ANIMATION","REFRESH_SERIES_FAMILIES","FORCE_FIRST_DRAWING","FORCE_DRAWING","FORCE_RENDER","VISUAL_RANGE","SCROLL_BAR","REINIT","REFRESH","FULL_RENDER"],_change_ANIMATION:function(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE:function(){this._needHandleRenderComplete=!0,this._updateDataSource()},_change_PALETTE:function(){this._themeManager.updatePalette(),this._refreshSeries("DATA_INIT")},_change_REFRESH_SERIES_DATA_INIT:function(){this._refreshSeries("DATA_INIT")},_change_DATA_INIT:function(){this.series&&!this.needToPopulateSeries||this._changes.has("FORCE_DATA_INIT")||this._dataInit()},_change_FORCE_DATA_INIT:function(){this._dataInit()},_change_REFRESH_SERIES_FAMILIES:function(){this._processSeriesFamilies(),this._populateBusinessRange(),this._processRefreshData(I)},_change_FORCE_RENDER:function(){this._processRefreshData(I)},_change_AXES_AND_PANES:function(){this._refreshSeries("INIT")},_change_ROTATED:function(){this._createScrollBar(),this._refreshSeries("INIT")},_change_REFRESH_SERIES_REINIT:function(){this._refreshSeries("INIT")},_change_REFRESH_AXES:function(){var e=this;(0,v.setCanvasValues)(e._canvas),e._reinitAxes(),e._requestChange(["CORRECT_AXIS","FULL_RENDER"])},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData(I)},_change_REINIT:function(){this._processRefreshData(D)},_change_FORCE_DRAWING:function(){this._resetComponentsAnimation()},_change_FORCE_FIRST_DRAWING:function(){this._resetComponentsAnimation(!0)},_resetComponentsAnimation:function(e){this.series.forEach((function(t){t.resetApplyingAnimation(e)})),this._resetAxesAnimation(e)},_resetAxesAnimation:o.noop,_refreshSeries:function(e){this.needToPopulateSeries=!0,this._requestChange([e])},_change_CORRECT_AXIS:function(){this._correctAxes()},_doRefresh:function(){var e=this._currentRefreshData;e&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[e]())},_updateCanvasClipRect:function(e){var t=Math.max(e.width-e.left-e.right,0),n=Math.max(e.height-e.top-e.bottom,0);this._canvasClipRect.attr({x:e.left,y:e.top,width:t,height:n}),this._backgroundRect.attr({x:e.left,y:e.top,width:t,height:n})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._changes.has("INIT")?this._requestChange(["DATA_INIT"]):this._requestChange(["FORCE_DATA_INIT"])},_dataInit:function(){this._dataSpecificInit(!0)},_processSingleSeries:function(e){e.createPoints(!1)},_handleSeriesDataUpdated:function(){var e=this;this._getVisibleSeries().some((function(e){return e.useAggregation()}))&&this._populateMarginOptions(),this.series.forEach((function(t){return e._processSingleSeries(t)}),this)},_dataSpecificInit:function(e){var t=this;t.series&&!t.needToPopulateSeries||(t.series=t._populateSeries()),t._repopulateSeries(),t._seriesPopulatedHandlerCore(),t._populateBusinessRange(),t._tracker.updateSeries(t.series,this._changes.has("INIT")),t._updateLegend(),e&&this._requestChange(["FULL_RENDER"])},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var e=this,t=e._themeManager,n=e._dataSourceItems(),i=t.getOptions("dataPrepareSettings");t.getOptions("seriesTemplate")&&e._populateSeries(n),e._groupSeries();var o=(0,f.validateData)(n,e._groupsData,e._incidentOccurred,i);t.resetPalette(),e.series.forEach((function(e){e.updateData(o[e.getArgumentField()])})),e._handleSeriesDataUpdated()},_renderCompleteHandler:function(){var e=this,t=!0;e._needHandleRenderComplete&&((0,s.each)(e.series,(function(e,n){t=t&&n.canRenderCompleteHandle()})),t&&(e._needHandleRenderComplete=!1,e._eventTrigger("done",{target:e})))},_dataIsReady:function(){return(0,r.isDefined)(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeriesOptions:function(e){for(var t,n,i=this,o=i._themeManager,a=o.getOptions("seriesTemplate"),s=a?(0,v.processSeriesTemplate)(a,e||[]):i.option("series"),u=k(s)?s:s?[s]:[],d=i._getExtraOptions(),c=[],h=function(e){i._specialProcessSeries(),i._populateBusinessRange(e&&e.getValueAxis(),!0),i._renderer.stopAllAnimations(!0),i._updateLegend(),i._requestChange(["FULL_RENDER"])},f=0;f<u.length;f++)t=(0,l.extend)(!0,{},u[f],d),(0,r.isDefined)(t.name)&&""!==t.name||(t.name="Series "+(f+1).toString()),t.rotated=i._isRotated(),t.customizePoint=o.getOptions("customizePoint"),t.customizeLabel=o.getOptions("customizeLabel"),t.visibilityChanged=h,t.incidentOccurred=i._incidentOccurred,n=o.getOptions("series",t,u.length),i._checkPaneName(n)&&c.push(n);return c},_populateSeries:function(e){var t,n,i=this,o=[],a=i._incidentOccurred,r=i._populateSeriesOptions(e),u=!1;i.needToPopulateSeries=!1,(0,s.each)(r,(function(e,t){var n=i.series&&i.series.filter((function(e){return e.name===t.name&&-1===o.map((function(e){return e.series})).indexOf(e)}))[0];n&&n.type===t.type?o.push({series:n,options:t}):(o.push({options:t}),u=!0)})),0!==(null===(t=i.series)||void 0===t?void 0:t.length)&&i._tracker.clearHover(),(0,s.reverseEach)(i.series,(function(e,t){o.some((function(e){return t===e.series}))||(i._disposeSeries(e),u=!0)})),!u&&(u=o.some((function(e){return e.series.name!==r[e.series.index].name}))),i.series=[],u&&i._disposeSeriesFamilies(),i._themeManager.resetPalette();var d=function(e){i.series.forEach((function(t){t.notify(e)}))};return(0,s.each)(o,(function(e,t){var o,r,s=t.options,u=null!==(o=null===(r=i._argumentAxes)||void 0===r?void 0:r.filter((function(e){return e.pane===s.pane}))[0])&&void 0!==o?o:i.getArgumentAxis(),c={commonSeriesModes:i._getSelectionModes(),argumentAxis:u,valueAxis:i._getValueAxis(s.pane,s.axis)};t.series?(n=t.series).updateOptions(s,c):n=new p.Series((0,l.extend)({renderer:i._renderer,seriesGroup:i._seriesGroup,labelsGroup:i._labelsGroup,eventTrigger:i._eventTrigger,eventPipe:d,incidentOccurred:a},c),s),n.isUpdated?(n.index=i.series.length,i.series.push(n)):a("E2101",[s.type])})),i.series},getStackedPoints:function(e){var t=e.series.getStackName();return this._getVisibleSeries().reduce((function(n,i){return(0,r.isDefined)(i.getStackName())&&(0,r.isDefined)(t)&&t!==i.getStackName()||(n=n.concat(i.getPointsByArg(e.argument))),n}),[])},getAllSeries:function(){return(this.series||[]).slice()},getSeriesByName:function(e){var t=null;return(0,s.each)(this.series,(function(n,i){if(i.name===e)return t=i,!1})),t},getSeriesByPos:function(e){return(this.series||[])[e]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip:function(){this._tracker._hideTooltip()},clearHover:function(){this._tracker.clearHover()},render:function(e){var t=this;return t.__renderOptions=e,t.__forceRender=e&&e.force,t.callBase.apply(t,arguments),t.__renderOptions=t.__forceRender=null,t},refresh:function(){this._disposeSeries(),this._disposeSeriesFamilies(),this._requestChange(["CONTAINER_SIZE","REFRESH_SERIES_REINIT"])},_getMinSize:function(){var e=this._layoutManagerOptions();return[e.width,e.height]},_change_REFRESH:function(){this._changes.has("INIT")?this._currentRefreshData=null:this._doRefresh()},_change_FULL_RENDER:function(){this._forceRender()},_change_INIT:function(){this._reinit()},_stopCurrentHandling:function(){this._tracker.stopCurrentHandling()}});t.BaseChart=H,["series","commonSeriesSettings","dataPrepareSettings","seriesSelectionMode","pointSelectionMode","synchronizeMultiAxes","resolveLabelsOverlapping"].forEach((function(e){H.prototype._optionChangesMap[e]="REFRESH_SERIES_DATA_INIT"})),["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","stickyHovering"].forEach((function(e){H.prototype._optionChangesMap[e]="FORCE_RENDER"})),["minBubbleSize","maxBubbleSize","barGroupPadding","barGroupWidth","negativesAsZeroes","negativesAsZeros"].forEach((function(e){H.prototype._optionChangesMap[e]="REFRESH_SERIES_FAMILIES"})),H.addPlugin(y.plugin),H.addPlugin(x.plugin),H.addPlugin(b.plugin),H.addPlugin(w.plugin),H.addPlugin(C.plugin);var N=H.prototype._change_TITLE;H.prototype._change_TITLE=function(){N.apply(this,arguments),this._change(["FORCE_RENDER"])}},97574:function(e,t,n){t.Crosshair=p,t.getMargins=function(){return{x:8,y:4}};var i=n(19157),o=n(13306),a=Math,r=a.abs,s=a.min,l=a.max,u=a.floor,d="right",c="bottom";function h(e){return{x:e.x-8,y:e.y-4,width:e.width+16,height:e.height+8}}function f(e,t,n,i){var o=n?["x","width","y","height",t,0]:["y","height","x","width",e,1];return function(e,t,a){var r={x:a.x,y:a.y},s=h(e),l=n?a.y-e.y-e.height/2:a.y-e.y;return r.y=n||!n&&t===c?a.y+l:a.y,s[o[0]]<0?r[o[0]]-=s[o[0]]:s[o[0]]+s[o[1]]+l*o[5]>i[o[1]]&&(r[o[0]]-=s[o[0]]+s[o[1]]+l*o[5]-i[o[1]]),o[4]-s[o[3]]/2<0?r[o[2]]-=o[4]-s[o[3]]/2:o[4]+s[o[3]]/2>i[o[3]]&&(r[o[2]]-=o[4]+s[o[3]]/2-i[o[3]]),r}}function p(e,t,n,i){var o=this;o._renderer=e,o._crosshairGroup=i,o._options={},o.update(t,n)}p.prototype={constructor:p,update:function(e,t){var n=this,i=t.canvas;n._canvas={top:i.top,bottom:i.height-i.bottom,left:i.left,right:i.width-i.right,width:i.width,height:i.height},n._axes=t.axes,n._panes=t.panes,n._prepareOptions(e,"horizontal"),n._prepareOptions(e,"vertical")},dispose:function(){var e=this;e._renderer=e._crosshairGroup=e._options=e._axes=e._canvas=e._horizontalGroup=e._verticalGroup=e._horizontal=e._vertical=e._circle=e._panes=null},_prepareOptions:function(e,t){var n=e[t+"Line"];this._options[t]={visible:n.visible,line:{stroke:n.color||e.color,"stroke-width":n.width||e.width,dashStyle:n.dashStyle||e.dashStyle,opacity:n.opacity||e.opacity,"stroke-linecap":"butt"},label:(0,o.extend)(!0,{},e.label,n.label)}},_createLines:function(e,t,n){for(var i=[],o=this._canvas,a=[o.left,o.top,o.left,o.top],r=0;r<2;r++)i.push(this._renderer.path(a,"line").attr(e).sharp(t).append(n));return i},render:function(){var e=this,t=e._renderer,n=e._options,i=n.vertical,o=n.horizontal,a=o.visible?o.line:i.line,r={stroke:a.stroke,"stroke-width":a["stroke-width"],dashStyle:a.dashStyle,opacity:a.opacity},s=e._canvas;e._horizontal={},e._vertical={},e._circle=t.circle(s.left,s.top,0).attr(r).append(e._crosshairGroup),e._horizontalGroup=t.g().append(e._crosshairGroup),e._verticalGroup=t.g().append(e._crosshairGroup),i.visible&&(e._vertical.lines=e._createLines(i.line,"h",e._verticalGroup),e._vertical.labels=e._createLabels(e._axes[0],i,!1,e._verticalGroup)),o.visible&&(e._horizontal.lines=e._createLines(o.line,"v",e._horizontalGroup),e._horizontal.labels=e._createLabels(e._axes[1],o,!0,e._horizontalGroup)),e.hide()},_createLabels:function(e,t,n,o){var a,r,s,l,u,h=this._canvas,f=this._renderer,p=[],g=t.label;return g.visible&&e.forEach((function(e){var m=e.getOptions().position;if(!e.getTranslator().getBusinessRange().isEmpty()){u=e.getLabelsPosition(),n?(r=h.top,a=u):(a=h.left,r=u);var _="top"===m||m===c?"center":m===d?"left":d;l=f.rect(0,0,0,0).attr({fill:g.backgroundColor||t.line.stroke}).append(o),s=f.text("0",0,0).css((0,i.patchFontOptions)(t.label.font)).attr({align:_,class:g.cssClass}).append(o),p.push({text:s,background:l,axis:e,options:g,pos:{coord:u,side:m},startXY:{x:a,y:r}})}})),p},_updateText:function(e,t,n,i,o){var a=this;n.forEach((function(n){var r=n.axis,s=n.startXY,l=n.text,u=n.background,d="";r.name&&r.name!==t||(d=r.getFormattedValue(e,n.options,i)),d?(l.attr({text:d,x:s.x,y:s.y}),l.attr(o(l.getBBox(),n.pos.side,s)),a._updateLinesCanvas(n),u.attr(h(l.getBBox()))):(l.attr({text:""}),u.attr({x:0,y:0,width:0,height:0}))}))},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(e){var t=e.pos.side,n=e.pos.coord,i=this._linesCanvas,o=this._canvas;i[t]=i[t]!==o[t]&&r(i[t]-o[t])<r(n-o[t])?i[t]:n},_updateLines:function(e,t,n,i,o){for(var a=this._linesCanvas,r=this._canvas,u=o?[[s(t-i,a.left),r.top,t-i,r.top],[t+i,r.top,l(a.right,t+i),r.top]]:[[r.left,s(a.top,n-i),r.left,n-i],[r.left,n+i,r.left,l(a.bottom,n+i)]],d=0;d<2;d++)e[d].attr({points:u[d]}).sharp(o?"v":"h",o?n===r.bottom?-1:1:t===r.right?-1:1)},_resetLinesCanvas:function(){var e=this._canvas;this._linesCanvas={left:e.left,right:e.right,top:e.top,bottom:e.bottom}},_getClipRectForPane:function(e,t){var n,i,o=this._panes;for(n=0;n<o.length;n++)if((i=o[n].coords).left<=e&&i.right>=e&&i.top<=t&&i.bottom>=t)return o[n].clipRect;return{id:null}},show:function(e){var t=this,n=e.point,i=n.getCrosshairData(e.x,e.y),o=n.getPointRadius(),a=t._horizontal,r=t._vertical,s=o?o+3:0,l=t._canvas,d=u(i.x),c=u(i.y);d>=l.left&&d<=l.right&&c>=l.top&&c<=l.bottom?(t._crosshairGroup.attr({visibility:"visible"}),t._resetLinesCanvas(),t._circle.attr({cx:d,cy:c,r:s,"clip-path":t._getClipRectForPane(d,c).id}),a.lines&&(t._updateText(i.yValue,i.axis,a.labels,n,f(d,c,!0,l)),t._updateLines(a.lines,d,c,s,!0),t._horizontalGroup.attr({translateY:c-l.top})),r.lines&&(t._updateText(i.xValue,i.axis,r.labels,n,f(d,c,!1,l)),t._updateLines(r.lines,d,c,s,!1),t._verticalGroup.attr({translateX:d-l.left}))):t.hide()}}},21495:function(e,t,n){t.LayoutManager=v;var i,o=n(35922),a=(i=n(32410))&&i.__esModule?i:{default:i},r=n(73711),s=Math.floor,l=Math.sqrt,u=Math.min,d=Math.max,c=a.default.radialLabelIndent;function h(e,t,n){return n<e?e:t<n?t:n}function f(e){if(e._label.isVisible()&&"inside"!==e._label.getLayoutOptions().position)return e._label.getBoundingRect()}function p(e,t,n,i,o){return e.some((function(e){return e.getVisiblePoints().reduce((function(e,a){var r=f(a);if(r){var s=h(r.x,r.x+r.width,t),p=h(r.y,r.y+r.height,n);i=u(d(function(e,t,n,i){return l((e-n)*(e-n)+(t-i)*(t-i))}(s,p,t,n)-c,o),i),e=!0}return e}),!1)})),i}function g(e){return e.reduce((function(e,t){var n=t.getVisiblePoints().reduce((function(e,t){var n=f(t);return n&&n.width>e&&(e=n.width),e}),0),i=n;return n&&(e.outerLabelsCount++,e.outerLabelsCount>1&&(n+=a.default.pieLabelSpacing),i+=a.default.pieLabelSpacing),e.sizes.push(n),e.rSizes.push(i),e.common+=n,e}),{sizes:[],rSizes:[],common:0,outerLabelsCount:0})}function m(e,t,n,i,o,a){var r,l,u=0,d=e.sizes,c=e.rSizes;for(l=0;l<n.length;l++)0!==d[l]?(r=s(r?r+c[l-1]:t),n[l].correctLabelRadius(r),u+=o||d[l],c[l]=o||c[l],n[l].setVisibleArea({left:s(a-t-u),right:s(i.width-(a+t+u)),top:i.top,bottom:i.bottom,width:i.width,height:i.height})):r&&(r+=c[l-1])}function _(e){var t=e.type,n=e.innerRadius;return"pie"===t?0:(0,o.isNumeric)(n)?Number(n):.5}function v(){}function y(e,t,n,i){return(e-t-c-n.left)/i.outerLabelsCount}function x(e,t,n,i,o,a){var r,s=g(n),l=function(e,t,n){return e-t.left-(n.outerLabelsCount>0?n.common+c:0)}(o,t,s);return l<i?r=y(o,e=i,t,s):e=u(p(n,o,a,e,i),l),m(s,e+c,n,t,r,o),e}function b(e){return new r.WrapperLayoutElement(null,{x:e.left,y:e.top,width:e.width-e.left-e.right,height:e.height-e.top-e.bottom})}v.prototype={constructor:v,setOptions:function(e){this._options=e},applyPieChartSeriesLayout:function(e,t,n){var i,a,r=e.height-e.top-e.bottom,l=e.width-e.left-e.right,d=l/2+e.left,c=r/2+e.top,h=this._options.piePercentage;return(0,o.isNumeric)(h)?i=a=h*u(e.height,e.width)/2:(i=u(l,r)/2,a=this._options.minPiePercentage*i),n||(i=x(i,e,t,a,d,c)),{centerX:s(d),centerY:s(c),radiusInner:s(i*_(t[0])),radiusOuter:s(i)}},applyEqualPieChartLayout:function(e,t){var n=t.radius;return{centerX:s(t.x),centerY:s(t.y),radiusInner:s(n*_(e[0])),radiusOuter:s(n)}},correctPieLabelRadius:function(e,t,n){var i,o=g(e),a=t.radiusOuter+c,r=t.centerX-n.left-a;o.common+c>r&&(i=y(t.centerX,t.radiusOuter,n,o)),m(o,a,e,n,i,t.centerX)},needMoreSpaceForPanesCanvas:function(e,t,n){var i=this._options,a=i.width,r=i.height,s=i.piePercentage,l=(0,o.isNumeric)(s),c=0,h=0;return e.forEach((function(e){var i=e.canvas,o=l?u(i.width,i.height)*s:void 0,f=n?n(e):{width:!1,height:!1},p=f.width?0:(l?o:a)-(i.width-i.left-i.right),g=f.height?0:(l?o:r)-(i.height-i.top-i.bottom);t?(c+=p>0?p:0,h=d(g>0?g:0,h)):(c=d(p>0?p:0,c),h+=g>0?g:0)})),(c>0||h>0)&&{width:c,height:h}},layoutInsideLegend:function(e,t){var n=e.getLayoutOptions();if(n){var i=n.position,o=n.cutSide,a={horizontal:i.horizontal,vertical:i.vertical};t[n.cutLayoutSide]+="horizontal"===n.cutSide?n.width:n.height,a[o]={left:"right",right:"left",top:"bottom",bottom:"top",center:"center"}[a[o]],e.position({of:b(t),my:a,at:i})}}}},42597:function(e,t,n){t.default=void 0,n(30869);var i=n(35922),o=n(95479),a=n(19157),r=n(60810),s=Math,l=s.floor,u=s.max,d=s.abs;function c(e,t){if(e.isLogarithmic){var n=e.logarithmicBase,i=e.tickValues;e.minValue=t.transform(e.minValue,n),e.oldMinValue=t.transform(e.oldMinValue,n),e.maxValue=t.transform(e.maxValue,n),e.oldMaxValue=t.transform(e.oldMaxValue,n),e.tickInterval=s.round(e.tickInterval),e.tickInterval<1&&(e.tickInterval=1);var o=t.getTicks(e.tickInterval,i,n);o.tickInterval=e.tickInterval,e.tickValues=o}}function h(e){return e.maxValue-e.minValue||1}function f(e){for(var t=0;t<e.length;t++)if(!e[t].stubData)return e[t];return null}var p={synchronize:function(e){(0,o.each)(function(e){var t={};return e.forEach((function(e){var n=e.pane;t[n]||(t[n]=[]),t[n].push(e)})),t}(e),(function(e,t){var n,o;if(t.length>1){if((n=function(e){return e.reduce((function(e,t){var n,o,s=t.getTicksValues(),l=s.majorTicksValues,u=t.getOptions(),h=t.getTranslator().getBusinessRange(),f=t.getVisibleArea(),p=t._tickInterval,g=u.synchronizedValue,m=t.getViewport().action;if(l&&l.length>0&&(0,i.isNumeric)(l[0])&&"discrete"!==u.type&&!h.isEmpty()&&(!h.breaks||!h.breaks.length)&&"zoom"!==m&&"pan"!==m){t.applyMargins();var _=t.getTranslator().from(f[0]),v=t.getTranslator().from(f[1]),y=_<v?_:v,x=_<v?v:_;y===x&&(0,i.isDefined)(g)&&(p=d(l[0]-g)||1,y=l[0]-p,x=l[0]+p),c(n={axis:t,isLogarithmic:"logarithmic"===u.type,logarithmicBase:h.base,tickValues:l,minorValues:s.minorTicksValues,minorTickInterval:t._minorTickInterval,minValue:y,oldMinValue:y,maxValue:x,oldMaxValue:x,inverted:h.invert,tickInterval:p,synchronizedValue:g},(o=t.getTranslator().getBusinessRange(),{transform:function(e,t){return(0,r.adjust)((0,a.getLogExt)(e,t,o.allowNegatives,o.linearThreshold))},getTicks:function(e,t,n){for(var i=[],o=this.transform(t[0],n);i.length<t.length;)i.push(o),o=(0,r.adjust)(o+e);return i}})),e.push(n)}return e}),[])}(t)).length<2||!f(n))return;!function(e){var t=e.reduce((function(e,t){return u(e,t.tickValues.length)}),0);e.forEach((function(e){var n,o,a=0,s=e.synchronizedValue,u=e.tickValues,d=e.tickInterval;if((0,i.isDefined)(s))e.baseTickValue=e.invertedBaseTickValue=s,e.tickValues=[e.baseTickValue];else{if(u.length>1&&d){for(o=(n=l((t+1)/u.length))>1?l((t+1)/n):t,a=l((o-u.length)/2);a>0&&0!==u[0];)u.unshift((0,r.adjust)(u[0]-d)),a--;for(;u.length<o;)u.push((0,r.adjust)(u[u.length-1]+d));e.tickInterval=d/n}e.baseTickValue=u[0],e.invertedBaseTickValue=u[u.length-1]}}))}(n),function(e){var t=f(e),n=t.tickInterval;e.forEach((function(e){var o,a,r,s;e!==t&&(n&&e.tickInterval&&(e.stubData&&(0,i.isDefined)(e.synchronizedValue)&&(e.oldMinValue=e.minValue=e.baseTickValue-(t.baseTickValue-t.minValue)/n*e.tickInterval,e.oldMaxValue=e.maxValue=e.baseTickValue-(t.baseTickValue-t.maxValue)/n*e.tickInterval),o=n/h(t)/e.tickInterval*h(e),e.maxValue=e.minValue+h(e)/o),r=t.inverted&&!e.inverted||!t.inverted&&e.inverted?t.maxValue-t.invertedBaseTickValue:t.baseTickValue-t.minValue,s=h(e),a=(r/h(t)-(e.baseTickValue-e.minValue)/s)*s,e.minValue-=a,e.maxValue-=a)}))}(n),o=function(e){var t,n,i=0,o=0;return e.forEach((function(e){var a=e.inverted;t=e.minValue>e.oldMinValue?(e.minValue-e.oldMinValue)/h(e):0,n=e.maxValue<e.oldMaxValue?(e.oldMaxValue-e.maxValue)/h(e):0,i=u(i,a?n:t),o=u(o,a?t:n)})),{start:i,end:o}}(n),function(e,t){e.forEach((function(e){var n=h(e),i=e.inverted;e.minValue=(0,r.adjust)(e.minValue-t[i?"end":"start"]*n),e.maxValue=(0,r.adjust)(e.maxValue+t[i?"start":"end"]*n)}))}(n,o=function(e,t){return e.reduce((function(e,t){var n=t.inverted,o=t.axis.getCorrectedValuesToZero(t.minValue,t.maxValue),a=o.start,r=o.end;return(0,i.isDefined)(a)||(0,i.isDefined)(r)?n?{start:e.start,end:Math.min(e.end,r)}:{start:Math.min(e.start,a),end:e.end}:e}),t)}(n,o)),function(e){var t,n=[];e.forEach((function(e){e.oldMaxValue-e.oldMinValue==0?n.push(e):(0,i.isDefined)(t)||(0,i.isDefined)(e.synchronizedValue)||(t=d((e.maxValue-e.minValue)/(e.tickValues[l(e.tickValues.length/2)]-e.minValue||e.maxValue)))})),(0,i.isDefined)(t)&&n.forEach((function(e){var n=e.tickValues[0],i=n*t;n>0?(e.maxValue=i,e.minValue=0):n<0&&(e.minValue=i,e.maxValue=0)}))}(n),function(e){var t=!1;e.forEach((function(e){t=t||(0,i.isDefined)(e.synchronizedValue)})),e.forEach((function(e){var n,i=e.tickInterval,o=e.tickValues,a=e.maxValue,s=e.minValue;if(t&&i){for(;(n=(0,r.adjust)(o[0]-i))>=s;)o.unshift(n);for(n=o[o.length-1];(n=(0,r.adjust)(n+i))<=a;)o.push(n)}for(;o[0]+i/10<s;)o.shift();for(;o[o.length-1]-i/10>a;)o.pop()}))}(n),function(e){e.forEach((function(e){if(e.minorTickInterval){for(var t=[],n=e.minorTickInterval,i=e.tickInterval/n-1,o=1;o<e.tickValues.length;o++)for(var a=e.tickValues[o-1],r=0;r<i;r++)a+=n,t.push(a);e.minorValues=t}}))}(n),n.forEach((function(e){var t;c(e,(t=e.axis.getTranslator().getBusinessRange(),{transform:function(e,n){return(0,r.adjust)((0,a.raiseToExt)(e,n,t.allowNegatives,t.linearThreshold))},getTicks:function(e,t,n){for(var i,o=[],a=0;a<t.length;a+=1)i=this.transform(t[a],n),o.push(i);return o}}))})),function(e){e.forEach((function(e){var t=e.axis,n=t.getTranslator().getBusinessRange();n.min===n.minVisible&&(n.min=e.minValue),n.max===n.maxVisible&&(n.max=e.maxValue),n.minVisible=e.minValue,n.maxVisible=e.maxValue,n.min>n.minVisible&&(n.min=n.minVisible),n.max<n.maxVisible&&(n.max=n.maxVisible),t.getTranslator().updateBusinessRange(n),t.setTicks({majorTicks:e.tickValues,minorTicks:e.minorValues})}))}(n)}}))}};t.default=p,e.exports=t.default,e.exports.default=t.default},97882:function(e,t,n){t.ScrollBar=void 0;var i,o=(i=n(55994))&&i.__esModule?i:{default:i},a=n(39611),r=n(13306),s=n(87276),l=n(35922),u=n(20576),d=n(23174),c=Math.min,h=Math.max,f=function(e,t){this._translator=new s.Translator2D({},{},{}),this._scroll=e.rect().append(t),this._addEvents()};function p(e,t,n,i){var o=0;return"right"===t?o=e.width-e.right+n:"left"===t&&(o=e.left-n-i),o}function g(e,t,n,i){var o=0;return"top"===t?o=e.top-n:"bottom"===t&&(o=e.height-e.bottom+i+n),o}t.ScrollBar=f,f.prototype={_addEvents:function(){var e=this,t=this._scroll.element;o.default.on(t,d.start,(function(e){(0,a.fireEvent)({type:"dxc-scroll-start",originalEvent:e,target:t})})),o.default.on(t,d.move,(function(n){var i=-n.offset.x*e._scale,o=-n.offset.y*e._scale,r=e._offset-(e._layoutOptions.vertical?o:i)/e._scale;e._applyPosition(r,r+e._translator.canvasLength/e._scale),(0,a.fireEvent)({type:"dxc-scroll-move",originalEvent:n,target:t,offset:{x:i,y:o}})})),o.default.on(t,d.end,(function(n){(0,a.fireEvent)({type:"dxc-scroll-end",originalEvent:n,target:t,offset:{x:-n.offset.x*e._scale,y:-n.offset.y*e._scale}})}))},update:function(e){var t=this,n=e.position,i=e.rotated,o=i?"right":"top";return n!==o&&n!==(i?"left":"bottom")&&(n=o),t._scroll.attr({rotate:e.rotated?0:-90,rotateX:0,rotateY:0,fill:e.color,width:e.width,opacity:e.opacity}),t._layoutOptions={width:e.width,offset:e.offset,vertical:i,position:n},t},init:function(e,t){var n=this,i="discrete"===e.axisType;return n._translateWithOffset=i&&!t?1:0,n._translator.update((0,r.extend)({},e,{minVisible:null,maxVisible:null,visibleCategories:null},i&&{min:null,max:null}||{}),n._canvas,{isHorizontal:!n._layoutOptions.vertical,stick:t}),n},getOptions:function(){return this._layoutOptions},setPane:function(e){var t,n=this._layoutOptions.position;return t="left"===n||"top"===n?e[0]:e[e.length-1],this.pane=t.name,this},updateSize:function(e){this._canvas=(0,r.extend)({},e);var t=this._layoutOptions,n=t.position,i=t.offset,o=t.width;this._scroll.attr({translateX:p(e,n,i,o),translateY:g(e,n,i,o)})},getMultipleAxesSpacing:function(){return 0},estimateMargins:function(){return this.getMargins()},getMargins:function(){var e=this._layoutOptions,t={left:0,top:0,right:0,bottom:0};return t[e.position]=e.width+e.offset,t},shift:function(e){var t,n,i=this,o=i._layoutOptions,a=o.position,r=o.vertical,s={translateX:null!==(t=i._scroll.attr("translateX"))&&void 0!==t?t:0,translateY:null!==(n=i._scroll.attr("translateY"))&&void 0!==n?n:0},l=e[a];s[r?"translateX":"translateY"]+=("left"===a||"top"===a?-1:1)*l,i._scroll.attr(s)},hideTitle:u.noop,hideOuterElements:u.noop,setPosition:function(e,t){var n=this,i=n._translator,o=(0,l.isDefined)(e)?i.translate(e,-n._translateWithOffset):i.translate("canvas_position_start"),a=(0,l.isDefined)(t)?i.translate(t,n._translateWithOffset):i.translate("canvas_position_end");n._offset=c(o,a),n._scale=i.getScale(e,t),n._applyPosition(c(o,a),h(o,a))},customPositionIsAvailable:function(){return!1},dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(e,t){var n=this._translator.getCanvasVisibleArea();e=h(e,n.min),e=c(e,n.max),t=c(t,n.max),t=h(t,n.min);var i=Math.abs(t-e);this._scroll.attr({y:e,height:i<2?2:i})}}},70714:function(e,t,n){t.default=void 0;var i=n(23174),o=".shutter-zoom",a=i.start+o,r=i.move+o,s=i.end+o;function l(e,t,n,i){var o=Math.floor(n?i.pageY-e.top:i.pageX-e.left),a=n?t.y1:t.x1,r=n?t.y2:t.x2;return o<a?o=a:o>r&&(o=r),o}var u={name:"shutter_zoom",init:function(){var e=this.option("shutterZoom")||{};e.enabled&&(this._shutterZoom=function(e){var t,n=e.chart,i=e.renderer,u=e.rotated,d=i.rect(0,0,0,0).attr(e.shutterOptions),c={rect:d,root:i.root,rotated:u,triggerStart:function(){n._eventTrigger("zoomStart")},triggerEnd:function(){var e=n._argumentAxes[0].getTranslator(),t=Math.min(this.startCoord,this.curCoord),i=Math.max(this.startCoord,this.curCoord);n._eventTrigger("zoomEnd",{rangeStart:e.from(t),rangeEnd:e.from(i)})},dispose:function(){i.root.off(o),d.dispose()},getRootOffset:function(){return i.getRootOffset()},getCanvas:function(){var e=n._canvas,t=n.panes,i=t[0].canvas,o=t[t.length-1].canvas;return{x1:i.left,y1:i.top,x2:e.width-o.right,y2:e.height-o.bottom,width:e.width-i.left-o.right,height:e.height-i.top-o.bottom}}};return i.root.off(o).on(a,{direction:u?"vertical":"horizontal",immediate:!0},(t=c,function(e){var n=t.getRootOffset(),i=t.getCanvas();!function(e,t,n){var i=n.pageX-e.left,o=n.pageY-e.top;return i>=t.x1&&i<=t.x2&&o>=t.y1&&o<=t.y2}(n,i,e)?e.cancel=!0:(t.rootOffset=n,t.canvas=i,t.startCoord=l(n,i,t.rotated,e),t.triggerStart(),t.rect.attr({x:i.x1,y:i.y1,width:i.width,height:i.height}).append(t.root))})).on(r,function(e){return function(t){var n=l(e.rootOffset,e.canvas,e.rotated,t),i={};e.curCoord=n,i[e.rotated?"y":"x"]=Math.min(e.startCoord,n),i[e.rotated?"height":"width"]=Math.abs(e.startCoord-n),e.rect.attr(i)}}(c)).on(s,function(e){return function(t){e.triggerEnd(),e.rect.remove()}}(c)),c}({chart:this,renderer:this._renderer,rotated:this.option("rotated"),shutterOptions:e}))},dispose:function(){this._shutterZoom&&this._shutterZoom.dispose()}};t.default=u,e.exports=t.default,e.exports.default=t.default},19957:function(e,t,n){t.PieTracker=t.ChartTracker=void 0;var i=p(n(73349)),o=p(n(55994)),a=n(95429),r=n(13306),s=n(95479),l=p(n(32410)),u=n(19157),d=p(n(93786)),c=n(39611),h=n(35922),f=n(20576);function p(e){return e&&e.__esModule?e:{default:e}}var g=Math.floor,m=l.default.events,_=l.default.states,v=_.hoverMark,y=_.normalMark,x="dxChartTracker",b="."+x,w=(0,c.addNamespace)([d.default.down,d.default.move],x),C="legendClick",S="seriesClick",k="pointClick",D="chart-data-point",I="chart-data-series",T="chart-data-argument",E="none",A="allargumentpoints",O="includepoints",P=[O,"excludepoints",E];function M(e,t,n){var i=e.target;if("tspan"===i.tagName)return i.parentNode[t];var o=i[t];return n&&!(0,h.isDefined)(o)?function e(n){if(n.parentNode)return(0,h.isDefined)(n.parentNode[t])?n.parentNode[t]:e(n.parentNode)}(i):o}function R(e,t){return e.cancel||!t.getOptions()}function B(e){var t=e.getOptions().hoverMode;return t===E?t:A}var V={ctor:function(e){var t=this,n={tracker:t};t._renderer=e.renderer,t._legend=e.legend,t._tooltip=e.tooltip,t._eventTrigger=e.eventTrigger,t._seriesGroup=e.seriesGroup,e.seriesGroup.off(b).on((0,c.addNamespace)(m.showPointTooltip,x),n,t._showPointTooltip).on((0,c.addNamespace)(m.hidePointTooltip,x),n,t._hidePointTooltip),t._renderer.root.off(b).on(w,n,t._pointerHandler).on((0,c.addNamespace)(d.default.up,x),(function(){return clearTimeout(t._holdTimer)})).on((0,c.addNamespace)(a.name,x),n,t._clickHandler)},update:function(e){this._chart=e.chart},updateSeries:function(e,t){var n=this,i=!(null!=e&&e.some((function(e){return e===n.hoveredSeries}))||n._hoveredPoint&&n._hoveredPoint.series);n._storedSeries!==e&&(n._storedSeries=e||[]),i&&(n._clean(),n._renderer.initHatching()),t&&(n.clearSelection(),i||(n._hideTooltip(n.pointAtShownTooltip),n.clearHover()))},setCanvases:function(e,t){this._mainCanvas=e,this._canvases=t},repairTooltip:function(){var e=this.pointAtShownTooltip;e&&e.series&&e.isVisible()?this._showTooltip(e):this._hideTooltip(e,!0)},_setHoveredPoint:function(e){e!==this._hoveredPoint&&(this._releaseHoveredPoint(),e.hover(),this._hoveredPoint=e)},_releaseHoveredPoint:function(){this._hoveredPoint&&this._hoveredPoint.getOptions()&&(this._hoveredPoint.clearHover(),this._hoveredPoint=null,this._tooltip.isEnabled()&&this._hideTooltip(this._hoveredPoint))},_setHoveredSeries:function(e,t){this._releaseHoveredSeries(),this._releaseHoveredPoint(),e.hover(t),this.hoveredSeries=e},_releaseHoveredSeries:function(){this.hoveredSeries&&(this.hoveredSeries.clearHover(),this.hoveredSeries=null)},clearSelection:function(){this._storedSeries.forEach((function(e){e&&(e.clearSelection(),e.getPoints().forEach((function(e){return e.clearSelection()})))}))},_clean:function(){var e=this;e.hoveredPoint=e.hoveredSeries=e._hoveredArgumentPoints=null,e._hideTooltip(e.pointAtShownTooltip)},clearHover:function(){this._resetHoveredArgument(),this._releaseHoveredSeries(),this._releaseHoveredPoint()},_hideTooltip:function(e,t){var n=this;!n._tooltip||e&&n.pointAtShownTooltip!==e||(!t&&n.pointAtShownTooltip&&(n.pointAtShownTooltip=null),n._tooltip.hide())},_showTooltip:function(e){var t,n=this,i={target:e};if(null!=e&&e.getOptions()){if(t=e.getTooltipFormatObject(n._tooltip,n._tooltip.isShared()&&n._chart.getStackedPoints(e)),!(0,h.isDefined)(t.valueText)&&!t.points||!e.isVisible())return;var o=e.getTooltipParams(n._tooltip.getLocation()),a=n._renderer.getRootOffset();o.x+=a.left,o.y+=a.top;var r=function(t){t&&(n.pointAtShownTooltip=e)};r(n._tooltip.show(t,o,i,void 0,r))}},_showPointTooltip:function(e,t){var n=e.data.tracker,i=n.pointAtShownTooltip;i&&i!==t&&n._hideTooltip(i),n._showTooltip(t)},_hidePointTooltip:function(e,t){e.data.tracker._hideTooltip(t)},_enableOutHandler:function(){if(!this._outHandler){var e=this,t=function(t){var n=e._renderer.getRootOffset(),i=g(t.pageX-n.left),o=g(t.pageY-n.top);(0,u.pointInCanvas)(e._mainCanvas,i,o)||e._isCursorOnTooltip(t)||(e._pointerOut(),e._disableOutHandler())};o.default.on(i.default.getDocument(),w,t),this._outHandler=t}},_isCursorOnTooltip:function(e){return this._tooltip.isEnabled()&&this._tooltip.isCursorOnTooltip(e.pageX,e.pageY)},_disableOutHandler:function(){this._outHandler&&o.default.off(i.default.getDocument(),w,this._outHandler),this._outHandler=null},stopCurrentHandling:function(){this._pointerOut(!0)},_pointerOut:function(e){this.clearHover(),(e||this._tooltip.isEnabled())&&this._hideTooltip(this.pointAtShownTooltip)},_triggerLegendClick:function(e,t){var n=this._eventTrigger;n(C,e,(function(){!R(e.event,e.target)&&n(t,e)}))},_hoverLegendItem:function(e,t){var n,i,o=this,a=o._legend.getItemByCoord(e,t),r=(i=o._legend.getOptions().hoverMode,P.indexOf(i)>-1?i:O);a?((n=o._storedSeries[a.id]).isHovered()&&n.lastHoverMode===r||o._setHoveredSeries(n,r),o._tooltip.isEnabled()&&o._hideTooltip(o.pointAtShownTooltip)):o.clearHover()},_hoverArgument:function(e,t){var n=this,i=n._getArgumentHoverMode();(0,h.isDefined)(e)&&(n._releaseHoveredPoint(),n._hoveredArgument=e,n._argumentIndex=t,n._notifySeries({action:"pointHover",notifyLegend:n._notifyLegendOnHoverArgument,target:{argument:e,fullState:v,argumentIndex:t,getOptions:function(){return{hoverMode:i}}}}))},_resetHoveredArgument:function(){var e,t=this;(0,h.isDefined)(t._hoveredArgument)&&(e=t._getArgumentHoverMode(),t._notifySeries({action:"clearPointHover",notifyLegend:t._notifyLegendOnHoverArgument,target:{fullState:y,argumentIndex:t._argumentIndex,argument:t._hoveredArgument,getOptions:function(){return{hoverMode:e}}}}),t._hoveredArgument=null)},_notifySeries:function(e){this._storedSeries.forEach((function(t){t.notify(e)}))},_pointerHandler:function(e){var t,n=e.data.tracker,i=n._renderer.getRootOffset(),o=g(e.pageX-i.left),a=g(e.pageY-i.top),r=n._getCanvas(o,a),s=M(e,I),l=M(e,D)||(null===(t=s)||void 0===t?void 0:t.getPointByCoord(o,a));if(n._isHolding=!1,clearTimeout(n._holdTimer),e.type===d.default.down&&(n._holdTimer=setTimeout((function(){return n._isHolding=!0}),300)),l&&!l.getMarkerVisibility()&&(l=void 0),n._enableOutHandler(),n._legend.coordsIn(o,a))n._hoverLegendItem(o,a);else if(n.hoveredSeries&&n.hoveredSeries!==n._stuckSeries&&n._releaseHoveredSeries(),!n._hoverArgumentAxis(o,a,e)&&(n._isPointerOut(r,l)&&n._pointerOut(),r||l)){if(s&&!l){if(l=s.getNeighborPoint(o,a),n._stickyHovering||!l||l.coordsIn(o,a)||(l=null),s!==n.hoveredSeries)return void n._setTimeout((function(){n._setHoveredSeries(s),n._setStuckSeries(e,s,o,a),n._pointerComplete(l,o,a)}),s)}else{if(l){if(e.type!==d.default.move&&"touch"!==e.pointerType)return;return void(n.hoveredSeries?n._setTimeout((function(){return n._pointerOnPoint(l,o,a,e)}),l):n._pointerOnPoint(l,o,a,e))}var u;n._setStuckSeries(e,void 0,o,a)&&n._stickyHovering?(s=n._stuckSeries,l=s.getNeighborPoint(o,a),n._releaseHoveredSeries(),(null===(u=l)||void 0===u?void 0:u.getMarkerVisibility())&&n._setHoveredPoint(l)):n._stickyHovering||n._pointerOut()}n._pointerComplete(l,o,a)}},_pointerOnPoint:function(e,t,n){this._resetHoveredArgument(),this._setHoveredPoint(e),this._pointerComplete(e,t,n)},_pointerComplete:function(e){this.pointAtShownTooltip!==e&&this._tooltip.isEnabled()&&this._showTooltip(e)},_clickHandler:function(e){var t,n=e.data.tracker;if(!n._isHolding){var i=n._renderer.getRootOffset(),o=g(e.pageX-i.left),a=g(e.pageY-i.top),r=M(e,D),s=n._stuckSeries||M(e,I)||(null===(t=r)||void 0===t?void 0:t.series),l=n._argumentAxis;if(n._legend.coordsIn(o,a)){var u=n._legend.getItemByCoord(o,a);u&&n._legendClick(u,e)}else if(null!=l&&l.coordsIn(o,a)){var d=M(e,T,!0);(0,h.isDefined)(d)&&n._eventTrigger("argumentAxisClick",{argument:d,event:e})}else if(s){var c;null!==(c=r=r||s.getPointByCoord(o,a))&&void 0!==c&&c.getMarkerVisibility()?n._pointClick(r,e):M(e,I)&&n._eventTrigger(S,{target:s,event:e})}}},dispose:function(){var e=this;e._disableOutHandler(),e._renderer.root.off(b),e._seriesGroup.off(b)}},F=function(e){this.ctor(e)};t.ChartTracker=F,(0,r.extend)(F.prototype,V,{_pointClick:function(e,t){var n=this._eventTrigger,i=e.series;n(k,{target:e,event:t},(function(){!R(t,i)&&n(S,{target:i,event:t})}))},update:function(e){var t=this;V.update.call(this,e),t._argumentAxis=e.argumentAxis||{},t._axisHoverEnabled=t._argumentAxis&&(0,u.normalizeEnum)(t._argumentAxis.getOptions().hoverMode)===A,t._rotated=e.rotated,t._crosshair=e.crosshair,t._stickyHovering=e.stickyHovering},_getCanvas:function(e,t){for(var n=this._canvases||[],i=0;i<n.length;i++){var o=n[i];if((0,u.pointInCanvas)(o,e,t))return o}return null},_isPointerOut:function(e){return!e&&this._stuckSeries},_hideCrosshair:function(){var e;null===(e=this._crosshair)||void 0===e||e.hide()},_moveCrosshair:function(e,t,n){this._crosshair&&null!=e&&e.isVisible()&&this._crosshair.show({point:e,x:t,y:n})},_clean:function(){var e=this;V._clean.call(e),e._resetTimer(),e._stuckSeries=null},_getSeriesForShared:function(e,t){var n,i=this,o=[],a=null,r=1/0;return i._tooltip.isShared()&&!i.hoveredSeries&&((0,s.each)(i._storedSeries,(function(n,i){var a=i.getNeighborPoint(e,t);a&&o.push(a)})),(0,s.each)(o,(function(n,i){var o=i.getCrosshairData(e,t),s=(0,u.getDistance)(e,t,o.x,o.y);s<r&&(a=i,r=s)}))),null===(n=a)||void 0===n?void 0:n.series},_setTimeout:function(e,t){var n=this;n._timeoutKeeper!==t&&(n._resetTimer(),n._hoverTimeout=setTimeout((function(){e(),n._timeoutKeeper=null}),100),n._timeoutKeeper=t)},_resetTimer:function(){clearTimeout(this._hoverTimeout),this._timeoutKeeper=this._hoverTimeout=null},_stopEvent:function(e){(0,h.isDefined)(e.cancelable)&&!e.cancelable||(e.preventDefault(),e.stopPropagation())},_setStuckSeries:function(e,t,n,i){return"mouse"!==e.pointerType?this._stuckSeries=null:this._stuckSeries=t||this._stuckSeries||this._getSeriesForShared(n,i),!!this._stuckSeries},_pointerOut:function(){var e=this;e._stuckSeries=null,e._hideCrosshair(),e._resetTimer(),V._pointerOut.apply(e,arguments)},_hoverArgumentAxis:function(e,t,n){var i=this;if(i._resetHoveredArgument(),i._axisHoverEnabled&&i._argumentAxis.coordsIn(e,t))return i._hoverArgument(M(n,T,!0)),!0},_pointerComplete:function(e,t,n){var i=this;i.hoveredSeries&&i.hoveredSeries.updateHover(t,n),i._resetTimer(),i._moveCrosshair(e,t,n),V._pointerComplete.call(i,e)},_legendClick:function(e,t){var n=this._storedSeries[e.id];this._triggerLegendClick({target:n,event:t},S)},_hoverLegendItem:function(e,t){this._stuckSeries=null,this._hideCrosshair(),V._hoverLegendItem.call(this,e,t)},_pointerOnPoint:function(e,t,n,i){this._setStuckSeries(i,e.series,t,n),this._releaseHoveredSeries(),V._pointerOnPoint.call(this,e,t,n,i)},_notifyLegendOnHoverArgument:!1,_getArgumentHoverMode:function(){return B(this._argumentAxis)},dispose:function(){this._resetTimer(),V.dispose.call(this)}});var L=function(e){this.ctor(e)};t.PieTracker=L,(0,r.extend)(L.prototype,V,{_isPointerOut:function(e,t){return!t},_legendClick:function(e,t){var n=[];this._storedSeries.forEach((function(t){return n.push.apply(n,t.getPointsByKeys(e.argument,e.argumentIndex))})),this._eventTrigger(C,{target:e.argument,points:n,event:t})},_pointClick:function(e,t){this._eventTrigger(k,{target:e,event:t})},_hoverLegendItem:function(e,t){var n=this,i=n._legend.getItemByCoord(e,t);i&&n._hoveredArgument!==i.argument?(n._resetHoveredArgument(),n._hoverArgument(i.argument,i.argumentIndex)):i||n.clearHover()},_getArgumentHoverMode:function(){return B(this._legend)},_hoverArgumentAxis:f.noop,_setStuckSeries:f.noop,_getCanvas:f.noop,_notifyLegendOnHoverArgument:!0})},59345:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default=void 0;var o=n(35922),a=n(13306),r=n(19157),s=n(765),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(91093)),u=n(23174);var d=".zoomAndPanNS",c=u.start+d,h=u.move+d,f=u.end+d,p=l.pinchstart+d,g=l.pinch+d,m=l.pinchend+d,_="dxc-scroll-start"+d,v=Math.min,y=Math.max,x=Math.abs;function b(e){return{x:e.left,y:e.top,width:e.width-e.left-e.right,height:e.height-e.top-e.bottom}}function w(e,t){var n=t.x,i=t.y;return n>=e.x&&n<=e.width+e.x&&i>=e.y&&i<=e.height+e.y}function C(e,t){return t&&(e=e.sort((function(e,n){return e===t?-1:n===t?1:0}))),e}function S(e){return!e.getTranslator().getBusinessRange().isEmpty()}function k(e,t,n,i,o,a,r){var s=t&&e!==t,l=n(e),u=e.checkZoomingLowerLimitOvercome(o,a,l),d=u.stopInteraction,c=u.correctedRange,h=e.handleZooming(d?null:c,i(s),r,o);return d&&e.handleZoomEnd(),{stopInteraction:d,result:h}}var D={name:"zoom_and_pan",init:function(){var e=this,t=this._renderer;function n(e){e.originalEvent&&n(e.originalEvent),!1!==e.cancelable&&(e.cancel=!0)}function i(t,i,o){var a=t.options,r=t.actionData,s=[];a.argumentAxis[i]&&s.push(e.getArgumentAxis()),a.valueAxis[i]&&(s=s.concat(r.valueAxes)),s.reduce((function(e,t){return e||(S(t)?t.handleZooming(null,{end:!0},o,i).isPrevented:e)}),!1)&&n(o)}function l(t,n,i,s,l){function u(e,t,i,l,u){var d={zoomed:!1};return t&&e.filter(S).forEach((function(e){var t=e.getOptions(),c=e.visualRange(),h=e.getTranslator().getEventScale(l),f=-s(l,u,i,h);d=(0,a.extend)(!0,d,e.getTranslator().zoom(f,h,e.getZoomBounds()));var p=e.adjustRange((0,r.getVizRangeObject)([d.min,d.max])),g=e.checkZoomingLowerLimitOvercome(n,h,p),m=g.stopInteraction,_=g.correctedRange;if((0,o.isDefined)(c)&&c.startValue.valueOf()===_.startValue.valueOf()&&c.endValue.valueOf()===_.endValue.valueOf()){if("touch"===l.pointerType&&"discrete"===t.type){var v=e.isExtremePosition(!1),y=e.isExtremePosition(!0),x=h>1&&!m,b=h<1&&(!v||!y),w=1===h&&!(v&&(f<0&&!t.inverted||f>0&&t.inverted)||y&&(f>0&&!t.inverted||f<0&&t.inverted));d.enabled=x||b||w}}else e.handleZooming(m?null:_,{start:!0,end:!0},l,n),m||(d.zoomed=!0,d.deltaTranslate=f-d.translate)})),d}function d(e,t,n,i){n.zoomed&&(t.offset[i]=(e.offset?e.offset[i]:t.offset[i])+n.deltaTranslate)}function c(e,t,n,i){n.zoomed&&(t.center[i]=e[i]+n.deltaTranslate)}var h=e.option("rotated"),f=t.actionData,p=t.options,g={},m={};f.fallback||(g=u(e._argumentAxes,p.argumentAxis[n],h?"y":"x",i,f),m=u(f.valueAxes,p.valueAxis[n],h?"x":"y",i,f),e._requestChange(["VISUAL_RANGE"]),d(i,f,g,h?"y":"x"),d(i,f,m,h?"x":"y"));var _=l(i);return c(_,f,g,h?"y":"x"),c(_,f,m,h?"x":"y"),g.zoomed||m.zoomed||(f.center=_),g.zoomed||m.zoomed||f.fallback||g.enabled||m.enabled}function u(t,n,i,o){function a(e,t,a,r,s){var l=!1,u=i.scale||1,d=function(e){var t=e.getTranslator().zoom(-o(i,r,a,u),u,e.getZoomBounds());return{startValue:t.min,endValue:t.max}},c=function(e){return{start:!0,end:e}};return t&&e.forEach((function(e){l=!k(e,s,d,c,n,u,i).stopInteraction})),l}var r=e.option("rotated"),s=t.actionData,l=t.options,u=!0;if(s.fallback)u&=a(e._argumentAxes,l.argumentAxis[n],r?"y":"x",s,e.getArgumentAxis()),u|=a(s.valueAxes,l.valueAxis[n],r?"x":"y",s);else{var d=[];l.argumentAxis[n]&&d.push(e.getArgumentAxis()),l.valueAxis[n]&&(d=d.concat(s.valueAxes)),d.filter(S).forEach((function(e){e.handleZooming(null,{start:!0},i,n)})),u=d.length}u&&e._requestChange(["VISUAL_RANGE"])}function D(t,n){var i=e._argumentAxes.filter((function(e){return w(b(e.getCanvas()),t)}));return{fallback:e._lastRenderingTime>300,cancel:!i.length||!(0,o.isDefined)(n),action:n,curAxisRect:i.length&&b(i[0].getCanvas()),valueAxes:i.length&&e._valueAxes.filter((function(e){return w(b(e.getCanvas()),t)})),offset:{x:0,y:0},center:t,startCenter:t}}function I(e,n){var i=t.getRootOffset();return{x:v(y(n.pageX-i.left,e.x),e.width+e.x),y:v(y(n.pageY-i.top,e.y),e.height+e.y)}}function T(e){var n=t.getRootOffset(),i=e.pointers[0].pageX,o=e.pointers[1].pageX,a=e.pointers[0].pageY,r=e.pointers[1].pageY;return{x:v(i,o)+x(o-i)/2-n.left,y:v(a,r)+x(r-a)/2-n.top}}function E(e){var n=t.getRootOffset();return{x:e.pageX-n.left,y:e.pageY-n.top}}function A(e,t,n){return e.offset[n]-t.offset[n]}function O(t){!1!==t.cancelable&&(t.preventDefault(),t.stopPropagation()),e._stopCurrentHandling()}var P={dragStartHandler:function(e){var n,a=P.options,s="touch"===e.pointerType,l=a.argumentAxis.pan||a.valueAxis.pan,u=a.argumentAxis.zoom||a.valueAxis.zoom,d=(0,o.isDefined)(a.panKey)&&e[(0,r.normalizeEnum)(a.panKey)+"Key"],c=a.dragToZoom;e._cancelPreventDefault=!0,s?a.allowTouchGestures&&l&&(n=!P.panningVisualRangeEnabled()||P.skipEvent?null:"pan"):c&&l&&d||!c&&l?n="pan":c&&u&&(n="zoom");var h=D(E(e),n);if(h.cancel)return P.skipEvent=!1,void(!1!==e.cancelable&&(e.cancel=!0));P.actionData=h,"zoom"===n?(h.startCoords=I(h.curAxisRect,e),h.rect=t.rect(0,0,0,0).attr(a.dragBoxStyle).append(t.root)):i(P,"pan",e)},dragHandler:function(t){var n=e.option("rotated"),i=P.options,o=P.actionData,a="touch"===t.pointerType;if(t._cancelPreventDefault=!0,o&&(!a||P.panningVisualRangeEnabled()))if("zoom"===o.action){O(t);var r=o.curAxisRect,s=o.startCoords,u=I(r,t),d=i.argumentAxis.zoom,c=i.valueAxis.zoom,h={x:v(s.x,u.x),y:v(s.y,u.y),width:x(s.x-u.x),height:x(s.y-u.y)};d&&c||(!d&&!n||!c&&n?(h.x=r.x,h.width=r.width):(h.y=r.y,h.height=r.height)),o.rect.attr(h)}else if("pan"===o.action){l(P,"pan",t,A,(function(e){return e.offset}));var f=Math.abs(t.offset.y-o.offset.y),p=Math.abs(t.offset.x-o.offset.x);if(a&&(f>5&&f>Math.abs(o.offset.x)||p>5&&p>Math.abs(o.offset.y)))return;O(t)}},dragEndHandler:function(t){var n=e.option("rotated"),i=P.options,o=P.actionData,a="touch"===t.pointerType,r=o&&"pan"===o.action&&!o.fallback&&0===o.offset.x&&0===o.offset.y;if(o&&(!a||P.panningVisualRangeEnabled())&&!r){if((!a||!P.actionData.isNative)&&O(t),"zoom"===o.action){var s=function(e,n,i,a,r,s){e=C(e,s);var l=r[i],u=a[i],d=!1,c=function(e){return{start:!!e,end:!!e}};return n&&x(l-u)>5&&e.some((function(e){var n=e.getTranslator();if(!n.getBusinessRange().isEmpty()){var i=k(e,s,(function(){return[n.from(u),n.from(l)]}),c,o.action,n.getMinScale(!0),t),a=i.stopInteraction,r=i.result;return d=!a,s&&r.isPrevented}})),d},l=I(o.curAxisRect,t),d=s(e._argumentAxes,i.argumentAxis.zoom,n?"y":"x",o.startCoords,l,e.getArgumentAxis());(s(o.valueAxes,i.valueAxis.zoom,n?"x":"y",o.startCoords,l)||d)&&e._requestChange(["VISUAL_RANGE"]),o.rect.dispose()}else"pan"===o.action&&u(P,"pan",t,A);P.actionData=null}},pinchStartHandler:function(e){var t=D(T(e),"zoom");t.isNative=!P.panningVisualRangeEnabled(),t.cancel?n(e):(P.actionData=t,i(P,"zoom",e))},pinchHandler:function(e){if(P.actionData){var t=l(P,"zoom",e,(function(e,t,n,i){return T(e)[n]-t.center[n]+(t.center[n]-t.center[n]*i)}),T);P.defineTouchBehavior(!t,e),!t&&(P.actionData=null)}},pinchEndHandler:function(e){P.actionData&&(u(P,"zoom",e,(function(e,t,n,i){return t.center[n]-t.startCenter[n]+(t.startCenter[n]-t.startCenter[n]*i)})),P.actionData=null)},cleanup:function(){t.root.off(d),P.actionData&&P.actionData.rect&&P.actionData.rect.dispose(),P.actionData=null,t.root.css({"touch-action":"","-ms-touch-action":""})},setup:function(o){if(P.cleanup(),o.argumentAxis.pan||t.root.on(_,n),!o.argumentAxis.none||!o.valueAxis.none){P.options=o;var a=e.option("rotated");(o.argumentAxis.zoom||o.valueAxis.zoom)&&o.allowMouseWheel&&t.root.on(s.name+d,(function(t){function n(e,n,i,o){e=C(e,o);var a=!1,r=function(e){return{start:!!e,end:!!e}};return e.some((function(e){var s=e.getTranslator();if(!s.getBusinessRange().isEmpty()){var l=s.getMinScale(i>0),u=k(e,o,(function(){var t=s.zoom(-(n-n*l),l,e.getZoomBounds());return{startValue:t.min,endValue:t.max}}),r,"zoom",l,t),d=u.stopInteraction,c=u.result;return a=!d,o&&c.isPrevented}})),a}var i,r=E(t),s=!1;if(o.valueAxis.zoom){if(0===(i=e._valueAxes.filter((function(e){return w(b(e.getCanvas()),r)}))).length){var l=e._valueAxes.reduce((function(e,t){return!e&&t.coordsIn(r.x,r.y)&&(e=t.getCanvas()),e}),null);l&&(i=e._valueAxes.filter((function(e){return w(b(e.getCanvas()),{x:l.left,y:l.top})})))}s|=n(i,a?r.x:r.y,t.delta)}o.argumentAxis.zoom&&(s|=e._argumentAxes.some((function(e){return!(!w(b(e.getCanvas()),r)&&!e.coordsIn(r.x,r.y))}))&&n(e._argumentAxes,a?r.y:r.x,t.delta,e.getArgumentAxis())),s&&(e._requestChange(["VISUAL_RANGE"]),P.panningVisualRangeEnabled(i)&&O(t))})),o.allowTouchGestures&&(o.argumentAxis.zoom||o.valueAxis.zoom)&&t.root.on(p,{passive:!1},P.pinchStartHandler).on(g,{passive:!1},P.pinchHandler).on(m,P.pinchEndHandler),t.root.on(c,{immediate:!0,passive:!1},P.dragStartHandler).on(h,{immediate:!0,passive:!1},P.dragHandler).on(f,P.dragEndHandler),o.argumentAxis.pan&&t.root.on(_,(function(e){P.actionData={valueAxes:[],offset:{x:0,y:0},center:{x:0,y:0}},O(e),i(P,"pan",e)})).on("dxc-scroll-move.zoomAndPanNS",(function(e){O(e),l(P,"pan",e,A,(function(e){return e.offset}))})).on("dxc-scroll-end.zoomAndPanNS",(function(e){O(e),u(P,"pan",e,A),P.actionData=null}))}},defineTouchBehavior:function(e,t){P.actionData&&(P.actionData.isNative=e),e||O(t)},panningVisualRangeEnabled:function(t){if(null!=t&&t.length)return t.some((function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)}));var n=e._valueAxes.some((function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)})),i=e._argumentAxes.some((function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)}));return n||i}};this._zoomAndPan=P},members:{_setupZoomAndPan:function(){this._zoomAndPan.setup(this._themeManager.getOptions("zoomAndPan"))}},dispose:function(){this._zoomAndPan.cleanup()},customize:function(e){e.addChange({code:"ZOOM_AND_PAN",handler:function(){this._setupZoomAndPan()},isThemeDependent:!0,isOptionChange:!0,option:"zoomAndPan"})}};t.default=D,e.exports=t.default,e.exports.default=t.default},39847:function(e,t,n){var i;t.default=void 0;var o=((i=n(31500))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},99327:function(e,t,n){t.ThemeManager=void 0;var i,o,a,r,s=n(20576),l=n(35922),u=n(13306),d=n(43637),c=n(19157),h=d.BaseThemeManager.inherit((i=function(e){return e?((e=(0,u.extend)(!0,{},e)).title=(t=e.title,(0,l.isString)(t)?{text:t}:t),("logarithmic"===e.type&&e.logarithmBase<=0||e.logarithmBase&&!(0,l.isNumeric)(e.logarithmBase))&&(e.logarithmBase=void 0,e.logarithmBaseError=!0),e.label&&e.label.alignment&&(e.label.userAlignment=!0),e):{};var t},o=function(e,t,n){var o=this._theme,a=n^"valueAxis"===e?"verticalAxis":"horizontalAxis",r=i(t),s=i(this._userOptions.commonAxisSettings),d=(0,u.extend)(!0,{},o.commonAxisSettings,o[a],o[e],s,r);return d.workWeek=r.workWeek||o[e].workWeek,d.forceUserTickInterval|=(0,l.isDefined)(r.tickInterval)&&!(0,l.isDefined)(r.axisDivisionFactor),d},r={base:a=function(e,t){t=t||this._userOptions[e];var n=this._theme[e],i=this._mergedSettings[e];return i||(i=(0,l.isPlainObject)(n)&&(0,l.isPlainObject)(t)?(0,u.extend)(!0,{},n,t):(0,l.isDefined)(t)?t:n,this._mergedSettings[e]=i,i)},argumentAxis:o,valueAxisRangeSelector:function(){return a.call(this,"valueAxis")},valueAxis:o,series:function(e,t,n){var i,o,a=this,s=a._theme,l=a._userOptions.commonSeriesSettings||{},d=s.commonSeriesSettings,h=a._themeSection.split(".").slice(-1)[0],f=(0,c.normalizeEnum)(t.type||l.type||d.type||"pie"===h&&s.type),p=a.palette,g=~f.indexOf("bar"),m=~f.indexOf("line"),_=~f.indexOf("area"),v="bubble"===f,y=a.getOptions("resolveLabelsOverlapping"),x=a.getOptions("containerBackgroundColor"),b=r.seriesTemplate.call(this);(g||v)&&(o=(t=(0,u.extend)(!0,{},l,l[f],t)).visible,l={type:{}},(0,u.extend)(!0,t,t.point),t.visible=o);var w=(0,u.extend)(!0,{aggregation:{}},d,d[f],l,l[f],t);return w.aggregation.enabled="chart"===h&&!!w.aggregation.enabled,w.type=f,w.widgetType=h,w.containerBackgroundColor=x,i="pie"!==h?w.color||p.getNextColor(n):function(e,t,n){var i="".concat(e,"-").concat(t);return a._multiPieColors[i]||(a._multiPieColors[i]=p.getNextColor(n)),a._multiPieColors[i]},w.mainSeriesColor=i,w.resolveLabelsOverlapping=y,w.label&&(m||_&&"rangearea"!==f||"scatter"===f)&&(w.label.position="outside"),b&&(w.nameField=b.nameField),w},animation:function(e){var t=this._userOptions[e];return t=(0,l.isPlainObject)(t)?t:(0,l.isDefined)(t)?{enabled:!!t}:{},a.call(this,e,t)},seriesTemplate:function(){var e=a.call(this,"seriesTemplate");return e&&(e.nameField=e.nameField||"series"),e},zoomAndPan:function(){function e(e){var t="pan"===(e=(0,c.normalizeEnum)(e))||"both"===e,n="zoom"===e||"both"===e;return{pan:t,zoom:n,none:!t&&!n}}var t=a.call(this,"zoomAndPan");return{valueAxis:e(t.valueAxis),argumentAxis:e(t.argumentAxis),dragToZoom:!!t.dragToZoom,dragBoxStyle:{class:"dxc-shutter",fill:t.dragBoxStyle.color,opacity:t.dragBoxStyle.opacity},panKey:t.panKey,allowMouseWheel:!!t.allowMouseWheel,allowTouchGestures:!!t.allowTouchGestures}}},{_themeSection:"chart",ctor:function(e){var t=this;t.callBase.apply(t,arguments);var n=e.options||{};t._userOptions=n,t._mergeAxisTitleOptions=[],t._multiPieColors={},t._callback=s.noop},dispose:function(){var e=this;return e.palette&&e.palette.dispose(),e.palette=e._userOptions=e._mergedSettings=e._multiPieColors=null,e.callBase.apply(e,arguments)},resetPalette:function(){this.palette.reset(),this._multiPieColors={}},getOptions:function(e){return(r[e]||r.base).apply(this,arguments)},refresh:function(){return this._mergedSettings={},this.callBase.apply(this,arguments)},_initializeTheme:function(){var e=this;e.callBase.apply(e,arguments),e.updatePalette()},resetOptions:function(e){this._mergedSettings[e]=null},update:function(e){this._userOptions=e},updatePalette:function(){var e=this;e.palette=e.createPalette(e.getOptions("palette"),{useHighlight:!0,extensionMode:e.getOptions("paletteExtensionMode")})}}));t.ThemeManager=h},32410:function(e,t){t.default=void 0,t.default={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4},e.exports=t.default,e.exports.default=t.default},45865:function(e,t,n){t.validateData=function(e,t,n,o){var a;return e=function(e,t){var n,o,a,r,s=[],l=(0,i.isDefined)(e),u=l&&!_(e);if(l&&!u)for(n=0,o=e.length,a=0;n<o;++n)r=e[n],(0,i.isObject)(r)?s[a++]=r:r&&(u=!0);return u&&t("E2001"),s}(e,n),t.argumentType=t.argumentAxisType=null,t.groups.forEach((function(e){e.valueType=e.valueAxisType=null,e.series.forEach((function(e){e.updateDataType({})})),e.valueAxis&&e.valueAxis.resetTypes(p)})),(a=t.argumentAxes)&&a.forEach((function(e){e.resetTypes(g)})),function(e,t,n){var i,o=[],a=[],r=t.argumentOptions&&m(t.argumentOptions.argumentType);t.groups.forEach((function(e){if(e.series.length){var n=e.valueOptions&&m(e.valueOptions.valueType);e.valueType=n,t.argumentType=r,!n&&o.push(e),!r&&a.push(e)}})),(o.length||a.length)&&(i=o.map((function(e,t){return t})),e.some((function(e){var r;if(o.forEach((function(t,n){(function(e,t){return e.series.forEach((function(n){n.getValueFields().forEach((function(n){e.valueType=b(t[n],e.valueType)}))})),e.valueType})(t,e)&&i.indexOf(n)>=0&&i.splice(n,1)})),r||a.forEach((function(n){r=function(e,t,n){return e.forEach((function(e){n.argumentType=b(t[e.getArgumentField()],n.argumentType)})),n.argumentType}(n.series,e,t)})),!n&&r&&0===i.length)return!0})))}(e,t,o.checkTypeForAllData),function(e,t){var n=e.argumentOptions||{},i=n&&n.categories||[],o=w(e.argumentType,n.type,!!i.length,t);e.groups.forEach((function(n){var i=n.valueOptions||{},a=i.categories||[],r=w(n.valueType,i.type,!!a.length,t);n.series.forEach((function(t){var a={};a.argumentAxisType=o,a.valueAxisType=r,e.argumentAxisType=e.argumentAxisType||a.argumentAxisType,n.valueAxisType=n.valueAxisType||a.valueAxisType,a.argumentType=e.argumentType,a.valueType=n.valueType,a.showZero=i.showZero,t.updateDataType(a)})),n.valueAxisType=n.valueAxisType||r,n.valueAxis&&(n.valueAxis.setTypes(n.valueAxisType,n.valueType,p),n.valueAxis.validate())})),e.argumentAxisType=e.argumentAxisType||o,e.argumentAxes&&e.argumentAxes.forEach((function(t){t.setTypes(e.argumentAxisType,e.argumentType,g),t.validate()}))}(t,n),o.convertToAxisDataType&&(e=function(e,t){var n,i=[],o=e.length;for(i.length=o,n=0;n<o;++n)i[n]=S(e[n],t);return i}(e,function(e,t){var n,i,o=C(e.argumentType,e.argumentAxisType,t),a=[o],r={},s=[];for(var u in e.groups.forEach((function(e,s){e.series.forEach((function(u){i=C(e.valueType,e.valueAxisType,t),n=C(l,h,t),r[u.getArgumentField()]=o,u.getValueFields().forEach((function(e){a[s+1]=i,r[e]=i})),u.getSizeField()&&(r[u.getSizeField()]=n)}))})),r)s.push([u,r[u]]);return s.length&&function(e,t){var n=e.argumentOptions&&e.argumentOptions.categories;e.groups.forEach((function(e,n){var i=e.valueOptions&&e.valueOptions.categories;i&&(e.valueOptions.categories=y(i,t[n+1]))})),n&&(e.argumentOptions.categories=y(n,t[0]))}(e,a),s}(t,n))),function(e,t){var n=t.groups[0]&&t.groups[0].series[0];!n||"pie"!==n.type&&"doughnut"!==n.type&&"donut"!==n.type||t.groups.forEach((function(t){t.series.forEach((function(t){!function(e,t,n,o){var a=(o=o||{}).mode,r={};if(a&&"none"!==a){r[t]=String(o.groupName||"others"),r[n]=0;var s=v(e.slice(),!1,(function(e){return e[n]}));(function(e,t,n,o){o>=0&&e.slice(o).forEach((function(e){(0,i.isDefined)(e[n])&&(t[n]+=e[n],e[n]=void 0)}))})(s,r,n,"smallValueThreshold"===a?function(e,t,n){var o,a,r=e.length;for(o=0;o<r&&(a=e[o][t],!((0,i.isDefined)(a)&&n>a));++o);return o}(s,n,o.threshold):o.topCount),r[n]&&e.push(r)}}(e,t.getArgumentField(),t.getValueFields()[0],t.getOptions().smallValuesGrouping)}))}))}(e,t),function(e,t,n,o){var a,r,l,u={},c=t.argumentAxisType===d,h=c&&t.argumentOptions&&t.argumentOptions.categories,f=function(e){return e},p=n.sortingMethod;return!h&&(0,i.isFunction)(p)&&(e=function(e,t){return e.slice().sort(t)}(e,p)),c&&(t.categories=function(e,t,n){var o=n?n.slice():[];return t.forEach((function(t){e.forEach((function(e){var n=e[t];(0,i.isDefined)(n)&&function(e,t){return-1===e.map((function(e){return e.valueOf()})).indexOf(t.valueOf())}(o,n)&&o.push(n)}))})),o}(e,o,h)),h||!(0,i.isFunction)(p)&&t.argumentType===s&&!n._skipArgumentSorting?(r=t.categories,l={},r.forEach((function(e,t){l[e]=t})),f=function(e,t){return v(e.slice(),!0,(function(e){return l[e[t]]}))}):!0===p&&t.argumentType!==s&&(f=D,a=c),o.forEach((function(t){u[t]=f(e,t)})),a&&(t.categories=t.categories.sort(k)),u}(e,t,o,function(e){var t=[],n={};return e.groups.forEach((function(e){e.series.forEach((function(e){var i,o;i=e.getArgumentField(),(o=n)[i]||(t.push(i),o[i]=!0)}))})),t}(t))};var i=n(35922),o=n(13306),a=n(19157),r=n(8587),s="string",l="numeric",u="datetime",d="discrete",c="semidiscrete",h="continuous",f="logarithmic",p="valueType",g="argumentType",m=(0,a.enumParser)([s,l,u]),_=Array.isArray;function v(e,t,n){var o=t?function(e,t){return e-t}:function(e,t){return t-e};return e.sort((function(e,t){var a=n(e),r=n(t),s=(0,i.isDefined)(a)?1:0,l=(0,i.isDefined)(r)?1:0;return s&&l?o(a,r):o(s,l)})),e}function y(e,t){var n=[];return e.forEach((function(e){var i=t(e);void 0!==i&&n.push(i)})),n}function x(e){return e}function b(e,t){var n=t;return t===s||(0,i.isString)(e)?n=s:t===u||(0,i.isDate)(e)?n=u:(0,i.isNumeric)(e)&&(n=l),n}function w(e,t,n,i){return e!==s||t!==h&&t!==f&&t!==c||i("E2002"),t===f?f:n||t===d||e===s?d:t===c?c:h}function C(e,t,n){var o=e?(0,r.getParser)(e):x,a=t!==d?function(e){return isFinite(e)||void 0===e?e:null}:x;return function(e,t){var r=a(o(e));return void 0===r&&function(e,t,n){e&&n((0,i.isNumeric)(e)||(0,i.isDate)(e)||(0,i.isString)(e)?"E2004":"E2003",[t])}(e,t,n),r}}function S(e,t){var n,i,a,r=t.length,s=(0,o.extend)({},e);for(n=0;n<r;++n)a=e[i=t[n][0]],s[i]=t[n][1](a,i);return s}function k(e,t){var n=e-t;return isNaN(n)?(0,i.isDefined)(e)?(0,i.isDefined)(t)?0:-1:1:n}function D(e,t){return e.slice().sort((function(e,n){return k(e[t],n[t])}))}},16342:function(e,t,n){t.plugin=t.Legend=void 0;var i=n(19157),o=n(13306),a=n(73711),r=n(35922),s=n(17384),l=n(48013),u=n(20576),d=n(56453),c=n(62754),h=Number,f=Math,p=f.round,g=f.max,m=f.min,_=f.ceil,v=r.isDefined,y=r.isFunction,x=i.enumParser,b=i.normalizeEnum,w=o.extend,C="center",S="right",k="left",D="top",I="bottom",T="horizontal",E="vertical",A="inside",O="outside",P="none",M="height",R="width",B=x([k,C,S]),V=x([D,I]),F=x([E,T]),L=x([k,S,D,I]),H=x([O,A]),N=x([k,C,S]);function z(e,t,n){if(e){var i=e.fill;return(0,o.extend)({},{state:n,fill:i===P?t:i,opacity:e.opacity,hatching:w({},e.hatching,{step:5,width:2})})}}function W(e,t,n){var i=(0,d.processHatchingAttrs)(e,t);return i.fill&&0===i.fill.indexOf("DevExpress")&&(i.fill=(0,d.getFuncIri)(i.fill)),i.opacity=i.opacity>=0?i.opacity:1,(0,o.extend)({},i,{size:n})}function G(e,t,n,i){var o=t&&n[t[e]];o&&o.renderMarker(o.states[i])}function j(e,t,n){return e?(function(e){var t=e.margin;t=t>=0?{top:t=h(e.margin),bottom:t,left:t,right:t}:{top:t.top>=0?h(t.top):10,bottom:t.bottom>=0?h(t.bottom):10,left:t.left>=0?h(t.left):10,right:t.right>=0?h(t.right):10},e.margin=t}(e),e.horizontalAlignment=B(e.horizontalAlignment,S),e.verticalAlignment=V(e.verticalAlignment,e.horizontalAlignment===C?I:D),e.orientation=F(e.orientation,e.horizontalAlignment===C?T:E),e.itemTextPosition=L(e.itemTextPosition,e.orientation===T?I:S),e.position=n?H(e.position,O):O,e.itemsAlignment=N(e.itemsAlignment,null),e.hoverMode=b(e.hoverMode),e.customizeText=y(e.customizeText)?e.customizeText:function(){return this[t]},e.customizeHint=y(e.customizeHint)?e.customizeHint:u.noop,e._incidentOccurred=e._incidentOccurred||u.noop,e):null}function q(e,t){return e.rect(0,0,t,t)}function $(e,t){return e.circle(t/2,t/2,t/2)}function K(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function U(e,t,n,i){var o,a={x:0,y:0},r=0,s=0;if(o="y"===t.direction?i.top+i.bottom:i.left+i.right,e.forEach((function(e,n){var i=e[0],o=e.length;e.forEach((function(e,n){var i=e.offset||t.spacing;a[t.direction]+=e[t.measure]+(n!==o-1?i:0),r=g(r,a[t.direction])})),a[t.direction]=0,a[t.altDirection]+=i[t.altMeasure]+i.altOffset||t.altSpacing,s=g(s,a[t.altDirection])})),r+o>t.length)return t.countItem=function(e,t){return e.altCountItem++,_(t/e.altCountItem)}(t,n),!0}function Y(e,t){return e.reduce((function(e,n){var i=n.offset||t.spacing;return e+n[t.measure]+i}),0)}function Z(e){switch(e.itemTextPosition){case I:return{horizontal:C,vertical:D};case D:return{horizontal:C,vertical:I};case k:return{horizontal:S,vertical:C};case S:return{horizontal:k,vertical:C}}}function X(e,t){var n=e.reduce((function(e,n){var i=n?n[t]:e;return g(e,i)}),0);e.forEach((function(e){e&&(e[t]=n)}))}function Q(e){var t,n,i=e.length,o=e[0].length,a=[];for(t=0;t<o;t++)for(a[t]=[],n=0;n<i;n++)a[t][n]=e[n][t];return a}function J(e){return e.horizontalAlignment===C?C:e.itemTextPosition===S?k:e.itemTextPosition===k?S:C}var ee=function(e){var t=this;t._renderer=e.renderer,t._legendGroup=e.group,t._backgroundClass=e.backgroundClass,t._itemGroupClass=e.itemGroupClass,t._textField=e.textField,t._getCustomizeObject=e.getFormatObject,t._titleGroupClass=e.titleGroupClass,t._allowInsidePosition=e.allowInsidePosition,t._widget=e.widget,t._updated=!1};t.Legend=ee;var te=ee,ne=te.prototype=(0,l.clone)(a.LayoutElement.prototype);(0,o.extend)(ne,{constructor:te,getOptions:function(){return this._options},update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,o=(t=i._options=j(t,i._textField,i._allowInsidePosition)||{}).markerSize;if(this._updated=!0,this._data=e.map((function(e){return e.size=h(e.size>0?e.size:o),e.marker=W(e,e.states.normal),Object.defineProperty(e.marker,"size",{get:function(){return e.size},set:function(t){e.size=t}}),Object.defineProperty(e.marker,"opacity",{get:function(){return e.states.normal.opacity},set:function(t){e.states.normal.opacity=e.states.hover.opacity=e.states.selection.opacity=t}}),e})),t.customizeItems&&(i._data=t.customizeItems(e.slice())||e),i._boundingRect={width:0,height:0,x:0,y:0},i.isVisible()&&!i._title&&(i._title=new s.Title({renderer:i._renderer,cssClass:i._titleGroupClass,root:i._legendGroup})),i._title){var a=t.title;n.horizontalAlignment=J(t),i._title.update(n,a)}return this.erase(),i},isVisible:function(){return this._options&&this._options.visible},draw:function(e,t){var n=this,i=n._getItemData();if(n.erase(),!(n.isVisible()&&i&&i.length))return n;if(n._insideLegendGroup=n._renderer.g().enableLinks().append(n._legendGroup),n._title.changeLink(n._insideLegendGroup),n._createBackground(),n._title.hasText()){var o=n._background?2*n._options.paddingLeftRight:0;n._title.draw(e-o,t)}return n._markersGroup=n._renderer.g().attr({class:n._itemGroupClass}).append(n._insideLegendGroup),n._createItems(i),n._updateElementsPosition(e,t),n},_measureElements:function(){var e=this._options,t=0;this._items.forEach((function(n){var i=n.label.getBBox(),o=n.marker.getBBox();n.markerBBox=o,n.markerSize=Math.max(o.width,o.height);var a=function(e,t,n){var i,o;switch(e.itemTextPosition){case k:case S:i=t.width+7+n.width,o=g(t.height,n.height);break;case D:case I:i=g(t.width,n.width),o=t.height+4+n.height}return{width:i,height:o}}(e,o,i);n.labelBBox=i,n.bBox=a,t=g(t,a.height)})),e.equalRowHeight&&this._items.forEach((function(e){return e.bBox.height=t}))},_updateElementsPosition:function(e,t){var n=this,i=n._options;this._size={width:e,height:t},n._measureElements(),n._locateElements(i),n._finalUpdate(i);var o=n.getLayoutOptions();(o.width>e||o.height>t)&&n.freeSpace()},_createItems:function(e){var t=this,n=t._options,a=t._renderer,r=function(e){return function(e){return"circle"===b(e)}(e)?$:q}(n.markerShape);t._markersId={};var s=n.markerTemplate?n.markerTemplate:function(e,t){var n=e.marker;r(a,n.size).attr({fill:n.fill,opacity:n.opacity}).append({element:t})},l=t._widget._getTemplate(s),u=t._markersGroup;u.css((0,i.patchFontOptions)(n.font)),t._deferredItems=[],t._templatesGroups=[],t._items=(e||[]).map((function(e,i){var r=e.states,s=r.normal,d=s.fill;e.size=e.marker.size;var h={normal:(0,o.extend)(s,{fill:d||n.markerColor||n.defaultColor,state:"normal"}),hover:z(r.hover,d,"hovered"),selection:z(r.selection,d,"selected")};e.states=h;var f=a.g().append(u),p=a.g().attr({class:"dxl-marker"}).append(f);t._deferredItems[i]=new c.Deferred,t._templatesGroups.push(p);var g={label:t._createLabel(e,f),marker:p,renderer:a,group:f,tracker:{id:e.id,argument:e.argument,argumentIndex:e.argumentIndex},states:h,itemTextPosition:n.itemTextPosition,markerOffset:0,bBoxes:[],renderMarker:function(n){e.marker=W(g,n,e.size),p.clear(),l.render({model:e,container:p.element,onRendered:t._deferredItems[i].resolve})}};return g.renderMarker(h.normal),t._createHint(e,f),void 0!==e.id&&(t._markersId[e.id]=i),g}))},getTemplatesGroups:function(){return this._templatesGroups||[]},getTemplatesDef:function(){return this._deferredItems||[]},_getItemData:function(){var e=this._data||[];return(this._options||{}).inverted&&(e=e.slice().reverse()),e.filter((function(e){return e.visible}))},_finalUpdate:function(e){this._adjustBackgroundSettings(e),this._setBoundingRect(e.margin)},erase:function(){var e=this,t=e._insideLegendGroup;return t&&t.dispose(),e._insideLegendGroup=e._markersGroup=e._x1=e._x2=e._y2=e._y2=null,e},_locateElements:function(e){this._moveInInitialValues(),this._locateRowsColumns(e)},_moveInInitialValues:function(){var e=this;e._title.hasText()&&e._title.move([0,0]),e._legendGroup&&e._legendGroup.move(0,0),e._background&&e._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(e){return G(e,this._markersId,this._items,"selection"),this},applyHover:function(e){return G(e,this._markersId,this._items,"hover"),this},resetItem:function(e){return G(e,this._markersId,this._items,"normal"),this},_createLabel:function(e,t){var n=this._getCustomizeObject(e),o=this._options,a=function(e){switch(e){case D:case I:return C;case k:return S;case S:return k}}(o.itemTextPosition),r=o.customizeText.call(n,n),s=v(e.textOpacity)?{color:o.font.color,opacity:e.textOpacity}:{};return this._renderer.text(r,0,0).css((0,i.patchFontOptions)(s)).attr({align:a,class:o.cssClass}).append(t)},_createHint:function(e,t){var n=this._getCustomizeObject(e),i=this._options.customizeHint.call(n,n);v(i)&&""!==i&&t.setTitle(i)},_createBackground:function(){var e=this,t=e._options.position===A,n=e._options.backgroundColor,i=n||(t?e._options.containerBackgroundColor:P);(e._options.border.visible||(t||n)&&n!==P)&&(e._background=e._renderer.rect(0,0,0,0).attr({fill:i,class:e._backgroundClass}).append(e._insideLegendGroup))},_locateRowsColumns:function(e){var t,n=this,i=0,o=n._getItemsLayoutOptions(),a=n._items.length;do{t=[],n._createLines(t,o),n._alignLines(t,o),i++}while(U(t,o,a,e.margin)&&i<a);n._applyItemPosition(t,o)},_createLines:function(e,t){this._items.forEach((function(n,i){var o,a,r=function(e,t,n){var i={};return n%t.countItem==0&&(t.markerOffset?e.push([],[]):e.push([])),t.markerOffset?(i.firstLine=e[e.length-1],i.secondLine=e[e.length-2]):i.firstLine=i.secondLine=e[e.length-1],i}(e,t,i),s={width:n.labelBBox.width,height:n.labelBBox.height,element:n.label,bBox:n.labelBBox,pos:Z(t),itemIndex:i},l={width:n.markerBBox.width,height:n.markerBBox.height,element:n.marker,pos:{horizontal:C,vertical:C},bBox:{width:n.markerBBox.width,height:n.markerBBox.height,x:n.markerBBox.x,y:n.markerBBox.y},itemIndex:i},u=t.markerOffset?"altOffset":"offset";t.inverseLabelPosition?(o=s,a=l):(o=l,a=s),o[u]=t.labelOffset,r.secondLine.push(o),r.firstLine.push(a)}))},_alignLines:function(e,t){var n,i=t.altMeasure;if(e.forEach((function(e){return X(e,i)})),i=t.measure,t.itemsAlignment){if(t.markerOffset)for(n=0;n<e.length;)Q([e[n++],e[n++]]).forEach(o)}else Q(e).forEach(o);function o(e){X(e,i)}},_applyItemPosition:function(e,t){var n=this,i={x:0,y:0},o=function(e,t){return e.reduce((function(e,n){return g(e,Y(n,t))}),0)}(e,t);e.forEach((function(e){var r=e[0],s=r.altOffset||t.altSpacing;i[t.direction]=function(e,t,n){var i,o=Y(e,t);switch(t.itemsAlignment){case S:i=n-o;break;case C:i=(n-o)/2;break;default:i=0}return i}(e,t,o),e.forEach((function(e){var o=e.offset||t.spacing,r=new a.WrapperLayoutElement(e.element,e.bBox),s={x:i.x,y:i.y,width:e.width,height:e.height},l=new a.WrapperLayoutElement(null,s),u=n._items[e.itemIndex];r.position({of:l,my:e.pos,at:e.pos}),u.bBoxes.push(l),i[t.direction]+=e[t.measure]+o})),i[t.altDirection]+=r[t.altMeasure]+s})),this._items.forEach((function(e){var t,i,o,a=(t=e.bBoxes[0].getLayoutOptions(),i=e.bBoxes[1].getLayoutOptions(),(o={}).left=m(t.x,i.x),o.top=m(t.y,i.y),o.right=g(t.x+t.width,i.x+i.width),o.bottom=g(t.y+t.height,i.y+i.height),o),r=n._options.columnItemSpacing/2,s=n._options.rowItemSpacing/2;e.tracker.left=a.left-r,e.tracker.right=a.right+r,e.tracker.top=a.top-s,e.tracker.bottom=a.bottom+s}))},_getItemsLayoutOptions:function(){var e=this,t=e._options,n=t.orientation,i={itemsAlignment:t.itemsAlignment,orientation:t.orientation},o=e._size.width-(e._background?2*t.paddingLeftRight:0),a=e._size.height-(e._background?2*t.paddingTopBottom:0);return n===T?(i.length=o,i.spacing=t.columnItemSpacing,i.direction="x",i.measure=R,i.altMeasure=M,i.altDirection="y",i.altSpacing=t.rowItemSpacing,i.countItem=t.columnCount,i.altCountItem=t.rowCount,i.marginTextLabel=4,i.labelOffset=7,t.itemTextPosition!==I&&t.itemTextPosition!==D||(i.labelOffset=4,i.markerOffset=!0)):(i.length=a,i.spacing=t.rowItemSpacing,i.direction="y",i.measure=M,i.altMeasure=R,i.altDirection="x",i.altSpacing=t.columnItemSpacing,i.countItem=t.rowCount,i.altCountItem=t.columnCount,i.marginTextLabel=7,i.labelOffset=4,t.itemTextPosition!==S&&t.itemTextPosition!==k||(i.labelOffset=7,i.markerOffset=!0)),i.countItem||(i.altCountItem?i.countItem=_(e._items.length/i.altCountItem):i.countItem=e._items.length),t.itemTextPosition!==D&&t.itemTextPosition!==k||(i.inverseLabelPosition=!0),i.itemTextPosition=t.itemTextPosition,i.altCountItem=i.altCountItem||_(e._items.length/i.countItem),i},_adjustBackgroundSettings:function(e){if(this._background){var t=e.border,n=this._calculateTotalBox(),i={x:p(n.x-e.paddingLeftRight),y:p(n.y-e.paddingTopBottom),width:p(n.width)+2*e.paddingLeftRight,height:p(n.height),opacity:e.backgroundOpacity};t.visible&&t.width&&t.color&&t.color!==P&&(i["stroke-width"]=t.width,i.stroke=t.color,i["stroke-opacity"]=t.opacity,i.dashStyle=t.dashStyle,i.rx=t.cornerRadius||0,i.ry=t.cornerRadius||0),this._background.attr(i)}},_setBoundingRect:function(e){if(this._insideLegendGroup){var t=this._calculateTotalBox();t.height+=e.top+e.bottom,t.widthWithoutMargins=t.width,t.width+=e.left+e.right,t.x-=e.left,t.y-=e.top,this._boundingRect=t}},_calculateTotalBox:function(){var e=this._markersGroup.getBBox(),t=this._title.getCorrectedLayoutOptions(),n=this._insideLegendGroup.getBBox(),i=this._background?2*this._options.paddingTopBottom:0;return n.height=e.height+t.height+i,t.width>n.width&&(n.width=t.width),n},getActionCallback:function(e){var t=this;return t._options.visible?function(n){t[n](e.index)}:u.noop},getLayoutOptions:function(){var e=this._options,t=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return e?(t.verticalAlignment=e.verticalAlignment,t.horizontalAlignment=e.horizontalAlignment,e.orientation===T||e.horizontalAlignment===C?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):(t.cutLayoutSide=e.horizontalAlignment,t.cutSide="horizontal"),t.position={horizontal:e.horizontalAlignment,vertical:e.verticalAlignment},t):null},shift:function(e,t){var n=this,i={};return n._insideLegendGroup&&n._insideLegendGroup.attr({translateX:e-n._boundingRect.x,translateY:t-n._boundingRect.y}),n._title&&n._shiftTitle(n._boundingRect.widthWithoutMargins),n._markersGroup&&n._shiftMarkers(),n._insideLegendGroup&&(i=n._legendGroup.getBBox()),n._x1=i.x,n._y1=i.y,n._x2=i.x+i.width,n._y2=i.y+i.height,n},_shiftTitle:function(e){var t=this,n=t._title,i=n.getCorrectedLayoutOptions();if(i&&n.hasText()){var o=e-(t._background?2*t._options.paddingLeftRight:0),a=n.getOptions(),r=i.y+a.margin.top,s=0;a.verticalAlignment===I&&t._markersGroup&&(r+=t._markersGroup.getBBox().height),a.horizontalAlignment===S?s=o-i.width:a.horizontalAlignment===C&&(s=(o-i.width)/2),n.shift(s,r)}},_shiftMarkers:function(){var e=this._title.getLayoutOptions(),t=this._markersGroup.getBBox(),n=this._title.getOptions()||{},i=0,o=0;e.width>t.width&&this._options.horizontalAlignment===C&&(i=e.width/2-t.width/2),n.verticalAlignment===D&&(o=e.height),0===i&&0===o||(this._markersGroup.attr({translateX:i,translateY:o}),this._items.forEach((function(e){e.tracker.left+=i,e.tracker.right+=i,e.tracker.top+=o,e.tracker.bottom+=o})))},getPosition:function(){return this._options.position},coordsIn:function(e,t){return e>=this._x1&&e<=this._x2&&t>=this._y1&&t<=this._y2},getItemByCoord:function(e,t){var n=this._items,i=this._insideLegendGroup;e-=i.attr("translateX"),t-=i.attr("translateY");for(var o=0;o<n.length;o++)if(K(n[o].tracker,e,t))return n[o].tracker;return null},dispose:function(){var e=this;return e._title&&e._title.dispose(),e._legendGroup=e._insideLegendGroup=e._title=e._renderer=e._options=e._data=e._items=null,e},layoutOptions:function(){if(!this.isVisible())return null;var e=this.getLayoutOptions();return{horizontalAlignment:this._options.horizontalAlignment,verticalAlignment:this._options.verticalAlignment,side:e.cutSide,priority:1,position:this.getPosition()}},measure:function(e){this._updated||!this._insideLegendGroup?(this.draw(e[0],e[1]),this._updated=!1):(this._items.forEach((function(e){e.bBoxes=[]})),this._updateElementsPosition(e[0],e[1]));var t=this.getLayoutOptions();return[t.width,t.height]},move:function(e){this.shift(e[0],e[1])},freeSpace:function(){this._options._incidentOccurred("W2104"),this.erase()}});var ie={name:"legend",init:function(){var e=this,t=this._renderer.g().attr({class:this._rootClassPrefix+"-legend"}).enableLinks().append(e._renderer.root);e._legend=new ee({renderer:e._renderer,group:t,widget:this,itemGroupClass:this._rootClassPrefix+"-item",titleGroupClass:this._rootClassPrefix+"-title",textField:"text",getFormatObject:function(e){return{item:e.item,text:e.text}}}),e._layout.add(e._legend)},extenders:{_applyTilesAppearance:function(){var e=this;this._items.forEach((function(t){e._applyLegendItemStyle(t.id,t.getState())}))},_buildNodes:function(){this._createLegendItems()}},members:{_applyLegendItemStyle:function(e,t){var n=this._legend;switch(t){case"hover":n.applyHover(e);break;case"selection":n.applySelected(e);break;default:n.resetItem(e)}},_createLegendItems:function(){this._legend.update(this._getLegendData(),this._getOption("legend"),this._themeManager.theme("legend").title)&&this._requestChange(["LAYOUT"])}},dispose:function(){this._legend.dispose()},customize:function(e){e.prototype._proxyData.push((function(e,t){if(this._legend.coordsIn(e,t)){var n=this._legend.getItemByCoord(e,t);if(n)return{id:n.id,type:"legend"}}})),e.addChange({code:"LEGEND",handler:function(){this._createLegendItems()},isThemeDependent:!0,option:"legend",isOptionChange:!0})}};t.plugin=ie},8587:function(e,t,n){t.correctValueType=l,t.getParser=void 0;var i,o=n(20576),a=(i=n(69434))&&i.__esModule?i:{default:i},r=n(35922),s={string:function(e){return(0,r.isDefined)(e)?""+e:e},numeric:function(e){if(!(0,r.isDefined)(e))return e;var t=Number(e);return isNaN(t)&&(t=void 0),t},datetime:function(e){if(!(0,r.isDefined)(e))return e;var t,n=Number(e);return t=isNaN(n)?a.default.deserializeDate(e):new Date(n),isNaN(Number(t))&&(t=void 0),t}};function l(e){return"numeric"===e||"datetime"===e||"string"===e?e:""}t.getParser=function(e){return s[l(e)]||o.noop}},88997:function(e,t,n){t.Tracker=c;var i=n(39611),o=l(n(73349)),a=n(95429),r=l(n(93786)),s=l(n(55994));function l(e){return e&&e.__esModule?e:{default:e}}var u=r.default.down,d=r.default.move;function c(e){this._initHandlers(e)}c.prototype={constructor:c,_initHandlers:function(e){var t=o.default.getDocument();function n(t){!function(e,t){var n=t.getData(e);n>=0&&t.click({node:t.getNode(n),coords:t.getCoords(e),event:e})}(t,e)}e.getCoords=function(t){var n=(0,i.eventData)(t),o=e.widget._renderer.getRootOffset();return[n.x-o.left,n.y-o.top]},e.root.on(a.name,n),e.root.on(u,l),s.default.on(t,u,l),s.default.on(t,d,c),this._disposeHandlers=function(){e.root.off(a.name,n),e.root.off(u,l),s.default.off(t,u,l),s.default.off(t,d,c)};var r=!1;function l(t){r?r=!1:(void 0!==e.getData(t)&&(r=!0),c(t))}function c(t){!function(e,t){var n=t.getData(e);n>=0?t.getNode(n).setHover():t.widget.clearHover()}(t,e),e.widget._getOption("tooltip").enabled&&function(e,t){var n,o=t.getData(e,!0);o>=0?(n=(0,i.eventData)(e),t.getNode(o).showTooltip([n.x,n.y])):t.widget.hideTooltip()}(t,e)}},dispose:function(){this._disposeHandlers()}}},77129:function(e,t,n){t.plugins=t.createAnnotations=void 0;var i=f(n(73349)),o=n(35922),a=n(14371),r=n(13306),s=n(19157),l=n(64509),u=f(n(93786)),d=n(23174),c=n(39611),h=f(n(55994));function f(e){return e&&e.__esModule?e:{default:e}}var p=i.default.getDocument,g="annotations",m="."+g,_=(0,c.addNamespace)([u.default.down,u.default.move],g),v=(0,c.addNamespace)(u.default.up,g),y=d.start+m,x=d.move+m,b=d.end+m;function w(e,t){return{draw:function(n,i){var o=this,a=n._renderer.g().append(i).css((0,s.patchFontOptions)(e.font));this.plaque&&this.plaque.clear(),this.plaque=new l.Plaque((0,r.extend)(!0,{},e,{cornerRadius:(e.border||{}).cornerRadius}),n,a,t,n._isAnnotationBounded(e)),this.plaque.draw(n._getAnnotationCoords(this)),e.allowDragging&&a.on(y,{immediate:!0},(function(e){o._dragOffsetX=o.plaque.x-e.pageX,o._dragOffsetY=o.plaque.y-e.pageY})).on(x,(function(e){o.plaque.move(e.pageX+o._dragOffsetX,e.pageY+o._dragOffsetY)})).on(b,(function(e){o.offsetX=(o.offsetX||0)+e.offset.x,o.offsetY=(o.offsetY||0)+e.offset.y}))},hitTest:function(e,t){return this.plaque.hitTest(e,t)},showTooltip:function(e,t){var n=t.x,i=t.y,o=this,a=o.options;if(e.annotation!==o){e.setTemplate(a.tooltipTemplate);var r=function(t){t&&(e.annotation=o)};r(e.show(a,{x:n,y:i},{target:a},a.customizeTooltip,r))}else e.isCursorOnTooltip(n,i)||e.move(n,i)}}}function C(e,t){var n;return"text"===e.type?n=function(e,n){var i=t._renderer.text(e.text).attr({class:e.cssClass}).append({element:n});(e.width>0||e.height>0)&&i.setMaxSize(e.width,e.height,{wordWrap:e.wordWrap,textOverflow:e.textOverflow})}:"image"===e.type?n=function(e,n){var i=e.image||{},o=i.width,a=i.height,r=i.url,s=i.location,l=e.width,u=e.height,d=l>0?Math.min(o,l):o,c=u>0?Math.min(a,u):a;t._renderer.image(0,0,d,c,r,s||"center").append({element:n})}:"custom"===e.type&&(n=e.template),n}function S(e){return"string"==typeof e?{url:e}:e}var k=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,s=S(n.image);return t.reduce((function(t,l){var u=S(l.image),d=(0,o.isFunction)(i)?i(l):{};d&&(d.image=S(d.image));var c=(0,r.extend)(!0,{},n,l,{image:s},{image:u},d),h=C(c,e),f=h&&(0,r.extend)(!0,a(c),w(c,e._getTemplate(h)));return f&&t.push(f),t}),[])};t.createAnnotations=k;var D={name:"annotations_chart",init:function(){},dispose:function(){},members:{_getAnnotationCoords:function(e){var t,n,i,a,r={offsetX:e.offsetX,offsetY:e.offsetY},s=this._options.silent("rotated")?"y":"x",l=this._options.silent("rotated")?"x":"y",u=this.getArgumentAxis(),d=u.validateUnit(e.argument),c=this.getValueAxis(e.axis),h=null===(t=c)||void 0===t?void 0:t.pane;if(e.series&&(i=this.series.filter((function(t){return t.name===e.series}))[0],c=null===(a=i)||void 0===a?void 0:a.getValueAxis(),(0,o.isDefined)(c)&&(h=c.pane)),(0,o.isDefined)(d)){if(i){var f=i.getPointCenterByArg(d);f&&(r[s]=f[s])}else r[s]=u.getTranslator().translate(d);!(0,o.isDefined)(h)&&(h=u.pane)}var p,g,m=null===(n=c)||void 0===n?void 0:n.validateUnit(e.value);return(0,o.isDefined)(m)&&(r[l]=null===(p=c)||void 0===p?void 0:p.getTranslator().translate(m),!(0,o.isDefined)(h)&&(0,o.isDefined)(c)&&(h=c.pane)),r.canvas=this._getCanvasForPane(h),(0,o.isDefined)(r[s])&&!(0,o.isDefined)(m)&&((0,o.isDefined)(c)||(0,o.isDefined)(i)?(0,o.isDefined)(c)&&!(0,o.isDefined)(i)?r[l]=this._argumentAxes.filter((function(e){return e.pane===c.pane}))[0].getAxisPosition():null!==(g=i)&&void 0!==g&&g.checkSeriesViewportCoord(u,r[s])&&(r[l]=i.getSeriesPairCoord(r[s],!0)):r[l]=u.getAxisPosition()),!(0,o.isDefined)(d)&&(0,o.isDefined)(r[l])&&((0,o.isDefined)(c)&&!(0,o.isDefined)(i)?r[s]=c.getAxisPosition():(0,o.isDefined)(i)&&i.checkSeriesViewportCoord(c,r[l])&&(r[s]=i.getSeriesPairCoord(r[l],!1))),r},_annotationsPointerEventHandler:function(e){if(!this._disposed){var t=e.originalEvent||{},n=t.touches&&t.touches[0]||{},i=this._renderer.getRootOffset(),o={x:n.pageX||t.pageX||e.pageX,y:n.pageY||t.pageY||e.pageY},a=this._annotations.items.filter((function(e){return e.hitTest(o.x-i.left,o.y-i.top)}))[0];a&&a.options.tooltipEnabled?(this._clear(),a.options.allowDragging&&e.type===u.default.down&&(this._annotations._hideToolTipForDrag=!0),this._annotations._hideToolTipForDrag||(a.showTooltip(this._annotations.tooltip,o),e.stopPropagation())):this._annotations.hideTooltip()}},_isAnnotationBounded:function(e){return(0,o.isDefined)(e.value)||(0,o.isDefined)(e.argument)},_pullOptions:function(e){return{type:e.type,name:e.name,x:e.x,y:e.y,value:e.value,argument:e.argument,axis:e.axis,series:e.series,options:e,offsetX:e.offsetX,offsetY:e.offsetY}},_forceAnnotationRender:function(){this._change(["FORCE_RENDER"])},_clear:function(){this.hideTooltip(),this.clearHover()}}},I={name:"annotations_polar_chart",init:function(){},dispose:function(){},members:{_getAnnotationCoords:function(e){var t,n,i={offsetX:e.offsetX,offsetY:e.offsetY,canvas:this._calcCanvas()},a=this.getArgumentAxis(),s=a.validateUnit(e.argument),l=this.getValueAxis().validateUnit(e.value),u=e.radius,d=e.angle;return e.series&&(n=this.series.filter((function(t){return t.name===e.series}))[0]),(0,r.extend)(!0,i,this.getXYFromPolar(d,u,s,l)),(0,o.isDefined)(n)&&(!(0,o.isDefined)(i.angle)||(0,o.isDefined)(l)||(0,o.isDefined)(u)?!(0,o.isDefined)(i.radius)||(0,o.isDefined)(s)||(0,o.isDefined)(d)||(t=n.getSeriesPairCoord({radius:i.radius},!1)):((0,o.isDefined)(s)||(s=a.getTranslator().from(isFinite(d)?this.getActualAngle(d):i.angle)),t=n.getSeriesPairCoord({argument:s,angle:-i.angle},!0)),(0,o.isDefined)(t)&&(i.x=t.x,i.y=t.y)),e.series&&!(0,o.isDefined)(t)&&(i.x=i.y=void 0),i},_annotationsPointerEventHandler:D.members._annotationsPointerEventHandler,_isAnnotationBounded:D.members._isAnnotationBounded,_pullOptions:function(e){var t=(0,r.extend)({},{radius:e.radius,angle:e.angle},D.members._pullOptions(e));return delete t.axis,t},_forceAnnotationRender:D.members._forceAnnotationRender,_clear:D.members._clear}},T={name:"annotations_vector_map",init:function(){},dispose:function(){this._annotations._offTracker(),this._annotations._offTracker=null},members:{_getAnnotationCoords:function(e){var t={offsetX:e.offsetX,offsetY:e.offsetY};if(t.canvas=this._projection.getCanvas(),e.coordinates){var n=this._projection.toScreenPoint(e.coordinates);t.x=n[0],t.y=n[1]}return t},_annotationsPointerEventHandler:D.members._annotationsPointerEventHandler,_isAnnotationBounded:function(e){return(0,o.isDefined)(e.coordinates)},_pullOptions:function(e){var t=(0,r.extend)({},{coordinates:e.coordinates},D.members._pullOptions(e));return delete t.axis,delete t.series,delete t.argument,delete t.value,t},_forceAnnotationRender:function(){this._change(["EXTRA_ELEMENTS"])},_getAnnotationStyles:function(){return{"text-anchor":"start"}},_clear:function(){}},extenders:{_prepareExtraElements:function(){var e=this,t=function(){e._renderExtraElements()};e._annotations._offTracker=e._tracker.on({move:t,zoom:t,end:t})}}},E={name:"annotations_pie_chart",init:function(){},dispose:function(){},members:{_getAnnotationCoords:function(e){var t={offsetX:e.offsetX,offsetY:e.offsetY,canvas:this._canvas};if(e.argument){var n=(e.series?this.getSeriesByName(e.series):this.series[0]).getPointsByArg(e.argument)[0].getAnnotationCoords(e.location),i=n.x,o=n.y;t.x=i,t.y=o}return t},_isAnnotationBounded:function(e){return e.argument},_annotationsPointerEventHandler:D.members._annotationsPointerEventHandler,_pullOptions:function(e){var t=(0,r.extend)({},{location:e.location},D.members._pullOptions(e));return delete t.axis,t},_clear:D.members._clear,_forceAnnotationRender:D.members._forceAnnotationRender}},A={core:{name:"annotations_core",init:function(){this._annotations={items:[],_hideToolTipForDrag:!1,tooltip:new a.Tooltip({cssClass:"".concat(this._rootClassPrefix,"-annotation-tooltip"),eventTrigger:this._eventTrigger,widgetRoot:this.element(),widget:this}),hideTooltip:function(){this.tooltip.annotation=null,this.tooltip.hide()},clearItems:function(){this.items.forEach((function(e){return e.plaque.clear()})),this.items=[]}},this._annotations.tooltip.setRendererOptions(this._getRendererOptions())},dispose:function(){this._annotationsGroup.linkRemove().linkOff(),h.default.off(p(),m),this._annotationsGroup.off(m),this._annotations.tooltip&&this._annotations.tooltip.dispose()},extenders:{_createHtmlStructure:function(){var e=this;this._annotationsGroup=this._renderer.g().attr({class:"".concat(this._rootClassPrefix,"-annotations")}).css(this._getAnnotationStyles()).linkOn(this._renderer.root,"annotations").linkAppend(),h.default.on(p(),_,(function(t){e._annotations.tooltip.isCursorOnTooltip(t.pageX,t.pageY)||e._annotations.hideTooltip()})),h.default.on(p(),v,(function(t){e._annotations._hideToolTipForDrag=!1,e._annotationsPointerEventHandler(t)})),this._annotationsGroup.on(_,this._annotationsPointerEventHandler.bind(this))},_renderExtraElements:function(){var e=this;this._annotationsGroup.clear(),this._annotations.items.forEach((function(t){return t.draw(e,e._annotationsGroup)}))},_stopCurrentHandling:function(){this._annotations.hideTooltip()}},members:{_buildAnnotations:function(){this._annotations.clearItems();var e=this._getOption("annotations",!0);null!=e&&e.length&&(this._annotations.items=k(this,e,this._getOption("commonAnnotationSettings"),this._getOption("customizeAnnotation",!0),this._pullOptions))},_setAnnotationTooltipOptions:function(){var e=(0,r.extend)({},this._getOption("tooltip"));e.contentTemplate=e.customizeTooltip=void 0,this._annotations.tooltip.update(e)},_getAnnotationCoords:function(){return{}},_pullOptions:function(){return{}},_getAnnotationStyles:function(){return{}}},customize:function(e){e.addChange({code:"ANNOTATIONITEMS",handler:function(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"annotations"}),e.addChange({code:"ANNOTATIONSSETTINGS",handler:function(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"commonAnnotationSettings"}),e.addChange({code:"ANNOTATIONS",handler:function(){this._buildAnnotations(),this._setAnnotationTooltipOptions(),this._forceAnnotationRender()},isThemeDependent:!0,isOptionChange:!0})},fontFields:["commonAnnotationSettings.font"]},chart:D,polarChart:I,vectorMap:T,pieChart:E};t.plugins=A},43637:function(e,t,n){t.BaseThemeManager=void 0;var i,o=(i=n(38377))&&i.__esModule?i:{default:i},a=n(13306),r=n(35922),s=n(95479),l=n(23696),u=n(19157),d=n(86231),c=d.getTheme,h=d.addCacheItem,f=d.removeCacheItem,p=a.extend,g=s.each;function m(e,t){var n=e;return t&&g(t.split("."),(function(e,t){return n=n[t]})),n}var _=o.default.inherit({ctor:function(e){this._themeSection=e.themeSection,this._fontFields=e.fontFields||[],h(this)},dispose:function(){var e=this;return f(e),e._callback=e._theme=e._font=null,e},setCallback:function(e){return this._callback=e,this},setTheme:function(e,t){return this._current=e,this._rtl=t,this.refresh()},refresh:function(){var e=this,t=e._current||{},n=c(t.name||t);return e._themeName=n.name,e._defaultPalette=n.defaultPalette,e._font=p({},n.font,t.font),e._themeSection&&g(e._themeSection.split("."),(function(e,t){n=p(!0,{},n[t])})),e._theme=p(!0,{},n,(0,r.isString)(t)?{}:t),e._initializeTheme(),(0,u.parseScalar)(e._rtl,e._theme.rtlEnabled)&&p(!0,e._theme,e._theme._rtl),e._callback(),e},theme:function(e){return m(this._theme,e)},themeName:function(){return this._themeName},createPalette:function(e,t){return(0,l.createPalette)(e,t,this._defaultPalette)},createDiscretePalette:function(e,t){return(0,l.getDiscretePalette)(e,t,this._defaultPalette)},createGradientPalette:function(e){return(0,l.getGradientPalette)(e,this._defaultPalette)},getAccentColor:function(e){return(0,l.getAccentColor)(e,this._defaultPalette)},_initializeTheme:function(){var e=this;g(e._fontFields||[],(function(t,n){e._initializeFont(m(e._theme,n))}))},_initializeFont:function(e){p(e,this._font,p({},e))}});t.BaseThemeManager=_},59063:function(e,t,n){t.default=void 0;var i=C(n(68374)),o=n(20576),a=n(58201),r=C(n(73349)),s=n(35922),l=n(95479),u=C(n(55814)),d=n(13306),c=n(43637),h=C(n(13046)),f=n(3603),p=n(19157),g=C(n(80726)),m=n(56453),_=n(58664),v=C(n(94551)),y=C(n(20530)),x=C(n(55994)),b=n(62754),w=n(98469);function C(e){return e&&e.__esModule?e:{default:e}}var S=Math.floor,k=g.default.log,D="rtlEnabled",I=h.default.prototype.option;function T(){return!0}function E(){return!1}function A(e){e.component._eventsStrategy.hasEvent("incidentOccurred")||k.apply(null,[e.target.id].concat(e.target.args||[]))}function O(e){return e.reduce((function(e,t){return t>0&&!e?t:e}),0)}function P(e){e.forEach((function(e){return e()}))}var M,R,B,V=(0,a.hasWindow)()?h.default.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred"},onDrawn:{name:"drawn"}},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{onIncidentOccurred:A})},_useLinks:!0,_init:function(){var e=this;e._$element.children(".dx-sized-element").remove(),e.callBase.apply(e,arguments),e._changesLocker=0,e._optionChangedLocker=0,e._asyncFirstDrawing=!0,e._changes=(0,f.changes)(),e._suspendChanges(),e._themeManager=e._createThemeManager(),e._themeManager.setCallback((function(){e._requestChange(e._themeDependentChanges)})),e._renderElementAttributes(),e._initRenderer();var t=e._useLinks&&e._renderer.root;t&&t.enableLinks().virtualLink("core").virtualLink("peripheral"),e._renderVisibilityChange(),e._attachVisibilityChangeHandlers(),e._toggleParentsScrollSubscription(this._isVisible()),e._initEventTrigger(),e._incidentOccurred=(0,w.createIncidentOccurred)(e.NAME,e._eventTrigger),e._layout=new v.default,t&&t.linkAfter("core"),e._initPlugins(),e._initCore(),t&&t.linkAfter(),e._change(e._initialChanges)},_createThemeManager:function(){return new c.BaseThemeManager(this._getThemeManagerOptions())},_getThemeManagerOptions:function(){return{themeSection:this._themeSection,fontFields:this._fontFields}},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins:function(){var e=this;(0,l.each)(e._plugins,(function(t,n){n.init.call(e)}))},_disposePlugins:function(){var e=this;(0,l.each)(e._plugins.slice().reverse(),(function(t,n){n.dispose.call(e)}))},_change:function(e){this._changes.add(e)},_suspendChanges:function(){++this._changesLocker},_resumeChanges:function(){var e=this;0==--e._changesLocker&&e._changes.count()>0&&!e._applyingChanges&&(e._renderer.lock(),e._applyingChanges=!0,e._applyChanges(),e._changes.reset(),e._applyingChanges=!1,e._changesApplied(),e._renderer.unlock(),e._optionsQueue&&e._applyQueuedOptions(),e.resolveItemsDeferred(e._legend?[e._legend]:[]),e._optionChangedLocker++,e._notify(),e._optionChangedLocker--)},resolveItemsDeferred:function(e){this._resolveDeferred(this._getTemplatesItems(e))},_collectTemplatesFromItems:function(e){return e.reduce((function(e,t){return{items:e.items.concat(t.getTemplatesDef()),groups:e.groups.concat(t.getTemplatesGroups())}}),{items:[],groups:[]})},_getTemplatesItems:function(e){var t=this._collectTemplatesFromItems(e),n=this._getExtraTemplatesItems();return{items:n.items.concat(t.items),groups:n.groups.concat(t.groups),launchRequest:[n.launchRequest],doneRequest:[n.doneRequest]}},_getExtraTemplatesItems:function(){return{items:[],groups:[],launchRequest:function(){},doneRequest:function(){}}},_resolveDeferred:function(e){var t=e.items,n=e.launchRequest,i=e.doneRequest,o=e.groups,a=this;if(a._setGroupsVisibility(o,"hidden"),a._changesApplying)return a._changesApplying=!1,void P(i);var r=!0;b.when.apply(a,t).done((function(){if(r)a._setGroupsVisibility(o,"visible");else{P(n),a._changesApplying=!0;var e=["LAYOUT","FULL_RENDER"];a._asyncFirstDrawing?(e.push("FORCE_FIRST_DRAWING"),a._asyncFirstDrawing=!1):e.push("FORCE_DRAWING"),a._requestChange(e),a._setGroupsVisibility(o,"visible")}})),r=!1},_setGroupsVisibility:function(e,t){e.forEach((function(e){return e.attr({visibility:t})}))},_applyQueuedOptions:function(){var e=this,t=e._optionsQueue;e._optionsQueue=null,e.beginUpdate(),(0,l.each)(t,(function(e,t){t()})),e.endUpdate()},_requestChange:function(e){this._suspendChanges(),this._change(e),this._resumeChanges()},_applyChanges:function(){var e,t=this,n=t._changes,i=t._totalChangesOrder,o=i.length;for(e=0;e<o;++e)n.has(i[e])&&t["_change_"+i[e]]()},_optionChangesOrder:["EVENTS","THEME","RENDERER","RESIZE_HANDLER"],_layoutChangesOrder:["ELEMENT_ATTR","CONTAINER_SIZE","LAYOUT"],_customChangesOrder:["DISABLED"],_change_EVENTS:function(){this._eventTrigger.applyChanges()},_change_THEME:function(){this._setThemeAndRtl()},_change_RENDERER:function(){this._setRendererOptions()},_change_RESIZE_HANDLER:function(){this._setupResizeHandler()},_change_ELEMENT_ATTR:function(){this._renderElementAttributes(),this._change(["CONTAINER_SIZE"])},_change_CONTAINER_SIZE:function(){this._updateSize()},_change_LAYOUT:function(){this._setContentSize()},_change_DISABLED:function(){var e=this._renderer,t=e.root;this.option("disabled")?(this._initDisabledState=t.attr("pointer-events"),t.attr({"pointer-events":"none",filter:e.getGrayScaleFilter().id})):"none"===t.attr("pointer-events")&&t.attr({"pointer-events":(0,s.isDefined)(this._initDisabledState)?this._initDisabledState:null,filter:null})},_themeDependentChanges:["RENDERER"],_initRenderer:function(){var e=this;e._canvas=e._calculateCanvas(),e._renderer=new m.Renderer({cssClass:e._rootClassPrefix+" "+e._rootClass,pathModified:e.option("pathModified"),container:e._$element[0]}),e._renderer.resize(e._canvas.width,e._canvas.height)},_disposeRenderer:function(){this._renderer.dispose()},_getAnimationOptions:o.noop,render:function(){this._requestChange(["CONTAINER_SIZE"]);var e=this._isVisible();this._toggleParentsScrollSubscription(e),!e&&this._stopCurrentHandling()},_toggleParentsScrollSubscription:function(e){var t=(0,i.default)(this._renderer.root.element).parents(),n="scroll.viz_widgets";"generic"===y.default.real().platform&&(t=t.add((0,a.getWindow)())),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(){this._stopCurrentHandling()}.bind(this),x.default.off((0,i.default)().add(this._$prevRootParents),n,this._proxiedTargetParentsScrollHandler),e&&(x.default.on(t,n,this._proxiedTargetParentsScrollHandler),this._$prevRootParents=t)},_stopCurrentHandling:o.noop,_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._toggleParentsScrollSubscription(!1),e._removeResizeHandler(),e._layout.dispose(),e._eventTrigger.dispose(),e._disposeCore(),e._disposePlugins(),e._disposeRenderer(),e._themeManager.dispose(),e._themeManager=e._renderer=e._eventTrigger=null},_initEventTrigger:function(){var e=this;e._eventTrigger=(0,w.createEventTrigger)(e._eventsMap,(function(t){return e._createActionByOption(t)}))},_calculateCanvas:function(){var e=this,t=e.option("size")||{},n=e.option("margin")||{},i=e._getDefaultSize()||{},o=function(t,n,i){if(o=t[n],(0,s.isDefined)(o)&&o>0||!(0,a.hasWindow)())return 0;var o,r=i(e._$element);return r<=1?0:r},r=o(t,"width",(function(e){return(0,_.getWidth)(e)})),l=o(t,"height",(function(e){return(0,_.getHeight)(e)})),u={width:t.width<=0?0:S(O([t.width,r,i.width])),height:t.height<=0?0:S(O([t.height,l,i.height])),left:O([n.left,i.left]),top:O([n.top,i.top]),right:O([n.right,i.right]),bottom:O([n.bottom,i.bottom])};return(u.width-u.left-u.right<=0||u.height-u.top-u.bottom<=0)&&(u={width:0,height:0}),u},_updateSize:function(){var e,t,n=this,i=n._calculateCanvas();n._renderer.fixPlacement(),t=i,((e=n._canvas).width!==t.width||e.height!==t.height||e.left!==t.left||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||n.__forceRender)&&(n._canvas=i,n._recreateSizeDependentObjects(!0),n._renderer.resize(i.width,i.height),n._change(["LAYOUT"]))},_recreateSizeDependentObjects:o.noop,_getMinSize:function(){return[0,0]},_getAlignmentRect:o.noop,_setContentSize:function(){var e=this._canvas,t=this._layout,n=e.width>0&&e.height>0?[e.left,e.top,e.width-e.right,e.height-e.bottom]:[0,0,0,0];n=t.forward(n,this._getMinSize());var i=this._applySize(n)||n;t.backward(i,this._getAlignmentRect()||i)},_getOption:function(e,t){var n=this._themeManager.theme(e),i=this.option(e);return t?void 0!==i?i:n:(0,d.extend)(!0,{},n,i)},_setupResizeHandler:function(){var e=this,t=(0,p.parseScalar)(this._getOption("redrawOnResize",!0),!0);e._resizeHandler&&e._removeResizeHandler(),e._resizeHandler=(0,w.createResizeHandler)((function(){t?e._requestChange(["CONTAINER_SIZE"]):e._renderer.fixPlacement()})),u.default.add(e._resizeHandler)},_removeResizeHandler:function(){this._resizeHandler&&(u.default.remove(this._resizeHandler),this._resizeHandler.dispose(),this._resizeHandler=null)},_onBeginUpdate:o.noop,beginUpdate:function(){var e=this;return e._initialized&&e._isUpdateAllowed()&&(e._onBeginUpdate(),e._suspendChanges()),e.callBase.apply(e,arguments),e},endUpdate:function(){return this.callBase(),this._isUpdateAllowed()&&this._resumeChanges(),this},option:function(e){var t=this;if(!(t._initialized&&t._applyingChanges&&(arguments.length>1||(0,s.isObject)(e))))return I.apply(t,arguments);t._optionsQueue=t._optionsQueue||[],t._optionsQueue.push(t._getActionForUpdating(arguments))},_getActionForUpdating:function(e){var t=this;return function(){I.apply(t,e)}},_clean:o.noop,_render:o.noop,_optionChanged:function(e){var t=this;if(!t._optionChangedLocker){var n=t.getPartialChangeOptionsName(e),i=[];n.length>0?n.forEach((function(e){return i.push(t._partialOptionChangesMap[e])})):i.push(t._optionChangesMap[e.name]),i=i.filter((function(e){return!!e})),t._eventTrigger.change(e.name)?t._change(["EVENTS"]):i.length>0?t._change(i):t.callBase.apply(t,arguments)}},_notify:o.noop,_changesApplied:o.noop,_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR",disabled:"DISABLED"},_partialOptionChangesMap:{},_partialOptionChangesPath:{},getPartialChangeOptionsName:function(e){var t=this,n=e.fullName,i=n.split(/[.]/),o=e.name,a=e.value,r=this._partialOptionChangesPath[o],l=[];return r&&(!0===r?l.push(o):(r.forEach((function(e){n.indexOf(e)>=0&&l.push(e)})),1===i.length&&("object"===(0,s.type)(a)?t._addOptionsNameForPartialUpdate(a,r,l):"array"===(0,s.type)(a)&&a.length>0&&a.every((function(e){return t._checkOptionsForPartialUpdate(e,r)}))&&a.forEach((function(e){return t._addOptionsNameForPartialUpdate(e,r,l)}))))),l.filter((function(e,t,n){return n.indexOf(e)===t}))},_checkOptionsForPartialUpdate:function(e,t){return!Object.keys(e).some((function(e){return-1===t.indexOf(e)}))},_addOptionsNameForPartialUpdate:function(e,t,n){var i=Object.keys(e);this._checkOptionsForPartialUpdate(e,t)&&i.forEach((function(e){return t.indexOf(e)>-1&&n.push(e)}))},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(D))},_getRendererOptions:function(){return{rtl:this.option(D),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var e=this._canvas||{};return{width:e.width,height:e.height}},isReady:E,_dataIsReady:T,_resetIsReady:function(){this.isReady=E},_drawn:function(){var e=this;e.isReady=E,e._dataIsReady()&&e._renderer.onEndAnimation((function(){e.isReady=T})),e._eventTrigger("drawn",{})}}):(M={_initTemplates:function(){},ctor:function(e,t){this.callBase(e,t);var n=r.default.createElement("div"),i=t&&(0,s.isNumeric)(t.width)?t.width+"px":"100%",o=t&&(0,s.isNumeric)(t.height)?t.height+"px":this._getDefaultSize().height+"px";r.default.setStyle(n,"width",i),r.default.setStyle(n,"height",o),r.default.setClass(n,"dx-sized-element"),r.default.insertElement(e,n)}},R=h.default.inherit(M),B=R.inherit,R.inherit=function(e){for(var t in e)((0,s.isFunction)(e[t])&&"_"!==t.substr(0,1)&&"option"!==t||"_dispose"===t||"_optionChanged"===t)&&(e[t]=o.noop);return B.call(this,e)},R),F=V;t.default=F,(0,f.replaceInherit)(V),e.exports=t.default,e.exports.default=t.default},98469:function(e,t,n){t.createEventTrigger=function(e,t){var n,i={};return(0,s.each)(e,(function(e,t){t.name&&o(e)})),a.change=function(t){var i=e[t];return i&&((n=n||{})[t]=i),!!i},a.applyChanges=function(){n&&((0,s.each)(n,(function(e,t){o(t.newName||e)})),n=null)},a.dispose=function(){e=t=i=null},a;function o(n){var o=e[n];i[o.name]=t(n)}function a(e,t,n){i[e](t),n&&n()}},t.createIncidentOccurred=void 0,t.createResizeHandler=function(e){var t,n=function(){clearTimeout(t),t=setTimeout(e,100)};return n.dispose=function(){return clearTimeout(t),this},n};var i,o=n(36739),a=n(68752),r=(i=n(80726))&&i.__esModule?i:{default:i},s=n(95479),l=r.default.ERROR_MESSAGES;t.createIncidentOccurred=function(e,t){return function(n,i){t("incidentOccurred",{target:{id:n,type:"E"===n[0]?"error":"warning",args:i,text:a.format.apply(null,[l[n]].concat(i||[])),widget:e,version:o.version}})}}},1539:function(e,t,n){t.plugin=void 0;var i,o,a=n(20576),r=(i=n(53305))&&i.__esModule?i:{default:i},s=r.default.postCtor,l={_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceOptions:function(){return{paginate:!1}},_updateDataSource:function(){this._refreshDataSource(),this.option("dataSource")||this._dataSourceChangedHandler()},_dataIsLoaded:function(){return!this._dataSource||this._dataSource.isLoaded()},_dataSourceItems:function(){return this._dataSource&&this._dataSource.items()}};for(o in r.default)"postCtor"!==o&&(l[o]=r.default[o]);var u={name:"data_source",init:function(){s.call(this)},dispose:a.noop,members:l};t.plugin=u},80726:function(e,t,n){t.default=void 0;var i=a(n(95640)),o=a(n(17381));function a(e){return e&&e.__esModule?e:{default:e}}var r=(0,i.default)(o.default.ERROR_MESSAGES,{E2001:"Invalid data source",E2002:"Axis type and data type are incompatible",E2003:'The "{0}" data source field contains data of unsupported type',E2004:'The "{0}" data source field is inconsistent',E2005:'The value field "{0}" is absent in the data source or all its values are negative',E2006:"A cycle is detected in provided data",E2007:'The value field "{0}" is absent in the data source',E2008:'The value field "{0}" must be a string',E2009:'The value field "{0}" must be a positive numeric value',E2101:"Unknown series type: {0}",E2102:"Ambiguity occurred between two value axes with the same name",E2103:'The "{0}" option is given an invalid value. Assign a function instead',E2104:"Invalid logarithm base",E2105:'Invalid value of a "{0}"',E2202:"Invalid {0} scale value",E2203:"The range you are trying to set is invalid",W2002:"The {0} series cannot be drawn because the {1} data field is missing",W2003:"Tick interval is too small",W2101:'The "{0}" pane does not exist; the last pane is used by default',W2102:'A value axis with the "{0}" name was created automatically',W2103:"The chart title was hidden due to the container size",W2104:"The legend was hidden due to the container size",W2105:'The title of the "{0}" axis was hidden due to the container size',W2106:'The labels of the "{0}" axis were hidden due to the container size',W2107:"The export menu was hidden due to the container size",W2108:"The browser does not support exporting images to {0} format.",W2301:"Invalid value range"});t.default=r,e.exports=t.default,e.exports.default=t.default},82454:function(e,t,n){t.plugin=t.getMarkup=t.exportWidgets=t.exportFromMarkup=t.combineMarkups=t.ExportMenu=void 0;var i=n(13306),o=n(58201),a=n(19157),r=n(19155),s=n(78292),l=p(n(28109)),u=n(35922),d=n(86231),c=n(24028),h=p(n(93786)),f=n(30869);function p(e){return e&&e.__esModule?e:{default:e}}var g=[h.default.down,h.default.move].join(" "),m=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],_=30,v="PNG",y=[v,"JPEG","GIF"],x=["PDF","SVG"],b="export-element-type",w="export-element-format",C=/data-backgroundcolor="([^"]*)"/;function S(){var e=s.image.testFormats(y);return{unsupported:e.unsupported,supported:e.supported.concat(x)}}function k(e,t,n){if(n=n||S(),e=String(e).toUpperCase(),-1!==n.supported.indexOf(e))return e;-1!==n.unsupported.indexOf(e)&&t&&t("W2108",[e])}function D(e){return"SVG"===e?s.svg.getData:"PDF"===e?s.pdf.getData:s.image.getData}function I(e,t){var n=(0,o.getWindow)().document,i=n.createElement("iframe");i.onload=function(e,t){return function(){var t=this,n=this.contentWindow,i=n.document.createElement("img");n.document.body.appendChild(i);var o=function(){t.parentElement.removeChild(t)};i.addEventListener("load",(function(){n.focus(),n.print()})),i.addEventListener("error",o),n.addEventListener("afterprint",(function(){setTimeout(o,0)})),i.src=e}}(e),i.style.position="fixed",i.style.width="0",i.style.height="0",i.style.right="0",i.style.bottom="0",n.body.appendChild(i)}function T(e,t,n){var i={},o=n.type,r=n.format,s=function(e,t,n){var i=40+n*_,o={rect:{width:118,height:_,x:-84,y:i},text:{x:(e.rtl?105:15)-85,y:i+_-8}};return"printing"===t&&(o.separator={stroke:e.button.default.borderColor,"stroke-width":1,cursor:"pointer",sharp:"v",d:"M -85 "+(i+_-1)+" L 35 "+(i+_-1)}),o}(t,o,n.itemIndex),l=(0,a.patchFontOptions)(t.font);l["pointer-events"]="none";var u=e.g().attr({class:"dx-export-menu-list-item"});i[b]=o,r&&(i[w]=r);var d=e.rect();d.attr(s.rect).css({cursor:"pointer","pointer-events":"all"}).data(i),d.on(c.start+".export",(function(){return d.attr({fill:t.button.hover.backgroundColor})})).on(c.end+".export",(function(){return d.attr({fill:null})})),d.append(u);var h=e.text(n.text).css(l).attr(s.text).append(u);return"printing"===o&&e.path(null,"line").attr(s.separator).append(u),{g:u,rect:d,resetState:function(){return d.attr({fill:null})},fixPosition:function(){var e=h.getBBox();h.move(s.text.x-e.x-(t.rtl?e.width:0))}}}var E=function(e,t){t.format=k(t.format)||v,t.fileName=t.fileName||"file",t.exportingAction=t.onExporting,t.exportedAction=t.onExported,t.fileSavingAction=t.onFileSaving,t.margin=(0,u.isDefined)(t.margin)?t.margin:10,t.backgroundColor=(0,u.isDefined)(t.backgroundColor)?t.backgroundColor:function(e){var t=C.exec(e);return null==t?void 0:t[1]}(e)||(0,d.getTheme)().backgroundColor,(0,s.export)(e,t,D(t.format))};t.exportFromMarkup=E,t.getMarkup=function(e){return A(e).markup},t.exportWidgets=function(e,t){var n=A(e,{gridLayout:(t=t||{}).gridLayout,verticalAlignment:t.verticalAlignment,horizontalAlignment:t.horizontalAlignment});t.width=n.width,t.height=n.height,E(n.markup,t)};var A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Array.isArray(e)?Array.isArray(e[0])||(e=e.map((function(e){return[e]}))):e=[[e]];var n=!t.gridLayout,i=e.reduce((function(e,t,i){var o=t.reduce((function(e,t,n){var o=t.getSize(),a=t.option("backgroundColor")||(0,d.getTheme)(t.option("theme")).backgroundColor;return a&&-1===e.backgroundColors.indexOf(a)&&e.backgroundColors.push(a),e.hOffset=e.width,e.width+=o.width,e.height=Math.max(e.height,o.height),e.itemWidth=Math.max(e.itemWidth,o.width),e.items.push({markup:t.svg(),width:o.width,height:o.height,c:n,r:i,hOffset:e.hOffset}),e}),{items:[],height:0,itemWidth:0,hOffset:0,width:0,backgroundColors:e.backgroundColors});return e.rowOffsets.push(e.totalHeight),e.rowHeights.push(o.height),e.totalHeight+=o.height,e.items=e.items.concat(o.items),e.itemWidth=Math.max(e.itemWidth,o.itemWidth),e.maxItemLen=Math.max(e.maxItemLen,o.items.length),e.totalWidth=n?Math.max(e.totalWidth,o.width):e.maxItemLen*e.itemWidth,e}),{items:[],rowOffsets:[],rowHeights:[],itemWidth:0,totalHeight:0,maxItemLen:0,totalWidth:0,backgroundColors:[]}),o='data-backgroundcolor="'.concat(1===i.backgroundColors.length?i.backgroundColors[0]:"",'" '),a=function(e){var n=t.verticalAlignment,o=i.rowHeights[e.r]-e.height;return i.rowOffsets[e.r]+("bottom"===n?o:"center"===n?o/2:0)},r=function(e){if(n)return e.hOffset;var o=t.horizontalAlignment,a=i.itemWidth,r=a-e.width;return e.c*a+("right"===o?r:"center"===o?r/2:0)},s=i.totalHeight,l=i.totalWidth;return{markup:"<svg "+o+'height="'+s+'" width="'+l+'" version="1.1" xmlns="http://www.w3.org/2000/svg">'+i.items.map((function(e){return'<g transform="translate('.concat(r(e),",").concat(a(e),')">').concat(e.markup,"</g>")})).join("")+"</svg>",width:l,height:s}};t.combineMarkups=A;var O=function(e){var t,n,i=this._renderer=e.renderer;this._incidentOccurred=e.incidentOccurred,this._exportTo=e.exportTo,this._print=e.print,this._shadow=i.shadowFilter("-50%","-50%","200%","200%",2,6,3),this._shadow.attr({opacity:.8}),this._group=i.g().attr((t={class:"dx-export-menu"},n=r.HIDDEN_FOR_EXPORT,!0,n in t?Object.defineProperty(t,n,{value:!0,enumerable:!0,configurable:!0,writable:!0}):t[n]=!0,t)).linkOn(i.root,{name:"export-menu",after:"peripheral"}),this._buttonGroup=i.g().attr({class:"dx-export-menu-button"}).append(this._group),this._listGroup=i.g().attr({class:"dx-export-menu-list"}).append(this._group),this._overlay=i.rect(-85,39,120,0),this._overlay.attr({"stroke-width":1,cursor:"pointer",rx:4,ry:4,filter:this._shadow.id}),this._overlay.data({"export-element-type":"list"}),this.validFormats=S(),this._subscribeEvents()};function P(e,t,n,i){(i||t.format)&&(i=k(i||t.format,e._incidentOccurred));var o=e.getSize(),a=o.width,r=o.height;return{format:i||v,fileName:n||t.fileName||"file",proxyUrl:t.proxyUrl,backgroundColor:t.backgroundColor,width:a,height:r,margin:t.margin,svgToCanvas:t.svgToCanvas,forceProxy:t.forceProxy,exportingAction:e._createActionByOption("onExporting"),exportedAction:e._createActionByOption("onExported"),fileSavingAction:e._createActionByOption("onFileSaving")}}t.ExportMenu=O,(0,i.extend)(O.prototype,{getLayoutOptions:function(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var e=this._buttonGroup.getBBox();return e.cutSide="vertical",e.cutLayoutSide="top",e.height+=10,e.position={vertical:"top",horizontal:"right"},e.verticalAlignment="top",e.horizontalAlignment="right",e},shift:function(e,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw:function(e,t,n){this._group.move(e-35-2-3+n.left,Math.floor(t/2-17.5));var i=this.getLayoutOptions();return(i.width>e||i.height>t)&&this.freeSpace(),this},show:function(){this._group.linkAppend()},hide:function(){this._group.linkRemove()},setOptions:function(e){var t=this;this._options=e,e.formats?e.formats=e.formats.reduce((function(e,n){return(n=k(n,t._incidentOccurred,t.validFormats))&&e.push(n),e}),[]):e.formats=this.validFormats.supported.slice(),e.printingEnabled=void 0===e.printingEnabled||e.printingEnabled,e.enabled&&(e.formats.length||e.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose:function(){this._unsubscribeEvents(),this._group.linkRemove().linkOff(),this._group.dispose(),this._shadow.dispose()},layoutOptions:function(){return this._options.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure:function(){this._fillSpace();var e=this._options.button.margin;return[35+e.left+e.right,35+e.top+e.bottom]},move:function(e){var t=this._options.button.margin;this._group.attr({translateX:Math.round(e[0])+t.left,translateY:Math.round(e[1])+t.top})},_fillSpace:function(){this._hiddenDueToLayout=!1,this.show()},freeSpace:function(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList:function(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach((function(e){return e.resetState()}))},_showList:function(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach((function(e){return e.fixPosition()}))},_setButtonState:function(e){var t=this._options.button[e];this._button.attr({stroke:t.borderColor,fill:t.backgroundColor}),this._icon.attr({fill:t.color})},_subscribeEvents:function(){var e=this;this._renderer.root.on(h.default.up+".export",(function(t){var n=t.target[b];n?"button"===n?e._listShown?(e._setButtonState("default"),e._hideList()):(e._setButtonState("focus"),e._showList()):"printing"===n?(e._print(),e._hideList()):"exporting"===n&&(e._exportTo(t.target[w]),e._hideList()):e._button&&e._hideList()})),this._listGroup.on(g,(function(e){return e.stopPropagation()})),this._buttonGroup.on(h.default.enter,(function(){return e._setButtonState("hover")})),this._buttonGroup.on(h.default.leave,(function(){return e._setButtonState(e._listShown?"focus":"default")})),this._buttonGroup.on(h.default.down+".export",(function(){return e._setButtonState("active")}))},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var e=this._renderer,t=this._options,n={"export-element-type":"button"};this._button||(this._button=e.rect(0,0,35,35).append(this._buttonGroup),this._button.attr({rx:4,ry:4,fill:t.button.default.backgroundColor,stroke:t.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),this._button.data(n),this._icon=e.path(m).append(this._buttonGroup),this._icon.attr({fill:t.button.default.color,cursor:"pointer"}),this._icon.data(n),this._buttonGroup.setTitle(l.default.format("vizExport-titleMenuText")))},_updateList:function(){var e=this._options,t=e.button.default,n=this._listGroup,i=function(e,t){var n=[];return t.printingEnabled&&n.push(T(e,t,{type:"printing",text:l.default.format("vizExport-printingButtonText"),itemIndex:n.length})),t.formats.reduce((function(n,i){return n.push(T(e,t,{type:"exporting",text:l.default.getFormatter("vizExport-exportButtonText")(i),format:i,itemIndex:n.length})),n}),n)}(this._renderer,e);this._shadow.attr({color:e.shadowColor}),this._overlay.attr({height:i.length*_+2,fill:t.backgroundColor,stroke:t.borderColor}),n.clear(),this._overlay.append(n),i.forEach((function(e){return e.g.append(n)})),this._menuItems=i}});var M={name:"export",init:function(){var e=this;this._exportMenu=new O({renderer:this._renderer,incidentOccurred:this._incidentOccurred,print:function(){return e.print()},exportTo:function(t){return e.exportTo(void 0,t)}}),this._layout.add(this._exportMenu)},dispose:function(){this._exportMenu.dispose()},members:{_getExportMenuOptions:function(){return(0,i.extend)({},this._getOption("export"),{rtl:this._getOption("rtlEnabled",!0)})},_disablePointerEvents:function(){var e=this._renderer.root.attr("pointer-events");return this._renderer.root.attr({"pointer-events":"none"}),e},exportTo:function(e,t){var n=this,i=this._exportMenu,o=P(this,this._getOption("export")||{},e,t);i&&i.hide();var a=this._disablePointerEvents(),r=(0,s.export)(this._renderer.root.element,o,D(o.format)).fail(f.logger.error).always((function(){n._renderer.root.attr({"pointer-events":a})}));return i&&i.show(),r},print:function(){var e=this,t=this._exportMenu,n=P(this,this._getOption("export")||{});n.exportingAction=null,n.exportedAction=null,n.margin=0,n.format="PNG",n.forceProxy=!0,n.fileSavingAction=function(e){I("data:image/png;base64,".concat(e.data),n.__test),e.cancel=!0};var i=this._disablePointerEvents();t&&t.hide();var o=(0,s.export)(this._renderer.root.element,n,D(n.format)).fail(f.logger.error).always((function(){e._renderer.root.attr({"pointer-events":i})}));return t&&t.show(),o}},customize:function(e){var t=e.prototype;e.addChange({code:"EXPORT",handler:function(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),t._optionChangesMap.onExporting="EXPORT",t._optionChangesMap.onExported="EXPORT",t._optionChangesMap.onFileSaving="EXPORT"},fontFields:["export.font"]};t.plugin=M},3603:function(e,t,n){t.changes=function(){return new s},t.expand=f,t.replaceInherit=void 0;var i=n(13306),o=n(58201),a=n(20576),r=!(0,o.hasWindow)();function s(){this.reset()}function l(e,t){return e!==t?(0,i.extend)({},e,t):(0,i.extend)({},e)}function u(e,t){return e!==t?e.concat(t):e.slice()}function d(e){e._totalChangesOrder=e._optionChangesOrder.concat(e._layoutChangesOrder,e._customChangesOrder)}function c(e){var t=this.prototype,n=e.code;t["_change_"+n]=e.handler,e.isThemeDependent&&t._themeDependentChanges.push(n),e.option&&(t._optionChangesMap[e.option]=n),(e.isOptionChange?t._optionChangesOrder:t._customChangesOrder).push(n),d(t)}function h(){var e=function e(){var t,n,i=e._chain.length;for(t=0;t<i;++t)n=e._chain[t].apply(this,arguments);return n};return e._chain=[],e.add=function(t){e._chain.push(t)},e.copy=function(t){e._chain=t._chain.slice()},e}function f(e,t,n){var i=e[t];i?i.add?(!1===Object.prototype.hasOwnProperty.call(e,t)&&(i=h()).copy(e[t]),i.add(n)):((i=h()).add(e[t]),i.add(n)):i=n,e[t]=i}function p(e){var t=this.prototype;t._plugins.push(e),e.fontFields&&t._fontFields.push.apply(t._fontFields,e.fontFields),e.members&&(0,i.extend)(this.prototype,e.members),e.customize&&e.customize(this),e.extenders&&Object.keys(e.extenders).forEach((function(n){var i=e.extenders[n];f(t,n,i)}),this)}s.prototype={constructor:s,add:function(e){var t,n=e.length,i=this._flags;for(t=0;t<n;++t)i[e[t]]=1},has:function(e){return this._flags[e]>0},count:function(){return Object.keys(this._flags).length},reset:function(){this._flags={}}};var g=r?function(e){var t=e.inherit;e.inherit=function(){var e=t.apply(this,arguments),n=e.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach((function(e){n[e]={}})),e.addPlugin=a.noop,e},e.addChange=a.noop,e.addPlugin=a.noop}:function(e){var t=e.inherit;e.inherit=function(){var e=this.prototype,n=e._plugins,i=e._fontFields,o=e._eventsMap,a=e._initialChanges,r=e._themeDependentChanges,s=e._optionChangesMap,c=e._partialOptionChangesMap,h=e._partialOptionChangesPath,f=e._optionChangesOrder,g=e._layoutChangesOrder,m=e._customChangesOrder,_=t.apply(this,arguments);return(e=_.prototype)._plugins=u(n,e._plugins),e._fontFields=u(i,e._fontFields),e._eventsMap=l(o,e._eventsMap),e._initialChanges=u(a,e._initialChanges),e._themeDependentChanges=u(r,e._themeDependentChanges),e._optionChangesMap=l(s,e._optionChangesMap),e._partialOptionChangesMap=l(c,e._partialOptionChangesMap),e._partialOptionChangesPath=l(h,e._partialOptionChangesPath),e._optionChangesOrder=u(f,e._optionChangesOrder),e._layoutChangesOrder=u(g,e._layoutChangesOrder),e._customChangesOrder=u(m,e._customChangesOrder),d(e),_.addPlugin=p,_},e.prototype._plugins=[],e.prototype._fontFields=[],e.addChange=c,e.addPlugin=p};t.replaceInherit=g},94551:function(e,t,n){t.default=void 0;var i=n(19157),o=Math.min,a=Math.max,r=Math.round,s={left:0,center:1,right:2},l={top:0,center:1,bottom:2},u={horizontal:0,vertical:1},d={};function c(e,t,n){var o=(0,i.normalizeEnum)(e);return o in t?t[o]:n}function h(e){var t,n=c(e.side,u,1),i=[c(e.horizontalAlignment,s,1),c(e.verticalAlignment,l,0)];return{side:n,primary:(t=i[n],t<2?0:2),secondary:i[1-n],weak:e.weak,priority:e.priority||0,header:e.header,position:e.position}}function f(e,t){return(e>0?-1:1)*t}function p(e,t,n){var i=e.side,o=e.element.measure([t[2]-t[0],t[3]-t[1]]),a="indside"===e.position?0:n[i],r=o[i]<t[2+i]-t[i]-a;return r&&("inside"!==e.position&&(t[e.primary+i]+=f(e.primary,o[i])),e.size=o),r}function g(e,t,n){var i,o,a,s,l=e.side,u=1-l,c=[],h=(i=e.secondary,o=n[u],a=n[2+u],s=e.size[u],d[i](o,a,s));return c[l]=r(c[2+l]=t[e.primary+l]+("inside"===e.position?f(e.primary,e.size[l]):0)),c[e.primary+l]=r(t[e.primary+l]-f(e.primary,e.size[l])),"inside"!==e.position&&(t[e.primary+l]=c[e.primary+l]),c[u]=r(h[0]),c[2+u]=r(h[1]),c}function m(e,t,n,i,o,a){var r=g(e,t,n),s=g(e,i,i);o[e.side]>0?(o[e.side]-=e.size[e.side],a[e.primary+e.side]=r[e.primary+e.side],e.element.freeSpace()):e.element.move(r,s)}function _(){this._targets=[]}function v(e,t){var n=t.slice(),i=g(e,n,n);return i[e.side]=t[e.side],i[2+e.side]=t[2+e.side],i}function y(e,t){var n=e.side,i=e.primary,o=e.secondary;return{side:n,primary:i,secondary:o,priority:0,element:{measure:function(o){var a=o.slice(),r=t.element.measure(o.slice());o[i]-=r[i];var s=e.element.measure(o.slice());return a[n]=r[n]=s[n]=Math.max(s[n],r[n]),t.size=r,e.size=s,a},move:function(n,i){if(i[2]-i[0]<e.size[0]+t.size[0]-2)this.freeSpace();else{var o=v(t,i);i[2+t.primary]=o[t.primary];var a=v(e,i);i[2+t.primary]<n[2+t.primary]&&e.size[e.primary]>n[2+e.primary]-n[e.primary]&&(n[2+t.primary]=i[2+t.primary]);var r=v(e,n);r[2+t.primary]>i[2+t.primary]&&(n[2+t.primary]=i[2+t.primary],r=v(e,n)),t.element.move(o),e.element.move(r,a)}},freeSpace:function(){e.element.freeSpace(),t.element.freeSpace()}}}}d[0]=function(e,t,n){return[e,o(t,e+n)]},d[1]=function(e,t,n){return[a(e,(e+t-n)/2),o(t,(e+t+n)/2)]},d[2]=function(e,t,n){return[a(e,t-n),t]},_.prototype={constructor:_,dispose:function(){this._targets=null},add:function(e){this._targets.push(e)},forward:function(e,t){var n,i=e.slice(),o=function(e){var t,n,i=e.length,o=[];for(t=0;t<i;++t)(n=e[t].layoutOptions())&&((n=h(n)).element=e[t],o.push(n));return o.sort((function(e,t){return t.side-e.side||e.priority-t.priority})),function(e){var t,n=e.filter((function(e){return!0===e.weak}))[0];return n&&(t=e.filter((function(e){return n.primary===e.primary&&e.side===n.side&&e!==n}))[0]),n&&t?[y(t,n)].concat(e.filter((function(e){return!(e===t||e===n)}))):e}(o)}(this._targets),a=o.length,r=[];for(n=0;n<a;++n)p(o[n],i,t)?r.push(o[n]):o[n].element.freeSpace();return this._cache=r.reverse(),i},backward:function(e,t){var n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],a=e.slice(),r=e.slice(),s=this._cache,l=0,u=s.length;for(i=0;i<u;++i)(n=s[i]).side!==l&&(a=e.slice()),m(n,a,t,r,o,e),l=n.side;return o}};var x=_;t.default=x,e.exports=t.default,e.exports.default=t.default},73711:function(e,t,n){t.LayoutElement=l,t.WrapperLayoutElement=u;var i=n(20576),o=n(48013),a=Math.round,r={horizontal:0,vertical:0},s={center:.5,right:1,bottom:1,left:0,top:0};function l(e){this._options=e}function u(e,t){this._renderElement=e,this._cacheBBox=t}l.prototype={constructor:l,position:function(e){var t=e.of.getLayoutOptions(),n=this.getLayoutOptions(),i=e.at,o=e.my,l=e.offset||r,u=-s[o.horizontal]*n.width+t.x+s[i.horizontal]*t.width+parseInt(l.horizontal),d=-s[o.vertical]*n.height+t.y+s[i.vertical]*t.height+parseInt(l.vertical);this.shift(a(u),a(d))},getLayoutOptions:i.noop};var d=u.prototype=(0,o.clone)(l.prototype);d.constructor=u,d.getLayoutOptions=function(){return this._cacheBBox||this._renderElement.getBBox()},d.shift=function(e,t){var n=this.getLayoutOptions();this._renderElement.move(a(e-n.x),a(t-n.y))}},64758:function(e,t,n){t.plugin=t.LoadingIndicator=void 0;var i=n(19157),o="loadingIndicatorReady",a=function(e){var t=this,n=e.renderer;t._group=n.g().attr({class:"dx-loading-indicator"}).linkOn(n.root,{name:"loading-indicator",after:"peripheral"}),t._rect=n.rect().attr({opacity:0}).append(t._group),t._text=n.text().attr({align:"center"}).append(t._group),t._createStates(e.eventTrigger,t._group,n.root,e.notify)};t.LoadingIndicator=a,a.prototype={constructor:a,_createStates:function(e,t,n,i){this._states=[{opacity:0,start:function(){i(!1)},complete:function(){t.linkRemove(),n.css({"pointer-events":""}),e(o)}},{opacity:.85,start:function(){t.linkAppend(),n.css({"pointer-events":"none"}),i(!0)},complete:function(){e(o)}}],this._state=0},setSize:function(e){var t=e.width,n=e.height;this._rect.attr({width:t,height:n}),this._text.attr({x:t/2,y:n/2})},setOptions:function(e){this._rect.attr({fill:e.backgroundColor}),this._text.css((0,i.patchFontOptions)(e.font)).attr({text:e.text,class:e.cssClass}),this[e.show?"show":"hide"]()},dispose:function(){var e=this;e._group.linkRemove().linkOff(),e._group=e._rect=e._text=e._states=null},_transit:function(e){var t,n=this;n._state!==e&&(n._state=e,n._isHiding=!1,t=n._states[e],n._rect.stopAnimation().animate({opacity:t.opacity},{complete:t.complete,easing:"linear",duration:400,unstoppable:!0}),n._noHiding=!0,t.start(),n._noHiding=!1)},show:function(){this._transit(1)},hide:function(){this._transit(0)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}};var r={name:"loading_indicator",init:function(){var e=this;e._loadingIndicator=new a({eventTrigger:e._eventTrigger,renderer:e._renderer,notify:function(t){e._skipLoadingIndicatorOptions=!0,e.option("loadingIndicator",{show:t}),e._skipLoadingIndicatorOptions=!1,t&&e._stopCurrentHandling()}}),e._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._optionChangedLocker||this._scheduleLoadingIndicatorHiding()}},extenders:{_dataSourceLoadingChangedHandler:function(e){e&&(this._options.silent("loadingIndicator")||{}).enabled&&this._loadingIndicator.show()},_setContentSize:function(){this._loadingIndicator.setSize(this._canvas)},endUpdate:function(){this._initialized&&this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},customize:function(e){var t=e.prototype;if(t._dataSourceChangedHandler){var n=t._dataSourceChangedHandler;t._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),n.apply(this,arguments)}}e.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),t._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var i=t._drawn;t._drawn=function(){i.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},fontFields:["loadingIndicator.font"]};t.plugin=r},64509:function(e,t,n){t.Plaque=void 0;var i=n(13306),o=n(35922),a=["x","y","canvas","offsetX","offsetY","offset"];function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var s=Math,l=s.round,u=s.max,d=s.min,c=s.sin,h=s.cos,f=s.asin,p=s.PI,g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join("")};function m(e,t,n){return"a ".concat(e," ").concat(e," 0 0 1 ").concat(t*e," ").concat(n*e)}function _(e,t,n){return"A ".concat(e," ").concat(e," 0 0 1 ").concat(t," ").concat(n)}function v(e,t,n,i,o){return(e-i)*l(h(n))+(t-o)*l(c(n))+i}function y(e,t,n,i,o){return-(e-i)*l(c(n))+(t-o)*l(h(n))+o}function x(e,t,n,i,o){var a=e.width/2,r=e.height/2,s=Math.ceil(t+a),l=Math.floor(t-a),u=Math.floor(n-r),d=Math.ceil(n+r);return i<l&&o<u||i>=l&&i<=s&&o<u?270:i>s&&o>d||i>=l&&i<=s&&o>d?90:i<l&&o>d||i<l&&o>=u&&o<=d?180:0}function b(e,t,n,i,o,a,r){var s,l=e.width,v=e.height,y=a.arrowWidth,x=a.cornerRadius,b=void 0===x?0:x,w=y/2,C=l/2,S=v/2,k=Math.ceil(t+C),D=Math.floor(t-C),I=Math.floor(n-S),T=Math.ceil(n+S),E=[D,I],A=[k,I],O=[k,T],P=[D,T],M=i<=D?D:k<=i?k:i,R=o<=I?I:T<=o?T:o,B=d(R+w,T),V=u(R-w,I),F=u(M-w,D);if(b=Math.min(l/2,v/2,b),E[1]+=b,A[0]-=b,O[1]-=b,P[0]+=b,!r||D<=i&&i<=k&&I<=o&&o<=T)s=g(E,m(b,1,-1),"L",A,m(b,1,1),"L",O,m(b,-1,1),"L",P,m(b,-1,-1));else if(i>k&&o<I){var L=y/b||0,H=p/4+L/2,N=p/4-L/2,z=A[0]+h(N)*b,W=A[1]+(1-c(N))*b,G=g("L",A,m(b,h(H),1-c(H)),"L",[i,o,z,W],_(b,A[0]+b,A[1]+b));Math.abs(H)>p/2&&(G=g("L",[F,I,i,o,k,B])),s=g(E,m(b,1,-1),G,"L",O,m(b,-1,1),"L",P,m(b,-1,-1))}else if(i>k&&o>=I&&o<=T){var j;if(V>=A[1]+b&&B<=O[1])j=g(m(b,1,1),"L",[k,V,i,o,k,B],"L",O,m(b,-1,1));else if(V<A[1]+b&&B>=A[1]+b&&B<=O[1]){var q=(A[1]+b-V)/b,$=A[0]+h(q)*b,K=A[1]+(1-c(q))*b;j=g(m(b,h(q),1-c(q)),"L",[$,K,i,o,k,B],"L",O,m(b,-1,1))}else if(V<A[1]+b&&B<A[1]+b){var U=(A[1]+b-V)/b,Y=A[0]+h(U)*b,Z=A[1]+(1-c(U))*b,X=Math.sin((A[1]+b-B)/b),Q=A[0]+b*h(X),J=A[1]+b*(1-c(X));j=g(m(b,h(U),1-c(U)),"L",[Y,Z,i,o,Q,J],_(b,A[0]+b,A[1]+b),"L",O,m(b,-1,1))}else if(V<=A[1]+b&&B>=O[1]){var ee=f((A[1]+b-V)/b),te=A[0]+b*h(ee),ne=A[1]+b*(1-c(ee)),ie=f((B-O[1])/b),oe=O[0]+b*(h(ie)-1),ae=O[1]+b*c(ie);j=g(m(b,h(ee),1-c(ee)),"L",[te,ne,i,o,oe,ae],_(b,O[0]-b,O[1]+b))}else if(V>A[1]+b&&V<=O[1]&&B>O[1]){var re=f((B-O[1])/b),se=O[0]+b*(h(re)-1),le=O[1]+b*c(re);j=g(m(b,1,1),"L",[k,V,i,o,se,le],_(b,O[0]-b,O[1]+b))}else if(V>A[1]+b&&B>O[1]){var ue=f((B-O[1])/b),de=O[0]+b*(h(ue)-1),ce=O[1]+b*c(ue),he=f((V-O[1])/b),fe=O[0]+b*(h(he)-1),pe=O[1]+b*c(he);j=g(m(b,1,1),"L",O,m(b,h(he)-1,c(he)),"L",[fe,pe,i,o,de,ce],_(b,O[0]-b,O[1]+b))}s=g(E,m(b,1,-1),"L",A,j,"L",P,m(b,-1,-1))}return g("M",s,"Z")}var w=function(){function e(e,t,n,i){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e,t){return t.getBBox()},r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(e,t,n,i){return t.move(n,i)};this.widget=t,this.options=e,this.root=n,this.contentTemplate=i,this.bonded=o,this.measureContent=a,this.moveContentGroup=r}var t=e.prototype;return t.draw=function(e){var t=this,n=e.x,s=e.y,c=e.canvas,h=void 0===c?{}:c,f=e.offsetX,p=e.offsetY,g=e.offset,m=void 0===g?0:g,_=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),v=this.options,y=v.x,x=v.y,b=h.left,w=h.width-h.right,C=h.width-h.right-h.left,S=h.top,k=h.height-h.bottom,D=h.height-h.bottom-h.top;if(!((0,o.isDefined)(n)&&(0,o.isDefined)(s)||(0,o.isDefined)(y)&&(0,o.isDefined)(x)))return!1;if((0,o.isDefined)(n)&&(n<b||w<n||s<S||k<s))return!1;this._root||this._draw();var I=(0,i.extend)({x:"-50%",y:"-50%",width:"200%",height:"200%"},v.shadow),T=v.width>0?v.width:null,E=v.height>0?v.height:null,A=function(){var e,i=t._contentBBox=t.measureContent(t.widget,t._contentGroup),a=t._size={width:u(T,i.width)+2*v.paddingLeftRight,height:u(E,i.height)+2*v.paddingTopBottom,offset:m},r=I.offsetX,c=I.offsetY,h=2*I.blur+1,g=u(h-r,0),_=u(h+r,0),A=u(h-c,0),O=u(h+c,0);if(t.margins={lm:g,rm:_,tm:A,bm:O},(0,o.isDefined)(y)?(y+=f||0,(0,o.isDefined)(n)||(n=y)):y=(0,o.isDefined)(f)?n+f:C<a.width?l(b+C/2):d(u(n,Math.ceil(b+a.width/2+g)),Math.floor(w-a.width/2-_)),(0,o.isDefined)(x))x+=p||0,(0,o.isDefined)(s)||(s=x+a.height/2);else if((0,o.isDefined)(p))x=s+p;else{var P=s-v.arrowLength-a.height/2-m,M=s+v.arrowLength+a.height/2+m;D<a.height+v.arrowLength?x=l(S+a.height/2):P-a.height/2-A<S?M+a.height/2+O<k?(x=M,s+=m):x=l(S+a.height/2):(x=P,s-=m)}t.anchorX=n,t.anchorY=s,t.move(y,x),null===(e=t._root)||void 0===e||e.append(t.root)};return this.contentTemplate.render?(this.contentTemplate.render({model:v,container:this._contentGroup.element,onRendered:A}),!0):this.contentTemplate(r({group:this._contentGroup,onRender:A},_))},t._draw=function(){var e=this.widget._renderer,t=this.options,n=(0,i.extend)({x:"-50%",y:"-50%",width:"200%",height:"200%"},t.shadow),o=this._shadow=e.shadowFilter().attr(n),a={opacity:t.opacity,"stroke-width":0,fill:t.color},r=t.border||{};r.visible&&(0,i.extend)(a,{"stroke-width":r.width,stroke:r.color,"stroke-opacity":r.opacity,dashStyle:r.dashStyle});var s=this._root=e.g().append(this.root);t.type&&s.attr({class:"dxc-".concat(t.type,"-annotation")});var l=e.g().attr({filter:o.id}).append(s);this._cloud=e.path([],"area").attr(a).sharp().append(l),this._contentGroup=e.g().append(s)},t.getBBox=function(){var e=this._size||{},t=this.margins||{},n=x(e,this.x,this.y,this.anchorX,this.anchorY);return{x:Math.floor(this.x-e.width/2-t.lm),y:Math.floor(this.y-e.height/2-t.tm-(270===n?this.options.arrowLength:0)),width:e.width+t.lm+t.rm,height:e.height+t.tm+t.bm+(90===n||270===n?this.options.arrowLength:0)}},t.clear=function(){return this._root&&(this._root.remove(),this._shadow.remove(),this._root=null),this},t.customizeCloud=function(e){this._cloud&&this._cloud.attr(e)},t.moveRoot=function(e,t){this._root&&this._root.move(e,t)},t.move=function(e,t){e=l(e),t=l(t),this.x=e,this.y=t;var n,i,o=x(this._size,e,t,this.anchorX,this.anchorY),a=o*p/180;this._cloud.attr({d:b((n=this._size,i=o,i%90==0&&i%180!=0?{width:n.height,height:n.width}:n),e,t,v(this.anchorX,this.anchorY,a,e,t),y(this.anchorX,this.anchorY,a,e,t),this.options,this.bonded)}).rotate(o,e,t),this.moveContentGroup(this.widget,this._contentGroup,e-this._contentBBox.x-this._contentBBox.width/2,t-this._contentBBox.y-this._contentBBox.height/2)},t.hitTest=function(e,t){var n=this._size||{},i=n.width,o=n.height;return Math.abs(e-this.x)<=i/2&&Math.abs(t-this.y)<=o/2},e}();t.Plaque=w},91577:function(e,t,n){t.AnimationController=c,t.easingFunctions=t.animationSvgStep=void 0;var i=n(90057),o=function(){},a={easeOutCubic:function(e,t,n){return 1===e?n:(1-Math.pow(1-e,3))*(n-t)+ +t},linear:function(e,t,n){return 1===e?n:e*(n-t)+ +t}};t.easingFunctions=a;var r={segments:function(e,t,n,i,o){var a,r,s,l,u=t.from,d=t.to,c=[];for(s=0;s<u.length;s++){if(r=[(a=u[s])[0]],a.length>1)for(l=1;l<a.length;l++)r.push(i(n,a[l],d[s][l]));c.push(r)}o.segments=t.end&&1===n?t.end:c,e.attr({segments:c})},arc:function(e,t,n,i){var o=t.from,a=t.to,r={};for(var s in o)r[s]=i(n,o[s],a[s]);e.attr(r)},transform:function(e,t,n,i,o){var a=t.from,r=t.to,s={};for(var l in a)s[l]=o[l]=i(n,a[l],r[l]);e.attr(s)},base:function(e,t,n,i,o,a){var r={};r[a]=o[a]=i(n,t.from,t.to),e.attr(r)},_:o,complete:function(e,t){e.attr(t)}};function s(e){var t,n=this,i=n._animateStep;for(t in n._progress=n._calcProgress(e),n.params)(i[t]||i.base)(n.element,n.params[t],n._progress,n._easing,n._currentParams,t);return n.options.step&&n.options.step(n._easing(n._progress,0,1),n._progress),1!==n._progress||n.stop()}function l(e){return e-this._startTime>=this.delay&&(this.tick=s),!0}function u(e){return this._startTime=e,this.tick=this.delay?l:s,!0}function d(e,t,n){var i=this;i._progress=0,i.element=e,i.params=t,i.options=n,i.duration=n.partitionDuration?n.duration*n.partitionDuration:n.duration,i.delay=n.delay&&n.duration*n.delay||0,i._animateStep=n.animateStep||r,i._easing=a[n.easing]||a.easeOutCubic,i._currentParams={},i.tick=u}function c(e){var t=this;t._animationCount=0,t._timerId=null,t._animations={},t.element=e}t.animationSvgStep=r,d.prototype={_calcProgress:function(e){return Math.min(1,(e-this.delay-this._startTime)/this.duration)},stop:function(e){var t=this,n=t.options,i=t._animateStep;t.stop=t.tick=o,i.complete&&i.complete(t.element,t._currentParams),n.complete&&!e&&n.complete()}},c.prototype={_loop:function(){var e,t=this,n=t._animations,o=0,a=(new Date).getTime(),r=t._endAnimation;for(e in n)n[e].tick(a)||delete n[e],o++;if(0===o)return t.stop(),void(t._endAnimationTimer=r&&setTimeout((function(){0===t._animationCount&&(r(),t._endAnimation=null)})));t._timerId=i.requestAnimationFrame.call(null,(function(){t._loop()}),t.element)},addAnimation:function(e){var t=this;t._animations[t._animationCount++]=e,clearTimeout(t._endAnimationTimer),t._timerId||(clearTimeout(t._startDelay),t._startDelay=setTimeout((function(){t._timerId=1,t._loop()}),0))},animateElement:function(e,t,n){e&&t&&n&&(e.animation&&e.animation.stop(),this.addAnimation(e.animation=new d(e,t,n)))},onEndAnimation:function(e){this._animationCount?this._endAnimation=e:e()},dispose:function(){this.stop(),this.element=null},stop:function(){var e=this;e._animations={},e._animationCount=0,(0,i.cancelAnimationFrame)(e._timerId),clearTimeout(e._startDelay),clearTimeout(e._endAnimationTimer),e._timerId=null},lock:function(){var e,t,n,i=this._animations;for(e in i)t=i[e].options.unstoppable,n=n||t,t||(i[e].stop(!0),delete i[e]);!n&&this.stop()}}},56453:function(e,t,n){t.RectSvgElement=t.PathSvgElement=t.ArcSvgElement=void 0,t.Renderer=Ee,t.TextSvgElement=t.SvgElement=void 0,t.getFuncIri=L,t.processHatchingAttrs=W,t.refreshPaths=void 0;var i=f(n(68374)),o=f(n(73349)),a=n(58201),r=f(n(39618)),s=f(n(55994)),l=f(n(47810)),u=n(19155),d=n(91577),c=n(19157),h=n(35922);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var m,_=(0,a.getWindow)(),v=Math.max,y=Math.min,x=Math.floor,b=Math.round,w=Math.sin,C=Math.cos,S=Math.abs,k=Math.PI,D=k/180,I={"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0},T="stroke",E="stroke-width",A="none",O="...",P=Object.create?function(e){return Object.create(e)}:function(e){var t=function(){};return t.prototype=e,new t},M={scaleX:1,scaleY:1,"pointer-events":null},R=(0,r.default)((function(){var e=o.default.createElement("div");return e.style.left="-9999px",e.style.position="absolute",{backupContainer:e,backupCounter:0}})),B=(m=1,function(){return"DevExpress_"+m++});function V(e){return e&&"string"!=typeof e}function F(e){return o.default.createElementNS("http://www.w3.org/2000/svg",e)}function L(e,t){return null!==e?"url("+(t?_.location.href.split("#")[0]:"")+"#"+e+")":e}function H(e,t){var n;for(n in t)e[n]=t[n];return e}function N(e,t){return e=e.toString().split("e"),+((e=(e=b(+(e[0]+"e"+(e[1]?+e[1]+t:t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]-t:-t))}var z={full:A,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"};function W(e,t){return t.hatching&&"none"!==(0,c.normalizeEnum)(t.hatching.direction)?((t=H({},t)).fill=e._hatching=e.renderer.lockHatching(t.fill,t.hatching,e._hatching),delete t.hatching):e._hatching&&(e.renderer.releaseHatching(e._hatching),e._hatching=null),t}var G=function(e,t,n,i,o,a,r,s,l,u){return["M",(e+i*o).toFixed(5),(t-i*a).toFixed(5),"A",i.toFixed(5),i.toFixed(5),0,u,0,(e+i*r).toFixed(5),(t-i*s).toFixed(5),l?"M":"L",(e+n*r).toFixed(5),(t-n*s).toFixed(5),"A",n.toFixed(5),n.toFixed(5),0,u,1,(e+n*o).toFixed(5),(t-n*a).toFixed(5),"Z"].join(" ")};function j(e,t){var n=[["M",0,0]];switch(t){case"line":n=q(e);break;case"area":n=q(e,!0);break;case"bezier":n=$(e);break;case"bezierarea":n=$(e,!0)}return n}function q(e,t){return K(e,U,t)}function $(e,t){return K(e,Y,t)}function K(e,t,n){var i,o,a,r=[];if(null!==(i=e[0])&&void 0!==i&&i.length)for(o=0,a=e.length;o<a;++o)t(e[o],n,r);else t(e,n,r);return r}function U(e,t,n){var i=0,o=n.length,a=o,r=(e||[]).length;if(r){if(void 0!==e[0].x)for(;i<r;)n[a++]=["L",e[i].x,e[i++].y];else for(;i<r;)n[a++]=["L",e[i++],e[i++]];n[o][0]="M"}else n[a]=["M",0,0];return t&&n.push(["Z"]),n}function Y(e,t,n){var i,o=n.length,a=(e||[]).length;if(a)if(void 0!==e[0].x)for(n[o++]=["M",e[0].x,e[0].y],i=1;i<a;)n[o++]=["C",e[i].x,e[i++].y,e[i].x,e[i++].y,e[i].x,e[i++].y];else for(n[o++]=["M",e[0],e[1]],i=2;i<a;)n[o++]=["C",e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]];else n[o]=["M",0,0];return t&&n.push(["Z"]),n}function Z(e,t){var n=e[e.length-2],i=e[e.length-1];switch(t){case"line":case"area":e[0]="L";break;case"bezier":case"bezierarea":e[0]="C",e[1]=e[3]=e[5]=n,e[2]=e[4]=e[6]=i}}function X(e,t,n){var i=e[e.length-1].slice(),o=e.length;for(Z(i,n);o<t.length;o++)e[o]=i.slice(0)}function Q(e,t,n){var i,o,a,r,s=e.length,l=t.length;if((s-1)%2==0&&(l-1)%2==0){i=(s-1)/2-1,a=(o=e.slice(0,i+1))[o.length-1].slice(0),r=e.slice(i+1)[0].slice(0),Z(a,n),Z(r,n);for(var u=i;u<(l-1)/2-1;u++)e.splice(u+1,0,a),e.splice(u+3,0,r)}}function J(e,t){var n,i,o=e._styles;for(n in t=t||{})i=t[n],(0,h.isDefined)(i)&&(i+="number"!=typeof i||I[n]?"":"px",o[n]=""!==i?i:null);for(n in o)(i=o[n])?e.element.style[n]=i:null===i&&(e.element.style[n]="");return e}function ee(e,t){var n=e.element,i=e.attr(t);i&&-1!==i.indexOf("DevExpress")&&(n.removeAttribute(t),n.setAttribute(t,L(i,e.renderer.pathModified)))}function te(e,t){t=t||{};var n,i,o,a,r,s,l=e._settings,u={},d=e.element,h=e.renderer,f=h.rtl;if(!V(t))return t in l?l[t]:t in M?M[t]:0;for(n in H(u,t),u)if(void 0!==(i=u[n])){if(l[n]=i,"align"===n)n="text-anchor",i={left:f?"end":"start",center:"middle",right:f?"start":"end"}[i]||null;else{if("dashStyle"===n){a=!0;continue}if(n===E)a=!0;else if(!i||"fill"!==n&&"clip-path"!==n&&"filter"!==n||0!==i.indexOf("DevExpress")){if(/^(translate(X|Y)|rotate[XY]?|scale(X|Y)|sharp|sharpDirection)$/i.test(n)){o=!0;continue}/^(x|y|d)$/i.test(n)&&(o=!0)}else e._addFixIRICallback(),i=L(i,h.pathModified)}null===i?d.removeAttribute(n):d.setAttribute(n,i)}if(a&&"dashStyle"in l)if(i=l.dashStyle,r=("_originalSW"in e?e._originalSW:l["stroke-width"])||1,n="stroke-dasharray",""===(i=null===i?"":(0,c.normalizeEnum)(i))||"solid"===i||i===A)e.element.removeAttribute(n);else{for(s=(i=i.replace(/longdash/g,"8,3,").replace(/dash/g,"4,3,").replace(/dot/g,"1,3,").replace(/,$/,"").split(",")).length;s--;)i[s]=parseInt(i[s])*r;e.element.setAttribute(n,i.join(","))}return o&&e._applyTransformation(),e}function ne(e,t,n){var i,a,r;for(i=0,a=e.length;i<a;++i)(r=e[i])[n]=F("tspan"),r[n].appendChild(o.default.createTextNode(r.value)),r.style&&J({element:r[n],_styles:{}},r.style),r.className&&r[n].setAttribute("class",r.className),t.appendChild(r[n])}function ie(){this._hasEllipsis&&this.attr({text:this._settings.text})}function oe(e){var t;return e&&((t=e.cloneNode()).removeAttribute("y"),t.removeAttribute("x")),t||e}function ae(e){for(var t=o.default.querySelectorAll(e,"title"),n=0;n<t.length;n++)e.removeChild(t[n]);return t}function re(e){var t=ae(e);return function(){for(var n=0;n<t.length;n++)e.appendChild(t[n])}}function se(e,t,n,i){var o,a;if(n<=t&&i>t)for(o=1,a=e.value.length;o<=a;++o)if(n+e.tspan.getSubStringLength(0,o)>t)return o-1}function le(e){return e.value.length?e.tspan.getSubStringLength(0,e.value.length):0}function ue(e,t){return t.hideOverflowEllipsis&&0===e?"":O}function de(e,t,n){var i=ue(t,n);if(e.value.length&&e.tspan.parentNode)for(var o=e.value.length-1;o>=1;o--){if(e.startBox+e.tspan.getSubStringLength(0,o)<t){fe(e,o,i);break}1===o&&fe(e,0,i)}}function ce(e,t,n,i,o){var a=n.textOverflow;if(!isFinite(i)||0===Number(i)||"none"===a)return e;var r=e.reduce((function(e,r,s,l){var u=p(e,2),d=u[0],c=u[1];if((c+=function(e,t){return e.parts.reduce((function(e,n){return v(e,me(n,t))}),0)}(r,o))<i)d.push(r);else if(r.parts.forEach((function(e){pe(e)})),"ellipsis"===a){var h=l[s-1];if(h){var f=h.parts[h.parts.length-1];f.hasEllipsis||(0===t||f.endBox<t?fe(f,f.value.length,ue(t,n)):de(f,t,n))}}return[d,c]}),[[],0]);return"hide"===a&&r[1]>i?(r[0].forEach((function(e){e.parts.forEach((function(e){pe(e)}))})),[]):r[0]}function he(e,t,n,i,o){if(!t){var a={value:e.textContent,height:0,line:0};e.textContent="",ne([a],e,"tspan"),t=[a]}return t.reduce((function(e,t){var a=p(e,5),r=a[0],s=a[1],l=a[2],u=a[3],d=a[4],c=r[r.length-1];if(u)return[r,s,l,u];if(c&&t.line===d){if(t.startBox=s,s>i&&"none"===o.wordWrap&&"ellipsis"===o.textOverflow)return pe(t),[r,s,l,u,d];c.parts.push(t),c.commonLength+=t.value.length}else t.startBox=s=0,r.push({commonLength:t.value.length,parts:[t]});if(t.endBox=l=s+le(t),s=l,(0,h.isDefined)(n)&&l>n){var f=function e(t,n,i,o,a){var r,s=t.value;"none"!==o.wordWrap&&(r="normal"===o.wordWrap?function(e,t){for(var n=e.startBox>0?[0]:[],i=e.value.split("").reduce((function(e,t,n){return" "===t&&e.push(n),e}),n),o=0;void 0!==i[o+1]&&e.startBox+e.tspan.getSubStringLength(0,i[o+1])<t;)o++;return i[o]}(t,n):function(e,t){for(var n=0;n<e.value.length-1;n++)if(e.startBox+e.tspan.getSubStringLength(0,n+1)>t)return n}(t,n));var l,u=[];if(isFinite(r)&&(0!==a||0!==r)){fe(t,r,"");var d=" "===s[r]?1:0,c=s.slice(r+d);if(c.length){var h=oe(t.tspan);if(h.textContent=c,t.tspan.parentNode.appendChild(h),(l=H(H({},t),{value:c,startBox:0,height:0,tspan:h,stroke:oe(t.stroke),endBox:h.getSubStringLength(0,c.length)})).stroke&&(l.stroke.textContent=c),l.endBox>n&&!(u=e(l,n,i,o,r)).length)return[]}}if(t.value.length){if("ellipsis"===o.textOverflow&&t.tspan.getSubStringLength(0,t.value.length)>n&&de(t,i,o),"hide"===o.textOverflow&&t.tspan.getSubStringLength(0,t.value.length)>n)return[]}else t.tspan.parentNode.removeChild(t.tspan);var f=[];return l&&f.push(l),[{commonLength:s.length,parts:f}].concat(u)}(t,n,i,o);f.length?r=r.concat(f.filter((function(e){return e.parts.length>0}))):(r=[],u=!0)}return[r,s,l,u,t.line]}),[[],0,0,!1,0])[0]}function fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O,i=e.value.substr(0,t)+n;e.value=e.tspan.textContent=i,e.stroke&&(e.stroke.textContent=i),n===O&&(e.hasEllipsis=!0)}function pe(e){e.tspan.parentNode&&e.tspan.parentNode.removeChild(e.tspan),e.stroke&&e.stroke.parentNode&&e.stroke.parentNode.removeChild(e.stroke)}function ge(e,t,n){e.tspan.setAttribute(t,n),e.stroke&&e.stroke.setAttribute(t,n)}function me(e,t){return e.inherits?ve(e.height,t):e.height||t}function _e(e){if(e._texts){var t,n,i=e._texts,o=e._settings.x,a=e._getLineHeight(),r=i[0];for(ge(r,"x",o),ge(r,"y",e._settings.y),t=1,n=i.length;t<n;++t)r=i[t],parseFloat(r.height)>=0&&(ge(r,"x",o),ge(r,"dy",me(r,a)))}}function ve(e,t){var n=parseFloat(e),i=parseFloat(t),o=n||12,a=i||12;return o>a?isNaN(n)?o:e:isNaN(i)?a:t}function ye(e,t,n,i){var o,a;n=n||{};var r=e.renderer,s=e._settings,l={},u={translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,rotateX:0,rotateY:0};if(i&&(n.complete=i),r.animationEnabled()){for(o in t)a=t[o],/^(translate(X|Y)|rotate[XY]?|scale(X|Y))$/i.test(o)?(l.transform=l.transform||{from:{},to:{}},l.transform.from[o]=o in s?Number(s[o].toFixed(3)):u[o],l.transform.to[o]=a):l[o]="arc"===o||"segments"===o?a:{from:o in s?s[o]:parseFloat(e.element.getAttribute(o)||0),to:a};r.animateElement(e,l,H(H({},r._animation),n))}else n.step&&n.step.call(e,1,1),n.complete&&n.complete.call(e),e.attr(t);return e}function xe(e,t){var n={is:!1,name:t.name||t,after:t.after};return e?n.to=e:n.virtual=!0,n}var be=function(e,t,n){var i=this;i.renderer=e,i.element=F(t),i._settings={},i._styles={},"path"===t&&(i.type=n||"line")};function we(e){Oe.remove(e)}t.SvgElement=be,be.prototype={constructor:be,_getJQElement:function(){return this._$element||(this._$element=(0,i.default)(this.element))},_addFixIRICallback:function(){var e=this,t=function(){ee(e,"fill"),ee(e,"clip-path"),ee(e,"filter")};e.element._fixFuncIri=t,t.renderer=e.renderer,Oe.add(t),e._addFixIRICallback=function(){}},_clearChildrenFuncIri:function(){!function e(t){var n;for(n=0;n<t.childNodes.length;n++)we(t.childNodes[n]._fixFuncIri),e(t.childNodes[n])}(this.element)},dispose:function(){return we(this.element._fixFuncIri),this._clearChildrenFuncIri(),this._getJQElement().remove(),this},append:function(e){return(e||this.renderer.root).element.appendChild(this.element),this},remove:function(){var e=this.element;return e.parentNode&&e.parentNode.removeChild(e),this},enableLinks:function(){return this._links=[],this},virtualLink:function(e){return Te({_link:xe(null,e)},this),this},linkAfter:function(e){return this._linkAfter=e,this},linkOn:function(e,t){return this._link=xe(e,t),Te(this,e),this},linkOff:function(){return function(e){var t,n=e._link.to._links;for(t=0;n[t]!==e;++t);n.splice(t,1),Ie(n,t)}(this),this._link=null,this},linkAppend:function(){var e,t,n=this._link,i=n.to._links;for(e=n.i+1;(t=i[e])&&!t._link.is;++e);return this._insert(n.to,t),n.is=!0,this},_insert:function(e,t){e.element.insertBefore(this.element,t?t.element:null)},linkRemove:function(){return this.remove(),this._link.is=!1,this},clear:function(){return this._clearChildrenFuncIri(),this._getJQElement().empty(),this},toBackground:function(){var e=this.element,t=e.parentNode;return t&&t.insertBefore(e,t.firstChild),this},toForeground:function(){var e=this.element,t=e.parentNode;return t&&t.appendChild(e),this},attr:function(e){return te(this,e)},smartAttr:function(e){return this.attr(W(this,e))},css:function(e){return J(this,e)},animate:function(e,t,n){return ye(this,e,t,n)},sharp:function(e,t){return this.attr({sharp:e||!0,sharpDirection:t})},_applyTransformation:function(){var e,t,n=this._settings,i=[],o=n.sharp,a=n.sharpDirection||1,r=n["stroke-width"]%2,s=!r||"h"!==o&&!0!==o?0:.5*a,l=!r||"v"!==o&&!0!==o?0:.5*a;i.push("translate("+((n.translateX||0)+s)+","+((n.translateY||0)+l)+")"),n.rotate&&(e="rotateX"in n?n.rotateX:n.x,t="rotateY"in n?n.rotateY:n.y,i.push("rotate("+n.rotate+","+(e||0)+","+(t||0)+")"));var u=(0,h.isDefined)(n.scaleX),d=(0,h.isDefined)(n.scaleY);(u||d)&&i.push("scale("+(u?n.scaleX:1)+","+(d?n.scaleY:1)+")"),i.length&&this.element.setAttribute("transform",i.join(" "))},move:function(e,t,n,i){var o={};return(0,h.isDefined)(e)&&(o.translateX=e),(0,h.isDefined)(t)&&(o.translateY=t),n?this.animate(o,i):this.attr(o),this},rotate:function(e,t,n,i,o){var a={rotate:e||0};return(0,h.isDefined)(t)&&(a.rotateX=t),(0,h.isDefined)(n)&&(a.rotateY=n),i?this.animate(a,o):this.attr(a),this},_getElementBBox:function(){var e,t=this.element;try{e=t.getBBox&&t.getBBox()}catch(e){}return e||{x:0,y:0,width:t.offsetWidth||0,height:t.offsetHeight||0}},getBBox:function(){var e=this._settings,t=this._getElementBBox();return e.rotate?(0,c.rotateBBox)(t,[("rotateX"in e?e.rotateX:e.x)||0,("rotateY"in e?e.rotateY:e.y)||0],-e.rotate):(0,c.normalizeBBox)(t)},markup:function(){return(0,u.getSvgMarkup)(this.element)},getOffset:function(){return this._getJQElement().offset()},stopAnimation:function(e){var t=this.animation;return t&&t.stop(e),this},setTitle:function(e){var t=F("title");t.textContent=e||"",this.element.appendChild(t)},removeTitle:function(){ae(this.element)},data:function(e,t){var n,i=this.element;if(void 0!==t)i[e]=t;else for(n in e)i[n]=e[n];return this},on:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),s.default.on.apply(s.default,e),this},off:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),s.default.off.apply(s.default,e),this},trigger:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),s.default.trigger.apply(s.default,e),this}};var Ce=function(e,t){be.call(this,e,"path",t)};t.PathSvgElement=Ce,H(Ce.prototype=P(be.prototype),{constructor:Ce,attr:function(e){var t,n=this;return V(e)&&(t=(e=H({},e)).segments,"points"in e&&(t=j(e.points,n.type),delete e.points),t&&(e.d=function(e){var t,n,i,o,a=[],r=0,s=e.length;for(t=0;t<s;++t)for(i=0,o=(n=e[t]).length;i<o;++i)a[r++]=n[i];return a.join(" ")}(t),n.segments=t,delete e.segments)),te(n,e)},animate:function(e,t,n){var i,o,a=this,r=a.segments||[];return a.renderer.animationEnabled()&&"points"in e&&(o=function(e,t,n){var i,o,a=e.length,r=t.length,s=-1!==n.indexOf("area")?Q:X;if(0===a)for(i=0;i<r;i++)e.push(t[i].slice(0));else a<r?s(e,t,n):a>r&&(o=t.slice(0),s(t,e,n));return o}(r,i=j(e.points,a.type),a.type),e.segments={from:r,to:i,end:o},delete e.points),ye(a,e,t,n)}});var Se=function(e){be.call(this,e,"path","arc")};t.ArcSvgElement=Se,H(Se.prototype=P(be.prototype),{constructor:Se,attr:function(e){var t,n,i,o,a,r,s=this._settings;return V(e)&&("x"in(e=H({},e))||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(s.x=t="x"in e?e.x:s.x,delete e.x,s.y=n="y"in e?e.y:s.y,delete e.y,s.innerRadius=i="innerRadius"in e?e.innerRadius:s.innerRadius,delete e.innerRadius,s.outerRadius=o="outerRadius"in e?e.outerRadius:s.outerRadius,delete e.outerRadius,s.startAngle=a="startAngle"in e?e.startAngle:s.startAngle,delete e.startAngle,s.endAngle=r="endAngle"in e?e.endAngle:s.endAngle,delete e.endAngle,e.d=G.apply(null,function(e,t,n,i,o,a){var r,s=!0,l=N(a,3)-N(o,3);return l&&(S(l)%360==0&&(o=0,a=360,r=!0,a-=.01),o>360&&(o%=360),a>360&&(a%=360),o>a&&(o-=360),s=!1),o*=D,a*=D,[e,t,y(i,n),v(i,n),C(o),w(o),C(a),w(a),r,x(S(a-o)/k)%2?"1":"0",s]}(t,n,i,o,a,r))),te(this,e)},animate:function(e,t,n){var i=this,o=i._settings,a={from:{},to:{}};return i.renderer.animationEnabled()&&("x"in e||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(a.from.x=o.x||0,a.from.y=o.y||0,a.from.innerRadius=o.innerRadius||0,a.from.outerRadius=o.outerRadius||0,a.from.startAngle=o.startAngle||0,a.from.endAngle=o.endAngle||0,a.to.x="x"in e?e.x:o.x,delete e.x,a.to.y="y"in e?e.y:o.y,delete e.y,a.to.innerRadius="innerRadius"in e?e.innerRadius:o.innerRadius,delete e.innerRadius,a.to.outerRadius="outerRadius"in e?e.outerRadius:o.outerRadius,delete e.outerRadius,a.to.startAngle="startAngle"in e?e.startAngle:o.startAngle,delete e.startAngle,a.to.endAngle="endAngle"in e?e.endAngle:o.endAngle,delete e.endAngle,e.arc=a),ye(i,e,t,n)}});var ke=function(e){be.call(this,e,"rect")};t.RectSvgElement=ke,H(ke.prototype=P(be.prototype),{constructor:ke,attr:function(e){var t,n,i,o,a,r,s,l=this;return V(e)&&(void 0===(e=H({},e)).x&&void 0===e.y&&void 0===e.width&&void 0===e.height&&void 0===e["stroke-width"]||(t=void 0!==e.x?l._originalX=e.x:l._originalX||0,n=void 0!==e.y?l._originalY=e.y:l._originalY||0,i=void 0!==e.width?l._originalWidth=e.width:l._originalWidth||0,o=void 0!==e.height?l._originalHeight=e.height:l._originalHeight||0,s=((a=void 0!==e["stroke-width"]?l._originalSW=e["stroke-width"]:l._originalSW)||0)<(r=~~((i<o?i:o)/2))?a||0:r,e.x=t+s/2,e.y=n+s/2,e.width=i-s,e.height=o-s,((a||0)!==s||0!==s||void 0!==a)&&(e["stroke-width"]=s)),"sharp"in e&&delete e.sharp),te(l,e)}});var De=function(e){be.call(this,e,"text"),this.css({"white-space":"pre"})};function Ie(e,t){var n,i;for(n=t;i=e[n];++n)i._link.i=n}function Te(e,t){var n,i,o=t._links,a=e._link.after=e._link.after||t._linkAfter;if(a){for(n=0;(i=o[n])&&i._link.name!==a;++n);if(i)for(++n;(i=o[n])&&i._link.after===a;++n);}else n=o.length;o.splice(n,0,e),Ie(o,n)}function Ee(e){var t=this;t.root=t._createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:A,stroke:A,"stroke-width":0}).attr({class:e.cssClass}).css({"line-height":"normal","-ms-user-select":A,"-moz-user-select":A,"-webkit-user-select":A,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"}),t._init(),t.pathModified=!!e.pathModified,t._$container=(0,i.default)(e.container),t.root.append({element:e.container}),t.fixPlacement(),t._locker=0,t._backed=!1}t.TextSvgElement=De,H(De.prototype=P(be.prototype),{constructor:De,attr:function(e){var t,n=this;if(!V(e))return te(n,e);e=H({},e);var i=n._settings,a=(0,h.isDefined)(i.stroke)&&(0,h.isDefined)(i["stroke-width"]);void 0!==e.text&&(i.text=e.text,delete e.text,t=!0),void 0!==e.stroke&&(i.stroke=e.stroke,delete e.stroke),void 0!==e["stroke-width"]&&(i["stroke-width"]=e["stroke-width"],delete e["stroke-width"]),void 0!==e["stroke-opacity"]&&(i["stroke-opacity"]=e["stroke-opacity"],delete e["stroke-opacity"]),void 0!==e.textsAlignment&&(function(e,t){if(e._texts&&"center"!==t)for(var n=e._texts,i="left"===t?-1:1,o=Math.max.apply(Math,n.map((function(e){return le(e)}))),a=0;a<n.length;a++){var r=n[a],s=le(r);0!==o&&o!==s&&ge(r,"dx",i*b((o-s)/2*10)/10)}}(n,e.textsAlignment),delete e.textsAlignment);var r=(0,h.isDefined)(i.stroke)&&(0,h.isDefined)(i["stroke-width"]);return te(n,e),(t=t||r!==a&&i.text)&&(function(e,t,n){var i,a,r;(e._texts=null,e.clear(),null!==t)&&(t=""+t,e.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(t)&&-1===t.indexOf("&")?/\n/g.test(t)?i=function(e){for(var t=e.replace(/\r/g,"").split(/\n/g),n=0,i=[];n<t.length;n++)i.push({value:t[n].trim(),height:0,line:n});return i}(t):n&&(i=[{value:t.trim(),height:0}]):(a=/(?:(<[a-z0-9]+\s*))([\s\S]*?)(>|\/>)/gi,r=/(style|class)\s*=\s*(["'])(?:(?!\2).)*\2\s?/gi,i=function(e){var t=[],n=o.default.createElement("div");return n.innerHTML=e.replace(/\r/g,"").replace(/\n/g,"<br/>"),function e(t,n,i,a,r){var s,l,u,d,c;if(void 0!==i.wholeText)t.push({value:i.wholeText,style:a,className:r,line:n,height:a["font-size"]||0});else if("BR"===i.tagName)++n;else if(o.default.isElementNode(i)){switch(H(s={},a),i.tagName){case"B":case"STRONG":s["font-weight"]="bold";break;case"I":case"EM":s["font-style"]="italic";break;case"U":s["text-decoration"]="underline"}for((l=i.style).color&&(s.fill=l.color),l.fontSize&&(s["font-size"]=l.fontSize),l.fontStyle&&(s["font-style"]=l.fontStyle),l.fontWeight&&(s["font-weight"]=l.fontWeight),l.textDecoration&&(s["text-decoration"]=l.textDecoration),u=0,d=(c=i.childNodes).length;u<d;++u)n=e(t,n,c[u],s,i.className||r)}return n}(t,0,n,{},""),function(e){var t,n,i,o=e[0];for(t=1,n=e.length;t<n;++t)(i=e[t]).line===o.line?(o.height=ve(o.height,i.height),o.inherits=o.inherits||0===parseFloat(i.height),i.height=NaN):o=i}(t),t}(t.replace(a,(function(e,t,n,i){return t+(n=(n&&n.match(r)||[]).map((function(e){return e})).join(" "))+i})))),i?i.length&&(e._texts=i,n&&ne(i,e.element,T),ne(i,e.element,"tspan")):e.element.appendChild(o.default.createTextNode(t)))}(n,i.text,r),n._hasEllipsis=!1),(t||void 0!==e.x||void 0!==e.y)&&_e(n),r&&function(e){if(e._texts){var t,n,i,o=e._texts,a=e._settings.stroke,r=e._settings["stroke-width"],s=e._settings["stroke-opacity"]||1;for(n=0,i=o.length;n<i;++n)(t=o[n].stroke).setAttribute(T,a),t.setAttribute(E,r),t.setAttribute("stroke-opacity",s),t.setAttribute("stroke-linejoin","round")}}(n),n},css:function(e){return J(this,e=e||{}),"font-size"in e&&_e(this),this},applyEllipsis:function(e){var t,n,i,o,a,r,s,l=this,u=!1;ie.call(l);var d=l.renderer.text(O).attr(l._styles).append(l.renderer.root),c=d.getBBox().width;if(l._getElementBBox().width>e)for(e-c<0?e=0:e-=c,t=function(e,t,n){var i,o,a,r,s,l=[];if(t)for(i=0,o=t.length;i<o;++i)l[(a=t[i]).line]?(a.startBox=r,l[a.line].parts.push(a),l[a.line].commonLength+=a.value.length):(a.startBox=r=0,l.push({commonLength:a.value.length,parts:[a]})),s=r+a.tspan.getSubStringLength(0,a.value.length),a.endIndex=se(a,n,r,s),r=s;else(a={value:e.textContent,tspan:e}).startBox=r=0,s=r+le(a),a.endIndex=se(a,n,r,s),l=[{commonLength:e.textContent.length,parts:[a]}];return l}(l.element,l._texts,e),n=0,i=t.length;n<i;++n)if(o=t[n].parts,1!==t[n].commonLength)for(a=0,r=o.length;a<r;++a)s=o[a],(0,h.isDefined)(s.endIndex)?(fe(s,s.endIndex),u=!0):s.startBox>e&&pe(s);return d.remove(),l._hasEllipsis=u,u},setMaxSize:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,o=[],a=!1,r=!1,s=e;ie.call(i);var l=re(this.element),u=i.renderer.text(O).attr(i._styles).append(i.renderer.root),d=u.getBBox().width,c=i._getElementBBox(),h=c.width,f=c.height;return(h||f)&&(h>e||t&&f>t)&&(e-d<0?s=0:s-=d,o=ce(o=he(i.element,i._texts,e,s,n),s,n,t,parseFloat(this._getLineHeight())),this._texts=o.reduce((function(e,t){return e.concat(t.parts)}),[]).filter((function(e){return""!==e.value})).map((function(e){return e.stroke&&e.tspan.parentNode.appendChild(e.stroke),e})).map((function(e){return e.tspan.parentNode.appendChild(e.tspan),e})),!this._texts.length&&(this._texts=null),a=!0,this._texts?_e(this):(this.element.textContent="",r=!0)),u.remove(),i._hasEllipsis=a,l(),{rowCount:o.length,textChanged:a,textIsEmpty:r}},restoreText:ie,_getLineHeight:function(){return isNaN(parseFloat(this._styles["font-size"]))?12:this._styles["font-size"]}}),Ee.prototype={constructor:Ee,_init:function(){var e=this;e._defs=e._createElement("defs").append(e.root),e._animationController=new d.AnimationController(e.root.element),e._animation={enabled:!0,duration:1e3,easing:"easeOutCubic"}},fixPlacement:function(){if(l.default.mozilla){var e=function(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t||{left:0,top:0}}(this._$container.get(0)),t=N(e.left%1,2),n=N(e.top%1,2);l.default.mozilla&&this.root.move(-t,-n)}},removePlacementFix:function(){l.default.mozilla&&l.default.mozilla&&this.root.attr({transform:null})},setOptions:function(e){var t=this;return t.rtl=!!e.rtl,t.encodeHtml=!!e.encodeHtml,t.updateAnimationOptions(e.animation||{}),t.root.attr({direction:t.rtl?"rtl":"ltr"}),t},_createElement:function(e,t,n){var i=new be(this,e,n);return t&&i.attr(t),i},lock:function(){var e,t=this;return 0===t._locker&&(t._backed=!t._$container.is(":visible"),t._backed&&(e=t.root,0===R().backupCounter&&o.default.getBody().appendChild(R().backupContainer),++R().backupCounter,e.append({element:R().backupContainer}))),++t._locker,t},unlock:function(){var e,t,n=this;return--n._locker,0===n._locker&&(n._backed&&(e=n.root,t=n._$container[0],e.append({element:t}),--R().backupCounter,0===R().backupCounter&&o.default.getBody().removeChild(R().backupContainer),n.fixPlacement()),n._backed=!1),n},resize:function(e,t){return e>=0&&t>=0&&this.root.attr({width:e,height:t}),this},dispose:function(){var e,t=this;for(e in t.root.dispose(),t._defs.dispose(),t._animationController.dispose(),Oe.removeByRenderer(t),t)t[e]=null;return t},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(e){return H(this._animation,e),this},stopAllAnimations:function(e){return this._animationController[e?"lock":"stop"](),this},animateElement:function(e,t,n){return this._animationController.animateElement(e,t,n),this},svg:function(){this.removePlacementFix();var e=this.root.markup();return this.fixPlacement(),e},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(e){this._animationController.onEndAnimation(e)},rect:function(e,t,n,i){return new ke(this).attr({x:e||0,y:t||0,width:n||0,height:i||0})},simpleRect:function(){return this._createElement("rect")},circle:function(e,t,n){return this._createElement("circle",{cx:e||0,cy:t||0,r:n||0})},g:function(){return this._createElement("g")},image:function(e,t,n,i,o,a){var r=this._createElement("image",{x:e||0,y:t||0,width:n||0,height:i||0,preserveAspectRatio:z[(0,c.normalizeEnum)(a)]||A});return r.element.setAttributeNS("http://www.w3.org/1999/xlink","href",o||""),r},path:function(e,t){return new Ce(this,t).attr({points:e||[]})},arc:function(e,t,n,i,o,a){return new Se(this).attr({x:e||0,y:t||0,innerRadius:n||0,outerRadius:i||0,startAngle:o||0,endAngle:a||0})},text:function(e,t,n){return new De(this).attr({text:e,x:t||0,y:n||0})},linearGradient:function(e){var t=B(),n=this,i=n._createElement("linearGradient",{id:t}).append(n._defs);return i.id=t,e.forEach((function(e){n._createElement("stop",{offset:e.offset,"stop-color":e["stop-color"]}).append(i)})),i},pattern:function(e,t,n){var i=this,o=(t=t||{}).step||6,a=o/2,r=1.5*o,s=n||B(),l="right"===(0,c.normalizeEnum)(t.direction)?"M "+a+" "+-a+" L "+-a+" "+a+" M 0 "+o+" L "+o+" 0 M "+r+" "+a+" L "+a+" "+r:"M 0 0 L "+o+" "+o+" M "+-a+" "+a+" L "+a+" "+r+" M "+a+" "+-a+" L "+r+" "+a,u=i._createElement("pattern",{id:s,width:o,height:o,patternUnits:"userSpaceOnUse"}).append(i._defs);return u.id=s,i.rect(0,0,o,o).attr({fill:e,opacity:t.opacity}).append(u),new Ce(this).attr({d:l,"stroke-width":t.width||1,stroke:e}).append(u),u},_getPointsWithYOffset:function(e,t){return e.map((function(e,n){return n%2!=0?e+t:e}))},clipShape:function(e,t){var n=this,i=B(),o=n._createElement("clipPath",{id:i}).append(n._defs),a=e.apply(n,t).append(o);return a.id=i,a.remove=function(){throw"Not implemented"},a.dispose=function(){return o.dispose(),o=null,this},a},clipRect:function(e,t,n,i){return this.clipShape(this.rect,arguments)},clipCircle:function(e,t,n){return this.clipShape(this.circle,arguments)},shadowFilter:function(e,t,n,i,o,a,r,s,l){var u=this,d=B(),c=u._createElement("filter",{id:d,x:e||0,y:t||0,width:n||0,height:i||0}).append(u._defs),h=u._createElement("feGaussianBlur",{in:"SourceGraphic",result:"gaussianBlurResult",stdDeviation:r||0}).append(c),f=u._createElement("feOffset",{in:"gaussianBlurResult",result:"offsetResult",dx:o||0,dy:a||0}).append(c),p=u._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(c),g=u._createElement("feComposite",{in:"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(c),m=u._createElement("feComposite",{in:"SourceGraphic",in2:"compositeResult",operator:"over"}).append(c);return c.id=d,c.gaussianBlur=h,c.offset=f,c.flood=p,c.composite=g,c.finalComposite=m,c.attr=function(e){var t=this,n={},i={},o={};return"x"in e&&(n.x=e.x),"y"in e&&(n.y=e.y),"width"in e&&(n.width=e.width),"height"in e&&(n.height=e.height),te(t,n),"blur"in e&&t.gaussianBlur.attr({stdDeviation:e.blur}),"offsetX"in e&&(i.dx=e.offsetX),"offsetY"in e&&(i.dy=e.offsetY),t.offset.attr(i),"color"in e&&(o["flood-color"]=e.color),"opacity"in e&&(o["flood-opacity"]=e.opacity),t.flood.attr(o),t},c},brightFilter:function(e,t){var n=this,i=B(),o=n._createElement("filter",{id:i}).append(n._defs),a=n._createElement("feComponentTransfer").append(o),r={type:e,slope:t};return o.id=i,n._createElement("feFuncR",r).append(a),n._createElement("feFuncG",r).append(a),n._createElement("feFuncB",r).append(a),o},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var e=this,t=B(),n=e._createElement("filter",{id:t}).append(e._defs);return e._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(n),n.id=t,e._grayScaleFilter=n,n},initHatching:function(){var e,t=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:B()},n=t.byHash;for(e in n)n[e].pattern.dispose();t.byHash={},t.refToHash={},t.nextId=0},lockHatching:function(e,t,n){var i,o,a=this._hatchingStorage,r=function(e,t){return"@"+e+"::"+t.step+":"+t.width+":"+t.opacity+":"+t.direction}(e,t);return a.refToHash[n]!==r&&(n&&this.releaseHatching(n),(i=a.byHash[r])||(o=this.pattern(e,t,a.baseId+"-hatching-"+a.nextId++),i=a.byHash[r]={pattern:o,count:0},a.refToHash[o.id]=r),++i.count,n=i.pattern.id),n},releaseHatching:function(e){var t=this._hatchingStorage,n=t.refToHash[e],i=t.byHash[n];i&&0==--i.count&&(i.pattern.dispose(),delete t.byHash[n],delete t.refToHash[e])}};var Ae,Oe=(Ae=[],{add:function(e){Ae.push(e)},remove:function(e){Ae=Ae.filter((function(t){return t!==e}))},removeByRenderer:function(e){Ae=Ae.filter((function(t){return t.renderer!==e}))},fire:function(){Ae.forEach((function(e){e()}))}});t.refreshPaths=function(){Oe.fire()}},1939:function(e,t,n){t.SeriesFamily=O;var i,o=n(35922),a=n(13306),r=n(95479),s=n(60810),l=n(20576),u=n(19157),d=(i=n(91198))&&i.__esModule?i:{default:i},c=Math.round,h=Math.abs,f=Math.pow,p=Math.sqrt,g=Math.min;function m(e,t,n,i,a,s,l){e.forEach((function(e){var u,d=l(t.indexOf(i),t.length),c=e.getPointsByArg(n,!0),h=function(e){return e<0||e>1?void 0:e}(e.getOptions().barPadding),f=e.getOptions().barWidth,p=x(d,a),g=a.width;-1!==d&&(((0,o.isDefined)(h)||(0,o.isDefined)(f))&&(g=(u=y(s,t.length,1-h,f)).width,e.getBarOverlapGroup()||(p=x(d,u))),function(e,t,n){(0,r.each)(e,(function(e,i){i.correctCoordinates({width:t,offset:n})}))}(c,g,p))}))}function _(e){return e.getStackName()||e.getBarOverlapGroup()}function v(e,t,n){var i,o,a,r=[],s=[],l={},u=t.barGroupWidth,c=null===(i=e[0])||void 0===i?void 0:i.getArgumentAxis();if(null!==(o=e[0])&&void 0!==o&&o.useAggregation()){var h,f="datetime"===(null===(h=e[0])||void 0===h?void 0:h.argumentType),p=c.getTickInterval(),g=c.getAggregationInterval();p=f?d.default.dateToMilliseconds(p):p,a=(g=f?d.default.dateToMilliseconds(g):g)<p?g:p}a=null==c?void 0:c.getTranslator().getInterval(a);var v,x=u?a>u?u:a:a*(1-((v=t.barGroupPadding)<0||v>1?.3:v));e.forEach((function(e,t){var n,i=_(e)||t.toString();for(n in e.pointsByArgument)-1===s.indexOf(n.valueOf())&&s.push(n.valueOf());-1===r.indexOf(i)&&(r.push(i),l[i]=[]),l[i].push(e)})),s.forEach((function(e){var t=r.reduce((function(t,n){return function(e,t){return e.some((function(e){return!e.getOptions().ignoreEmptyPoints||e.getPointsByArg(t,!0).some((function(e){return e.hasValue()}))}))}(l[n],e)&&t.push(n),t}),[]),i=y(x,t.length);r.forEach((function(o){m(l[o],t,e,o,i,x,n)}))}))}function y(e,t,n,i){var a,r;return i?(r=g(i,e/t),a=t>1?c((e-c(r)*t)/(t-1)):0):(0,o.isDefined)(n)?(r=e*n/t,a=t>1?c((e-e*n)/(t-1)):0):r=(e-(a=c(e/t*.2))*(t-1))/t,{width:r>1?c(r):1,spacing:a,middleIndex:t/2,rawWidth:r}}function x(e,t){var n=t.rawWidth<1?t.rawWidth:t.width;return(e-t.middleIndex+.5)*n-(t.middleIndex-e-.5)*t.spacing}function b(e){return e.series.filter((function(e){return e.isVisible()}))}function w(e,t,n){return((e.positive[t]||{})[n]||0)+(-(e.negative[t]||{})[n]||0)}function C(e){return e?function(e,t){return t-e-1}:function(e){return e}}function S(e){return e[0]&&e[0].getArgumentAxis().getTranslator().isInverted()}function k(){var e=b(this);v(e,this._options,C(S(e)))}function D(){var e=this,t=e._options.negativesAsZeroes,n=b(e),i={positive:{},negative:{}},o={left:{},right:{}},r={},l={};n.forEach((function(e){var n=_(e),u=!1,d=function(e){for(var t,n=e.getPoints(),i=0;i<n.length;i++){var o=n[i];if(t=o.initialValue&&o.initialValue.valueOf(),h(t)>0)break}return(0,s.sign)(t)}(e)<0?l:r;e._prevSeries=d[n],d[n]=e,e.holes=(0,a.extend)(!0,{},o),e.getPoints().forEach((function(a,r,s){var l=a.initialValue&&a.initialValue.valueOf(),d=a.argument.valueOf(),c=l>=0?i.positive:i.negative,h="bar"!==e.type;t&&l<0&&(c=i.positive,l=0,a.resetValue()),c[n]=c[n]||{};var f=c[n];if(f[d]?(h&&a.correctValue(f[d]),f[d]+=l):(f[d]=l,h&&a.resetCorrection()),a.hasValue())u&&(u=!1,o.left[d]=(o.left[d]||0)+(a.value.valueOf()-(isFinite(a.minValue)?a.minValue.valueOf():0)),a._skipSetLeftHole=!0);else{var p=s[r-1];!u&&p&&p.hasValue()&&(d=p.argument.valueOf(),p._skipSetRightHole=!0,o.right[d]=(o.right[d]||0)+(p.value.valueOf()-(isFinite(p.minValue)?p.minValue.valueOf():0))),u=!0}}))})),n.forEach((function(e){var t=e.holes;e.getPoints().forEach((function(e){var n=e.argument.valueOf();e.resetHoles(),!e._skipSetLeftHole&&e.setHole(t.left[n]||o.left[n]&&0,"left"),!e._skipSetRightHole&&e.setHole(t.right[n]||o.right[n]&&0,"right"),e._skipSetLeftHole=null,e._skipSetRightHole=null}))})),e._stackKeepers=i,n.forEach((function(e){e.getPoints().forEach((function(t){var n=t.argument.valueOf(),a=_(e),r=w(i,a,n),s=function(e,t,n){return((e.positive[t]||{})[n]||0)+((e.negative[t]||{})[n]||0)}(i,a,n);t.setPercentValue(r,s,o.left[n],o.right[n])}))}))}function I(){var e=this,t=b(e),n=e._stackKeepers,i={positive:{},negative:{}};(0,r.each)(t,(function(t,o){var a=o.getOptions().minBarSize,s=o.getValueAxis().getTranslator(),l=a&&s.getMinBarSize(a),u=o.getStackName();(0,r.each)(o.getPoints(),(function(t,o){if(o.hasValue()){var a=o.initialValue&&o.initialValue.valueOf(),r=o.argument.valueOf();e.fullStacked&&(a=a/w(n,u,r)||0);var d=s.checkMinBarSize(a,l,o.value),c=function(e){return e>=0?"positive":"negative"}(d),h=i[c][u]=i[c][u]||{};h[r]?(o.minValue=h[r],h[r]+=d):h[r]=d,o.value=h[r]}}))})),e.fullStacked&&function(e,t){(0,r.each)(e,(function(e,n){var i=n.getStackName?n.getStackName():"default";(0,r.each)(n.getPoints(),(function(e,n){var a=w(t,i,n.argument.valueOf());0!==a&&(n.value=n.value/a,(0,o.isNumeric)(n.minValue)&&(n.minValue=n.minValue/a))}))}))}(t,i)}function T(){(0,r.each)(this.series,(function(e,t){var n=t.getOptions().minBarSize,i=t.getValueAxis().getTranslator(),o=n&&i.getMinBarSize(n);o&&(0,r.each)(t.getPoints(),(function(e,t){t.hasValue()&&(t.value=i.checkMinBarSize(t.initialValue,o))}))}))}function E(){var e=b(this);v(e,{barGroupPadding:.3},C(S(e)))}function A(){var e=b(this);if(e.length){var t,n,i=this._options,o=e[0].getArgumentAxis().getVisibleArea(),a=e[0].getValueAxis().getVisibleArea(),s=g(o[1]-o[0],a[1]-a[0]),l=f(i.minBubbleSize,2),u=f(s*i.maxBubbleSize,2),d=(s*i.maxBubbleSize+i.minBubbleSize)/2,m=1/0,_=-1/0;(0,r.each)(e,(function(e,t){(0,r.each)(t.getPoints(),(function(e,t){_=_>t.size?_:t.size,m=m<t.size?m:t.size}))}));var v=_-m,y=h(u-l);(0,r.each)(e,(function(e,i){(0,r.each)(i.getPoints(),(function(e,i){_===m?t=c(d):(n=h(i.size-m)/v,t=c(p(y*n+l))),i.correctCoordinates(t)}))}))}}function O(e){var t=this;switch(t.type=(0,u.normalizeEnum)(e.type),t.pane=e.pane,t.series=[],t.updateOptions(e),t.type){case"bar":t.adjustSeriesDimensions=k,t.updateSeriesValues=T,t.adjustSeriesValues=D;break;case"rangebar":t.adjustSeriesDimensions=k;break;case"fullstackedbar":t.fullStacked=!0,t.adjustSeriesDimensions=k,t.adjustSeriesValues=D,t.updateSeriesValues=I;break;case"stackedbar":t.adjustSeriesDimensions=k,t.adjustSeriesValues=D,t.updateSeriesValues=I;break;case"fullstackedarea":case"fullstackedline":case"fullstackedspline":case"fullstackedsplinearea":t.fullStacked=!0,t.adjustSeriesValues=D;break;case"stackedarea":case"stackedsplinearea":case"stackedline":case"stackedspline":t.adjustSeriesValues=D;break;case"candlestick":case"stock":t.adjustSeriesDimensions=E;break;case"bubble":t.adjustSeriesDimensions=A}}O.prototype={constructor:O,adjustSeriesDimensions:l.noop,adjustSeriesValues:l.noop,updateSeriesValues:l.noop,updateOptions:function(e){this._options=e},dispose:function(){this.series=null},add:function(e){var t=this.type;this.series=(0,u.map)(e,(function(e){return e.type===t?e:null}))}}},39726:function(e,t){t.default=void 0;var n="#f05b41",i="#fff",o="#333",a="#8899a8",r="#707070",s="#dee1e3",l=[{theme:{name:"generic.carmine",defaultPalette:"Carmine",backgroundColor:i,primaryTitleColor:o,secondaryTitleColor:a,gridColor:s,axisColor:r,export:{backgroundColor:i,font:{color:o},button:{default:{color:o,borderColor:"#b1b7bd",backgroundColor:i},hover:{color:o,borderColor:"#b1b7bd",backgroundColor:"#faf2f0"},focus:{color:o,borderColor:"#6d7781",backgroundColor:"#faf2f0"},active:{color:o,borderColor:"#6d7781",backgroundColor:"#f5e7e4"}}},legend:{font:{color:r}},tooltip:{color:i,border:{color:s},font:{color:o}},"chart:common":{commonSeriesSettings:{label:{border:{color:s}}}},"chart:common:annotation":{font:{color:o},border:{color:s},color:i},chart:{commonPaneSettings:{border:{color:s}},commonAxisSettings:{breakStyle:{color:"#c1c5c7"}}},rangeSelector:{scale:{breakStyle:{color:"#c1c5c7"},tick:{opacity:.12}},selectedRangeColor:n,sliderMarker:{color:n},sliderHandle:{color:n,opacity:.5}},sparkline:{pointColor:i,minColor:"#f0ad4e",maxColor:"#f74d61"},treeMap:{group:{color:s,label:{font:{color:a}}}},bullet:{color:n},gauge:{valueIndicators:{rangebar:{color:n},textcloud:{color:n}}}},baseThemeName:"generic.light"},{theme:{name:"generic.carmine.compact"},baseThemeName:"generic.carmine"}];t.default=l,e.exports=t.default,e.exports.default=t.default},14870:function(e,t){t.default=void 0;var n="#ffffff",i="#000000",o="#cf00da",a="#f8ca00",r=[{theme:{name:"generic.contrast",defaultPalette:"Bright",font:{color:n},backgroundColor:i,primaryTitleColor:n,secondaryTitleColor:n,gridColor:n,axisColor:n,export:{backgroundColor:i,font:{color:n},button:{default:{color:n,borderColor:n,backgroundColor:i},hover:{color:n,borderColor:n,backgroundColor:"#cf00d7"},focus:{color:n,borderColor:"#cf00d7",backgroundColor:i},active:{color:i,borderColor:n,backgroundColor:n}},borderColor:n,menuButtonColor:i,activeBackgroundColor:n,activeColor:i,selectedBorderColor:o,selectedColor:o,shadowColor:"none"},tooltip:{border:{color:n},font:{color:n},color:i},"chart:common":{commonSeriesSettings:{valueErrorBar:{color:n},hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}},label:{font:{color:n},border:{color:n}}}},"chart:common:axis":{constantLineStyle:{color:n}},"chart:common:annotation":{font:{color:n},border:{color:n},color:i},chart:{commonSeriesSettings:{},crosshair:{color:"#cf00d7"},commonPaneSettings:{backgroundColor:i,border:{color:n}},scrollBar:{color:n},commonAxisSettings:{breakStyle:{color:"#cf00d7"}},zoomAndPan:{dragBoxStyle:{color:n,opacity:.7}}},pie:{commonSeriesSettings:{pie:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},doughnut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},donut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}}}},gauge:{rangeContainer:{backgroundColor:n},valueIndicators:{_default:{color:n},rangebar:{color:n,backgroundColor:i},twocolorneedle:{secondColor:n},trianglemarker:{color:n},textcloud:{color:n,text:{font:{color:i}}}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:n,opacity:.4},minorTick:{color:n,opacity:.12},breakStyle:{color:"#cf00d7"}},selectedRangeColor:o,sliderMarker:{color:o},sliderHandle:{color:o,opacity:1},shutter:{opacity:.75},background:{color:i}},map:{background:{borderColor:n},layer:{label:{stroke:i,font:{color:n}}},"layer:area":{borderColor:i,color:"#686868",hoveredBorderColor:n,selectedBorderColor:n,label:{font:{opacity:1}}},"layer:line":{color:"#267cff",hoveredColor:"#f613ff",selectedColor:n},"layer:marker:dot":{borderColor:i,color:a,backColor:i,backOpacity:.32},"layer:marker:bubble":{color:a,hoveredBorderColor:n,selectedBorderColor:n},"layer:marker:pie":{hoveredBorderColor:n,selectedBorderColor:n},controlBar:{borderColor:n,color:i,opacity:.3}},treeMap:{tile:{color:"#70c92f"},group:{color:"#797979",label:{font:{color:n}}}},sparkline:{pointColor:i},bullet:{},polar:{commonSeriesSettings:{}},funnel:{label:{connector:{opacity:1}}},sankey:{label:{font:{color:n},shadow:{opacity:0}},node:{border:{visible:!0,width:1,color:n}},link:{opacity:.5,border:{visible:!0,width:1,color:n},hoverStyle:{opacity:.9}}}},baseThemeName:"generic.light"},{theme:{name:"generic.contrast.compact"},baseThemeName:"generic.contrast"}];t.default=r,e.exports=t.default,e.exports.default=t.default},17374:function(e,t){t.default=void 0;var n="#ffffff",i="#2b2b2b",o="#b5b5b5",a="#303030",r="#c7c7c7",s="#8e8e8e",l="#b8b8b8",u="#494949",d=[{theme:{name:"generic.dark",font:{color:"#808080"},backgroundColor:"#2a2a2a",primaryTitleColor:"#dedede",secondaryTitleColor:"#a3a3a3",gridColor:"#555555",axisColor:"#a3a3a3",export:{backgroundColor:"#2a2a2a",font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:"#2e2e2e"},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#444"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#444444"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#555555"}},shadowColor:"#292929"},tooltip:{color:i,border:{color:u},font:{color:"#929292"}},"chart:common":{commonSeriesSettings:{label:{border:{color:u}},valueErrorBar:{color:n}}},"chart:common:axis":{constantLineStyle:{color:n}},"chart:common:annotation":{font:{color:"#929292"},border:{color:u},color:i,shadow:{opacity:.008,offsetY:4,blur:8}},chart:{commonPaneSettings:{border:{color:u}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:n}}},gauge:{rangeContainer:{backgroundColor:o},valueIndicators:{_default:{color:o},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:n,opacity:.32},minorTick:{color:n,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:o,sliderMarker:{color:o,font:{color:a}},sliderHandle:{color:n,opacity:.2},shutter:{color:i,opacity:.9}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:n}}},"layer:area":{borderColor:a,color:"#686868",hoveredBorderColor:n,selectedBorderColor:n},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:n,selectedBorderColor:n},"layer:marker:pie":{hoveredBorderColor:n,selectedBorderColor:n},legend:{border:{color:"#3f3f3f"},font:{color:n}},controlBar:{borderColor:r,color:a}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:r,firstLastColor:r,barPositiveColor:l,barNegativeColor:s,winColor:l,lossColor:s,pointColor:a},bullet:{targetColor:s},funnel:{item:{border:{color:"#2a2a2a"}}},sankey:{label:{font:{color:n},shadow:{opacity:0}},node:{border:{color:"#2a2a2a"}},link:{color:"#888888",border:{color:"#2a2a2a"},hoverStyle:{color:"#bbbbbb"}}}},baseThemeName:"generic.light"},{theme:{name:"generic.dark.compact"},baseThemeName:"generic.dark"}];t.default=d,e.exports=t.default,e.exports.default=t.default},83313:function(e,t){t.default=void 0;var n="#3debd3",i="#465672",o="#fff",a="#c7ccd4",r="#596980",s=[{theme:{name:"generic.darkmoon",defaultPalette:"Dark Moon",backgroundColor:i,primaryTitleColor:o,secondaryTitleColor:"#919bac",gridColor:r,axisColor:a,export:{backgroundColor:i,font:{color:o},button:{default:{color:o,borderColor:"#7a889e",backgroundColor:i},hover:{color:o,borderColor:"#9da8b8",backgroundColor:"#596e92"},focus:{color:o,borderColor:"#c4cad4",backgroundColor:"#596e92"},active:{color:o,borderColor:"#c4cad4",backgroundColor:"#6b80a4"}}},legend:{font:{color:a}},tooltip:{color:"#62789e",border:{color:r},font:{color:o}},"chart:common":{commonSeriesSettings:{label:{border:{color:r}}}},"chart:common:annotation":{font:{color:o},border:{color:r},color:"#62789e"},chart:{commonPaneSettings:{border:{color:r}},commonAxisSettings:{breakStyle:{color:"#73869e"}}},gauge:{valueIndicators:{rangebar:{color:n},textcloud:{color:n,text:{font:{color:i}}}}},barGauge:{backgroundColor:"#526280"},funnel:{item:{border:{color:i}}},sparkline:{pointColor:i,minColor:"#f0ad4e",maxColor:"#f9517e"},treeMap:{group:{color:r,label:{font:{color:o}}}},map:{background:{borderColor:r},"layer:area":{color:"#97a3b6",borderColor:i}},rangeSelector:{shutter:{color:i},scale:{breakStyle:{color:"#73869e"},tick:{opacity:.2}},selectedRangeColor:n,sliderMarker:{color:n,font:{color:"#000"}},sliderHandle:{color:n,opacity:.5}},bullet:{color:n},sankey:{link:{border:{color:i}},node:{border:{color:i}}}},baseThemeName:"generic.dark"},{theme:{name:"generic.darkmoon.compact"},baseThemeName:"generic.darkmoon"}];t.default=s,e.exports=t.default,e.exports.default=t.default},25257:function(e,t){t.default=void 0;var n="#9c63ff",i="#17171f",o="#f5f6f7",a="#fff",r="#b2b2b6",s="#343840",l=[{theme:{name:"generic.darkviolet",defaultPalette:"Dark Violet",backgroundColor:i,primaryTitleColor:o,secondaryTitleColor:a,gridColor:s,axisColor:r,export:{backgroundColor:i,font:{color:o},button:{default:{color:o,borderColor:"#414152",backgroundColor:i},hover:{color:o,borderColor:"#5c5c74",backgroundColor:"#2d2d3c"},focus:{color:o,borderColor:"#7c7c97",backgroundColor:"#2d2d3c"},active:{color:o,borderColor:"#7c7c97",backgroundColor:"#3c3c51"}}},legend:{font:{color:r}},tooltip:{color:i,border:{color:"#414152"},font:{color:o}},"chart:common":{commonSeriesSettings:{label:{border:{color:s}}}},"chart:common:annotation":{font:{color:o},border:{color:"#414152"},color:i},chart:{commonPaneSettings:{border:{color:s}},commonAxisSettings:{breakStyle:{color:"#575e6b"}}},funnel:{item:{border:{color:i}}},sparkline:{pointColor:i,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:s,label:{font:{color:a}}}},rangeSelector:{shutter:{color:i},scale:{breakStyle:{color:"#575e6b"},tick:{opacity:.2}},selectedRangeColor:n,sliderMarker:{color:n,font:{color:"#fff"}},sliderHandle:{color:n,opacity:.5}},bullet:{color:n},gauge:{valueIndicators:{rangebar:{color:n},textcloud:{color:n}}},sankey:{link:{border:{color:i}},node:{border:{color:i}}}},baseThemeName:"generic.dark"},{theme:{name:"generic.darkviolet.compact"},baseThemeName:"generic.darkviolet"}];t.default=l,e.exports=t.default,e.exports.default=t.default},84253:function(e,t){t.default=void 0;var n="#3cbab2",i="#f5f5f5",o="#28484f",a="#7eb2be",r="#657c80",s="#dedede",l=[{theme:{name:"generic.greenmist",defaultPalette:"Green Mist",backgroundColor:i,primaryTitleColor:o,secondaryTitleColor:a,gridColor:s,axisColor:r,export:{backgroundColor:i,font:{color:o},button:{default:{color:o,borderColor:"#a2b4b8",backgroundColor:i},hover:{color:o,borderColor:"#7f989e",backgroundColor:"rgba(222, 222, 222, 0.4)"},focus:{color:o,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.4)"},active:{color:o,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.8)"}}},legend:{font:{color:r}},tooltip:{color:"#fff",border:{color:s},font:{color:o}},"chart:common":{commonSeriesSettings:{label:{border:{color:s}}}},"chart:common:annotation":{color:"#fff",border:{color:s},font:{color:o}},chart:{commonPaneSettings:{border:{color:s}},commonAxisSettings:{breakStyle:{color:"#c1c1c1"}}},funnel:{item:{border:{color:i}}},sparkline:{pointColor:i,minColor:"#ffc852",maxColor:"#f74a5e"},treeMap:{group:{color:s,label:{font:{color:a}}}},rangeSelector:{shutter:{color:i},scale:{breakStyle:{color:"#c1c1c1"},tick:{opacity:.12}},selectedRangeColor:n,sliderMarker:{color:n},sliderHandle:{color:n,opacity:.5}},bullet:{color:n},gauge:{valueIndicators:{rangebar:{color:n},textcloud:{color:n}}}},baseThemeName:"generic.light"},{theme:{name:"generic.greenmist.compact"},baseThemeName:"generic.greenmist"}];t.default=l,e.exports=t.default,e.exports.default=t.default},8839:function(e,t){t.default=void 0;var n="#ffffff",i="#000000",o="#d3d3d3",a="#303030",r="#ff0000",s="#232323",l="#767676",u="none",d="solid",c="top",h="right",f="bottom",p="left",g="center",m="inside",_="outside",v=[{theme:{name:"generic.light",isDefault:!0,font:{color:l,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:400,size:12,cursor:"default"},redrawOnResize:!0,backgroundColor:n,primaryTitleColor:s,secondaryTitleColor:l,gridColor:o,axisColor:l,title:{backgroundColor:n,font:{size:28,family:"'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:200},subtitle:{font:{size:16},offset:0,wordWrap:"normal",textOverflow:"ellipsis"},wordWrap:"normal",textOverflow:"ellipsis"},loadingIndicator:{text:"Loading..."},export:{backgroundColor:n,margin:10,font:{size:14,color:s,weight:400},button:{margin:{top:8,left:10,right:10,bottom:8},default:{color:"#333",borderColor:"#ddd",backgroundColor:n},hover:{color:"#333",borderColor:"#bebebe",backgroundColor:"#e6e6e6"},focus:{color:i,borderColor:"#9d9d9d",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#9d9d9d",backgroundColor:"#d4d4d4"}},shadowColor:o},tooltip:{enabled:!1,border:{width:1,color:o,dashStyle:d,visible:!0},font:{color:s},color:n,arrowLength:10,paddingLeftRight:18,paddingTopBottom:15,textAlignment:"center",shared:!1,location:g,shadow:{opacity:.4,offsetX:0,offsetY:4,blur:2,color:i},interactive:!1},legend:{hoverMode:"includePoints",verticalAlignment:c,horizontalAlignment:h,position:_,visible:!0,margin:10,markerSize:12,border:{visible:!1,width:1,cornerRadius:0,dashStyle:d},paddingLeftRight:20,paddingTopBottom:15,columnCount:0,rowCount:0,columnItemSpacing:20,rowItemSpacing:8,title:{backgroundColor:n,margin:{left:0,bottom:9,right:0,top:0},font:{size:18,weight:200},subtitle:{offset:0,font:{size:14},wordWrap:"none",textOverflow:"ellipsis"},wordWrap:"none",textOverflow:"ellipsis"}},"chart:common":{animation:{enabled:!0,duration:1e3,easing:"easeOutCubic",maxPointCountSupported:300},commonSeriesSettings:{border:{visible:!1,width:2},showInLegend:!0,visible:!0,hoverMode:"nearestPoint",selectionMode:"includePoints",hoverStyle:{hatching:{direction:h,width:2,step:6,opacity:.75},border:{visible:!1,width:3}},selectionStyle:{hatching:{direction:h,width:2,step:6,opacity:.5},border:{visible:!1,width:3}},valueErrorBar:{displayMode:"auto",value:1,color:i,lineWidth:2,edgeLength:8},label:{visible:!1,alignment:g,rotationAngle:0,horizontalOffset:0,verticalOffset:0,radialOffset:0,showForZeroValues:!0,customizeText:void 0,maxLabelCount:void 0,position:_,font:{color:n},border:{visible:!1,width:1,color:o,dashStyle:d},connector:{visible:!1,width:1}}},seriesSelectionMode:"single",pointSelectionMode:"single",equalRowHeight:!0,dataPrepareSettings:{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},_rtl:{legend:{itemTextPosition:p}},resolveLabelOverlapping:u},"chart:common:axis":{visible:!0,valueMarginsEnabled:!0,placeholderSize:null,logarithmBase:10,discreteAxisDivisionMode:"betweenLabels",width:1,label:{visible:!0},grid:{visible:!1,width:1},minorGrid:{visible:!1,width:1,opacity:.3},tick:{visible:!0,width:1,length:7,shift:3},minorTick:{visible:!1,width:1,opacity:.3,length:7,shift:3},stripStyle:{paddingLeftRight:10,paddingTopBottom:5},constantLineStyle:{width:1,color:i,dashStyle:d,label:{visible:!0,position:m}},marker:{label:{}}},"chart:common:annotation":{font:{color:"#333333"},tooltipEnabled:!0,border:{width:1,color:"#dddddd",dashStyle:d,visible:!0},color:n,opacity:.9,arrowLength:14,arrowWidth:14,paddingLeftRight:10,paddingTopBottom:10,shadow:{opacity:.15,offsetX:0,offsetY:1,blur:4,color:i},image:{width:30,height:30},wordWrap:"normal",textOverflow:"ellipsis",allowDragging:!1},chart:{commonSeriesSettings:{type:"line",stack:"default",aggregation:{enabled:void 0},point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4}},selectionStyle:{border:{visible:!0,width:4}}},scatter:{},line:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:u}},selectionStyle:{width:3}},stackedline:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:u}},selectionStyle:{width:3}},stackedspline:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:u}},selectionStyle:{width:3}},fullstackedline:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:u}},selectionStyle:{width:3}},fullstackedspline:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:u}},selectionStyle:{width:3}},stepline:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:u}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedarea:{point:{visible:!1},opacity:.5},fullstackedarea:{point:{visible:!1},opacity:.5},fullstackedsplinearea:{point:{visible:!1},opacity:.5},steparea:{border:{visible:!0,width:2},point:{visible:!1},hoverStyle:{border:{visible:!0,width:3}},selectionStyle:{border:{visible:!0,width:3}},opacity:.5},spline:{width:2,hoverStyle:{width:3,hatching:{direction:u}},selectionStyle:{width:3}},splinearea:{point:{visible:!1},opacity:.5},stackedsplinearea:{point:{visible:!1},opacity:.5},bar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},stackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:m}},fullstackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:m}},rangebar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},rangearea:{point:{visible:!1},opacity:.5},rangesplinearea:{point:{visible:!1},opacity:.5},bubble:{opacity:.5,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},candlestick:{width:1,reduction:{color:r},hoverStyle:{width:3,hatching:{direction:u}},selectionStyle:{width:3},point:{border:{visible:!0}}},stock:{width:1,reduction:{color:r},hoverStyle:{width:3,hatching:{direction:u}},selectionStyle:{width:3},point:{border:{visible:!0}}}},crosshair:{enabled:!1,color:"#f05b41",width:1,dashStyle:d,label:{visible:!1,font:{color:n,size:12}},verticalLine:{visible:!0},horizontalLine:{visible:!0}},commonAxisSettings:{multipleAxesSpacing:5,forceUserTickInterval:!1,breakStyle:{width:5,color:"#ababab",line:"waved"},label:{displayMode:"standard",overlappingBehavior:"hide",indentFromAxis:10,wordWrap:"normal",textOverflow:"none"},title:{font:{size:16},margin:6,alignment:g},constantLineStyle:{paddingLeftRight:10,paddingTopBottom:10}},horizontalAxis:{position:f,axisDivisionFactor:70,label:{rotationAngle:90,staggeringSpacing:5,alignment:g},stripStyle:{label:{horizontalAlignment:g,verticalAlignment:c}},constantLineStyle:{label:{horizontalAlignment:h,verticalAlignment:c}},constantLines:[]},verticalAxis:{position:p,axisDivisionFactor:40,label:{alignment:h},stripStyle:{label:{horizontalAlignment:p,verticalAlignment:g}},constantLineStyle:{label:{horizontalAlignment:p,verticalAlignment:c}},constantLines:[]},argumentAxis:{endOnTick:!1,workWeek:[1,2,3,4,5]},valueAxis:{grid:{visible:!0},autoBreaksEnabled:!1,maxAutoBreakCount:4},commonPaneSettings:{backgroundColor:u,border:{color:o,width:1,visible:!1,top:!0,bottom:!0,left:!0,right:!0,dashStyle:d}},scrollBar:{visible:!1,offset:5,color:"gray",width:10},adjustOnZoom:!0,autoHidePointMarkers:!0,rotated:!1,synchronizeMultiAxes:!0,stickyHovering:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,zoomAndPan:{dragBoxStyle:{color:"#2a2a2a",opacity:.2},panKey:"shift",allowMouseWheel:!0,allowTouchGestures:!0}},pie:{innerRadius:.5,minDiameter:.5,type:"pie",dataPrepareSettings:{_skipArgumentSorting:!0},commonSeriesSettings:{pie:{border:{visible:!1,width:2,color:n},hoverStyle:{hatching:{direction:h,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:h,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},doughnut:{border:{visible:!1,width:2,color:n},hoverStyle:{hatching:{direction:h,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:h,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},donut:{border:{visible:!1,width:2,color:n},hoverStyle:{hatching:{direction:h,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:h,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},label:{textOverflow:"ellipsis",wordWrap:"normal"}},legend:{hoverMode:"allArgumentPoints",backgroundColor:u},adaptiveLayout:{keepLabels:!1}},gauge:{scale:{tick:{visible:!0,length:5,width:2,opacity:1},minorTick:{visible:!1,length:3,width:1,opacity:1},label:{visible:!0,alignment:g,hideFirstOrLast:"last",overlappingBehavior:"hide"},position:c,endOnTick:!1},rangeContainer:{offset:0,width:5,backgroundColor:"#808080"},valueIndicators:{_default:{color:"#c2c2c2"},rangebar:{space:2,size:10,color:"#cbc5cf",backgroundColor:u,text:{indent:0,font:{size:14,color:null}}},twocolorneedle:{secondColor:"#e18e92"},trianglemarker:{space:2,length:14,width:13,color:"#8798a5"},textcloud:{arrowLength:5,horizontalOffset:6,verticalOffset:3,color:"#679ec5",text:{font:{color:n,size:18}}}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:g,verticalAlignment:f},text:{font:{size:18}}},_circular:{scale:{scaleDivisionFactor:17,orientation:_,label:{indentFromTick:10}},rangeContainer:{orientation:_},valueIndicatorType:"rectangleneedle",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangleneedle",_default:{offset:20,indentFromCenter:0,width:2,spindleSize:14,spindleGapSize:10,beginAdaptingAtRadius:50},triangleneedle:{width:4},twocolorneedle:{space:2,secondFraction:.4},rangebar:{offset:30},trianglemarker:{offset:6},textcloud:{offset:-6}}},_linear:{scale:{scaleDivisionFactor:25,horizontalOrientation:h,verticalOrientation:f,label:{indentFromTick:-10}},rangeContainer:{horizontalOrientation:h,verticalOrientation:f},valueIndicatorType:"rangebar",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangle",_default:{offset:2.5,length:15,width:15},rectangle:{width:10},rangebar:{offset:10,horizontalOrientation:h,verticalOrientation:f},trianglemarker:{offset:10,horizontalOrientation:p,verticalOrientation:c},textcloud:{offset:-1,horizontalOrientation:p,verticalOrientation:c}}}},barGauge:{backgroundColor:"#e0e0e0",relativeInnerRadius:.3,barSpacing:4,resolveLabelOverlapping:"hide",label:{indent:20,connectorWidth:2,font:{size:16}},legend:{visible:!1},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:g,verticalAlignment:f},text:{font:{size:18}}}},rangeSelector:{scale:{valueMarginsEnabled:!0,width:1,color:i,opacity:.1,showCustomBoundaryTicks:!0,label:{overlappingBehavior:"hide",alignment:g,visible:!0,topIndent:7,font:{size:11}},tick:{width:1,color:i,opacity:.17,visible:!0,length:12},minorTick:{width:1,color:i,opacity:.05,visible:!0,length:12},marker:{width:1,color:"#000000",opacity:.1,visible:!0,separatorHeight:33,topIndent:10,textLeftIndent:7,textTopIndent:11,label:{}},logarithmBase:10,workWeek:[1,2,3,4,5],breakStyle:{width:5,color:"#ababab",line:"waved"},endOnTick:!1},selectedRangeColor:"#606060",sliderMarker:{visible:!0,paddingTopBottom:2,paddingLeftRight:4,color:"#606060",invalidRangeColor:r,font:{color:n,size:11}},sliderHandle:{width:1,color:i,opacity:.2},shutter:{opacity:.75},background:{color:"#c0bae1",visible:!0,image:{location:"full"}},behavior:{snapToTicks:!0,animationEnabled:!0,moveSelectedRangeByClick:!0,manualRangeSelectionEnabled:!0,allowSlidersSwap:!0,callValueChanged:"onMovingComplete"},redrawOnResize:!0,chart:{barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,topIndent:.1,bottomIndent:0,valueAxis:{inverted:!1,logarithmBase:10},commonSeriesSettings:{type:"area",aggregation:{enabled:void 0},point:{visible:!1},scatter:{point:{visible:!0}}}}},map:{title:{margin:10},background:{borderWidth:1,borderColor:"#cacaca"},layer:{label:{enabled:!1,stroke:n,"stroke-width":1,"stroke-opacity":.7,font:{color:"#2b2b2b",size:12}}},"layer:area":{borderWidth:1,borderColor:n,color:"#d2d2d2",hoveredBorderColor:a,selectedBorderWidth:2,selectedBorderColor:a,label:{"stroke-width":2,font:{size:16}}},"layer:line":{borderWidth:2,color:"#ba8365",hoveredColor:"#a94813",selectedBorderWidth:3,selectedColor:"#e55100",label:{"stroke-width":2,font:{size:16}}},"layer:marker":{label:{enabled:!0,"stroke-width":1,font:{size:12}}},"layer:marker:dot":{borderWidth:2,borderColor:n,size:8,selectedStep:2,backStep:18,backColor:n,backOpacity:.32,shadow:!0},"layer:marker:bubble":{minSize:20,maxSize:50,hoveredBorderWidth:1,hoveredBorderColor:a,selectedBorderWidth:2,selectedBorderColor:a},"layer:marker:pie":{size:50,hoveredBorderWidth:1,hoveredBorderColor:a,selectedBorderWidth:2,selectedBorderColor:a},"layer:marker:image":{size:20},legend:{verticalAlignment:f,horizontalAlignment:h,position:m,backgroundOpacity:.65,border:{visible:!0},paddingLeftRight:16,paddingTopBottom:12},controlBar:{borderColor:"#5d5d5d",borderWidth:3,color:n,margin:20,opacity:.3},_rtl:{legend:{itemTextPosition:p}}},treeMap:{tile:{border:{width:1,opacity:.2,color:"#000000"},color:"#5f8b95",hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:"right"},border:{opacity:1}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:"#ffffff",weight:600},shadow:{opacity:.6,offsetX:0,offsetY:1,blur:2,color:"#000000"},wordWrap:"normal",textOverflow:"ellipsis"}},group:{padding:4,border:{width:1},color:"#eeeeee",hoverStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:l,weight:600},textOverflow:"ellipsis"}},title:{subtitle:{}},tooltip:{},loadingIndicator:{}},sparkline:{lineColor:"#666666",lineWidth:2,areaOpacity:.2,minColor:"#e8c267",maxColor:"#e55253",barPositiveColor:"#a9a9a9",barNegativeColor:"#d7d7d7",winColor:"#a9a9a9",lossColor:"#d7d7d7",firstLastColor:"#666666",pointSymbol:"circle",pointColor:n,pointSize:4,type:"line",argumentField:"arg",valueField:"val",winlossThreshold:0,showFirstLast:!0,showMinMax:!1,tooltip:{enabled:!0}},bullet:{color:"#e8c267",targetColor:"#666666",targetWidth:4,showTarget:!0,showZeroLevel:!0,tooltip:{enabled:!0}},polar:{commonSeriesSettings:{type:"scatter",closed:!0,point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4},size:12},selectionStyle:{border:{visible:!0,width:4},size:12}},scatter:{},line:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:u}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedline:{width:2},bar:{opacity:.8},stackedbar:{opacity:.8}},adaptiveLayout:{width:80,height:80,keepLabels:!0},barGroupPadding:.3,commonAxisSettings:{visible:!0,forceUserTickInterval:!1,label:{overlappingBehavior:"hide",indentFromAxis:5},grid:{visible:!0},minorGrid:{visible:!0},tick:{visible:!0},title:{font:{size:16},margin:10}},argumentAxis:{startAngle:0,firstPointOnStartAngle:!1,period:void 0},valueAxis:{endOnTick:!1,tick:{visible:!1}},horizontalAxis:{position:c,axisDivisionFactor:50,label:{alignment:g}},verticalAxis:{position:c,axisDivisionFactor:30,label:{alignment:h}}},funnel:{sortData:!0,valueField:"val",colorField:"color",argumentField:"arg",hoverEnabled:!0,selectionMode:"single",item:{border:{visible:!1,width:2,color:n},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:h},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:h},border:{}}},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},legend:{visible:!1},_rtl:{legend:{itemTextPosition:p}},tooltip:{customizeTooltip:function(e){return{text:e.item.argument+" "+e.valueText}}},inverted:!1,algorithm:"dynamicSlope",neckWidth:0,neckHeight:0,resolveLabelOverlapping:"shift",label:{textOverflow:"ellipsis",wordWrap:"normal",visible:!0,horizontalAlignment:h,horizontalOffset:0,verticalOffset:0,showForZeroValues:!1,customizeText:function(e){return e.item.argument+" "+e.valueText},position:"columns",font:{color:n},border:{visible:!1,width:1,color:o,dashStyle:d},connector:{visible:!0,width:1,opacity:.5}}},sankey:{sourceField:"source",targetField:"target",weightField:"weight",hoverEnabled:!0,alignment:g,adaptiveLayout:{width:80,height:80,keepLabels:!0},label:{visible:!0,horizontalOffset:8,verticalOffset:0,overlappingBehavior:"ellipsis",useNodeColors:!1,font:{color:i,weight:500},border:{visible:!1,width:2,color:n},customizeText:function(e){return e.title},shadow:{opacity:.2,offsetX:0,offsetY:1,blur:1,color:n}},title:{margin:10,font:{size:28,weight:200},subtitle:{font:{size:16}}},tooltip:{enabled:!0},node:{padding:30,width:8,opacity:1,border:{color:n,width:1,visible:!1},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:h},border:{}}},link:{color:"#888888",colorMode:"none",opacity:.3,border:{color:n,width:1,visible:!1},hoverStyle:{opacity:.5,hatching:{opacity:.75,step:6,width:2,direction:h},border:{}}}}},baseThemeName:void 0},{theme:{name:"generic.light.compact"},baseThemeName:"generic.light"}];t.default=v,e.exports=t.default,e.exports.default=t.default},60350:function(e,t){t.default=void 0;var n="#7ab8eb",i="#fff",o="#333",a="#99a1a8",r="#707070",s="#e8eaeb",l=[{theme:{name:"generic.softblue",defaultPalette:"Soft Blue",backgroundColor:i,primaryTitleColor:o,secondaryTitleColor:a,gridColor:s,axisColor:r,export:{backgroundColor:i,font:{color:o},button:{default:{color:o,borderColor:"#c9d0d4",backgroundColor:i},hover:{color:o,borderColor:"#a7b2b9",backgroundColor:"#e6e6e6"},focus:{color:o,borderColor:"#82929b",backgroundColor:"#e6e6e6"},active:{color:o,borderColor:"#82929b",backgroundColor:"#d4d4d4"}}},legend:{font:{color:r}},tooltip:{color:i,border:{color:s},font:{color:o}},"chart:common":{commonSeriesSettings:{label:{border:{color:s}}}},"chart:common:annotation":{color:i,border:{color:s},font:{color:o}},chart:{commonPaneSettings:{border:{color:s}},commonAxisSettings:{breakStyle:{color:"#cfd2d3"}}},rangeSelector:{scale:{breakStyle:{color:"#cfd2d3"},tick:{opacity:.12}},selectedRangeColor:n,sliderMarker:{color:n},sliderHandle:{color:n,opacity:.5}},sparkline:{pointColor:i,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:s,label:{font:{color:a}}}},bullet:{color:n},gauge:{valueIndicators:{rangebar:{color:n},textcloud:{color:n}}}},baseThemeName:"generic.light"},{theme:{name:"generic.softblue.compact"},baseThemeName:"generic.softblue"}];t.default=l,e.exports=t.default,e.exports.default=t.default},11239:function(e,t){t.default=void 0;var n="'Roboto', 'RobotoFallback', 'Helvetica', 'Arial', sans-serif",i="rgba(0,0,0,0.54)",o="rgba(255,255,255,0.87)",a="rgba(255,255,255,0.54)",r="#363640",s="#ffffff",l="#b5b5b5",u="#c7c7c7",d="#8e8e8e",c="#b8b8b8",h="#494949",f="#818181",p=[{theme:{name:"material",defaultPalette:"Material",font:{family:n},title:{margin:{top:20,bottom:20,left:0,right:0},font:{size:20,family:n,weight:500},horizontalAlignment:"left",subtitle:{font:{size:14},horizontalAlignment:"left"}},tooltip:{shadow:{opacity:0},border:{visible:!1},paddingLeftRight:8,paddingTopBottom:6,arrowLength:0,location:"edge",color:"#616161",font:{color:s},cornerRadius:4},chart:{commonAxisSettings:{minorTick:{opacity:.5},label:{font:{size:11}}},commonAnnotationSettings:{font:{color:s},border:{color:"#616161"},color:"#616161",arrowLength:14,arrowWidth:0,shadow:{opacity:.08,offsetY:4,blur:8},cornerRadius:4}},pie:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},polar:{commonAxisSettings:{minorTick:{opacity:.5}},title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},funnel:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},gauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},barGauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},rangeSelector:{sliderHandle:{opacity:.5}},treeMap:{group:{label:{font:{weight:500}}}}},baseThemeName:"generic.light"},{theme:{name:"material.light",gridColor:"#e0e0e0",axisColor:i,primaryTitleColor:"rgba(0,0,0,0.87)",legend:{font:{color:i}},chart:{scrollBar:{color:"#bfbfbf",opacity:.7}},gauge:{rangeContainer:{backgroundColor:"rgba(0,0,0,0.2)"}},barGauge:{backgroundColor:"#efefef"}},baseThemeName:"material"},{theme:{name:"material.dark",gridColor:"#515159",backgroundColor:r,axisColor:a,font:{color:a},primaryTitleColor:o,secondaryTitleColor:o,tooltip:{color:"#000"},export:{backgroundColor:r,font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:r},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#3f3f4b"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"}},shadowColor:"#292929"},"chart:common":{commonSeriesSettings:{label:{border:{color:h}},valueErrorBar:{color:s}}},"chart:common:axis":{constantLineStyle:{color:s}},"chart:common:annotation":{border:{color:"#000"},color:"#000"},chart:{commonPaneSettings:{border:{color:h}},commonAxisSettings:{breakStyle:{color:f}},zoomAndPan:{dragBoxStyle:{color:s}}},gauge:{rangeContainer:{backgroundColor:l},valueIndicators:{_default:{color:l},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:s,opacity:.32},minorTick:{color:s,opacity:.1},breakStyle:{color:f}},selectedRangeColor:l,sliderMarker:{color:l,font:{color:r}},sliderHandle:{color:s,opacity:.2},shutter:{color:s,opacity:.1}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:s}}},"layer:area":{borderColor:r,color:"#686868",hoveredBorderColor:s,selectedBorderColor:s},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:s,selectedBorderColor:s},"layer:marker:pie":{hoveredBorderColor:s,selectedBorderColor:s},legend:{border:{color:"#3f3f3f"},font:{color:s}},controlBar:{borderColor:u,color:r}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:u,firstLastColor:u,barPositiveColor:c,barNegativeColor:d,winColor:c,lossColor:d,pointColor:r},bullet:{targetColor:d},funnel:{item:{border:{color:r}}},sankey:{label:{font:{color:s}}}},baseThemeName:"material"}];function g(e,t,n){return{theme:{name:"material."+e+"."+t,rangeSelector:{selectedRangeColor:n,sliderMarker:{color:n},sliderHandle:{color:n}},map:{"layer:marker:dot":{color:n},"layer:marker:bubble":{color:n},legend:{markerColor:n}},bullet:{color:n},gauge:{valueIndicators:{rangebar:{color:n},textcloud:{color:n}}}},baseThemeName:"material."+t}}var m={blue:"#03a9f4",lime:"#cddc39",orange:"#ff5722",purple:"#9c27b0",teal:"#009688"};for(var _ in m)if(Object.prototype.hasOwnProperty.call(m,_)){var v=m[_];p.push(g(_,"light",v),g(_,"dark",v),{theme:{name:"material.".concat(_,".light.compact")},baseThemeName:"material.".concat(_,".light")},{theme:{name:"material.".concat(_,".dark.compact")},baseThemeName:"material.".concat(_,".dark")})}var y=p;t.default=y,e.exports=t.default,e.exports.default=t.default},17384:function(e,t,n){t.plugin=t.Title=void 0;var i=n(35922),o=n(13306),a=n(19157),r=n(73711),s=Number,l=(0,a.enumParser)(["left","center","right"]),u=(0,a.enumParser)(["top","bottom"]);function d(e){return!!(e&&String(e).length>0)}function c(e,t,n,i,o){e.attr({text:t}).setMaxSize(n,o,i).textChanged&&e.setTitle(t)}function h(e){return e>=0?s(e):10}var f=function(e){this._params=e,this._group=e.renderer.g().attr({class:e.cssClass}).linkOn(e.root||e.renderer.root,"title"),this._hasText=!1};t.Title=f,(0,o.extend)(f.prototype,r.LayoutElement.prototype,{dispose:function(){var e=this;e._group.linkRemove(),e._group.linkOff(),e._titleElement&&(e._clipRect.dispose(),e._titleElement=e._subtitleElement=e._clipRect=null),e._params=e._group=e._options=null},_updateOptions:function(e){var t;this._options=e,this._options.horizontalAlignment=l(e.horizontalAlignment,"center"),this._options.verticalAlignment=u(e.verticalAlignment,"top"),this._options.margin=(t=e.margin)>=0?{left:s(t),top:s(t),right:s(t),bottom:s(t)}:{left:h((t=t||{}).left),top:h(t.top),right:h(t.right),bottom:h(t.bottom)}},_updateStructure:function(){var e=this,t=e._params.renderer,n=e._group,i=e._options,o=i.horizontalAlignment;e._titleElement||(e._titleElement=t.text().append(n),e._subtitleElement=t.text(),e._clipRect=t.clipRect(),n.attr({"clip-path":e._clipRect.id})),e._titleElement.attr({align:o,class:i.cssClass}),e._subtitleElement.attr({align:o,class:i.subtitle.cssClass}),n.linkAppend(),d(i.subtitle.text)?e._subtitleElement.append(n):e._subtitleElement.remove()},_updateTexts:function(){var e,t=this,n=t._options,i=n.subtitle,o=t._titleElement,r=t._subtitleElement;o.attr({text:"A",y:0}).css((0,a.patchFontOptions)(n.font)),e=o.getBBox(),t._baseLineCorrection=e.height+e.y,o.attr({text:n.text});var s=-(e=o.getBBox()).y;o.attr({y:s}),d(i.text)&&r.attr({text:i.text,y:0}).css((0,a.patchFontOptions)(i.font))},_shiftSubtitle:function(){var e=this,t=e._titleElement.getBBox(),n=e._subtitleElement,i=e._options.subtitle.offset;n.move(0,t.y+t.height-n.getBBox().y-i)},_updateBoundingRectAlignment:function(){var e=this._boundingRect,t=this._options;e.verticalAlignment=t.verticalAlignment,e.horizontalAlignment=t.horizontalAlignment,e.cutLayoutSide=t.verticalAlignment,e.cutSide="vertical",e.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment}},hasText:function(){return this._hasText},update:function(e,t){var n=this,a=(0,o.extend)(!0,{},e,function(e){var t=(0,i.isString)(e)?{text:e}:e||{};return t.subtitle=(0,i.isString)(t.subtitle)?{text:t.subtitle}:t.subtitle||{},t}(t)),r=d(a.text),s=r||r!==n._hasText;return n._baseLineCorrection=0,n._updateOptions(a),n._boundingRect={},r?(n._updateStructure(),n._updateTexts()):n._group.linkRemove(),n._updateBoundingRect(),n._updateBoundingRectAlignment(),n._hasText=r,s},draw:function(e,t){var n=this;return n._hasText&&(n._group.linkAppend(),n._correctTitleLength(e),n._group.getBBox().height>t&&this.freeSpace()),n},_correctTitleLength:function(e){var t=this,n=t._options,i=n.margin,o=e-i.left-i.right,a=n.placeholderSize;c(t._titleElement,n.text,o,n,a),t._subtitleElement&&(s(a)>0&&(a-=t._titleElement.getBBox().height),c(t._subtitleElement,n.subtitle.text,o,n.subtitle,a),t._shiftSubtitle()),t._updateBoundingRect();var r=this.getCorrectedLayoutOptions(),l=r.x,u=r.y,d=r.height;this._clipRect.attr({x:l,y:u,width:e,height:d})},getLayoutOptions:function(){return this._boundingRect||null},shift:function(e,t){var n=this,i=n.getLayoutOptions();return n._group.move(e-i.x,t-i.y),n},_updateBoundingRect:function(){var e=this,t=e._options,n=t.margin,i=e._boundingRect,o=e._hasText?e._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0};o.isEmpty||(o.height+=n.top+n.bottom-e._baseLineCorrection,o.width+=n.left+n.right,o.x-=n.left,o.y+=e._baseLineCorrection-n.top),t.placeholderSize>0&&(o.height=t.placeholderSize),i.height=o.height,i.width=o.width,i.x=o.x,i.y=o.y},getCorrectedLayoutOptions:function(){var e=this.getLayoutOptions(),t=this._baseLineCorrection;return(0,o.extend)({},e,{y:e.y-t,height:e.height+t})},layoutOptions:function(){return this._hasText?{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}:null},measure:function(e){return this.draw(e[0],e[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(e,t){!function(e,t){return e[2]-e[0]<t.width||e[3]-e[1]<t.height}(e,this._boundingRect)?this.shift(Math.round(e[0]),Math.round(e[1])):this.shift(t[0],t[1])},freeSpace:function(){var e=this;e._params.incidentOccurred("W2103"),e._group.linkRemove(),e._boundingRect.width=e._boundingRect.height=0},getOptions:function(){return this._options},changeLink:function(e){this._group.linkRemove(),this._group.linkOn(e,"title")}});var p={name:"title",init:function(){var e=this;e._title=new f({renderer:e._renderer,cssClass:e._rootClassPrefix+"-title",incidentOccurred:e._incidentOccurred}),e._layout.add(e._title)},dispose:function(){this._title.dispose(),this._title=null},customize:function(e){e.addChange({code:"TITLE",handler:function(){this._title.update(this._themeManager.theme("title"),this.option("title"))&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})},fontFields:["title.font","title.subtitle.font"]};t.plugin=p},14371:function(e,t,n){t.plugin=t.Tooltip=void 0;var i=n(58664),o=p(n(73349)),a=n(58201),r=n(78008),s=p(n(68374)),l=n(56453),u=n(35922),d=n(13306),c=n(19157),h=p(n(30343)),f=n(64509);function p(e){return e&&e.__esModule?e:{default:e}}var g=h.default.format,m=Math.ceil,_=Math.max,v=Math.min,y=(0,a.getWindow)();function x(e){e.css({left:"-9999px"}).detach()}var b=function(e){var t,n=this;n._eventTrigger=e.eventTrigger,n._widgetRoot=e.widgetRoot,n._widget=e.widget,n._wrapper=(0,s.default)("<div>").css({position:"absolute",overflow:"hidden",pointerEvents:"none"}).addClass(e.cssClass),n._renderer=t=new l.Renderer({pathModified:e.pathModified,container:n._wrapper[0]}),t.root.attr({"pointer-events":"none"}),n._text=t.text(void 0,0,0),n._textGroupHtml=(0,s.default)("<div>").css({position:"absolute",padding:0,margin:0,border:"0px solid transparent"}).appendTo(n._wrapper),n._textHtml=(0,s.default)("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(n._textGroupHtml)};t.Tooltip=b,b.prototype={constructor:b,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var e=this._options,t=(0,s.default)(this._widgetRoot).closest(e.container);return 0===t.length&&(t=(0,s.default)(e.container)),(t.length?t:(0,s.default)("body")).get(0)},setTemplate:function(e){this._template=e?this._widget._getTemplate(e):null},setOptions:function(e){var t=this;e=e||{};var n=this;n._options=e,n._textFontStyles=(0,c.patchFontOptions)(e.font),n._textFontStyles.color=n._textFontStyles.fill,n._wrapper.css({zIndex:e.zIndex}),n._customizeTooltip=e.customizeTooltip;var o=n._textGroupHtml,a=n._textHtml;this.plaque&&this.plaque.clear(),this.setTemplate(e.contentTemplate);var r=e.interactive?"auto":"none";return e.interactive&&this._renderer.root.css({"-ms-user-select":"auto","-moz-user-select":"auto","-webkit-user-select":"auto"}),this.plaque=new f.Plaque({opacity:n._options.opacity,color:n._options.color,border:n._options.border,paddingLeftRight:n._options.paddingLeftRight,paddingTopBottom:n._options.paddingTopBottom,arrowLength:n._options.arrowLength,arrowWidth:20,shadow:n._options.shadow,cornerRadius:n._options.cornerRadius},n,n._renderer.root,(function(s){var l=s.group,u=s.onRender,d=s.eventData,c=s.isMoving,h=s.templateCallback,f=void 0===h?function(){}:h,p=n._state;if(!c){var g=n._template,m=g&&!p.formatObject.skipTemplate;if(p.html||m){if(o.css({color:p.textColor,width:3e3,pointerEvents:r}),m)return void g.render({model:p.formatObject,container:a,onRendered:function(){if(p.html=a.html(),0===(0,i.getWidth)(a)&&0===(0,i.getHeight)(a))return t.plaque.clear(),void f(!1);u(),n._riseEvents(d),n._moveWrapper(),n.plaque.customizeCloud({fill:p.color,stroke:p.borderColor,"pointer-events":r}),f(!0)}});n._text.attr({text:""}),a.html(p.html)}else n._text.css({fill:p.textColor}).attr({text:p.text,class:e.cssClass,"pointer-events":r}).append(l.attr({align:e.textAlignment}));n._riseEvents(d),n.plaque.customizeCloud({fill:p.color,stroke:p.borderColor,"pointer-events":r})}return u(),n._moveWrapper(),!0}),!0,(function(e,t){if(e._state.html){var n,i=y.getComputedStyle;return i?(n=i(a.get(0)),n={x:0,y:0,width:m(parseFloat(n.width)),height:m(parseFloat(n.height))}):(n=a.get(0).getBoundingClientRect(),n={x:0,y:0,width:m(n.width?n.width:n.right-n.left),height:m(n.height?n.height:n.bottom-n.top)}),n}return t.getBBox()}),(function(e,t,i,o){e._state.html?n._textGroupHtml.css({left:i,top:o}):t.move(i,o)})),n},_riseEvents:function(e){var t=this;t._eventData&&t._eventTrigger("tooltipHidden",t._eventData),t._eventData=e,t._eventTrigger("tooltipShown",t._eventData)},setRendererOptions:function(e){return this._renderer.setOptions(e),this._textGroupHtml.css({direction:e.rtl?"rtl":"ltr"}),this},update:function(e){var t=this;t.setOptions(e),x(t._wrapper);var n={};for(var i in t._textFontStyles)n[(0,r.camelize)(i)]=t._textFontStyles[i];return t._textGroupHtml.css(n),t._text.css(t._textFontStyles),t._eventData=null,t},_prepare:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._customizeTooltip,i=this._options,o={};return(0,u.isFunction)(n)&&(o=n.call(e,e),"text"in(o=(0,u.isPlainObject)(o)?o:{})&&(t.text=(0,u.isDefined)(o.text)?String(o.text):""),"html"in o&&(t.html=(0,u.isDefined)(o.html)?String(o.html):"")),"text"in t||"html"in t||(t.text=e.valueText||e.description||""),t.color=o.color||i.color,t.borderColor=o.borderColor||(i.border||{}).color,t.textColor=o.fontColor||(this._textFontStyles||{}).color,!!t.text||!!t.html||!!this._template},show:function(e,t,n,i,o){var a=this;if(a._options.forceEvents)return n.x=t.x,n.y=t.y-t.offset,a._riseEvents(n),!0;var r={formatObject:e,eventData:n,templateCallback:o};if(!a._prepare(e,r,i))return!1;a._state=r,a._wrapper.appendTo(a._getContainer()),a._clear();var s=(0,d.extend)({},a._options,{canvas:a._getCanvas()},r,{x:t.x,y:t.y,offset:t.offset});return this.plaque.clear().draw(s)},isCursorOnTooltip:function(e,t){if(this._options.interactive){var n=this.plaque.getBBox();return e>n.x&&e<n.x+n.width&&t>n.y&&t<n.y+n.height}return!1},hide:function(){var e=this;x(e._wrapper),e._eventData&&(e._eventTrigger("tooltipHidden",e._eventData),e._clear(),e._eventData=null)},_clear:function(){this._textHtml.empty()},move:function(e,t,n){this.plaque.draw({x:e,y:t,offset:n,canvas:this._getCanvas(),isMoving:!0})},_moveWrapper:function(){var e=this,t=this.plaque.getBBox();e._renderer.resize(t.width,t.height);var n=e._wrapper.css({left:0,top:0}).offset(),o=t.x,a=t.y;e._wrapper.css({left:o-n.left,top:a-n.top}),this.plaque.moveRoot(-o,-a),this._state.html&&(e._textHtml.css({left:-o,top:-a}),e._textGroupHtml.css({width:m((0,i.getWidth)(e._textHtml))}))},formatValue:function(e,t){var n=t?function(e,t){var n=e;switch(t){case"argument":n={format:e.argumentFormat};break;case"percent":n={format:{type:"percent",precision:e.format&&e.format.percentPrecision}}}return n}(this._options,t):this._options;return g(e,n.format)},getLocation:function(){return(0,c.normalizeEnum)(this._options.location)},isEnabled:function(){return!!this._options.enabled||!!this._options.forceEvents},isShared:function(){return!!this._options.shared},_getCanvas:function(){var e=this._getContainer(),t=e.getBoundingClientRect(),n=o.default.getDocumentElement(),i=o.default.getDocument(),a=y.pageXOffset||n.scrollLeft||0,r=y.pageYOffset||n.scrollTop||0,s={left:a,top:r,width:_(n.clientWidth,i.body.clientWidth)+a,height:_(i.body.scrollHeight,n.scrollHeight,i.body.offsetHeight,n.offsetHeight,i.body.clientHeight,n.clientHeight),right:0,bottom:0};return e!==o.default.getBody()&&(a=_(s.left,s.left+t.left),r=_(s.top,s.top+t.top),s.width=v(t.width,s.width)+a+s.left,s.height=v(t.height,s.height)+r+s.top,s.left=a,s.top=r),s}};var w={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new b({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified"),widgetRoot:this.element(),widget:this})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},extenders:{_stopCurrentHandling:function(){this._tooltip&&this._tooltip.hide()}},customize:function(e){var t=e.prototype;t._eventsMap.onTooltipShown={name:"tooltipShown"},t._eventsMap.onTooltipHidden={name:"tooltipHidden"},e.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),e.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})},fontFields:["tooltip.font"]};t.plugin=w},19157:function(e,t,n){t.PANE_PADDING=void 0,t.adjustVisualRange=function(e,t,n,i){var a=(0,o.isDefined)(t.startValue),r=(0,o.isDefined)(t.endValue),s="discrete"!==e.axisType;i=i||n;var l=q(e,!1),u=a?t.startValue:i.min,d=r?t.endValue:i.max,c=t.length,h=i.categories;if(s&&!(0,o.isDefined)(u)&&!(0,o.isDefined)(d))return{startValue:u,endValue:d};if((0,o.isDefined)(c))if(s)"datetime"!==e.dataType||(0,o.isNumeric)(c)||(c=k(c)),r&&!a||!r&&!a?((0,o.isDefined)(n.max)&&(d=d>n.max?n.max:d),u=l(d,c,-1)):a&&!r&&((0,o.isDefined)(n.min)&&(u=u<n.min?n.min:u),d=l(u,c));else if(c=parseInt(c),!isNaN(c)&&isFinite(c))if(c--,r||a){if(a&&!r)d=G(h,u,void 0).categories[c];else if(!a&&r){var f=G(h,void 0,d);u=f.categories[f.categories.length-1-c]}}else d=h[h.length-1],u=h[h.length-1-c];return s&&((0,o.isDefined)(n.max)&&d>n.max&&(d=n.max),(0,o.isDefined)(n.min)&&u<n.min&&(u=n.min)),{startValue:u,endValue:d}},t.convertAngleToRendererSpace=void 0,t.convertPolarToXY=function(e,t,n,i){var a=i>0?i:0;n=(0,o.isDefined)(n)?n+t-90:0;var r=M(n);return{x:S(e.x+a*r.cos),y:S(e.y+a*r.sin)}},t.convertVisualRangeObject=function(e,t){return t?e:[e.startValue,e.endValue]},t.enumParser=t.degreesToRadians=t.decreaseGaps=t.convertXYToPolar=void 0,t.getAddFunction=q,t.getLog=t.getDistance=t.getDecimalOrder=t.getCosAndSin=t.getCategoriesInfo=t.getAppropriateFormat=t.getAdjustedLog10=void 0,t.getLogExt=$,t.getVerticallyShiftedAngularCoords=t.getPower=void 0,t.getVizRangeObject=function(e){return Array.isArray(e)?{startValue:e[0],endValue:e[1]}:e||{}},t.isRelativeHeightPane=j,t.map=V,t.mergeMarginOptions=function(e,t){return{checkInterval:e.checkInterval||t.checkInterval,size:b(e.size||0,t.size||0),percentStick:e.percentStick||t.percentStick,sizePointNormalState:b(e.sizePointNormalState||0,t.sizePointNormalState||0)}},t.normalizeAngle=void 0,t.normalizeBBox=W,t.normalizeEnum=H,t.normalizePanesHeight=function(e){e.forEach((function(e){var t=e.height,n=0,i=parseFloat(t)||void 0;((0,o.isString)(t)&&t.indexOf("px")>-1||(0,o.isNumeric)(t)&&t>1)&&(i=S(i),n=1),!n&&i&&((0,o.isString)(t)&&t.indexOf("%")>-1?(i/=100,n=2):i<0&&(i=i<-1?1:f(i))),e.height=i,e.unit=n}));var t=e.filter(j),n=t.reduce((function(e,t){return e+(t.height||0)}),0),i=t.length,a=t.filter((function(e){return!e.height})),r=a.length;if(n<1&&r)a.forEach((function(e){return e.height=(1-n)/r}));else if(n>1||n<1&&!r||1===n&&r){if(r){var s=n/i,l=r*s;t.filter((function(e){return e.height})).forEach((function(e){return e.height*=(n-l)/n})),a.forEach((function(e){return e.height=s}))}t.forEach((function(e){return e.height*=1/n}))}},t.patchFontOptions=t.parseScalar=void 0,t.pointInCanvas=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},t.raiseTo=t.processSeriesTemplate=void 0,t.raiseToExt=K,t.rangesAreEqual=function(e,t){return Array.isArray(t)?e.length===t.length&&e.every((function(e,n){return U(e)===U(t[n])})):U(e.startValue)===U(t.startValue)&&U(e.endValue)===U(t.endValue)},t.rotateBBox=function(e,t,n){var i=T(w(n*D).toFixed(3)),o=T(C(n*D).toFixed(3)),a=e.width/2,r=e.height/2,s=e.x+a,l=e.y+r,u=f(a*i)+f(r*o),d=f(a*o)+f(r*i);return W({x:t[0]+(s-t[0])*i+(l-t[1])*o-u,y:t[1]-(s-t[0])*o+(l-t[1])*i-d,width:2*u,height:2*d})},t.roundValue=void 0,t.setCanvasValues=N,t.unique=void 0,t.updatePanesCanvases=function(e,t,n){var i=0,o=n?t.width-t.left-t.right:t.height-t.top-t.bottom,r=e.reduce((function(e,t){return e+(j(t)?0:t.height)}),0),s=o-10*(e.length-1)-r,l=n?"left":"top",u=n?"right":"bottom";e.forEach((function(e){var n=j(e)?S(e.height*s):e.height;e.canvas=e.canvas||{},(0,a.extend)(e.canvas,t),e.canvas[l]=t[l]+i,e.canvas[u]=t[u]+(o-n-i),i=i+n+10,N(e.canvas)}))},t.valueOf=U;var i=n(20576),o=n(35922),a=n(13306),r=n(95479),s=n(60810),l=d(n(91198)),u=d(n(52752));function d(e){return e&&e.__esModule?e:{default:e}}var c=Math.PI,h=Math.LN10,f=Math.abs,p=Math.log,g=Math.floor,m=Math.ceil,_=Math.pow,v=Math.sqrt,y=Math.atan2,x=Math.min,b=Math.max,w=Math.cos,C=Math.sin,S=Math.round,k=l.default.dateToMilliseconds,D=c/180,I=isNaN,T=Number;t.PANE_PADDING=10;var E=function(e,t){return e?p(e)/p(t):NaN};t.getLog=E,t.getAdjustedLog10=function(e){return(0,s.adjust)(E(e,10))};var A=function(e,t){return _(t,e)};t.raiseTo=A;var O=function(e){return(e%360+360)%360};t.normalizeAngle=O,t.convertAngleToRendererSpace=function(e){return 90-e};var P=function(e){return c*e/180};t.degreesToRadians=P;var M=function(e){var t=P(e);return{cos:w(t),sin:C(t)}};t.getCosAndSin=M;var R=function(e,t,n,i){var o=n-e,a=i-t;return v(a*a+o*o)};t.getDistance=R;var B=function(e){var t,n=f(e);return I(n)?NaN:n>0?(n=p(n)/h,(t=m(n))-n<1e-14?t:g(n)):0};function V(e,t){for(var n,i=0,o=e.length,a=[];i<o;)null!==(n=t(e[i],i))&&a.push(n),i++;return a}function F(e,t){return V(t,(function(t){return e[t]?e[t]:null}))}function L(e,t,n,i){var o=i;return(0,r.each)(t,(function(t,i){e[i]&&(e[i]-=n,o-=n)})),o}function H(e){return String(e).toLowerCase()}function N(e){return e&&(e.originalTop=e.top,e.originalBottom=e.bottom,e.originalLeft=e.left,e.originalRight=e.right),e}function z(e){return-1e10<e&&e<1e10?e:0}function W(e){var t=z(g(e.x)),n=z(g(e.y)),i={x:t,y:n,width:z(m(e.width+e.x))-t,height:z(m(e.height+e.y))-n};return i.isEmpty=!(i.x||i.y||i.width||i.height),i}t.getDecimalOrder=B,t.getAppropriateFormat=function(e,t,n){var i,o=b(B(e),B(t)),a=-B(f(t-e)/n);return I(o)||I(a)?null:(f(o)<=4?(i="fixedPoint",a<0&&(a=0),a>4&&(a=4)):(i="exponential",(a+=o-1)>3&&(a=3)),{type:i,precision:a})},t.roundValue=function(e,t){if(t>20&&(t=20),(0,o.isNumeric)(e))return(0,o.isExponential)(e)?T(e.toExponential(t)):T(e.toFixed(t))},t.getPower=function(e){return e.toExponential().split("e")[1]},t.decreaseGaps=function(e,t,n){var i;do{(i=F(e,t)).push(m(n/i.length)),n=L(e,t,x.apply(null,i),n)}while(n>0&&i.length>1);return n},t.parseScalar=function(e,t){return void 0!==e?e:t},t.enumParser=function(e){var t,n,i={};for(t=0,n=e.length;t<n;++t)i[H(e[t])]=1;return function(e,t){var n=H(e);return i[n]?n:t}},t.patchFontOptions=function(e){var t={};return(0,r.each)(e||{},(function(n,i){if(/^(cursor)$/i.test(n));else if("opacity"===n)i=null;else if("color"===n){if(n="fill","opacity"in e){var o=new u.default(i);i="rgba(".concat(o.r,",").concat(o.g,",").concat(o.b,",").concat(e.opacity,")")}}else n="font-"+n;t[n]=i})),t},t.convertXYToPolar=function(e,t,n){var i=R(e.x,e.y,t,n),o=y(n-e.y,t-e.x);return{phi:S(O(180*o/c)),r:S(i)}},t.processSeriesTemplate=function(e,t){var n,r,s,l=(0,o.isFunction)(e.customizeSeries)?e.customizeSeries:i.noop,u=e.nameField,d={},c=[],h=0;for(r=(t=t||[]).length;h<r;h++)u in(s=t[h])&&((n=d[s[u]])||(n=d[s[u]]={name:s[u],nameFieldValue:s[u]},c.push(n.name)));return V(c,(function(e){var t=d[e];return(0,a.extend)(t,l.call(null,t.name))}))};var G=function(e,t,n){if(0===e.length)return{categories:[]};t=(0,o.isDefined)(t)?t:e[0],n=(0,o.isDefined)(n)?n:e[e.length-1];var i,a=V(e,(function(e){return null==e?void 0:e.valueOf()})),r=a.indexOf(t.valueOf()),s=a.indexOf(n.valueOf()),l=!1;r<0&&(r=0),s<0&&(s=e.length-1),s<r&&(i=s,s=r,r=i,l=!0);var u=e.slice(r,s+1),d=u.length-1;return{categories:u,start:u[l?d:0],end:u[l?0:d],inverted:l}};function j(e){return!(e.unit%2)}function q(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=$(t,e.base)+i*n;return K(o,e.base)}:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=e+i*n;return t&&o*e<=0?0:o}}function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!n)return E(e,t);if(0===e)return 0;var o=E(f(e),t)-(i-1);return o<0?0:(0,s.adjust)((0,s.sign)(e)*o,Number(_(t,i-1).toFixed(f(i))))}function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!n)return A(e,t);if(0===e)return 0;var o=A(f(e)+(i-1),t);return o<0?0:(0,s.adjust)((0,s.sign)(e)*o,Number(_(t,i).toFixed(f(i))))}function U(e){return e&&e.valueOf()}t.getCategoriesInfo=G,t.unique=function(e){var t={};return V(e,(function(e){var n=t[e]?null:e;return t[e]=!0,n}))},t.getVerticallyShiftedAngularCoords=function(e,t,n){var i=e.x+e.width/2>=n.x,o=(i?e.x:e.x+e.width)-n.x,a=e.y-n.y,r=a+t,s=S(v(o*o+a*a-r*r)),l=(i?+s:-s)||o;return{x:n.x+(i?l:l-e.width),y:e.y+t}}},5259:function(e,t,n){var i=n(82454);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))},30187:function(e,t,n){t.default=void 0;var i,o=(i=n(44697))&&i.__esModule?i:{default:i},a=n(47250),r=n(82454),s=n(17384),l=n(16342),u=n(76686),d=n(32037),c=n(64758);o.default.addPlugin(a.plugin),o.default.addPlugin(r.plugin),o.default.addPlugin(s.plugin),o.default.addPlugin(l.plugin),o.default.addPlugin(u.plugin),o.default.addPlugin(d.plugin),o.default.addPlugin(c.plugin);var h=o.default;t.default=h,e.exports=t.default,e.exports.default=t.default},44697:function(e,t,n){t.default=void 0;var i=n(68074),o=c(n(89482)),a=c(n(2356)),r=n(20576),s=c(n(59063)),l=c(n(99393)),u=c(n(65700)),d=n(1539);function c(e){return e&&e.__esModule?e:{default:e}}var h="NODES_CREATE";function f(e){return{fill:e.fill,hatching:e.hatching}}(0,i.addAlgorithm)("dynamicslope",o.default,!0),(0,i.addAlgorithm)("dynamicheight",a.default);var p=s.default.inherit({_rootClass:"dxf-funnel",_rootClassPrefix:"dxf",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",neckWidth:h,neckHeight:h,inverted:h,algorithm:h,item:h,valueField:h,argumentField:h,colorField:h,palette:h,paletteExtensionMode:h,sortData:h},_themeDependentChanges:[h],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"funnel",_fontFields:["legend.title.font","legend.title.subtitle.font","legend.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._group=this._renderer.g().append(this._renderer.root),this._items=[]},_eventsMap:{onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_disposeCore:r.noop,_applySize:function(e){return this._rect=e.slice(),this._change(["TILING"]),this._rect},_getAlignmentRect:function(){return this._rect},_change_TILING:function(){var e=this,t=e._items,n=e._rect,i=function(e,t){var i=t%2;return n[0+i]+(n[2+i]-n[0+i])*e};this._group.clear(),t.forEach((function(t,n){var o=t.figure.map(i),a=e._renderer.path([],"area").attr({points:o}).append(e._group);t.coords=o,t.element=a})),this._requestChange(["TILES"])},_customChangesOrder:[h,"LAYOUT","TILING","TILES","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange([h])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_NODES_CREATE:function(){this._buildNodes()},_change_TILES:function(){this._applyTilesAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_applyTilesAppearance:function(){this._items.forEach((function(e){var t=e.getState();e.element.smartAttr(e.states[t])}))},_hitTestTargets:function(e,t){var n,i=this;return this._proxyData.some((function(o){if(n=o.call(i,e,t))return!0})),n},clearHover:function(){this._suspend(),this._items.forEach((function(e){e.isHovered()&&e.hover(!1)})),this._resume()},clearSelection:function(){this._suspend(),this._items.forEach((function(e){e.isSelected()&&e.select(!1)})),this._resume()},_getData:function(){var e=this,t=e._dataSourceItems()||[],n=e._getOption("valueField",!0),i=e._getOption("argumentField",!0),o=e._getOption("colorField",!0),a=t.reduce((function(e,t){var a=Number(t[n]);return a>=0&&(e[0].push({value:a,color:t[o],argument:t[i],dataItem:t}),e[1]+=a),e}),[[],0]),r=a[0];return t.length>0&&0===r.length&&e._incidentOccurred("E2005",n),a[1]?(e._getOption("sortData",!0)&&r.sort((function(e,t){return t.value-e.value})),r):[]},_buildNodes:function(){var e=this,t=e._getData(),n=(0,i.getAlgorithm)(e._getOption("algorithm",!0)),o=n.normalizeValues(t),a=e._getOption("item"),r=n.getFigures(o,e._getOption("neckWidth",!0),e._getOption("neckHeight",!0)),s=e._themeManager.createPalette(e._getOption("palette",!0),{useHighlight:!0,extensionMode:e._getOption("paletteExtensionMode",!0),count:r.length});e._items=r.map((function(n,i){var r=t[i];return new u.default(e,{figure:n,data:r,percent:o[i],id:i,color:r.color||s.getNextColor(),itemOptions:a})})),e._getOption("inverted",!0)&&e._items.forEach((function(e){e.figure=e.figure.map((function(e,t){return t%2?1-e:e}))})),e._renderer.initHatching(),e._change(["TILING","DRAWN"])},_showTooltip:r.noop,hideTooltip:r.noop,getAllItems:function(){return this._items.slice()},_getLegendData:function(){return this._items.map((function(e){var t=e.states;return{id:e.id,visible:!0,text:e.argument,item:e,states:{normal:f(t.normal),hover:f(t.hover),selection:f(t.selection)}}}))},_getMinSize:function(){var e=this._getOption("adaptiveLayout");return[e.width,e.height]}});(0,l.default)("dxFunnel",p);var g=p;t.default=g,p.addPlugin(d.plugin),e.exports=t.default,e.exports.default=t.default},65700:function(e,t,n){t.default=void 0;var i=n(35922),o=["normal","hover","selection","selection"];function a(e,t,n){var o=t.border,a=n.border,r=(0,i.isDefined)(o.visible)?o.visible:a.visible,s=(0,i.isDefined)(o.width)?o.width:a.width;return{fill:e,hatching:t.hatching,stroke:o.color||a.color,"stroke-width":r?s:0}}function r(e,t){var n=this,i=t.data;n.code=0,n.widget=e,n.figure=t.figure,n.argument=i.argument,n.value=i.value,n.data=i.dataItem,n.percent=t.percent,n.id=t.id,n.color=t.color,n.states={normal:a(t.color,t.itemOptions,t.itemOptions),hover:a(t.color,t.itemOptions.hoverStyle,t.itemOptions),selection:a(t.color,t.itemOptions.selectionStyle,t.itemOptions)}}r.prototype={getState:function(){return o[this.code]},getNormalStyle:function(){return this.states.normal},setHover:function(){this.hover(!0)},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(1,e),this.widget._eventTrigger("hoverChanged",{item:this}),this.widget._resume())},setState:function(e,t){t?this.code|=e:this.code&=~e,this.widget._applyTilesAppearance()},select:function(e){var t=this.widget._getOption("selectionMode",!0);"none"!==t&&e!==this.isSelected()&&(this.widget._suspend(),e&&"multiple"!==t&&this.widget.clearSelection(),this.setState(2,e),this.widget._eventTrigger("selectionChanged",{item:this}),this.widget._resume())},showTooltip:function(e){this.widget._showTooltip(this.id,e)},getColor:function(){return this.color},isHovered:function(){return!!(1&this.code)},isSelected:function(){return!!(2&this.code)}};var s=r;t.default=s,e.exports=t.default,e.exports.default=t.default},47250:function(e,t,n){t.plugin=void 0;var i=n(28318),o=n(19157),a=n(13306),r=n(20576);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var c="outside",h="inside";function f(e){return(e=(0,o.normalizeEnum)(e))===c||e!==h}function p(e,t,n){return n?e-t.height:e}function g(e,t,n,i){return{x:e[2]+n.horizontalOffset+5,y:p(e[3]+n.verticalOffset,t,i)}}function m(e,t,n,i){return{x:e[0]-t.width-n.horizontalOffset-5,y:p(e[1]+n.verticalOffset,t,i)}}function _(e,t,n){var i=e[2]-e[0],o=e[7]-e[1];return{x:e[0]+i/2+n.horizontalOffset-t.width/2,y:e[1]+n.verticalOffset+o/2-t.height/2}}var v={name:"lables",init:r.noop,dispose:r.noop,extenders:{_initCore:function(){this._labelsGroup=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._labels=[]},_applySize:function(){var e,t=this._getOption("label"),n=this._getOption("adaptiveLayout"),i=this._rect,a=0,r=i[2]-i[0];(this._labelRect=i.slice(),this._labels.length&&f(t.position))?(a=this._labels.map((function(e){return e.resetEllipsis(),e.getBoundingRect().width})).reduce((function(e,t){return Math.max(e,t)}),0)+t.horizontalOffset+(e=t.position,(e=(0,o.normalizeEnum)(e))===c?5:e===h?0:20),!n.keepLabels&&r-a<n.width?this._labels.forEach((function(e){e.draw(!1)})):(r-a<n.width&&(a=(a=r-n.width)>0?a:0),this._labels.forEach((function(e){e.draw(!0)})),"left"===t.horizontalAlignment?i[0]+=a:i[2]-=a)):(0,o.normalizeEnum)("none"!==this._getOption("resolveLabelOverlapping",!0))&&this._labels.forEach((function(e){return!e.isVisible()&&e.draw(!0)}))},_buildNodes:function(){this._createLabels()},_change_TILING:function(){var e,t=this,n=t._getOption("label"),i=_,a=t._getOption("inverted",!0);f(n.position)&&((0,o.normalizeEnum)(n.position)===c?i="left"===n.horizontalAlignment?m:g:(e=this._defaultLabelTextAlignment(),i="left"===n.horizontalAlignment?function(e,t,n){return function(i,o,a,r){return{x:"left"===n?e[0]:t[0]-o.width-a.horizontalOffset-20,y:p(i[3]+a.verticalOffset,o,r)}}}(this._labelRect,this._rect,e):function(e,t,n){return function(i,o,a,r){return{x:"left"===n?t[2]+a.horizontalOffset+20:e[2]-o.width,y:p(i[3]+a.verticalOffset,o,r)}}}(this._labelRect,this._rect,e))),t._labels.forEach((function(e,o){var r=t._items[o],s=r.getNormalStyle()["stroke-width"],l=a?s/2:-s/2,u=l?r.coords.map((function(e,t){return 1===t||3===t?e-l:2===t?e-s:0===t?e+s:e})):r.coords;if(n.showForZeroValues||0!==r.value){f(n.position)&&t._correctLabelWidth(e,r.coords,n);var d=e.getBoundingRect(),c=function(e,t,n){return e.x<n[0]&&(e.x=n[0]),e.x+t.width>n[2]&&(e.x=n[2]-t.width),e.y<n[1]&&(e.y=n[1]),e.y+t.height>n[3]&&(e.y=n[3]-t.height),e}(i(u,d,n,a),d,t._labelRect);e.setFigureToDrawConnector(u),e.shift(c.x,c.y)}else e.draw(!1)})),t._resolveLabelOverlapping()}},members:{_resolveLabelOverlapping:function(){var e=this,t=(0,o.normalizeEnum)(e._getOption("resolveLabelOverlapping",!0)),n=this._getOption("inverted",!0)?e._labels.slice().reverse():e._labels;if("hide"===t)n.reduce((function(e,t){return t.getBoundingRect().y<e?t.hide():e=t.getBoundingRect().y+t.getBoundingRect().height,e}),0);else if("shift"===t){var i=this._labelRect[3];n.reduce((function(t,n,o,a){var r=s(t,2),l=r[0],u=r[1],d=n.getBoundingRect(),c=d.y;return d.y<l&&(n.shift(d.x,l),c=l),c-l>0&&(u+=c-l),c+d.height>i?u&&u>c+d.height-i?(function(e,t,n){e.reduce((function(e,t,i,o){var a=o[i+1];if(e>0){var r=t.getBoundingRect(),s=a?a.getBoundingRect().y+a.getBoundingRect().height:n,l=r.y-s,u=Math.min(l,e);o.slice(0,i+1).forEach((function(e){var t=e.getBoundingRect();e.shift(t.x,t.y-u)})),e-=u}return e}),t)}(a.slice(0,o).reverse(),c+d.height-i,e._labelRect[1]),u-=c+d.height-i,n.shift(d.x,c-(c+d.height-i)),l=c-(c+d.height-i)+d.height):n.hide():l=c+d.height,[l,u]}),[this._labelRect[1],0])}},_defaultLabelTextAlignment:function(){return this._getOption("rtlEnabled",!0)?"right":"left"},_correctLabelWidth:function(e,t,n){var i="left"===n.horizontalAlignment,o=i?this._labelRect[0]:t[2],a=(i?t[0]:this._labelRect[2])-o;e.getBoundingRect().width>a&&e.fit(a)},_createLabels:function(){var e=this,t=e._getOption("label"),n=function(e,t){var n="left"===e.horizontalAlignment,i=n?4:-4,o=t?-1:0;function a(e){return n?[e[0]+1,e[1]+o]:[e[2]-1,e[3]+o]}return{isLabelInside:function(){return!f(e.position)},getFigureCenter:a,prepareLabelPoints:function(e){var t=e.x+i,n=e.y,o=t+e.width;return l(Array(e.height+1)).map((function(e,i){return[t,n+i]})).concat(l(Array(e.height+1)).map((function(e,t){return[o,n+t]})))},isHorizontal:function(){return!0},findFigurePoint:function(e){return a(e)},adjustPoints:function(e){return e.map(Math.round)}}}(t,e._getOption("inverted",!0));this._labelsGroup.clear(),t.visible&&(this._labels=e._items.map((function(r){var s=new i.Label({renderer:e._renderer,labelsGroup:e._labelsGroup,strategy:n});return s.setOptions(function(e,t,n){var i=e||{},r=(0,a.extend)({},i.font)||{},s=i.border||{},l=i.connector||{},u={fill:i.backgroundColor||t,"stroke-width":s.visible&&s.width||0,stroke:s.visible&&s.width?s.color:"none",dashStyle:s.dashStyle},d={stroke:l.visible&&l.width?l.color||t:"none","stroke-width":l.visible&&l.width||0,opacity:l.opacity};return r.color="none"===i.backgroundColor&&"#ffffff"===(0,o.normalizeEnum)(r.color)&&"inside"!==i.position?t:r.color,{format:i.format,textAlignment:i.textAlignment||(f(i.position)?n:"center"),customizeText:i.customizeText,attributes:{font:r},visible:0!==r.size&&i.visible,showForZeroValues:i.showForZeroValues,horizontalOffset:i.horizontalOffset,verticalOffset:i.verticalOffset,background:u,connector:d,wordWrap:e.wordWrap,textOverflow:e.textOverflow}}(t,r.color,e._defaultLabelTextAlignment())),s.setData({item:r,value:r.value,percent:r.percent}),s.draw(!0),s})),this._labels.length&&f(t.position)&&this._requestChange(["LAYOUT"]))}},customize:function(e){e.prototype._proxyData.push((function(e,t){var n,i=this;return i._labels.forEach((function(o,a){var r=o.getBoundingRect();if(e>=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height){var s=f(i._getOption("label").position)?"outside":"inside";return n={id:a,type:s+"-label"},!0}})),n})),["label","resolveLabelOverlapping"].forEach((function(t){e.addChange({code:t.toUpperCase(),handler:function(){this._createLabels(),this._requestChange(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:t})}))},fontFields:["label.font"]};t.plugin=v},89482:function(e,t){t.default=void 0;var n=.5,i={getFigures:function(e){var t=1/e.length;return e.map((function(e,i,o){var a=o[i+1]?o[i+1]:o[i];return[n-e/2,t*i,n+e/2,t*i,n+a/2,t*(i+1),n-a/2,t*(i+1)]}))},normalizeValues:function(e){var t=e.reduce((function(e,t){return Math.max(t.value,e)}),e[0]&&e[0].value||0);return e.map((function(e){return e.value/t}))}};t.default=i,e.exports=t.default,e.exports.default=t.default},68074:function(e,t,n){t.addAlgorithm=function(e,t,n){a[e]=t,n&&(i=a[e])},t.getAlgorithm=function(e){return a[(0,o.normalizeEnum)(e)]||i};var i,o=n(19157),a={}},2356:function(e,t){t.default=void 0;t.default={getFigures:function(e,t,n){var i=0,o=0,a=0,r=0,s=t/2,l=.5-s,u=1-n,d=.5-s,c=.5+s;return e.map((function(e){return a=r,o=i,r=l*(i+=e)/u,o<=u&&i<=u?[a,o,1-a,o,1-r,i,0+r,i]:o<=u&&i>u?[a,o,1-a,o,c,u,c,i,d,i,d,u]:[d,o,c,o,c,i,d,i]}))},normalizeValues:function(e){var t=e.reduce((function(e,t){return e+t.value}),0);return e.map((function(e){return e.value/t}))}},e.exports=t.default,e.exports.default=t.default},32037:function(e,t,n){t.plugin=void 0;var i=n(20576),o=n(14371);function a(e,t,n){var i=n.getRootOffset();return e||t&&[(t[0]+t[2])/2+i.left,(t[1]+t[5])/2+i.top]||[-1e3,-1e3]}var r={name:"funnel-tooltip",init:i.noop,dispose:i.noop,extenders:{_buildNodes:function(){this.hideTooltip()},_change_TILING:function(){this._tooltipIndex>=0&&this._moveTooltip(this._items[this._tooltipIndex])}},members:{hideTooltip:function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},_moveTooltip:function(e,t){var n=a(t,e.coords,this._renderer);this._tooltip.move(n[0],n[1],0)},_showTooltip:function(e,t){var n=this,i=n._tooltip,o=n._items[e];if(n._tooltipIndex!==e){var r=function(t){void 0!==t&&(t||i.hide(),n._tooltipIndex=t?e:-1)},s=a(t,o.coords,this._renderer);r(i.show({value:o.value,valueText:i.formatValue(o.value),percentText:i.formatValue(o.percent,"percent"),percent:o.percent,item:o},{x:s[0],y:s[1],offset:0},{item:o},void 0,r))}else n._moveTooltip(o,t)}},customize:function(e){e.addPlugin(o.plugin)}};t.plugin=r},76686:function(e,t,n){t.plugin=void 0;var i,o=(i=n(44697))&&i.__esModule?i:{default:i},a=n(88997),r=n(35922),s=0,l=o.default.prototype;l._eventsMap.onItemClick={name:"itemClick"},l._eventsMap.onLegendClick={name:"legendClick"};var u={name:"tracker",init:function(){var e=this,t="__funnel_data_"+s++,n=function(t){var n=e._renderer.getRootOffset(),i=Math.floor(t.pageX-n.left),o=Math.floor(t.pageY-n.top);return e._hitTestTargets(i,o)};e._tracker=new a.Tracker({widget:e,root:e._renderer.root,getData:function(e,i){var o=e.target[t];if((0,r.isDefined)(o))return o;var a=n(e);return i&&a&&"inside-label"!==a.type?void 0:a&&a.id},getNode:function(t){return e._items[t]},click:function(t){var i=n(t.event),o="legend"===(i&&i.type)?"legendClick":"itemClick";e._eventTrigger(o,{item:t.node,event:t.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_TILING:function(){var e=this._dataKey;this._items.forEach((function(t,n){t.element.data(e,n)}))}}};t.plugin=u},44898:function(e,t,n){t.dxBarGauge=void 0;var i=c(n(99393)),o=n(48013),a=n(20576),r=n(13306),s=n(19157),l=n(18029),u=c(n(31500)),d=n(16342);function c(e){return e&&e.__esModule?e:{default:e}}var h,f=Math.PI/180,p=Math.abs,g=Math.round,m=Math.floor,_=Math.min,v=Math.max,y=l.getSampleText,x=l.formatValue,b=l.compareArrays,w=Array.isArray,C=s.convertAngleToRendererSpace,S=s.getCosAndSin,k=s.patchFontOptions,D=Number,I=isFinite,T=a.noop,E=r.extend,A="values",O=l.BaseGauge.inherit({_rootClass:"dxbg-bar-gauge",_themeSection:"barGauge",_fontFields:["label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initCore:function(){var e=this;e.callBase.apply(e,arguments),e._barsGroup=e._renderer.g().attr({class:"dxbg-bars"}).linkOn(e._renderer.root,"bars"),e._values=[],e._context={renderer:e._renderer,translator:e._translator,tracker:e._tracker,group:e._barsGroup},e._animateStep=function(t){var n,i,o=e._bars;for(n=0,i=o.length;n<i;++n)o[n].animate(t)},e._animateComplete=function(){e._bars.forEach((function(e){return e.endAnimation()})),e._checkOverlap()}},_disposeCore:function(){var e=this;e._barsGroup.linkOff(),e._barsGroup=e._values=e._context=e._animateStep=e._animateComplete=null,e.callBase.apply(e,arguments)},_setupDomainCore:function(){var e=this,t=e.option("startValue"),n=e.option("endValue");I(t)||(t=0),I(n)||(n=100),e._translator.setDomain(t,n),e._baseValue=e._translator.adjust(e.option("baseValue")),I(e._baseValue)||(e._baseValue=t<n?t:n)},_getDefaultSize:function(){return{width:300,height:300}},_setupCodomain:u.default.prototype._setupCodomain,_getApproximateScreenRange:function(){var e=this,t=e._area.sides,n=e._canvas.width/(t.right-t.left),i=e._canvas.height/(t.down-t.up),o=n<i?n:i;return-e._translator.getCodomainRange()*o*f},_setupAnimationSettings:function(){var e=this;e.callBase.apply(e,arguments),e._animationSettings&&(e._animationSettings.step=e._animateStep,e._animationSettings.complete=e._animateComplete)},_cleanContent:function(){var e=this;e._barsGroup.linkRemove(),e._animationSettings&&e._barsGroup.stopAnimation(),e._barsGroup.clear()},_renderContent:function(){var e,t,n=this,i=n.option("label"),o=n._context;n._barsGroup.linkAppend(),o.textEnabled=void 0===i||i&&(!("visible"in i)||i.visible),o.textEnabled&&(o.textColor=i&&i.font&&i.font.color||null,i=E(!0,{},n._themeManager.theme().label,i),o.formatOptions={format:void 0!==i.format?i.format:n._defaultFormatOptions,customizeText:i.customizeText},o.textOptions={align:"center"},o.fontStyles=k(E({},n._themeManager.theme().label.font,i.font,{color:null})),n._textIndent=i.indent>0?D(i.indent):0,o.lineWidth=i.connectorWidth>0?D(i.connectorWidth):0,o.lineColor=i.connectorColor||null,t=(e=n._renderer.text(y(n._translator,o.formatOptions),0,0).attr(o.textOptions).css(o.fontStyles).append(n._barsGroup)).getBBox(),e.remove(),o.textY=t.y,o.textWidth=t.width,o.textHeight=t.height),u.default.prototype._applyMainLayout.call(n),n._renderBars()},_measureMainElements:function(){var e={maxRadius:this._area.radius};return this._context.textEnabled&&(e.horizontalMargin=this._context.textWidth,e.verticalMargin=this._context.textHeight,e.inverseHorizontalMargin=this._context.textWidth/2,e.inverseVerticalMargin=this._context.textHeight/2),e},_renderBars:function(){var e,t=this,n=E({},t._themeManager.theme(),t.option()),i=t._area,o=n.relativeInnerRadius>0&&n.relativeInnerRadius<1?D(n.relativeInnerRadius):.1;e=i.radius,t._context.textEnabled&&(t._textIndent=g(_(t._textIndent,e/2)),e-=t._textIndent),t._outerRadius=m(e),t._innerRadius=m(e*o),t._barSpacing=n.barSpacing>0?D(n.barSpacing):0,E(t._context,{backgroundColor:n.backgroundColor,x:i.x,y:i.y,startAngle:i.startCoord,endAngle:i.endCoord,baseAngle:t._translator.translate(t._baseValue)}),t._arrangeBars()},_arrangeBars:function(){var e,t=this,n=t._outerRadius-t._innerRadius,i=t._context,o=t._bars.length;t._beginValueChanging(),i.barSize=o>0?v((n-(o-1)*t._barSpacing)/o,1):0;var a=o>1?v(_((n-o*i.barSize)/(o-1),t._barSpacing),0):0,r=_(m((n+a)/i.barSize),o);t._setBarsCount(o),n=t._outerRadius,i.textRadius=n,i.textIndent=t._textIndent,t._palette.reset();var s=i.barSize+a,l=t._palette.generateColors(r);for(e=0;e<r;++e,n-=s)t._bars[e].arrange({radius:n,color:l[e]});for(var u=r;u<o;u++)t._bars[u].hide();t._animationSettings&&!t._noAnimation?t._animateBars():t._updateBars(),t._endValueChanging()},_setBarsCount:function(){var e=this;e._bars.length>0?e._dummyBackground&&(e._dummyBackground.dispose(),e._dummyBackground=null):(e._dummyBackground||(e._dummyBackground=e._renderer.arc().attr({"stroke-linejoin":"round"})),e._dummyBackground.attr({x:e._context.x,y:e._context.y,outerRadius:e._outerRadius,innerRadius:e._innerRadius,startAngle:e._context.endAngle,endAngle:e._context.startAngle,fill:e._context.backgroundColor}).append(e._barsGroup))},_updateBars:function(){this._bars.forEach((function(e){return e.applyValue()})),this._checkOverlap()},_checkOverlap:function(){var e=this._bars;if("none"!==(0,s.normalizeEnum)(this._getOption("resolveLabelOverlapping",!0)))for(var t=e.concat().sort((function(e,t){return e.getValue()-t.getValue()})),n=0,i=1;n<t.length&&i<t.length;){var o=t[n],a=t[i];o.checkIntersect(a)?(a.hideLabel(),i++):i=(n=i)+1}},_animateBars:function(){var e,t=this,n=t._bars.length;if(n>0){for(e=0;e<n;++e)t._bars[e].beginAnimation();t._barsGroup.animate({_:0},t._animationSettings)}},_buildNodes:function(){var e=this,t=e._options.silent();e._palette=e._themeManager.createPalette(t.palette,{useHighlight:!0,extensionMode:t.paletteExtensionMode}),e._palette.reset(),e._bars=e._bars||[],e._animationSettings&&e._barsGroup.stopAnimation();var n=e._values.filter(I),i=n.length;if(e._bars.length>i){for(var o=e._bars.length,a=i;a<o;++a)e._bars[a].dispose();e._bars.splice(i,o-i)}else if(e._bars.length<i)for(var r=e._bars.length;r<i;++r)e._bars.push(new h(r,e._context));e._bars.forEach((function(t,o){t.update({color:e._palette.getNextColor(i),value:n[o]})}))},_updateValues:function(e){var t,n,i=this,o=w(e)&&e||I(e)&&[e]||[],a=o.length;for(i._values.length=a,t=0;t<a;++t)n=o[t],i._values[t]=D(I(n)?n:i._values[t]);i._resizing||b(i._values,i.option(A))||i.option(A,i._values.slice()),this._change(["NODES"])},values:function(e){return void 0!==e?(this._updateValues(e),this):this._values.slice(0)},_optionChangesMap:{backgroundColor:"MOSTLY_TOTAL",relativeInnerRadius:"MOSTLY_TOTAL",barSpacing:"MOSTLY_TOTAL",label:"MOSTLY_TOTAL",resolveLabelOverlapping:"MOSTLY_TOTAL",palette:"MOSTLY_TOTAL",paletteExtensionMode:"MOSTLY_TOTAL",values:"VALUES"},_change_VALUES:function(){this._updateValues(this.option(A))},_factory:(0,o.clone)(l.BaseGauge.prototype._factory),_optionChangesOrder:["VALUES","NODES"],_initialChanges:["VALUES"],_change_NODES:function(){this._buildNodes()},_change_MOSTLY_TOTAL:function(){this._change(["NODES"]),this.callBase()},_proxyData:[],_getLegendData:function(){var e={},t=this._options.silent(),n=(t.label||{}).format,i=(t.legend||{}).itemTextFormat;return e.format=i||n||this._defaultFormatOptions,(this._bars||[]).map((function(t){return{id:t.index,item:{value:t.getValue(),color:t.getColor(),index:t.index},text:x(t.getValue(),e),visible:!0,states:{normal:{fill:t.getColor()}}}}))}});function P(e,t,n){e.startAngle=t<n?t:n,e.endAngle=t<n?n:t}function M(e,t){return p(e-t)<1e-4}t.dxBarGauge=O,E((h=function(e,t){var n=this;n._context=t,n._tracker=t.renderer.arc().attr({"stroke-linejoin":"round"}),n.index=e}).prototype,{dispose:function(){var e=this;return e._background.dispose(),e._bar.dispose(),e._context.textEnabled&&(e._line.dispose(),e._text.dispose()),e._context.tracker.detach(e._tracker),e._context=e._settings=e._background=e._bar=e._line=e._text=e._tracker=null,e},arrange:function(e){var t=this,n=t._context;return this._visible=!0,n.tracker.attach(t._tracker,t,{index:t.index}),t._background=n.renderer.arc().attr({"stroke-linejoin":"round",fill:n.backgroundColor}).append(n.group),t._settings=t._settings||{x:n.x,y:n.y,startAngle:n.baseAngle,endAngle:n.baseAngle},t._bar=n.renderer.arc().attr(E({"stroke-linejoin":"round"},t._settings)).append(n.group),n.textEnabled&&(t._line=n.renderer.path([],"line").attr({"stroke-width":n.lineWidth}).append(n.group),t._text=n.renderer.text().css(n.fontStyles).attr(n.textOptions).append(n.group)),t._angle=isFinite(t._angle)?t._angle:n.baseAngle,t._settings.outerRadius=e.radius,t._settings.innerRadius=e.radius-n.barSize,t._settings.x=n.x,t._settings.y=n.y,t._background.attr(E({},t._settings,{startAngle:n.endAngle,endAngle:n.startAngle,fill:t._context.backgroundColor})),t._bar.attr({x:n.x,y:n.y,outerRadius:t._settings.outerRadius,innerRadius:t._settings.innerRadius,fill:t._color}),t._tracker.attr(t._settings),n.textEnabled&&(t._line.attr({points:[n.x,n.y-t._settings.innerRadius,n.x,n.y-n.textRadius-n.textIndent],stroke:n.lineColor||t._color}).sharp(),t._text.css({fill:n.textColor||t._color})),t},getTooltipParameters:function(){var e=this,t=S((e._angle+e._context.baseAngle)/2);return{x:g(e._context.x+(e._settings.outerRadius+e._settings.innerRadius)/2*t.cos),y:g(e._context.y-(e._settings.outerRadius+e._settings.innerRadius)/2*t.sin),offset:0,color:e._color,value:e._value}},setAngle:function(e){var t,n=this,i=n._context,o=n._settings;if(n._angle=e,P(o,i.baseAngle,e),n._bar.attr(o),n._tracker.attr(o),i.textEnabled){t=S(e);var a=i.textIndent,r=i.textRadius+a,s=i.x+r*t.cos,l=i.y-r*t.sin,u=.5*i.textWidth,d=i.textHeight,c=i.textY;p(s-i.x)>a&&(s+=s<i.x?-u:u),p(l-i.y)<=a?l-=c+.5*d:l-=l<i.y?c+d:c;var h=x(n._value,i.formatOptions,{index:n.index}),f=""===h?"hidden":null;n._text.attr({text:h,x:s,y:l,visibility:f}),n._line.attr({visibility:f}),n._line.rotate(C(e),i.x,i.y)}return n},hideLabel:function(){this._text.attr({visibility:"hidden"}),this._line.attr({visibility:"hidden"})},checkIntersect:function(e){var t=this.calculateLabelCoords(),n=e.calculateLabelCoords();return!(!t||!n)&&Math.max(0,Math.min(t.bottomRight.x,n.bottomRight.x)-Math.max(t.topLeft.x,n.topLeft.x))*Math.max(0,Math.min(t.bottomRight.y,n.bottomRight.y)-Math.max(t.topLeft.y,n.topLeft.y))!=0},calculateLabelCoords:function(){if(this._text){var e=this._text.getBBox();return{topLeft:{x:e.x,y:e.y},bottomRight:{x:e.x+e.width,y:e.y+e.height}}}},_processValue:function(e){return this._context.translator.translate(this._context.translator.adjust(e))},applyValue:function(){return this._visible?this.setAngle(this._processValue(this.getValue())):this},update:function(e){var t=e.color,n=e.value;this._color=t,this._value=n},hide:function(){this._visible=!1},getColor:function(){return this._color},getValue:function(){return this._value},beginAnimation:function(){if(!this._visible)return this;var e=this,t=this._processValue(this.getValue());M(e._angle,t)?(e.animate=T,e.setAngle(e._angle)):(e._start=e._angle,e._delta=t-e._angle,e._tracker.attr({visibility:"hidden"}),e._context.textEnabled&&(e._line.attr({visibility:"hidden"}),e._text.attr({visibility:"hidden"})))},animate:function(e){if(!this._visible)return this;var t=this;t._angle=t._start+t._delta*e,P(t._settings,t._context.baseAngle,t._angle),t._bar.attr(t._settings)},endAnimation:function(){var e=this;void 0!==e._delta?M(e._angle,e._start+e._delta)&&(e._tracker.attr({visibility:null}),e.setAngle(e._angle)):delete e.animate,delete e._start,delete e._delta}}),(0,i.default)("dxBarGauge",O),O.addPlugin(d.plugin)},18029:function(e,t,n){t.BaseGauge=void 0,t.compareArrays=function(e,t){return e&&t&&e.length===t.length&&function(e,t){var n,i,o,a=e.length;for(n=0;n<a;++n)if(i=e[n]!=e[n],o=t[n]!=t[n],!(i&&o||e[n]===t[n]))return!1;return!0}(e,t)},t.getSampleText=t.formatValue=void 0;var i=n(19157),o=n(13306),a=n(17953),r=p(n(59063)),s=p(n(41802)),l=p(n(57298)),u=p(n(30343)),d=n(82454),c=n(17384),h=n(14371),f=n(64758);function p(e){return e&&e.__esModule?e:{default:e}}var g=Number,m=o.extend,_=u.default.format,v=r.default.inherit({_rootClassPrefix:"dxg",_themeSection:"gauge",_createThemeManager:function(){return new s.default.ThemeManager(this._getThemeManagerOptions())},_initCore:function(){var e=this,t=e._renderer.root;e._valueChangingLocker=0,e._translator=e._factory.createTranslator(),e._tracker=e._factory.createTracker({renderer:e._renderer,container:t}),e._setTrackerCallbacks()},_beginValueChanging:function(){this._resetIsReady(),this._onBeginUpdate(),++this._valueChangingLocker},_endValueChanging:function(){0==--this._valueChangingLocker&&this._drawn()},_setTrackerCallbacks:function(){var e=this,t=e._renderer,n=e._tooltip;e._tracker.setCallbacks({"tooltip-show":function(e,i,o){var a=e.getTooltipParameters(),r=t.getRootOffset(),s=m({value:a.value,valueText:n.formatValue(a.value),color:a.color},i);return n.show(s,{x:a.x+r.left,y:a.y+r.top,offset:a.offset},{target:i},void 0,o)},"tooltip-hide":function(){return n.hide()}})},_dispose:function(){this._cleanCore(),this.callBase.apply(this,arguments)},_disposeCore:function(){var e=this;e._themeManager.dispose(),e._tracker.dispose(),e._translator=e._tracker=null},_cleanCore:function(){this._tracker.deactivate(),this._cleanContent()},_renderCore:function(){var e=this;e._isValidDomain&&(e._renderContent(),e._tracker.setTooltipState(e._tooltip.isEnabled()),e._tracker.activate(),e._noAnimation=!1)},_applyChanges:function(){this.callBase.apply(this,arguments),this._resizing=this._noAnimation=!1},_setContentSize:function(){var e=this;e._resizing=e._noAnimation=2===e._changes.count(),e.callBase.apply(e,arguments)},_applySize:function(e){var t=this;t._innerRect={left:e[0],top:e[1],right:e[2],bottom:e[3]};var n=t._layout._cache;return t._cleanCore(),t._renderCore(),t._layout._cache=t._layout._cache||n,[e[0],t._innerRect.top,e[2],t._innerRect.bottom]},_initialChanges:["DOMAIN"],_themeDependentChanges:["DOMAIN"],_optionChangesMap:{subtitle:"MOSTLY_TOTAL",indicator:"MOSTLY_TOTAL",geometry:"MOSTLY_TOTAL",animation:"MOSTLY_TOTAL",startValue:"DOMAIN",endValue:"DOMAIN"},_optionChangesOrder:["DOMAIN","MOSTLY_TOTAL"],_change_DOMAIN:function(){this._setupDomain()},_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_setupDomain:function(){var e=this;e._setupDomainCore(),e._isValidDomain=isFinite(1/(e._translator.getDomain()[1]-e._translator.getDomain()[0])),e._isValidDomain||e._incidentOccurred("W2301"),e._change(["MOSTLY_TOTAL"])},_applyMostlyTotalChange:function(){var e=this;e._setupCodomain(),e._setupAnimationSettings(),e._setupDefaultFormat(),e._change(["LAYOUT"])},_setupAnimationSettings:function(){var e=this,t=e.option("animation");e._animationSettings=null,(void 0===t||t)&&(t=m({enabled:!0,duration:1e3,easing:"easeOutCubic"},t)).enabled&&t.duration>0&&(e._animationSettings={duration:g(t.duration),easing:t.easing}),e._containerBackgroundColor=e.option("containerBackgroundColor")||e._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var e=this._translator.getDomain();this._defaultFormatOptions=(0,i.getAppropriateFormat)(e[0],e[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new a.Translator1D},createTracker:function(e){return new l.default(e)}}});t.BaseGauge=v;var y=function(e,t,n){var i,o=_(e,(t=t||{}).format);return"function"==typeof t.customizeText?(i=m({value:e,valueText:o},n),String(t.customizeText.call(i,i))):o};t.formatValue=y,t.getSampleText=function(e,t){var n=y(e.getDomainStart(),t),i=y(e.getDomainEnd(),t);return n.length>=i.length?n:i},v.addPlugin(d.plugin),v.addPlugin(c.plugin),v.addPlugin(h.plugin),v.addPlugin(f.plugin);var x=v.prototype._setTooltipOptions;v.prototype._setTooltipOptions=function(){x.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())}},3446:function(e,t,n){t.BaseTextCloudMarker=t.BaseRangeBar=t.BaseIndicator=t.BaseElement=void 0;var i,o=n(20576),a=n(95479),r=n(18029),s=n(19157),l=n(13306),u=(i=n(38377))&&i.__esModule?i:{default:i},d=isFinite,c=Number,h=Math.round,f=r.formatValue,p=r.getSampleText,g=u.default.inherit({ctor:function(e){var t=this;(0,a.each)(e,(function(e,n){t["_"+e]=n})),t._init()},dispose:function(){var e=this;return e._dispose(),(0,a.each)(e,(function(t){e[t]=null})),e},getOffset:function(){return c(this._options.offset)||0}});t.BaseElement=g;var m=g.inherit({_init:function(){var e=this;e._rootElement=e._createRoot().linkOn(e._owner,{name:"value-indicator",after:"core"}),e._trackerElement=e._createTracker()},_dispose:function(){this._rootElement.linkOff()},_setupAnimation:function(){var e=this;e._options.animation&&(e._animation={step:function(t){e._actualValue=e._animation.start+e._animation.delta*t,e._actualPosition=e._translator.translate(e._actualValue),e._move()},duration:e._options.animation.duration>0?c(e._options.animation.duration):0,easing:e._options.animation.easing})},_runAnimation:function(e){var t=this,n=t._animation;n.start=t._actualValue,n.delta=e-t._actualValue,t._rootElement.animate({_:0},{step:n.step,duration:n.duration,easing:n.easing})},_createRoot:function(){return this._renderer.g().attr({class:this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:o.noop,clean:function(){var e=this;return e._animation&&e._rootElement.stopAnimation(),e._rootElement.linkRemove().clear(),e._clear(),e._tracker.detach(e._trackerElement),e._options=e.enabled=e._animation=null,e},render:function(e){var t=this;return t.type=e.type,t._options=e,t._actualValue=t._currentValue=t._translator.adjust(t._options.currentValue),t.enabled=t._isEnabled(),t.enabled&&(t._setupAnimation(),t._rootElement.attr({fill:t._options.color}).linkAppend(),t._tracker.attach(t._trackerElement,t,t._trackerInfo)),t},resize:function(e){var t=this;return t._rootElement.clear(),t._clear(),t.visible=t._isVisible(e),t.visible&&((0,l.extend)(t._options,e),t._actualPosition=t._translator.translate(t._actualValue),t._render(),t._trackerElement.attr(t._getTrackerSettings()),t._move()),t},value:function(e,t){var n,i=this,o=this._rootElement,a=null;return void 0===e?i._currentValue:(null===e?(a="hidden",i._currentValue=e):(n=i._translator.adjust(e),i._currentValue!==n&&d(n)&&(i._currentValue=n,i.visible&&(i._animation&&!t?i._runAnimation(n):(i._actualValue=n,i._actualPosition=i._translator.translate(n),i._move())))),o.attr({visibility:a}),i)},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null});t.BaseIndicator=m;var _={};_["right-bottom"]=_.rb=[0,-1,-1,0,0,1,1,0],_["bottom-right"]=_.br=[-1,0,0,-1,1,0,0,1],_["left-bottom"]=_.lb=[0,-1,1,0,0,1,-1,0],_["bottom-left"]=_.bl=[1,0,0,-1,-1,0,0,1],_["left-top"]=_.lt=[0,1,1,0,0,-1,-1,0],_["top-left"]=_.tl=[1,0,0,1,-1,0,0,-1],_["right-top"]=_.rt=[0,1,-1,0,0,-1,1,0],_["top-right"]=_.tr=[-1,0,0,1,1,0,0,-1];var v=m.inherit({_move:function(){var e=this,t=e._options,n=e._getTextCloudOptions(),i=f(e._actualValue,t.text);e._text.attr({text:i});var o=e._text.getBBox(),a=n.x,r=n.y,s=(o.width||i.length*e._textUnitWidth)+2*t.horizontalOffset,l=(o.height||e._textHeight)+2*t.verticalOffset,u=function(e){var t,n,i=e.x,o=e.y,a=_[e.type],r=e.cloudWidth,s=e.cloudHeight,l=i,u=o;return t=n=e.tailLength,1&a[0]?n=Math.min(n,s/3):t=Math.min(t,r/3),{cx:h(l+a[0]*t+(a[0]+a[2])*r/2),cy:h(u+a[1]*n+(a[1]+a[3])*s/2),points:[h(i),h(o),h(i+=a[0]*(r+t)),h(o+=a[1]*(s+n)),h(i+=a[2]*r),h(o+=a[3]*s),h(i+=a[4]*r),h(o+=a[5]*s),h(i+=a[6]*(r-t)),h(o+=a[7]*(s-n))]}}({x:a,y:r,cloudWidth:s,cloudHeight:l,tailLength:t.arrowLength,type:e._correctCloudType(n.type,{x:a,y:r},{width:s,height:l})});e._text.attr({x:u.cx,y:u.cy+e._textVerticalOffset}),e._cloud.attr({points:u.points}),e._trackerElement&&e._trackerElement.attr({points:u.points})},_measureText:function(){var e,t,n,i=this;i._textVerticalOffset||(e=i._createRoot().append(i._owner),n=p(i._translator,i._options.text),t=i._renderer.text(n,0,0).attr({align:"center"}).css((0,s.patchFontOptions)(i._options.text.font)).append(e).getBBox(),e.remove(),i._textVerticalOffset=-t.y-t.height/2,i._textWidth=t.width,i._textHeight=t.height,i._textUnitWidth=i._textWidth/n.length,i._textFullWidth=i._textWidth+2*i._options.horizontalOffset,i._textFullHeight=i._textHeight+2*i._options.verticalOffset)},_render:function(){var e=this;e._measureText(),e._cloud=e._cloud||e._renderer.path([],"area").append(e._rootElement),e._text=e._text||e._renderer.text().append(e._rootElement),e._text.attr({align:"center"}).css((0,s.patchFontOptions)(e._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var e=this._getTextCloudOptions();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color}},_correctCloudType:function(e){return e}});t.BaseTextCloudMarker=v;var y=m.inherit({_measureText:function(){var e,t,n=this;n._hasText=n._isTextVisible(),n._hasText&&!n._textVerticalOffset&&(e=n._createRoot().append(n._owner),t=n._renderer.text(p(n._translator,n._options.text),0,0).attr({class:"dxg-text",align:"center"}).css((0,s.patchFontOptions)(n._options.text.font)).append(e).getBBox(),e.remove(),n._textVerticalOffset=-t.y-t.height/2,n._textWidth=t.width,n._textHeight=t.height)},_move:function(){var e=this;e._updateBarItemsPositions(),e._hasText&&(e._text.attr({text:f(e._actualValue,e._options.text)}),e._updateTextPosition(),e._updateLinePosition())},_updateBarItems:function(){var e,t=this,n=t._options,i=t._translator;t._setBarSides(),t._startPosition=i.translate(i.getDomainStart()),t._endPosition=i.translate(i.getDomainEnd()),t._basePosition=i.translate(n.baseValue),t._space=t._getSpace();var o=n.backgroundColor||"none";"none"!==o&&t._space>0?e=n.containerBackgroundColor||"none":(t._space=0,e="none"),t._backItem1.attr({fill:o}),t._backItem2.attr({fill:o}),t._spaceItem1.attr({fill:e}),t._spaceItem2.attr({fill:e})},_getSpace:function(){return 0},_updateTextItems:function(){var e=this;e._hasText?(e._line=e._line||e._renderer.path([],"line").attr({class:"dxg-main-bar","stroke-linecap":"square"}).append(e._rootElement),e._text=e._text||e._renderer.text("",0,0).attr({class:"dxg-text"}).append(e._rootElement),e._text.attr({align:e._getTextAlign()}).css(e._getFontOptions()),e._setTextItemsSides()):(e._line&&(e._line.remove(),delete e._line),e._text&&(e._text.remove(),delete e._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var e=this._options,t=e.text.font;return t&&t.color||(t=(0,l.extend)({},t,{color:e.color})),(0,s.patchFontOptions)(t)},_updateBarItemsPositions:function(){var e=this,t=e._getPositions();e._backItem1.attr(e._buildItemSettings(t.start,t.back1)),e._backItem2.attr(e._buildItemSettings(t.back2,t.end)),e._spaceItem1.attr(e._buildItemSettings(t.back1,t.main1)),e._spaceItem2.attr(e._buildItemSettings(t.main2,t.back2)),e._mainItem.attr(e._buildItemSettings(t.main1,t.main2)),e._trackerElement&&e._trackerElement.attr(e._buildItemSettings(t.main1,t.main2))},_render:function(){var e=this;e._measureText(),e._backItem1||(e._backItem1=e._createBarItem(),e._backItem1.attr({class:"dxg-back-bar"})),e._backItem2||(e._backItem2=e._createBarItem(),e._backItem2.attr({class:"dxg-back-bar"})),e._spaceItem1||(e._spaceItem1=e._createBarItem(),e._spaceItem1.attr({class:"dxg-space-bar"})),e._spaceItem2||(e._spaceItem2=e._createBarItem(),e._spaceItem2.attr({class:"dxg-space-bar"})),e._mainItem||(e._mainItem=e._createBarItem(),e._mainItem.attr({class:"dxg-main-bar"})),e._updateBarItems(),e._updateTextItems()},_clear:function(){var e=this;delete e._backItem1,delete e._backItem2,delete e._spaceItem1,delete e._spaceItem2,delete e._mainItem,delete e._hasText,delete e._line,delete e._text},getTooltipParameters:function(){var e=this._getTooltipPosition();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color,offset:0}}});t.BaseRangeBar=y},84165:function(e,t,n){t.default=void 0;var i=n(95479),o=n(3446),a=n(35922),r=Number,s=Array.isArray,l=isFinite;function u(e,t,n,i){var o;return n>e&&i<t?o=[{start:e,end:n},{start:i,end:t}]:n>=t||i<=e?o=[{start:e,end:t}]:n<=e&&i>=t?o=[]:n>e?o=[{start:e,end:n}]:i<t&&(o=[{start:i,end:t}]),o}function d(e,t,n,i){var o;return n<e&&i>t?o=[{start:e,end:n},{start:i,end:t}]:n<=t||i>=e?o=[{start:e,end:t}]:n>=e&&i<=t?o=[]:n<e?o=[{start:e,end:n}]:i>t&&(o=[{start:i,end:t}]),o}function c(e,t,n){var i=n.startValue;return n.endValue===i&&i===e&&t===e}function h(e,t,n){return t-e>0||c(e,t,n)}function f(e,t,n){return e-t>0||c(e,t,n)}var p=o.BaseElement.inherit({_init:function(){this._root=this._renderer.g().attr({class:"dxg-range-container"}).linkOn(this._container,"range-container")},_dispose:function(){this._root.linkOff()},clean:function(){return this._root.linkRemove().clear(),this._options=this.enabled=null,this},_getRanges:function(){var e,t=this,n=t._options,o=t._translator,c=o.getDomain()[0],p=o.getDomain()[1],g=p-c,m=g>=0?h:f,_=g>=0?u:d,v=[],y=[{start:c,end:p}],x=(0,a.isString)(n.backgroundColor)?n.backgroundColor:"none",b=n.width||{},w=r(b>0?b:b.start),C=r(b>0?b:b.end),S=C-w;if(void 0!==n.ranges&&!s(n.ranges))return null;if(!(w>=0&&C>=0&&w+C>0))return null;e=(s(n.ranges)?n.ranges:[]).reduce((function(e,t,n){t=t||{};var i=o.adjust(t.startValue),a=o.adjust(t.endValue);return l(i)&&l(a)&&m(i,a,t)&&e.push({start:i,end:a,color:t.color,classIndex:n}),e}),[]);var k=t._themeManager.createPalette(n.palette,{type:"indicatingSet",extensionMode:n.paletteExtensionMode,keepLastColorInEnd:!0,count:e.length});return(0,i.each)(e,(function(e,t){var n=k.getNextColor();t.color=(0,a.isString)(t.color)&&t.color||n||"none",t.className="dxg-range dxg-range-"+t.classIndex,delete t.classIndex})),(0,i.each)(e,(function(e,t){var n,i,o,a,r,s=[],l=[];for(n=0,i=v.length;n<i;++n)r=v[n],(o=(a=_(r.start,r.end,t.start,t.end))[0])&&(o.color=r.color)&&(o.className=r.className)&&s.push(o),(o=a[1])&&(o.color=r.color)&&(o.className=r.className)&&s.push(o);for(s.push(t),v=s,n=0,i=y.length;n<i;++n)r=y[n],(o=(a=_(r.start,r.end,t.start,t.end))[0])&&l.push(o),(o=a[1])&&l.push(o);y=l})),(0,i.each)(y,(function(e,t){t.color=x,t.className="dxg-range dxg-background-range",v.push(t)})),(0,i.each)(v,(function(e,t){t.startWidth=(t.start-c)/g*S+w,t.endWidth=(t.end-c)/g*S+w})),v},render:function(e){var t=this;return t._options=e,t._processOptions(),t._ranges=t._getRanges(),t._ranges&&(t.enabled=!0,t._root.linkAppend()),t},resize:function(e){var t=this;return t._root.clear(),t._isVisible(e)&&(0,i.each)(t._ranges,(function(n,i){t._createRange(i,e).attr({fill:i.color,class:i.className}).append(t._root)})),t},_processOptions:null,_isVisible:null,_createRange:null,getColorForValue:function(e){var t=null;return(0,i.each)(this._ranges,(function(n,i){if(i.start<=e&&e<=i.end||i.start>=e&&e>=i.end)return t=i.color,!1})),t}});t.default=p,e.exports=t.default,e.exports.default=t.default},31500:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default=void 0;var o=f(n(99393)),a=n(48013),r=n(13306),s=n(95479),l=n(18029),u=n(88917),d=n(19157),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(16030)),h=f(n(27172));function f(e){return e&&e.__esModule?e:{default:e}}var p=isFinite,g=d.normalizeAngle,m=d.getCosAndSin,_=Math.abs,v=Math.max,y=Math.min,x=Math.round,b=s.each,w=Math.PI,C=u.dxGauge.inherit({_rootClass:"dxg-circular-gauge",_factoryMethods:{rangeContainer:"createCircularRangeContainer",indicator:"createCircularIndicator"},_gridSpacingFactor:17,_scaleTypes:{type:"polarAxes",drawingType:"circular"},_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.subTheme="_circular",e},_updateScaleTickIndent:function(e){var t=e.label.indentFromTick,n=e.tick.visible?e.tick.length:0,i=this._scale.measureLabels((0,r.extend)({},this._canvas)),o=e.orientation,a=n,s=t;t>=0?"outside"===o?s+=a:"center"===o&&(s+=a/2):(s-=v(i.width,i.height)+this._getOption("rangeContainer").width,"inside"===o?s-=a:"center"===o&&(s-=a/2)),e.label.indentFromAxis=s,this._scale.updateOptions(e)},_setupCodomain:function(){var e,t=this,n=t.option("geometry")||{},i=n.startAngle,o=n.endAngle;i=p(i)?g(i):225,o=p(o)?g(o):-45,_(i-o)<1?(o-=360,e={left:-1,up:-1,right:1,down:1}):(i<o&&(o-=360),e=function(e,t){var n=m(e),i=m(t),o=n.cos,a=n.sin,r=i.cos,s=i.sin;return{left:a<=0&&s>=0||a<=0&&s<=0&&o<=r||a>=0&&s>=0&&o>=r?-1:y(o,r,0),right:a>=0&&s<=0||a>=0&&s>=0&&o>=r||a<=0&&s<=0&&o<=r?1:v(o,r,0),up:o<=0&&r>=0||o<=0&&r<=0&&a>=s||o>=0&&r>=0&&a<=s?-1:-v(a,s,0),down:o>=0&&r<=0||o>=0&&r>=0&&a<=s||o<=0&&r<=0&&a>=s?1:-y(a,s,0)}}(i,o)),t._area={x:0,y:0,radius:100,startCoord:i,endCoord:o,sides:e},t._translator.setCodomain(i,o)},_shiftScale:function(e){var t=this._scale,n=t.getCanvas();n.width=n.height=2*e.radius,t.draw(n);var i=t.getCenter();t.shift({right:e.x-i.x,bottom:e.y-i.y})},_getScaleLayoutValue:function(){return this._area.radius},_getTicksOrientation:function(e){return e.orientation},_getTicksCoefficients:function(e){var t={inner:0,outer:1};return"inside"===e.orientation?(t.inner=1,t.outer=0):"center"===e.orientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(e,t,n){t>=0?(e.horizontalOffset=t+n.width,e.verticalOffset=t+n.height):(e.horizontalOffset=e.verticalOffset=0,e.min-=-t+v(n.width,n.height)),e.inverseHorizontalOffset=n.width/2,e.inverseVerticalOffset=n.height/2},_measureMainElements:function(e,t){var n=this._area.radius,i=0,o=1/0,a=0,r=0,s=0,l=0,u=this._scale;return b(e.concat(u),(function(e,u){var d=u.measure?u.measure({radius:n-u.getOffset()}):t;d.min>0&&(o=y(o,d.min)),d.max>0&&(i=v(i,d.max)),d.horizontalOffset>0&&(a=v(a,d.max+d.horizontalOffset)),d.verticalOffset>0&&(r=v(r,d.max+d.verticalOffset)),d.inverseHorizontalOffset>0&&(s=v(s,d.inverseHorizontalOffset)),d.inverseVerticalOffset>0&&(l=v(l,d.inverseVerticalOffset))})),a=v(a-i,0),r=v(r-i,0),{minRadius:o,maxRadius:i,horizontalMargin:a,verticalMargin:r,inverseHorizontalMargin:s,inverseVerticalMargin:l}},_applyMainLayout:function(e,t){var n=this._measureMainElements(e,t),i=this._area,o=i.sides,a={left:(o.left<-.1?n.horizontalMargin:n.inverseHorizontalMargin)||0,right:(o.right>.1?n.horizontalMargin:n.inverseHorizontalMargin)||0,top:(o.up<-.1?n.verticalMargin:n.inverseVerticalMargin)||0,bottom:(o.down>.1?n.verticalMargin:n.inverseVerticalMargin)||0},s=function(e,t,n){var i,o=(0,r.extend)({},e),a=0,s=0;return n=n||{},t>0&&(o.left+=n.left||0,o.right-=n.right||0,o.top+=n.top||0,o.bottom-=n.bottom||0,S(o)>0&&k(o)>0?((i=k(o)/S(o))>1?t<i?a=S(o):s=k(o):t>i?s=k(o):a=S(o),a>0||(a=s/t),s>0||(s=a*t),a=(S(o)-a)/2,s=(k(o)-s)/2,o.left+=a,o.right-=a,o.top+=s,o.bottom-=s):(o.left=o.right=(o.left+o.right)/2,o.top=o.bottom=(o.top+o.bottom)/2)),o}(this._innerRect,(o.down-o.up)/(o.right-o.left),a),l=y(S(s)/(o.right-o.left),k(s)/(o.down-o.up));l=l-n.maxRadius+i.radius;var u=s.left-S(s)*o.left/(o.right-o.left),d=s.top-k(s)*o.up/(o.down-o.up);i.x=x(u),i.y=x(d),i.radius=l,s.left-=a.left,s.right+=a.right,s.top-=a.top,s.bottom+=a.bottom,this._innerRect=s},_getElementLayout:function(e){return{x:this._area.x,y:this._area.y,radius:x(this._area.radius-e)}},_getApproximateScreenRange:function(){var e=this,t=e._area,n=y(e._canvas.width/(t.sides.right-t.sides.left),e._canvas.height/(t.sides.down-t.sides.up));return n>t.totalRadius&&(n=t.totalRadius),n*=.8,-e._translator.getCodomainRange()*n*w/180},_getDefaultSize:function(){return{width:300,height:300}},_factory:(0,a.clone)(l.BaseGauge.prototype._factory)});function S(e){return e.right-e.left}function k(e){return e.bottom-e.top}var D=C.prototype._factory.indicators={};C.prototype._factory.createIndicator=(0,u.createIndicatorCreator)(D),D._default=c._default,D.rectangleneedle=c.rectangleneedle,D.triangleneedle=c.triangleneedle,D.twocolorneedle=c.twocolorneedle,D.trianglemarker=c.trianglemarker,D.textcloud=c.textcloud,D.rangebar=c.rangebar,C.prototype._factory.RangeContainer=h.default,(0,o.default)("dxCircularGauge",C);var I=C;t.default=I,e.exports=t.default,e.exports.default=t.default},16030:function(e,t,n){t.twocolorneedle=t.triangleneedle=t.trianglemarker=t.textcloud=t.rectangleneedle=t.rangebar=t._default=void 0;var i=n(3446),o=n(19157),a=Number,r=o.getCosAndSin,s=o.convertAngleToRendererSpace;function l(e,t){return e&&e.radius-t<=0&&(e.radius=t+1),e}var u=i.BaseIndicator.inherit({_move:function(){var e=this,t=e._options,n=s(e._actualPosition);e._rootElement.rotate(n,t.x,t.y),e._trackerElement&&e._trackerElement.rotate(n,t.x,t.y)},_isEnabled:function(){return this._options.width>0},_isVisible:function(e){return e.radius-a(this._options.indentFromCenter)>0},_getTrackerSettings:function(){var e=this._options,t=this._getRadius(),n=this._getIndentFromCenter(),i=e.x,o=e.y-(t+n)/2,a=e.width/2,r=(t-n)/2;return a>10||(a=10),r>10||(r=10),{points:[i-a,o-r,i-a,o+r,i+a,o+r,i+a,o-r]}},_render:function(){this._renderPointer()},_clearPointer:function(){delete this._element},_clear:function(){this._clearPointer()},_getIndentFromCenter:function(e){return Number(this._options.indentFromCenter)||0},_getRadius:function(){return 0},measure:function(e){var t={max:e.radius};return this._options.indentFromCenter<0&&(t.inverseHorizontalOffset=t.inverseVerticalOffset=-a(this._options.indentFromCenter)),t},getTooltipParameters:function(){var e=this._options,t=r(this._actualPosition),n=(this._getRadius()+this._getIndentFromCenter())/2;return{x:e.x+t.cos*n,y:e.y-t.sin*n,value:this._currentValue,color:e.color,offset:e.width/2}}}),d=u.inherit({_isVisible:function(e){var t=this._adjustOffset(Number(this._options.indentFromCenter),e.radius),n=this._adjustOffset(Number(this._options.offset),e.radius);return e.radius-t-n>0},getOffset:function(){return 0},_adjustOffset:function(e,t){var n=t/Number(this._options.beginAdaptingAtRadius);return n<1&&(e=Math.floor(e*n)),e||0},_getIndentFromCenter:function(e){return this._adjustOffset(Number(this._options.indentFromCenter),this._options.radius)},_getRadius:function(){var e=this._options;return e.radius-this._adjustOffset(Number(e.offset),e.radius)},_renderSpindle:function(){var e=this,t=e._options,n=t.radius,i=2*this._adjustOffset(a(t.spindleSize)/2,n),o=2*this._adjustOffset(a(t.spindleGapSize)/2,n)||0;o>0&&(o=o<=i?o:i),i>0&&(e._spindleOuter=e._spindleOuter||e._renderer.circle().append(e._rootElement),e._spindleInner=e._spindleInner||e._renderer.circle().append(e._rootElement),e._spindleOuter.attr({class:"dxg-spindle-border",cx:t.x,cy:t.y,r:i/2}),e._spindleInner.attr({class:"dxg-spindle-hole",cx:t.x,cy:t.y,r:o/2,fill:t.containerBackgroundColor}))},_render:function(){this.callBase(),this._renderSpindle()},_clear:function(){this.callBase(),delete this._spindleOuter,delete this._spindleInner}}),c=d.inherit({_renderPointer:function(){var e=this,t=e._options,n=t.y-this._getRadius(),i=t.y-this._getIndentFromCenter(),o=t.x-t.width/2,r=o+a(t.width);e._element=e._element||e._renderer.path([],"area").append(e._rootElement),e._element.attr({points:[o,i,o,n,r,n,r,i]})}});t.rectangleneedle=t._default=c;var h=d.inherit({_renderPointer:function(){var e=this,t=e._options,n=t.y-this._getRadius(),i=t.y-this._getIndentFromCenter(),o=t.x-t.width/2,a=t.x+t.width/2;e._element=e._element||e._renderer.path([],"area").append(e._rootElement),e._element.attr({points:[o,i,t.x,n,a,i]})}});t.triangleneedle=h;var f=d.inherit({_renderPointer:function(){var e,t,n=this,i=n._options,o=i.x-i.width/2,r=i.x+i.width/2,s=i.y-this._getRadius(),l=i.y-this._getIndentFromCenter(),u=a(i.secondFraction)||0;e=u>=1?t=l:u<=0?t=s:(t=s+(l-s)*u)+a(i.space),n._firstElement=n._firstElement||n._renderer.path([],"area").append(n._rootElement),n._spaceElement=n._spaceElement||n._renderer.path([],"area").append(n._rootElement),n._secondElement=n._secondElement||n._renderer.path([],"area").append(n._rootElement),n._firstElement.attr({points:[o,l,o,e,r,e,r,l]}),n._spaceElement.attr({points:[o,e,o,t,r,t,r,e],class:"dxg-hole",fill:i.containerBackgroundColor}),n._secondElement.attr({points:[o,t,o,s,r,s,r,t],class:"dxg-part",fill:i.secondColor})},_clearPointer:function(){delete this._firstElement,delete this._secondElement,delete this._spaceElement}});t.twocolorneedle=f;var p=u.inherit({_isEnabled:function(){return this._options.length>0&&this._options.width>0},_isVisible:function(e){return!0},resize:function(e){return this.callBase(l(e,0))},_render:function(){var e=this,t=e._options,n=t.x,i=t.y-t.radius,o=t.width/2||0,r=i-a(t.length);e._element=e._element||e._renderer.path([],"area").append(e._rootElement);var s={points:[n,i,n-o,r,n+o,r],stroke:"none","stroke-width":0,"stroke-linecap":"square"};t.space>0&&(s["stroke-width"]=Math.min(t.space,t.width/4)||0,s.stroke=s["stroke-width"]>0&&t.containerBackgroundColor||"none"),e._element.attr(s).sharp()},_clear:function(){delete this._element},_getTrackerSettings:function(){var e=this._options,t=e.x,n=e.y-e.radius-e.length/2,i=e.width/2,o=e.length/2;return i>10||(i=10),o>10||(o=10),{points:[t-i,n-o,t-i,n+o,t+i,n+o,t+i,n-o]}},measure:function(e){return{min:e.radius,max:e.radius+a(this._options.length)}},getTooltipParameters:function(){var e=this._options,t=r(this._actualPosition),n=e.radius+e.length/2,i=this.callBase();return i.x=e.x+t.cos*n,i.y=e.y-t.sin*n,i.offset=e.length/2,i}});t.trianglemarker=p;var g=i.BaseTextCloudMarker.inherit({_isEnabled:function(){return!0},_isVisible:function(e){return!0},resize:function(e){return this.callBase(l(e,0))},_getTextCloudOptions:function(){var e=this,t=r(e._actualPosition),n=(0,o.normalizeAngle)(e._actualPosition);return{x:e._options.x+t.cos*e._options.radius,y:e._options.y-t.sin*e._options.radius,type:n>270?"left-top":n>180?"top-right":n>90?"right-bottom":"bottom-left"}},measure:function(e){var t=this,n=a(t._options.arrowLength)||0;t._measureText();var i=t._textFullHeight+n,o=t._textFullWidth+n;return{min:e.radius,max:e.radius,horizontalOffset:o,verticalOffset:i,inverseHorizontalOffset:o,inverseVerticalOffset:i}}});t.textcloud=g;var m=i.BaseRangeBar.inherit({_isEnabled:function(){return this._options.size>0},_isVisible:function(e){return!0},resize:function(e){return this.callBase(l(e,a(this._options.size)))},_createBarItem:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"}).append(this._rootElement)},_createTracker:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"})},_setBarSides:function(){var e=this;e._maxSide=e._options.radius,e._minSide=e._maxSide-a(e._options.size)},_getSpace:function(){var e=this._options;return e.space>0?180*e.space/e.radius/Math.PI:0},_isTextVisible:function(){return(this._options.text||{}).indent>0},_setTextItemsSides:function(){var e=this,t=e._options,n=a(t.text.indent);e._lineFrom=t.y-t.radius,e._lineTo=e._lineFrom-n,e._textRadius=t.radius+n},_getPositions:function(){var e,t,n=this,i=n._basePosition,o=n._actualPosition;return i>=o?(e=i,t=o):(e=o,t=i),{start:n._startPosition,end:n._endPosition,main1:e,main2:t,back1:Math.min(e+n._space,n._startPosition),back2:Math.max(t-n._space,n._endPosition)}},_buildItemSettings:function(e,t){var n=this;return{x:n._options.x,y:n._options.y,innerRadius:n._minSide,outerRadius:n._maxSide,startAngle:t,endAngle:e}},_updateTextPosition:function(){var e=this,t=r(e._actualPosition),n=e._options.x+e._textRadius*t.cos,i=e._options.y-e._textRadius*t.sin;n+=t.cos*e._textWidth*.6,i-=t.sin*e._textHeight*.6,e._text.attr({x:n,y:i+e._textVerticalOffset})},_updateLinePosition:function(){var e,t,n=this,i=n._options.x;n._basePosition>n._actualPosition?(e=i-2,t=i):n._basePosition<n._actualPosition?(e=i,t=i+2):(e=i-1,t=i+1),n._line.attr({points:[e,n._lineFrom,e,n._lineTo,t,n._lineTo,t,n._lineFrom]}).rotate(s(n._actualPosition),i,n._options.y).sharp()},_getTooltipPosition:function(){var e=this,t=r((e._basePosition+e._actualPosition)/2),n=(e._minSide+e._maxSide)/2;return{x:e._options.x+t.cos*n,y:e._options.y-t.sin*n}},measure:function(e){var t=this,n={min:e.radius-a(t._options.size),max:e.radius};return t._measureText(),t._hasText&&(n.max+=a(t._options.text.indent),n.horizontalOffset=t._textWidth,n.verticalOffset=t._textHeight),n}});t.rangebar=m},27172:function(e,t,n){t.default=void 0;var i,o=(i=n(84165))&&i.__esModule?i:{default:i},a=n(19157),r=Number,s=Math.max,l=o.default.inherit({_processOptions:function(){var e=this;switch(e._inner=e._outer=0,(0,a.normalizeEnum)(e._options.orientation)){case"inside":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}},_isVisible:function(e){var t=this._options.width;return t=r(t)||s(r(t.start),r(t.end)),e.radius-this._inner*t>0},_createRange:function(e,t){var n=this,i=(e.startWidth+e.endWidth)/2;return n._renderer.arc(t.x,t.y,t.radius-n._inner*i,t.radius+n._outer*i,n._translator.translate(e.end),n._translator.translate(e.start)).attr({"stroke-linejoin":"round"})},measure:function(e){var t=this._options.width;return t=r(t)||s(r(t.start),r(t.end)),{min:e.radius-this._inner*t,max:e.radius+this._outer*t}}});t.default=l,e.exports=t.default,e.exports.default=t.default},88917:function(e,t,n){t.createIndicatorCreator=function(e){return function(t,n,i){var o=e[(0,s.normalizeEnum)(n)]||!i&&e._default;return o?new o(t):null}},t.dxGauge=void 0;var i=n(18029),o=n(35922),a=n(13306),r=n(41278),s=n(19157),l=n(20576),u=Array.isArray,d=isFinite,c=Number,h=Math.min,f=Math.max,p=a.extend,g="value",m="subvalues",_=[1,2,5];function v(e,t){return null===e?e:d(e)?c(e):t}function y(e){return u(e)?e:(0,o.isNumeric)(e)?[e]:null}var x=i.BaseGauge.inherit({_initCore:function(){var e=this,t=e._renderer;e._setupValue(e.option(g)),e.__subvalues=y(e.option(m)),e._setupSubvalues(e.__subvalues),C(e),e.callBase.apply(e,arguments),e._rangeContainer=new e._factory.RangeContainer({renderer:t,container:t.root,translator:e._translator,themeManager:e._themeManager}),e._initScale(),e._subvalueIndicatorContainer=e._renderer.g().attr({class:"dxg-subvalue-indicators"}).linkOn(e._renderer.root,"valueIndicator").enableLinks()},_fontFields:["scale.label.font","valueIndicators.rangebar.text.font","valueIndicators.textcloud.text.font","indicator.text.font"],_initScale:function(){var e=this;e._scaleGroup=e._renderer.g().attr({class:"dxg-scale"}).linkOn(e._renderer.root,"scale"),e._labelsAxesGroup=e._renderer.g().attr({class:"dxg-scale-elements"}).linkOn(e._renderer.root,"scale-elements"),e._scale=new r.Axis({incidentOccurred:e._incidentOccurred,renderer:e._renderer,axesContainerGroup:e._scaleGroup,labelsAxesGroup:e._labelsAxesGroup,axisType:e._scaleTypes.type,drawingType:e._scaleTypes.drawingType,widgetClass:"dxg",getTemplate:function(){}})},_disposeCore:function(){var e=this;e.callBase.apply(e,arguments),e._scale.dispose(),e._scaleGroup.linkOff(),e._labelsAxesGroup.linkOff(),e._rangeContainer.dispose(),e._disposeValueIndicators(),e._subvalueIndicatorContainer.linkOff(),e._scale=e._scaleGroup=e._labelsAxesGroup=e._rangeContainer=null},_disposeValueIndicators:function(){var e=this;e._valueIndicator&&e._valueIndicator.dispose(),e._subvalueIndicatorsSet&&e._subvalueIndicatorsSet.dispose(),e._valueIndicator=e._subvalueIndicatorsSet=null},_setupDomainCore:function(){var e=this,t=e.option("scale")||{},n=e.option("startValue"),i=e.option("endValue");n=(0,o.isNumeric)(n)?c(n):(0,o.isNumeric)(t.startValue)?c(t.startValue):0,i=(0,o.isNumeric)(i)?c(i):(0,o.isNumeric)(t.endValue)?c(t.endValue):100,e._baseValue=n<i?n:i,e._translator.setDomain(n,i)},_cleanContent:function(){this._rangeContainer.clean(),this._cleanValueIndicators()},_measureScale:function(e){var t=this,n=e.tick,i=n.visible&&n.length>0&&n.width>0,o=e.minorTick,r=o.visible&&o.length>0&&o.width>0,s=e.label,l=Number(s.indentFromTick);if(!i&&!r&&!s.visible)return{};var u=t._scale.measureLabels((0,a.extend)({},t._canvas)),d=t._getScaleLayoutValue(),c={min:d,max:d},p=t._getTicksCoefficients(e),g=p.inner,m=p.outer;return i&&(c.min=h(c.min,d-g*n.length),c.max=f(c.max,d+m*n.length)),r&&(c.min=h(c.min,d-g*o.length),c.max=f(c.max,d+m*o.length)),s.visible&&t._correctScaleIndents(c,l,u),c},_renderContent:function(){var e=this,t=e._prepareScaleSettings();e._rangeContainer.render(p(e._getOption("rangeContainer"),{vertical:e._area.vertical})),e._renderScale(t),e._subvalueIndicatorContainer.linkAppend();var n=(0,s.map)([e._rangeContainer].concat(e._prepareValueIndicators()),(function(e){return e&&e.enabled?e:null}));e._applyMainLayout(n,e._measureScale(t)),n.forEach((function(t){return t.resize(e._getElementLayout(t.getOffset()))})),e._shiftScale(e._getElementLayout(0),t),e._beginValueChanging(),e._updateActiveElements(),e._endValueChanging()},_prepareScaleSettings:function(){var e=this,t=e.option("scale"),n=(0,a.extend)(!0,{},e._themeManager.theme("scale"),t);return n.label.indentFromAxis=0,n.isHorizontal=!e._area.vertical,n.forceUserTickInterval|=(0,o.isDefined)(t)&&(0,o.isDefined)(t.tickInterval)&&!(0,o.isDefined)(t.scaleDivisionFactor),n.axisDivisionFactor=n.scaleDivisionFactor||e._gridSpacingFactor,n.minorAxisDivisionFactor=n.minorScaleDivisionFactor||5,n.numberMultipliers=_,n.tickOrientation=e._getTicksOrientation(n),n.label.useRangeColors&&(n.label.customizeColor=function(){return e._rangeContainer.getColorForValue(this.value)}),n},_renderScale:function(e){var t=this,n=t._translator.getDomain(),i=n[0],o=n[1],r=t._translator.getCodomain(),s=!!(i>o^e.inverted),l=h(i,o),u=f(i,o);e.min=l,e.max=u,e.startAngle=90-r[0],e.endAngle=90-r[1],e.skipViewportExtending=!0,e.inverted=s,t._scale.updateOptions(e),t._scale.setBusinessRange({axisType:"continuous",dataType:"numeric",min:l,max:u,invert:s}),t._updateScaleTickIndent(e),t._scaleGroup.linkAppend(),t._labelsAxesGroup.linkAppend(),t._scale.draw((0,a.extend)({},t._canvas))},_updateIndicatorSettings:function(e){var t=this;e.currentValue=e.baseValue=d(t._translator.translate(e.baseValue))?c(e.baseValue):t._baseValue,e.vertical=t._area.vertical,e.text&&!e.text.format&&(e.text.format=t._defaultFormatOptions)},_prepareIndicatorSettings:function(e,t){var n=this,i=n._themeManager.theme("valueIndicators"),o=(0,s.normalizeEnum)(e.type||n._themeManager.theme(t)),a=p(!0,{},i._default,i[o],e);return a.type=o,a.animation=n._animationSettings,a.containerBackgroundColor=n._containerBackgroundColor,n._updateIndicatorSettings(a),a},_cleanValueIndicators:function(){this._valueIndicator&&this._valueIndicator.clean(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.clean()},_prepareValueIndicators:function(){var e=this;return e._prepareValueIndicator(),null!==e.__subvalues&&e._prepareSubvalueIndicators(),[e._valueIndicator,e._subvalueIndicatorsSet]},_updateActiveElements:function(){this._updateValueIndicator(),this._updateSubvalueIndicators()},_prepareValueIndicator:function(){var e=this,t=e._valueIndicator,n=e._prepareIndicatorSettings(e.option("valueIndicator")||{},"valueIndicatorType");t&&t.type!==n.type&&(t.dispose(),t=null),t||(t=e._valueIndicator=e._createIndicator(n.type,e._renderer.root,"dxg-value-indicator","value-indicator")),t.render(n)},_createSubvalueIndicatorsSet:function(){var e=this,t=e._subvalueIndicatorContainer;return new E({createIndicator:function(n,i){return e._createIndicator(n,t,"dxg-subvalue-indicator","subvalue-indicator",i)},createPalette:function(t){return e._themeManager.createPalette(t)}})},_prepareSubvalueIndicators:function(){var e=this,t=e._subvalueIndicatorsSet,n=e._prepareIndicatorSettings(e.option("subvalueIndicator")||{},"subvalueIndicatorType");t||(t=e._subvalueIndicatorsSet=e._createSubvalueIndicatorsSet());var i=n.type!==t.type;t.type=n.type;var o=e._createIndicator(n.type,e._renderer.root);o&&(o.dispose(),t.render(n,i))},_setupValue:function(e){this.__value=v(e,this.__value)},_setupSubvalues:function(e){var t,n,i,o=void 0===e?this.__subvalues:y(e);if(null!==o){for(t=0,n=o.length,i=[];t<n;++t)i.push(v(o[t],this.__subvalues[t]));this.__subvalues=i}},_updateValueIndicator:function(){var e=this;e._valueIndicator&&e._valueIndicator.value(e.__value,e._noAnimation)},_updateSubvalueIndicators:function(){var e=this;e._subvalueIndicatorsSet&&e._subvalueIndicatorsSet.values(e.__subvalues,e._noAnimation)},value:function(e){return void 0!==e?(this._changeValue(e),this):this.__value},subvalues:function(e){return void 0!==e?(this._changeSubvalues(e),this):null!==this.__subvalues?this.__subvalues.slice():void 0},_changeValue:function(e){var t=this;t._setupValue(e),t._beginValueChanging(),t._updateValueIndicator(),t.__value!==t.option(g)&&t.option(g,t.__value),t._endValueChanging()},_changeSubvalues:function(e){var t=this;null!==t.__subvalues?(t._setupSubvalues(e),t._beginValueChanging(),t._updateSubvalueIndicators(),t._endValueChanging()):(t.__subvalues=y(e),t._setContentSize(),t._renderContent()),(0,i.compareArrays)(t.__subvalues,t.option(m))||t.option(m,t.__subvalues)},_optionChangesMap:{scale:"DOMAIN",rangeContainer:"MOSTLY_TOTAL",valueIndicator:"MOSTLY_TOTAL",subvalueIndicator:"MOSTLY_TOTAL",containerBackgroundColor:"MOSTLY_TOTAL",value:"VALUE",subvalues:"SUBVALUES",valueIndicators:"MOSTLY_TOTAL"},_customChangesOrder:["VALUE","SUBVALUES"],_change_VALUE:function(){this._changeValue(this.option(g))},_change_SUBVALUES:function(){this._changeSubvalues(this.option(m))},_applyMainLayout:null,_getElementLayout:null,_createIndicator:function(e,t,n,i,o,a){var r=this,s=r._factory.createIndicator({renderer:r._renderer,translator:r._translator,owner:t,tracker:r._tracker,className:n},e,a);return s&&(s.type=e,s._trackerInfo={type:i,index:o}),s},_getApproximateScreenRange:null});function b(e){return e?e.value:null}function w(e,t,n){for(var i=e[t],o=u(n)?(0,s.map)(n,b):[],a=0,r=o.length,l=[];a<r;++a)l.push(v(o[a],i[a]));e[t]=l}function C(e){var t;void 0===e.option(g)&&void 0===e.option(m)&&void 0!==e.option("valueIndicators")&&((t=e).value=t.subvalues=l.noop,t._setupValue=t._setupSubvalues=t._updateValueIndicator=t._updateSubvalueIndicators=null,function(e){e._indicatorValues=[],w(e,"_indicatorValues",e.option("valueIndicators")),e._valueIndicators=[];var t=e._applyMostlyTotalChange;e._applyMostlyTotalChange=function(){w(this,"_indicatorValues",this.option("valueIndicators")),t.call(this)},e._updateActiveElements=S,e._prepareValueIndicators=k,e._disposeValueIndicators=D,e._cleanValueIndicators=I,e.indicatorValue=T}(e))}function S(){var e=this;e._valueIndicators.forEach((function(t){t.value(e._indicatorValues[t.index],e._noAnimation)}))}function k(){var e,t=this,n=t._valueIndicators||[],i=t.option("valueIndicators"),o=[],a=0;for(e=u(i)?i.length:0;a<e;++a)o.push(i[a]);for(e=n.length;a<e;++a)o.push(null);var r=[];return o.forEach((function(e,i){var o=n[i];if(e){var a=t._prepareIndicatorSettings(e,"valueIndicatorType");o&&o.type!==a.type&&(o.dispose(),o=null),o||(o=t._createIndicator(a.type,t._renderer.root,"dxg-value-indicator","value-indicator",i,!0)),o&&(o.index=i,o.render(a),r.push(o))}else o&&o.dispose()})),t._valueIndicators=r,t._valueIndicators}function D(){this._valueIndicators.forEach((function(e){return e.dispose()})),this._valueIndicators=null}function I(){this._valueIndicators.forEach((function(e){return e.clean()}))}function T(e,t){return function(e,t,n,i,o){return void 0!==o?(void 0!==n[i]&&(n[i]=v(o,n[i]),t[i]&&t[i].value(n[i])),e):n[i]}(this,this._valueIndicators,this._indicatorValues,e,t)}function E(e){this._parameters=e,this._indicators=[]}t.dxGauge=x,E.prototype={constructor:E,dispose:function(){var e=this;return e._indicators.forEach((function(e){return e.dispose()})),e._parameters=e._options=e._indicators=e._colorPalette=e._palette=null,e},clean:function(){var e=this;return e._sample&&e._sample.clean().dispose(),e._indicators.forEach((function(e){return e.clean()})),e._sample=e._options=e._palette=null,e},render:function(e,t){var n=this;return n._options=e,n._sample=n._parameters.createIndicator(n.type),n._sample.render(e),n.enabled=n._sample.enabled,n._palette=(0,o.isDefined)(e.palette)?n._parameters.createPalette(e.palette):null,n.enabled&&(n._generatePalette(n._indicators.length),n._indicators=(0,s.map)(n._indicators,(function(e,i){return t&&(e.dispose(),e=n._parameters.createIndicator(n.type,i)),e.render(n._getIndicatorOptions(i)),e}))),n},getOffset:function(){return this._sample.getOffset()},resize:function(e){var t=this;return t._layout=e,t._indicators.forEach((function(t){return t.resize(e)})),t},measure:function(e){return this._sample.measure(e)},_getIndicatorOptions:function(e){var t=this._options;return this._colorPalette&&(t=p({},t,{color:this._colorPalette[e]})),t},_generatePalette:function(e){var t=this,n=null;t._palette&&(t._palette.reset(),n=t._palette.generateColors(e,{repeat:!0})),t._colorPalette=n},_adjustIndicatorsCount:function(e){var t,n,i,o=this,a=o._indicators,r=a.length;if(r>e){for(t=e,n=r;t<n;++t)a[t].clean().dispose();o._indicators=a.slice(0,e),o._generatePalette(a.length)}else if(r<e)for(o._generatePalette(e),t=r,n=e;t<n;++t)(i=o._parameters.createIndicator(o.type,t)).render(o._getIndicatorOptions(t)).resize(o._layout),a.push(i)},values:function(e,t){var n=this;if(n.enabled)return void 0!==e?(u(e)||(e=d(e)?[Number(e)]:null),e&&(n._adjustIndicatorsCount(e.length),n._indicators.forEach((function(n,i){return n.value(e[i],t)}))),n):(0,s.map)(n._indicators,(function(e){return e.value()}))}}},62987:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default=void 0;var o=n(95479),a=f(n(99393)),r=n(13306),s=n(48013),l=n(18029),u=n(88917),d=n(19157),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(79615)),h=f(n(74425));function f(e){return e&&e.__esModule?e:{default:e}}var p=Math.max,g=Math.min,m=Math.round,_=u.dxGauge.inherit({_rootClass:"dxg-linear-gauge",_factoryMethods:{rangeContainer:"createLinearRangeContainer",indicator:"createLinearIndicator"},_gridSpacingFactor:25,_scaleTypes:{type:"xyAxes",drawingType:"linear"},_getTicksOrientation:function(e){return e.isHorizontal?e.verticalOrientation:e.horizontalOrientation},_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.subTheme="_linear",e},_getInvertedState:function(){return!this._area.vertical&&this.option("rtlEnabled")},_prepareScaleSettings:function(){var e=this.callBase();return e.inverted=this._getInvertedState(),e},_updateScaleTickIndent:function(e){var t,n,i=e.label.indentFromTick,o=e.tick.length,a=this._scale.measureLabels((0,r.extend)({},this._canvas)),s=e.isHorizontal?a.height+a.y:0,l=i>0;e.isHorizontal?(n=o*(l?{center:.5,top:0,bottom:1}:{center:.5,top:1,bottom:0})[e.verticalOrientation],t=a.y):(n=o*(l?{center:.5,left:0,right:1}:{center:.5,left:1,right:0})[e.horizontalOrientation],t=-a.width),e.label.indentFromAxis=-i+(l?-n+t:n-s),this._scale.updateOptions(e)},_shiftScale:function(e,t){var n=this,i=(0,r.extend)({},n._canvas),o=t.isHorizontal,a=n._scale;i[o?"left":"top"]=n._area[o?"startCoord":"endCoord"],i[o?"right":"bottom"]=i[o?"width":"height"]-n._area[o?"endCoord":"startCoord"],a.draw(i),a.shift({left:-e.x,top:-e.y})},_setupCodomain:function(){var e=this,t=e.option("geometry")||{},n="vertical"===(0,d.normalizeEnum)(t.orientation);e._area={vertical:n,x:0,y:0,startCoord:-100,endCoord:100},e._rangeContainer.vertical=n,e._translator.setInverted(e._getInvertedState()),e._translator.setCodomain(-100,100)},_getScaleLayoutValue:function(){return this._area[this._area.vertical?"x":"y"]},_getTicksCoefficients:function(e){var t={inner:0,outer:1};return this._area.vertical?"left"===e.horizontalOrientation?(t.inner=1,t.outer=0):"center"===e.horizontalOrientation&&(t.inner=t.outer=.5):"top"===e.verticalOrientation?(t.inner=1,t.outer=0):"center"===e.verticalOrientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(e,t,n){var i=this._area.vertical;t>=0?e.max+=t+n[i?"width":"height"]:e.min-=-t+n[i?"width":"height"],e.indent=n[i?"height":"width"]/2},_measureMainElements:function(e,t){var n=this,i=n._area.x,a=n._area.y,r=1e3,s=0,l=0,u=n._scale;return(0,o.each)(e.concat(u),(function(e,n){var o=n.measure?n.measure({x:i+n.getOffset(),y:a+n.getOffset()}):t;void 0!==o.max&&(s=p(s,o.max)),void 0!==o.min&&(r=g(r,o.min)),o.indent>0&&(l=p(l,o.indent))})),{minBound:r,maxBound:s,indent:l}},_applyMainLayout:function(e,t){var n,i,o=this,a=o._measureMainElements(e,t),r=o._area;r.vertical?(i=((n=v(o._innerRect,{width:a.maxBound-a.minBound})).left+n.right)/2-(a.minBound+a.maxBound)/2,r.startCoord=n.bottom-a.indent,r.endCoord=n.top+a.indent,r.x=m(r.x+i)):(i=((n=v(o._innerRect,{height:a.maxBound-a.minBound})).top+n.bottom)/2-(a.minBound+a.maxBound)/2,r.startCoord=n.left+a.indent,r.endCoord=n.right-a.indent,r.y=m(r.y+i)),o._translator.setCodomain(r.startCoord,r.endCoord),o._innerRect=n},_getElementLayout:function(e){return{x:m(this._area.x+e),y:m(this._area.y+e)}},_getApproximateScreenRange:function(){var e=this,t=e._area,n=t.vertical?e._canvas.height:e._canvas.width;return n>t.totalSize&&(n=t.totalSize),.8*n},_getDefaultSize:function(){return"vertical"===(this.option("geometry")||{}).orientation?{width:100,height:300}:{width:300,height:100}},_factory:(0,s.clone)(l.BaseGauge.prototype._factory)});function v(e,t,n){var i,o=(0,r.extend)({},e);return n=n||{},t&&(o.left+=n.left||0,o.right-=n.right||0,o.top+=n.top||0,o.bottom-=n.bottom||0,t.width>0&&(i=(o.right-o.left-t.width)/2)>0&&(o.left+=i,o.right-=i),t.height>0&&(i=(o.bottom-o.top-t.height)/2)>0&&(o.top+=i,o.bottom-=i)),o}var y=_.prototype._factory.indicators={};_.prototype._factory.createIndicator=(0,u.createIndicatorCreator)(y),y._default=c._default,y.rectangle=c.rectangle,y.rhombus=c.rhombus,y.circle=c.circle,y.trianglemarker=c.trianglemarker,y.textcloud=c.textcloud,y.rangebar=c.rangebar,_.prototype._factory.RangeContainer=h.default,(0,a.default)("dxLinearGauge",_);var x=_;t.default=x,e.exports=t.default,e.exports.default=t.default},79615:function(e,t,n){t.trianglemarker=t.textcloud=t.rhombus=t.rectangle=t.rangebar=t.circle=t._default=void 0;var i=n(3446),o=n(19157),a=Number,r=i.BaseIndicator.inherit({_move:function(){var e=this,t=e._actualPosition-e._zeroPosition;e._rootElement.move(e.vertical?0:t,e.vertical?t:0),e._trackerElement&&e._trackerElement.move(e.vertical?0:t,e.vertical?t:0)},_isEnabled:function(){return this.vertical=this._options.vertical,this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_getTrackerSettings:function(){var e,t,n,i,o=this._options,a=o.width/2,r=o.length/2,s=this._zeroPosition;return a>10||(a=10),r>10||(r=10),this.vertical?(e=o.x-r,t=o.x+r,n=s+a,i=s-a):(e=s-a,t=s+a,n=o.y+r,i=o.y-r),{points:[e,n,e,i,t,i,t,n]}},_render:function(){this._zeroPosition=this._translator.getCodomainStart()},_clear:function(){delete this._element},measure:function(e){var t=this.vertical?e.x:e.y;return{min:t-this._options.length/2,max:t+this._options.length/2}},getTooltipParameters:function(){var e=this,t=e._options,n=e._actualPosition,i={x:n,y:n,value:e._currentValue,color:t.color,offset:t.width/2};return e.vertical?i.x=t.x:i.y=t.y,i}}),s=r.inherit({_render:function(){var e,t,n,i,o=this,a=o._options;o.callBase();var r=o._zeroPosition;o.vertical?(e=a.x-a.length/2,t=a.x+a.length/2,n=r+a.width/2,i=r-a.width/2):(e=r-a.width/2,t=r+a.width/2,n=a.y+a.length/2,i=a.y-a.length/2),o._element=o._element||o._renderer.path([],"area").append(o._rootElement),o._element.attr({points:[e,n,e,i,t,i,t,n]})}});t.rectangle=s;var l=r.inherit({_render:function(){var e,t,n,i,o=this,a=o._options;o.callBase(),o.vertical?(e=a.x,t=o._zeroPosition,n=a.length/2||0,i=a.width/2||0):(e=o._zeroPosition,t=a.y,n=a.width/2||0,i=a.length/2||0),o._element=o._element||o._renderer.path([],"area").append(o._rootElement),o._element.attr({points:[e-n,t,e,t-i,e+n,t,e,t+i]})}});t.rhombus=l;var u=r.inherit({_render:function(){var e,t,n=this,i=n._options;n.callBase(),n.vertical?(e=i.x,t=n._zeroPosition):(e=n._zeroPosition,t=i.y);var o=i.length/2||0;n._element=n._element||n._renderer.circle().append(n._rootElement),n._element.attr({cx:e,cy:t,r:o})}});t.circle=u;var d=r.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===(0,o.normalizeEnum)(e._options.horizontalOrientation):"bottom"===(0,o.normalizeEnum)(e._options.verticalOrientation),e._options.length>0&&e._options.width>0},_isVisible:function(){return!0},_render:function(){var e,t,n,i,o=this,r=o._options,s={stroke:"none","stroke-width":0,"stroke-linecap":"square"};o.callBase(),o.vertical?(e=r.x,n=o._zeroPosition,t=e+a(o._inverted?r.length:-r.length),s.points=[e,n,t,n-r.width/2,t,n+r.width/2]):(n=r.y,e=o._zeroPosition,i=n+a(o._inverted?r.length:-r.length),s.points=[e,n,e-r.width/2,i,e+r.width/2,i]),r.space>0&&(s["stroke-width"]=Math.min(r.space,r.width/4)||0,s.stroke=s["stroke-width"]>0&&r.containerBackgroundColor||"none"),o._element=o._element||o._renderer.path([],"area").append(o._rootElement),o._element.attr(s).sharp()},_getTrackerSettings:function(){var e,t,n,i,o,r=this,s=r._options,l=s.width/2,u=a(s.length);return l>10||(l=10),u>20||(u=20),r.vertical?(t=(e=s.x)+(r._inverted?u:-u),o=[e,n=r._zeroPosition+l,t,n,t,i=r._zeroPosition-l,e,i]):(i=(n=s.y)+(r._inverted?u:-u),o=[e=r._zeroPosition-l,n,e,i,t=r._zeroPosition+l,i,t,n]),{points:o}},measure:function(e){var t,n,i=this,o=a(i._options.length);return i.vertical?(t=n=e.x,i._inverted?n=t+o:t=n-o):(t=n=e.y,i._inverted?n=t+o:t=n-o),{min:t,max:n,indent:i._options.width/2}},getTooltipParameters:function(){var e=this,t=e._options,n=(e._inverted?t.length:-t.length)/2,i=e.callBase();return e.vertical?i.x+=n:i.y+=n,i.offset=t.length/2,i}});t.trianglemarker=d;var c=i.BaseTextCloudMarker.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===(0,o.normalizeEnum)(e._options.horizontalOrientation):"bottom"===(0,o.normalizeEnum)(e._options.verticalOrientation),!0},_isVisible:function(){return!0},_getTextCloudOptions:function(){var e,t=this,n=t._actualPosition,i=t._actualPosition;return t.vertical?(n=t._options.x,e=t._inverted?"top-left":"top-right"):(i=t._options.y,e=t._inverted?"right-top":"right-bottom"),{x:n,y:i,type:e}},measure:function(e){var t,n,i=this,o=a(i._options.arrowLength)||0;return i._measureText(),i.vertical?i._inverted?(t=e.x,n=e.x+o+i._textFullWidth):(t=e.x-o-i._textFullWidth,n=e.x):i._inverted?(t=e.y,n=e.y+o+i._textFullHeight):(t=e.y-o-i._textFullHeight,n=e.y),{min:t,max:n,indent:0}},_correctCloudType:function(e,t,n){var i=t.x,o=t.y,a=n.width,r=n.height;return"right-top"===e||"right-bottom"===e?i-a<this._translator.getCodomainStart()&&(e="left-".concat(e.split("-")[1])):"top-left"!==e&&"top-right"!==e||o+r>this._translator.getCodomainStart()&&(e="bottom-".concat(e.split("-")[1])),e}});t.textcloud=c;var h=i.BaseRangeBar.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===(0,o.normalizeEnum)(e._options.horizontalOrientation):"bottom"===(0,o.normalizeEnum)(e._options.verticalOrientation),e._options.size>0},_isVisible:function(){return!0},_createBarItem:function(){return this._renderer.path([],"area").append(this._rootElement)},_createTracker:function(){return this._renderer.path([],"area")},_setBarSides:function(){var e,t,n=this,i=n._options,o=a(i.size);n.vertical?n._inverted?(e=i.x,t=i.x+o):(e=i.x-o,t=i.x):n._inverted?(e=i.y,t=i.y+o):(e=i.y-o,t=i.y),n._minSide=e,n._maxSide=t,n._minBound=e,n._maxBound=t},_getSpace:function(){var e=this._options;return e.space>0?a(e.space):0},_isTextVisible:function(){var e=this._options.text||{};return e.indent>0||e.indent<0},_getTextAlign:function(){return this.vertical?this._options.text.indent>0?"left":"right":"center"},_setTextItemsSides:function(){var e=this,t=a(e._options.text.indent);t>0?(e._lineStart=e._maxSide,e._lineEnd=e._maxSide+t,e._textPosition=e._lineEnd+(e.vertical?2:e._textHeight/2),e._maxBound=e._textPosition+(e.vertical?e._textWidth:e._textHeight/2)):t<0&&(e._lineStart=e._minSide,e._lineEnd=e._minSide+t,e._textPosition=e._lineEnd-(e.vertical?2:e._textHeight/2),e._minBound=e._textPosition-(e.vertical?e._textWidth:e._textHeight/2))},_getPositions:function(){var e,t,n,i,o=this,a=o._startPosition,r=o._endPosition,s=o._space,l=o._basePosition,u=o._actualPosition;return a<r?(l<u?(e=l,t=u):(e=u,t=l),n=e-s,i=t+s):(l>u?(e=l,t=u):(e=u,t=l),n=e+s,i=t-s),{start:a,end:r,main1:e,main2:t,back1:n,back2:i}},_buildItemSettings:function(e,t){var n=this,i=n._minSide,o=n._maxSide;return{points:n.vertical?[i,e,i,t,o,t,o,e]:[e,i,e,o,t,o,t,i]}},_updateTextPosition:function(){var e=this;e._text.attr(e.vertical?{x:e._textPosition,y:e._actualPosition+e._textVerticalOffset}:{x:e._actualPosition,y:e._textPosition+e._textVerticalOffset})},_updateLinePosition:function(){var e,t,n,i=this,o=i._actualPosition;i.vertical?(i._basePosition>=o?(e=o,t=o+2):(e=o-2,t=o),n=[i._lineStart,e,i._lineStart,t,i._lineEnd,t,i._lineEnd,e]):(i._basePosition<=o?(e=o-2,t=o):(e=o,t=o+2),n=[e,i._lineStart,e,i._lineEnd,t,i._lineEnd,t,i._lineStart]),i._line.attr({points:n}).sharp()},_getTooltipPosition:function(){var e=this,t=(e._minSide+e._maxSide)/2,n=(e._basePosition+e._actualPosition)/2;return e.vertical?{x:t,y:n}:{x:n,y:t}},measure:function(e){var t,n,i,o=this,r=a(o._options.size),s=a(o._options.text.indent);return o._measureText(),o.vertical?(t=n=e.x,o._inverted?n+=r:t-=r,o._hasText&&(i=o._textHeight/2,s>0&&(n+=s+o._textWidth),s<0&&(t+=s-o._textWidth))):(t=n=e.y,o._inverted?n+=r:t-=r,o._hasText&&(i=o._textWidth/2,s>0&&(n+=s+o._textHeight),s<0&&(t+=s-o._textHeight))),{min:t,max:n,indent:i}}});t.rangebar=t._default=h},74425:function(e,t,n){t.default=void 0;var i,o=(i=n(84165))&&i.__esModule?i:{default:i},a=n(19157),r=Number,s=Math.max,l=o.default.inherit({_processOptions:function(){var e=this;if(e.vertical=e._options.vertical,e._inner=e._outer=0,e.vertical)switch((0,a.normalizeEnum)(e._options.horizontalOrientation)){case"left":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}else switch((0,a.normalizeEnum)(e._options.verticalOrientation)){case"top":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}},_isVisible:function(){return!0},_createRange:function(e,t){var n,i=this,o=i._inner,a=i._outer,r=i._translator.translate(e.start),s=i._translator.translate(e.end),l=t.x,u=t.y,d=e.startWidth,c=e.endWidth;return n=i.vertical?[l-d*o,r,l-c*o,s,l+c*a,s,l+d*a,r]:[r,u+d*a,r,u-d*o,s,u-c*o,s,u+c*a],i._renderer.path(n,"area")},measure:function(e){var t,n={};return n.min=n.max=e[this.vertical?"x":"y"],t=this._options.width,t=r(t)||s(r(t.start),r(t.end)),n.min-=this._inner*t,n.max+=this._outer*t,n}});t.default=l,e.exports=t.default,e.exports.default=t.default},41802:function(e,t,n){t.default=void 0;var i=n(13306),o=n(43637),a=i.extend,r={ThemeManager:o.BaseThemeManager.inherit({ctor:function(e){this.callBase.apply(this,arguments),this._subTheme=e.subTheme},_initializeTheme:function(){var e,t=this;t._subTheme&&(e=a(!0,{},t._theme[t._subTheme],t._theme),a(!0,t._theme,e)),t.callBase.apply(t,arguments)}})};t.default=r,e.exports=t.default,e.exports.default=t.default},57298:function(e,t,n){t.default=void 0;var i=d(n(55994)),o=d(n(38377)),a=d(n(73349)),r=n(765),s=d(n(24311)),l=n(39611),u=d(n(93786));function d(e){return e&&e.__esModule?e:{default:e}}var c="gauge-tooltip",h=s.default.add,f=o.default.inherit({ctor:function(e){var t=this;t._element=e.renderer.g().attr({class:"dxg-tracker",stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).linkOn(e.container,{name:"tracker",after:"peripheral"}),t._showTooltipCallback=function(){var e=t._tooltipEvent.target,n=e["gauge-data-target"],i=e["gauge-data-info"];if(t._targetEvent=null,t._tooltipTarget!==e){var o=function(n){n&&(t._tooltipTarget=e)};o(t._callbacks["tooltip-show"](n,i,o))}},t._hideTooltipCallback=function(){t._hideTooltipTimeout=null,t._targetEvent=null,t._tooltipTarget&&(t._callbacks["tooltip-hide"](),t._tooltipTarget=null)},t._dispose=function(){clearTimeout(t._hideTooltipTimeout),t._showTooltipCallback=t._hideTooltipCallback=t._dispose=null}},dispose:function(){var e=this;return e._dispose(),e.deactivate(),e._element.off("."+c),e._element.linkOff(),e._element=e._context=e._callbacks=null,e},activate:function(){return this._element.linkAppend(),this},deactivate:function(){return this._element.linkRemove().clear(),this},attach:function(e,t,n){return e.data({"gauge-data-target":t,"gauge-data-info":n}).append(this._element),this},detach:function(e){return e.remove(),this},setTooltipState:function(e){var t=this;if(t._element.off("."+c),e){var n={tracker:t};t._element.on((0,l.addNamespace)([u.default.move],c),n,g).on((0,l.addNamespace)([u.default.out],c),n,m).on((0,l.addNamespace)([u.default.down],c),n,v).on((0,l.addNamespace)([u.default.up],c),n,y).on((0,l.addNamespace)([r.name],c),n,_)}return t},setCallbacks:function(e){return this._callbacks=e,this},_showTooltip:function(e){var t=this;clearTimeout(t._hideTooltipTimeout),t._hideTooltipTimeout=null,t._tooltipTarget!==e.target&&(t._tooltipEvent=e,t._showTooltipCallback())},_hideTooltip:function(e){var t=this;clearTimeout(t._hideTooltipTimeout),e?t._hideTooltipTimeout=setTimeout(t._hideTooltipCallback,e):t._hideTooltipCallback()}}),p=null;function g(e){var t=e.data.tracker;t._x=e.pageX,t._y=e.pageY,t._showTooltip(e)}function m(e){e.data.tracker._hideTooltip(100)}function _(e){e.data.tracker._hideTooltip()}function v(e){(p=e.data.tracker)._touch=!0,g(e)}function y(){p._touch=!1}function x(e){var t=p;t&&!t._touch&&(t._hideTooltip(100),p=null)}h((function(){i.default.subscribeGlobal(a.default.getDocument(),(0,l.addNamespace)([u.default.down],c),x)}));var b=f;t.default=b,e.exports=t.default,e.exports.default=t.default},99630:function(e,t,n){var i;t.default=void 0;var o=((i=n(62987))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},23696:function(e,t,n){t.createPalette=y,t.currentPalette=m,t.generateColors=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{keepLastColorInEnd:!1};return n.type=n.baseColorSet,n.extensionMode=n.paletteExtensionMode,y(e,n).generateColors(t)},t.getAccentColor=function(e,t){return(e=_(e,{themeDefault:t})).accentColor||e[0]},t.getDiscretePalette=function(e,t,n){var i=t>0?function(e,t){var n,i=t-1,o=e.length-1,a=[],r=[];function l(e){var t=o*e,n=c(t),i=h(t);r.push(a[n].blend(a[i],t-n).toHex())}for(n=0;n<=o;++n)a.push(new s.default(e[n]));if(i>0)for(n=0;n<=i;++n)l(n/i);else l(.5);return r}(_(e,{type:"gradientSet",themeDefault:n}),t):[];return{getColor:function(e){return i[e]||null}}},t.getGradientPalette=function(e,t){var n=_(e,{type:"gradientSet",themeDefault:t}),i=new s.default(n[0]),o=new s.default(n[1]);return{getColor:function(e){return 0<=e&&e<=1?i.blend(o,e).toHex():null}}},t.getPalette=_,t.registerPalette=function(e,t){var n,i={};f(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=f(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=f(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=f(t.gradientSet)?t.gradientSet.slice(0):void 0,i.accentColor=t.accentColor),i.accentColor||(i.accentColor=i.simpleSet&&i.simpleSet[0]),(i.simpleSet||i.indicatingSet||i.gradientSet)&&(n=(0,a.normalizeEnum)(e),(0,r.extend)(g[n]=g[n]||{},i))};var i,o,a=n(19157),r=n(13306),s=(i=n(52752))&&i.__esModule?i:{default:i},l=n(35922);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d,c=Math.floor,h=Math.ceil,f=Array.isArray,p="material",g=(u(o={},p,{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"}),u(o,"office",{simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"}),u(o,"harmony light",{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"}),u(o,"soft pastel",{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"}),u(o,"pastel",{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"}),u(o,"bright",{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"}),u(o,"soft",{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"}),u(o,"ocean",{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"}),u(o,"vintage",{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"}),u(o,"violet",{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"}),u(o,"carmine",{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"}),u(o,"dark moon",{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"}),u(o,"soft blue",{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"}),u(o,"dark violet",{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"}),u(o,"green mist",{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}),o);function m(e){if(void 0===e)return d||p;e=(0,a.normalizeEnum)(e),d=e in g?e:void 0}function _(e,t){var n;t=t||{},e=e||(void 0===d?t.themeDefault:m());var i=t.type;return f(e)?e.slice(0):((0,l.isString)(e)&&(n=g[(0,a.normalizeEnum)(e)]),n||(n=g[m()]),i?n[i].slice(0):n)}function v(e){var t=0;this.next=function(){var n=e[t++];return t===e.length&&this.reset(),n},this.reset=function(){t=0}}function y(e,t,n){var i={dispose:function(){this._extensionStrategy=null},getNextColor:function(e){return this._extensionStrategy.getColor(this._currentColor++,e)},generateColors:function(e,t){return this._extensionStrategy.generateColors(e,(t||{}).repeat)},reset:function(){return this._currentColor=0,this._extensionStrategy.reset(),this}},o=((t=t||{}).extensionMode||"").toLowerCase(),a=_(e,{type:t.type||"simpleSet",themeDefault:n});return i._extensionStrategy="alternate"===o?function(e,t){var n=t.useHighlight?50:0,i=new v([0,n,-n]),o=[];function a(){var t=i.next();o=t?function(e,t){var n,i=[],o=e.length;for(n=0;n<o;++n)i.push(x(e[n],t));return i}(e,t):e.slice(0)}return{getColor:function(t){var n=o[t%e.length];return t%e.length==e.length-1&&a(),n},generateColors:function(e){var n=[];e=e||t.count;for(var i=0;i<e;i++)n.push(this.getColor(i));return n},reset:function(){i.reset(),a()}}}(a,t):"extrapolate"===o?function(e,t){return{getColor:function(t,n){var i=e.length,o=c((n-1)/i+1),a=e[t%i];return o>1?function(e,t,n){var i=new s.default(e).hsl,o=i.l/100,a=n-1/n,r=o-.5*a,l=o+.5*a,u=(n-1)/2,d=t-u;return r<Math.min(.5,.9*o)&&(r=Math.min(.5,.9*o)),l>Math.max(.8,o+.15*(1-o))&&(l=Math.max(.8,o+.15*(1-o))),d<0?o-=(r-o)*d/u:o+=d/u*(l-o),i.l=100*o,s.default.prototype.fromHSL(i).toHex()}(a,c(t/i),o):a},generateColors:function(e){var n=[];e=e||t.count;for(var i=0;i<e;i++)n.push(this.getColor(i,e));return n},reset:function(){}}}(a,t):function(e,t){var n=e.length,i=[];function o(e,t,n,i){for(var o,a,r=Math.floor(e/t),s=e-t*r,l=n;l<n+e;)a=r,s>0&&(a+=1,s--),o=a>2?Math.floor(a/2):0,i.push(l+o),l+=a;return i.sort((function(e,t){return e-t}))}function a(e,t,n){for(var i=0,o=t=(n+t)%n;o<2*n;o+=1){var a=(n+o)%n;if(e[a])return[e[a],i];i++}}function r(i){if(i<=n)return e;var r=[],l=n-2,u=0,d=[];d=t.keepLastColorInEnd?o(i-2,l,1,[0,i-1]):o(i-1,n-1,1,[0]);for(var c=0;c<i;c++)d.indexOf(c)>-1&&(r[c]=e[u++]);return r=function(e,t){for(var n=0;n<t;n++)if(!e[n]){var i=e[n-1];if(!i)continue;var o=a(e,n,t),r=new s.default(o[0]);i=new s.default(i);for(var l=0;l<o[1];l++,n++)e[n]=i.blend(r,(l+1)/(o[1]+1)).toHex()}return e}(r,i)}return{getColor:function(e,o){return o=o||t.count||n,i.length!==o&&(i=r(o)),i[e%o]},generateColors:function(e,i){if(e=e||t.count||n,i&&e>n){for(var o=r(n),a=0;a<e-n;a++)o.push(o[a]);return o}return n>0?r(e).slice(0,e):[]},reset:function(){}}}(a,t),i.reset(),i}function x(e,t){var n,i=new s.default(e).alter(t),o=.3*(n=i).r+.59*n.g+.11*n.b;return(o>200||o<55)&&(i=new s.default(e).alter(-t/2)),i.toHex()}},72111:function(e,t,n){t.default=void 0;var i=p(n(32410)),o=n(19157),a=n(13306),r=n(35922),s=n(95479),l=n(21177),u=p(n(99393)),d=n(33224),c=n(20576),h=n(17953),f=n(77129);function p(e){return e&&e.__esModule?e:{default:e}}var g=i.default.states,m=i.default.pieSeriesSpacing,_=g.normalMark,v=g.hoverMark,y=g.selectedMark,x=[g.resetItem,g.applyHover,g.applySelected,g.applySelected];function b(e){return(0,r.isNumeric)(e)?e>1?e=1:e<0&&(e=0):e=void 0,e}var w=function(){function e(e,t){return e.filter((function(e){return e!==t}))}var t=[],n={};return{queue:function(i){var o,a=i.getSizeGroup();t=e(t,o=i).concat(o),clearTimeout(n[a]),n[a]=setTimeout((function(){!function(e,t){var n=t.filter((function(t){return t._isVisible()&&t.getSizeGroup()===e})),i=Math.min.apply(null,n.map((function(e){return e.getSizeGroupLayout().radius}))),o=n.filter((function(e){return e.getSizeGroupLayout().radius===i}));n.forEach((function(e){return e.render({force:!0,sizeGroupLayout:o.length?o[0].getSizeGroupLayout():{}})}))}(a,t)}))},remove:function(i){(t=e(t,i)).length||(n={})}}}(),C=d.BaseChart.inherit({_themeSection:"pie",_layoutManagerOptions:function(){return(0,a.extend)(!0,{},this.callBase(),{piePercentage:b(this._themeManager.getOptions("diameter")),minPiePercentage:b(this._themeManager.getOptions("minDiameter"))})},_customChangesOrder:["CENTER_TEMPLATE"],_optionChangesMap:{diameter:"REINIT",minDiameter:"REINIT",sizeGroup:"REINIT",centerTemplate:"CENTER_TEMPLATE"},_change_CENTER_TEMPLATE:function(){this._renderCenterTemplate()},_disposeCore:function(){w.remove(this),this.callBase(),this._centerTemplateGroup.linkOff().dispose()},_groupSeries:function(){var e=this.series;this._groupsData={groups:[{series:e,valueOptions:{valueType:"numeric"}}],argumentOptions:e[0]&&e[0].getOptions()}},getArgumentAxis:function(){return null},_getValueAxis:function(){var e=(new h.Translator1D).setCodomain(360,0);return{getTranslator:function(){return e},setBusinessRange:function(t){e.setDomain(t.min,t.max)}}},_populateBusinessRange:function(){this.series.map((function(e){var t=new l.Range;return t.addRange(e.getRangeData().val),e.getValueAxis().setBusinessRange(t),t}))},_specialProcessSeries:function(){(0,s.each)(this.series,(function(e,t){t.arrangePoints()}))},_checkPaneName:function(){return!0},_processSingleSeries:function(e){this.callBase(e),e.arrangePoints()},_handleSeriesDataUpdated:function(){var e=0;this.series.forEach((function(t){e=Math.max(t.getPointsCount(),e)})),this.series.forEach((function(t){t.setMaxPointsCount(e)})),this.callBase()},_getLegendOptions:function(e){var t=this.callBase(e),n=t.legendData;return n.argument=e.argument,n.argumentIndex=e.argumentIndex,n.points=[e],t},_getLegendTargets:function(){var e=this,t={};(e.series||[]).forEach((function(e){e.getPoints().forEach((function(n){var i=n.argument.valueOf(),o=e.getPointsByArg(i).indexOf(n),a=i.valueOf().toString()+o;t[a]=t[a]||[];var r=t[a].push(n);n.index=t[a][r-2]?t[a][r-2].index:Object.keys(t).length-1,n.argumentIndex=o}))}));var n=[];return(0,s.each)(t,(function(t,i){i.forEach((function(t,i){if(0!==i){var o=n[n.length-1];o.legendData.points.push(t),o.visible||(o.visible=t.isVisible())}else n.push(e._getLegendOptions(t))}))})),n},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getLayoutSeries:function(e,t){var n,i=this,o=i._canvas,a=!1;return n=i.layoutManager.applyPieChartSeriesLayout(o,e,!0),e.forEach((function(e){e.correctPosition(n,o),a=e.drawLabelsWOPoints()||a})),a&&(n=i.layoutManager.applyPieChartSeriesLayout(o,e,t.hideLayoutLabels)),e.forEach((function(e){e.hideLabels()})),i._sizeGroupLayout={x:n.centerX,y:n.centerY,radius:n.radiusOuter,drawOptions:t},n},_getLayoutSeriesForEqualPies:function(e,t){var n=this._canvas,i=this.layoutManager.applyEqualPieChartLayout(e,t);return e.forEach((function(e){e.correctPosition(i,n),e.drawLabelsWOPoints()})),this.layoutManager.correctPieLabelRadius(e,i,n),i},_updateSeriesDimensions:function(e){var t,n,i,o=this,a=o._getVisibleSeries(),r=a.length,s=e.sizeGroupLayout;r&&(i=s?o._getLayoutSeriesForEqualPies(a,s):o._getLayoutSeries(a,e),n=(i.radiusOuter-i.radiusInner-m*(r-1))/r,t=i.radiusInner,o._setGeometry(i),a.forEach((function(e){e.correctRadius({radiusInner:t,radiusOuter:t+n}),t+=n+m})))},_renderSeries:function(e,t,n){if(this._calculateSeriesLayout(e,t),!e.sizeGroupLayout&&this.getSizeGroup())return w.queue(this),void this._clearCanvas();this._renderSeriesElements(e,n)},_createHtmlStructure:function(){this.callBase(),this._centerTemplateGroup=this._renderer.g().attr({class:"dxc-hole-template"}).linkOn(this._renderer.root,"center-template").css((0,o.patchFontOptions)(this._themeManager._font)).linkAppend()},_renderExtraElements:function(){this._requestChange(["CENTER_TEMPLATE"])},_renderCenterTemplate:function(){var e=this,t=this.option("centerTemplate"),n=this._centerTemplateGroup.clear();t&&(n.attr({visibility:"hidden"}),(t=this._getTemplate(t)).render({model:this,container:n.element,onRendered:function(){var t=n,i=t.getBBox();t.move(e._center.x-(i.x+i.width/2),e._center.y-(i.y+i.height/2)),t.attr({visibility:"visible"})}}))},getInnerRadius:function(){return this._innerRadius},_getLegendCallBack:function(){var e=this,t=this._legend,n=this._getLegendTargets().map((function(e){return e.legendData}));return function(i){n.forEach((function(n){var o=[],a=t.getActionCallback({index:n.id});e.series.forEach((function(e){var t=e.getPointsByKeys(n.argument,n.argumentIndex);o.push.apply(o,t)})),i&&i.argument===n.argument&&i.argumentIndex===n.argumentIndex&&o.push(i),a(function(e){var t=_;return e.forEach((function(e){var n,i=null===(n=e.series)||void 0===n?void 0:n.getOptions(),o=e.fullState;"none"===(null==i?void 0:i.hoverMode)&&(o&=~v),"none"===(null==i?void 0:i.selectionMode)&&(o&=~y),t|=o})),x[t]}(o))}))}},_locateLabels:function(e){var t,n,i=0;do{n=this._adjustSeriesLabels("shift"===e),t=this._resolveLabelOverlapping(e)}while((t||n)&&++i<5)},_adjustSeriesLabels:function(e){return this.series.reduce((function(t,n){return n.adjustLabels(e)||t}),!1)},_applyExtraSettings:c.noop,_resolveLabelOverlappingShift:function(){var e=this,t="anticlockwise"===e.option("segmentsDirection"),n=e.series.reduce((function(e,t){return(e[t.getOptions().label.position]||e.outside).push(t),e}),{inside:[],columns:[],outside:[]}),i=!1;return n.inside.length>0&&(i=r(n.inside.reduce((function(e,t){return t.getVisiblePoints().reduce((function(e,t){return e.left.push(t),e}),e)}),{left:[],right:[]}),s)||i),i=n.columns.reduce((function(e,t){return r(a(t),s)||e}),i),n.outside.length>0&&(i=r(n.outside.reduce((function(e,t){return a(t,e)}),null),(function(t,n){return(0,o.getVerticallyShiftedAngularCoords)(t,-n,e._center)}))||i),i;function a(e,t){return e.getVisiblePoints().reduce((function(e,t){var n=(0,o.normalizeAngle)(t.middleAngle);return(n<=90||n>=270?e.right:e.left).push(t),e}),t||{left:[],right:[]})}function r(n,i){var o;return t&&(n.left.reverse(),n.right.reverse()),o=d.overlapping.resolveLabelOverlappingInOneDirection(n.left,e._canvas,!1,!1,i),d.overlapping.resolveLabelOverlappingInOneDirection(n.right,e._canvas,!1,!1,i)||o}function s(e,t){return{x:e.x,y:e.y-t}}},_setGeometry:function(e){var t=e.centerX,n=e.centerY,i=e.radiusInner;this._center={x:t,y:n},this._innerRadius=i},_disposeSeries:function(e){this.callBase.apply(this,arguments),this._abstractSeries=null},_legendDataField:"point",_legendItemTextField:"argument",_applyPointMarkersAutoHiding:c.noop,_renderTrackers:c.noop,_trackerType:"PieTracker",_createScrollBar:c.noop,_updateAxesLayout:c.noop,_applyClipRects:c.noop,_appendAdditionalSeriesGroups:c.noop,_prepareToRender:c.noop,_isLegendInside:c.noop,_renderAxes:c.noop,_shrinkAxes:c.noop,_isRotated:c.noop,_seriesPopulatedHandlerCore:c.noop,_reinitAxes:c.noop,_correctAxes:c.noop,_getExtraOptions:function(){var e=this;return{startAngle:e.option("startAngle"),innerRadius:e.option("innerRadius"),segmentsDirection:e.option("segmentsDirection"),type:e.option("type")}},getSizeGroup:function(){return this._themeManager.getOptions("sizeGroup")},getSizeGroupLayout:function(){return this._sizeGroupLayout||{}}});(0,s.each)(["startAngle","innerRadius","segmentsDirection","type"],(function(e,t){C.prototype._optionChangesMap[t]="REFRESH_SERIES_DATA_INIT"})),C.addPlugin(f.plugins.core),C.addPlugin(f.plugins.pieChart),(0,u.default)("dxPieChart",C);var S=C;t.default=S,e.exports=t.default,e.exports.default=t.default},80919:function(e,t,n){t.default=void 0;var i,o=n(20576),a=(i=n(99393))&&i.__esModule?i:{default:i},r=n(13306),s=n(19157),l=n(42602),u=n(35922),d=n(77129),c=l.AdvancedChart.inherit({_themeSection:"polar",_createPanes:function(){return this.callBase(),[{name:"default"}]},_checkPaneName:function(){return!0},_getAxisRenderingOptions:function(e){var t="argumentAxis"===e?"circular":"linear";return this.option("useSpiderWeb")&&(t+="Spider"),{axisType:"polarAxes",drawingType:t}},_executeAppendBeforeSeries:function(e){e()},_prepareAxisOptions:function(e,t){var n="argumentAxis"===e,i=this._themeManager,o=this.option("argumentAxis"),a=i.getOptions("argumentAxis",o)||{},r=isFinite(a.startAngle)?(0,s.normalizeAngle)(a.startAngle):0;return{type:this.option("useSpiderWeb")&&n?"discrete":t.type,isHorizontal:!0,showCustomBoundaryTicks:n,startAngle:r,endAngle:r+360}},_optionChangesMap:{useSpiderWeb:"AXES_AND_PANES"},_getExtraOptions:function(){return{spiderWidget:this.option("useSpiderWeb")}},_prepareToRender:function(){return this._appendAxesGroups(),{}},_calcCanvas:function(){var e=(0,r.extend)({},this._canvas),t=this.getArgumentAxis().getMargins();return Object.keys(t).forEach((function(n){return e[n]=e["original".concat(n[0].toUpperCase()).concat(n.slice(1))]+t[n]})),e},_renderAxes:function(e){var t=this,n=t._getValueAxis(),i=t.getArgumentAxis();i.draw(t._canvas),n.setSpiderTicks(i.getSpiderTicks());var o=t._calcCanvas();return i.updateSize(o),n.draw(o),o},_getValueAxis:function(){return this._valueAxes[0]},_shrinkAxes:function(e){var t=this._getValueAxis(),n=this.getArgumentAxis();if(e&&(e.width||e.height)){n.hideOuterElements();var i=this._calcCanvas();n.updateSize(i),t.updateSize(i)}},checkForMoreSpaceForPanesCanvas:function(){return this.layoutManager.needMoreSpaceForPanesCanvas([{canvas:this.getArgumentAxis().getCanvas()}],this._isRotated())},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getSeriesForPane:function(){return this.series},_applyClipRects:function(){var e=this._getCanvasClipRectID();this._createClipPathForPane(),this.getArgumentAxis().applyClipRects(this._getElementsClipRectID(),e),this._getValueAxis().applyClipRects(this._getElementsClipRectID(),e)},_createClipPathForPane:function(){var e=this,t=e._getValueAxis(),n=t.getCenter(),i=t.getRadius(),o=e._panesClipRects;n={x:Math.round(n.x),y:Math.round(n.y)},e._createClipCircle(o.fixed,n.x,n.y,i),e._createClipCircle(o.base,n.x,n.y,i),e.series.some((function(e){return e.areErrorBarsVisible()}))?e._createClipCircle(o.wide,n.x,n.y,i):o.wide[0]=null},_createClipCircle:function(e,t,n,i){var o=e[0];o?o.attr({cx:t,cy:n,r:i}):(o=this._renderer.clipCircle(t,n,i),e[0]=o)},_applyExtraSettings:function(e){var t=this._panesClipRects.wide[0];e.setClippingParams(this._panesClipRects.base[0].id,t&&t.id,!1,!1)},getActualAngle:function(e){return this.getArgumentAxis().getOptions().inverted?360-e:e},getXYFromPolar:function(e,t,n,i){var o={angle:void 0,radius:void 0,x:void 0,y:void 0};if(!((0,u.isDefined)(e)||(0,u.isDefined)(t)||(0,u.isDefined)(n)||(0,u.isDefined)(i)))return o;var a,l,d=this.getArgumentAxis(),c=d.getAngles()[0];if((0,u.isDefined)(n)?a=d.getTranslator().translate(n):isFinite(e)?a=this.getActualAngle(e):(0,u.isDefined)(e)||(a=0),(0,u.isDefined)(i)?l=this.getValueAxis().getTranslator().translate(i):isFinite(t)?l=t:(0,u.isDefined)(t)||(l=d.getRadius()),(0,u.isDefined)(a)&&(0,u.isDefined)(l)){var h=(0,s.convertPolarToXY)(d.getCenter(),c,a,l);(0,r.extend)(o,h,{angle:d.getTranslatedAngle(a),radius:l})}return o},_applyPointMarkersAutoHiding:o.noop,_createScrollBar:o.noop,_isRotated:o.noop,_getCrosshairOptions:o.noop,_isLegendInside:o.noop});c.addPlugin(d.plugins.core),c.addPlugin(d.plugins.polarChart),(0,a.default)("dxPolarChart",c);var h=c;t.default=h,e.exports=t.default,e.exports.default=t.default},82879:function(e,t,n){var i;t.default=void 0;var o=((i=n(91009))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},11378:function(e,t,n){t.utils=t.formatValue=t.consts=t.HEIGHT_COMPACT_MODE=void 0;var i=n(41583),o=n(35922);t.HEIGHT_COMPACT_MODE=24,t.utils={trackerSettings:{fill:"grey",stroke:"grey",opacity:1e-4},animationSettings:{duration:250}};t.consts={emptySliderMarkerText:". . .",pointerSize:4},t.formatValue=function(e,t,n,a,r,s){var l={value:e,valueText:(0,i.smartFormatter)(e,{labelOptions:t,ticks:n?n.ticks:[],tickInterval:n?n.tickInterval:void 0,dataType:a,type:r,logarithmBase:s})};return String((0,o.isFunction)(t.customizeText)?t.customizeText.call(l,l):l.valueText)}},91009:function(e,t,n){t.default=void 0;var i=D(n(99393)),o=n(35922),a=n(13306),r=n(95479),s=n(19157),l=D(n(91198)),u=n(60810),d=n(21177),c=n(41278),h=n(8587),f=D(n(30343)),p=n(11378),g=n(56481),m=n(43695),_=n(25104),v=n(79302),y=n(45971),x=D(n(53805)),b=D(n(59063)),w=n(82454),C=n(17384),S=n(64758),k=n(1539);function D(e){return e&&e.__esModule?e:{default:e}}var I=Math.max,T=Math.ceil,E=Math.floor,A="startValue",O="datetime",P="value",M="discrete",R="semidiscrete",B="string",V="valueChanged",F="containerBackgroundColor",L="logarithmic",H="keep",N="shift",z="reset";function W(e,t,n){var i=Z(e,void 0===t?p.consts.emptySliderMarkerText:(0,p.formatValue)(t,n),n.font);return T(i.height)+2*n.paddingTopBottom+p.consts.pointerSize}function G(e,t,n,i){var o=Z(e,(0,p.formatValue)(t,n.label,i,n.valueType,n.type,n.logarithmBase),n.label.font);return T(o.width/2)}function j(e,t){var n=(0,o.type)(e),i=(0,o.type)(t),a=function(e){return n===e||i===e};return a("date")?O:a("number")?"numeric":a(B)?B:""}function q(e){return e.valueType===O&&e.marker.visible}function $(e,t,n){if(e){var i=e.logarithmBase;e.type===L&&i<=0||i&&!(0,o.isNumeric)(i)?(e.logarithmBase=t,n("E2104")):e.type!==L&&(e.logarithmBase=void 0)}}function K(e,t,n,i){var o=t.label,a=t.marker,r=t.placeholderHeight,s="semidiscrete"===t.type?t.customTicks:i.ticks,l=(0,p.formatValue)(s[0],o);return r||(o.visible?o.topIndent+Z(e,l,o.font).height:0)+(n?a.topIndent+a.separatorHeight:0)}function U(e,t,n){return e?n?e=l.default.getNextDateUnit(e):e+=t:e=t,e}function Y(e){var t;return null===(t=e.workWeek)||void 0===t?void 0:t[0]}function Z(e,t,n){var i=e.text(t,-1e3,-1e3).css((0,s.patchFontOptions)(n)).append(e.root),o=i.getBBox();return i.remove(),o}function X(e,t,n,i,a){var r,s,u,d,c,h=e._categoriesInfo,p=e.valueType===O;!t||t.isEmpty()||n.isEmpty()||(r=i.bounds,n.addRange(r),e.startValue=n.invert?r.maxVisible:r.minVisible,e.endValue=n.invert?r.minVisible:r.maxVisible),e.marker.visible=a(p&&-1===e.type.indexOf(M),e.marker.visible,e.startValue,e.endValue,i.tickInterval),h&&(e.startValue=h.start,e.endValue=h.end),-1===e.type.indexOf(M)&&(s=(0,o.isDate)(e.startValue)&&(0,o.isDate)(e.endValue)&&e.startValue.getTime()===e.endValue.getTime()||e.startValue===e.endValue),e.isEmpty=(d=e.startValue,c=e.endValue,!(0,o.isDefined)(d)||!(0,o.isDefined)(c)||s),e.isEmpty?e.startValue=e.endValue=void 0:(e.minorTickInterval=i.minorTickInterval,e.tickInterval=i.tickInterval,p&&(!(0,o.isDefined)(e.label.format)||e.type===R&&e.minorTickInterval!==e.tickInterval)&&(e.type===M?e.label.format=f.default.getDateFormatByTicks(i.ticks):e.marker.visible?e.label.format=l.default.getDateFormatByTickInterval(e.tickInterval):e.label.format=f.default.getDateFormatByTickInterval(e.startValue,e.endValue,e.tickInterval))),e.type===R&&(u=function(e){var t=e.startValue,n=e.endValue,i="datetime"===e.valueType,a=Y(e),r=e.tickInterval,s={intervals:[]};return(0,o.isDefined)(t)&&(0,o.isDefined)(n)?(s.intervals=l.default.getSequenceByInterval(t,n,e.minorTickInterval),r!==e.minorTickInterval&&(s.altIntervals=s.intervals,t=Q(t,i,r,a),n=Q(n,i,r,a),s.intervals=l.default.getSequenceByInterval(t,n,r),s.intervals[0]=s.altIntervals[0]),s):s}(e),e.customMinorTicks=u.altIntervals,e.customTicks=u.intervals,e.customBoundTicks=[e.customTicks[0]])}function Q(e,t,n,i){return(0,o.isDefined)(e)&&(e=t?l.default.correctDateWithUnitBeginning(new Date(e),n,null,i):(0,u.adjust)(E((0,u.adjust)(e/n))*n)),e}function J(e,t,n){var i=Math.abs(t-e)/n,o=i-E(i);return o>0?T(Math.abs((0,u.adjust)((0,s.getLog)(o,10)))):0}var ee=b.default.inherit({_toggleParentsScrollSubscription:function(){},_eventsMap:{onValueChanged:{name:V}},_rootClassPrefix:"dxrs",_rootClass:"dxrs-range-selector",_dataIsReady:function(){return this._dataIsLoaded()},_initialChanges:["DATA_SOURCE","VALUE"],_themeDependentChanges:["MOSTLY_TOTAL"],_themeSection:"rangeSelector",_fontFields:["scale.label.font","sliderMarker.font"],_initCore:function(){var e=this,t=e._renderer,n=t.root;n.css({"touch-action":"pan-y"}),e._clipRect=t.clipRect();var i=t.g().attr({class:"dxrs-view"}).append(n),a=t.g().attr({class:"dxrs-slidersContainer","clip-path":e._clipRect.id}).append(n),r=t.g().attr({class:"dxrs-scale","clip-path":e._clipRect.id}).append(n),l=t.g().attr({class:"dxrs-scale-elements","clip-path":e._clipRect.id}).append(n),u=t.g().attr({class:"dxrs-scale-breaks"}).append(n),d=t.g().attr({class:"dxrs-trackers"}).append(n);e._axis=new oe({renderer:t,root:r,scaleBreaksGroup:u,labelsAxesGroup:l,updateSelectedRange:function(t,n){e.setValue((0,s.convertVisualRangeObject)(t),n)},incidentOccurred:e._incidentOccurred}),e._rangeView=new _.RangeView({renderer:t,root:i,translator:e._axis.getTranslator()}),e._slidersController=new g.SlidersController({renderer:t,root:a,trackersGroup:d,updateSelectedRange:function(t,n,i){e._rangeOption||e.option(P,(0,s.convertVisualRangeObject)(t,(0,o.isPlainObject)(e._options.silent(P)))),e._eventTrigger(V,{value:(0,s.convertVisualRangeObject)(t),previousValue:(0,s.convertVisualRangeObject)(n),event:i})},axis:e._axis,translator:e._axis.getTranslator()}),e._tracker=new m.Tracker({renderer:t,controller:e._slidersController})},_getDefaultSize:function(){return{width:400,height:160}},_disposeCore:function(){this._axis.dispose(),this._slidersController.dispose(),this._tracker.dispose()},_applySize:function(e){this._clientRect=e.slice(),this._change(["MOSTLY_TOTAL"])},_optionChangesMap:{scale:"SCALE",value:"VALUE",dataSource:"DATA_SOURCE"},_optionChangesOrder:["SCALE","DATA_SOURCE"],_change_SCALE:function(){this._change(["MOSTLY_TOTAL"])},_setValueByDataSource:function(){var e=this,t=e._options.silent(),n=e._axis;if(t.dataSource){var i=e.option("selectedRangeUpdateMode"),a=e.getValue(),r=(0,o.isDefined)(a[0])&&(0,o.isDefined)(a[1]);if((0,o.isDefined)(i)?(i=(0,s.normalizeEnum)(i),e.__skipAnimation=!0):r&&!e._dataSourceIsAsync&&(i=z),"auto"===i&&r){var l=n.allScaleSelected(a);i=l.startValue&&l.endValue?z:l.endValue?N:H}if(i===z)t.value=null;else if(i===N&&r){var u=e.getValue();e.__skipAnimation=!0,t.value={length:n.getVisualRangeLength({minVisible:u[0],maxVisible:u[1]})}}else i===H&&(e.__skipAnimation=!0)}e._dataSourceIsAsync=void 0},_change_DATA_SOURCE:function(){this._options.silent("dataSource")&&this._updateDataSource()},_customChangesOrder:["MOSTLY_TOTAL","VALUE","SLIDER_SELECTION"],_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_change_SLIDER_SELECTION:function(){var e=this._options.silent(P);this._slidersController.setSelectedRange(e&&(0,s.getVizRangeObject)(e))},_change_VALUE:function(){var e=this,t=e._rangeOption;e._dataSourceIsAsync=!e._dataIsReady(),t&&(e._options.silent(P,t),e.setValue(t))},_validateRange:function(e,t){var n=this._axis.getTranslator();((0,o.isDefined)(e)&&!n.isValid(e)||(0,o.isDefined)(t)&&!n.isValid(t))&&this._incidentOccurred("E2203")},_applyChanges:function(){var e=this,t=e._options.silent(P);e._changes.has("VALUE")&&t&&(e._rangeOption=t),e.callBase.apply(e,arguments),e._rangeOption=null,e.__isResizing=e.__skipAnimation=!1},_applyMostlyTotalChange:function(){var e,t=this,n=t._renderer,i=t._clientRect,o={left:i[0],top:i[1],width:i[2]-i[0],height:i[3]-i[1]};(t.__isResizing||t.__skipAnimation)&&(e=n.animationEnabled(),n.updateAnimationOptions({enabled:!1})),t._clipRect.attr({x:i[0],y:i[1],width:i[2]-i[0],height:i[3]-i[1]}),t._axis.getTranslator().update(new d.Range,o,{isHorizontal:!0}),t._updateContent({left:i[0],top:i[1],width:i[2]-i[0],height:i[3]-i[1]}),(t.__isResizing||t.__skipAnimation)&&n.updateAnimationOptions({enabled:e}),t._drawn()},_dataSourceChangedHandler:function(){this._setValueByDataSource(),this._requestChange(["MOSTLY_TOTAL"])},_completeSeriesDataSourceCreation:function(e,t){var n=this._clientRect,i={left:n[0],top:n[1],width:n[2]-n[0],height:n[3]-n[1]};this._axis.updateOptions((0,a.extend)({},e,{isHorizontal:!0,label:{}})),t.isShowChart()&&this._axis.setMarginOptions(t.getMarginOptions(i)),this._axis.updateCanvas(i),t.createPoints()},_updateContent:function(e){var t=this,n=t.option("chart"),i=t._createSeriesDataSource(n),a=!(i&&i.isShowChart()||t.option("background.image.url")),r=function(e,t,n,i){var a=0,r=(0,h.correctValueType)((0,s.normalizeEnum)(e.valueType)),l=function(t,i){var r=t===A?"start":"end";(0,o.isDefined)(e[t])&&(a=i(e[t]),(0,o.isDefined)(a)?e[t]=a:(e[t]=void 0,n("E2202",[r])))};(r=t||r)||(r=j(e.startValue,e.endValue)||"numeric"),(r===B||e.categories)&&(e.type=M,r=B),e.containerColor=i,e.valueType=r,e.dataType=r;var u=(0,h.getParser)(r);return l(A,u),l("endValue",u),$(e,10,n),e.type||(e.type="continuous"),e.parser=u,e.type===R&&(e.minorTick.visible=!1,e.minorTickInterval=e.minRange,e.marker.visible=!1,e.maxRange=void 0),e.forceUserTickInterval|=(0,o.isDefined)(e.tickInterval)&&!(0,o.isDefined)(e.axisDivisionFactor),e.axisDivisionFactor=(0,o.isDefined)(e.axisDivisionFactor)?e.axisDivisionFactor:30,e.minorAxisDivisionFactor=(0,o.isDefined)(e.minorAxisDivisionFactor)?e.minorAxisDivisionFactor:15,e}(t._getOption("scale"),i&&i.getCalculatedValueType(),t._incidentOccurred,this._getOption("containerBackgroundColor",!0));i&&t._completeSeriesDataSourceCreation(r,i);var u,c=function(e,t){var n,i,a,r,l,u=!1,c=t.startValue,h=t.endValue,f=e?e.getBoundRange().arg:new d.Range,p="datetime"===t.valueType,g=Y(t),m=t.minRange;return t.type===M&&((l=new d.Range({minVisible:c,maxVisible:h})).addRange(f),f=l,a=(a=e?e.argCategories:t.categories||c&&h&&[c,h])||[],t._categoriesInfo=r=(0,s.getCategoriesInfo)(a,c,h)),t.type===R&&(c=t.startValue=Q(t.startValue,p,m,g),h=t.endValue=Q(t.endValue,p,m,g),f.minVisible=Q(f.minVisible,p,m,g),f.maxVisible=Q(f.maxVisible,p,m,g),f.min=Q(f.min,p,m,g),f.max=Q(f.max,p,m,g)),(0,o.isDefined)(c)&&(0,o.isDefined)(h)?(u=r?r.inverted:c>h,n=r?r.start:u?h:c,i=r?r.end:u?c:h):(0,o.isDefined)(c)||(0,o.isDefined)(h)?(n=c,i=h):r&&(n=r.start,i=r.end),f.addRange({invert:u,min:n,max:i,minVisible:n,maxVisible:i,dataType:t.valueType}),f.addRange({categories:e?void 0:a,base:t.logarithmBase,axisType:t.type,dataType:t.valueType}),e&&f.sortCategories(a),f}(i,r),f=function(e,t,n,i){var a,r,s,u=(0,o.isDefined)(i.minVisible)?i.minVisible:i.min,d=(0,o.isDefined)(i.maxVisible)?i.maxVisible:i.max,c=e._categoriesInfo,h={};return e.type===R?a=function(e,t,n,i){var o,a,r,s=e.minorTickInterval,u=e.tickInterval,d="datetime"===e.valueType,c=e.axisDivisionFactor||{};if(!u)do{if(u===(o=U(u,s,d)))break;u=o,d&&(o=l.default.dateToMilliseconds(u)),a=T((n-t)/o),r=E(i/(c[u]||50))||1}while(o&&a>r);return{tickInterval:u,minorTickInterval:s,bounds:{minVisible:t,maxVisible:n},ticks:[]}}(e,u,d,t):(s=(r=(0,y.tickGenerator)({axisType:e.type,dataType:e.valueType,logBase:e.logarithmBase,allowNegatives:!0,linearThreshold:Math.abs(e.linearThreshold||0),axisDivisionFactor:e.axisDivisionFactor,minorAxisDivisionFactor:e.minorAxisDivisionFactor,calculateMinors:!0,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:n,rangeIsEmpty:i.isEmpty()})({min:u,max:d,categories:(0,o.isDefined)(c)?c.categories:[]},t,e.tickInterval,e.forceUserTickInterval,void 0,e.minorTickInterval,e.minorTickCount)).ticks.length,h.minVisible=r.ticks[0]<u?r.ticks[0]:u,h.maxVisible=r.ticks[s-1]>d?r.ticks[s-1]:d,a={tickInterval:r.tickInterval,minorTickInterval:0===e.minorTickInterval?0:r.minorTickInterval,bounds:h,ticks:r.ticks}),a}(r,e.width,t._incidentOccurred,c),g=i&&i.isShowChart()&&i.getThemeManager();g&&$(n&&n.valueAxis,g.getOptions("valueAxis").logarithmBase,t._incidentOccurred),X(r,i,c,f,(u=e.width,function(e,t,n,i,a){return t&&e&&(!(0,o.isDefined)(a)||a.years||a.months>=6||u/50<T((i-n)/l.default.dateToMilliseconds("year"))+1)&&(t=!1),t})),function(e,t){var n=t.minorTickInterval||t.tickInterval;"datetime"===t.valueType&&(n=l.default.dateToMilliseconds(n)),e.addRange({interval:n})}(c,r);var m=t._prepareSliderMarkersOptions(r,e.width,f,c),_=function(e,t,n,i,a){var r,s,l,u,d,c,h,f=0,p=0,g="semidiscrete"===t.type?t.customTicks:a.ticks;return l=(i=i||{}).left,u=i.right,d=n.placeholderHeight,n.visible&&(r=W(e,t.startValue,n),s=W(e,t.endValue,n),void 0===d&&(d=I(r,s))),t.label.visible&&(c=(0,o.isDefined)(t.startValue)?g[0]:void 0,h=(0,o.isDefined)(t.endValue)?g[g.length-1]:void 0,f=G(e,c,t,a),p=G(e,h,t,a)),{left:l=void 0!==l?l:f,right:u=(void 0!==u?u:p)||1,top:d||0,bottom:0}}(t._renderer,r,m,t.option("indent"),f),v={left:e.left+_.left,top:e.top+_.top,width:e.left+_.left+I(e.width-_.left-_.right,1),height:I(a?p.HEIGHT_COMPACT_MODE:e.height-_.top-_.bottom-K(t._renderer,r,q(r),f),0),right:0,bottom:0};t._axis.update(r,a,v,c,i),r.minorTickInterval=r.isEmpty?0:r.minorTickInterval,t._updateElements(r,m,a,v,i),g&&g.dispose()},_updateElements:function(e,t,n,i,o){var a=this,r=a._getOption("behavior"),s=a._getOption("shutter"),l=e.type!==R;s.color=s.color||a._getOption(F,!0),a._rangeView.update(a.option("background"),a._themeManager.theme("background"),i,n,r.animationEnabled&&a._renderer.animationEnabled(),o),a._isUpdating=!0,a._slidersController.update([i.top,i.top+i.height],r,n,a._getOption("sliderHandle"),t,s,{minRange:l?a.option("scale.minRange"):void 0,maxRange:l?a.option("scale.maxRange"):void 0},a._axis.getFullTicks(),a._getOption("selectedRangeColor",!0)),a._requestChange(["SLIDER_SELECTION"]),a._isUpdating=!1,a._tracker.update(!a._axis.getTranslator().getBusinessRange().isEmpty(),r)},_createSeriesDataSource:function(e){var t,n=this,i=n._dataSourceItems(),o=n._getOption("scale"),r=o.valueType||j(o.startValue,o.endValue),l=new c.Axis({renderer:n._renderer,axisType:"xyAxes",drawingType:"linear"});return l.updateOptions({isHorizontal:!1,label:{},categoriesSortingMethod:n._getOption("chart").valueAxis.categoriesSortingMethod}),(i||e&&e.series)&&(e=(0,a.extend)({},e,{theme:n.option("theme")}),t=new v.SeriesDataSource({renderer:n._renderer,dataSource:i,valueType:(0,s.normalizeEnum)(r),axisType:o.type,chart:e,dataSourceField:n.option("dataSourceField"),incidentOccurred:n._incidentOccurred,categories:o.categories,argumentAxis:n._axis,valueAxis:l})),t},_prepareSliderMarkersOptions:function(e,t,n,i){var a=this,r=n.minorTickInterval,s=n.tickInterval,u=s,d=e.endValue,c=e.startValue,h=a._getOption("sliderMarker"),p=!a._getOption("behavior").snapToTicks,g=e.type===M,m=e.valueType===O;return h.borderColor=a._getOption(F,!0),h.format||i.isEmpty()||(p&&(0,o.isNumeric)(e.startValue)&&(h.format={type:"fixedPoint",precision:J(c,d,t)}),m&&!g&&((0,o.isDefined)(r)&&0!==r&&(u=function(e,t,n){var i=l.default.getDateUnitInterval(t),o=l.default.getDateUnitInterval(e),a=l.default.dateUnitIntervals.indexOf(i);return n&&i===o&&a>0&&(i=l.default.dateUnitIntervals[a-1]),i}(s,r,p)),e.marker.visible?h.format=l.default.getDateFormatByTickInterval(u):(0,o.isDefined)(c)&&(0,o.isDefined)(d)&&(h.format=f.default.getDateFormatByTickInterval(c,d,u))),m&&g&&n.ticks.length&&(h.format=f.default.getDateFormatByTicks(n.ticks))),h},getValue:function(){return(0,s.convertVisualRangeObject)(this._slidersController.getSelectedRange())},setValue:function(e,t){var n=(0,s.getVizRangeObject)(e);!this._isUpdating&&e&&(this._validateRange(n.startValue,n.endValue),!(0,s.rangesAreEqual)(n,this._slidersController.getSelectedRange())&&this._slidersController.setSelectedRange(n,t))},_setContentSize:function(){this.__isResizing=2===this._changes.count(),this.callBase.apply(this,arguments)}});function te(){return 1}function ne(e){return e%2==1?-E(e/2):-e/2}function ie(e,t,n,i){function o(o){2===o.length&&x.default.areLabelsOverlap(t[o[0]],t[o[1]],n,i)&&e[o[0]].removeLabel()}function a(t){for(var n=[],i=t;n.length<2&&i<e.length;i++)e[i].label&&n.push(i);return n}e.length<3||(o(a(0)),o(a(e.length-2).reverse()))}function oe(e){var t=this;t._axis=new c.Axis({renderer:e.renderer,axesContainerGroup:e.root,scaleBreaksGroup:e.scaleBreaksGroup,labelsAxesGroup:e.labelsAxesGroup,incidentOccurred:e.incidentOccurred,axisType:"xyAxes",drawingType:"linear",widgetClass:"dxrs",axisClass:"range-selector",isArgumentAxis:!0,getTemplate:function(){}}),t._updateSelectedRangeCallback=e.updateSelectedRange,t._axis.getAxisSharpDirection=t._axis.getSharpDirectionByCoords=te,t._axis.getTickStartPositionShift=ne,t._axis._checkShiftedLabels=ie}(0,r.each)(["selectedRangeColor","containerBackgroundColor","sliderMarker","sliderHandle","shutter","background","behavior","chart","indent"],(function(e,t){ee.prototype._optionChangesMap[t]="MOSTLY_TOTAL"})),oe.prototype={constructor:oe,dispose:function(){this._axis.dispose()},calculateInterval:function(e,t){return this._axis.calculateInterval(e,t)},update:function(e,t,n,i,o){var a=this._axis;a.updateOptions(function(e,t,n,i){return e.marker.label.font=e.label.font,e.color=e.marker.color=e.tick.color,e.opacity=e.marker.opacity=e.tick.opacity,e.width=e.marker.width=e.tick.width,e.placeholderSize=(e.placeholderHeight||0)+i,e.argumentType=e.valueType,e.visible=t,e.isHorizontal=!0,e.calculateMinors=!0,e.semiDiscreteInterval=e.minRange,t||(e.minorTick.length=e.tick.length=n),e.label.indentFromAxis=e.label.topIndent+i,e}(e,t,n.height,n.height/2-T(e.width/2))),a.validate(),a.setBusinessRange(i,!0),void 0!==o&&o.isShowChart()&&a.setMarginOptions(o.getMarginOptions(n)),a.draw(n),a.shift({left:0,bottom:-n.height/2+n.top}),a.getMarkerTrackers()&&function(e,t,n){function i(t){var i=t.target.range,o=e.minRange?l.default.addInterval(i.startValue,e.minRange):void 0,a=e.maxRange?l.default.addInterval(i.startValue,e.maxRange):void 0;o&&o>i.endValue||a&&a<i.endValue||n(i,t)}(0,r.each)(t,(function(e,t){t.on("dxpointerdown",i)}))}(e,a.getMarkerTrackers(),this._updateSelectedRangeCallback),a.drawScaleBreaks({start:n.top,end:n.top+n.height})},visualRange:function(){},getViewport:function(){return{}},allScaleSelected:function(e){var t=this._axis.visualRange(),n=t.startValue,i=t.endValue;return{startValue:e[0].valueOf()===n.valueOf(),endValue:e[1].valueOf()===i.valueOf()}},getOptions:function(){return this._axis.getOptions()||{}}},["setMarginOptions","getFullTicks","updateCanvas","updateOptions","getAggregationInfo","getTranslator","getVisualRangeLength","getVisibleArea","getMarginOptions","getVisualRangeCenter"].forEach((function(e){oe.prototype[e]=function(){var t=this._axis;return t[e].apply(t,arguments)}})),(0,i.default)("dxRangeSelector",ee);var ae=ee;t.default=ae,ee.addPlugin(w.plugin),ee.addPlugin(C.plugin),ee.addPlugin(S.plugin),ee.addPlugin(k.plugin),e.exports=t.default,e.exports.default=t.default},25104:function(e,t){function n(e,t){return void 0!==e?e:t}function i(e){this._params=e,this._clipRect=e.renderer.clipRect(),e.root.attr({"clip-path":this._clipRect.id})}t.RangeView=i,i.prototype={constructor:i,update:function(e,t,i,o,a,r){var s=this._params.renderer,l=this._params.root,u=i.width-i.left;e=e||{},l.clear(),this._clipRect.attr({x:i.left,y:i.top,width:u,height:i.height}),o||(n(e.visible,t.visible)&&(e.color&&s.rect(i.left,i.top,u+1,i.height).attr({fill:n(e.color,t.color),class:"dx-range-selector-background"}).append(l),e.image&&e.image.url&&s.image(i.left,i.top,u+1,i.height,e.image.url,n(e.image.location,t.image.location)).append(l)),r&&r.isShowChart()&&function(e,t,n,i){var o=t.getSeries();if(o.length){var a=o[0].getValueAxis();a.updateCanvas({top:n.top,bottom:0,height:n.height+n.top}),t.adjustSeriesDimensions();var r=t.getBoundRange().val;r.sortCategories(a.getCategoriesSorter()),a.setBusinessRange(r),o.forEach((function(t){t._extGroups.seriesGroup=t._extGroups.labelsGroup=e,t.draw(i)}))}}(s.g().attr({class:"dxrs-series-group"}).append(l),r,i,a))}}},79302:function(e,t,n){t.SeriesDataSource=void 0;var i=n(54932),o=n(1939),a=n(35922),r=n(13306),s=n(89386),l=n(95479),u=n(19157),d=n(21177),c=n(45865),h=n(99327),f=function(e){var t,n=this,i=n._themeManager=(t=e.chart,new h.ThemeManager({options:t,themeSection:"rangeSelector.chart",fontFields:["commonSeriesSettings.label.font"]}));i.setTheme(e.chart.theme);var o=i.getOptions("topIndent"),a=i.getOptions("bottomIndent");n._indent={top:o>=0&&o<1?o:0,bottom:a>=0&&a<1?a:0},n._valueAxis=i.getOptions("valueAxisRangeSelector")||{},n._hideChart=!1,n._series=n._calculateSeries(e),n._seriesFamilies=[]};t.SeriesDataSource=f,f.prototype={constructor:f,_calculateSeries:function(e){var t,n,o,a,s,l,d,h=this,f=[],p=e.dataSource||[],g=h._themeManager,m=g.getOptions("seriesTemplate"),_=m?(0,u.processSeriesTemplate)(m,p):e.chart.series,v=h._valueAxis;for(e.dataSource&&!_&&(_={argumentField:a=e.dataSourceField||"arg",valueField:a},h._hideChart=!0),_=Array.isArray(_)?_:_?[_]:[],s=0;s<_.length;s++)(t=(0,r.extend)(!0,{},_[s])).rotated=!1,(n=g.getOptions("series",t,_.length)).argumentField=n.argumentField||e.dataSourceField,n.name||(n.name="Series "+(s+1).toString()),p&&p.length>0&&(l=new i.Series({renderer:e.renderer,argumentAxis:e.argumentAxis,valueAxis:e.valueAxis,incidentOccurred:e.incidentOccurred},n),f.push(l));if(f.length)for(d={groups:[{series:f,valueAxis:e.valueAxis,valueOptions:{type:v.type,valueType:a?e.valueType:v.valueType}}],argumentOptions:{categories:e.categories,argumentType:e.valueType,type:e.axisType}},o=(0,c.validateData)(p,d,e.incidentOccurred,g.getOptions("dataPrepareSettings")),h.argCategories=d.categories,s=0;s<f.length;s++)f[s].updateData(o[f[s].getArgumentField()]);return f},createPoints:function(){if(0!==this._series.length){var e=this._series,t=new d.Range,n=e[0].getArgumentAxis(),i=this._themeManager,r=i.getOptions("negativesAsZeroes"),u=i.getOptions("negativesAsZeros");e.forEach((function(e){t.addRange(e.getArgumentRange())})),n.getTranslator().updateBusinessRange(t),e.forEach((function(e){e.createPoints()})),this._seriesFamilies=function(e,t,n,i,a){var r=[],u=[];return(0,l.each)(e,(function(e,t){-1===(0,s.inArray)(t.type,u)&&u.push(t.type)})),(0,l.each)(u,(function(s,l){var u=new o.SeriesFamily({type:l,minBubbleSize:t,maxBubbleSize:n,barGroupPadding:i.barGroupPadding,barGroupWidth:i.barGroupWidth,negativesAsZeroes:a});u.add(e),u.adjustSeriesValues(),r.push(u)})),r}(e,i.getOptions("minBubbleSize"),i.getOptions("maxBubbleSize"),{barGroupPadding:i.getOptions("barGroupPadding"),barGroupWidth:i.getOptions("barGroupWidth")},(0,a.isDefined)(r)?r:u)}},adjustSeriesDimensions:function(){(0,l.each)(this._seriesFamilies,(function(e,t){t.adjustSeriesDimensions()}))},getBoundRange:function(){var e,t,n,i,o,r=this,s=r._valueAxis,u=new d.Range({min:s.min,minVisible:s.min,max:s.max,maxVisible:s.max,axisType:s.type,base:s.logarithmBase}),c=new d.Range({});return(0,l.each)(r._series,(function(t,n){e=n.getRangeData(),u.addRange(e.val),c.addRange(e.arg)})),u.isEmpty()||c.isEmpty()||(i=s.inverted?r._indent.top:r._indent.bottom,o=s.inverted?r._indent.bottom:r._indent.top,t=u.max-u.min,n=((0,a.isNumeric)(u.maxVisible)?u.maxVisible:u.max)-((0,a.isNumeric)(u.minVisible)?u.minVisible:u.min),(0,a.isDate)(u.min)?u.min=new Date(u.min.valueOf()-t*i):u.min-=t*i,(0,a.isDate)(u.max)?u.max=new Date(u.max.valueOf()+t*o):u.max+=t*o,(0,a.isNumeric)(n)&&(u.maxVisible=u.maxVisible?u.maxVisible+n*o:void 0,u.minVisible=u.minVisible?u.minVisible-n*i:void 0),u.invert=s.inverted),{arg:c,val:u}},getMarginOptions:function(e){var t=Math.min(e.width,e.height)*this._themeManager.getOptions("maxBubbleSize");return this._series.reduce((function(e,n){var i=n.getMarginOptions();return!0===i.processBubbleSize&&(i.size=t),(0,u.mergeMarginOptions)(e,i)}),{})},getSeries:function(){return this._series},isEmpty:function(){return 0===this.getSeries().length},isShowChart:function(){return!this._hideChart},getCalculatedValueType:function(){var e=this._series[0];return null==e?void 0:e.argumentType},getThemeManager:function(){return this._themeManager}}},48942:function(e,t,n){t.default=void 0;var i,o=n(11378),a=(i=n(79090))&&i.__esModule?i:{default:i},r=n(60137),s=o.utils.animationSettings;function l(e,t){var n=this;n._translator=e.translator,n._sliderGroup=e.renderer.g().attr({class:"slider"}).append(e.root),n._line=e.renderer.path(null,"line").append(n._sliderGroup),n._marker=new a.default(e.renderer,n._sliderGroup,1===t),n._tracker=e.renderer.rect().attr({class:"slider-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"w-resize"}).append(e.trackersGroup)}l.prototype={constructor:l,cancelAnimation:function(){this._sliderGroup.stopAnimation(),this._tracker.stopAnimation()},applyPosition:function(e){var t=this,n=t._sliderGroup,i=t._tracker,o={translateX:t._position};t._marker.setPosition(t._position),e?(n.animate(o,s),i.animate(o,s)):(n.attr(o),i.attr(o))},_setValid:function(e){this._marker.setValid(e),this._line.attr({stroke:this._colors[Number(e)]})},_setText:function(e){this._marker.setText(e)},update:function(e,t,n){var i=this;i._formatOptions={format:n.format,customizeText:n.customizeText},i._marker.applyOptions(n,i._translator.getScreenRange()),i._colors=[n.invalidRangeColor,t.color],i._sliderGroup.attr({translateY:e[0]}),i._line.attr({"stroke-width":t.width,stroke:t.color,"stroke-opacity":t.opacity,sharp:"h",points:[0,0,0,e[1]-e[0]]});var o,a=(o=t.width,r.touchEvents||r.pointerEvents?20:8<o?o:8);i._tracker.attr({x:-a/2,y:0,width:a,height:e[1]-e[0],translateY:e[0]})},toForeground:function(){this._sliderGroup.toForeground()},getSliderTracker:function(){return this._tracker},getPosition:function(){return this._position},setDisplayValue:function(e){this._value=e,this._setText((0,o.formatValue)(e,this._formatOptions))},setOverlapped:function(e){this._marker.setOverlapped(e)},getValue:function(){return this._value},on:function(e,t){this._tracker.on(e,t),this._marker.getTracker().on(e,t)},getCloudBorder:function(){return this._marker.getBorderPosition()},dispose:function(){this._marker.dispose()}};var u=l;t.default=u,e.exports=t.default,e.exports.default=t.default},79090:function(e,t,n){t.default=void 0;var i=n(19157),o=n(11378).consts.pointerSize;function a(e,t,n){var i=this;i._isLeftPointer=n,i._isOverlapped=!1,i._group=e.g().attr({class:"slider-marker"}).append(t),i._area=e.path(null,"area").append(i._group),i._label=e.text().attr({align:"left"}).append(i._group),i._tracker=e.rect().attr({class:"slider-marker-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(i._group),i._border=e.rect(0,0,1,0)}a.prototype={constructor:a,_getRectSize:function(e){return{width:Math.round(2*this._paddingLeftRight+e.width),height:Math.round(2*this._paddingTopBottom+e.height)}},_getTextSize:function(){var e=this._label.getBBox();return!this._textHeight&&isFinite(e.height)&&(this._textHeight=e.height),{width:e.width,height:this._textHeight,y:e.y}},_getAreaPointsInfo:function(e){var t=this,n=t._getRectSize(e),i=n.width,a=n.height,r=-i,s=0,l=o,u=0,d=-o,c=t._position,h=t._isLeftPointer,f=function(){r++,s++,l++,u++,d++},p=function(){l>s?l=s:d<r&&(d=r),h&&f()},g=c;return h?c>t._range[1]-i?(s=-c+t._range[1],r=s-i,p(),g+=r):(r=d=0,s=i):c-t._range[0]<i?(r=-(c-t._range[0]),s=r+i,p(),g+=s):(l=0,f()),t._borderPosition=g,{offset:r,isCut:(!h||u!==d)&&(h||u!==l),points:[r,0,s,0,s,a,l,a,u,a+o,d,a,r,a]}},_update:function(){var e,t=this;clearTimeout(t._timeout),t._label.attr({text:t._text||""});var n=t._getTextSize(),i=t._getRectSize(n);function a(e,n){n=n||t._getRectSize(e),t._group.attr({translateY:-(n.height+o)});var i=t._getAreaPointsInfo(e),a=i.points,r=i.offset;t._area.attr({points:a}),t._border.attr({x:t._isLeftPointer?a[0]-1:a[2],height:i.isCut?n.height:n.height+o}),t._tracker.attr({translateX:r,width:n.width,height:n.height+o}),t._label.attr({translateX:t._paddingLeftRight+r,translateY:n.height/2-(e.y+e.height/2)})}e=t._textSize||n,e=t._textSize=n.width>e.width||n.height>e.height?n:e,t._timeout=setTimeout((function(){a(n,i),t._textSize=n}),75),a(e)},setText:function(e){this._text=e},setPosition:function(e){this._position=e,this._update()},applyOptions:function(e,t){var n=this;n._range=t,n._paddingLeftRight=e.paddingLeftRight,n._paddingTopBottom=e.paddingTopBottom,n._textHeight=null,n._colors=[e.invalidRangeColor,e.color],n._area.attr({fill:e.color}),n._border.attr({fill:e.borderColor}),n._label.css((0,i.patchFontOptions)(e.font)),n._update()},getTracker:function(){return this._tracker},setValid:function(e){this._area.attr({fill:this._colors[Number(e)]})},setColor:function(e){this._area.attr({fill:e})},dispose:function(){clearTimeout(this._timeout)},setOverlapped:function(e){var t=this;t._isOverlapped!==e&&(e?t._border.append(t._group):t._isOverlapped&&t._border.remove(),t._isOverlapped=e)},getBorderPosition:function(){return this._borderPosition}};var r=a;t.default=r,e.exports=t.default,e.exports.default=t.default},56481:function(e,t,n){t.SlidersController=_;var i,o=n(20576),a=n(11378),r=(i=n(48942))&&i.__esModule?i:{default:i},s=n(19157),l=n(35922),u=n(60810),d=a.utils.animationSettings,c=a.consts.emptySliderMarkerText;function h(e,t,n,i){return[e,t,n,t,n,i,e,i]}function f(e,t){return e<t}function p(e,t){return e>t}function g(e,t){for(var n,i=0,o=t?t.length-1:0,a=e;o-i>1;){if((a=t[n=i+o>>1])===e)return e;e<a?o=n:i=n}return t&&(a=t[e-t[i]<=t[o]-e?i:o]),a}function m(){this._lastSelectedRange=this.getSelectedRange(),delete this._processSelectionChanged}function _(e){var t=this,n={renderer:e.renderer,root:e.root,trackersGroup:e.trackersGroup,translator:e.translator};t._params=e,t._areaTracker=e.renderer.path(null,"area").attr({class:"area-tracker",fill:"#000000",opacity:1e-4}).append(e.trackersGroup),t._selectedAreaTracker=e.renderer.path(null,"area").attr({class:"selected-area-tracker",fill:"#000000",opacity:1e-4}).append(e.trackersGroup),t._shutter=e.renderer.path(null,"area").append(e.root),t._sliders=[new r.default(n,0),new r.default(n,1)],t._processSelectionChanged=m}_.prototype={constructor:_,dispose:function(){this._sliders[0].dispose(),this._sliders[1].dispose()},getTrackerTargets:function(){return{area:this._areaTracker,selectedArea:this._selectedAreaTracker,sliders:this._sliders}},_processSelectionChanged:function(e){var t=this,n=t.getSelectedRange();(0,s.rangesAreEqual)(n,t._lastSelectedRange)||(t._params.updateSelectedRange(n,t._lastSelectedRange,e),t._lastSelectedRange=n)},update:function(e,t,n,i,o,a,r,l,u){var d=this,c=d._params.translator.getScreenRange();d._verticalRange=e,d._minRange=r.minRange,d._maxRange=r.maxRange,d._animationEnabled=t.animationEnabled&&d._params.renderer.animationEnabled(),d._allowSlidersSwap=t.allowSlidersSwap,d._sliders[0].update(e,i,o),d._sliders[1].update(e,i,o),d._sliders[0]._position=d._sliders[1]._position=c[0],d._values=!d._params.translator.isValueProlonged&&t.snapToTicks?l:null,d._areaTracker.attr({points:h(c[0],e[0],c[1],e[1])}),d._isCompactMode=n,d._shutterOffset=i.width/2,d._updateSelectedView(a,u),d._isOnMoving="onmoving"===(0,s.normalizeEnum)(t.callValueChanged),d._updateSelectedRange(),d._applyTotalPosition(!1)},_updateSelectedView:function(e,t){var n={fill:null,"fill-opacity":null,stroke:null,"stroke-width":null};this._isCompactMode?(n.stroke=t,n["stroke-width"]=3,n.sharp="v"):(n.fill=e.color,n["fill-opacity"]=e.opacity),this._shutter.attr(n)},_updateSelectedRange:function(){var e,t=this,n=t._sliders;n[0].cancelAnimation(),n[1].cancelAnimation(),t._shutter.stopAnimation(),t._params.translator.getBusinessRange().isEmpty()?(n[0]._setText(c),n[1]._setText(c),n[0]._value=n[1]._value=void 0,n[0]._position=t._params.translator.getScreenRange()[0],n[1]._position=t._params.translator.getScreenRange()[1],t._applyTotalPosition(!1),(e=t).setSelectedRange=o.noop,e._processSelectionChanged===m&&e._processSelectionChanged()):function(e){delete e.setSelectedRange}(t)},_applyTotalPosition:function(e){var t=this._sliders;e=this._animationEnabled&&e,t[0].applyPosition(e),t[1].applyPosition(e);var n=t[0].getCloudBorder()>t[1].getCloudBorder();t[0].setOverlapped(n),t[1].setOverlapped(n),this._applyAreaTrackersPosition(),this._applySelectedRangePosition(e)},_applyAreaTrackersPosition:function(){var e=this,t=e._sliders[0].getPosition(),n=e._sliders[1].getPosition();e._selectedAreaTracker.attr({points:h(t,e._verticalRange[0],n,e._verticalRange[1])}).css({cursor:Math.abs(e._params.translator.getScreenRange()[1]-e._params.translator.getScreenRange()[0]-n+t)<.001?"default":"pointer"})},_applySelectedRangePosition:function(e){var t,n,i=this,o=i._verticalRange,a=i._sliders[0].getPosition(),r=i._sliders[1].getPosition();n=i._isCompactMode?[a+Math.ceil(i._shutterOffset),(o[0]+o[1])/2,r-Math.floor(i._shutterOffset),(o[0]+o[1])/2]:[h((t=i._params.axis.getVisibleArea())[0],o[0],Math.max(a-Math.floor(i._shutterOffset),t[0]),o[1]),h(t[1],o[0],Math.min(r+Math.ceil(i._shutterOffset),t[1]),o[1])],e?i._shutter.animate({points:n},d):i._shutter.attr({points:n})},getSelectedRange:function(){return{startValue:this._sliders[0].getValue(),endValue:this._sliders[1].getValue()}},setSelectedRange:function(e,t){e=e||{};var n=this,i=n._params.translator,o=i.getBusinessRange(),a="discrete"===o.axisType?function(e,t){return e<t}:function(e,t){return e<=t},r=(0,s.adjustVisualRange)({dataType:o.dataType,axisType:o.axisType,base:o.base},{startValue:i.isValid(e.startValue)?i.getCorrectValue(e.startValue,1):void 0,endValue:i.isValid(e.endValue)?i.getCorrectValue(e.endValue,-1):void 0,length:e.length},{min:o.minVisible,max:o.maxVisible,categories:o.categories}),d=r.startValue,c=r.endValue;d=(0,l.isNumeric)(d)?(0,u.adjust)(d):d,c=(0,l.isNumeric)(c)?(0,u.adjust)(c):c;var h=a(i.to(d,-1),i.to(c,1))?[d,c]:[c,d];n._sliders[0].setDisplayValue(h[0]),n._sliders[1].setDisplayValue(h[1]),n._sliders[0]._position=i.to(h[0],-1),n._sliders[1]._position=i.to(h[1],1),n._applyTotalPosition(!0),n._processSelectionChanged(t)},beginSelectedAreaMoving:function(e){var t=this,n=t._sliders,i=(n[0].getPosition()+n[1].getPosition())/2-e,o=e;return a.complete=function(e){t._dockSelectedArea(e)},a;function a(e,a){e!==o&&e>o==e>(n[0].getPosition()+n[1].getPosition())/2-i&&t._moveSelectedArea(e+i,!1,a),o=e}},_dockSelectedArea:function(e){var t=this._params.translator,n=this._sliders;n[0]._position=t.to(n[0].getValue(),-1),n[1]._position=t.to(n[1].getValue(),1),this._applyTotalPosition(!0),this._processSelectionChanged(e)},moveSelectedArea:function(e,t){this._moveSelectedArea(e,!0,t),this._dockSelectedArea(t)},_moveSelectedArea:function(e,t,n){var i=this,o=i._params.translator,a=i._sliders,r=a[1].getPosition()-a[0].getPosition(),s=e-r/2,l=e+r/2;s<o.getScreenRange()[0]&&(l=(s=o.getScreenRange()[0])+r),l>o.getScreenRange()[1]&&(s=(l=o.getScreenRange()[1])-r);var u=g(o.from(s,-1),i._values);a[0].setDisplayValue(u),a[1].setDisplayValue(g(o.from(o.to(u,-1)+r,1),i._values)),a[0]._position=s,a[1]._position=l,i._applyTotalPosition(t),i._isOnMoving&&i._processSelectionChanged(n)},placeSliderAndBeginMoving:function(e,t,n){var i=this,o=i._params.translator,a=i._sliders,r=e<t?0:1,s=r>0?1:-1,l=r>0?p:f,u=r>0?f:p,d=[],c=[];c[r]=o.from(e,s),c[1-r]=o.from(t,-s),d[1-r]=t,o.isValueProlonged&&(l(e,o.to(c[r],s))&&(c[r]=o.from(e,-s)),l(t,o.to(c[r],-s))&&(c[1-r]=c[r])),i._minRange&&(l(t,o.to(o.add(g(c[r],i._values),i._minRange,-s),-s))&&(c[1-r]=o.add(c[r],i._minRange,-s)),u(e,o.to(o.add(o.getRange()[1-r],i._minRange,s),-s))&&(c[1-r]=o.getRange()[1-r],c[r]=o.add(c[1-r],i._minRange,s),d[1-r]=e)),c[0]=g(c[0],i._values),c[1]=g(c[1],i._values),d[r]=o.to(c[r],s),a[0].setDisplayValue(c[0]),a[1].setDisplayValue(c[1]),a[0]._position=d[0],a[1]._position=d[1],i._applyTotalPosition(!0),i._isOnMoving&&i._processSelectionChanged(n);var h=i.beginSliderMoving(1-r,t);return a[1-r]._sliderGroup.stopAnimation(),i._shutter.stopAnimation(),h(t),h},beginSliderMoving:function(e,t){var n=this,i=n._params.translator,o=n._sliders,a=i.getScreenRange()[0],r=i.getScreenRange()[1],s=e,u=o[1-s].getPosition(),d=t,c=s>0?1:-1,h=s>0?f:p,m=s>0?p:f,_=o[s].getPosition()-t,v=h(o[s].getPosition(),t)?-_:_;return y.complete=function(e){o[s]._setValid(!0),n._dockSelectedArea(e)},y;function y(e,t){var f,p,y,x,b,w;e!==d&&(h(e+v,u)&&((f=n._allowSlidersSwap)&&!i.isValueProlonged&&n._minRange&&(f=i.isValid(i.add(o[1-s].getValue(),n._minRange,-c))),f&&(n._changeMovingSlider(s),s=1-s,p=h,h=m,m=p,_=-(c=-c)*Math.abs(_),v=-_)),m(e+_,u)&&(x=o[s],b=o[1-s].getValue(),y=Math.max(Math.min(e+_,r),a),(f=!i.isValueProlonged||!h(y,i.to(b,c)))&&n._minRange&&((f=!h(y,i.to(i.add(b,n._minRange,c),c)))||(w=i.add(b,n._minRange,c))),f&&n._maxRange&&((f=!m(y,i.to(i.add(b,n._maxRange,c),c)))||(w=i.add(b,n._maxRange,c))),x._setValid(f),x.setDisplayValue(f?g(i.from(y,c),n._values):(0,l.isDefined)(w)?w:x.getValue()),x._position=y,n._applyTotalPosition(!1),x.toForeground(),n._isOnMoving&&n._processSelectionChanged(t))),d=e}},_changeMovingSlider:function(e){var t,n=this,i=n._params.translator,o=n._sliders,a=o[1-e].getPosition(),r=e>0?1:-1;o[e].setDisplayValue(g(i.from(a,r),n._values)),t=i.from(a,-r),i.isValueProlonged?t=i.from(a,r):n._minRange&&(t=i.add(t,n._minRange,-r)),o[1-e].setDisplayValue(g(t,n._values)),o[e]._setValid(!0),o[e]._marker._update(),o[0]._position=o[1]._position=a},foregroundSlider:function(e){this._sliders[e].toForeground()}}},43695:function(e,t,n){t.Tracker=b;var i=u(n(55994)),o=u(n(93786)),a=n(58201),r=u(n(73349)),s=n(95479),l=n(60137);function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=(0,a.getWindow)();function h(e){var t=e||c.event,n=t.originalEvent,i=t.touches,o=!!n&&n.pointerType,a=!!n&&n.touches,r=n&&void 0!==o&&(o===(n.MSPOINTER_TYPE_TOUCH||"touch")||o===(n.MSPOINTER_TYPE_MOUSE||"mouse")&&1===n.buttons),s=i&&i.length>0||a&&a.length>0;return 1===t.which||r||s}function f(e){var t=e.originalEvent,n=e.touches,i=t&&t.touches;return n&&n.length>1||i&&i.length>1||null}function p(e){f(e)||e.preventDefault()}function g(e){f(e)||(e.stopPropagation(),e.preventDefault())}function m(e){return e&&e.type&&0===e.type.indexOf("touch")}function _(e){var t=e.originalEvent,n=0;return e.pageX?n=e.pageX:t&&t.pageX&&(n=t.pageX),t&&t.touches&&(t.touches.length>0?n=t.touches[0].pageX:t.changedTouches.length>0&&(n=t.changedTouches[0].pageX)),n}function v(e,t,n,i){var a,r,s,l=!1,u=null,c=(d(a={},o.default.move,(function(t){var o,a;r===m(t)&&(h(t)||f(t),l&&(o=_(t),a=i(),u?u(o-a,t):n.manualRangeSelectionEnabled&&Math.abs(s-o)>=10&&(u=e.placeSliderAndBeginMoving(s-a,o-a,t))))})),d(a,o.default.up,(function(t){var o;l&&(o=_(t),!u&&n.moveSelectedRangeByClick&&Math.abs(s-o)<10&&e.moveSelectedArea(o-i(),t),f(t))})),a);function f(e){l&&(l=!1,u&&(u.complete(e),u=null))}return t.on(o.default.down,(function(e){n.enabled&&h(e)&&!l&&(l=!0,r=m(e),s=_(e))})),c}function y(e,t,n,i){var a,r,s=!1,l=null,u=(d(a={},o.default.move,(function(e){r===m(e)&&(h(e)||c(e),s&&(p(e),l(_(e)-i(),e)))})),d(a,o.default.up,c),a);function c(e){s&&(s=!1,l.complete(e),l=null)}return t.on(o.default.down,(function(t){n.enabled&&h(t)&&!s&&(s=!0,r=m(t),l=e.beginSelectedAreaMoving(_(t)-i()),g(t))})),u}function x(e,t,n,i){var a,r,l=!1,u=null,c=(d(a={},o.default.move,(function(e){r===m(e)&&(h(e)||f(e),l&&(p(e),u(_(e)-i(),e)))})),d(a,o.default.up,f),a);function f(e){l&&(l=!1,u.complete(e),u=null)}return(0,s.each)(t,(function(t,a){var s;a.on((d(s={},o.default.down,(function(o){n.enabled&&h(o)&&!l&&(l=!0,r=m(o),u=e.beginSliderMoving(t,_(o)-i()),g(o))})),d(s,o.default.move,(function(){u||e.foregroundSlider(t)})),s))})),c}function b(e){var t=this._state={},n=e.controller.getTrackerTargets();function o(){return e.renderer.getRootOffset().left}l.pointerEvents&&e.renderer.root.css({msTouchAction:"pinch-zoom"}),this._docEvents=[y(e.controller,n.selectedArea,t,o),v(e.controller,n.area,t,o),x(e.controller,n.sliders,t,o)],(0,s.each)(this._docEvents,(function(e,t){i.default.on(r.default.getDocument(),t)}))}b.prototype={constructor:b,dispose:function(){(0,s.each)(this._docEvents,(function(e,t){i.default.off(r.default.getDocument(),t)}))},update:function(e,t){var n=this._state;n.enabled=e,n.moveSelectedRangeByClick=t.moveSelectedRangeByClick,n.manualRangeSelectionEnabled=t.manualRangeSelectionEnabled}}},34377:function(e,t,n){t.default=void 0;var i,o=(i=n(66422))&&i.__esModule?i:{default:i},a=n(38516),r=n(82454),s=n(17384),l=n(29823),u=n(14371),d=n(64758);o.default.addPlugin(r.plugin),o.default.addPlugin(s.plugin),o.default.addPlugin(l.plugin),o.default.addPlugin(d.plugin),o.default.addPlugin(u.plugin),(0,a.setTooltipCustomOptions)(o.default);var c=o.default;t.default=c,e.exports=t.default,e.exports.default=t.default},74878:function(e,t){t.COLOR_MODE_TARGET=t.COLOR_MODE_SOURCE=t.COLOR_MODE_NONE=t.COLOR_MODE_GRADIENT=void 0,t.COLOR_MODE_GRADIENT="gradient",t.COLOR_MODE_SOURCE="source",t.COLOR_MODE_TARGET="target",t.COLOR_MODE_NONE="none"},86547:function(e,t,n){t.default=void 0;var i,o=(i=n(65538))&&i.__esModule?i:{default:i},a={validate:function(e,t){var n=null;return this._hasCycle(e)&&(n="E2006",t("E2006")),n},_hasCycle:function(e){return o.default.struct.hasCycle(e)}};t.default=a,e.exports=t.default,e.exports.default=t.default},65538:function(e,t){t.default=void 0;var n="white",i="gray",o={maxOfArray:function(e,t){var n=0,i=function(e){return e};t&&(i=t);for(var o=0;o<e.length;o++)i(e[o])>n&&(n=i(e[o]));return n}},a=function(e){var t=[];return e.forEach((function(e){-1===t.indexOf(e[0])&&t.push(e[0]),-1===t.indexOf(e[1])&&t.push(e[1])})),t},r=function(e,t){var n=[];return e.forEach((function(e){e[0]===t&&-1===n.indexOf(e[1])&&n.push(e[1])})),n},s=function(e,t){var n=[];return e.forEach((function(e){e[1]===t&&-1===n.indexOf(e[0])&&n.push(e[0])})),n},l={struct:{_hasCycle:!1,_sortedList:[],hasCycle:function(e){var t=this;this._hasCycle=!1,this._sortedList=[];var i={},o=a(e);return o.forEach((function(e){i[e]={color:n}})),o.forEach((function(o){i[o].color===n&&t._depthFirstSearch(e,i,o)})),this._sortedList.reverse(),this._hasCycle},_depthFirstSearch:function(e,t,o){t[o].color=i;for(var a=r(e,o),l=0;l<a.length;l++)t[a[l]].color===n?this._depthFirstSearch(e,t,a[l]):t[a[l]].color===i&&(this._hasCycle=!0);this._sortedList.push({name:o,lp:null,incoming:s(e,o),outgoing:r(e,o)}),t[o].color="black"},computeLongestPaths:function(e){var t=this._sortedList;return t.forEach((function(n){var i=s(e,n.name);if(0===i.length)n.lp=0;else{var a=[];i.forEach((function(e){a.push(t.filter((function(t){return t.name===e}))[0].lp)})),n.lp=o.maxOfArray(a)+1}})),this._sortedList}},routines:o,getVertices:a,getAdjacentVertices:r,getReverseAdjacentVertices:s};t.default=l,e.exports=t.default,e.exports.default=t.default},68856:function(e,t,n){t.layout=void 0;var i=a(n(65538)),o=a(n(86547));function a(e){return e&&e.__esModule?e:{default:e}}var r={_weightPerPixel:null,_getCascadeIdx:function(e,t){var n=t.filter((function(t){return t.name===e}))[0];return n.outgoing.length>0?n.lp:i.default.routines.maxOfArray(t.map((function(e){return e.lp})))},_getInWeightForNode:function(e,t){var n=0;return t.forEach((function(t){t[1]===e&&(n+=t[2])})),n},_getOutWeightForNode:function(e,t){var n=0;return t.forEach((function(t){t[0]===e&&(n+=t[2])})),n},_computeCascades:function(e){for(var t=this,n=i.default.struct.computeLongestPaths(e),o=i.default.routines.maxOfArray(n.map((function(e){return e.lp}))),a=[],r=0;r<o+1;r++)a.push({});return e.forEach((function(e){var i=a[t._getCascadeIdx(e[0],n)];i[e[0]]||(i[e[0]]={nodeTitle:e[0]}),(i=a[t._getCascadeIdx(e[1],n)])[e[1]]||(i[e[1]]={nodeTitle:e[1]})})),a.forEach((function(n){Object.keys(n).forEach((function(i){var o=n[i];o.inWeight=t._getInWeightForNode(o.nodeTitle,e),o.outWeight=t._getOutWeightForNode(o.nodeTitle,e),o.maxWeight=Math.max(o.inWeight,o.outWeight)}))})),a},_getWeightForCascade:function(e,t){var n=0,i=e[t];return Object.keys(i).forEach((function(e){n+=Math.max(i[e].inWeight,i[e].outWeight)})),n},_getMaxWeightThroughCascades:function(e){var t=[];return e.forEach((function(e){var n=0;Object.keys(e).forEach((function(t){var i=e[t];n+=Math.max(i.inWeight,i.outWeight)})),t.push(n)})),i.default.routines.maxOfArray(t)},_computeNodes:function(e,t){var n=this,o=[],a=this._getMaxWeightThroughCascades(e),r=i.default.routines.maxOfArray(e.map((function(e){return Object.keys(e).length}))),s=t.nodePadding,l=t.height-s*(r-1);l<0&&(s=0,l=t.height-s*(r-1)),this._weightPerPixel=a/l;var u=0;return e.forEach((function(i){var r,d=[],c=0,h=Object.keys(i).length,f=n._getWeightForCascade(e,u)/n._weightPerPixel+s*(h-1);"bottom"===(r=Array.isArray(t.nodeAlign)?u<t.nodeAlign.length?t.nodeAlign[u]:"center":t.nodeAlign)?c=t.height-f:"center"===r&&(c=.5*(t.height-f)),c=Math.round(c),Object.keys(i).forEach((function(e){i[e].sort=n._sort&&Object.prototype.hasOwnProperty.call(n._sort,e)?n._sort[e]:1})),Object.keys(i).sort((function(e,t){return i[e].sort-i[t].sort})).forEach((function(n){var o=i[n],r=Math.floor(l*o.maxWeight/a),h=Math.round(u*t.width/(e.length-1))-(0===u?0:t.nodeWidth),f={};f._name=n,f.width=t.nodeWidth,f.height=r,f.x=h+t.x,f.y=c+t.y,c+=r+s,d.push(f)})),u++,o.push(d)})),o},_findRectByName:function(e,t){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)if(t===e[n][i]._name)return e[n][i];return null},_findIndexByName:function(e,t){for(var n=0,i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++){if(t===e[i][o]._name)return n;n++}return null},_computeLinks:function(e,t,n){var i=this,o={},a=[],r=[];return n.forEach((function(e){Object.keys(e).forEach((function(e){o[e]={in:0,out:0}}))})),t.forEach((function(n){n.forEach((function(n){var r=n._name,s=i._findRectByName(t,r),l=e.filter((function(e){return e[0]===r}));l.forEach((function(e){e.sort=i._findIndexByName(t,e[1])})),l.sort((function(e,t){return e.sort-t.sort})).forEach((function(e){var n=i._findRectByName(t,e[1]),r=Math.round(e[2]/i._weightPerPixel),l=o[e[0]].out,u=o[e[1]].in,d=o[e[0]].out+r>s.height?s.height-o[e[0]].out:r,c=o[e[1]].in+r>n.height?n.height-o[e[1]].in:r;a.push({from:{x:s.x,y:s.y+l,width:s.width,height:d,node:s,weight:e[2]},to:{x:n.x,y:n.y+u,width:n.width,height:c,node:n}}),o[e[0]].out+=r,o[e[1]].in+=r}))}))})),a.forEach((function(e){var t={d:i._spline(e.from,e.to),_boundingRect:{x:e.from.x+e.from.width,y:Math.min(e.from.y,e.to.y),width:e.to.x-(e.from.x+e.from.width),height:Math.max(e.from.x+e.from.height,e.to.y+e.to.height)-Math.min(e.from.y,e.to.y)},_weight:e.from.weight,_from:e.from.node,_to:e.to.node};r.push(t)})),this._fitAllNodesHeight(t,a),r},_fitNodeHeight:function(e,t,n){var i=this._findRectByName(t,e),o=0,a=0;n.forEach((function(t){t.from.node._name===e&&(a+=t.from.height),t.to.node._name===e&&(o+=t.to.height)})),i.height=Math.max(o,a)},_fitAllNodesHeight:function(e,t){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)this._fitNodeHeight(e[n][i]._name,e,t)},_spline:function(e,t){var n={x:e.x+e.width,y:e.y},i={x:e.x+e.width,y:e.y+e.height},o={x:t.x,y:t.y},a={x:t.x,y:t.y+t.height},r=.3*(o.x-n.x);return"M ".concat(n.x," ").concat(n.y," C ").concat(n.x+r," ").concat(n.y," ").concat(o.x-r," ").concat(o.y," ").concat(o.x," ").concat(o.y," L ").concat(a.x," ").concat(a.y," C ").concat(a.x-r," ").concat(a.y," ").concat(i.x+r," ").concat(i.y," ").concat(i.x," ").concat(i.y," Z")},computeLayout:function(e,t,n,i){this._sort=t;var a={},r=o.default.validate(e,i);return r?a.error=r:(a.cascades=this._computeCascades(e),a.nodes=this._computeNodes(a.cascades,{width:n.availableRect.width,height:n.availableRect.height,x:n.availableRect.x,y:n.availableRect.y,nodePadding:n.nodePadding,nodeWidth:n.nodeWidth,nodeAlign:n.nodeAlign}),a.links=this._computeLinks(e,a.nodes,a.cascades)),a},overlap:function(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>=e.y+e.height||t.y+t.height<=e.y)}};t.layout=r},18170:function(e,t,n){t.default=void 0;var i=n(74878),o=n(35922),a=["normal","adjacentNodeHover","hover"];function r(e,t,n,a){var r=t.border,s=n.border,l=(0,o.isDefined)(r.visible)?r.visible:s.visible,u=(0,o.isDefined)(r.width)?r.width:s.width,d=(0,o.isDefined)(r.opacity)?r.opacity:(0,o.isDefined)(s.opacity)?s.opacity:1,c=(0,o.isDefined)(t.opacity)?t.opacity:(0,o.isDefined)(n.opacity)?n.opacity:1,h=t.color||e;return n.colorMode===i.COLOR_MODE_TARGET||n.colorMode===i.COLOR_MODE_SOURCE?h=e:n.colorMode===i.COLOR_MODE_GRADIENT&&a&&(0,o.isDefined)(a.id)&&(h=a.id),{fill:h,"stroke-width":l?u:0,stroke:t.border.color||n.border.color,"stroke-opacity":d,opacity:c,hatching:t.hatching}}function s(e,t){var n=this,i=e._renderer.getRootOffset();n.code=0,n.widget=e,n.color=t.color,n.connection=t.connection,n.d=t.d,n.options=t.options,n.boundingRect=t.boundingRect,n.coords={x:t.boundingRect.x+t.boundingRect.width/2+i.left,y:t.boundingRect.y+t.boundingRect.height/2+i.top},n.states={normal:r(n.color,n.options,n.options,t.gradient),adjacentNodeHover:r(n.color,{opacity:0,border:{}},n.options,t.gradient),hover:r(n.color,{opacity:0,border:{}},n.options,t.gradient)},n.overlayStates={normal:r(n.color,{opacity:0,border:{}},n.options),adjacentNodeHover:r(n.color,n.options.hoverStyle,n.options),hover:r(n.color,n.options.hoverStyle,n.options)}}s.prototype={getState:function(){return a[this.code]},isHovered:function(){return 2===this.code},isAdjacentNodeHovered:function(){return 1===this.code},setState:function(e,t){t?this.code=e:(this.code=0,this.hideTooltip()),this.widget._applyLinksAppearance()},setHover:function(){this.hover(!0)},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(2,e),this.widget._eventTrigger("linkHoverChanged",{target:this}),this.widget._resume())},adjacentNodeHover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isAdjacentNodeHovered()&&(this.widget._suspend(),this.setState(1,e),this.widget._resume())},setAdjacentNodeHover:function(){this.adjacentNodeHover(!0)},showTooltip:function(e){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"link",info:{source:this.connection.source,target:this.connection.target,weight:this.connection.weight}},void 0!==e?{x:e[0],y:e[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()}};var l=s;t.default=l,e.exports=t.default,e.exports.default=t.default},47248:function(e,t,n){t.default=void 0;var i=n(35922),o=n(19157),a=["normal","hover"];function r(e,t,n){var o=t.border,a=n.border,r=(0,i.isDefined)(o.visible)?o.visible:a.visible,s=(0,i.isDefined)(o.width)?o.width:a.width,l=(0,i.isDefined)(o.opacity)?o.opacity:(0,i.isDefined)(a.opacity)?a.opacity:1,u=(0,i.isDefined)(t.opacity)?t.opacity:(0,i.isDefined)(n.opacity)?n.opacity:1;return{fill:t.color||e,"stroke-width":r?s:0,stroke:t.border.color||n.border.color,"stroke-opacity":l,opacity:u,hatching:t.hatching}}function s(e,t){var n=this,i=e._renderer.getRootOffset();n.code=0,n.widget=e,n.color=t.color,n.options=t.options,n.rect=t.rect,n.label=n.title=t.rect._name,n.coords={x:t.rect.x+t.rect.width/2+i.left,y:t.rect.y+t.rect.height/2+i.top},n.id=t.id,n.linksIn=t.linksIn,n.linksOut=t.linksOut,this.states={normal:r(this.color,n.options,n.options),hover:r(this.color,n.options.hoverStyle,n.options)}}s.prototype={compileAttrs:function(){return r(this.color,this.options)},getState:function(){return a[this.code]},isHovered:function(){return!!(1&this.code)},setState:function(e,t){var n=this;t?this.code|=e:this.code&=~e,t?this.linksIn.concat(this.linksOut).forEach((function(e){n.widget._links[e.index].setAdjacentNodeHover(!0)})):(this.widget._links.forEach((function(e){e.isAdjacentNodeHovered()&&e.adjacentNodeHover(!1)})),this.hideTooltip()),this.widget._applyNodesAppearance(),this.widget._applyLinksAppearance()},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(1,e),this.widget._eventTrigger("nodeHoverChanged",{target:this}),this.widget._resume())},setHover:function(){this.hover(!0)},showTooltip:function(e){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"node",info:{label:this.label,title:this.label,weightIn:this.linksIn.reduce((function(e,t){return e+t.weight}),0),weightOut:this.linksOut.reduce((function(e,t){return e+t.weight}),0)}},void 0!==e?{x:e[0],y:e[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()},getLabelAttributes:function(e,t){return function(e,t,n){var a=o.patchFontOptions;e.useNodeColors&&(e.font.color=n.color);var r=!!(0,i.isDefined)(e.border.visible)&&e.border.visible,s=(0,i.isDefined)(e.border.width)?e.border.width:0,l=(0,i.isDefined)(e.border.color)?e.border.color:e.font.color,u=(0,i.isDefined)(e.border.opacity)?e.border.opacity:1,d={filter:t};return r&&s&&(d.stroke=l,d["stroke-width"]=r?s:0,d["stroke-opacity"]=u),{attr:d,css:a(e.font)}}(e,t,this)}};var l=s;t.default=l,e.exports=t.default,e.exports.default=t.default},66422:function(e,t,n){t.default=void 0;var i=n(74878),o=n(20576),a=h(n(47248)),r=h(n(18170)),s=n(68856),l=n(35922),u=h(n(59063)),d=h(n(99393)),c=n(1539);function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){var i=[],o="in"===n?"_to":"_from",a="in"===n?"_from":"_to";return e.links.map((function(e){return e[o]._name===t})).forEach((function(t,n){t&&i.push({index:n,weight:e.links[n]._weight,node:e.links[n][a]._name})})),i}var p=u.default.inherit({_rootClass:"dxs-sankey",_rootClassPrefix:"dxs",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",sortData:"DATA_SOURCE",alignment:"DATA_SOURCE",node:"BUILD_LAYOUT",link:"BUILD_LAYOUT",palette:"BUILD_LAYOUT",paletteExtensionMode:"BUILD_LAYOUT"},_themeDependentChanges:["BUILD_LAYOUT"],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"sankey",_fontFields:["label.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._groupLinks=this._renderer.g().append(this._renderer.root),this._groupNodes=this._renderer.g().append(this._renderer.root),this._groupLabels=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._drawLabels=!0,this._nodes=[],this._links=[],this._gradients=[]},_disposeCore:o.noop,_applySize:function(e){this._rect=e.slice();var t=this._getOption("adaptiveLayout");return t.keepLabels||this._rect[2]-this._rect[0]>t.width?this._drawLabels=!0:this._drawLabels=!1,this._change(["BUILD_LAYOUT"]),this._rect},_eventsMap:{onNodeHoverChanged:{name:"nodeHoverChanged"},onLinkHoverChanged:{name:"linkHoverChanged"}},_customChangesOrder:["BUILD_LAYOUT","NODES_DRAW","LINKS_DRAW","LABELS","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange(["BUILD_LAYOUT"])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_BUILD_LAYOUT:function(){this._groupNodes.clear(),this._groupLinks.clear(),this._groupLabels.clear(),this._buildLayout()},_change_NODES_DRAW:function(){var e=this;e._nodes.forEach((function(t,n){var i=e._renderer.rect().attr(t.rect).append(e._groupNodes);t.element=i})),this._applyNodesAppearance()},_change_LINKS_DRAW:function(){var e=this;e._links.forEach((function(t,n){var i=e._renderer.g().attr({class:"link","data-link-idx":n}).append(e._groupLinks);t.overlayElement=e._renderer.path([],"area").attr({d:t.d}).append(i),t.element=e._renderer.path([],"area").attr({d:t.d}).append(i)})),this._applyLinksAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_showTooltip:o.noop,hideTooltip:o.noop,clearHover:function(){this._suspend(),this._nodes.forEach((function(e){e.isHovered()&&e.hover(!1)})),this._links.forEach((function(e){e.isHovered()&&e.hover(!1),e.isAdjacentNodeHovered()&&e.adjacentNodeHover(!1)})),this._resume()},_applyNodesAppearance:function(){this._nodes.forEach((function(e){var t=e.getState();e.element.smartAttr(e.states[t])}))},_applyLinksAppearance:function(){this._links.forEach((function(e){var t=e.getState();e.element.smartAttr(e.states[t]),e.overlayElement.smartAttr(e.overlayStates[t])}))},_hitTestTargets:function(e,t){var n,i=this;return this._proxyData.some((function(o){if(n=o.call(i,e,t))return!0})),n},_getData:function(){var e=this,t=e._dataSourceItems()||[],n=e._getOption("sourceField",!0),i=e._getOption("targetField",!0),o=e._getOption("weightField",!0),a=[];return t.forEach((function(t){var r=Object.prototype.hasOwnProperty.bind(t);r(n)?r(i)?r(o)?(0,l.isString)(t[n])?(0,l.isString)(t[i])?!(0,l.isNumeric)(t[o])||t[o]<=0?e._incidentOccurred("E2009",o):a.push([t[n],t[i],t[o]]):e._incidentOccurred("E2008",i):e._incidentOccurred("E2008",n):e._incidentOccurred("E2007",o):e._incidentOccurred("E2007",i):e._incidentOccurred("E2007",n)})),a},_buildLayout:function(){var e=this,t=this,n=t._getData(),o=this._rect,l=t._getOption("node"),u=t._getOption("sortData"),d=t._getOption("layoutBuilder",!0)||s.layout,c={x:o[0],y:o[1],width:o[2]-o[0],height:o[3]-o[1]},h=d.computeLayout(n,u,{availableRect:c,nodePadding:l.padding,nodeWidth:l.width,nodeAlign:t._getOption("alignment",!0)},t._incidentOccurred);if(t._layoutMap=h,!Object.prototype.hasOwnProperty.call(h,"error")){var p={},g=0,m=t._getOption("link"),_=h.nodes.map((function(e){return e.length})).reduce((function(e,t){return e+t}),0),v=t._themeManager.createPalette(t._getOption("palette",!0),{useHighlight:!0,extensionMode:t._getOption("paletteExtensionMode",!0),count:_});t._nodes=[],t._links=[],t._gradients.forEach((function(e){e.dispose()})),t._gradients=[],t._shadowFilter&&t._shadowFilter.dispose(),h.nodes.forEach((function(e){e.forEach((function(e){var n=l.color||v.getNextColor(),i=new a.default(t,{id:g,color:n,rect:e,options:l,linksIn:f(h,e._name,"in"),linksOut:f(h,e._name,"out")});t._nodes.push(i),g++,p[e._name]=n}))})),h.links.forEach((function(n){var o=null;m.colorMode===i.COLOR_MODE_GRADIENT&&(o=t._renderer.linearGradient([{offset:"0%","stop-color":p[n._from._name]},{offset:"100%","stop-color":p[n._to._name]}]),e._gradients.push(o));var a=m.color;m.colorMode===i.COLOR_MODE_SOURCE?a=p[n._from._name]:m.colorMode===i.COLOR_MODE_TARGET&&(a=p[n._to._name]);var s=new r.default(t,{d:n.d,boundingRect:n._boundingRect,color:a,options:m,connection:{source:n._from._name,target:n._to._name,weight:n._weight},gradient:o});t._links.push(s)})),t._renderer.initHatching(),t._change(["NODES_DRAW","LINKS_DRAW","LABELS"])}t._change(["DRAWN"])},_applyLabelsAppearance:function(){var e=this,t=e._getOption("label"),n=e._rect[2]-e._rect[0],i=e._getOption("node");if(e._shadowFilter=e._renderer.shadowFilter("-50%","-50%","200%","200%").attr(t.shadow),e._groupLabels.clear(),e._drawLabels&&t.visible){var o=(n-(i.width+t.horizontalOffset)-e._layoutMap.cascades.length*i.width)/(e._layoutMap.cascades.length-1)-t.horizontalOffset;e._nodes.forEach((function(n){e._createLabel(n,t,e._shadowFilter.id),function(e,t,n,i){e._label.getBBox().width>n&&e.labelText.applyEllipsis(n);var o=e._label.getBBox(),a=t.verticalOffset,r=t.horizontalOffset,s=Math.round(e.rect.y+e.rect.height/2-o.y-o.height/2)+a,l=e.rect.x+r+e.rect.width-o.x;l+o.width>=i[2]-i[0]&&(l=e.rect.x-r-o.x-o.width),s>=i[3]&&(s=i[3]),s-o.height<i[1]&&(s=e.rect.y-o.y+a),e.labelText.attr({translateX:l,translateY:s})}(n,t,o,e._rect)})),"none"!==t.overlappingBehavior&&e._nodes.forEach((function(n){var i=n._label.getBBox();e._nodes.forEach((function(e){var o=e._label.getBBox();n.id!==e.id&&s.layout.overlap(i,o)&&("ellipsis"===t.overlappingBehavior?n.labelText.applyEllipsis(o.x-i.x):"hide"===t.overlappingBehavior&&n.labelText.remove())}))}))}},_createLabel:function(e,t,n){var i=t.customizeText(e),o=e.getLabelAttributes(t,n);i&&(e._label=this._renderer.g().append(this._groupLabels),e.labelText=this._renderer.text(i).attr(o.attr).css(o.css),e.labelText.append(e._label))},_getMinSize:function(){var e=this._getOption("adaptiveLayout");return[e.width,e.height]},getAllNodes:function(){return this._nodes.slice()},getAllLinks:function(){return this._links.slice()}});(0,d.default)("dxSankey",p);var g=p;t.default=g,p.addPlugin(c.plugin),e.exports=t.default,e.exports.default=t.default},38516:function(e,t,n){t.setTooltipCustomOptions=function(e){e.prototype._setTooltipOptions=function(){var e,t,n=this._tooltip,o=n&&this._getOption("tooltip");o.linkTooltipTemplate&&(e=this._getTemplate(o.linkTooltipTemplate)),o.nodeTooltipTemplate&&(t=this._getTemplate(o.nodeTooltipTemplate)),n&&n.update((0,i.extend)({},o,{customizeTooltip:function(n){return e&&"link"===n.type||t&&"node"===n.type||(n.skipTemplate=!0),"node"===n.type?s(o.customizeNodeTooltip,r)(n.info):"link"===n.type?s(o.customizeLinkTooltip,a)(n.info):{}},contentTemplate:function(n,i){var o={model:n.info,container:i};return e&&"link"===n.type?e.render(o):t&&"node"===n.type?t.render(o):void 0},enabled:o.enabled}))},e.prototype.hideTooltip=function(){this._tooltip&&this._tooltip.hide()}};var i=n(13306),o=n(35922),a=function(e){return{html:"<strong>".concat(e.source," > ").concat(e.target,"</strong><br/>Weight: ").concat(e.weight)}},r=function(e){return{html:"<strong>".concat(e.label,"</strong><br/>Incoming weight: ").concat(e.weightIn,"<br/>Outgoing weight: ").concat(e.weightOut)}},s=function(e,t){return function(n){var a=(0,o.isFunction)(e)?e.call(n,n):{},r=Object.prototype.hasOwnProperty.bind(a);return r("html")||r("text")||(a=(0,i.extend)(a,t.call(n,n))),a}}},29823:function(e,t,n){t.plugin=void 0;var i,o=(i=n(66422))&&i.__esModule?i:{default:i},a=n(88997),r=o.default.prototype,s=0;r._eventsMap.onNodeClick={name:"nodeClick"},r._eventsMap.onLinkClick={name:"linkClick"};var l={name:"tracker",init:function(){var e=this,t="__sankey_data_"+s++;e._tracker=new a.Tracker({widget:e,root:e._renderer.root,getData:function(e){return e.target[t]},getNode:function(t){return t<e._nodes.length?e._nodes[t]:e._links[t-e._nodes.length]},click:function(t){var n=this.getData(t.event)<e._nodes.length?"nodeClick":"linkClick";e._eventTrigger(n,{target:t.node,event:t.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_LINKS_DRAW:function(){var e=this._dataKey;this._nodes.concat(this._links).forEach((function(t,n){t.element.data(e,n)}))}}};t.plugin=l},90048:function(e,t,n){t.polar=t.chart=void 0;var i=n(48013),o=n(13306),a=n(21667),r=n(7222),s=n(19157),l=r.chart.line,u=r.polar.line,d=o.extend,c=r.chart.spline._calculateBezierPoints,h={};t.chart=h;var f={};t.polar=f;var p={_createBorderElement:l._createMainElement,_createLegendState:function(e,t){return{fill:e.color||t,opacity:e.opacity,hatching:e.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&!1!==this.showZero?0:a.chart.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(e){var t=l._getDefaultSegment(e);return t.area=t.line.concat(t.line.slice().reverse()),t},_updateElement:function(e,t,n,i){var o={points:t.line},a={points:t.area},r=e.line;n?(r&&r.animate(o),e.area.animate(a,{},i)):(r&&r.attr(o),e.area.attr(a))},_removeElement:function(e){e.line&&e.line.remove(),e.area.remove()},_drawElement:function(e){return{line:this._bordersGroup&&this._createBorderElement(e.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(e.area).append(this._elementsGroup)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.smartAttr(e.elements),t._bordersGroup&&t._bordersGroup.attr(e.border),(t._graphics||[]).forEach((function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}).sharp()}))},_parseStyle:function(e,t,n){var i=e.border||{},o=l._parseLineOptions(i,n);return o.stroke=i.visible&&o["stroke-width"]?o.stroke:"none",o["stroke-width"]=o["stroke-width"]||1,{border:o,elements:{stroke:"none",fill:e.color||t,hatching:e.hatching,opacity:e.opacity}}},_areBordersVisible:function(){var e=this._options;return e.border.visible||e.hoverStyle.border.visible||e.selectionStyle.border.visible},_createMainElement:function(e,t){return this._renderer.path(e,"area").attr(t)},_getTrackerSettings:function(e){return{"stroke-width":e.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(e){return e.area}},g=h.area=d({},l,p,{_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t),i=function(e){return(0,s.map)(e,(function(e){return e.getCoords()})).concat((0,s.map)(e.slice().reverse(),(function(e){return e.getCoords(!0)})))}(n),o=this.getArgumentAxis();if(o.getAxisPosition){var a=o.getAxisPosition(),r=o.getOptions(),l=(t?1:-1)*Math.round(r.width/2);r.visible&&i.forEach((function(n,r){if(n){var s=1===e.length?0:r<e.length?r:i.length-1-r;t&&n.x===e[s].defaultX&&n.x===a-o.getAxisShift()&&(n.x+=l),!t&&n.y===e[s].defaultY&&n.y===a-o.getAxisShift()&&(n.y+=l)}}))}return{line:n,area:i,singlePointSegment:n!==e}},_processSinglePointsAreaSegment:function(e,t){if(e&&1===e.length){var n=e[0],o=(0,i.clone)(n);return o[t?"y":"x"]+=1,o.argument=null,[n,o]}return e}});f.area=d({},u,p,{_prepareSegment:function(e,t,n){return n&&u._closeSegment.call(this,e),g._prepareSegment.call(this,e)},_processSinglePointsAreaSegment:function(e){return r.polar.line._prepareSegment.call(this,e).line}}),h.steparea=d({},g,{_prepareSegment:function(e,t){var n=r.chart.stepline;return e=g._processSinglePointsAreaSegment(e,t),g._prepareSegment.call(this,n._calculateStepLinePoints.call(this,e),t)},getSeriesPairCoord:r.chart.stepline.getSeriesPairCoord}),h.splinearea=d({},g,{_areaPointsToSplineAreaPoints:function(e){var t=e[e.length/2-1],n=e[e.length/2];e.splice(e.length/2,0,{x:t.x,y:t.y},{x:n.x,y:n.y})},_prepareSegment:function(e,t){var n=g._processSinglePointsAreaSegment(e,t),i=g._prepareSegment.call(this,c(n,t));return this._areaPointsToSplineAreaPoints(i.area),i.singlePointSegment=n!==e,i},_getDefaultSegment:function(e){var t=g._getDefaultSegment(e);return this._areaPointsToSplineAreaPoints(t.area),t},_createMainElement:function(e,t){return this._renderer.path(e,"bezierarea").attr(t)},_createBorderElement:r.chart.spline._createMainElement,getSeriesPairCoord:r.chart.spline.getSeriesPairCoord,_getNearestPoints:r.chart.spline._getNearestPoints,_getBezierPoints:r.chart.spline._getBezierPoints,obtainCubicBezierTCoef:r.chart.spline.obtainCubicBezierTCoef})},58821:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.polar=t.chart=void 0;var o=n(13306),a=n(95479),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(21667)),s=n(90048),l=n(19157),u=n(35922);var d=s.chart.area,c=r.chart,h=r.polar,f=o.extend,p=a.each,g={};t.chart=g;var m={};t.polar=m;var _={_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching}},_parsePointStyle:function(e,t,n){var i=e.color||t,o=c._parsePointStyle.call(this,e,i,n);return o.fill=i,o.hatching=e.hatching,o.dashStyle=e.border&&e.border.dashStyle||"solid",delete o.r,o},_applyMarkerClipRect:function(e){e["clip-path"]=null},_setGroupsSettings:function(e,t){var n=this,i={};c._setGroupsSettings.apply(n,arguments),e&&t?i=this._getAffineCoordOptions():e||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),n._markersGroup.attr(i)},_drawPoint:function(e){e.hasAnimation=e.hasAnimation&&!e.firstDrawing,e.firstDrawing=!1,c._drawPoint.call(this,e)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(e){var t=this,n=e.color||t._getMainColor();return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle||{},n,n),selection:t._parsePointStyle(e.selectionStyle||{},n,n)}},_updatePointsVisibility:function(){var e=this._options.visible;(0,a.each)(this._points,(function(t,n){n._options.visible=e}))},_getOptionsForPoint:function(){return this._options},_animate:function(e){var t=this;t._animatePoints(e,(function(){t._animateComplete()}),(function(e,t){var n=e.length-1;p(e||[],(function(e,i){i.animate(e===n?t:void 0,i.getMarkerCoords())}))}))},getValueRangeInitialValue:d.getValueRangeInitialValue,_patchMarginOptions:function(e){return e.checkInterval=!this.useAggregation(),e},_defaultAggregator:"sum",_defineDrawingState:function(){},usePointsToDefineAutoHiding:function(){return!1}};g.bar=f({},c,_,{_getAffineCoordOptions:function(){var e=this._options.rotated,t={scaleX:e?.001:1,scaleY:e?1:.001};return t["translate"+(e?"X":"Y")]=this.getValueAxis().getTranslator().translate("canvas_position_default"),t},_animatePoints:function(e,t,n){this._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),e||n(this._drawnPoints,t)},checkSeriesViewportCoord:function(e,t){if(!c.checkSeriesViewportCoord.call(this))return!1;if(e.isArgumentAxis)return!0;var n=e.getTranslator(),i=this.getViewport(),o=n.translate(i.categories?i.categories[0]:i.min),a=n.translate(i.categories?i.categories[i.categories.length-1]:i.max),r=this.getOptions().rotated,s=e.getOptions().inverted;return r&&!s||!r&&s?t>=o&&t<=a:t>=a&&t<=o},getSeriesPairCoord:function(e,t){for(var n=null,i=this._options.rotated,o=!t&&!i||t&&i,a=o?"vy":"vx",r=o?"vx":"vy",s=this.getPoints(),l=0;l<s.length;l++){var u,d=s[l];if(u=t?d.getCenterCoord()[a[1]]===e?d[r]:void 0:d[a]===e?d[r]:void 0,this._checkAxisVisibleAreaCoord(!t,u)){n=u;break}}return n}}),m.bar=f({},h,_,{_animatePoints:function(e,t,n){n(this._drawnPoints,t)},_setGroupsSettings:c._setGroupsSettings,_drawPoint:function(e,t,n){c._drawPoint.call(this,e,t,n)},_parsePointStyle:function(e){var t=_._parsePointStyle.apply(this,arguments);return t.opacity=e.opacity,t},_createGroups:c._createGroups,_setMarkerGroupSettings:function(){var e=this,t=e._createPointStyles(e._getMarkerGroupOptions()).normal;t.class="dxc-markers",e._applyMarkerClipRect(t);var n=f({},t);delete n.opacity,e._markersGroup.attr(n)},getSeriesPairCoord:function(e,t){for(var n=null,i=t?"argument":"radius",o=this.getVisiblePoints(),a=this.getArgumentAxis(),r=a.getAngles()[0],s=0;s<o.length;s++){var d=o[s],c=(0,u.isDefined)(d[i])&&(0,u.isDefined)(e[i])&&d[i].valueOf()===e[i].valueOf()?(0,l.convertPolarToXY)(a.getCenter(),r,-a.getTranslatedAngle(d.angle),d.radius):void 0;if((0,u.isDefined)(c)){n=c;break}}return n},_createLegendState:d._createLegendState})},54932:function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.Series=Z,t.mixins=void 0;var o=n(35922),a=n(13306),r=n(95479),s=n(54497),l=n(19157),u=n(20576),d=C(n(32410)),c=C(n(63407)),h=w(n(21667)),f=w(n(7222)),p=w(n(90048)),g=w(n(58821)),m=n(57402),_=n(64216),v=w(n(80610)),y=w(n(29788)),x=w(n(92057));function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}function C(e){return e&&e.__esModule?e:{default:e}}var S={},k=d.default.states,D="discrete",I=k.selectedMark,T=k.hoverMark,E=k.hover,A=k.normal,O=k.selection,P=k.applySelected,M=k.applyHover,R=k.resetItem,B="none",V="seriesSelectionChanged",F="pointSelectionChanged",L="seriesHoverChanged",H="pointHoverChanged",N="allseriespoints",z="allargumentpoints",W="pointHover",G="clearPointHover",j="seriesSelect",q="pointSelect",$="pointDeselect";function K(e,t,n){e&&e.trigger(t,n)}function U(e){return"includepoints"===(e=(0,l.normalizeEnum)(e))||e===N}function Y(e,t){var n=(0,a.extend)({},e,t);return n.border=(0,a.extend)({},e&&e.border,t&&t.border),n}function Z(e,t){var n=this;n.fullState=0,n._extGroups=e,n._renderer=e.renderer,n._group=e.renderer.g().attr({class:"dxc-series"}),n._eventTrigger=e.eventTrigger,n._eventPipe=e.eventPipe,n._incidentOccurred=e.incidentOccurred,n._legendCallback=u.noop,n.updateOptions(t,e)}function X(e){return e.data}function Q(e,t){return t&&"logarithmic"===e&&!1===t.getOptions().allowNegatives?function(e){return e>0}:function(){return!0}}S.mixins={chart:{},pie:{},polar:{}},S.mixins.chart.scatter=h.chart,S.mixins.polar.scatter=h.polar,(0,a.extend)(S.mixins.pie,v),(0,a.extend)(S.mixins.chart,f.chart,p.chart,g.chart,m.chart,_.chart,y,x.chart),(0,a.extend)(S.mixins.polar,f.polar,p.polar,g.polar,x.polar),Z.prototype={constructor:Z,_createLegendState:u.noop,getLegendStyles:function(){return this._styles.legendStyles},_createStyles:function(e){var t=this,n=e.mainSeriesColor;t._styles={normal:t._parseStyle(e,n,n),hover:t._parseStyle(e.hoverStyle||{},n,n),selection:t._parseStyle(e.selectionStyle||{},n,n),legendStyles:{normal:t._createLegendState(e,n),hover:t._createLegendState(e.hoverStyle||{},n),selection:t._createLegendState(e.selectionStyle||{},n)}}},setClippingParams:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._paneClipRectID=e,this._widePaneClipRectID=t,this._forceClipping=n,this._clipLabels=i},applyClip:function(){this._group.attr({"clip-path":this._paneClipRectID})},resetClip:function(){this._group.attr({"clip-path":null})},getTagField:function(){return this._options.tagField||"tag"},getValueFields:u.noop,getSizeField:u.noop,getArgumentField:u.noop,getPoints:function(){return this._points},getPointsInViewPort:function(){return c.default.getPointsInViewPort(this)},_createPoint:function(e,t,n){e.index=t;var i=this,o=i.pointsByArgument,a=i._getCreatingPointOptions(e),r=e.argument.valueOf(),l=n;l?l.update(e,a):(l=new s.Point(i,e,a),i.isSelected()&&U(i.lastSelectionMode)&&l.setView(O));var u=o[r];return u?u.push(l):o[r]=[l],l.hasValue()&&i.customizePoint(l,e),l},getRangeData:function(){return this._visible?this._getRangeData():{arg:{},val:{}}},getArgumentRange:function(){return this._visible?c.default.getArgumentRange(this):{arg:{},val:{}}},getViewport:function(){return c.default.getViewport(this)},_deleteGroup:function(e){var t=this[e];t&&(t.dispose(),this[e]=null)},updateOptions:function(e,t){var n=this,i=e.widgetType,o=n.type,a=e.type;if(n.type=a&&(0,l.normalizeEnum)(a.toString()),!n._checkType(i)||n._checkPolarBarType(i,e))return n.dispose(),void(n.isUpdated=!1);o!==n.type?(n._firstDrawing=!0,n._resetType(o,i),n._setType(n.type,i)):n._defineDrawingState(),n._options=e,n._pointOptions=null,n.name=e.name,n.pane=e.pane,n.tag=e.tag,t&&(n._seriesModes=t.commonSeriesModes||n._seriesModes,n._valueAxis=t.valueAxis||n._valueAxis,n.axis=n._valueAxis&&n._valueAxis.name,n._argumentAxis=t.argumentAxis||n._argumentAxis),n._createStyles(e),n._stackName=null,n._updateOptions(e),n._visible=e.visible,n.isUpdated=!0,n.stack=e.stack,n.barOverlapGroup=e.barOverlapGroup,n._createGroups(),n._processEmptyValue=e.ignoreEmptyPoints?function(e){return null===e?void 0:e}:function(e){return e}},_defineDrawingState:function(){this._firstDrawing=!0},_disposePoints:function(e){(0,r.each)(e||[],(function(e,t){t.dispose()}))},updateDataType:function(e){var t=this;return t.argumentType=e.argumentType,t.valueType=e.valueType,t.argumentAxisType=e.argumentAxisType,t.valueAxisType=e.valueAxisType,t.showZero=e.showZero,this._argumentChecker=Q(e.argumentAxisType,t.getArgumentAxis()),this._valueChecker=Q(e.valueAxisType,t.getValueAxis()),t},_argumentChecker:function(){return!0},_valueChecker:function(){return!0},getOptions:function(){return this._options},_getOldPoint:function(e,t,n){var i=e.argument&&e.argument.valueOf(),o=(t[i]||[])[0];return o&&t[i].splice(0,1),o},updateData:function(e){var t=this,n=t._options,i=n.nameField;(e=e||[]).length&&(t._canRenderCompleteHandle=!0);var a=this._getPointDataSelector(),r=0;t._data=e.reduce((function(e,t,s){var l=a(t);return(0,o.isDefined)(l.argument)?i&&t[i]!==n.nameFieldValue||(l.index=s,e.push(l)):r++,e}),[]),r&&r===e.length&&t._incidentOccurred("W2002",[t.name,t.getArgumentField()]),t._endUpdateData()},_getData:function(){var e=this._data||[];return this.useAggregation()&&(e=this._resample(this.getArgumentAxis().getAggregationInfo(this._useAllAggregatedPoints,this.argumentAxisType!==D?this.getArgumentRange():{}),e)),e},useAggregation:function(){var e=this.getOptions().aggregation;return e&&e.enabled},autoHidePointMarkersEnabled:u.noop,usePointsToDefineAutoHiding:u.noop,createPoints:function(e){this._normalizeUsingAllAggregatedPoints(e),this._createPoints()},_normalizeUsingAllAggregatedPoints:function(e){this._useAllAggregatedPoints=this.useAggregation()&&(this.argumentAxisType===D||(this._data||[]).length>1&&!!e)},_createPoints:function(){var e=this,t=e.pointsByArgument||{},n=e._getData();e.pointsByArgument={},e._calculateErrorBars(n);var i={},o=n.reduce((function(n,o){if(e._checkData(o,i)){var a=n.length,r=e._getOldPoint(o,t,a),s=e._createPoint(o,a,r);n.push(s)}return n}),[]);for(var a in i)i[a]===n.length&&e._incidentOccurred("W2002",[e.name,a]);Object.keys(t).forEach((function(n){return e._disposePoints(t[n])})),e._points=o},_removeOldSegments:function(){var e=this,t=e._segments.length;(0,r.each)(e._graphics.splice(t,e._graphics.length)||[],(function(t,n){e._removeElement(n)})),e._trackers&&(0,r.each)(e._trackers.splice(t,e._trackers.length)||[],(function(e,t){t.remove()}))},_drawElements:function(e,t,n){var i=this,o=i._points||[],a=o[0]&&o[0].hasValue()&&i._options.closed,r={markers:i._markersGroup,errorBars:i._errorBarGroup};i._drawnPoints=[],i._graphics=i._graphics||[],i._segments=[];var s=o.reduce((function(o,a){var s=o[o.length-1];return a.translated&&!n||(a.translate(),!n&&a.setDefaultCoords()),a.hasValue()&&a.hasCoords()?(n&&i._drawPoint({point:a,groups:r,hasAnimation:e,firstDrawing:t}),s.push(a)):a.hasValue()?a.setInvisibility():s.length&&o.push([]),o}),[[]]);s.forEach((function(t,n){t.length&&i._drawSegment(t,e,n,a&&n===this.length-1)}),s),i._firstDrawing=!o.length,i._removeOldSegments(),e&&i._animate(t)},draw:function(e,t,n){var i=this,o=i._firstDrawing;i._legendCallback=n||i._legendCallback,i._visible?(i._appendInGroup(),i._applyVisibleArea(),i._setGroupsSettings(e,o),!o&&!i._resetApplyingAnimation&&i._drawElements(!1,o,!1),i._drawElements(e,o,!0),t&&i.hideLabels(),i.isSelected()?i._changeStyle(i.lastSelectionMode,void 0,!0):i.isHovered()?i._changeStyle(i.lastHoverMode,void 0,!0):i._applyStyle(i._styles.normal),i._resetApplyingAnimation=!1):i._group.remove()},_setLabelGroupSettings:function(e){var t={class:"dxc-labels","pointer-events":"none"};this._clipLabels&&this._applyElementsClipRect(t),this._applyClearingSettings(t),e&&(t.opacity=.001),this._labelsGroup.attr(t).append(this._extGroups.labelsGroup)},_checkType:function(e){return!!S.mixins[e][this.type]},_checkPolarBarType:function(e,t){return"polar"===e&&t.spiderWidget&&-1!==this.type.indexOf("bar")},_resetType:function(e,t){var n;if(e)for(n in S.mixins[t][e])delete this[n]},_setType:function(e,t){var n,i=S.mixins[t][e];for(n in i)this[n]=i[n]},_setPointsView:function(e,t){this.getPoints().forEach((function(n){t!==n&&n.setView(e)}))},_resetPointsView:function(e,t){this.getPoints().forEach((function(n){t!==n&&n.resetView(e)}))},_resetNearestPoint:function(){var e=this;e._nearestPoint&&null!==e._nearestPoint.series&&e._nearestPoint.resetView(E),e._nearestPoint=null},_setSelectedState:function(e){var t=this;t.lastSelectionMode=(0,l.normalizeEnum)(e||t._options.selectionMode),t.fullState=t.fullState|I,t._resetNearestPoint(),t._changeStyle(t.lastSelectionMode),t.lastSelectionMode!==B&&t.isHovered()&&U(t.lastHoverMode)&&t._resetPointsView(E)},_releaseSelectedState:function(){var e=this;e.fullState=e.fullState&~I,e._changeStyle(e.lastSelectionMode,O),e.lastSelectionMode!==B&&e.isHovered()&&U(e.lastHoverMode)&&e._setPointsView(E)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},resetApplyingAnimation:function(e){this._resetApplyingAnimation=!0,e&&(this._firstDrawing=!0)},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&(0,l.normalizeEnum)(this._options.hoverMode)!==B},_changeStyle:function(e,t,n){var i=this,o=i.fullState,a=[A,E,O,O];"none"===i.lastHoverMode&&(o&=~T),"none"===i.lastSelectionMode&&(o&=~I),U(e)&&!n&&(t?i._resetPointsView(t):i._setPointsView(a[o])),i._legendCallback([R,M,P,P][o]),i._applyStyle(i._styles[a[o]])},updateHover:function(e,t){var n=this,i=n._nearestPoint,o=n.isHovered()&&"nearestpoint"===n.lastHoverMode&&n.getNeighborPoint(e,t);o===i||n.isSelected()&&n.lastSelectionMode!==B||(n._resetNearestPoint(),o&&(o.setView(E),n._nearestPoint=o))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!(0,o.isDefined)(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function(e,t){var n,i,r,s,l,u,d=this,c=d._options,h=c.customizePoint,f=c.customizeLabel;f&&f.call&&((n=(0,a.extend)({seriesName:d.name},t)).series=d,r=(l=(r=f.call(n,n))&&!(0,o.isEmptyObject)(r))?(0,a.extend)(!0,{},c.label,r):null),h&&h.call&&((n=n||(0,a.extend)({seriesName:d.name},t)).series=d,u=(s=h.call(n,n))&&!(0,o.isEmptyObject)(s)),(l||u)&&((i=d._parsePointOptions(d._preparePointOptions(s),r||c.label,t,e)).styles.useLabelCustomOptions=l,i.styles.usePointCustomOptions=u,e.updateOptions(i))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(e){var t=this;t._visible=t._options.visible=e,t._updatePointsVisibility(),t.hidePointTooltip(),t._options.visibilityChanged(t)},_updatePointsVisibility:u.noop,hideLabels:function(){(0,r.each)(this._points,(function(e,t){t._label.draw(!1)}))},_parsePointOptions:function(e,t,n,i){var r=this,s=r._options,u=r._createPointStyles(e,n,i),d=(0,a.extend)({},e,{type:s.type,rotated:s.rotated,styles:u,widgetType:s.widgetType,visibilityChanged:s.visibilityChanged});return d.label=function(e,t){var n=e||{},i=(0,a.extend)({},n.font)||{},r=n.border||{},s=n.connector||{},u={fill:n.backgroundColor||t,"stroke-width":r.visible&&r.width||0,stroke:r.visible&&r.width?r.color:"none",dashStyle:r.dashStyle},d={stroke:s.visible&&s.width?s.color||t:"none","stroke-width":s.visible&&s.width||0};return i.color="none"===n.backgroundColor&&"#ffffff"===(0,l.normalizeEnum)(i.color)&&"inside"!==n.position?t:i.color,{alignment:n.alignment,format:n.format,argumentFormat:n.argumentFormat,customizeText:(0,o.isFunction)(n.customizeText)?n.customizeText:void 0,attributes:{font:i},visible:0!==i.size&&n.visible,showForZeroValues:n.showForZeroValues,horizontalOffset:n.horizontalOffset,verticalOffset:n.verticalOffset,radialOffset:n.radialOffset,background:u,position:n.position,connector:d,rotationAngle:n.rotationAngle,wordWrap:n.wordWrap,textOverflow:n.textOverflow,cssClass:n.cssClass}}(t,u.normal.fill),r.areErrorBarsVisible()&&(d.errorBars=s.valueErrorBar),d},_preparePointOptions:function(e){var t,n,i,o=this._getOptionsForPoint();return e?((i=Y(t=o,n=e)).image=(0,a.extend)(!0,{},t.image,n.image),i.selectionStyle=Y(t.selectionStyle,n.selectionStyle),i.hoverStyle=Y(t.hoverStyle,n.hoverStyle),i):o},_getMarkerGroupOptions:function(){return(0,a.extend)(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(e,t){var n,i=this.getOptions().aggregation,o=(0,l.normalizeEnum)(i.method),a="custom"===o&&i.calculate;return n=e&&!t?function(e){return e.data[0]}:this._aggregators[o]||this._aggregators[this._defaultAggregator],a||n},_resample:function(e,t){var n=e.interval,i=e.ticks,o=e.aggregateByCategory,a=this,r=a.argumentAxisType===D||a.valueAxisType===D,s=0,l=this._getPointDataSelector(),u=a.getOptions(),d=function(e,t,n){if(t){var i=function(t){var i=t&&l(t,u);i&&a._checkData(i)&&(i.aggregationInfo=n,e.push(i))};Array.isArray(t)?t.forEach(i):i(t)}},c=this._getAggregationMethod(r,o);if(r){if(o){var h=this.getArgumentAxis().getTranslator().getBusinessRange().categories,f=h.reduce((function(e,t){return e[t.valueOf()]=[],e}),{});return t.forEach((function(e){f[e.argument.valueOf()].push(e)})),h.reduce((function(e,t){return d(e,c({aggregationInterval:null,intervalStart:t,intervalEnd:t,data:f[t.valueOf()].map(X)},a)),e}),[])}return t.reduce((function(e,t,i,o){if(e[1].push(t),i===o.length-1||(i+1)%n==0){var r=e[1],s={aggregationInterval:n,data:r.map(X)};d(e[0],c(s,a)),e[1]=[]}return e}),[[],[]])[0]}for(var p=[],g=1;g<i.length;g++){for(var m=i[g],_=i[g-1],v=[];t[s]&&t[s].argument<m;)t[s].argument>=_&&v.push(t[s]),s++;var y={intervalStart:_,intervalEnd:m,aggregationInterval:n,data:v.map(X)};d(p,c(y,a),y)}return a._endUpdateData(),p},canRenderCompleteHandle:function(){var e=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!e},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return this._createAllAggregatedPoints(),(this._points||[]).slice()},getPointByPos:function(e){return this._createAllAggregatedPoints(),(this._points||[])[e]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(e){e.isSelected()||(function(e,t){e.fullState|=I,e.applyView(t)}(e,this._legendCallback),this._eventPipe({action:q,target:e}),this._eventTrigger(F,{target:e}))},deselectPoint:function(e){e.isSelected()&&(function(e,t){e.fullState&=~I,e.applyView(t)}(e,this._legendCallback),this._eventPipe({action:$,target:e}),this._eventTrigger(F,{target:e}))},hover:function(e){var t=this,n=t._eventTrigger;t.isHovered()||(t.lastHoverMode=(0,l.normalizeEnum)(e||t._options.hoverMode),t.fullState=t.fullState|T,t._changeStyle(t.lastHoverMode,void 0,t.isSelected()&&t.lastSelectionMode!==B),n(L,{target:t}))},clearHover:function(){var e=this,t=e._eventTrigger;e.isHovered()&&(e._resetNearestPoint(),e.fullState=e.fullState&~T,e._changeStyle(e.lastHoverMode,E,e.isSelected()&&e.lastSelectionMode!==B),t(L,{target:e}))},hoverPoint:function(e){var t=this;e.isHovered()||(e.clearHover(),function(e,t){e.fullState|=T,e.applyView(t)}(e,t._legendCallback),t._canChangeView()&&t._applyStyle(t._styles.hover),t._eventPipe({action:W,target:e}),t._eventTrigger(H,{target:e}))},clearPointHover:function(){var e=this;e.getPoints().some((function(t){return!!t.isHovered()&&(n=t,i=e._legendCallback,n.fullState&=~T,n.applyView(i),n.releaseHoverState(),e._canChangeView()&&e._applyStyle(e._styles.normal),e._eventPipe({action:G,target:t}),e._eventTrigger(H,{target:t}),!0);var n,i}))},showPointTooltip:function(e){K(this._extGroups.seriesGroup,"showpointtooltip",e)},hidePointTooltip:function(e){K(this._extGroups.seriesGroup,"hidepointtooltip",e)},select:function(){var e=this;e.isSelected()||(e._setSelectedState(e._options.selectionMode),e._eventPipe({action:j,target:e}),e._group.toForeground(),e._eventTrigger(V,{target:e}))},clearSelection:function(){var e=this;e.isSelected()&&(e._releaseSelectedState(),e._eventTrigger(V,{target:e}))},getPointsByArg:function(e,t){var n=this,i=e.valueOf(),o=n.pointsByArgument[i];return o||t||!n._createAllAggregatedPoints()||(o=n.pointsByArgument[i]),o||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints||(this.createPoints(!0),0))},getPointsByKeys:function(e){return this.getPointsByArg(e)},notify:function(e){var t=this,n=e.action,i=t._seriesModes,o=e.target,a=o.getOptions(),r=(0,l.normalizeEnum)(a.hoverMode),s=(0,l.normalizeEnum)(a.selectionMode);n===W?t._hoverPointHandler(o,r,e.notifyLegend):n===G?t._clearPointHoverHandler(o,r,e.notifyLegend):n===j?o!==t&&"single"===i.seriesSelectionMode&&t.clearSelection():n===q?("single"===i.pointSelectionMode&&t.getPoints().some((function(e){return!(e===o||!e.isSelected()||(t.deselectPoint(e),0))})),t._selectPointHandler(o,s)):n===$&&t._deselectPointHandler(o,s)},_selectPointHandler:function(e,t){var n=this;t===N?e.series===n&&n._setPointsView(O,e):t===z&&n.getPointsByKeys(e.argument,e.argumentIndex).forEach((function(t){t!==e&&t.setView(O)}))},_deselectPointHandler:function(e,t){t===N?e.series===this&&this._resetPointsView(O,e):t===z&&this.getPointsByKeys(e.argument,e.argumentIndex).forEach((function(t){t!==e&&t.resetView(O)}))},_hoverPointHandler:function(e,t,n){var i=this;e.series!==i&&t===z?(i.getPointsByKeys(e.argument,e.argumentIndex).forEach((function(e){e.setView(E)})),n&&i._legendCallback(e)):t===N&&e.series===i&&i._setPointsView(E,e)},_clearPointHoverHandler:function(e,t,n){var i=this;t===z?(e.series!==i&&i.getPointsByKeys(e.argument,e.argumentIndex).forEach((function(e){e.resetView(E)})),n&&i._legendCallback(e)):t===N&&e.series===i&&i._resetPointsView(E,e)},_deletePoints:function(){var e=this;e._disposePoints(e._points),e._points=e._drawnPoints=null},_deleteTrackers:function(){var e=this;(0,r.each)(e._trackers||[],(function(e,t){t.remove()})),e._trackersGroup&&e._trackersGroup.dispose(),e._trackers=e._trackersGroup=null},dispose:function(){var e=this;e._deletePoints(),e._group.dispose(),e._labelsGroup&&e._labelsGroup.dispose(),e._errorBarGroup&&e._errorBarGroup.dispose(),e._deleteTrackers(),e._group=e._extGroups=e._markersGroup=e._elementsGroup=e._bordersGroup=e._labelsGroup=e._errorBarGroup=e._graphics=e._rangeData=e._renderer=e._styles=e._options=e._pointOptions=e._drawnPoints=e.pointsByArgument=e._segments=e._prevSeries=null},correctPosition:u.noop,drawTrackers:u.noop,getNeighborPoint:u.noop,areErrorBarsVisible:u.noop,getMarginOptions:function(){return this._patchMarginOptions({percentStick:this.isFullStackedSeries()})},getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return this._stackName},getBarOverlapGroup:function(){return this._options.barOverlapGroup},getPointByCoord:function(e,t){var n=this.getNeighborPoint(e,t);return null!=n&&n.coordsIn(e,t)?n:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis},getMarkersGroup:function(){return this._markersGroup},getRenderer:function(){return this._renderer},removePointElements:function(){this._markersGroup&&((0,r.each)(this._points,(function(e,t){return t.deleteMarker()})),this._markersGroup.dispose(),this._markersGroup=null)},removeGraphicElements:function(){var e=this;e._elementsGroup&&(e._elementsGroup.dispose(),e._elementsGroup=null),(0,r.each)(e._graphics||[],(function(t,n){e._removeElement(n)})),e._graphics=null},removeBordersGroup:function(){this._bordersGroup&&(this._bordersGroup.dispose(),this._bordersGroup=null)}};var J=S.mixins;t.mixins=J},64216:function(e,t,n){t.chart=void 0;var i=n(7222),o=n(21667),a=n(90048),r=n(58821),s=n(13306),l=n(95479),u=n(20576);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=i.chart.line,h=a.chart.area,f=r.chart.bar,p=r.polar.bar,g=s.extend,m=l.each,_=u.noop,v={};t.chart=v,v.bubble=g({},o.chart,{_calculateErrorBars:_,_getMainColor:f._getMainColor,_createPointStyles:f._createPointStyles,_updatePointsVisibility:f._updatePointsVisibility,_getOptionsForPoint:f._getOptionsForPoint,_applyMarkerClipRect:c._applyElementsClipRect,_parsePointStyle:p._parsePointStyle,_createLegendState:h._createLegendState,_setMarkerGroupSettings:p._setMarkerGroupSettings,areErrorBarsVisible:_,_createErrorBarGroup:_,_checkData:function(e,t){return o.chart._checkData.call(this,e,t,{value:this.getValueFields()[0],size:this.getSizeField()})},_getPointDataSelector:function(e,t){var n=this.getSizeField(),i=o.chart._getPointDataSelector.call(this);return function(e){var t=i(e);return t.size=e[n],t}},_aggregators:{avg:function(e,t){var n,i=e.data,o=e.intervalStart,a=e.intervalEnd;if(i.length){var r=t.getValueFields()[0],s=t.getSizeField(),l=i.reduce((function(e,t){return e[0]+=t[r],e[1]+=t[s],e[2]++,e}),[0,0,0]);return d(n={},r,l[0]/l[2]),d(n,s,l[1]/l[2]),d(n,t.getArgumentField(),t._getIntervalCenter(o,a)),n}}},getValueFields:function(){return[this._options.valueField||"val"]},getSizeField:function(){return this._options.sizeField||"size"},_animate:function(){var e=this,t=e._drawnPoints.length-1,n=e._labelsGroup,i=function(){n&&n.animate({opacity:1},{duration:e._defaultDuration})};m(e._drawnPoints||[],(function(e,n){n.animate(e===t?i:void 0,{r:n.bubbleSize,translateX:n.x,translateY:n.y})}))},_patchMarginOptions:function(e){return e.processBubbleSize=!0,e}})},29788:function(e,t,n){t.stock=t.candlestick=void 0;var i=n(21667),o=n(58821),a=n(13306),r=n(35922),s=n(19157),l=n(20576),u=o.chart.bar,d=(0,a.extend)({},i.chart,{_animate:l.noop,_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},_updatePointsVisibility:u._updatePointsVisibility,_getOptionsForPoint:u._getOptionsForPoint,_createErrorBarGroup:l.noop,areErrorBarsVisible:l.noop,_createGroups:i.chart._createGroups,_setMarkerGroupSettings:function(){var e=this,t=e._markersGroup,n=e._createPointStyles(e._getMarkerGroupOptions()),i=(0,a.extend)(n.normal,{class:"default-markers"}),o=(0,a.extend)(n.positive.normal,{class:"default-positive-markers"}),r=(0,a.extend)(n.reduction.normal,{class:"reduction-markers"}),s=(0,a.extend)(n.reductionPositive.normal,{class:"reduction-positive-markers"}),l={class:"dxc-markers"};e._applyMarkerClipRect(l),t.attr(l),e._createGroup("defaultMarkersGroup",t,t,i),e._createGroup("reductionMarkersGroup",t,t,r),e._createGroup("defaultPositiveMarkersGroup",t,t,o),e._createGroup("reductionPositiveMarkersGroup",t,t,s)},_setGroupsSettings:function(){i.chart._setGroupsSettings.call(this,!1)},_getCreatingPointOptions:function(){var e,t=this._predefinedPointOptions;return t||(e=this._getPointOptions(),this._predefinedPointOptions=t=(0,a.extend)(!0,{styles:{}},e),t.styles.normal=t.styles.positive.normal=t.styles.reduction.normal=t.styles.reductionPositive.normal={"stroke-width":e.styles&&e.styles.normal&&e.styles.normal["stroke-width"]}),t},_checkData:function(e,t){var n=this.getValueFields();return i.chart._checkData.call(this,e,t,{openValue:n[0],highValue:n[1],lowValue:n[2],closeValue:n[3]})&&e.highValue==e.highValue&&e.lowValue==e.lowValue},_getPointDataSelector:function(e,t){var n,i,o=this,a=this,l=a.getValueFields(),u=a.getArgumentField(),d=l[0],c=l[1],h=l[2],f=l[3];switch(a.level=a._options.reduction.level,(0,s.normalizeEnum)(a.level)){case"open":n=d;break;case"high":n=c;break;case"low":n=h;break;default:n=f,a.level="close"}return function(e){var t=e[n],s=!1;return(0,r.isDefined)(t)&&((0,r.isDefined)(i)&&(s=t<i),i=t),{argument:e[u],highValue:o._processEmptyValue(e[c]),lowValue:o._processEmptyValue(e[h]),closeValue:o._processEmptyValue(e[f]),openValue:o._processEmptyValue(e[d]),reductionValue:t,tag:e[a.getTagField()],isReduction:s,data:e}}},_parsePointStyle:function(e,t,n){return{stroke:e.color||t,"stroke-width":e.width,fill:e.color||n}},_getDefaultStyle:function(e){var t=this,n=e.color||t._options.mainSeriesColor;return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle,n,n),selection:t._parsePointStyle(e.selectionStyle,n,n)}},_getReductionStyle:function(e){var t=this,n=e.reduction.color;return{normal:t._parsePointStyle({color:n,width:e.width,hatching:e.hatching},n,n),hover:t._parsePointStyle(e.hoverStyle,n,n),selection:t._parsePointStyle(e.selectionStyle,n,n)}},_createPointStyles:function(e){var t=this,n=t._options.innerColor,i=t._getDefaultStyle(e),o=(0,a.extend)(!0,{},i),r=t._getReductionStyle(e),s=(0,a.extend)(!0,{},r);return o.normal.fill=o.hover.fill=o.selection.fill=n,s.normal.fill=s.hover.fill=s.selection.fill=n,i.positive=o,i.reduction=r,i.reductionPositive=s,i},_endUpdateData:function(){delete this._predefinedPointOptions},_defaultAggregator:"ohlc",_aggregators:{ohlc:function(e,t){var n=e.intervalStart,i=e.intervalEnd,o=e.data;if(o.length){var a={},r=t.getValueFields(),s=r[1],l=r[2];return a[s]=-1/0,a[l]=1/0,(a=o.reduce((function(e,t){return null!==t[s]&&(e[s]=Math.max(e[s],t[s])),null!==t[l]&&(e[l]=Math.min(e[l],t[l])),e}),a))[r[0]]=o[0][r[0]],a[r[3]]=o[o.length-1][r[3]],isFinite(a[s])||(a[s]=null),isFinite(a[l])||(a[l]=null),a[t.getArgumentField()]=t._getIntervalCenter(n,i),a}}},getValueFields:function(){var e=this._options;return[e.openValueField||"open",e.highValueField||"high",e.lowValueField||"low",e.closeValueField||"close"]},getArgumentField:function(){return this._options.argumentField||"date"},_patchMarginOptions:function(e){var t=this._getCreatingPointOptions().styles,n=[t.normal,t.hover,t.selection].reduce((function(e,t){return Math.max(e,t["stroke-width"])}),0);return e.size=10+n,e.sizePointNormalState=10,e},getSeriesPairCoord:function(e,t){for(var n=null,i=this.getVisiblePoints(),o=0;o<i.length;o++){var a=i[o],r=void 0;if(t)r=a.vx===e?(a.openY+a.closeY)/2:void 0;else{var s=[Math.min(a.lowY,a.highY),Math.max(a.lowY,a.highY)];r=e>=s[0]&&e<=s[1]?a.vx:void 0}if(this._checkAxisVisibleAreaCoord(!t,r)){n=r;break}}return n},usePointsToDefineAutoHiding:function(){return!1}});t.stock=d;var c=(0,a.extend)({},d,{_parsePointStyle:function(e,t,n){var i=e.color||n,o=d._parsePointStyle.call(this,e,t,i);return o.fill=i,o.hatching=e.hatching,o}});t.candlestick=c},63407:function(e,t,n){t.default=void 0;var i=n(19157),o=n(35922),a=n(20576),r="discrete",s=Math.abs,l=Math.floor,u=Math.ceil,d=Math.min;function c(e,t,n){e.min=e.min<t?e.min:t,e.max=e.max>n?e.max:n}function h(e,t){if("logarithmic"!==e)return null;var n=t.getOptions().logarithmBase;return function(e){var t=(0,i.getLog)(s(e),n);return(t<0?l:u)(t)}}function f(e,t,n){var i=c;return e===r?i=function(e,t,n){t!==n&&e.categories.push(n),e.categories.push(t)}:t&&(i=function(e,n){var i=t.calculateInterval(n,e.prevValue),o=e.interval;e.interval=(o<i?o:i)||o,e.prevValue=n,c(e,n,n)}),n?function(e,t,o){var a=[];i(e,t,o),0!==t&&a.push(n(t)),0!==o&&a.push(n(o));var r=d.apply(null,a);e.linearThreshold=e.linearThreshold<r?e.linearThreshold:r}:i}function p(e,t,n){var i={axisType:e,dataType:t};return e===r?i.categories=[]:(i.min=(0,o.isObject)(n)?n.min:n,i.max=(0,o.isObject)(n)?n.max:n),i}function g(e){return e.categories&&(e.categories=(0,i.unique)(e.categories)),e}function m(e,t,n,i,a){var r=function(e,t,n,i){if(t&&(0,o.isDefined)(t.value)){var a=e.value,r=t.value,s=e.argument,l=(n-s)*(r-a)/(t.argument-s)+a.valueOf();return"datetime"===i.dataType?new Date(l):l}return e.value}(n,i,a,t);e(t,r,r)}function _(e){return e.type.toLowerCase().indexOf("line")>=0||e.type.toLowerCase().indexOf("area")>=0}function v(e){var t=f(e.valueAxisType),n=e.getArgumentAxis(),r=n&&e.getArgumentAxis().visualRange()||{},s=_(e)?m:a.noop;if(n&&n.getMarginOptions().checkInterval){var l=e.getArgumentAxis().getTranslator().getBusinessRange(),u=(0,i.getAddFunction)(l,!1),d=l.interval;isFinite(d)&&(0,o.isDefined)(r.startValue)&&(0,o.isDefined)(r.endValue)&&(r.startValue=u(r.startValue,d,-1),r.endValue=u(r.endValue,d))}var c=y(r);return function(e,n,i,a){var l=n.argument;return n.hasValue()?(c(l)?(e.startCalc||(e.startCalc=!0,s(t,e,n,a[i-1],r.startValue)),t(e,n.getMinValue(),n.getMaxValue())):!r.categories&&(0,o.isDefined)(r.startValue)&&l>r.startValue&&(e.startCalc||s(t,e,n,a[i-1],r.startValue),e.endCalc=!0,s(t,e,n,a[i-1],r.endValue)),e):e}}function y(e){if(e.categories){var t=e.categories.reduce((function(e,t){return e[t.valueOf()]=!0,e}),{});return function(e){return(0,o.isDefined)(e)&&t[e.valueOf()]}}return(0,o.isDefined)(e.startValue)||(0,o.isDefined)(e.endValue)?(0,o.isDefined)(e.endValue)?(0,o.isDefined)(e.startValue)?function(t){return t>=e.startValue&&t<=e.endValue}:function(t){return t<=e.endValue}:function(t){return t>=e.startValue}:function(){return!0}}var x={getViewPortFilter:y,getArgumentRange:function(e){var t=e._data||[],n={};if(t.length)if(e.argumentAxisType===r)n={categories:t.map((function(e){return e.argument}))};else{var i;if(t.length>1){var o=e.getArgumentAxis().calculateInterval(t[0].argument,t[1].argument),a=e.getArgumentAxis().calculateInterval(t[t.length-1].argument,t[t.length-2].argument);i=d(o,a)}n={min:t[0].argument,max:t[t.length-1].argument,interval:i}}return g(n)},getRangeData:function(e){var t=e.getPoints(),n=e.useAggregation(),i=f(e.argumentAxisType,t.length>1&&e.getArgumentAxis(),h(e.argumentAxisType,e.getArgumentAxis())),a=f(e.valueAxisType,null,h(e.valueAxisType,e.getValueAxis())),s=v(e),l=t.reduce((function(e,t,n,o){var r=t.argument;return t.isArgumentCorrect()?(i(e.arg,r,r),t.hasValue()&&(a(e.val,t.getMinValue(),t.getMaxValue()),s(e.viewport,t,n,o)),e):e}),{arg:p(e.argumentAxisType,e.argumentType,e.getArgumentRangeInitialValue()),val:p(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0),viewport:p(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0)});if(n){var u=this.getArgumentRange(e);if(e.argumentAxisType===r)l.arg=u;else{var d=e.getArgumentAxis().getViewport();((0,o.isDefined)(d.startValue)||(0,o.isDefined)(d.length))&&i(l.arg,u.min,u.min),((0,o.isDefined)(d.endValue)||(0,o.isDefined)(d.length)&&(0,o.isDefined)(d.startValue))&&i(l.arg,u.max,u.max)}}return g(l.arg),g(l.val),l},getViewport:function(e){var t,n=e.getPoints(),i=v(e);return t=p(e.valueAxisType,e.valueType,n.length?e.getValueRangeInitialValue():void 0),n.some((function(e,o){return i(t,e,o,n),t.endCalc})),t},getPointsInViewPort:function(e){var t=y(e.getArgumentAxis().visualRange()||{}),n=e.getValueAxis().visualRange()||{},i=y(n),o=e.getPoints(),r=function(e,t,o){var a=t.getMinValue(),r=t.getMaxValue(),s=i(a),l=i(r);s&&e.push(a),r!==a&&l&&e.push(r),!o||s||l||(e.length?e.push(n.endValue):e.push(n.startValue))},s=_(e)?function(e,n,i){var o=n[i],a=n[i-1],s=n[i+1];s&&t(s.argument)&&r(e[1],o,!0),a&&t(a.argument)&&r(e[1],o,!0)}:a.noop;return o.reduce((function(e,n,i){return t(n.argument)?r(e[0],n):s(e,o,i),e}),[[],[]])}};t.default=x,e.exports=t.default,e.exports.default=t.default},7222:function(e,t,n){t.polar=t.chart=void 0;var i=n(21667),o=n(48013),a=n(13306),r=n(95479),s=n(19157),l=n(60810),u="discrete",d=Math.round,c=Math.sqrt,h=Math.pow,f=Math.min,p=Math.max,g=Math.abs,m={};t.chart=m;var _={};function v(e,t,n,i){var a=(0,o.clone)(e);return a.x=t,a.y=n,a.angle=i,a}function y(e,t,n,i,o){var a=e.angle+o,r=(0,s.getCosAndSin)(a);return v(t,n.x+(e.radius+i*o)*r.cos,n.y-(e.radius+i*o)*r.sin,a)}t.polar=_;var x={autoHidePointMarkersEnabled:function(){return!0},_applyGroupSettings:function(e,t,n){t=(0,a.extend)(t,e),this._applyElementsClipRect(t),n.attr(t)},_setGroupsSettings:function(e){var t=this,n=t._styles.normal;t._applyGroupSettings(n.elements,{class:"dxc-elements"},t._elementsGroup),t._bordersGroup&&t._applyGroupSettings(n.border,{class:"dxc-borders"},t._bordersGroup),i.chart._setGroupsSettings.call(t,e),e&&t._markersGroup&&t._markersGroup.attr({opacity:.001})},_createGroups:function(){var e=this;e._createGroup("_elementsGroup",e,e._group),e._areBordersVisible()&&e._createGroup("_bordersGroup",e,e._group),i.chart._createGroups.call(e)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(e){return{line:(0,s.map)(e.line||[],(function(e){return e.getDefaultCoords()}))}},_prepareSegment:function(e){return{line:e}},_parseLineOptions:function(e,t){return{stroke:e.color||t,"stroke-width":e.width,dashStyle:e.dashStyle||"solid"}},_parseStyle:function(e,t){return{elements:this._parseLineOptions(e,t)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.attr(e.elements),(0,r.each)(t._graphics||[],(function(t,n){n.line&&n.line.attr({"stroke-width":e.elements["stroke-width"]}).sharp()}))},_drawElement:function(e,t){return{line:this._createMainElement(e.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(t)}},_removeElement:function(e){e.line.remove()},_updateElement:function(e,t,n,i){var o={points:t.line},a=e.line;n?a.animate(o,{},i):a.attr(o)},_animateComplete:function(){var e=this;i.chart._animateComplete.call(e),e._markersGroup&&e._markersGroup.animate({opacity:1},{duration:e._defaultDuration})},_animate:function(){var e=this,t=e._graphics.length-1;(0,r.each)(e._graphics||[],(function(n,i){var o;n===t&&(o=function(){e._animateComplete()}),e._updateElement(i,e._segments[n],!0,o)}))},_drawPoint:function(e){i.chart._drawPoint.call(this,{point:e.point,groups:e.groups})},_createMainElement:function(e,t){return this._renderer.path(e,"line").attr(t)},_sortPoints:function(e,t){return t?e.sort((function(e,t){return t.y-e.y})):e.sort((function(e,t){return e.x-t.x}))},_drawSegment:function(e,t,n,i){var o=this,a=o._options.rotated,r=o._prepareSegment(e,a,i);o._segments.push(r),o._graphics[n]?t||o._updateElement(o._graphics[n],r):o._graphics[n]=o._drawElement(t?o._getDefaultSegment(r):r,o._elementsGroup)},_getTrackerSettings:function(){var e=this._defaultTrackerWidth,t=this._styles.normal.elements["stroke-width"];return{"stroke-width":t>e?t:e,fill:"none"}},_getMainPointsFromSegment:function(e){return e.line},_drawTrackerElement:function(e){return this._createMainElement(this._getMainPointsFromSegment(e),this._getTrackerSettings(e))},_updateTrackerElement:function(e,t){var n=this._getTrackerSettings(e);n.points=this._getMainPointsFromSegment(e),t.attr(n)},checkSeriesViewportCoord:function(e,t){if(!i.chart.checkSeriesViewportCoord.call(this))return!1;var n=e.isArgumentAxis?this.getArgumentRange():this.getViewport(),o=e.getTranslator().translate(n.categories?n.categories[0]:n.min),a=e.getTranslator().translate(n.categories?n.categories[n.categories.length-1]:n.max),r=this.getOptions().rotated,s=e.getOptions().inverted;return e.isArgumentAxis&&(!r&&!s||r&&s)||!e.isArgumentAxis&&(r&&!s||!r&&s)?t>=o&&t<=a:t>=a&&t<=o}},b=m.line=(0,a.extend)({},i.chart,x,{getPointCenterByArg:function(e){var t=this.getArgumentAxis().getTranslator().translate(e);return{x:t,y:t}},getSeriesPairCoord:function(e,t){for(var n=null,i=this._getNearestPointsByCoord(e,t),o=t&&!this._options.rotated||!t&&this._options.rotated,a=0;a<i.length;a++){var r,s=i[a],l=(s[1].vy-s[0].vy)/(s[1].vx-s[0].vx),u=s[0].vy-s[0].vx*l;if(r=s[1].vx-s[0].vx==0?o?s[0].vy:s[0].vx:o?l*e+u:(e-u)/l,this._checkAxisVisibleAreaCoord(!t,r)){n=r;break}}return n}});m.stepline=(0,a.extend)({},b,{_calculateStepLinePoints:function(e){var t=[],n=this._options.rotated?"x":"y";return(0,r.each)(e,(function(e,i){var a;if(e){var r=t[t.length-1][n];r!==i[n]&&((a=(0,o.clone)(i))[n]=r,t.push(a)),t.push(i)}else t.push(i)})),t},_prepareSegment:function(e){return b._prepareSegment(this._calculateStepLinePoints(e))},getSeriesPairCoord:function(e,t){for(var n,i=this._options.rotated,o=!t&&!i||t&&i,a=o?"vy":"vx",r=o?"vx":"vy",s=this._getNearestPointsByCoord(e,t),l=0;l<s.length;l++){var u,d=s[l];if(u=t?e!==d[1][a]?d[0][r]:d[1][r]:e===d[0][a]?d[0][r]:d[1][r],this._checkAxisVisibleAreaCoord(!t,u)){n=u;break}}return n}}),m.spline=(0,a.extend)({},b,{_calculateBezierPoints:function(e,t){var n=[],i=e,o=function(e,t,n){return e>t&&n>e||e<t&&n<e?e:n};return 1!==i.length?i.forEach((function(e,a){var r,s,l,u,d,c,h,f,p,g,m,_,y=i[a-1],x=i[a+1],b=.5;if(a&&a!==i.length-1){var w=e.x,C=e.y;if(d=y.x,c=x.x,h=y.y,f=x.y,!t&&(C<=y.y&&C<=x.y||C>=y.y&&C>=x.y)||t&&(w<=y.x&&w<=x.x||w>=y.x&&w>=x.x))t?(l=r=w,u=(C+x.y)/2,s=(C+y.y)/2):(u=s=C,l=(w+x.x)/2,r=(w+y.x)/2);else{if(p=f-h,g=d-c,m=h*c-d*f,t){if(!p)return void n.push(e,e,e);d-=_=-1*(g*C+m)/p-w,c-=_}else{if(!g)return void n.push(e,e,e);h-=_=-1*(p*w+m)/g-C,f-=_}l=(w+b*c)/1.5,u=(C+b*f)/1.5,r=(w+b*d)/1.5,s=(C+b*h)/1.5}t?(r=o(y.x,w,r),l=o(x.x,w,l)):(s=o(y.y,C,s),u=o(x.y,C,u));var S=v(e,r,s),k=v(e,l,u);n.push(S,e,k)}else n.push(e,e)})):n.push(i[0]),n},_prepareSegment:function(e,t){return b._prepareSegment(this._calculateBezierPoints(e,t))},_createMainElement:function(e,t){return this._renderer.path(e,"bezier").attr(t)},getSeriesPairCoord:function(e,t){for(var n=null,i=!t&&!this._options.rotated||t&&this._options.rotated,o=i?"vy":"vx",a=i?"y":"x",r=i?"vx":"vy",s=i?"x":"y",u=(t?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),d=this._getNearestPointsByCoord(e,t),c=function(t){var i=d[t];1===i.length?u[0]<=i[0][r]&&u[1]>=i[0][r]&&(n=i[0][r]):function(e,t,n,i,o){var a=t-e,r=3*n-3*t,s=3*i-6*n+3*t,u=o-3*i+3*n-t;return(0,l.solveCubicEquation)(u,s,r,a)}(e,i[0][o],i[1][a],i[2][a],i[3][o]).forEach((function(e){if(e>=0&&e<=1){var t=Math.pow(1-e,3)*i[0][r]+3*Math.pow(1-e,2)*e*i[1][s]+3*(1-e)*e*e*i[2][s]+e*e*e*i[3][r];u[0]<=t&&u[1]>=t&&(n=t)}}));if(null!==n)return"break"},h=0;h<d.length&&"break"!==c(h);h++);return n},_getNearestPoints:function(e,t,n){var i=n.indexOf(e);return[e,n[i+1],n[i+2],t]},_getBezierPoints:function(){return this._segments.length>0?this._segments.reduce((function(e,t){return e.concat(t.line)}),[]):[]}}),_.line=(0,a.extend)({},i.polar,x,{_sortPoints:function(e){return e},_prepareSegment:function(e,t,n){var i,o=[],a=this.getValueAxis().getCenter();if(n&&this._closeSegment(e),this.argumentAxisType===u||this.valueAxisType===u)return b._prepareSegment.call(this,e);for(i=1;i<e.length;i++)o=o.concat(this._getTangentPoints(e[i],e[i-1],a));return o.length||(o=e),{line:o}},_getRemainingAngle:function(e){var t=(0,s.normalizeAngle)(e);return e>=0?360-t:-t},_closeSegment:function(e){var t;t=this._segments.length?this._segments[0].line[0]:v(e[0],e[0].x,e[0].y,e[0].angle),(t=this._modifyReflectedPoint(t,e[e.length-1]))&&e.push(t)},_modifyReflectedPoint:function(e,t){if(t.angle!==e.angle){if((0,s.normalizeAngle)(d(t.angle))===(0,s.normalizeAngle)(d(e.angle)))e.angle=t.angle;else{var n=t.angle-e.angle;e.angle=t.angle+this._getRemainingAngle(n)}return e}},_getTangentPoints:function(e,t,n){var i,o=[],a=Math.round(t.angle-e.angle),r=(t.radius-e.radius)/a;if(0===a)o=[t,e];else if(a>0)for(i=a;i>=0;i--)o.push(y(e,t,n,r,i));else for(i=0;i>=a;i--)o.push(y(e,t,n,r,a-i));return o},getSeriesPairCoord:function(e,t){var n,i=this,o=i.getArgumentAxis(),a=t?"angle":"radius",r=e[a],d=o.getCenter(),m=function(e,t,n){var i,a,r=n.x,s=n.y;return c(h((i={x:r,y:s}).x-(a=d).x,2)+h(i.y-a.y,2))<=o.getRadius()&&f(e.x,t.x)<=r&&p(e.x,t.x)>=r&&f(e.y,t.y)<=s&&p(e.y,t.y)>=s},_=i.getNeighborPoints(r,a);if(1===_.length)n=_[0];else if(_.length>1){var v,x,b=_[0],w=_[1];if(i.argumentAxisType!==u&&i.valueAxisType!==u)t?(v=(b.radius-w.radius)/(b.angle-w.angle),x=r-w.angle):(v=(b.radius-w.radius)/(b.angle-w.angle),x=(r-w.radius)/v),n=y(w,b,d,v,x);else if(t){var C=(0,s.getCosAndSin)(-r),S=(w.y-b.y)/(w.x-b.x),k=b.y-b.x*S,D=C.sin/C.cos,I=(d.y-D*d.x-k)/(S-D),T=S*I+k;if(m(b,w,{x:I,y:T})){var E=g((0,l.trunc)((360+r)/90)%4);(0===E&&I>=d.x&&T<=d.y||1===E&&I<=d.x&&T<=d.y||2===E&&I<=d.x&&T>=d.y||3===E&&I>=d.x&&T>=d.y)&&(n={x:I,y:T})}}else{var A=(w.y-b.y)/(w.x-b.x),O=b.y-b.x*A,P=1+A*A,M=-2*d.x+2*A*O-2*A*d.y,R=M*M-4*P*(-h(r,2)+h(O-d.y,2)+h(d.x,2));if(R>=0){var B=(-M-c(R))/(2*P),V=(-M+c(R))/(2*P),F=A*B+O,L=A*V+O;n=m(b,w,{x:B,y:F})?{x:B,y:F}:m(b,w,{x:V,y:L})?{x:V,y:L}:void 0}}}return n},getNeighborPoints:function(e,t){var n=this.getPoints(),i=[];if(this.getOptions().closed){var o=(n=(0,a.extend)(!0,[],n))[n.length-1],r=v(n[0],n[0].x,n[0].y,n[0].angle),s=v(o,o.x,o.y,o.angle),l=this._modifyReflectedPoint(r,o),u=this._modifyReflectedPoint(s,n[0]);u&&n.unshift(u),l&&n.push(l)}for(var d=1;d<n.length&&(n[d-1][t]===e?i.push(n[d-1]):n[d][t]===e?i.push(n[d]):(n[d][t]>e&&n[d-1][t]<e||n[d-1][t]>e&&n[d][t]<e)&&(i.push(n[d-1]),i.push(n[d])),!(i.length>0));d++);return i}})},80610:function(e,t,n){t.pie=t.doughnut=t.donut=void 0;var i=n(20576),o=n(95479),a=n(21667),r=n(19157),s=n(13306),l=n(58821),u=a.chart,d=l.chart.bar,c=s.extend,h=o.each,f=i.noop,p=r.map,g=isFinite,m=Math.max,_=c({},d,{_setGroupsSettings:function(){u._setGroupsSettings.apply(this,arguments),this._labelsGroup.attr({"pointer-events":null})},_createErrorBarGroup:f,_drawPoint:function(e){var t=e.point,n=this._legendCallback;u._drawPoint.call(this,e),!t.isVisible()&&t.setInvisibility(),t.isSelected()&&n()},_getOldPoint:function(e,t,n){var i=(this._points||[])[n];return i&&(t[i.argument.valueOf()]=t[i.argument.valueOf()].filter((function(e){return e!==i}))),i},adjustLabels:function(e){return(this._points||[]).reduce((function(t,n){if(n._label.isVisible())return n.setLabelTrackerData(),t=n.applyWordWrap(e)||t,n.updateLabelCoord(e),t}),!1)},_applyElementsClipRect:f,getColor:f,areErrorBarsVisible:f,drawLabelsWOPoints:function(){var e=this;return"inside"!==e._options.label.position&&(e._labelsGroup.append(e._extGroups.labelsGroup),(e._points||[]).forEach((function(e){e.drawLabel()})),!0)},getPointsCount:function(){var e=this;return this._data.filter((function(t){return e._checkData(t)})).length},setMaxPointsCount:function(e){this._pointsCount=e},_getCreatingPointOptions:function(e,t){return this._getPointOptions(e,t)},_updateOptions:function(e){this.labelSpace=0,this.innerRadius="pie"===this.type?0:e.innerRadius},_checkData:function(e,t){var n=d._checkData.call(this,e,t,{value:this.getValueFields()[0]});return this._options.paintNullPoints?n:n&&null!==e.value},_createGroups:u._createGroups,_setMarkerGroupSettings:function(){this._markersGroup.attr({class:"dxc-markers"})},_getMainColor:function(e,t){var n=this.getPointsByArg(e.argument),i=t?n.indexOf(t):n.length;return this._options.mainSeriesColor(e.argument,i,this._pointsCount)},_getPointOptions:function(e){return this._parsePointOptions(this._preparePointOptions(),this._options.label,e)},_getRangeData:function(){return this._rangeData},_createPointStyles:function(e,t,n){var i=this,o=e.color||i._getMainColor(t,n);return{normal:i._parsePointStyle(e,o,o),hover:i._parsePointStyle(e.hoverStyle,o,o),selection:i._parsePointStyle(e.selectionStyle,o,o),legendStyles:{normal:i._createLegendState(e,o),hover:i._createLegendState(e.hoverStyle,o),selection:i._createLegendState(e.selectionStyle,o)}}},_getArrangeMinShownValue:function(e,t){var n=this._options.minSegmentSize,i=0,o=0;return t=t||e.length,h(e,(function(e,a){a.isVisible()&&(a.normalInitialValue<n*t/360?i+=n:o+=a.normalInitialValue)})),i<360?n*o/(360-i):0},_applyArrangeCorrection:function(e,t,n){var i,o=this._options,a="anticlockwise"!==o.segmentsDirection,s=g(o.startAngle)?(0,r.normalizeAngle)(o.startAngle):0,l=o.minSegmentSize,u=0,d=0;0===n&&(n=e.filter((function(e){return e.isVisible()})).length,d=1),h(a?e:e.concat([]).reverse(),(function(e,o){var a,r=o.isVisible()?d||o.normalInitialValue:0;l&&o.isVisible()&&r<t&&(a=t),i=r/n,o.correctValue(u,i,d+(a||0)),o.shiftedAngle=s,u+=a||r})),this._rangeData={val:{min:0,max:u}}},_removePoint:function(e){var t=this.getPointsByArg(e.argument);t.splice(t.indexOf(e),1),e.dispose()},arrangePoints:function(){for(var e,t=this,n=t._points||[],i=t._options.minSegmentSize,o=!0,a=0,r=n.length;a<r&&o;)o=n[a].value<=0,a++;var s=t._points=p(n,(function(e){return null===e.value||!o&&e.value<0?(t._removePoint(e),null):e})),l=s.reduce((function(e,t){return m(e,Math.abs(t.initialValue))}),0);s.forEach((function(e){e.normalInitialValue=e.initialValue/(0!==l?l:1)}));var u=s.reduce((function(e,t){return e+(t.isVisible()?t.normalInitialValue:0)}),0);i&&(e=this._getArrangeMinShownValue(s,u)),t._applyArrangeCorrection(s,e,u)},correctPosition:function(e,t){h(this._points,(function(t,n){n.correctPosition(e)})),this.setVisibleArea(t)},correctRadius:function(e){this._points.forEach((function(t){t.correctRadius(e)}))},correctLabelRadius:function(e){this._points.forEach((function(t){t.correctLabelRadius(e)}))},setVisibleArea:function(e){this._visibleArea={minX:e.left,maxX:e.width-e.right,minY:e.top,maxY:e.height-e.bottom}},_applyVisibleArea:f,_animate:function(e){var t,n=this,i=n._points,o=i&&i.length,a=function(){n._animateComplete()};t=e?function(e,t){e.animate(t===o-1?a:void 0,.7,(1-.7)*t/(o-1))}:function(e,t){e.animate(t===o-1?a:void 0)},i.forEach(t)},getVisiblePoints:function(){return p(this._points,(function(e){return e.isVisible()?e:null}))},getPointsByKeys:function(e,t){var n=this.getPointsByArg(e);return n[t]&&[n[t]]||[]}});t.pie=_;var v=_;t.doughnut=v;var y=_;t.donut=y},27428:function(e,t,n){t.default=void 0;var i,o=n(13306),a=(i=n(24894))&&i.__esModule?i:{default:i},r=o.extend,s=Math,l=s.floor,u=s.abs,d="right",c="top";function h(e){var t=e.initialValue,n=e._getValTranslator().getBusinessRange().invert,i="discrete"===e.series.valueAxisType,o=e.series.isFullStackedSeries();return!i&&(t>=0&&!n||t<0&&n)||i&&!n||o?c:"bottom"}var f=r({},a.default,{correctCoordinates:function(e){var t=this,n=l(e.offset-e.width/2);t._options.rotated?(t.height=e.width,t.yCorrection=n,t.xCorrection=null):(t.width=e.width,t.xCorrection=n,t.yCorrection=null)},_getGraphicBBox:function(e){var t={x:this.x,y:this.y,width:this.width,height:this.height};if(e){var n="top"===e;this._options.rotated?(t.x=n?t.x+t.width:t.x,t.width=0):(t.y=n?t.y:t.y+t.height,t.height=0)}return t},_getLabelConnector:function(e){return this._getGraphicBBox(e)},_getLabelPosition:function(){var e=h(this);return this._options.rotated&&(e=e===c?d:"left"),e},_getLabelCoords:function(e){var t=this;return 0===t.initialValue&&t.series.isFullStackedSeries()?this._options.rotated?t._getLabelCoordOfPosition(e,d):t._getLabelCoordOfPosition(e,c):"inside"===e.getLayoutOptions().position?t._getLabelCoordOfPosition(e,"inside"):a.default._getLabelCoords.call(this,e)},_drawLabel:function(){this._label.pointPosition="inside"!==this._label.getLayoutOptions().position&&h(this),a.default._drawLabel.call(this)},hideInsideLabel:function(e,t){var n=this._getGraphicBBox(),i=e.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(t.y<=n.y&&t.y+i.height>=n.y+n.height||t.x<=n.x&&t.x+i.width>=n.x+n.width)||t.y>n.y+n.height||t.y+i.height<n.y||t.x>n.x+n.width||t.x+i.width<n.x||(e.draw(!1),0))},_showForZeroValues:function(){return this._options.label.showForZeroValues||this.initialValue},_drawMarker:function(e,t,n){var i=this,o=i._getStyle(),a=i._options.cornerRadius,r=i._options.rotated,s=i.getMarkerCoords(),l=s.x,u=s.y,d=s.width,c=s.height;n&&(r?(d=0,l=i.defaultX):(c=0,u=i.defaultY)),i.graphic=e.rect(l,u,d,c).attr({rx:a,ry:a}).smartAttr(o).data({"chart-data-point":i}).append(t)},_getSettingsForTracker:function(){var e=this,t=e.y,n=e.height,i=e.x,o=e.width;return e._options.rotated?1===o&&(o=9,i-=4):1===n&&(n=9,t-=4),{x:i,y:t,width:o,height:n}},getGraphicSettings:function(){var e=this.graphic;return{x:e.attr("x"),y:e.attr("y"),height:e.attr("height"),width:e.attr("width")}},_getEdgeTooltipParams:function(){var e,t,n=this.value>=0,i=this._getValTranslator().getBusinessRange().invert,o=this.x,a=this.y,r=this.width,s=this.height;return this._options.rotated?(t=a+s/2,e=i?n?o:o+r:n?o+r:o):(e=o+r/2,t=i?n?a+s:a:n?a:a+s),{x:e,y:t,offset:0}},getTooltipParams:function(e){if("edge"===e)return this._getEdgeTooltipParams();var t=this.getCenterCoord();return t.offset=0,t},getCenterCoord:function(){var e=this.width,t=this.height;return{x:this.x+e/2,y:this.y+t/2}},_truncateCoord:function(e,t){return null===e?e:e<t[0]?t[0]:e>t[1]?t[1]:e},_getErrorBarBaseEdgeLength:function(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(e){a.default._translateErrorBars.call(this),(this._errorBarPos<e[0]||this._errorBarPos>e[1])&&(this._errorBarPos=void 0)},_translate:function(){var e=this,t=e._options.rotated,n=t?"x":"y",i=t?"y":"x",o=t?"width":"height",a=t?"height":"width",r=e._getArgTranslator(),s=e._getValTranslator(),l=e.series.getArgumentAxis().getVisibleArea(),d=e.series.getValueAxis().getVisibleArea(),c=r.translate(e.argument),h=s.translate(e.value,1),f=s.translate(e.minValue);e[i]=c=null===c?c:c+(e[i+"Correction"]||0),e["v"+n]=h,e["v"+i]=c+e[a]/2,h=e._truncateCoord(h,d),f=e._truncateCoord(f,d),e[o]=u(h-f),h=h<f?h:f,e._calculateVisibility(t?h:c,t?c:h,e.width,e.height),e[n]=null===h?h:h+(e[n+"Correction"]||0),e["min"+n.toUpperCase()]=null===f?f:f+(e[n+"Correction"]||0),e["default"+n.toUpperCase()]=s.translate("canvas_position_default"),e._translateErrorBars(l),e.inVisibleArea&&null!==e[i]&&(e[i]<l[0]&&(e[a]=e[a]-(l[0]-e[i]),e[i]=l[0]),e[i]+e[a]>l[1]&&(e[a]=l[1]-e[i]))},_updateMarker:function(e,t){this.graphic.smartAttr(r({},t,e?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var e=this,t=e.x,n=e.y,i=e.width,o=e.height,a=e.series.getArgumentAxis(),r=e._options.rotated;if(a.getAxisPosition){var s=a.getOptions(),l=Math.round(s.width/2),u=a.getAxisPosition();if(s.visible)if(r){var d=e.minX===e.defaultX&&e.minX===u-a.getAxisShift();t+=d?l:0,(i-=d?l:0)<0&&(i=0)}else(o-=e.minY===e.defaultY&&e.minY===u-a.getAxisShift()?l:0)<0&&(o=0)}return{x:t,y:n,width:i,height:o}},coordsIn:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}});t.default=f,e.exports=t.default,e.exports.default=t.default},54497:function(e,t,n){t.Point=R;var i=_(n(32410)),o=_(n(24894)),a=_(n(27428)),r=_(n(37440)),s=_(n(85912)),l=_(n(97319)),u=_(n(73206)),d=_(n(69297)),c=_(n(71678)),h=n(38234),f=n(19157),p=n(13306),g=n(35922),m=n(20576);function _(e){return e&&e.__esModule?e:{default:e}}var v={},y=p.extend,x=i.default.states,b="symbolPoint",w="polarSymbolPoint",C="barPoint",S="polarBarPoint",k="piePoint",D=x.selectedMark,I=x.hoverMark,T=x.normalMark,E=x.hover,A=x.normal,O=x.selection,P={chart:{scatter:b,line:b,spline:b,stepline:b,stackedline:b,fullstackedline:b,stackedspline:b,fullstackedspline:b,stackedsplinearea:b,fullstackedsplinearea:b,area:b,splinearea:b,steparea:b,stackedarea:b,fullstackedarea:b,rangearea:"rangeSymbolPoint",bar:C,stackedbar:C,fullstackedbar:C,rangebar:"rangeBarPoint",bubble:"bubblePoint",stock:"stockPoint",candlestick:"candlestickPoint"},pie:{pie:k,doughnut:k,donut:k},polar:{scatter:w,line:w,area:w,bar:S,stackedbar:S}};function M(e){return"none"===(0,f.normalizeEnum)(e)}function R(e,t,n){this.fullState=T,this.series=e,this.update(t,n),this._viewCounters={hover:0,selection:0},this._emptySettings={fill:null,stroke:null,dashStyle:null}}v.symbolPoint=o.default,v.barPoint=a.default,v.bubblePoint=r.default,v.piePoint=s.default,v.rangeSymbolPoint=l.default,v.rangeBarPoint=u.default,v.candlestickPoint=d.default,v.stockPoint=c.default,v.polarSymbolPoint=h.polarSymbolPoint,v.polarBarPoint=h.polarBarPoint,R.prototype={constructor:R,getColor:function(){return this.hasValue()||this._styles.usePointCustomOptions||this.series.customizePoint(this,this._dataItem),this._styles.normal.fill||this.series.getColor()},_getStyle:function(){return this._styles[this._currentStyle||"normal"]},update:function(e,t){this.updateOptions(t),this.updateData(e)},updateData:function(e){var t=this,n=t.argument!==e.argument;t.argument=t.initialArgument=t.originalArgument=e.argument,t.tag=e.tag,t.index=e.index,t._dataItem=e,t.data=e.data,t.lowError=e.lowError,t.highError=e.highError,t.aggregationInfo=e.aggregationInfo,t._updateData(e,n),!t.hasValue()&&t.setInvisibility(),t._fillStyle(),t._updateLabelData()},deleteMarker:function(){var e=this;e.graphic&&e.graphic.dispose(),e.graphic=null},draw:function(e,t,n,i){var o=this;return(o._needDeletingOnDraw||o.series.autoHidePointMarkers&&!o.isSelected())&&(o.deleteMarker(),o._needDeletingOnDraw=!1),o._needClearingOnDraw&&(o.clearMarker(),o._needClearingOnDraw=!1),o._hasGraphic()?o._updateMarker(n,this._getStyle(),t.markers):o.getMarkerVisibility()&&!o.series.autoHidePointMarkers&&o._drawMarker(e,t.markers,n,i),o._drawLabel(),o._drawErrorBar(e,t.errorBars,n),o},_getViewStyle:function(){var e=T,t=this.fullState,n=[A,E,O,O];return this._viewCounters.hover&&(e|=I),this._viewCounters.selection&&(e|=D),M(this.getOptions().selectionMode)&&(t&=~D),M(this.getOptions().hoverMode)&&(t&=~I),n[e|=t]},applyView:function(e){var t=this,n=t._getViewStyle();t._currentStyle=n,t.graphic||!t.getMarkerVisibility()||!t.series.autoHidePointMarkers||n!==O&&n!==E||t._drawMarker(t.series.getRenderer(),t.series.getMarkersGroup()),t.graphic&&(t.series.autoHidePointMarkers&&n!==O&&n!==E?t.deleteMarker():("normal"===n?t.clearMarker():t.graphic.toForeground(),t._updateMarker(!0,t._styles[n],void 0,e)))},setView:function(e){this._viewCounters[e]++,this.applyView()},resetView:function(e){var t=this._viewCounters;--t[e],t[e]<0&&(t[e]=0),this.applyView()},releaseHoverState:function(){var e=this;e.graphic&&!e.isSelected()&&e.graphic.toBackground()},select:function(){this.series.selectPoint(this)},clearSelection:function(){this.series.deselectPoint(this)},hover:function(){this.series.hoverPoint(this)},clearHover:function(){this.series.clearPointHover()},showTooltip:function(){this.series.showPointTooltip(this)},hideTooltip:function(){this.series.hidePointTooltip(this)},_checkLabelsChanging:function(e,t){var n=~t.indexOf("range"),i=~e.indexOf("range");return i&&!n||!i&&n},updateOptions:function(e){if(e){var t=this,n=t._options,i=e.widgetType,o=n&&n.type,a=e.type,r=P[i][a];o!==a?(t._needDeletingOnDraw=!0,t._needClearingOnDraw=!1,o&&(t._checkLabelsChanging(o,a)&&t.deleteLabel(),t._resetType(v[P[o]])),t._setType(v[r])):(t._needDeletingOnDraw=t._checkSymbol(n,e),t._needClearingOnDraw=t._checkCustomize(n,e)),t._options=e,t._fillStyle(),t._updateLabelOptions(r)}},translate:function(){this.hasValue()&&(this._translate(),this.translated=!0)},_checkCustomize:function(e,t){return e.styles.usePointCustomOptions&&!t.styles.usePointCustomOptions},_getCustomLabelVisibility:function(){return this._styles.useLabelCustomOptions?!!this._options.label.visible:null},getBoundingRect:function(){return this._getGraphicBBox()},_resetType:function(e){for(var t in e)delete this[t]},_setType:function(e){for(var t in e)this[t]=e[t]},isInVisibleArea:function(){return this.inVisibleArea},isSelected:function(){return!!(this.fullState&D)},isHovered:function(){return!!(this.fullState&I)},getOptions:function(){return this._options},animate:function(e,t,n){this.graphic?this.graphic.animate(t,{partitionDuration:n},e):e&&e()},getCoords:function(e){var t=this;return e?t._options.rotated?{x:t.minX-(t.x-t.minX?0:1),y:t.y}:{x:t.x,y:t.minY+(t.y-t.minY?0:1)}:{x:t.x,y:t.y}},getDefaultCoords:function(){var e=this;return e._options.rotated?{x:e.defaultX,y:e.y}:{x:e.x,y:e.defaultY}},setDefaultCoords:function(){var e=this.getDefaultCoords();this.x=e.x,this.y=e.y},_getVisibleArea:function(){return this.series.getVisibleArea()},_getArgTranslator:function(){return this.series.getArgumentAxis().getTranslator()},_getValTranslator:function(){return this.series.getValueAxis().getTranslator()},_calculateVisibility:function(e,t,n,i){var o=this,a=o._getVisibleArea(),r=o._options.rotated;a.minX>e+(n||0)||a.maxX<e||a.minY>t+(i||0)||a.maxY<t||r&&(0,g.isDefined)(n)&&0!==n&&(a.minX===e+n||a.maxX===e)||!r&&(0,g.isDefined)(i)&&0!==i&&(a.minY===t+i||a.maxY===t)?o.inVisibleArea=!1:o.inVisibleArea=!0},isArgumentCorrect:function(){return this.series._argumentChecker(this.argument)},isValueCorrect:function(){var e=this.series._valueChecker;return e(this.getMinValue())&&e(this.getMaxValue())},hasValue:function(){return null!==this.value&&null!==this.minValue&&this.isArgumentCorrect()&&this.isValueCorrect()},hasCoords:m.noop,correctPosition:m.noop,correctRadius:m.noop,correctLabelRadius:m.noop,getCrosshairData:m.noop,getPointRadius:m.noop,_populatePointShape:m.noop,_checkSymbol:m.noop,getMarkerCoords:m.noop,hide:m.noop,show:m.noop,hideMarker:m.noop,setInvisibility:m.noop,clearVisibility:m.noop,isVisible:m.noop,resetCorrection:m.noop,correctValue:m.noop,resetValue:m.noop,setPercentValue:m.noop,correctCoordinates:m.noop,coordsIn:m.noop,getTooltipParams:m.noop,applyWordWrap:m.noop,setLabelTrackerData:m.noop,updateLabelCoord:m.noop,drawLabel:m.noop,correctLabelPosition:m.noop,getMinValue:m.noop,getMaxValue:m.noop,_drawErrorBar:m.noop,getMarkerVisibility:m.noop,dispose:function(){var e=this;e.deleteMarker(),e.deleteLabel(),e._errorBar&&this._errorBar.dispose(),e._options=e._styles=e.series=e._errorBar=null},getTooltipFormatObject:function(e,t){var n=this,i=n._getFormatObject(e),o=[],a=[];t&&(t.forEach((function(t){if(t.isVisible()){var n=t._getFormatObject(e);a.push(n),o.push(n.seriesName+": "+n.valueText)}})),y(i,{points:a,valueText:o.join("\n"),stackName:n.series.getStackName()||null}));var r=n.aggregationInfo;if(r){var s=n.series.getArgumentAxis().formatRange(r.intervalStart,r.intervalEnd,r.aggregationInterval);s&&(i.valueText+="\n".concat(s))}return i},setHole:function(e,t){var n=this,i=isFinite(n.minValue)?n.minValue:0;(0,g.isDefined)(e)&&("left"===t?(n.leftHole=n.value-e,n.minLeftHole=i-e):(n.rightHole=n.value-e,n.minRightHole=i-e))},resetHoles:function(){this.leftHole=null,this.minLeftHole=null,this.rightHole=null,this.minRightHole=null},getLabel:function(){return this._label},getLabels:function(){return[this._label]},getCenterCoord:function(){return{x:this.x,y:this.y}}}},37440:function(e,t,n){t.default=void 0;var i,o=n(13306),a=(i=n(24894))&&i.__esModule?i:{default:i},r=o.extend,s=r({},a.default,{correctCoordinates:function(e){this.bubbleSize=e/2},_drawMarker:function(e,t,n){var i=this,o=r({translateX:i.x,translateY:i.y},i._getStyle());i.graphic=e.circle(0,0,n?0:i.bubbleSize).smartAttr(o).data({"chart-data-point":i}).append(t)},getTooltipParams:function(e){var t=this,n=t.graphic;if(n){var i=n.getBBox().height;return{x:t.x,y:t.y,offset:i<20||"edge"===e?i/2:0}}},_getLabelFormatObject:function(){var e=a.default._getLabelFormatObject.call(this);return e.size=this.initialSize,e},_updateData:function(e){a.default._updateData.call(this,e),this.size=this.initialSize=e.size},_getGraphicBBox:function(){var e=this;return e._getSymbolBBox(e.x,e.y,e.bubbleSize)},_updateMarker:function(e,t){var n=this;e||(t=r({r:n.bubbleSize,translateX:n.x,translateY:n.y},t)),n.graphic.smartAttr(t)},_getFormatObject:function(e){var t=a.default._getFormatObject.call(this,e);return t.sizeText=e.formatValue(this.initialSize),t},_storeTrackerR:function(){return this.bubbleSize},_getLabelCoords:function(e){return"inside"===e.getLayoutOptions().position?this._getLabelCoordOfPosition(e,"inside"):a.default._getLabelCoords.call(this,e)}});t.default=s,e.exports=t.default,e.exports.default=t.default},69297:function(e,t,n){t.default=void 0;var i=n(13306),o=r(n(24894)),a=r(n(27428));function r(e){return e&&e.__esModule?e:{default:e}}var s=Math,l=s.abs,u=s.min,d=s.max,c=s.round,h=(0,i.extend)({},a.default,{_getContinuousPoints:function(e,t){var n=this,i=n.x,o=n._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]},a=n.width,r=n.highY,s=l(r-e)<l(r-t)?e:t,u=s===t?e:t;return u===s?[].concat(o(i,n.highY)).concat(o(i,n.lowY)).concat(o(i,n.closeY)).concat(o(i-a/2,n.closeY)).concat(o(i+a/2,n.closeY)).concat(o(i,n.closeY)):[].concat(o(i,n.highY)).concat(o(i,s)).concat(o(i+a/2,s)).concat(o(i+a/2,u)).concat(o(i,u)).concat(o(i,n.lowY)).concat(o(i,u)).concat(o(i-a/2,u)).concat(o(i-a/2,s)).concat(o(i,s))},_getCrockPoints:function(e){var t=this,n=t.x,i=t._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]};return[].concat(i(n,t.highY)).concat(i(n,t.lowY)).concat(i(n,e)).concat(i(n-t.width/2,e)).concat(i(n+t.width/2,e)).concat(i(n,e))},_getPoints:function(){var e=this,t=e.closeY,n=e.openY;return null!==t&&null!==n?e._getContinuousPoints(n,t):n===t?[e.x,e.highY,e.x,e.lowY]:e._getCrockPoints(null!==n?n:t)},getColor:function(){var e=this;return e._isReduction?e._options.reduction.color:e._styles.normal.stroke||e.series.getColor()},_drawMarkerInGroup:function(e,t,n){var i=this;i.graphic=n.path(i._getPoints(),"area").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":i}).sharp().append(e)},_fillStyle:function(){var e=this,t=e._options.styles;e._isReduction&&e._isPositive?e._styles=t.reductionPositive:e._isReduction?e._styles=t.reduction:e._isPositive?e._styles=t.positive:e._styles=t},_getMinTrackerWidth:function(){return 2+2*this._styles.normal["stroke-width"]},correctCoordinates:function(e){var t=this._getMinTrackerWidth(),n=e.width;n=n<t?t:n>10?10:n,this.width=n+n%2,this.xCorrection=e.offset},_getMarkerGroup:function(e){var t=this;return t._isReduction&&t._isPositive?e.reductionPositiveMarkersGroup:t._isReduction?e.reductionMarkersGroup:t._isPositive?e.defaultPositiveMarkersGroup:e.defaultMarkersGroup},_drawMarker:function(e,t){this._drawMarkerInGroup(this._getMarkerGroup(t),this._getStyle(),e)},_getSettingsForTracker:function(){var e,t,n,i,o=this,a=o.highY,r=o.lowY,s=o._options.rotated;return a===r&&(a=s?a+2:a-2,r=s?r-2:r+2),s?(e=u(r,a),t=o.x-o.width/2,n=l(r-a),i=o.width):(e=o.x-o.width/2,t=u(r,a),n=o.width,i=l(r-a)),{x:e,y:t,width:n,height:i}},_getGraphicBBox:function(e){var t=this,n=t._options.rotated,i=t.x,o=t.width,a=t.lowY,r=t.highY;if(e){var s=t.series.getValueAxis().getVisibleArea();r=t._truncateCoord(r,s),a=t._truncateCoord(a,s)}var l={x:n?a:i-c(o/2),y:n?i-c(o/2):r,width:n?r-a:o,height:n?o:a-r};if(e){var u="top"===e;this._options.rotated?(l.x=u?l.x+l.width:l.x,l.width=0):(l.y=u?l.y:l.y+l.height,l.height=0)}return l},getTooltipParams:function(e){var t=this;if(t.graphic){var n=u(t.lowY,t.highY),i=d(t.lowY,t.highY),o=t._getVisibleArea(),a=t._options.rotated,r=a?o.minX:o.minY,s=a?o.maxX:o.maxY,l=d(r,n),c=u(s,i),h=t.getCenterCoord();return"edge"===e&&(h[a?"x":"y"]=a?c:l),h.offset=0,h}},getCenterCoord:function(){if(this.graphic){var e,t,n=this,i=u(n.lowY,n.highY),o=d(n.lowY,n.highY),a=n._getVisibleArea(),r=n._options.rotated,s=r?a.minX:a.minY,l=r?a.maxX:a.maxY,c=d(s,i),h=c+(u(l,o)-c)/2;return r?(t=n.x,e=h):(e=n.x,t=h),{x:e,y:t}}},hasValue:function(){return null!==this.highValue&&null!==this.lowValue},hasCoords:function(){return null!==this.x&&null!==this.lowY&&null!==this.highY},_translate:function(){var e=this,t=e._options.rotated,n=e._getValTranslator(),i=e._getArgTranslator().translate(e.argument);e.vx=e.vy=e.x=null===i?i:i+(e.xCorrection||0),e.openY=null!==e.openValue?n.translate(e.openValue):null,e.highY=n.translate(e.highValue),e.lowY=n.translate(e.lowValue),e.closeY=null!==e.closeValue?n.translate(e.closeValue):null;var o=u(e.lowY,e.highY)+l(e.lowY-e.highY)/2;e._calculateVisibility(t?o:e.x,t?e.x:o)},getCrosshairData:function(e,t){var n,i,o=this,a=o._options.rotated,r=a?e:t,s=o.argument,u="low";return l(o.lowY-r)<l(o.closeY-r)?n=o.lowY:(n=o.closeY,u="close"),l(n-r)>=l(o.openY-r)&&(n=o.openY,u="open"),l(n-r)>=l(o.highY-r)&&(n=o.highY,u="high"),(i=a?{y:o.vy,x:n,xValue:o[u+"Value"],yValue:s}:{x:o.vx,y:n,xValue:s,yValue:o[u+"Value"]}).axis=o.series.axis,i},_updateData:function(e){var t=this,n=t._label,i=this._options.reduction.color;t.value=t.initialValue=e.reductionValue,t.originalValue=e.value,t.lowValue=t.originalLowValue=e.lowValue,t.highValue=t.originalHighValue=e.highValue,t.openValue=t.originalOpenValue=e.openValue,t.closeValue=t.originalCloseValue=e.closeValue,t._isPositive=e.openValue<e.closeValue,t._isReduction=e.isReduction,t._isReduction&&n.setColor(i)},_updateMarker:function(e,t,n){var i=this,o=i.graphic;o.attr({points:i._getPoints()}).smartAttr(t).sharp(),n&&o.append(i._getMarkerGroup(n))},_getLabelFormatObject:function(){var e=this;return{openValue:e.openValue,highValue:e.highValue,lowValue:e.lowValue,closeValue:e.closeValue,reductionValue:e.initialValue,argument:e.initialArgument,value:e.initialValue,seriesName:e.series.name,originalOpenValue:e.originalOpenValue,originalCloseValue:e.originalCloseValue,originalLowValue:e.originalLowValue,originalHighValue:e.originalHighValue,originalArgument:e.originalArgument,point:e}},_getFormatObject:function(e){var t=this,n=e.formatValue(t.highValue),a=e.formatValue(t.openValue),r=e.formatValue(t.closeValue),s=e.formatValue(t.lowValue),l=o.default._getFormatObject.call(t,e);return(0,i.extend)({},l,{valueText:"h: "+n+(""!==a?" o: "+a:"")+(""!==r?" c: "+r:"")+" l: "+s,highValueText:n,openValueText:a,closeValueText:r,lowValueText:s})},getMaxValue:function(){return this.highValue},getMinValue:function(){return this.lowValue}});t.default=h,e.exports=t.default,e.exports.default=t.default},28318:function(e,t,n){t.Label=w;var i,o=(i=n(30343))&&i.__esModule?i:{default:i},a=n(19157),r=n(95479),s=n(13306),l=o.default.format,u=Math,d=u.round,c=u.floor,h=u.abs;function f(e,t){var n,i=1/0;return(0,r.each)(t,(function(t,o){var a=e[0]-o[0],r=e[1]-o[1],s=a*a+r*r;s<i&&(i=s,n=o)})),[c(n[0]),c(n[1])]}function p(e,t,n){return(t-e[0+n])/(e[2+n]-e[0+n])*(e[3-n]-e[1-n])+e[1-n]}var g={isLabelInside:function(e,t){var n=e.x+e.width/2,i=e.y+e.height/2;return t.x<=n&&n<=t.x+t.width&&t.y<=i&&i<=t.y+t.height},prepareLabelPoints:function(e,t,n,i,o){var a=t.x,r=a+t.width/2,s=a+t.width-1,l=t.y,u=l+t.height/2,d=l+t.height-1,c=h(i)%90==0;return o[0]>a&&o[0]<s?c?[[o[0],h(o[1]-l)<h(o[1]-d)?l:d]]:[[o[0],p([a,l,s,d],o[0],0)]]:o[1]>l&&o[1]<d?c?[[h(o[0]-a)<h(o[0]-s)?a:s,o[1]]]:[[p([a,l,s,d],o[1],1),o[1]]]:c?[[a,l],[n?a:r,n?u:l],[s,l],[a,d],[n?s:r,n?u:d],[s,d]]:[[r,u]]},isHorizontal:function(e,t){return e.x>t.x+t.width||e.x+e.width<t.x},getFigureCenter:function(e){return[c(e.x+e.width/2),c(e.y+e.height/2)]},findFigurePoint:function(e,t){var n=g.getFigureCenter(e);return f(t,[[e.x,n[1]],[n[0],e.y+e.height],[e.x+e.width,n[1]],[n[0],e.y]])},adjustPoints:function(e){var t=h(e[1]-e[3])<=1;return h(e[0]-e[2])<=1&&(e[0]=e[2]),t&&(e[1]=e[3]),e}},m={isLabelInside:function(){return!1},prepareLabelPoints:g.prepareLabelPoints,isHorizontal:function(e,t){return e.x>t.x+t.r||e.x+e.width<t.x-t.r},getFigureCenter:function(e){return[e.x,e.y]},findFigurePoint:function(e,t){var n=Math.atan2(e.y-t[1],t[0]-e.x);return[d(e.x+e.r*Math.cos(n)),d(e.y-e.r*Math.sin(n))]},adjustPoints:g.adjustPoints},_={isLabelInside:function(e,t,n){return!n},prepareLabelPoints:function(e,t,n,i){var o=e.x,r=o+e.width,s=o+d(e.width/2),l=e.y,u=l+e.height,c=l+d(e.height/2),h=[[[o,l],[r,l]],[[r,l],[r,u]],[[r,u],[o,u]],[[o,u],[o,l]]],f=(0,a.getCosAndSin)(i);return 0===i?n?[[o,c],[r,c]]:[[s,l],[s,u]]:h.map((function(e){return e.map((function(e){return[d((e[0]-s)*f.cos+(e[1]-c)*f.sin+s),d(-(e[0]-s)*f.sin+(e[1]-c)*f.cos+c)]}))})).reduce((function(e,t){var i=t[0][0],o=t[0][1],a=t[1][0],r=t[1][1];return n?(o>=c&&c>=r||o<=c&&c<=r)&&e.push([(c-o)*(a-i)/(r-o)+i,c]):(i>=s&&s>=a||i<=s&&s<=a)&&e.push([s,(s-i)*(r-o)/(a-i)+o]),e}),[])},isHorizontal:function(e,t){return e.x>t.x||t.x>e.x+e.width},getFigureCenter:m.getFigureCenter,findFigurePoint:function(e,t,n){if(!n)return[e.x,e.y];var i=t[0],o=d(e.x+(e.y-t[1])/Math.tan((0,a.degreesToRadians)(e.angle))),r=[e.x,e.y,o,t[1]];return e.x<=o&&o<=i||i<=o&&o<=e.x||(h(e.x-i)<12?r=[e.x,e.y]:e.x<=i?r[2]=e.x+12:r[2]=e.x-12),r},adjustPoints:function(e){return e}};function v(e){return void 0!==e.angle&&_||void 0!==e.r&&m||g}function y(e,t){e[t]&&e[t].dispose(),e[t]=null}function x(e){return e&&(e.fill&&"none"!==e.fill||e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke)}function b(e){return e&&e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke}function w(e){this._renderer=e.renderer,this._container=e.labelsGroup,this._point=e.point,this._strategy=e.strategy,this._rowCount=1}w.prototype={constructor:w,setColor:function(e){this._color=e},setOptions:function(e){this._options=e},setData:function(e){this._data=e},setDataField:function(e,t){this._data=this._data||{},this._data[e]=t},getData:function(){return this._data},setFigureToDrawConnector:function(e){this._figure=e},dispose:function(){var e=this;y(e,"_group"),e._data=e._options=e._textContent=e._visible=e._insideGroup=e._text=e._background=e._connector=e._figure=null},_setVisibility:function(e,t){this._group&&this._group.attr({visibility:e}),this._visible=t},isVisible:function(){return this._visible},hide:function(e){this._holdVisibility=!!e,this._hide()},_hide:function(){this._setVisibility("hidden",!1)},show:function(e){var t=!this._drawn;this._point.hasValue()&&(this._holdVisibility=!!e,this._show(),t&&this._point.correctLabelPosition(this))},_show:function(){var e=this,t=e._renderer,n=e._container,i=e._options||{},o=e._textContent=function(e,t){var n=t.format;return e.valueText=l(e.value,n),e.argumentText=l(e.argument,t.argumentFormat),void 0!==e.percent&&(e.percentText=l(e.percent,{type:"percent",precision:n&&n.percentPrecision})),void 0!==e.total&&(e.totalText=l(e.total,n)),void 0!==e.openValue&&(e.openValueText=l(e.openValue,n)),void 0!==e.closeValue&&(e.closeValueText=l(e.closeValue,n)),void 0!==e.lowValue&&(e.lowValueText=l(e.lowValue,n)),void 0!==e.highValue&&(e.highValueText=l(e.highValue,n)),void 0!==e.reductionValue&&(e.reductionValueText=l(e.reductionValue,n)),t.customizeText?t.customizeText.call(e,e):e.valueText}(e._data,e._options)||null;o?(e._group||(e._group=t.g().append(n),e._insideGroup=t.g().append(e._group),e._text=t.text("",0,0).append(e._insideGroup)),e._text.css(i.attributes?(0,a.patchFontOptions)(i.attributes.font):{}),x(i.background)?(e._background=e._background||t.rect().append(e._insideGroup).toBackground(),e._background.attr(i.background),e._color&&e._background.attr({fill:e._color})):y(e,"_background"),b(i.connector)?(e._connector=e._connector||t.path([],"line").sharp().append(e._group).toBackground(),e._connector.attr(i.connector),e._color&&e._connector.attr({stroke:e._color})):y(e,"_connector"),e._text.attr({text:o,align:i.textAlignment,class:i.cssClass}),e._updateBackground(e._text.getBBox()),e._setVisibility("visible",!0),e._drawn=!0):e._hide()},_getLabelVisibility:function(e){return this._holdVisibility?this.isVisible():e},draw:function(e){return this._getLabelVisibility(e)?(this._show(),this._point&&this._point.correctLabelPosition(this)):(this._drawn=!1,this._hide()),this},_updateBackground:function(e){var t=this;t._background&&(e.x-=8,e.y-=4,e.width+=16,e.height+=8,t._background.attr(e)),t._bBoxWithoutRotation=(0,s.extend)({},e);var n=t._options.rotationAngle||0;t._insideGroup.rotate(n,e.x+e.width/2,e.y+e.height/2),e=(0,a.rotateBBox)(e,[e.x+e.width/2,e.y+e.height/2],-n),t._bBox=e},getFigureCenter:function(){var e=this._figure;return(this._strategy||v(e)).getFigureCenter(e)},_getConnectorPoints:function(){var e,t,n=this,i=n._figure,o=n._options,a=n._strategy||v(i),r=n._shiftBBox(n._bBoxWithoutRotation),s=n.getBoundingRect(),l=[];if(!a.isLabelInside(r,i,"inside"!==o.position)){t=a.isHorizontal(r,i);var u=n.getFigureCenter();e=f(u,l=a.prepareLabelPoints(r,s,t,-o.rotationAngle||0,u)),l=(l=a.findFigurePoint(i,e,t)).concat(e)}return a.adjustPoints(l)},fit:function(e){var t=this._background?16:0,n=!1;if(this._text){var i=this._text.setMaxSize(e-t,void 0,this._options),o=i.rowCount;0===o&&(o=1),o!==this._rowCount&&(n=!0,this._rowCount=o),i.textIsEmpty&&y(this,"_background")}return this._updateBackground(this._text.getBBox()),n},resetEllipsis:function(){this._text&&this._text.restoreText(),this._updateBackground(this._text.getBBox())},setTrackerData:function(e){this._text.data({"chart-data-point":e}),this._background&&this._background.data({"chart-data-point":e})},hideInsideLabel:function(e){return this._point.hideInsideLabel(this,e)},getPoint:function(){return this._point},shift:function(e,t){var n=this;return n._textContent&&(n._insideGroup.attr({translateX:n._x=d(e-n._bBox.x),translateY:n._y=d(t-n._bBox.y)}),n._connector&&n._connector.attr({points:n._getConnectorPoints()})),n},getBoundingRect:function(){return this._shiftBBox(this._bBox)},_shiftBBox:function(e){return this._textContent?{x:e.x+this._x,y:e.y+this._y,width:e.width,height:e.height}:{}},getLayoutOptions:function(){var e=this._options;return{alignment:e.alignment,background:x(e.background),horizontalOffset:e.horizontalOffset,verticalOffset:e.verticalOffset,radialOffset:e.radialOffset,position:e.position,connectorOffset:(b(e.connector)?12:0)+(x(e.background)?8:0)}}}},85912:function(e,t,n){t.default=void 0;var i=n(13306),o=l(n(24894)),a=n(19157),r=n(35922),s=l(n(32410));function l(e){return e&&e.__esModule?e:{default:e}}var u=i.extend,d=Math.round,c=Math.sqrt,h=Math.acos,f=180/Math.PI,p=Math.abs,g=s.default.radialLabelIndent,m=u({},o.default,{_updateData:function(e,t){var n=this;o.default._updateData.call(this,e),!t&&(0,r.isDefined)(n._visible)||(n._visible=!0),n.minValue=n.initialMinValue=n.originalMinValue=(0,r.isDefined)(e.minValue)?e.minValue:0},animate:function(e,t,n){var i=this;i.graphic.animate({x:i.centerX,y:i.centerY,outerRadius:i.radiusOuter,innerRadius:i.radiusInner,startAngle:i.toAngle,endAngle:i.fromAngle},{delay:n,partitionDuration:t},e)},correctPosition:function(e){var t=this;t.correctRadius(e),t.correctLabelRadius(e.radiusOuter+g),t.centerX=e.centerX,t.centerY=e.centerY},correctRadius:function(e){this.radiusInner=e.radiusInner,this.radiusOuter=e.radiusOuter},correctLabelRadius:function(e){this.radiusLabels=e},correctValue:function(e,t,n){var i=this;i.value=(n||i.normalInitialValue)+e,i.minValue=e,i.percent=t,i._label.setDataField("percent",t)},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var e=this,t=e._label.getBoundingRect(),n=e._getLabelCoords(e._label),i=e._getVisibleArea();return e._isLabelDrawingWithoutPoints?e._checkLabelPosition(n,t,i):e._getLabelExtraCoord(n,e._checkVerticalLabelPosition(n,t,i),t)},_getLabelPosition:function(e){return e.position},getAnnotationCoords:function(e){return this._getElementCoords("edge"!==e?"inside":"outside",this.radiusOuter,0)},_getElementCoords:function(e,t,n){var i,o,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:0,y:0,width:0,height:0},s=this,l=(0,a.getCosAndSin)(s.middleAngle),u=s.radiusInner,c=s.radiusOuter,h="columns"===e;return"inside"===e?(i=u+(c-u)/2+n,o=s.centerX+i*l.cos-r.width/2):(i=t+n,o=l.cos>.1||h&&l.cos>=0?s.centerX+i*l.cos:l.cos<-.1||h&&l.cos<0?s.centerX+i*l.cos-r.width:s.centerX+i*l.cos-r.width/2),{x:o,y:d(s.centerY-i*l.sin-r.height/2)}},_getLabelCoords:function(e){var t=this,n=e.getBoundingRect(),i=e.getLayoutOptions(),o=t._getLabelPosition(i);return t._getElementCoords(o,t.radiusLabels,i.radialOffset,n)},_correctLabelCoord:function(e,t){var n=this,i=n._label,o=i.getBoundingRect().width,r=i.getLayoutOptions(),s=n._getVisibleArea(),l=s.maxX-o,u=s.minX,d=(0,a.normalizeAngle)(n.middleAngle),c=n.centerX,h=r.connectorOffset,f=e.x;return"columns"===r.position?(f=d<=90||d>=270?l:u,e.x=f):"inside"!==r.position&&t&&(d<=90||d>=270?f-h<c&&(f=c+h):f+o+h>c&&(f=c-o-h),e.x=f),e},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(e){var t=this,n=t._label.getBoundingRect(),i=t._correctLabelCoord(n,e);i=t._checkHorizontalLabelPosition(i,n,t._getVisibleArea()),t._label.shift(d(i.x),d(n.y))},_checkVerticalLabelPosition:function(e,t,n){var i=e.x,o=e.y;return e.y+t.height>n.maxY?o=n.maxY-t.height:e.y<n.minY&&(o=n.minY),{x:i,y:o}},_getLabelExtraCoord:function(e,t,n){return e.y!==t.y?(0,a.getVerticallyShiftedAngularCoords)({x:e.x,y:e.y,width:n.width,height:n.height},t.y-e.y,{x:this.centerX,y:this.centerY}):e},_checkHorizontalLabelPosition:function(e,t,n){var i=e.x,o=e.y;return e.x+t.width>n.maxX?i=n.maxX-t.width:e.x<n.minX&&(i=n.minX),{x:i,y:o}},applyWordWrap:function(e){var t=this,n=t._label,i=n.getBoundingRect(),o=t._getVisibleArea(),a=n.getLayoutOptions().position,r=i.width,s=!1;return"columns"===a&&t.series.index>0?r=o.maxX-t.centerX-t.radiusLabels:"inside"===a?r>o.maxX-o.minX&&(r=o.maxX-o.minX):e&&i.x<t.centerX&&i.width+i.x>t.centerX?r=Math.floor((o.maxX-o.minX)/2):i.x+r>o.maxX?r=o.maxX-i.x:i.x<o.minX&&(r=i.x+r-o.minX),r<i.width&&(s=n.fit(r)),s},setLabelTrackerData:function(){this._label.setTrackerData(this)},_checkLabelPosition:function(e,t,n){return e=this._checkHorizontalLabelPosition(e,t,n),this._checkVerticalLabelPosition(e,t,n)},_getLabelConnector:function(){var e=this,t=e.radiusOuter,n=e._options.styles.normal,i=n["stroke-width"]/2,o=e.series.getOptions().containerBackgroundColor===n.stroke?d(i):d(-i),r=(0,a.getCosAndSin)(d(e.middleAngle));return{x:d(e.centerX+(t-o)*r.cos),y:d(e.centerY-(t-o)*r.sin),angle:e.middleAngle}},_drawMarker:function(e,t,n,i){var o=this,a=o.radiusOuter,r=o.radiusInner,s=o.fromAngle,l=o.toAngle;n&&(r=a=0,i||(s=l=o.shiftedAngle)),o.graphic=e.arc(o.centerX,o.centerY,r,a,l,s).attr({"stroke-linejoin":"round"}).smartAttr(o._getStyle()).data({"chart-data-point":o}).sharp().append(t)},getTooltipParams:function(){var e=this,t=(0,a.getCosAndSin)(e.middleAngle),n=e.radiusInner,i=e.radiusOuter;return{x:e.centerX+(n+(i-n)/2)*t.cos,y:e.centerY-(n+(i-n)/2)*t.sin,offset:0}},_translate:function(){var e=this,t=e.shiftedAngle||0,n=e.value,i=e.minValue,o=e._getValTranslator();e.fromAngle=o.translate(i)+t,e.toAngle=o.translate(n)+t,e.middleAngle=o.translate((n-i)/2+i)+t,e.isVisible()||(e.middleAngle=e.toAngle=e.fromAngle=e.fromAngle||t)},getMarkerVisibility:function(){return!0},_updateMarker:function(e,t,n,i){var o=this;e||(t=u({x:o.centerX,y:o.centerY,outerRadius:o.radiusOuter,innerRadius:o.radiusInner,startAngle:o.toAngle,endAngle:o.fromAngle},t)),o.graphic.smartAttr(t).sharp(),i&&i()},getLegendStyles:function(){return this._styles.legendStyles},isInVisibleArea:function(){return!0},hide:function(){var e=this;e._visible&&(e._visible=!1,e.hideTooltip(),e._options.visibilityChanged())},show:function(){var e=this;e._visible||(e._visible=!0,e._options.visibilityChanged())},setInvisibility:function(){this._label.draw(!1)},isVisible:function(){return this._visible},_getFormatObject:function(e){var t=o.default._getFormatObject.call(this,e),n=this.percent;return t.percent=n,t.percentText=e.formatValue(n,"percent"),t},getColor:function(){return this._styles.normal.fill},coordsIn:function(e,t){var n,i=this,o=e-i.centerX,a=t-i.centerY,r=c(o*o+a*a),s=i.fromAngle%360,l=i.toAngle%360;return!(r<i.radiusInner||r>i.radiusOuter||0===r)&&((n=h(o/r)*f*(a>0?-1:1))<0&&(n+=360),s===l&&p(i.toAngle-i.fromAngle)>1e-4||(s>=l?n<=s&&n>=l:!(n>=s&&n<=l)))}});t.default=m,e.exports=t.default,e.exports.default=t.default},38234:function(e,t,n){t.polarSymbolPoint=t.polarBarPoint=void 0;var i=n(13306),o=d(n(24894)),a=d(n(27428)),r=d(n(85912)),s=n(35922),l=n(19157),u=d(n(32410));function d(e){return e&&e.__esModule?e:{default:e}}var c=i.extend,h=Math,f=h.max,p=u.default.radialLabelIndent,g="canvas_position_start",m="canvas_position_end",_="canvas_position_default",v=c({},o.default,{_getLabelCoords:r.default._getLabelCoords,_getElementCoords:r.default._getElementCoords,_moveLabelOnCanvas:function(e,t,n){var i=e.x,o=e.y;return t.minX>i&&(i=t.minX),t.maxX<i+n.width&&(i=t.maxX-n.width),t.minY>o&&(o=t.minY),t.maxY<o+n.height&&(o=t.maxY-n.height),{x:i,y:o}},_getLabelPosition:function(){return"outside"},_getCoords:function(e,t){var n=this.series.getValueAxis(),i=n.getAngles()[0],o=this._getArgTranslator().translate(e),a=this._getValTranslator().translate(t),r=(0,l.convertPolarToXY)(n.getCenter(),n.getAngles()[0],o,a);return r.angle=o+i-90,r.radius=a,r},_translate:function(){var e=this,t=e.series.getValueAxis().getCenter(),n=e._getCoords(e.argument,e.value),i=e._getValTranslator(),o=i.isInverted()?i.translate(g):i.translate(m),a=(0,s.isDefined)(n.radius)&&n.radius>=0?n.radius:null;e.vx=(0,l.normalizeAngle)(n.angle),e.vy=e.radiusOuter=e.radiusLabels=a,e.radiusLabels+=p,e.radius=a,e.middleAngle=-n.angle,e.angle=-n.angle,e.x=n.x,e.y=n.y,e.defaultX=e.centerX=t.x,e.defaultY=e.centerY=t.y,e._translateErrorBars(),e.inVisibleArea=e._checkRadiusForVisibleArea(a,o)},_checkRadiusForVisibleArea:function(e,t){return(0,s.isDefined)(e)&&e<=t},_translateErrorBars:function(){var e=this,t=e._options.errorBars,n=e._getValTranslator();t&&((0,s.isDefined)(e.lowError)&&(e._lowErrorCoord=e.centerY-n.translate(e.lowError)),(0,s.isDefined)(e.highError)&&(e._highErrorCoord=e.centerY-n.translate(e.highError)),e._errorBarPos=e.centerX,e._baseErrorBarPos="stdDeviation"===t.type?e._lowErrorCoord+(e._highErrorCoord-e._lowErrorCoord)/2:e.centerY-e.radius)},_getTranslates:function(e){return e?this.getDefaultCoords():{x:this.x,y:this.y}},getDefaultCoords:function(){var e=(0,l.getCosAndSin)(-this.angle),t=this._getValTranslator().translate(_);return{x:this.defaultX+t*e.cos,y:this.defaultY+t*e.sin}},_addLabelAlignmentAndOffset:function(e,t){return t},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),o=n._getGraphicBBox();return n._isPointInVisibleArea(i,o)&&(t=n._moveLabelOnCanvas(t,i,e.getBoundingRect())),t},_getErrorBarSettings:function(e,t){var n=o.default._getErrorBarSettings.call(this,e,t);return n.rotate=90-this.angle,n.rotateX=this.centerX,n.rotateY=this.centerY,n},getCoords:function(e){return e?this.getDefaultCoords():{x:this.x,y:this.y}}});t.polarSymbolPoint=v;var y=c({},a.default,{_translateErrorBars:v._translateErrorBars,_getErrorBarSettings:v._getErrorBarSettings,_moveLabelOnCanvas:v._moveLabelOnCanvas,_getLabelCoords:r.default._getLabelCoords,_getElementCoords:r.default._getElementCoords,_getLabelConnector:r.default._getLabelConnector,getTooltipParams:r.default.getTooltipParams,_getLabelPosition:r.default._getLabelPosition,_getCoords:v._getCoords,_translate:function(){var e=this,t=e._getValTranslator(),n=t.getBusinessRange(),i=t.isInverted()?t.translate(g):t.translate(m);e.radiusInner=t.translate(e.minValue),v._translate.call(e),null===e.radiusInner?e.radiusInner=e.radius=i:null===e.radius?e.radius=e.value>=n.minVisible?i:0:e.radius>i&&(e.radius=i),e.radiusOuter=e.radiusLabels=f(e.radiusInner,e.radius),e.radiusLabels+=p,e.radiusInner=e.defaultRadius=h.min(e.radiusInner,e.radius),e.middleAngle=e.angle=-(0,l.normalizeAngle)(e.middleAngleCorrection-e.angle)},_checkRadiusForVisibleArea:function(e){return(0,s.isDefined)(e)||this._getValTranslator().translate(this.minValue)>0},_getErrorBarBaseEdgeLength:function(){var e=this.getMarkerCoords();return h.PI*e.outerRadius*h.abs(e.startAngle-e.endAngle)/180},getMarkerCoords:function(){return{x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.defaultRadius,startAngle:this.middleAngle-this.interval/2,endAngle:this.middleAngle+this.interval/2}},_drawMarker:function(e,t,n){var i=this,o=i._getStyle(),a=i.getMarkerCoords(),r=a.innerRadius,s=a.outerRadius,l=i._getCoords(i.argument,_),u=a.x,d=a.y;n&&(r=0,s=0,u=l.x,d=l.y),i.graphic=e.arc(u,d,r,s,a.startAngle,a.endAngle).attr(o).data({"chart-data-point":i}).append(t)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),o=(0,l.getCosAndSin)(n.middleAngle),a=n.centerX+n.defaultRadius*o.cos,r=n.centerY-n.defaultRadius*o.sin;return a>i.minX&&a<i.maxX&&r>i.minY&&r<i.maxY&&(t=n._moveLabelOnCanvas(t,i,e.getBoundingRect())),t},_addLabelAlignmentAndOffset:function(e,t){return t},correctCoordinates:function(e){this.middleAngleCorrection=e.offset,this.interval=e.width},coordsIn:function(e,t){var n=(0,l.convertXYToPolar)(this.series.getValueAxis().getCenter(),e,t),i=this.getMarkerCoords(),o=i.startAngle<i.endAngle?-n.phi>=i.startAngle&&-n.phi<=i.endAngle:-n.phi<=i.startAngle&&-n.phi>=i.endAngle;return n.r>=i.innerRadius&&n.r<=i.outerRadius&&o}});t.polarBarPoint=y},73206:function(e,t,n){t.default=void 0;var i=n(20576),o=n(13306),a=s(n(27428)),r=s(n(97319));function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,o.extend)({},a.default,{deleteLabel:r.default.deleteLabel,_getFormatObject:r.default._getFormatObject,clearVisibility:function(){var e=this.graphic;e&&e.attr("visibility")&&e.attr({visibility:null})},setInvisibility:function(){var e=this.graphic;e&&"hidden"!==e.attr("visibility")&&e.attr({visibility:"hidden"}),this._topLabel.draw(!1),this._bottomLabel.draw(!1)},getTooltipParams:function(e){var t,n,i=this,o="edge"===e;return i._options.rotated?(t=o?i.x+i.width:i.x+i.width/2,n=i.y+i.height/2):(t=i.x+i.width/2,n=o?i.y:i.y+i.height/2),{x:t,y:n,offset:0}},_translate:function(){var e=this;a.default._translate.call(e),e._options.rotated?e.width=e.width||1:e.height=e.height||1},hasCoords:r.default.hasCoords,_updateData:r.default._updateData,_getLabelPosition:r.default._getLabelPosition,_getLabelMinFormatObject:r.default._getLabelMinFormatObject,_updateLabelData:r.default._updateLabelData,_updateLabelOptions:r.default._updateLabelOptions,getCrosshairData:r.default.getCrosshairData,_createLabel:r.default._createLabel,_checkOverlay:r.default._checkOverlay,_checkLabelsOverlay:r.default._checkLabelsOverlay,_getOverlayCorrections:r.default._getOverlayCorrections,_drawLabel:r.default._drawLabel,_getLabelCoords:r.default._getLabelCoords,getLabel:r.default.getLabel,getLabels:r.default.getLabels,getBoundingRect:i.noop,getMinValue:r.default.getMinValue,getMaxValue:r.default.getMaxValue});t.default=l,e.exports=t.default,e.exports.default=t.default},97319:function(e,t,n){t.default=void 0;var i,o=n(95479),a=n(13306),r=n(20576),s=n(28318),l=(i=n(24894))&&i.__esModule?i:{default:i},u=n(35922),d=a.extend,c=Math,h=c.abs,f=c.min,p=c.max,g=c.round,m=d({},l.default,{deleteLabel:function(){var e=this;e._topLabel.dispose(),e._topLabel=null,e._bottomLabel.dispose(),e._bottomLabel=null},hideMarker:function(e){var t=this.graphic,n=t&&t[e+"Marker"],i=this["_"+e+"Label"];n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),i.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var e=this.graphic,t=e&&e.topMarker,n=e&&e.bottomMarker;t&&t.attr("visibility")&&t.attr({visibility:null}),n&&n.attr("visibility")&&n.attr({visibility:null})},clearMarker:function(){var e=this.graphic,t=e&&e.topMarker,n=e&&e.bottomMarker,i=this._emptySettings;t&&t.attr(i),n&&n.attr(i)},_getLabelPosition:function(e){var t="inside"===this._options.label.position;return this._options.rotated?"top"===e^t?"right":"left":"top"===e^t?"top":"bottom"},_getLabelMinFormatObject:function(){var e=this;return{index:0,argument:e.initialArgument,value:e.initialMinValue,seriesName:e.series.name,originalValue:e.originalMinValue,originalArgument:e.originalArgument,point:e}},_updateLabelData:function(){var e=this._getLabelFormatObject();e.index=1,this._topLabel.setData(e),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var e=this,t=this._options.label;(!e._topLabel||!e._bottomLabel)&&e._createLabel(),e._topLabel.setOptions(t),e._bottomLabel.setOptions(t)},_createLabel:function(){var e={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new s.Label(e),this._bottomLabel=new s.Label(e)},_getGraphicBBox:function(e){var t=this._options,n=this._getImage(t.image),i="top"===e?this._checkImage(n.top):this._checkImage(n.bottom),o=this._getPositionFromLocation(e);return t.visible?i?this._getImageBBox(o.x,o.y):this._getSymbolBBox(o.x,o.y,t.styles.normal.r):{x:o.x,y:o.y,width:0,height:0}},_getPositionFromLocation:function(e){var t,n,i="top"===e;return this._options.rotated?(t=i?p(this.x,this.minX):f(this.x,this.minX),n=this.y):(t=this.x,n=i?f(this.y,this.minY):p(this.y,this.minY)),{x:t,y:n}},_checkOverlay:function(e,t,n){return e<t+n},_getOverlayCorrections:function(e,t){var n=this._options.rotated,i=n?"x":"y",o=n?"width":"height",a=this.series.getValueAxis().getVisibleArea(),r=a[0],s=a[1],l=g((e[i]+e[o]-t[i])/2),u=e[i]-l,d=t[i]+l;return u<r?(u+=l=r-u,d+=l):d+t[o]>s&&(u+=l=s-d-t[o],d+=l),{coord1:u,coord2:d}},_checkLabelsOverlay:function(e){var t=this,n=t._topLabel.getBoundingRect(),i=t._bottomLabel.getBoundingRect(),o={};t._options.rotated?"top"===e?this._checkOverlay(n.x,i.x,i.width)&&(o=this._getOverlayCorrections(i,n),t._topLabel.shift(o.coord2,n.y),t._bottomLabel.shift(o.coord1,i.y)):this._checkOverlay(i.x,n.x,n.width)&&(o=this._getOverlayCorrections(n,i),t._topLabel.shift(o.coord1,n.y),t._bottomLabel.shift(o.coord2,i.y)):"top"===e?this._checkOverlay(i.y,n.y,n.height)&&(o=this._getOverlayCorrections(n,i),t._topLabel.shift(n.x,o.coord1),t._bottomLabel.shift(i.x,o.coord2)):this._checkOverlay(n.y,i.y,i.height)&&(o=this._getOverlayCorrections(i,n),t._topLabel.shift(n.x,o.coord2),t._bottomLabel.shift(i.x,o.coord1))},_drawLabel:function(){var e=this,t=[],n=e._options.rotated?e.x>=e.minX:e.y<e.minY,i=e._getCustomLabelVisibility(),a=e._topLabel,r=e._bottomLabel;a.pointPosition=n?"top":"bottom",r.pointPosition=n?"bottom":"top",(e.series.getLabelVisibility()||i)&&e.hasValue()&&!1!==i?(!1!==e.visibleTopMarker&&t.push(a),!1!==e.visibleBottomMarker&&t.push(r),(0,o.each)(t,(function(e,t){t.draw(!0)})),e._checkLabelsOverlay(e._topLabel.pointPosition)):(a.draw(!1),r.draw(!1))},_getImage:function(e){var t={};return(0,u.isDefined)(e)&&("string"==typeof e?t.top=t.bottom=e:(t.top={url:"string"==typeof e.url?e.url:e.url&&e.url.rangeMaxPoint,width:"number"==typeof e.width?e.width:e.width&&e.width.rangeMaxPoint,height:"number"==typeof e.height?e.height:e.height&&e.height.rangeMaxPoint},t.bottom={url:"string"==typeof e.url?e.url:e.url&&e.url.rangeMinPoint,width:"number"==typeof e.width?e.width:e.width&&e.width.rangeMinPoint,height:"number"==typeof e.height?e.height:e.height&&e.height.rangeMinPoint})),t},_checkSymbol:function(e,t){var n=this,i=e.symbol,o=t.symbol,a="circle"===i&&"circle"!==o||"circle"!==i&&"circle"===o,r=n._getImage(e.image),s=n._getImage(t.image),l=n._checkImage(r.top)!==n._checkImage(s.top),u=n._checkImage(r.bottom)!==n._checkImage(s.bottom);return a||l||u},_getSettingsForTwoMarkers:function(e){var t=this,n=t._options,i={},o=n.rotated?f(t.x,t.minX):t.x,a=n.rotated?t.y:f(t.y,t.minY),r=e.r,s=t._populatePointShape(n.symbol,r);return i.top=d({translateX:o+t.width,translateY:a,r:r},e),i.bottom=d({translateX:o,translateY:a+t.height,r:r},e),s&&(i.top.points=i.bottom.points=s),i},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(e,t,n,i){var o=this,a=o.graphic;a[t]?o._updateOneMarker(t,i):a[t]=o._createMarker(e,a,n,i)},_drawMarker:function(e,t,n,i,o){var a=this,r=a._getSettingsForTwoMarkers(o||a._getStyle()),s=a._getImage(a._options.image);a._checkImage(s.top)&&(r.top=a._getImageSettings(r.top,s.top)),a._checkImage(s.bottom)&&(r.bottom=a._getImageSettings(r.bottom,s.bottom)),a.graphic=a.graphic||e.g().append(t),a.visibleTopMarker&&a._drawOneMarker(e,"topMarker",s.top,r.top),a.visibleBottomMarker&&a._drawOneMarker(e,"bottomMarker",s.bottom,r.bottom)},_getSettingsForTracker:function(e){var t=this,n=t._options.rotated;return{translateX:n?f(t.x,t.minX)-e:t.x-e,translateY:n?t.y-e:f(t.y,t.minY)-e,width:t.width+2*e,height:t.height+2*e}},isInVisibleArea:function(){var e,t,n,i=this,o=i._options.rotated,a=o?i.y:i.x,r=o?p(i.minX,i.x):p(i.minY,i.y),s=o?f(i.minX,i.x):f(i.minY,i.y),l=!0,u=i.series.getArgumentAxis().getVisibleArea(),d=i.series.getValueAxis().getVisibleArea(),c=u[1]<a||u[0]>a,h=d[0]>s&&d[0]>r||d[1]<s&&d[1]<r;return c||h?t=n=l=!1:(t=d[0]<=s&&d[1]>s,n=d[0]<r&&d[1]>=r,o&&(e=t,t=n,n=e)),i.visibleTopMarker=t,i.visibleBottomMarker=n,l},getTooltipParams:function(){var e,t,n=this,i=n._options.rotated,o=i?f(n.x,n.minX):f(n.y,n.minY),a=i?"width":"height",r=n._getVisibleArea(),s=i?r.minX:r.minY,l=i?r.maxX:r.maxY,u=p(s,o),d=f(l,o+n[a]);return i?(t=n.y,e=u+(d-u)/2):(e=n.x,t=u+(d-u)/2),{x:e,y:t,offset:0}},_translate:function(){var e=this,t=e._options.rotated;l.default._translate.call(e),e.height=t?0:h(e.minY-e.y),e.width=t?h(e.x-e.minX):0},hasCoords:function(){return l.default.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(e){var t=this;l.default._updateData.call(t,e),t.minValue=t.initialMinValue=t.originalMinValue=e.minValue},_getImageSettings:function(e,t){return{href:t.url||t.toString(),width:t.width||20,height:t.height||20,translateX:e.translateX,translateY:e.translateY}},getCrosshairData:function(e,t){var n=this,i=n._options.rotated,o=n.minX,a=n.minY,r=n.vx,s=n.vy,l=n.value,u=n.minValue,d=n.argument,c={axis:n.series.axis,x:r,y:s,yValue:l,xValue:d};return i?(c.yValue=d,h(r-e)<h(o-e)?c.xValue=l:(c.x=o,c.xValue=u)):h(s-t)>=h(a-t)&&(c.y=a,c.yValue=u),c},_updateOneMarker:function(e,t){this.graphic&&this.graphic[e]&&this.graphic[e].attr(t)},_updateMarker:function(e,t){this._drawMarker(void 0,void 0,!1,!1,t)},_getFormatObject:function(e){var t=this,n=t.initialMinValue,i=t.initialValue,o=t.initialArgument,a=e.formatValue(n),r=e.formatValue(i);return{argument:o,argumentText:e.formatValue(o,"argument"),valueText:a+" - "+r,rangeValue1Text:a,rangeValue2Text:r,rangeValue1:n,rangeValue2:i,seriesName:t.series.name,point:t,originalMinValue:t.originalMinValue,originalValue:t.originalValue,originalArgument:t.originalArgument}},getLabel:function(){return[this._topLabel,this._bottomLabel]},getLabels:function(){return[this._topLabel,this._bottomLabel]},getBoundingRect:r.noop,coordsIn:function(e,t){var n=this._storeTrackerR(),i=e>=this.x-n&&e<=this.x+n,o=t>=this.y-n&&t<=this.y+n;return this._options.rotated?o&&(i||e>=this.minX-n&&e<=this.minX+n):i&&(o||t>=this.minY-n&&t<=this.minY+n)},getMaxValue:function(){return"discrete"!==this.series.valueAxisType&&this.minValue>this.value?this.minValue:this.value},getMinValue:function(){return"discrete"!==this.series.valueAxisType?this.minValue<this.value?this.minValue:this.value:this.minValue}});t.default=m,e.exports=t.default,e.exports.default=t.default},71678:function(e,t,n){t.default=void 0;var i,o=n(13306),a=n(35922),r=(i=n(69297))&&i.__esModule?i:{default:i},s=o.extend,l=a.isNumeric,u=s({},r.default,{_getPoints:function(){var e=this,t=e._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]},n=l(e.openY),i=l(e.closeY),o=e.x,a=e.width,r=[].concat(t(o,e.highY));return n&&(r=r.concat(t(o,e.openY))),n&&(r=r.concat(t(o-a/2,e.openY))),n&&(r=r.concat(t(o,e.openY))),i&&(r=r.concat(t(o,e.closeY))),i&&(r=r.concat(t(o+a/2,e.closeY))),i&&(r=r.concat(t(o,e.closeY))),r.concat(t(o,e.lowY))},_drawMarkerInGroup:function(e,t,n){this.graphic=n.path(this._getPoints(),"line").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":this}).sharp().append(e)},_getMinTrackerWidth:function(){var e=2+this._styles.normal["stroke-width"];return e+e%2}});t.default=u,e.exports=t.default,e.exports.default=t.default},24894:function(e,t,n){t.default=void 0;var i=n(13306),o=n(95479),a=n(20576),r=n(58201),s=n(28318),l=n(35922),u=n(19157),d=(0,r.getWindow)(),c=i.extend,h=Math,f=h.round,p=h.floor,g=h.ceil,m="canvas_position_default",_={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var e=this.graphic;e&&e.attr("visibility")&&e.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var e=this,t=e.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),e._errorBar&&e._errorBar.attr({visibility:"hidden"}),e._label.draw(!1)},clearMarker:function(){var e=this.graphic;e&&e.attr(this._emptySettings)},_createLabel:function(){this._label=new s.Label({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(e){return(0,l.isDefined)(e)&&("string"==typeof e||(0,l.isDefined)(e.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(e,t){var n=e.symbol,i=t.symbol,o="circle"===n&&"circle"!==i||"circle"!==n&&"circle"===i,a=this._checkImage(e.image)!==this._checkImage(t.image);return!(!o&&!a)},_populatePointShape:function(e,t){switch(e){case"square":return function(e){return[-e,-e,e,-e,e,e,-e,e,-e,-e]}(t);case"polygon":return function(e){var t=g(e);return[-t,0,0,-t,t,0,0,t,-t,0]}(t);case"triangle":case"triangleDown":return function(e){return[-e,-e,e,-e,0,e,-e,-e]}(t);case"triangleUp":return function(e){return[-e,e,e,e,0,-e,-e,e]}(t);case"cross":return function(e){var t=g(e),n=p(t/2),i=g(t/2);return[-t,-n,-n,-t,0,-i,n,-t,t,-n,i,0,t,n,n,t,0,i,-n,t,-t,n,-i,0]}(t)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(e){var t=this,n=t.series.getValueAxis();t.hasValue()&&(t.value=t.properValue=n.validateUnit(t.initialValue.valueOf()+e.valueOf()),t.minValue=n.validateUnit(e))},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=m},resetValue:function(){var e=this;e.hasValue()&&(e.value=e.properValue=e.initialValue=0,e.minValue=0,e._label.setDataField("value",e.value))},_getTranslates:function(e){var t=this.x,n=this.y;return e&&(this._options.rotated?t=this.defaultX:n=this.defaultY),{x:t,y:n}},_createImageMarker:function(e,t,n){var i=n.width||20,o=n.height||20;return e.image(-f(.5*i),-f(.5*o),i,o,n.url?n.url.toString():n.toString(),"center").attr({translateX:t.translateX,translateY:t.translateY,visibility:t.visibility})},_createSymbolMarker:function(e,t){var n,i=this._options.symbol;return"circle"===i?(delete t.points,n=e.circle().attr(t)):"square"!==i&&"polygon"!==i&&"triangle"!==i&&"triangleDown"!==i&&"triangleUp"!==i&&"cross"!==i||(n=e.path([],"area").attr(t).sharp()),n},_createMarker:function(e,t,n,i){var o=this,a=o._checkImage(n)?o._createImageMarker(e,i,n):o._createSymbolMarker(e,i);return a&&a.data({"chart-data-point":o}).append(t),a},_getSymbolBBox:function(e,t,n){return{x:e-n,y:t-n,width:2*n,height:2*n}},_getImageBBox:function(e,t){var n=this._options.image,i=n.width||20,o=n.height||20;return{x:e-f(i/2),y:t-f(o/2),width:i,height:o}},_getGraphicBBox:function(){var e=this,t=e._options,n=e.x,i=e.y;return t.visible?e._checkImage(t.image)?e._getImageBBox(n,i):e._getSymbolBBox(n,i,t.styles.normal.r):{x:n,y:i,width:0,height:0}},hideInsideLabel:a.noop,_getShiftLabelCoords:function(e){var t=this._addLabelAlignmentAndOffset(e,this._getLabelCoords(e));return this._checkLabelPosition(e,t)},_drawLabel:function(){var e=this,t=e._getCustomLabelVisibility(),n=e._label,i=e._showForZeroValues()&&e.hasValue()&&!1!==t&&(e.series.getLabelVisibility()||t);n.draw(!!i)},correctLabelPosition:function(e){var t=this,n=t._getShiftLabelCoords(e);t.hideInsideLabel(e,n)||(e.setFigureToDrawConnector(t._getLabelConnector(e.pointPosition)),e.shift(f(n.x),f(n.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(e){var t=this._getGraphicBBox(e),n=t.width/2,i=t.height/2;return{x:t.x+n,y:t.y+i,r:this._options.visible?Math.max(n,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(e,t){return e.minX<=t.x+t.width&&e.maxX>=t.x&&e.minY<=t.y+t.height&&e.maxY>=t.y},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),o=e.getBoundingRect(),a=n._getGraphicBBox(e.pointPosition),r=n._getGraphicBBox(),s="inside"===e.getLayoutOptions().position;return n._isPointInVisibleArea(i,r)&&(n._options.rotated?(i.minX>t.x&&(t.x=s?i.minX:a.x+a.width+10),i.maxX<t.x+o.width&&(t.x=s?i.maxX-o.width:a.x-10-o.width),i.minY>t.y&&(t.y=i.minY),i.maxY<t.y+o.height&&(t.y=i.maxY-o.height)):(i.minX>t.x&&(t.x=i.minX),i.maxX<t.x+o.width&&(t.x=i.maxX-o.width),i.minY>t.y&&(t.y=s?i.minY:a.y+a.height+10),i.maxY<t.y+o.height&&(t.y=s?i.maxY-o.height:a.y-o.height-10))),t},_addLabelAlignmentAndOffset:function(e,t){var n=e.getBoundingRect(),i=e.getLayoutOptions();return this._options.rotated||("left"===i.alignment?t.x+=n.width/2:"right"===i.alignment&&(t.x-=n.width/2)),t.x+=i.horizontalOffset,t.y+=i.verticalOffset,t},_getLabelCoords:function(e){return this._getLabelCoordOfPosition(e,this._getLabelPosition(e.pointPosition))},_getLabelCoordOfPosition:function(e,t){var n=e.getBoundingRect(),i=this._getGraphicBBox(e.pointPosition),o=i.height/2-n.height/2,a=i.width/2-n.width/2,r=i.x,s=i.y;switch(t){case"left":r-=n.width+10,s+=o;break;case"right":r+=i.width+10,s+=o;break;case"top":r+=a,s-=n.height+10;break;case"bottom":r+=a,s+=i.height+10;break;case"inside":r+=a,s+=o}return{x:r,y:s}},_drawMarker:function(e,t,n){var i=this,o=i._options,a=i._getTranslates(n),r=i._getStyle();i.graphic=i._createMarker(e,t,o.image,c({translateX:a.x,translateY:a.y,points:i._populatePointShape(o.symbol,r.r)},r))},_getErrorBarSettings:function(){return{visibility:"visible"}},_getErrorBarBaseEdgeLength:function(){return 2*this.getPointRadius()},_drawErrorBar:function(e,t){if(this._options.errorBars){var n,i=this,a=i._options,r=a.errorBars,s=[],d=i._errorBarPos,c=i._highErrorCoord,h=i._lowErrorCoord,f=(0,u.normalizeEnum)(r.displayMode),g="high"===f,m="low"===f,_=(g||!(0,l.isDefined)(h))&&(0,l.isDefined)(c)&&!m,v=(m||!(0,l.isDefined)(c))&&(0,l.isDefined)(h)&&!g,y=r.edgeLength;y<=1&&y>0&&(y=this._getErrorBarBaseEdgeLength()*r.edgeLength),y=p(parseInt(y)/2),_&&(h=i._baseErrorBarPos),v&&(c=i._baseErrorBarPos),"none"!==f&&(0,l.isDefined)(c)&&(0,l.isDefined)(h)&&(0,l.isDefined)(d)?(!v&&s.push([d-y,c,d+y,c]),s.push([d,c,d,h]),!_&&s.push([d+y,h,d-y,h]),a.rotated&&(0,o.each)(s,(function(e,t){t.reverse()})),n=i._getErrorBarSettings(r),i._errorBar?(n.points=s,i._errorBar.attr(n)):i._errorBar=e.path(s,"line").attr(n).append(t)):i._errorBar&&i._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var e=this,t=e.graphic;return{x:e.x,y:e.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(e,t,n,i){var o=this,a=o.value/e||0,r=o.minValue/e||0,s=a-r;o._label.setDataField("percent",s),o._label.setDataField("total",t),o.series.isFullStackedSeries()&&o.hasValue()&&(o.leftHole&&(o.leftHole/=e-n,o.minLeftHole/=e-n),o.rightHole&&(o.rightHole/=e-i,o.minRightHole/=e-i),o.value=o.properValue=a,o.minValue=r||o.minValue)},_storeTrackerR:function(){var e=this,t=d.navigator,n=e._options.styles.normal.r,i=(0,r.hasProperty)("ontouchstart")||t.msPointerEnabled&&t.msMaxTouchPoints||t.pointerEnabled&&t.maxTouchPoints?20:6;return e._options.trackerR=n<i?i:n,e._options.trackerR},_translateErrorBars:function(){var e=this,t=e._options,n=t.rotated,i=t.errorBars,o=e._getValTranslator();i&&((0,l.isDefined)(e.lowError)&&(e._lowErrorCoord=o.translate(e.lowError)),(0,l.isDefined)(e.highError)&&(e._highErrorCoord=o.translate(e.highError)),e._errorBarPos=p(n?e.vy:e.vx),e._baseErrorBarPos="stdDeviation"===i.type?e._lowErrorCoord+(e._highErrorCoord-e._lowErrorCoord)/2:n?e.vx:e.vy)},_translate:function(){var e=this,t=e._getValTranslator(),n=e._getArgTranslator();e._options.rotated?(e.vx=e.x=t.translate(e.value),e.vy=e.y=n.translate(e.argument),e.minX=t.translate(e.minValue),e.defaultX=t.translate(m)):(e.vy=e.y=t.translate(e.value),e.vx=e.x=n.translate(e.argument),e.minY=t.translate(e.minValue),e.defaultY=t.translate(m)),e._translateErrorBars(),e._calculateVisibility(e.x,e.y)},_updateData:function(e){var t=this;t.value=t.properValue=t.initialValue=t.originalValue=e.value,t.minValue=t.initialMinValue=t.originalMinValue=(0,l.isDefined)(e.minValue)?e.minValue:m},_getImageSettings:function(e){return{href:e.url||e.toString(),width:e.width||20,height:e.height||20}},getCrosshairData:function(){var e=this,t=e._options.rotated,n=e.properValue,i=e.argument;return{x:e.vx,y:e.vy,xValue:t?n:i,yValue:t?i:n,axis:e.series.axis}},getPointRadius:function(){var e=this._getStyle(),t=this._options,n=e.r,i=t.symbol,o="square"===i,a="triangle"===i||"triangleDown"===i||"triangleUp"===i;return t.visible&&!t.image&&n?(o||a?1.4*n:n)+e["stroke-width"]/2:0},_updateMarker:function(e,t){var n,i=this,o=i._options,a=o.image,r=i.isVisible()?{}:{visibility:"hidden"};n=i._checkImage(a)?c({},{visibility:t.visibility},r,i._getImageSettings(a)):c({},t,r,{points:i._populatePointShape(o.symbol,t.r)}),e||(n.translateX=i.x,n.translateY=i.y),i.graphic.attr(n).sharp()},_getLabelFormatObject:function(){var e=this;return{argument:e.initialArgument,value:e.initialValue,originalArgument:e.originalArgument,originalValue:e.originalValue,seriesName:e.series.name,lowErrorValue:e.lowError,highErrorValue:e.highError,point:e}},_getLabelPosition:function(){var e=this._options.rotated;return this.initialValue>0?e?"right":"top":e?"left":"bottom"},_getFormatObject:function(e){var t=this,n=t._label.getData();return c({},n,{argumentText:e.formatValue(t.initialArgument,"argument"),valueText:e.formatValue(t.initialValue)},(0,l.isDefined)(n.percent)?{percentText:e.formatValue(n.percent,"percent")}:{},(0,l.isDefined)(n.total)?{totalText:e.formatValue(n.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(e,t){var n=this._storeTrackerR();return e>=this.x-n&&e<=this.x+n&&t>=this.y-n&&t<=this.y+n},getMinValue:function(e){var t=this._options.errorBars;if(t&&!e){var n=t.displayMode,i="high"!==n&&(0,l.isDefined)(this.lowError)?this.lowError:this.value,o="low"!==n&&(0,l.isDefined)(this.highError)?this.highError:this.value;return i<o?i:o}return this.value},getMaxValue:function(e){var t=this._options.errorBars;if(t&&!e){var n=t.displayMode,i="high"!==n&&(0,l.isDefined)(this.lowError)?this.lowError:this.value,o="low"!==n&&(0,l.isDefined)(this.highError)?this.highError:this.value;return i>o?i:o}return this.value}};t.default=_,e.exports=t.default,e.exports.default=t.default},57402:function(e,t,n){t.chart=void 0;var i=n(13306),o=n(35922),a=n(19157),r=n(20576),s=n(21667),l=n(58821),u=n(90048);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=i.extend,h=l.chart.bar,f=u.chart.area,p={};t.chart=p;var g={areErrorBarsVisible:r.noop,_createErrorBarGroup:r.noop,_checkData:function(e,t){var n=this.getValueFields();return s.chart._checkData.call(this,e,t,{minValue:n[0],value:n[1]})&&e.minValue==e.minValue},getValueRangeInitialValue:s.chart.getValueRangeInitialValue,_getPointDataSelector:function(e){var t=this,n=this.getValueFields(),i=n[0],o=n[1],a=this.getTagField(),r=this.getArgumentField();return function(e){return{tag:e[a],minValue:t._processEmptyValue(e[i]),value:t._processEmptyValue(e[o]),argument:e[r],data:e}}},_defaultAggregator:"range",_aggregators:{range:function(e,t){var n,i=e.intervalStart,a=e.intervalEnd,r=e.data;if(r.length){var s=t.getValueFields(),l=s[0],u=s[1],c=r.reduce((function(e,t){var n=t[l],i=t[u];return(0,o.isDefined)(n)&&(0,o.isDefined)(i)?(e[l]=Math.min(e[l],Math.min(n,i)),e[u]=Math.max(e[u],Math.max(n,i)),e):e}),(d(n={},l,1/0),d(n,u,-1/0),d(n,t.getArgumentField(),t._getIntervalCenter(i,a)),n));if(!isFinite(c[l])||!isFinite(c[u])){if(r.filter((function(e){return null===e[l]&&null===e[u]})).length!==r.length)return;c[l]=c[u]=null}return c}}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]},getSeriesPairCoord:function(e,t){for(var n=null,i=this._options.rotated,o=!t&&!i||t&&i,a=o?"vy":"vx",r=i?"minX":"minY",s=o?"vx":"vy",l=this.getPoints(),u=0;u<l.length;u++){var d=l[u],c=void 0;if(t)c=d.getCenterCoord()[a[1]]===e?d[s]:void 0;else{var h=[Math.min(d[a],d[r]),Math.max(d[a],d[r])];c=e>=h[0]&&e<=h[1]?d[s]:void 0}if(this._checkAxisVisibleAreaCoord(!t,c)){n=c;break}}return n}};p.rangebar=c({},h,g),p.rangearea=c({},f,{_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups),this._drawnPoints.push(t),t.visibleTopMarker||t.hideMarker("top"),t.visibleBottomMarker||t.hideMarker("bottom")):t.setInvisibility()},_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t),i=(0,a.map)(n,(function(e){return e.getCoords(!0)}));return{line:n,bottomLine:i,area:(0,a.map)(n,(function(e){return e.getCoords()})).concat(i.slice().reverse()),singlePointSegment:n!==e}},_getDefaultSegment:function(e){var t=f._getDefaultSegment.call(this,e);return t.bottomLine=t.line,t},_removeElement:function(e){f._removeElement.call(this,e),e.bottomLine&&e.bottomLine.remove()},_drawElement:function(e,t){var n=this,i=f._drawElement.call(n,e,t);return i.bottomLine=n._bordersGroup&&n._createBorderElement(e.bottomLine,{"stroke-width":n._styles.normal.border["stroke-width"]}).append(n._bordersGroup),i},_applyStyle:function(e){var t=this,n=t._elementsGroup,i=t._bordersGroup;n&&n.smartAttr(e.elements),i&&i.attr(e.border),(t._graphics||[]).forEach((function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}),t.bottomLine&&t.bottomLine.attr({"stroke-width":e.border["stroke-width"]})}))},_updateElement:function(e,t,n,i){var o={points:t.bottomLine},a=e.bottomLine;f._updateElement.apply(this,arguments),a&&(n?a.animate(o):a.attr(o))}},g)},21667:function(e,t,n){t.polar=t.chart=void 0;var i,o=n(13306),a=n(89386),r=n(95479),s=(i=n(63407))&&i.__esModule?i:{default:i},l=n(35922),u=n(19157),d=n(20576);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=Math,f=h.abs,p=h.sqrt,g=h.max,m="highError",_="lowError",v="variance",y="stddeviation",x="stderror",b="percent",w="fixed",C={};t.chart=C;var S={};function k(e){var t=0;return(0,r.each)(e,(function(e,n){t+=n})),t}function D(e,t){return k((0,u.map)(e,(function(e){return(e-t)*(e-t)})))/e.length}function I(e){return function(t,n){var i=t.intervalStart,a=t.intervalEnd,r=t.data,s=n.getValueFields()[0],l=r[0];return l=r.reduce((function(t,n){var i=n[s];return null===t[s]&&(t=n),null!==i&&e(i,t[s])?n:t}),l),(0,o.extend)({},l,c({},n.getArgumentField(),n._getIntervalCenter(i,a)))}}t.polar=S;var T={_defaultDuration:400,_defaultTrackerWidth:12,_applyStyle:d.noop,_updateOptions:d.noop,_parseStyle:d.noop,_prepareSegment:d.noop,_drawSegment:d.noop,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching?(0,o.extend)({},e.hatching,{direction:"right"}):void 0}},_applyElementsClipRect:function(e){e["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(e,t,n,i){var o=t[e]=t[e]||this._renderer.g();n&&o.append(n),i&&o.attr(i)},_applyClearingSettings:function(e){e.opacity=null,e.scale=null,this._options.rotated?e.translateX=null:e.translateY=null},_createGroups:function(){var e=this;e._createGroup("_markersGroup",e,e._group),e._createGroup("_labelsGroup",e)},_setMarkerGroupSettings:function(){var e=this,t=e._createPointStyles(e._getMarkerGroupOptions()).normal;t.class="dxc-markers",t.opacity=1,e._applyMarkerClipRect(t),e._markersGroup.attr(t)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var e,t=this._options.valueErrorBar;return t&&this._errorBarsEnabled()&&"none"!==t.displayMode&&(e=(0,u.normalizeEnum)(t.type),-1!==(0,a.inArray)(e,[w,b,v,y,x])||(0,l.isDefined)(t.lowValueField)||(0,l.isDefined)(t.highValueField))},groupPointsByCoords:function(e){var t=[];return(0,r.each)(this.getVisiblePoints(),(function(n,i){var o=parseInt(e?i.vy:i.vx);t[o]?Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]:t[o]=i})),t},_createErrorBarGroup:function(e){var t,n=this,i=n._options.valueErrorBar;n.areErrorBarsVisible()&&(t={class:"dxc-error-bars",stroke:i.color,"stroke-width":i.lineWidth,opacity:e?.001:i.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":n._forceClipping?n._paneClipRectID:n._widePaneClipRectID},n._createGroup("_errorBarGroup",n,n._group,t))},_setGroupsSettings:function(e){var t=this;t._setMarkerGroupSettings(),t._setLabelGroupSettings(e),t._createErrorBarGroup(e)},_getCreatingPointOptions:function(){var e,t,n=this,i=n._predefinedPointOptions;return i||(e=n._getPointOptions(),n._predefinedPointOptions=i=(0,o.extend)(!0,{styles:{}},e),t=e.styles&&e.styles.normal||{},i.styles=i.styles||{},i.styles.normal={"stroke-width":t["stroke-width"],r:t.r,opacity:t.opacity}),i},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(e,t,n,i){var o=e.border||{},a=void 0!==e.size?e.size:i;return{fill:e.color||t,stroke:o.color||n,"stroke-width":o.visible?o.width:0,r:a/2+(o.visible&&0!==a&&~~(o.width/2)||0)}},_createPointStyles:function(e){var t=this,n=e.color||t._options.mainSeriesColor,i=t._options.containerBackgroundColor,o=t._parsePointStyle(e,n,n);return o.visibility=e.visible?"visible":"hidden",{normal:o,hover:t._parsePointStyle(e.hoverStyle,i,n,e.size),selection:t._parsePointStyle(e.selectionStyle,i,n,e.size)}},_checkData:function(e,t,n){return(n=n||{value:this.getValueFields()[0]}).argument=this.getArgumentField(),function(e,t,n){var i=!0;for(var o in t){var a="argument"===o;if(a||"size"===o?!(0,l.isDefined)(e[o]):void 0===e[o]){var r=t[o];a||(n[r]=(n[r]||0)+1),i=!1}}return i}(e,n,t||{})&&e.value==e.value},getArgumentRangeInitialValue:function(){var e,t,n=this.getPoints();if(this.useAggregation()&&n.length)return{min:null===(e=n[0].aggregationInfo)||void 0===e?void 0:e.intervalStart,max:null===(t=n[n.length-1].aggregationInfo)||void 0===t?void 0:t.intervalEnd}},getValueRangeInitialValue:function(){},_getRangeData:function(){return s.default.getRangeData(this)},_getPointDataSelector:function(){var e,t,n=this,i=this.getValueFields()[0],o=this.getArgumentField(),a=this.getTagField(),r=this.areErrorBarsVisible();if(r){var s=this._options.valueErrorBar;e=s.lowValueField||_,t=s.highValueField||m}return function(s){var l={value:n._processEmptyValue(s[i]),argument:s[o],tag:s[a],data:s};return r&&(l.lowError=s[e],l.highError=s[t]),l}},_errorBarsEnabled:function(){return"discrete"!==this.valueAxisType&&"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType},_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups,e.hasAnimation,e.firstDrawing),this._drawnPoints.push(t)):t.setInvisibility()},_animateComplete:function(){var e=this,t={duration:e._defaultDuration};e._labelsGroup&&e._labelsGroup.animate({opacity:1},t),e._errorBarGroup&&e._errorBarGroup.animate({opacity:e._options.valueErrorBar.opacity||1},t)},_animate:function(){var e=this,t=e._drawnPoints.length-1;(0,r.each)(e._drawnPoints||[],(function(n,i){i.animate(n===t?function(){e._animateComplete()}:void 0,{translateX:i.x,translateY:i.y})}))},_getIntervalCenter:function(e,t){var n=this.getArgumentAxis();return"discrete"!==n.getOptions().type?n.getVisualRangeCenter({minVisible:e,maxVisible:t},!0):e},_defaultAggregator:"avg",_aggregators:{avg:function(e,t){var n,i=e.data,o=e.intervalStart,a=e.intervalEnd;if(i.length){var r=t.getValueFields()[0],s=i.reduce((function(e,t){var n=t[r];return(0,l.isDefined)(n)?(e[0]+=n,e[1]++):null===n&&e[2]++,e}),[0,0,0]);return function(e,t,n){var i=n.getOptions().valueErrorBar,o=n.getValueFields()[0],a=i.lowValueField||_,r=i.highValueField||m;if(n.areErrorBarsVisible()&&void 0===i.type){var s=t.reduce((function(e,t){return(0,l.isDefined)(t[a])&&(e[0]+=t[o]-t[a],e[1]++),(0,l.isDefined)(t[r])&&(e[2]+=t[r]-t[o],e[3]++),e}),[0,0,0,0]);s[1]&&(e[a]=e[o]-s[0]/s[1]),s[2]&&(e[r]=e[o]+s[2]/s[3])}return e}((c(n={},r,s[2]===i.length?null:s[0]/s[1]),c(n,t.getArgumentField(),t._getIntervalCenter(o,a)),n),i,t)}},sum:function(e,t){var n,i=e.intervalStart,o=e.intervalEnd,a=e.data;if(a.length){var r=t.getValueFields()[0],s=a.reduce((function(e,t){var n=t[r];return void 0!==n&&(e[0]+=n),null===n?e[1]++:void 0===n&&e[2]++,e}),[0,0,0]),l=s[0];if(s[1]===a.length&&(l=null),s[2]!==a.length)return function(e,t,n){var i=n.getOptions().valueErrorBar,o=i.lowValueField||_,a=i.highValueField||m;return n.areErrorBarsVisible()&&void 0===i.type&&(e[o]=0,e[a]=0,e=t.reduce((function(e,t){return e[o]+=t[o],e[a]+=t[a],e}),e)),e}((c(n={},r,l),c(n,t.getArgumentField(),t._getIntervalCenter(i,o)),n),a,t)}},count:function(e,t){var n,i=e.data,o=e.intervalStart,a=e.intervalEnd,r=t.getValueFields()[0];return c(n={},t.getArgumentField(),t._getIntervalCenter(o,a)),c(n,r,i.filter((function(e){return void 0!==e[r]})).length),n},min:I((function(e,t){return e<t})),max:I((function(e,t){return e>t}))},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var e,t,n=this._options,i=n.valueErrorBar,o=[n.valueField||"val"];return i&&(e=i.lowValueField,t=i.highValueField,(0,l.isString)(e)&&o.push(e),(0,l.isString)(t)&&o.push(t)),o},_calculateErrorBars:function(e){if(this.areErrorBarsVisible()){var t,n,i,o,a,s=this._options.valueErrorBar,d=(0,u.normalizeEnum)(s.type),c=parseFloat(s.value),h=this.getValueFields()[0],f=s.lowValueField||_,g=s.highValueField||m,C=function(e,n){t=n.value,n.lowError=t-c,n.highError=t+c};switch(d){case w:a=C;break;case b:a=function(e,n){var i=(t=n.value)*c/100;n.lowError=t-i,n.highError=t+i};break;case"undefined":a=function(e,t){t.lowError=t.data[f],t.highError=t.data[g]};break;default:switch(i=(n=(0,u.map)(e,(function(e){return(0,l.isDefined)(e.data[h])?e.data[h]:null}))).length,c=c||1,d){case v:c=D(n,k(n)/i)*c,a=C;break;case y:o=k(n)/i,c=p(D(n,o))*c,a=function(e,t){t.lowError=o-c,t.highError=o+c};break;case x:c=p(D(n,k(n)/i)/i)*c,a=C}}a&&(0,r.each)(e,a)}},_patchMarginOptions:function(e){var t=this._getCreatingPointOptions(),n=t.styles,i=[n.normal,n.hover,n.selection].reduce((function(e,t){return g(e,2*t.r+t["stroke-width"])}),0);return e.size=t.visible?i:0,e.sizePointNormalState=t.visible?2*n.normal.r+n.normal["stroke-width"]:2,e},usePointsToDefineAutoHiding:function(){return!0}};t.chart=C=(0,o.extend)({},T,{drawTrackers:function(){var e,t,n=this,i=n._segments||[],o=n._options.rotated;n.isVisible()&&(i.length&&(e=n._trackers=n._trackers||[],t=n._trackersGroup=(n._trackersGroup||n._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray",class:"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(n._group),(0,r.each)(i,(function(i,o){e[i]?n._updateTrackerElement(o,e[i]):e[i]=n._drawTrackerElement(o).data({"chart-data-series":n}).append(t)}))),n._trackersTranslator=n.groupPointsByCoords(o))},_checkAxisVisibleAreaCoord:function(e,t){var n=(e?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();return(0,l.isDefined)(t)&&n[0]<=t&&n[1]>=t},checkSeriesViewportCoord:function(e,t){return this.getPoints().length&&this.isVisible()},getSeriesPairCoord:function(e,t){for(var n=null,i=!t&&!this._options.rotated||t&&this._options.rotated,o=i?"vy":"vx",a=i?"vx":"vy",r=this.getVisiblePoints(),s=0;s<r.length;s++){var l=r[s],u=l[o]===e?l[a]:void 0;if(this._checkAxisVisibleAreaCoord(!t,u)){n=u;break}}return n},_getNearestPoints:function(e,t){return[e,t]},_getBezierPoints:function(){return[]},_getNearestPointsByCoord:function(e,t){var n=this,i=n.getOptions().rotated,o=!t&&!i||t&&i?"vy":"vx",a=n.getPoints(),r=n._getBezierPoints(),s=[];return a.length>1?a.forEach((function(t,i){var l=a[i+1];l&&(t[o]<=e&&l[o]>=e||t[o]>=e&&l[o]<=e)&&s.push(n._getNearestPoints(t,l,r))})):s.push([a[0],a[0]]),s},getNeighborPoint:function(e,t){var n,i=this._options.rotated?t:e,o=i,a=this._trackersTranslator,s=null,l=this._options.rotated?e:t,u=this._options.rotated?"vx":"vy";if(this.isVisible()&&a){s=a[i];do{s=a[o]||a[i],i--,o++}while((i>=0||o<a.length)&&!s);Array.isArray(s)&&(n=f(s[0][u]-l),(0,r.each)(s,(function(e,t){var i=f(t[u]-l);n>=i&&(n=i,s=t)})))}return s},_applyVisibleArea:function(){var e=this,t=e._options.rotated,n=(t?e.getValueAxis():e.getArgumentAxis()).getVisibleArea(),i=(t?e.getArgumentAxis():e.getValueAxis()).getVisibleArea();e._visibleArea={minX:n[0],maxX:n[1],minY:i[0],maxY:i[1]}},getPointCenterByArg:function(e){var t=this.getPointsByArg(e)[0];return t?t.getCenterCoord():void 0}}),t.polar=S=(0,o.extend)({},T,{drawTrackers:function(){C.drawTrackers.call(this);var e,t=this._trackersTranslator;this.isVisible()&&((0,r.each)(t,(function(t,n){if(n)return e=t,!1})),t[e+360]=t[e])},getNeighborPoint:function(e,t){var n=(0,u.convertXYToPolar)(this.getValueAxis().getCenter(),e,t);return C.getNeighborPoint.call(this,n.phi,n.r)},_applyVisibleArea:function(){var e=this.getValueAxis().getCanvas();this._visibleArea={minX:e.left,maxX:e.width-e.right,minY:e.top,maxY:e.height-e.bottom}},getSeriesPairCoord:function(e,t){for(var n=null,i=t?"argument":"radius",o=this.getVisiblePoints(),a=0;a<o.length;a++){var r=o[a],s=(0,l.isDefined)(r[i])&&(0,l.isDefined)(e[i])&&r[i].valueOf()===e[i].valueOf()?{x:r.x,y:r.y}:void 0;if((0,l.isDefined)(s)){n=s;break}}return n}})},92057:function(e,t,n){t.polar=t.chart=void 0;var i=n(20576),o=n(13306),a=n(95479),r=n(90048),s=n(58821),l=n(7222),u=n(19157),d=n(48013),c=r.chart.area,h=s.chart.bar,f={_calculateErrorBars:i.noop,_updateOptions:function(e){this._stackName="axis_"+(e.axis||"default")}},p={};t.chart=p;var g={};t.polar=g,p.stackedline=(0,o.extend)({},l.chart.line,f,{}),p.stackedspline=(0,o.extend)({},l.chart.spline,f,{}),p.fullstackedline=(0,o.extend)({},l.chart.line,f,{getValueRangeInitialValue:r.chart.area.getValueRangeInitialValue}),p.fullstackedspline=(0,o.extend)({},l.chart.spline,f,{getValueRangeInitialValue:r.chart.area.getValueRangeInitialValue});var m=p.stackedbar=(0,o.extend)({},h,f,{_updateOptions:function(e){f._updateOptions.call(this,e),this._stackName=this._stackName+"_stack_"+(e.stack||"default")}});function _(e,t,n,i){return(e=(0,d.clone)(e)).value=t,e.minValue=n,e.translate(),e.argument=e.argument+i,e}function v(e){for(var t,n,i=0,o=[],a=e.length;i<a;)n=[t=e[i]],t.leftHole&&(n=[_(t,t.leftHole,t.minLeftHole,"left"),t]),t.rightHole&&n.push(_(t,t.rightHole,t.minRightHole,"right")),o.push(n),i++;return[].concat.apply([],o)}p.fullstackedbar=(0,o.extend)({},h,f,{_updateOptions:m._updateOptions}),p.stackedarea=(0,o.extend)({},c,f,{_prepareSegment:function(e,t){return c._prepareSegment.call(this,v(e),t)},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup).toBackground()}}),p.stackedsplinearea=(0,o.extend)({},r.chart.splinearea,f,{_prepareSegment:function(e,t){var n,i=this;if(e=v(e),this._prevSeries&&1!==e.length){for(var o=l.chart.spline._calculateBezierPoints(e,t),s=(0,u.map)(e,(function(e){var t=e.getCoords(!0);return t.argument=e.argument,t})),d=[],c={},h=0,f=i._prevSeries._segments.length;h<f;)d=d.concat(i._prevSeries._segments[h].line),h++;(0,a.each)(d,(function(e,t){if(null!==t.argument){var n=t.argument.valueOf();c[n]?c[n].push(t):c[n]=[t]}})),i._prevSeries._segmentByArg=c,s=l.chart.spline._calculateBezierPoints(s,t),(0,a.each)(s,(function(e,t){var n,o=t.argument.valueOf();e%3==0&&((n=c[o]||function(e,t){for(var n;!n&&e;)n=e._segmentByArg&&e._segmentByArg[t],e=e._prevSeries;return n}(i._prevSeries,o))&&(s[e-1]&&n[0]&&(s[e-1]=n[0]),s[e+1]&&(s[e+1]=n[2]||t)))})),n={line:o,area:o.concat(s.reverse())},i._areaPointsToSplineAreaPoints(n.area)}else n=r.chart.splinearea._prepareSegment.call(this,e,t);return n},_appendInGroup:p.stackedarea._appendInGroup}),p.fullstackedarea=(0,o.extend)({},c,f,{_prepareSegment:p.stackedarea._prepareSegment,_appendInGroup:p.stackedarea._appendInGroup}),p.fullstackedsplinearea=(0,o.extend)({},r.chart.splinearea,f,{_prepareSegment:p.stackedsplinearea._prepareSegment,_appendInGroup:p.stackedarea._appendInGroup}),g.stackedbar=(0,o.extend)({},s.polar.bar,f,{})},43759:function(e,t,n){var i;t.default=void 0;var o=((i=n(51876))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},55628:function(e,t,n){t.default=void 0;var i=g(n(55994)),o=g(n(73349)),a=n(35922),r=g(n(59063)),s=n(13306),l=n(39611),u=g(n(93786)),d=n(19157),c=n(87276),h=n(20576),f=n(14371),p=n(82454);function g(e){return e&&e.__esModule?e:{default:e}}var m,_="sparkline-tooltip",v=(0,l.addNamespace)([u.default.down,u.default.move],_),y=s.extend,x=Math.floor;function b(e){var t=e.data.widget;t._enableOutHandler(),t._showTooltip()}function w(e){var t=new c.Translator2D({},{},{shiftZeroValue:!e,isHorizontal:!!e});return{getTranslator:function(){return t},update:function(e,n,i){t.update(e,n,i)},getVisibleArea:function(){var e=t.getCanvasVisibleArea();return[e.min,e.max]},visualRange:h.noop,calculateInterval:h.noop,getMarginOptions:function(){return{}}}}var C=r.default.inherit({_getLayoutItems:h.noop,_useLinks:!1,_themeDependentChanges:["OPTIONS"],_initCore:function(){var e=this;e._tooltipTracker=e._renderer.root,e._tooltipTracker.attr({"pointer-events":"visible"}),e._createHtmlElements(),e._initTooltipEvents(),e._argumentAxis=w(!0),e._valueAxis=w()},_getDefaultSize:function(){return this._defaultSize},_disposeCore:function(){this._disposeWidgetElements(),this._disposeTooltipEvents(),this._ranges=null},_optionChangesOrder:["OPTIONS"],_change_OPTIONS:function(){this._prepareOptions(),this._change(["UPDATE"])},_customChangesOrder:["UPDATE"],_change_UPDATE:function(){this._update()},_update:function(){var e=this;e._tooltipShown&&(e._tooltipShown=!1,e._tooltip.hide()),e._cleanWidgetElements(),e._updateWidgetElements(),e._drawWidgetElements()},_updateWidgetElements:function(){var e=this._getCorrectCanvas();this._updateRange(),this._argumentAxis.update(this._ranges.arg,e,this._getStick()),this._valueAxis.update(this._ranges.val,e)},_getStick:function(){},_applySize:function(e){this._allOptions.size={width:e[2]-e[0],height:e[3]-e[1]},this._change(["UPDATE"])},_setupResizeHandler:h.noop,_prepareOptions:function(){return y(!0,{},this._themeManager.theme(),this.option())},_getTooltipCoords:function(){var e=this._canvas,t=this._renderer.getRootOffset();return{x:e.width/2+t.left,y:e.height/2+t.top}},_initTooltipEvents:function(){var e={widget:this};this._renderer.root.off("."+_).on(v,e,b)},_showTooltip:function(){var e=this;e._tooltipShown||(e._tooltipShown=!0,e._getTooltip().isEnabled()&&e._tooltip.show(e._getTooltipData(),e._getTooltipCoords(),{}))},_hideTooltip:function(){this._tooltipShown&&(this._tooltipShown=!1,this._tooltip.hide())},_stopCurrentHandling:function(){this._hideTooltip()},_enableOutHandler:function(){var e=this;if(!e._outHandler){var t=function(t){var n=t.pageX,i=t.pageY,o=e._renderer.getRootOffset(),a=o.left,r=o.top,s=x(n-a),l=x(i-r);(function(e,t,n){var i=e.width,o=e.height;return(0,d.pointInCanvas)({left:0,top:0,right:i,bottom:o,width:i,height:o},t,n)})(e._canvas,s,l)||(e._hideTooltip(),e._disableOutHandler())};i.default.on(o.default.getDocument(),v,t),this._outHandler=t}},_disableOutHandler:function(){this._outHandler&&i.default.off(o.default.getDocument(),v,this._outHandler),this._outHandler=null},_disposeTooltipEvents:function(){this._tooltipTracker.off(),this._disableOutHandler(),this._renderer.root.off("."+_)},_getTooltip:function(){var e=this;return e._tooltip||(m.apply(this,arguments),e._setTooltipRendererOptions(e._tooltipRendererOptions),e._tooltipRendererOptions=null,e._setTooltipOptions()),e._tooltip}}),S=C;t.default=S,C.addPlugin(f.plugin),m=C.prototype._initTooltip,C.prototype._initTooltip=h.noop;var k=C.prototype._disposeTooltip;C.prototype._disposeTooltip=function(){this._tooltip&&k.apply(this,arguments)},C.prototype._setTooltipRendererOptions=function(){var e=this._getRendererOptions();this._tooltip?this._tooltip.setRendererOptions(e):this._tooltipRendererOptions=e},C.prototype._setTooltipOptions=function(){var e,t,n,i,o=this._tooltip,r=o&&this._getOption("tooltip");o&&o.update(y({},r,{customizeTooltip:(e=r.customizeTooltip,t=r.font,n=this.option("rtlEnabled"),i=function(e,t){var n=e.lineSpacing,i=(null!=n?n:2)+e.size;return function(e){for(var n="",o=e.valueText,a=0;a<o.length;a+=2)n+="<tr><td>"+o[a]+"</td><td style='width: 15px'></td><td style='text-align: "+(t?"left":"right")+"'>"+o[a+1]+"</td></tr>";return{html:"<table style='border-spacing:0px; line-height: "+i+"px'>"+n+"</table>"}}}(t,n),(0,a.isFunction)(e)?function(t){var n=e.call(t,t);return"html"in n||"text"in n||y(n,i.call(t,t)),n}:i),enabled:r.enabled&&this._isTooltipEnabled()}))};var D=(0,s.extend)(!0,{},p.plugin,{init:h.noop,dispose:h.noop,customize:null,members:{_getExportMenuOptions:null}});C.addPlugin(D),e.exports=t.default,e.exports.default=t.default},59989:function(e,t,n){t.default=void 0;var i=n(95479),o=r(n(55628)),a=r(n(99393));function r(e){return e&&e.__esModule?e:{default:e}}var s=Number,l=isFinite,u=o.default.inherit({_rootClassPrefix:"dxb",_rootClass:"dxb-bullet",_themeSection:"bullet",_defaultSize:{width:300,height:30,left:1,right:1,top:2,bottom:2},_disposeWidgetElements:function(){delete this._zeroLevelPath,delete this._targetPath,delete this._barValuePath},_cleanWidgetElements:function(){this._zeroLevelPath.remove(),this._targetPath.remove(),this._barValuePath.remove()},_drawWidgetElements:function(){this._drawBullet(),this._drawn()},_createHtmlElements:function(){var e=this._renderer;this._zeroLevelPath=e.path(void 0,"line").attr({class:"dxb-zero-level","stroke-linecap":"square"}),this._targetPath=e.path(void 0,"line").attr({class:"dxb-target","stroke-linecap":"square"}),this._barValuePath=e.path(void 0,"line").attr({class:"dxb-bar-value","stroke-linecap":"square"})},_prepareOptions:function(){var e,t,n,i,o,a,r=this;r._allOptions=e=r.callBase();var l=void 0===r._allOptions.value,u=void 0===r._allOptions.target;r._tooltipEnabled=!(l&&u),l&&(r._allOptions.value=0),u&&(r._allOptions.target=0),e.value=o=s(e.value),e.target=a=s(e.target),void 0===r._allOptions.startScaleValue&&(r._allOptions.startScaleValue=a<o?a:o,r._allOptions.startScaleValue=r._allOptions.startScaleValue<0?r._allOptions.startScaleValue:0),void 0===r._allOptions.endScaleValue&&(r._allOptions.endScaleValue=a>o?a:o),e.startScaleValue=t=s(e.startScaleValue),e.endScaleValue=n=s(e.endScaleValue),n<t&&(i=n,r._allOptions.endScaleValue=t,r._allOptions.startScaleValue=i,r._allOptions.inverted=!0)},_updateRange:function(){var e=this._allOptions;this._ranges={arg:{invert:e.rtlEnabled?!e.inverted:e.inverted,min:e.startScaleValue,max:e.endScaleValue,axisType:"continuous",dataType:"numeric"},val:{min:0,max:1,axisType:"continuous",dataType:"numeric"}}},_drawBullet:function(){var e=this._allOptions,t=e.startScaleValue!==e.endScaleValue,n=l(e.startScaleValue),i=l(e.endScaleValue),o=l(e.value),a=l(e.target);t&&i&&n&&a&&o&&(this._drawBarValue(),this._drawTarget(),this._drawZeroLevel())},_getTargetParams:function(){var e=this,t=e._allOptions,n=e._valueAxis.getTranslator(),i=e._argumentAxis.getTranslator().translate(t.target);return{points:[i,n.translate(.02),i,n.translate(.98)],stroke:t.targetColor,"stroke-width":t.targetWidth}},_getBarValueParams:function(){var e,t,n=this,i=n._allOptions,o=n._argumentAxis.getTranslator(),a=n._valueAxis.getTranslator(),r=i.startScaleValue,s=i.endScaleValue,l=i.value,u=a.translate(.1),d=a.translate(.9);return l>0?(e=r<=0?0:r,t=l>=s?s:l<e?e:l):(e=s>=0?0:s,t=l<r?r:l>e?e:l),{points:[e=o.translate(e),d,t=o.translate(t),d,t,u,e,u],fill:i.color}},_getCorrectCanvas:function(){return this._canvas},_getZeroLevelParams:function(){var e=this,t=e._valueAxis.getTranslator(),n=e._argumentAxis.getTranslator().translate(0);return{points:[n,t.translate(.02),n,t.translate(.98)],stroke:e._allOptions.targetColor,"stroke-width":1}},_drawZeroLevel:function(){var e=this,t=e._allOptions;0>t.endScaleValue||0<t.startScaleValue||!t.showZeroLevel||e._zeroLevelPath.attr(e._getZeroLevelParams()).sharp().append(e._renderer.root)},_drawTarget:function(){var e=this,t=e._allOptions,n=t.target;n>t.endScaleValue||n<t.startScaleValue||!t.showTarget||e._targetPath.attr(e._getTargetParams()).sharp().append(e._renderer.root)},_drawBarValue:function(){this._barValuePath.attr(this._getBarValueParams()).append(this._renderer.root)},_getTooltipCoords:function(){var e=this._canvas,t=this._renderer.getRootOffset(),n=this._barValuePath.getBBox();return{x:n.x+n.width/2+t.left,y:e.height/2+t.top}},_getTooltipData:function(){var e=this._tooltip,t=this._allOptions,n=t.value,i=t.target,o=e.formatValue(n),a=e.formatValue(i);return{originalValue:n,originalTarget:i,value:o,target:a,valueText:["Actual Value:",o,"Target Value:",a]}},_isTooltipEnabled:function(){return this._tooltipEnabled}});(0,i.each)(["color","targetColor","targetWidth","showTarget","showZeroLevel","value","target","startScaleValue","endScaleValue"],(function(e,t){u.prototype._optionChangesMap[t]="OPTIONS"})),(0,a.default)("dxBullet",u);var d=u;t.default=d,e.exports=t.default,e.exports.default=t.default},51876:function(e,t,n){t.default=void 0;var i=d(n(55628)),o=n(45865),a=n(54932),r=n(19157),s=n(35922),l=d(n(99393)),u=n(1539);function d(e){return e&&e.__esModule?e:{default:e}}var c={line:!0,spline:!0,stepline:!0,area:!0,steparea:!0,splinearea:!0,bar:!0,winloss:!0},h=Math,f=h.abs,p=h.round,g=h.max,m=h.min,_=isFinite,v=Number,y=String;function x(e,t,n,i){return n!==i.first&&n!==i.last||(e=t.firstLastColor),(i.min||[]).indexOf(n)>=0&&(e=t.minColor),(i.max||[]).indexOf(n)>=0&&(e=t.maxColor),e}var b=i.default.inherit({_rootClassPrefix:"dxsl",_rootClass:"dxsl-sparkline",_themeSection:"sparkline",_defaultSize:{width:250,height:30},_initCore:function(){this.callBase(),this._createSeries()},_initialChanges:["DATA_SOURCE"],_dataSourceChangedHandler:function(){this._requestChange(["UPDATE"])},_updateWidgetElements:function(){this._updateSeries(),this.callBase()},_disposeWidgetElements:function(){var e=this;e._series&&e._series.dispose(),e._series=e._seriesGroup=e._seriesLabelGroup=null},_cleanWidgetElements:function(){this._seriesGroup.remove(),this._seriesLabelGroup.remove(),this._seriesGroup.clear(),this._seriesLabelGroup.clear(),this._series.removeGraphicElements(),this._series.removePointElements(),this._series.removeBordersGroup()},_drawWidgetElements:function(){this._dataIsLoaded()&&(this._drawSeries(),this._drawn())},_getCorrectCanvas:function(){var e=this._allOptions,t=this._canvas,n=e.pointSize&&Math.ceil(e.pointSize/2)+2,i=e.type;return"bar"!==i&&"winloss"!==i&&(e.showFirstLast||e.showMinMax)?{width:t.width,height:t.height,left:t.left+n,right:t.right+n,top:t.top+n,bottom:t.bottom+n}:t},_prepareOptions:function(){var e=this;e._allOptions=e.callBase(),e._allOptions.type=(0,r.normalizeEnum)(e._allOptions.type),c[e._allOptions.type]||(e._allOptions.type="line")},_createHtmlElements:function(){this._seriesGroup=this._renderer.g().attr({class:"dxsl-series"}),this._seriesLabelGroup=this._renderer.g().attr({class:"dxsl-series-labels"})},_createSeries:function(){this._series=new a.Series({renderer:this._renderer,seriesGroup:this._seriesGroup,labelsGroup:this._seriesLabelGroup,argumentAxis:this._argumentAxis,valueAxis:this._valueAxis},{widgetType:"chart",type:"line"})},_updateSeries:function(){var e=this,t=e._series;e._prepareDataSource();var n=e._prepareSeriesOptions();t.updateOptions(n);var i={groups:[{series:[t]}]};i.argumentOptions={type:"bar"===n.type?"discrete":void 0},e._simpleDataSource=(0,o.validateData)(e._simpleDataSource,i,e._incidentOccurred,{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0})[t.getArgumentField()],n.customizePoint=e._getCustomizeFunction(),t.updateData(e._simpleDataSource),t.createPoints(),e._groupsDataCategories=i.categories},_optionChangesMap:{dataSource:"DATA_SOURCE"},_optionChangesOrder:["DATA_SOURCE"],_change_DATA_SOURCE:function(){this._updateDataSource()},_prepareDataSource:function(){var e=this,t=e._allOptions,n=t.argumentField,i=t.valueField,o=function(e,t,n,i){return(0,r.map)(e,(function(e,o){var a,r,s=null;return void 0!==e&&(s={},a=_(e),s[t]=a?y(o):e[t],r=a?e:e[n],s[n]=null===r?i?void 0:r:v(r),s=void 0!==s[t]&&void 0!==s[n]?s:null),s}))}(e._dataSourceItems()||[],n,i,e.option("ignoreEmptyPoints"));"winloss"===t.type?(e._winlossDataSource=o,e._simpleDataSource=function(e,t,n,i){return(0,r.map)(e,(function(e){var o={};return o[t]=e[t],f(e[n]-i)<1e-4?o[n]=0:e[n]>i?o[n]=1:o[n]=-1,o}))}(o,n,i,t.winlossThreshold)):e._simpleDataSource=o},_prepareSeriesOptions:function(){var e=this._allOptions,t="winloss"===e.type?"bar":e.type;return{visible:!0,argumentField:e.argumentField,valueField:e.valueField,color:e.lineColor,width:e.lineWidth,widgetType:"chart",type:t,opacity:-1!==t.indexOf("area")?this._allOptions.areaOpacity:void 0,point:{size:e.pointSize,symbol:e.pointSymbol,border:{visible:!0,width:2},color:e.pointColor,visible:!1,hoverStyle:{border:{}},selectionStyle:{border:{}}},border:{color:e.lineColor,width:e.lineWidth,visible:"bar"!==t}}},_getCustomizeFunction:function(){var e=this,t=e._allOptions,n=e._winlossDataSource||e._simpleDataSource,i=e._getExtremumPointsIndexes(n);return"winloss"===t.type||"bar"===t.type?function(e,t,n){return function(){var i=this.index,o="winloss"===t.type,a=o?t.winlossThreshold:0,r=o?n[i][t.valueField]:this.value,s=o?t.winColor:t.barPositiveColor,l=o?t.lossColor:t.barNegativeColor;return{color:x(r>=a?s:l,t,i,e)}}}(i,t,e._winlossDataSource):function(e,t){return function(){var n=x(void 0,t,this.index,e);return n?{visible:!0,border:{color:n}}:{}}}(i,t)},_getExtremumPointsIndexes:function(e){var t=this,n=t._allOptions,i=e.length-1,o={};return t._minMaxIndexes=function(e,t){var n,i,o=(e[0]||{})[t]||0,a=o,r=o,s=[0],l=[0],u=e.length;for(i=1;i<u;i++)(n=e[i][t])<a?(a=n,s=[i]):n===a&&s.push(i),n>r?(r=n,l=[i]):n===r&&l.push(i);return r===a&&(s=l=[]),{minIndexes:s,maxIndexes:l}}(e,n.valueField),n.showFirstLast&&(o.first=0,o.last=i),n.showMinMax&&(o.min=t._minMaxIndexes.minIndexes,o.max=t._minMaxIndexes.maxIndexes),o},_getStick:function(){return{stick:"bar"!==this._series.type}},_updateRange:function(){var e,t=this,n=t._series,i=n.type,o="bar"===i,a="winloss"===i,r=n.getRangeData(),l=t._allOptions.minValue,u=(0,s.isDefined)(l)&&_(l),d=t._allOptions.maxValue,c=(0,s.isDefined)(d)&&_(d),h=.15*(r.val.max-r.val.min);o||a||"area"===i?(0!==r.val.min&&(r.val.min-=h),0!==r.val.max&&(r.val.max+=h)):(r.val.min-=h,r.val.max+=h),(u||c)&&(u&&c?(r.val.minVisible=m(l,d),r.val.maxVisible=g(l,d)):(r.val.minVisible=u?v(l):void 0,r.val.maxVisible=c?v(d):void 0),a&&(r.val.minVisible=u?g(r.val.minVisible,-1):void 0,r.val.maxVisible=c?m(r.val.maxVisible,1):void 0)),n.getPoints().length>1&&o&&(e=.1*(r.arg.max-r.arg.min),r.arg.min=r.arg.min-e,r.arg.max=r.arg.max+e),r.arg.categories=t._groupsDataCategories,t._ranges=r},_getBarWidth:function(e){var t=this._canvas,n=4*e,i=t.width-t.left-t.right-n,o=p(i/e);return o<1&&(o=1),o>50&&(o=50),o},_correctPoints:function(){var e,t,n=this,i=n._allOptions.type,o=n._series.getPoints(),a=o.length;if("bar"===i||"winloss"===i)for(e=n._getBarWidth(a),t=0;t<a;t++)o[t].correctCoordinates({width:e,offset:0})},_drawSeries:function(){var e=this;e._simpleDataSource.length>0&&(e._correctPoints(),e._series.draw(),e._seriesGroup.append(e._renderer.root))},_isTooltipEnabled:function(){return!!this._simpleDataSource.length},_getTooltipData:function(){var e=this,t=e._allOptions,n=e._winlossDataSource||e._simpleDataSource,i=e._tooltip;if(0===n.length)return{};var o=e._minMaxIndexes,a=t.valueField,r=n[0][a],l=n[n.length-1][a],u=(0,s.isDefined)(o.minIndexes[0])?n[o.minIndexes[0]][a]:r,d=(0,s.isDefined)(o.maxIndexes[0])?n[o.maxIndexes[0]][a]:r,c=i.formatValue(r),h=i.formatValue(l),f=i.formatValue(u),p=i.formatValue(d),g={firstValue:c,lastValue:h,minValue:f,maxValue:p,originalFirstValue:r,originalLastValue:l,originalMinValue:u,originalMaxValue:d,valueText:["Start:",c,"End:",h,"Min:",f,"Max:",p]};return"winloss"===t.type&&(g.originalThresholdValue=t.winlossThreshold,g.thresholdValue=i.formatValue(t.winlossThreshold)),g}});(0,r.map)(["lineColor","lineWidth","areaOpacity","minColor","maxColor","barPositiveColor","barNegativeColor","winColor","lessColor","firstLastColor","pointSymbol","pointColor","pointSize","type","argumentField","valueField","winlossThreshold","showFirstLast","showMinMax","ignoreEmptyPoints","minValue","maxValue"],(function(e){b.prototype._optionChangesMap[e]="OPTIONS"})),(0,l.default)("dxSparkline",b);var w=b;t.default=w,b.addPlugin(u.plugin),e.exports=t.default,e.exports.default=t.default},86231:function(e,t,n){t.addCacheItem=function(e){var t=++k;e._cache=t,D[t]=e},t.currentTheme=A,t.getTheme=I,t.refreshTheme=function(){return C(D,(function(){this.refresh()})),this},t.registerTheme=O,t.registerThemeSchemeAlias=function(e,t){b[e]=t},t.removeCacheItem=function(e){delete D[e._cache]};var i=n(13306),o=n(95479),a=n(19157),r=n(75811),s=n(35922),l=_(n(8839)),u=_(n(39726)),d=_(n(17374)),c=_(n(14870)),h=_(n(83313)),f=_(n(25257)),p=_(n(84253)),g=_(n(60350)),m=_(n(11239));function _(e){return e&&e.__esModule?e:{default:e}}var v,y={},x={},b={},w=i.extend,C=o.each,S=null,k=0,D={};function I(e){var t=(0,a.normalizeEnum)(e);return y[t]||y[x[t]||A()]}function T(e,t){return x[e+"."+t]||b[e+"."+t]||x[e]}function E(e,t,n){return T(e+t,n)||T(e,n)}function A(e,t){if(!arguments.length)return S||T((0,r.current)())||v;var n=(0,a.normalizeEnum)(t);return S=(e&&e.platform?E((0,a.normalizeEnum)(e.platform),e.version,n):T((0,a.normalizeEnum)(e),n))||S,this}function O(e,t){var n=(0,a.normalizeEnum)(e&&e.name);n&&(e.isDefault&&(v=n),function(e,t){var n=function(e,t){var n=e.indexOf(".");return n>0?{name:e.substring(0,n),scheme:e.substring(n+1)}:null}(e)||{name:e},i=n.name,o=n.scheme;o?(x[i]=x[i]||t,x[i+"."+o]=t):x[i]=t}(n,n),y[n]=w(!0,{},I(t),function(e){return P((e=w(!0,{loadingIndicator:{font:{}},export:{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},"chart:common:annotation":{font:{},border:{}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},sankey:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},e)).loadingIndicator,"backgroundColor",e),P(e.chart.commonSeriesSettings.candlestick,"innerColor",null,e.backgroundColor),P(e.map.background,"color",null,e.backgroundColor),P(e.title.font,"color",null,e.primaryTitleColor),M(e.title,"subtitle",null,e.title),P(e.legend.font,"color",null,e.secondaryTitleColor),P(e.legend.border,"color",null,e.gridColor),function(e){var t=e["chart:common:axis"],n="color";C([t.grid,t.minorGrid],(function(t,i){P(i,n,null,e.gridColor)})),C([t,t.tick,t.minorTick,t.label.font],(function(t,i){P(i,n,null,e.axisColor)})),P(t.title.font,n,null,e.secondaryTitleColor),P(e.gauge.scale.label.font,n,null,e.axisColor),P(e.gauge.scale.tick,n,null,e.backgroundColor),P(e.gauge.scale.minorTick,n,null,e.backgroundColor),P(e.rangeSelector.scale.label.font,n,null,e.axisColor)}(e),C(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet","sankey"],(function(t,n){P(e[n],"redrawOnResize",e),P(e[n],"containerBackgroundColor",null,e.backgroundColor),M(e[n],"tooltip",e),M(e[n],"export",e)})),C(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sankey"],(function(t,n){M(e[n],"loadingIndicator",e),M(e[n],"legend",e),M(e[n],"title",e)})),C(["chart","pie","polar"],(function(t,n){M(e,n,null,e["chart:common"])})),C(["chart","polar"],(function(t,n){e[n]=e[n]||{},M(e[n],"commonAxisSettings",null,e["chart:common:axis"])})),C(["chart","polar","map","pie"],(function(t,n){e[n]=e[n]||{},M(e[n],"commonAnnotationSettings",null,e["chart:common:annotation"])})),M(e.rangeSelector.chart,"commonSeriesSettings",e.chart),M(e.rangeSelector.chart,"dataPrepareSettings",e.chart),P(e.treeMap.group.border,"color",null,e.gridColor),P(e.treeMap.tile.selectionStyle.border,"color",null,e.primaryTitleColor),P(e.treeMap.group.selectionStyle.border,"color",null,e.primaryTitleColor),P(e.map.legend,"backgroundColor",e),function(e){var t=e.map;C(["area","line","marker"],(function(e,n){M(t,"layer:"+n,null,t.layer)})),C(["dot","bubble","pie","image"],(function(e,n){M(t,"layer:marker:"+n,null,t["layer:marker"])}))}(e),e}(e)))}function P(e,t,n,i){var o=n?n[t]:i;void 0!==o&&void 0===e[t]&&(e[t]=o)}function M(e,t,n,i){var o=n?n[t]:i;void 0!==o&&(e[t]=w(!0,{},o,e[t]))}(0,s.isEmptyObject)(y)&&(0,s.isEmptyObject)(x)&&!v&&[].concat(l.default,u.default,d.default,c.default,h.default,f.default,p.default,g.default,m.default).forEach((function(e){O(e.theme,e.baseThemeName)}))},46163:function(e,t,n){t.default=void 0;var i=n(35922),o=n(60810),a=Math.round;function r(e){return e}var s={translate:function(e,t){var n=this,o=n._canvasOptions,r=n._categoriesToPoints[null==e?void 0:e.valueOf()],s=n.translateSpecialCase(e),l=o.startPointIndex||0,u=n._options.stick?0:.5;if((0,i.isDefined)(s))return a(s);if(!r&&0!==r)return null;var d=r+u-l+.5*(t=t||0);return a(n._calculateProjection(o.interval*d))},getInterval:function(){return this._canvasOptions.interval},getEventScale:function(e){return 1-(1-(e.deltaScale||1))/(.75+this.visibleCategories.length/this._categories.length)},zoom:function(e,t){var n,i=this,a=i._categories,r=i._canvasOptions,s=i._options.stick,l=r.invert,u=r.interval*t,d=e/u,c=(i.visibleCategories||[]).length,h=parseInt((r.startPointIndex||0)+d+.5),f=parseInt((0,o.adjust)(r.canvasLength/u)+(s?1:0))||1;l&&(h=parseInt((r.startPointIndex||0)+c-d+.5)-f),h<0&&(h=0),(n=h+f)>a.length&&(h=(n=a.length)-f)<0&&(h=0);var p=a.slice(parseInt(h),parseInt(n)),g=i._getDiscreteInterval(p.length,r);return t=g/r.interval,e=i.translate(l?p[p.length-1]:p[0])*t-(r.startPoint+(s?0:g/2)),{min:p[0],max:p[p.length-1],translate:e,scale:t}},getMinScale:function(e){var t=this,n=t._canvasOptions,i=(t.visibleCategories||t._categories).length;return i+=(parseInt(.1*i)||1)*(e?-2:2),n.canvasLength/(Math.max(i,1)*n.interval)},getScale:function(e,t){var n=this,o=n._canvasOptions,a=n.getCanvasVisibleArea(),r=!n._options.stick&&1,s=(0,i.isDefined)(e)?n.translate(e,-r):null,l=(0,i.isDefined)(t)?n.translate(t,+r):null;return null===s&&(s=o.invert?a.max:a.min),null===l&&(l=o.invert?a.min:a.max),n.canvasLength/Math.abs(l-s)},isValid:function(e){return!!(0,i.isDefined)(e)&&this._categoriesToPoints[e.valueOf()]>=0},getCorrectValue:r,to:function(e,t){var n=this._canvasOptions,i=this._categoriesToPoints[null==e?void 0:e.valueOf()],o=n.startPointIndex||0,r=i+(this._options.stick?0:.5)-o+(this._businessRange.invert?-1:1)*t*.5;return a(this._calculateProjection(n.interval*r))},from:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._canvasOptions,i=n.startPoint,o=this.visibleCategories||this._categories,r=o.length,s=this._options.stick?.5:0,l=a((e-i)/n.interval+s-.5-.5*t);return l>=r&&(l=r-1),l<0&&(l=0),n.invert&&(l=r-l-1),o[l]},_add:function(){return NaN},toValue:r,isValueProlonged:!0,getRangeByMinZoomValue:function(e,t){var n=this._categories,i=n.indexOf(t.minVisible)+e-1,o=n.indexOf(t.maxVisible)-e+1;return n[i]?[t.minVisible,n[i]]:[n[o],t.maxVisible]}};t.default=s,e.exports=t.default,e.exports.default=t.default},75480:function(e,t,n){t.default=void 0;var i,o=(i=n(91198))&&i.__esModule?i:{default:i};function a(e){return null!==e?new Date(e):e}var r={fromValue:a,toValue:a,_add:o.default.addDateInterval,convert:o.default.dateToMilliseconds};t.default=r,e.exports=t.default,e.exports.default=t.default},93175:function(e,t,n){t.default=void 0;var i,o=n(35922),a=(i=n(91198))&&i.__esModule?i:{default:i},r=n(60810),s=Math.floor,l={_intervalize:function(e,t){if((0,o.isDefined)(e))return"datetime"===this._businessRange.dataType?(e=(0,o.isNumeric)(e)?new Date(e):new Date(e.getTime()),e=a.default.correctDateWithUnitBeginning(e,t,null,this._options.firstDayOfWeek)):e=(0,r.adjust)(s((0,r.adjust)(e/t))*t,t),e},translate:function(e,t,n){var i=this,a=i.translateSpecialCase(e);return(0,o.isDefined)(a)?Math.round(a):(n=n||i._options.interval,i.isValid(e,n)?i.to(e,t,n):null)},getInterval:function(){return Math.round(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},zoom:function(){},getMinScale:function(){},getScale:function(){},_parse:function(e){return"datetime"===this._businessRange.dataType?new Date(e):Number(e)},fromValue:function(e){return this._parse(e)},toValue:function(e){return this._parse(e)},isValid:function(e,t){var n=this,i=n._canvasOptions,r=i.rangeMin,s=i.rangeMax;return t=t||n._options.interval,!(null===e||isNaN(e)||(e="datetime"===n._businessRange.dataType&&(0,o.isNumeric)(e)?new Date(e):e,t!==n._options.interval&&(r=n._intervalize(r,t),s=n._intervalize(s,t)),e.valueOf()<r||e.valueOf()>=a.default.addInterval(s,t)))},to:function(e,t,n){var i=this;n=n||i._options.interval;var o=i._intervalize(e,n),r=a.default.addInterval(o,n),l=i._to(o),u=i._to(r);return t?t>0&&(l=u):l=s((l+u)/2),l},_to:function(e){var t=this._canvasOptions,n=t.rangeMinVisible,i=t.rangeMaxVisible,o=e-n;return e<n?o=0:e>i&&(o=a.default.addInterval(i,this._options.interval)-n),this._conversionValue(this._calculateProjection(o*this._canvasOptions.ratioOfCanvasRange))},from:function(e,t){var n,i=this,o=i._options.interval,r=o,s=i._canvasOptions,l=s.rangeMinVisible,u=s.rangeMaxVisible;return"datetime"===i._businessRange.dataType&&(r=a.default.dateToMilliseconds(o)),n=i._calculateUnProjection((e-i._canvasOptions.startPoint)/i._canvasOptions.ratioOfCanvasRange),(n=i._intervalize(a.default.addInterval(n,r/2,t>0),o))<l?n=l:n>u&&(n=u),n},_add:function(){return NaN},isValueProlonged:!0};t.default=l,e.exports=t.default,e.exports.default=t.default},1804:function(e,t,n){t.default=void 0;var i=n(19157),o=n(35922),a={fromValue:function(e){return null!==e?(0,i.getLogExt)(e,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):e},toValue:function(e){return null!==e?(0,i.raiseToExt)(e,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.from(t.min+e),i=this._canvasOptions;return Math.pow(i.base,i.rangeMinVisible+this.fromValue(this.from(t.min))-this.fromValue((0,o.isDefined)(n)?n:this.from(t.max)))},checkMinBarSize:function(e,t,n){var i,a,r=this._canvasOptions,s=n-e,l=this.constructor.prototype.checkMinBarSize;return(0,o.isDefined)(t)&&s>0?(i=l(this.fromValue(n/s),this.fromValue(t)-r.rangeMinVisible),a=Math.pow(r.base,this.fromValue(s)+i)-s):a=l(e,t),a}};t.default=a,e.exports=t.default,e.exports.default=t.default},21177:function(e,t,n){t.Range=void 0;var i=n(35922),o=n(13306),a=n(19157),r=i.isDefined,s=i.isDate,l=i.isFunction,u="min",d="max",c="minVisible",h="maxVisible";function f(e,t){return t<e}function p(e,t){return t>e}function g(e,t,n,i){var o=r(t);r(e)?o&&i(e,t)&&n(t):o&&n(t)}var m=function(e){e&&(0,o.extend)(this,e)};t.Range=m;var _=m;_.prototype={constructor:_,addRange:function(e){var t=this,n=t.categories,i=e.categories,o="discrete"===t.axisType,s=function(n,i){g(t[n],e[n],(function(e){t[n]=e}),i)},l=function(e,n,i){g(t[e],t[n],(function(n){r(t[e])&&(t[e]=n)}),i)},m=function(n){t[n]=t[n]||e[n]};return m("invert"),m("axisType"),m("dataType"),m("isSpacedMargin"),"logarithmic"===t.axisType?m("base"):t.base=void 0,s(u,f),s(d,p),o?(m(c),m(h)):(s(c,f),s(h,p)),s("interval",f),o||(l(u,c,f),l(u,h,f),l(d,h,p),l(d,c,p)),t.categories=void 0===n?i:i?(0,a.unique)(n.concat(i)):n,"logarithmic"===t.axisType&&(m("allowNegatives"),s("linearThreshold",f)),t},isEmpty:function(){return!(r(this.min)&&r(this.max)||this.categories&&0!==this.categories.length)},correctValueZeroLevel:function(){var e=this;if(s(e.max)||s(e.min))return e;function t(t,n){e[t]<0&&e[n]<0&&(e[n]=0),e[t]>0&&e[n]>0&&(e[t]=0)}return t(u,d),t(c,h),e},sortCategories:function(e){if(!1!==e&&this.categories)if(Array.isArray(e)){var t=e.map((function(e){return e.valueOf()})),n=this.categories.filter((function(e){return-1===t.indexOf(e.valueOf())}));this.categories=e.concat(n)}else{var i=!l(e);i&&"string"!==this.dataType?e=function(e,t){return e.valueOf()-t.valueOf()}:i&&(e=!1),e&&this.categories.sort(e)}}}},17953:function(e,t){t.Translator1D=i;var n=Number;function i(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3]).setInverted(!1)}i.prototype={constructor:i,setDomain:function(e,t){var i=this;return i._domain1=n(e),i._domain2=n(t),i._domainDelta=i._domain2-i._domain1,i},setCodomain:function(e,t){var i=this;return i._codomain1=n(e),i._codomain2=n(t),i._codomainDelta=i._codomain2-i._codomain1,i},setInverted:function(e){this.inverted=e},getDomain:function(){return[this._domain1,this._domain2]},getCodomain:function(){return[this._codomain1,this._codomain2]},getDomainStart:function(){return this._domain1},getDomainEnd:function(){return this._domain2},getCodomainStart:function(){return this._codomain1},getCodomainEnd:function(){return this._codomain2},getDomainRange:function(){return this._domainDelta},getCodomainRange:function(){return this._codomainDelta},translate:function(e){var t=(n(e)-this._domain1)/this._domainDelta;return this.inverted&&(t=1-t),0<=t&&t<=1?this._codomain1+t*this._codomainDelta:NaN},adjust:function(e){var t=(n(e)-this._domain1)/this._domainDelta,i=NaN;return t<0?i=this._domain1:t>1?i=this._domain2:0<=t&&t<=1&&(i=n(e)),i}}},87276:function(e,t,n){t.Translator2D=void 0;var i=n(13306),o=n(95479),a=n(21177),r=p(n(46163)),s=p(n(93175)),l=p(n(75480)),u=p(n(1804)),d=n(19157),c=n(35922),h=n(60810),f=p(n(91198));function p(e){return e&&e.__esModule?e:{default:e}}var g=Math.abs,m=["width","height","left","top","bottom","right"],_={to:function(e){var t=this._canvasOptions.startPoint+(this._options.conversionValue?e:Math.round(e));return t>this._canvasOptions.endPoint?this._canvasOptions.endPoint:t},from:function(e){return e-this._canvasOptions.startPoint}},v=function(e){return(0,o.each)(m,(function(t,n){e[n]=parseInt(e[n])||0})),e};function y(e){return{isStartSide:e?function(e,t,n,i){return e<=t[t.length-1][i]}:function(e,t,n,i){return e<t[0][n]},isEndSide:e?function(e,t,n,i){return e>t[0][n]}:function(e,t,n,i){return e>=t[t.length-1][i]},isInBreak:e?function(e,t,n,i){return e>t[i]&&e<=t[n]}:function(e,t,n,i){return e>=t[n]&&e<t[i]},isBetweenBreaks:e?function(e,t,n,i,o){return e>=t[o]&&e<n[i]}:function(e,t,n,i,o){return e<t[i]&&e>=n[o]},getLength:e?function(e,t){return t.length-e.length}:function(e){return e.length},getBreaksSize:e?function(e,t){return t.cumulativeWidth-e.cumulativeWidth}:function(e){return e.cumulativeWidth}}}var x=function(e,t,n){this.update(e,t,n)};t.Translator2D=x,x.prototype={constructor:x,reinit:function(){var e=this,t=e._options,n=e._businessRange,o=n.categories||[],a={},c=e._prepareCanvasOptions(),h=(0,d.getCategoriesInfo)(o,n.minVisible,n.maxVisible).categories,p=h.length;if(n.isEmpty())a=_;else switch(n.axisType){case"logarithmic":a=u.default;break;case"semidiscrete":a=s.default,c.ratioOfCanvasRange=c.canvasLength/(f.default.addInterval(c.rangeMaxVisible,t.interval)-c.rangeMinVisible);break;case"discrete":a=r.default,e._categories=o,c.interval=e._getDiscreteInterval(t.addSpiderCategory?p+1:p,c),e._categoriesToPoints=function(e){var t={};return e.forEach((function(e,n){t[e.valueOf()]=n})),t}(o),p&&(c.startPointIndex=e._categoriesToPoints[h[0].valueOf()],e.visibleCategories=h);break;default:"datetime"===n.dataType&&(a=l.default)}(e._oldMethods||[]).forEach((function(t){delete e[t]})),e._oldMethods=Object.keys(a),(0,i.extend)(e,a),e._conversionValue=t.conversionValue?function(e){return e}:function(e){return Math.round(e)},e.sc={},e._checkingMethodsAboutBreaks=[y(!1),y(e.isInverted())],e._translateBreaks(),e._calculateSpecialValues()},_translateBreaks:function(){var e,t,n,i,o=this._breaks,a=this._options.breaksSize;if(void 0!==o)for(e=0,i=o.length;e<i;e++)t=o[e],n=this.translate(t.to),t.end=n,t.start=t.gapSize?n:this.isInverted()?n+a:n-a},_checkValueAboutBreaks:function(e,t,n,i,o){var a,r,s,l,u={length:0,breaksSize:void 0,inBreak:!1},d=e[e.length-1];if(o.isStartSide(t,e,n,i))return u;if(o.isEndSide(t,e,n,i))return{length:d.length,breaksSize:d.cumulativeWidth,inBreak:!1};for(a=0,r=e.length;a<r;a++){if(s=e[a],l=e[a-1],o.isInBreak(t,s,n,i)){u.inBreak=!0,u.break=s;break}if(l&&o.isBetweenBreaks(t,s,l,n,i)){u={length:o.getLength(l,d),breaksSize:o.getBreaksSize(l,d),inBreak:!1};break}}return u},isInverted:function(){return!(this._options.isHorizontal^this._businessRange.invert)},_getDiscreteInterval:function(e,t){var n=e-(this._options.stick?1:0);return n>0?t.canvasLength/n:t.canvasLength},_prepareCanvasOptions:function(){var e,t,n,i,o,a,r=this,s=r._businessRange,l=r._canvasOptions=(t=(e=s).min,n=e.max,i=e.minVisible,o=e.maxVisible,"logarithmic"===e.axisType&&(o=(0,d.getLogExt)(o,e.base,e.allowNegatives,e.linearThreshold),i=(0,d.getLogExt)(i,e.base,e.allowNegatives,e.linearThreshold),t=(0,d.getLogExt)(t,e.base,e.allowNegatives,e.linearThreshold),n=(0,d.getLogExt)(n,e.base,e.allowNegatives,e.linearThreshold)),{base:e.base,rangeMin:t,rangeMax:n,rangeMinVisible:i,rangeMaxVisible:o}),u=r._canvas,c=r._breaks;return l.startPadding=u.startPadding||0,l.endPadding=u.endPadding||0,r._options.isHorizontal?(l.startPoint=u.left+l.startPadding,a=u.width,l.endPoint=u.width-u.right-l.endPadding,l.invert=s.invert):(l.startPoint=u.top+l.startPadding,a=u.height,l.endPoint=u.height-u.bottom-l.endPadding,l.invert=!s.invert),r.canvasLength=l.canvasLength=l.endPoint-l.startPoint,l.rangeDoubleError=Math.pow(10,(0,d.getPower)(l.rangeMax-l.rangeMin)-(0,d.getPower)(a)-2),l.ratioOfCanvasRange=l.canvasLength/(l.rangeMaxVisible-l.rangeMinVisible),void 0!==c&&(l.ratioOfCanvasRange=(l.canvasLength-c[c.length-1].cumulativeWidth)/(l.rangeMaxVisible-l.rangeMinVisible-c[c.length-1].length)),l},updateCanvas:function(e){this._canvas=v(e),this.reinit()},updateBusinessRange:function(e){var t=this,n=e.breaks||[];t._userBreaks=e.userBreaks||[],t._businessRange=function(e){function t(t,n){!(0,c.isDefined)(e[t])&&(0,c.isDefined)(e[n])&&(e[t]=e[n])}return e instanceof a.Range||(e=new a.Range(e)),t("minVisible","min"),t("maxVisible","max"),e}(e),t._breaks=n.length?function(e,t){var n,i,o,a,r="logarithmic"===t.axisType?function(e){return(0,d.getLogExt)(e,t.base)}:function(e){return e},s=[],l=e.length,u=0;for(a=0;a<l;a++)i=r((n=e[a]).from),u+=(o=r(n.to))-i,s.push({trFrom:i,trTo:o,from:n.from,to:n.to,length:u,cumulativeWidth:n.cumulativeWidth});return s}(n,t._businessRange):void 0,t.reinit()},update:function(e,t,n){var o=this;o._options=(0,i.extend)(o._options||{},n),o._canvas=v(t),o.updateBusinessRange(e)},getBusinessRange:function(){return this._businessRange},getEventScale:function(e){return e.deltaScale||1},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var e,t=this,n=t._canvasOptions,i=n.startPoint-n.startPadding,o=n.endPoint+n.endPadding,a=t._businessRange,r=a.minVisible,s=a.maxVisible,l=i+n.canvasLength/2;if(r<0&&s>0&&r!==s&&(e=t.translate(0,1)),!(0,c.isDefined)(e)){var u=a.invert^(r<0&&s<=0);e=t._options.isHorizontal?u?o:i:u?i:o}t.sc={canvas_position_default:e,canvas_position_left:i,canvas_position_top:i,canvas_position_center:l,canvas_position_middle:l,canvas_position_right:o,canvas_position_bottom:o,canvas_position_start:n.invert?o:i,canvas_position_end:n.invert?i:o}},translateSpecialCase:function(e){return this.sc[e]},_calculateProjection:function(e){var t=this._canvasOptions;return t.invert?t.endPoint-e:t.startPoint+e},_calculateUnProjection:function(e){var t=this._canvasOptions;return"datetime"===this._businessRange.dataType&&(e=Math.round(e)),t.invert?t.rangeMaxVisible.valueOf()-e:t.rangeMinVisible.valueOf()+e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.from(t.min+e);return g(this.from(t.min)-((0,c.isDefined)(n)?n:this.from(t.max)))},checkMinBarSize:function(e,t,n){return g(e)<t?e>=0?t:-t:e},translate:function(e,t){var n=this.translateSpecialCase(e);return(0,c.isDefined)(n)?Math.round(n):isNaN(e)?null:this.to(e,t)},getInterval:function(e){var t,n=this._canvasOptions;return(e=null!==(t=e)&&void 0!==t?t:this._businessRange.interval)?Math.round(n.ratioOfCanvasRange*e):Math.round(n.endPoint-n.startPoint)},zoom:function(e,t,n){var i=this._canvasOptions;if(i.rangeMinVisible.valueOf()===i.rangeMaxVisible.valueOf()&&0!==e)return this.zoomZeroLengthRange(e,t);var o=i.startPoint,a=i.endPoint,r=this.isInverted(),s=(o+e)/t,l=(a+e)/t;n=n||{};var u,d,f=this.to(r?n.endValue:n.startValue),p=this.to(r?n.startValue:n.endValue);return f>s&&(l-=s-f,s=f,u=r?n.endValue:n.startValue),p<l&&(s-=l-p,l=p,d=r?n.startValue:n.endValue),p-f<l-s&&(s=f,l=p),t=(o+(e=(a-o)*s/(l-s)-o))/s||1,u=(0,c.isDefined)(u)?u:(0,h.adjust)(this.from(s,1)),d=(0,c.isDefined)(d)?d:(0,h.adjust)(this.from(l,-1)),t<=1&&(u=this._correctValueAboutBreaks(u,1===t?e:-1),d=this._correctValueAboutBreaks(d,1===t?e:1)),u>d?(u=u>n.endValue?n.endValue:u,d=d<n.startValue?n.startValue:d):(u=u<n.startValue?n.startValue:u,d=d>n.endValue?n.endValue:d),{min:u,max:d,translate:(0,h.adjust)(e),scale:(0,h.adjust)(t)}},_correctValueAboutBreaks:function(e,t){var n=this._userBreaks.filter((function(t){return e>=t.from&&e<=t.to}));return n.length?t>0?n[0].to:n[0].from:e},zoomZeroLengthRange:function(e,t){var n=this._canvasOptions,i=n.rangeMin,o=n.rangeMax,a=(o.valueOf()!==i.valueOf()?o.valueOf()-i.valueOf():g(n.rangeMinVisible.valueOf()-i.valueOf()))/n.canvasLength,r=(0,c.isDate)(o)||(0,c.isDate)(i),s="logarithmic"===this._businessRange.axisType,l=n.rangeMinVisible.valueOf()-a,u=n.rangeMaxVisible.valueOf()+a;return{min:l=s?(0,h.adjust)((0,d.raiseToExt)(l,n.base)):r?new Date(l):l,max:u=s?(0,h.adjust)((0,d.raiseToExt)(u,n.base)):r?new Date(u):u,translate:e,scale:t}},getMinScale:function(e){var t=this._businessRange,n=t.dataType,i=t.interval;return"datetime"===n&&1===i?this.getDateTimeMinScale(e):e?1.1:.9},getDateTimeMinScale:function(e){var t=this._canvasOptions,n=t.canvasLength/t.ratioOfCanvasRange;return n+=(parseInt(.1*n)||1)*(e?-2:2),t.canvasLength/(Math.max(n,1)*t.ratioOfCanvasRange)},getScale:function(e,t){var n=this._canvasOptions;return n.rangeMax===n.rangeMin?1:(e=(0,c.isDefined)(e)?this.fromValue(e):n.rangeMin,t=(0,c.isDefined)(t)?this.fromValue(t):n.rangeMax,(n.rangeMax-n.rangeMin)/Math.abs(e-t))},isValid:function(e){var t=this._canvasOptions;return null!==(e=this.fromValue(e))&&!isNaN(e)&&e.valueOf()+t.rangeDoubleError>=t.rangeMin&&e.valueOf()-t.rangeDoubleError<=t.rangeMax},getCorrectValue:function(e,t){var n,i=this,o=i._breaks;return e=i.fromValue(e),i._breaks&&!0===(n=i._checkValueAboutBreaks(o,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0])).inBreak?i.toValue(t>0?n.break.trTo:n.break.trFrom):i.toValue(e)},to:function(e,t){var n=this.getBusinessRange();if((0,c.isDefined)(n.maxVisible)&&(0,c.isDefined)(n.minVisible)&&n.maxVisible.valueOf()===n.minVisible.valueOf())return(0,c.isDefined)(e)&&n.maxVisible.valueOf()===e.valueOf()?this.translateSpecialCase(0===e&&this._options.shiftZeroValue?"canvas_position_default":"canvas_position_middle"):null;e=this.fromValue(e);var i=this,o=i._canvasOptions,a=i._breaks,r={length:0},s=0;return void 0!==a&&(r=i._checkValueAboutBreaks(a,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0]),s=(0,c.isDefined)(r.breaksSize)?r.breaksSize:0),!0===r.inBreak?t>0?r.break.start:t<0?r.break.end:null:i._conversionValue(i._calculateProjection((e-o.rangeMinVisible-r.length)*o.ratioOfCanvasRange+s))},from:function(e,t){var n=this,i=n._breaks,o={length:0},a=n._canvasOptions,r=a.startPoint,s=0;return void 0!==i&&(o=n._checkValueAboutBreaks(i,e,"start","end",n._checkingMethodsAboutBreaks[1]),s=(0,c.isDefined)(o.breaksSize)?o.breaksSize:0),!0===o.inBreak?t>0?n.toValue(o.break.trTo):t<0?n.toValue(o.break.trFrom):null:n.toValue(n._calculateUnProjection((e-r-s)/a.ratioOfCanvasRange+o.length))},isValueProlonged:!1,getRange:function(){return[this.toValue(this._canvasOptions.rangeMin),this.toValue(this._canvasOptions.rangeMax)]},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(e,t,n){return this._add(e,t,(this._businessRange.invert?-1:1)*n)},_add:function(e,t,n){return this.toValue(this.fromValue(e)+t*n)},fromValue:function(e){return null!==e?Number(e):null},toValue:function(e){return null!==e?Number(e):null},ratioOfCanvasRange:function(){return this._canvasOptions.ratioOfCanvasRange},convert:function(e){return e},getRangeByMinZoomValue:function(e,t){return t.minVisible+e<=this._businessRange.max?[t.minVisible,t.minVisible+e]:[t.maxVisible-e,t.maxVisible]}}},15584:function(e,t,n){var i;t.default=void 0;var o=((i=n(4080))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},4815:function(e,t,n){var i=s(n(49983)),o=s(n(21168)),a=n(13306),r=n(20576);function s(e){return e&&e.__esModule?e:{default:e}}var l=i.default.prototype,u=o.default.prototype;function d(e,t){var n=e.ctx;n.suspend(),n.change(t),n.resume()}l._eventsMap.onNodesInitialized={name:"nodesInitialized"},l._eventsMap.onNodesRendering={name:"nodesRendering"},l._createProxyType=function(){var e,t=this;function n(e){var t=this;e.proxy=t,t._id=e._id,t.level=e.level,t.index=e.index,t.data=e.data}n.prototype={constructor:n,getParent:function(){return e[this._id].parent.proxy||null},getChild:function(t){var n=e[this._id].nodes;return n?n[t].proxy:null},getChildrenCount:function(){var t=e[this._id].nodes;return t?t.length:0},getAllChildren:function(){var t,n=e[this._id].nodes,i=n&&n.length,o=[];for(t=0;t<i;++t)o.push(n[t].proxy);return o},getAllNodes:function(){var t=[];return function e(t,n){var i,o=t.nodes,a=o&&o.length;for(i=0;i<a;++i)n.push(o[i].proxy),e(o[i],n)}(e[this._id],t),t},isLeaf:function(){return!e[this._id].isNode()},isActive:function(){return e[this._id].isActive()},value:function(t){var n,i=e[this._id];return void 0!==t?(function(e,t){for(var n=t-e.value;e;)e.value+=n,e=e.parent}(i,t>0?Number(t):0),d(i,["TILING"]),n=this):n=i.value,n},label:function(t){var n,i=e[this._id];return void 0!==t?(i.customLabel=t?String(t):null,d(i,["LABELS"]),n=this):n=i.customLabel||i.label,n},customize:function(t){var n=e[this._id];return t&&(n._custom=n._custom||{},(0,a.extend)(!0,n._custom,t),n._partialState=n._partialLabelState=null),d(n,["TILES","LABELS"]),this},resetCustomization:function(){var t=e[this._id];return t._custom=t._partialState=t._partialLabelState=null,d(t,["TILES","LABELS"]),this}},t._extendProxyType(n.prototype),t._handlers.beginBuildNodes=function(){e=t._nodes,new n(t._root)},t._handlers.buildNode=function(e){new n(e)},t._handlers.endBuildNodes=function(){t._eventTrigger("nodesInitialized",{root:t._root.proxy})}},l._extendProxyType=r.noop;var c=l._resetNodes;l._resetNodes=function(){c.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var h=u.updateStyles;u.updateStyles=function(){var e=this;h.call(e),e._custom&&(e._partialState=!e.ctx.forceReset&&e._partialState||e.ctx.calculateState(e._custom),(0,a.extend)(!0,e.state,e._partialState))};var f=u.updateLabelStyle;u.updateLabelStyle=function(){var e=this,t=e._custom;f.call(e),t&&t.label&&(e._partialLabelState=!e.ctx.forceReset&&e._partialLabelState||function(e,t){var n=e.ctx.calculateLabelState(t);return"visible"in t&&(n.visible=!!t.visible),n}(e,t.label),e.labelState=(0,a.extend)(!0,{},e.labelState,e._partialLabelState))},l.getRootNode=function(){return this._root.proxy},l.resetNodes=function(){var e=this._context;return e.suspend(),e.change(["NODES_CREATE"]),e.resume(),this}},66831:function(e,t,n){function i(e,t,n){var i=t.createPalette(e.palette,{useHighlight:!0,extensionMode:e.paletteExtensionMode,count:e.colorizeGroups?r(n):o(n)});return(e.colorizeGroups?s:a)(i,n)}function o(e){var t,n,i=e.nodes.slice(),a=i.length,r=0;for(t=0;t<a;++t)(n=i[t]).isNode()?r=Math.max(r,o(n)):r+=1;return r}function a(e){var t=e.generateColors();return function(e){return t[e.index]}}function r(e){var t,n,i=e.nodes.slice(),o=i.length,a=0;for(t=0;t<o;++t)(n=i[t]).isNode()&&(a+=r(n)+1);return a}function s(e,t){var n=function(e,t){var n,i,o={},a=t.nodes.slice(),r=a.length;for(n=0;n<r;++n)(i=a[n]).isNode()?r=(a=a.concat(i.nodes)).length:o[i.parent._id]||(o[i.parent._id]=e.getNextColor());return o}(e,t);return function(e){return n[e._id]}}t.default=void 0,(0,n(19910).addColorizer)("discrete",i);var l=i;t.default=l,e.exports=t.default,e.exports.default=t.default},13652:function(e,t,n){t.default=void 0;var i=n(19910),o=Math.min,a=Math.max;function r(e){return[Number(e[0])||0,e[1]-e[0]||1]}function s(e,t){var n={};return function(i){var s=i.parent;return e(i,n[s._id]||(n[s._id]=function(e,t){var n,i,s=e.length,l=[];for(n=0;n<s;++n)i=t(e[n]),isFinite(i)&&l.push(i);return r([o.apply(null,l),a.apply(null,l)])}(s.nodes,t)))}}function l(e,t){var n=t.createGradientPalette(e.palette),o=(0,i.createColorCodeGetter)(e);return"range"in e?function(e,t){return function(n){return e(n,t)}}(a,r(e.range||[])):s(a,o);function a(e,t){return n.getColor((o(e)-t[0])/t[1])}}(0,i.addColorizer)("gradient",l);var u=l;t.default=u,e.exports=t.default,e.exports.default=t.default},19910:function(e,t,n){t.addColorizer=function(e,t){r[e]=t},t.createColorCodeGetter=function(e){return e.colorCodeField?(t=e.colorCodeField,function(e){return Number(e.data[t])}):u;var t},t.getColorizer=function(e,t,n){var u=(0,o.normalizeEnum)(e.type||i),d=r[u]&&r[u](e,t,n);return d?(e.colorizeGroups?l:s)(d):a.noop},t.setDefaultColorizer=function(e){i=e};var i,o=n(19157),a=n(20576),r={};function s(e){return function(t){return t.isNode()?void 0:e(t)}}function l(e){return function(t){var n=!t.isNode()&&t.parent;return n?n._groupColor=n._groupColor||e(n):void 0}}function u(e){return e.value}},73675:function(e,t,n){t.default=void 0;var i=n(19910);function o(e,t){var n=e.range||[],o=t.createDiscretePalette(e.palette,n.length-1),a=(0,i.createColorCodeGetter)(e);return function(e){return o.getColor(function(e,t){var n,i=0,o=t.length-1,a=-1;if(t[i]<=e&&e<=t[o])if(e===t[o])a=o-1;else{for(;o-i>1;)e<t[n=i+o>>1]?o=n:i=n;a=i}return a}(a(e),n))}}(0,i.addColorizer)("range",o);var a=o;t.default=a,e.exports=t.default,e.exports.default=t.default},77707:function(e,t,n){t.buildRectAppearance=function(e){var t=e.border||{};return{fill:e.color,opacity:e.opacity,stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,hatching:e.hatching}},t.buildTextAppearance=function(e,t){return{attr:{filter:t},css:(0,i.patchFontOptions)(e.font)}};var i=n(19157)},61104:function(e,t,n){var i,o=(i=n(49983))&&i.__esModule?i:{default:i},a=n(3603);n(4815);var r=o.default.prototype;r._eventsMap.onDrill={name:"drill"},(0,a.expand)(r,"_extendProxyType",(function(e){var t=this;e.drillDown=function(){t._drillToNode(this._id)}})),(0,a.expand)(r,"_onNodesCreated",(function(){this._drilldownIndex=-1})),r._drillToNode=function(e){var t,n=this;n._drilldownIndex!==e&&(t=n._nodes[e]||n._root).nodes&&(n._drilldownIndex=e,n._topNode=t,n._context.suspend(),n._context.change(["MAX_DEPTH","NODES_RESET"]),n._context.resume(),n._eventTrigger("drill",{node:t.proxy}))},r.resetDrillDown=function(){return this._drillToNode(-1),this},r.drillUp=function(){return this._drillToNode(this._topNode.parent._id||-1),this},r.getCurrentNode=function(){return this._topNode.proxy}},9888:function(e,t,n){var i=l(n(49983)),o=l(n(21168)),a=n(3603),r=n(77707),s=n(19157);function l(e){return e&&e.__esModule?e:{default:e}}n(4815),n(83469);var u=i.default.prototype,d=o.default.prototype;u._eventsMap.onHoverChanged={name:"hoverChanged"},(0,a.expand)(u._handlers,"calculateAdditionalStates",(function(e,t){e[1]=t.hoverStyle?(0,r.buildRectAppearance)(t.hoverStyle):{}})),i.default.addChange({code:"HOVER_ENABLED",handler:function(){var e=(0,s.parseScalar)(this._getOption("hoverEnabled",!0),!0);e||this.clearHover(),this._hoverEnabled=e},isThemeDependent:!0,isOptionChange:!0,option:"hoverEnabled"}),d.statesMap[1]=1,d.additionalStates.push(1),(0,a.expand)(u,"_extendProxyType",(function(e){var t=this;e.setHover=function(){t._hoverNode(this._id)},e.isHovered=function(){return t._hoverIndex===this._id}})),(0,a.expand)(u,"_onNodesCreated",(function(){this._hoverIndex=-1})),(0,a.expand)(u,"_changeGroupSettings",(function(){var e=this;e._groupHoverEnabled=(0,s.parseScalar)(e._getOption("group").hoverEnabled,!0),e._groupHoverEnabled||e.clearHover()})),u._applyHoverState=function(e,t){(function e(t,n,i){var o,a=t.isNode()&&t.nodes,r=a&&a.length;for(t.setState(n,i),o=0;o<r;++o)e(a[o],n,i)})(this._nodes[e],1,t),this._eventTrigger("hoverChanged",{node:this._nodes[e].proxy})},u._hoverNode=function(e){var t=this,n=t._hoverIndex;if(t._hoverEnabled&&n!==e){if(!t._groupHoverEnabled&&e>=0&&t._nodes[e].isNode())return void t.clearHover();t._context.suspend(),t._hoverIndex=-1,n>=0&&t._applyHoverState(n,!1),t._hoverIndex=e,e>=0&&t._applyHoverState(e,!0),t._context.resume()}},u.clearHover=function(){this._hoverNode(-1)}},21168:function(e,t,n){t.default=void 0;var i=n(13306);function o(){}var a=[function(e,t){e.smartAttr(t)},function(e,t){e.outer.attr({stroke:t.stroke,"stroke-width":t["stroke-width"],"stroke-opacity":t["stroke-opacity"]}),e.inner.smartAttr({fill:t.fill,opacity:t.opacity,hatching:t.hatching})}];(0,i.extend)(o.prototype,{value:0,isNode:function(){return!!(this.nodes&&this.level<this.ctx.maxLevel)},isActive:function(){var e=this.ctx;return this.level>=e.minLevel&&this.level<=e.maxLevel},updateStyles:function(){var e=this,t=Number(e.isNode());e.state=e._buildState(e.ctx.settings[t].state,!t&&e.color&&{fill:e.color})},_buildState:function(e,t){var n=(0,i.extend)({},e);return t?(0,i.extend)(n,t):n},updateLabelStyle:function(){var e=this.ctx.settings[Number(this.isNode())];this.labelState=e.labelState,this.labelParams=e.labelParams},_getState:function(){return this.state},applyState:function(){a[Number(this.isNode())](this.tile,this._getState())}});var r=o;t.default=r,e.exports=t.default,e.exports.default=t.default},74958:function(e,t,n){var i,o=((i=n(49983))&&i.__esModule?i:{default:i}).default.prototype;o._optionChangesMap.idField=o._optionChangesMap.parentField="NODES_CREATE",o._processDataSourceItems=function(e){var t,n,i,o,a,r={},s=this._getOption("idField",!0),l=this._getOption("parentField",!0),u=[];if(!s||!l||0===e.length)return{items:e,isPlain:!1};for(t=0;t<e.length;t++)(i=(n=e[t])[l])?(r[i]=r[i]||{items:[]},o=r[i].items):o=u,o.push(n);for(a in function e(t,n){var i,o,a,r=t.struct;for(o=0;o<n.length;o++)r[a=(i=n[o])[t.idField]]&&(i.items=r[a].items,r[a]=null,e(t,i.items))}({struct:r,idField:s},u),r)r[a]&&u.push(r[a]);return{items:u,isPlain:!0}}},13099:function(e,t,n){var i=u(n(49983)),o=u(n(21168)),a=n(3603),r=n(77707),s=n(19157),l=n(89386);function u(e){return e&&e.__esModule?e:{default:e}}n(4815),n(83469);var d=i.default.prototype,c=o.default.prototype;d._eventsMap.onSelectionChanged={name:"selectionChanged"},(0,a.expand)(d._handlers,"calculateAdditionalStates",(function(e,t){e[2]=t.selectionStyle?(0,r.buildRectAppearance)(t.selectionStyle):{}})),c.statesMap[2]=c.statesMap[3]=2,c.additionalStates.push(2),(0,a.expand)(d,"_onNodesCreated",(function(){this._selectionList.length=0})),(0,a.expand)(d,"_extendProxyType",(function(e){var t=this;e.select=function(e){t._selectNode(this._id,!!e)},e.isSelected=function(){return(0,l.inArray)(this._id,t._selectionList)>=0},t._selectionList=[]})),i.default.addChange({code:"SELECTION_MODE",handler:function(){var e,t=this,n=(0,s.normalizeEnum)(t._getOption("selectionMode",!0)),i=t._selectionList,o="none"===n?0:"multiple"===n?2:1;1===o&&i.length>1?(e=i.pop(),t.clearSelection(),i.push(e)):0===o&&t.clearSelection(),t._selectionMode=o},isThemeDependent:!0,isOptionChange:!0,option:"selectionMode"}),(0,a.expand)(d,"_applyTilesAppearance",(function(){this._selectionList.length&&function(e,t){var n,i,o=t.length;for(n=0;n<o;++n)i=e[t[n]],h[Number(i.isNode())](i.tile)}(this._nodes,this._selectionList)}));var h=[function(e){e.toForeground()},function(e){e.outer.toForeground(),e.inner.toForeground()}];d._applySelectionState=function(e,t){var n=this._nodes[e];n.setState(2,t),this._eventTrigger("selectionChanged",{node:n.proxy})},d._selectNode=function(e,t){var n,i,o,a=this;0!==a._selectionMode&&(a._context.suspend(),n=a._selectionList,i=(0,l.inArray)(e,n),t&&-1===i?(1===a._selectionMode&&n.length&&(o=n.pop(),a._applySelectionState(o,!1)),n.push(e),a._applySelectionState(e,!0)):!t&&i>=0&&(n.splice(i,1),a._applySelectionState(e,!1)),a._context.resume())},d.clearSelection=function(){var e,t=this,n=t._selectionList,i=n.length;if(0!==t._selectionMode){for(t._context.suspend(),e=0;e<i;++e)t._applySelectionState(n[e],!1);n.length=0,t._context.resume()}}},83469:function(e,t,n){var i=s(n(49983)),o=s(n(21168)),a=n(20576),r=n(13306);function s(e){return e&&e.__esModule?e:{default:e}}var l=i.default.prototype,u=o.default.prototype,d=l._handlers,c=d.calculateState,h=u._buildState;d.calculateState=function(e){var t={0:c(e)};return d.calculateAdditionalStates(t,e),t},d.calculateAdditionalStates=a.noop,u.code=0,u.statesMap={0:0},u.additionalStates=[],u._buildState=function(e,t){var n={0:h(e[0],t)};return this.additionalStates.length&&function(e,t,n,i){var o,a=i.length;for(o=0;o<a;++o)e[i[o]]=(0,r.extend)({},t,n[i[o]])}(n,n[0],e,this.additionalStates),n},u._getState=function(){return this.state[this.statesMap[this.code]]},u.setState=function(e,t){t?this.code|=e:this.code&=~e,this.ctx.change(["TILES"])}},60642:function(e,t,n){t.addAlgorithm=function(e,t){s[e]=t},t.buildSidesData=function(e,t,n){var i=void 0!==n?n:u(e),o=1-i,a=t[i],r=t[o],s=l[a],d=l[r];return{staticSide:e[2+i]-e[i],variedSide:e[2+o]-e[o],static1:i+s[0],static2:i+s[1],varied1:o+d[0],varied2:o+d[1],staticDir:a,variedDir:r}},t.calculateRectangles=function(e,t,n,i,o){var a,s,l,u,d=[0,0,0,0],c=i.static1,h=i.static2,f=n[c],p=i.staticDir,g=i.staticSide,m=o.sum;for(d[i.varied1]=n[i.varied1],d[i.varied2]=n[i.varied1]+i.variedDir*o.side,a=t,s=t+o.count;a<s;++a)(l=d.slice())[c]=f,u=r(g*e[a].value/m)||0,m-=e[a].value,g-=u,f+=p*u,l[h]=f,e[a].rect=l;n[i.varied1]=d[i.varied2]},t.getAlgorithm=function(e){return s[(0,a.normalizeEnum)(e)]||(0,o.isFunction)(e)&&e||i},t.getStaticSideIndex=void 0,t.setDefaultAlgorithm=function(e){i=s[e]};var i,o=n(35922),a=n(19157),r=Math.round,s={},l={"-1":[2,0],1:[0,2]},u=function(e){return e[2]-e[0]<e[3]-e[1]?0:1};t.getStaticSideIndex=u},36061:function(e,t,n){var i=n(60642),o=(0,i.getAlgorithm)("sliceanddice");(0,i.addAlgorithm)("rotatedsliceanddice",(function(e){return e.isRotated=!e.isRotated,o.call(this,e)}))},56369:function(e,t,n){t.default=void 0;var i=n(60642);function o(e){var t=e.items,n=(0,i.buildSidesData)(e.rect,e.directions,e.isRotated?1:0);(0,i.calculateRectangles)(t,0,e.rect,n,{sum:e.sum,count:t.length,side:n.variedSide})}(0,i.addAlgorithm)("sliceanddice",o);var a=o;t.default=a,e.exports=t.default,e.exports.default=t.default},57200:function(e,t,n){t.default=function(e,t,n){var o,a=e.items,l=a.length,u={sum:e.sum,rect:e.rect,directions:e.directions,accumulate:t};for(n&&(u.staticSideIndex=(0,i.getStaticSideIndex)(u.rect)),a.sort(r),o=0;o<l;)o=s(a,o,u)};var i=n(60642),o=Math.max,a=Math.round;function r(e,t){return t.value-e.value}function s(e,t,n){var r,s=(0,i.buildSidesData)(n.rect,n.directions,n.staticSideIndex),l=((r=n.rect)[2]-r[0])*(r[3]-r[1]),u=l>0?function(e,t,n){var i,r,s,l,u,d,c=1/0,h=0,f=e.length,p=n.areaToValue/n.staticSide;for(s=t;s<f;){for(r=h+e[s].value,u=n.staticSide/p/r,i=0,l=t;l<=s;++l)i=n.accumulate(i,(d=u*e[l].value/r,o(d,1/d)),l-t+1);if(!(i<c))break;c=i,h=r,++s}return{sum:h,count:s-t,side:a(p*h)}}(e,t,{areaToValue:l/n.sum,accumulate:n.accumulate,staticSide:s.staticSide}):{sum:1,side:s.variedSide,count:e.length-t};return(0,i.calculateRectangles)(e,t,n.rect,s,u),n.sum-=u.sum,t+u.count}e.exports=t.default,e.exports.default=t.default},46576:function(e,t,n){t.default=void 0;var i,o=(i=n(57200))&&i.__esModule?i:{default:i},a=n(60642),r=Math.max;function s(e,t){return r(e,t)}function l(e){return(0,o.default)(e,s,!1)}(0,a.addAlgorithm)("squarified",l);var u=l;t.default=u,e.exports=t.default,e.exports.default=t.default},20957:function(e,t,n){t.default=void 0;var i,o=(i=n(57200))&&i.__esModule?i:{default:i};function a(e,t,n){return((n-1)*e+t)/n}function r(e){return(0,o.default)(e,a,!0)}(0,n(60642).addAlgorithm)("strip",r);var s=r;t.default=s,e.exports=t.default,e.exports.default=t.default},2322:function(e,t,n){var i,o=n(3603),a=(i=n(49983))&&i.__esModule?i:{default:i};n(4815);var r=n(14371),s=a.default.prototype;function l(e,t,n){var i=n.getRootOffset();return e||t&&[(t[0]+t[2])/2+i.left,(t[1]+t[3])/2+i.top]||[-1e3,-1e3]}(0,o.expand)(s,"_extendProxyType",(function(e){var t=this;e.showTooltip=function(e){t._showTooltip(this._id,e)}})),(0,o.expand)(s,"_onNodesCreated",(function(){this._tooltipIndex>=0&&this._tooltip.hide(),this._tooltipIndex=-1})),(0,o.expand)(s,"_onTilingPerformed",(function(){this._tooltipIndex>=0&&this._moveTooltip(this._nodes[this._tooltipIndex])})),s._showTooltip=function(e,t){var n=this,i=n._tooltip,o=n._nodes[e];if(n._tooltipIndex!==e){var a=function(t){void 0!==t&&(t||i.hide(),n._tooltipIndex=t?e:-1)},r=l(t,o.rect,this._renderer);a(i.show({value:o.value,valueText:i.formatValue(o.value),node:o.proxy},{x:r[0],y:r[1],offset:0},{node:o.proxy},void 0,a))}else n._moveTooltip(o,t)},s._moveTooltip=function(e,t){var n=l(t,e.rect,this._renderer);this._tooltip.move(n[0],n[1],0)},s.hideTooltip=function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},a.default.addPlugin(r.plugin)},66681:function(e,t,n){var i,o=(i=n(49983))&&i.__esModule?i:{default:i},a=n(88997),r=n(3603),s=n(19157);n(4815),n(9888),n(2322);var l=0,u=o.default.prototype;u._eventsMap.onClick={name:"click"},(0,r.expand)(u,"_initCore",(function(){var e=this,t="__treemap_data_"+l++,n=function(t){return e._nodes[t].proxy};e._tracker=new a.Tracker({widget:e,root:e._renderer.root,getNode:function(t){var i=n(t);return(0,s.parseScalar)(e._getOption("interactWithGroup",!0))&&i.isLeaf()&&i.getParent().isActive()?i.getParent():i},getData:function(e){var n=e.target;return("tspan"===n.tagName?n.parentNode:n)[t]},getProxy:n,click:function(t){e._eventTrigger("click",t)}}),e._handlers.setTrackerData=function(e,n){n.data(t,e._id)}})),(0,r.expand)(u,"_disposeCore",(function(){this._tracker.dispose()}))},49983:function(e,t,n){t.default=void 0;var i=n(77707),o=h(n(21168)),a=n(60642),r=n(19910),s=n(19157),l=n(20576),u=h(n(59063));n(46576),n(66831);var d=h(n(99393)),c=n(1539);function h(e){return e&&e.__esModule?e:{default:e}}var f=Math.max,p={lefttoprightbottom:[1,1],leftbottomrighttop:[1,-1],righttopleftbottom:[-1,1],rightbottomlefttop:[-1,-1]};function g(e){return e>0?Math.round(e):0}(0,a.setDefaultAlgorithm)("squarified"),(0,r.setDefaultColorizer)("discrete");var m=u.default.inherit({_handlers:{beginBuildNodes:l.noop,buildNode:l.noop,endBuildNodes:l.noop,setTrackerData:l.noop,calculateState:function(e){return(0,i.buildRectAppearance)(e)}},_rootClass:"dxtm-tree-map",_rootClassPrefix:"dxtm",_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"treeMap",_fontFields:["tile.label.font","group.label.font"],_init:function(){var e=this;e._rectOffsets={},e._handlers=Object.create(e._handlers),e._context={suspend:function(){e._applyingChanges||e._suspendChanges()},resume:function(){e._applyingChanges||e._resumeChanges()},change:function(t){e._change(t)},settings:[{},{}],calculateState:e._handlers.calculateState,calculateLabelState:i.buildTextAppearance},e._root=e._topNode={nodes:[]},e.callBase.apply(e,arguments)},_initialChanges:["DATA_SOURCE"],_initCore:function(){var e=this,t=e._renderer;e._createProxyType(),e._tilesGroup=t.g().linkOn(t.root,"tiles").linkAppend(),e._labelsGroup=t.g().linkOn(t.root,"labels").linkAppend()},_createProxyType:l.noop,_disposeCore:function(){var e=this;e._filter&&e._filter.dispose(),e._labelsGroup.linkOff(),e._tilesGroup.linkOff()},_applySize:function(e){this._tilingRect=e.slice(),this._change(["TILING"])},_optionChangesMap:{dataSource:"DATA_SOURCE",valueField:"NODES_CREATE",childrenField:"NODES_CREATE",colorField:"TILES",colorizer:"TILES",labelField:"LABELS",tile:"TILE_SETTINGS",group:"GROUP_SETTINGS",maxDepth:"MAX_DEPTH",layoutAlgorithm:"TILING",layoutDirection:"TILING"},_themeDependentChanges:["TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_changeDataSource:function(){var e=this;e._isDataExpected=e._isSyncData=!0,e._updateDataSource(),e._isSyncData=!1,e._isDataExpected&&e._suspendChanges()},_dataSourceChangedHandler:function(){var e=this;e._isDataExpected?(e._isDataExpected=!1,e._change(["NODES_CREATE"]),e._isSyncData||e._resumeChanges()):e._requestChange(["NODES_CREATE"])},_optionChangesOrder:["DATA_SOURCE","TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_change_DATA_SOURCE:function(){this._changeDataSource()},_change_TILE_SETTINGS:function(){this._changeTileSettings()},_change_GROUP_SETTINGS:function(){this._changeGroupSettings()},_change_MAX_DEPTH:function(){this._changeMaxDepth()},_customChangesOrder:["NODES_CREATE","NODES_RESET","TILES","LABELS","TILING","LABELS_LAYOUT"],_change_NODES_CREATE:function(){this._buildNodes()},_change_NODES_RESET:function(){this._resetNodes()},_change_TILES:function(){this._applyTilesAppearance()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_TILING:function(){this._performTiling()},_change_LABELS_LAYOUT:function(){this._performLabelsLayout()},_applyChanges:function(){var e=this;e.callBase.apply(e,arguments),e._isDataExpected||e._drawn(),e._context.forceReset=!1},_buildNodes:function(){var e=this,t=e._root=e._topNode=new o.default;t._id=0,t.parent={},t.data={},t.level=t.index=-1,t.ctx=e._context,t.label=null,e._nodes=[t],e._handlers.beginBuildNodes();var n=e._processDataSourceItems(e._dataSourceItems()||[]);(function e(t,n,i,a){var r,s,l,u,d=[],c=a.nodes,h=n.length,f=0;for(s=0;s<h;++s){var p;l=n[s],(r=new o.default)._id=c.length,r.ctx=a.ctx,r.parent=t,r.level=i,r.index=d.length,r.data=l,a.buildNode(r),c.push(r),d.push(r),null!==(p=u=l[a.itemsField])&&void 0!==p&&p.length&&e(r,u,i+1,a),l[a.valueField]>0&&(r.value=Number(l[a.valueField])),f+=r.value}t.nodes=d,t.value=f})(t,n.items,0,{itemsField:!n.isPlain&&e._getOption("childrenField",!0)||"items",valueField:e._getOption("valueField",!0)||"value",buildNode:e._handlers.buildNode,ctx:e._context,nodes:e._nodes}),e._onNodesCreated(),e._handlers.endBuildNodes(),e._change(["NODES_RESET"])},_onNodesCreated:l.noop,_processDataSourceItems:function(e){return{items:e,isPlain:!1}},_changeTileSettings:function(){var e=this,t=e._getOption("tile"),n=e._rectOffsets,i=g(t.border.width),o=i/2,a=1&i?.5:0,r=t.label,s=e._context.settings[0];e._change(["TILES","LABELS"]),s.state=e._handlers.calculateState(t),e._filter=e._filter||e._renderer.shadowFilter("-50%","-50%","200%","200%"),e._filter.attr(r.shadow),e._calculateLabelSettings(s,r,e._filter.id),n.tileEdge===o&&n.tileInner===a||(n.tileEdge=o,n.tileInner=a,e._change(["TILING"]))},_changeGroupSettings:function(){var e,t=this,n=t._getOption("group"),i=n.label,o=t._rectOffsets,a=g(n.border.width),r=a/2,s=1&a?.5:0,l=g(n.padding),u=t._context.settings[1];t._change(["TILES","LABELS"]),u.state=t._handlers.calculateState(n),t._calculateLabelSettings(u,i),e=n.headerHeight>=0?g(n.headerHeight):u.labelParams.height+2*g(i.paddingTopBottom),t._headerHeight!==e&&(t._headerHeight=e,t._change(["TILING"])),t._groupPadding!==l&&(t._groupPadding=l,t._change(["TILING"])),o.headerEdge===r&&o.headerInner===s||(o.headerEdge=r,o.headerInner=s,t._change(["TILING"]))},_calculateLabelSettings:function(e,t,n){var o=this._getTextBBox(t.font),a=g(t.paddingLeftRight),r=g(t.paddingTopBottom),s=this._getOption("tile.label"),l=this._getOption("group.label");e.labelState=(0,i.buildTextAppearance)(t,n),e.labelState.visible=!("visible"in t)||!!t.visible,e.labelParams={height:o.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:r,paddingLeftRight:a,tileLabelWordWrap:s.wordWrap,tileLabelOverflow:s.textOverflow,groupLabelOverflow:l.textOverflow}},_changeMaxDepth:function(){var e=this._getOption("maxDepth",!0);e=e>=1?Math.round(e):1/0,this._maxDepth!==e&&(this._maxDepth=e,this._change(["NODES_RESET"]))},_resetNodes:function(){var e=this;e._tilesGroup.clear(),e._renderer.initHatching(),e._context.forceReset=!0,e._context.minLevel=e._topNode.level+1,e._context.maxLevel=e._context.minLevel+e._maxDepth-1,e._change(["TILES","LABELS","TILING"])},_processNodes:function(e,t){!function e(t,n,i){var o,a,r=n.nodes,s=r.length;for(a=0;a<s;++a)i(t,o=r[a]),o.isNode()&&e(t,o,i)}(e,this._topNode,t)},_applyTilesAppearance:function(){var e=this,t=(0,r.getColorizer)(e._getOption("colorizer"),e._themeManager,e._topNode);e._processNodes({renderer:e._renderer,group:e._tilesGroup,setTrackerData:e._handlers.setTrackerData,colorField:e._getOption("colorField",!0)||"color",getColor:t},v)},_applyLabelsAppearance:function(){var e=this;e._labelsGroup.clear(),e._processNodes({renderer:e._renderer,group:e._labelsGroup,setTrackerData:e._handlers.setTrackerData,labelField:e._getOption("labelField",!0)||"name"},y),e._change(["LABELS_LAYOUT"])},_performTiling:function(){var e=this,t={algorithm:(0,a.getAlgorithm)(e._getOption("layoutAlgorithm",!0)),directions:p[String(e._getOption("layoutDirection",!0)).toLowerCase()]||p.lefttoprightbottom,headerHeight:e._headerHeight,groupPadding:e._groupPadding,rectOffsets:e._rectOffsets};e._topNode.innerRect=e._tilingRect,b(t,e._topNode),e._processNodes(t,w),e._change(["LABELS_LAYOUT"]),e._onTilingPerformed()},_onTilingPerformed:l.noop,_performLabelsLayout:function(){this._processNodes(null,D)},_getTextBBox:function(e){var t=this._renderer,n=this._textForCalculations||t.text("0",0,0);this._textForCalculations=n,n.css((0,s.patchFontOptions)(e)).append(t.root);var i=n.getBBox();return n.remove(),i}});var _=[function(e,t){var n=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,n),n},function(e,t){var n=e.renderer.simpleRect().append(e.group),i=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,i),{outer:n,inner:i}}];function v(e,t){t.color=t.data[e.colorField]||e.getColor(t)||t.parent.color,t.updateStyles(),t.tile=!t.ctx.forceReset&&t.tile||_[Number(t.isNode())](e,t),t.applyState()}function y(e,t){t.updateLabelStyle(),t.labelState.visible&&function(e,t,n,i){var o=t.data[e.labelField];t.label=o?String(o):null,(o=t.customLabel||t.label)&&(t.text=e.renderer.text(o).attr(n.attr).css(n.css).append(e.group),e.setTrackerData(t,t.text))}(e,t,t.labelState,t.labelParams)}var x=[0,0,0,0];function b(e,t){var n,i=t.nodes,o=[],a=[],r=0,s=o.length=a.length=i.length;for(n=0;n<s;++n)r+=i[n].value,o[n]={value:i[n].value,i:n};for(r>0&&e.algorithm({items:o.slice(),sum:r,rect:t.innerRect.slice(),isRotated:1&i[0].level,directions:e.directions}),n=0;n<s;++n)a[n]=o[n].rect||x;t.rects=a}function w(e,t){var n,i=t.parent.rects[t.index],o=e.rectOffsets;t.isNode()?(k(t.tile.outer,S(i,t.parent.innerRect,o.headerEdge,o.headerInner)),i=C(i,e.groupPadding),n=Math.min(e.headerHeight,i[3]-i[1]),t.rect=[i[0],i[1],i[2],i[1]+n],k(t.tile.inner,C(t.rect,o.headerEdge)),i[1]+=n,t.innerRect=i,b(e,t)):(t.rect=i,k(t.tile,S(i,t.parent.innerRect,o.tileEdge,o.tileInner)))}function C(e,t){return[e[0]+t,e[1]+t,e[2]-t,e[3]-t]}function S(e,t,n,i){return[e[0]+(e[0]===t[0]?n:+i),e[1]+(e[1]===t[1]?n:+i),e[2]-(e[2]===t[2]?n:-i),e[3]-(e[3]===t[3]?n:-i)]}function k(e,t){e.attr({x:t[0],y:t[1],width:f(t[2]-t[0],0),height:f(t[3]-t[1],0)})}function D(e,t){t.text&&t.labelState.visible&&function(e,t){var n=e.rect,i=e.text,o=i.getBBox(),a=t.paddingLeftRight,r=t.paddingTopBottom,s=n[2]-n[0]-2*a;i.setMaxSize(s,n[3]-n[1]-r,e.isNode()?{textOverflow:t.groupLabelOverflow,wordWrap:"none"}:{textOverflow:t.tileLabelOverflow,wordWrap:t.tileLabelWordWrap,hideOverflowEllipsis:!0}),i.move(t.rtlEnabled?n[2]-a-o.x-o.width:n[0]+a-o.x,n[1]+r-o.y)}(t,t.labelParams)}(0,d.default)("dxTreeMap",m);var I=m;t.default=I,m.addPlugin(c.plugin),e.exports=t.default,e.exports.default=t.default},4080:function(e,t,n){t.default=void 0;var i,o=(i=n(49983))&&i.__esModule?i:{default:i};n(46576),n(20957),n(56369),n(36061),n(66831),n(13652),n(73675),n(4815),n(9888),n(13099),n(2322),n(66681),n(61104),n(74958);var a=n(82454),r=n(17384),s=n(64758),l=o.default;t.default=l,o.default.addPlugin(a.plugin),o.default.addPlugin(r.plugin),o.default.addPlugin(s.plugin),e.exports=t.default,e.exports.default=t.default},34434:function(e,t,n){t.prepareSegmentRectPoints=void 0,Object.defineProperty(t,"refreshPaths",{enumerable:!0,get:function(){return i.refreshPaths}});var i=n(56453),o=n(95479);t.prepareSegmentRectPoints=function(e,t,n,i,a){var r,s=~~((n<i?n:i)/2),l=a.width||0,u=l<s?l:s,d=(e+=u/2)+(n-=u),c=(t+=u/2)+(i-=u),h=[],f=[],p=0,g=0,m={top:[[e,t],[d,t]],right:[[d,t],[d,c]],bottom:[[d,c],[e,c]],left:[[e,c],[e,t]]};switch((0,o.each)(m,(function(e){var t=!!a[e];p=2*p+~~t})),p){case 13:case 9:r=["left","top","right","bottom"];break;case 11:r=["bottom","left","top","right"];break;default:r=["top","right","bottom","left"]}return(0,o.each)(r,(function(e,t){var n=!!a[t];!g&&f.length&&(h.push(f),f=[]),n&&(0,o.each)(m[t].slice(g),(function(e,t){f=f.concat(t)})),g=~~n})),f.length&&h.push(f),1===h.length&&(h=h[0]),{points:h,pathType:15===p?"area":"line"}}},81849:function(e,t,n){var i;t.default=void 0;var o=((i=n(13711))&&i.__esModule?i:{default:i}).default;t.default=o,e.exports=t.default,e.exports.default=t.default},75921:function(e,t,n){t.ControlBar=C;var i=n(19157),o=Math,a=o.min,r=o.max,s=o.round,l=o.floor,u=o.sqrt,d=(0,i.enumParser)(["left","center","right"]),c=(0,i.enumParser)(["top","bottom"]),h="command-reset",f="command-move-up",p="command-move-right",g="command-move-down",m="command-move-left",_="command-zoom-in",v="command-zoom-out",y="command-zoom-drag",x="control-bar",b={bigCircleSize:58,smallCircleSize:28,buttonSize:10,arrowButtonOffset:20,incDecButtonSize:11,incButtonOffset:66,decButtonOffset:227,sliderLineStartOffset:88.5,sliderLineEndOffset:205.5,sliderLength:20,sliderWidth:8,trackerGap:4},w={};function C(e){var t=this;t._params=e,t._createElements(e.renderer,e.container,e.dataKey),e.layoutControl.addItem(t),t._subscribeToProjection(e.projection),t._subscribeToTracker(e.tracker),t._createCallbacks(e.projection)}function S(e){delete e._owner,e.update=function(){},e.finish=function(){}}function k(e,t){this._owner=e,this._command=t}function D(e,t,n){this._command=t;var i=null,o=0,a=0;switch(this._command){case f:a=-10;break;case p:o=10;break;case g:a=10;break;case m:o=-10}this._stop=function(){return clearTimeout(i),e._callbacks.endMove(),this._stop=e=null,this},e._callbacks.beginMove(),function t(){e._callbacks.move([o,a]),i=setTimeout(t,100)}()}function I(e,t){this._owner=e,this._command=t;var n=null,i=this._command===_?1:-1;this._stop=function(){return clearTimeout(n),this._stop=e=null,this},function t(){e._adjustZoom(e._zoomFactor+i),n=setTimeout(t,150)}()}function T(e,t,n){this._owner=e,this._zoomFactor=e._zoomFactor,this._pos=n.y}w[h]=k,w[f]=w[p]=w[g]=w[m]=D,w[_]=w[v]=I,w[y]=T,C.prototype={constructor:C,_flags:0,dispose:function(){var e=this;e._params.layoutControl.removeItem(e),e._root.linkRemove().linkOff(),e._offProjection(),e._offTracker(),e._params=e._root=e._offProjection=e._offTracker=e._callbacks=null},_subscribeToProjection:function(e){var t=this;function n(){t._adjustZoom(e.getScaledZoom())}t._offProjection=e.on({engine:function(){t._update()},zoom:n,"max-zoom":function(){t._zoomPartition=e.getZoomScalePartition(),t._sliderUnitLength=t._sliderLineLength/t._zoomPartition,n()}})},_subscribeToTracker:function(e){var t=this,n=!1;t._offTracker=e.on({start:function(e){(n=e.data.name===x)&&t._processStart(e.data.index,e)},move:function(e){n&&t._processMove(e.data.index,e)},end:function(){n&&(t._processEnd(),n=!1)}})},_createCallbacks:function(e){this._callbacks={reset:function(t,n){t&&e.setCenter(null),n&&e.setZoom(null)},beginMove:function(){e.beginMoveCenter()},endMove:function(){e.endMoveCenter()},move:function(t){e.moveCenter(t)},zoom:function(t){e.setScaledZoom(t)}}},_createElements:function(e,t,n){var i=this;i._root=e.g().attr({class:"dxm-control-bar"}).linkOn(t,"control-bar");var o=i._buttonsGroup=e.g().attr({class:"dxm-control-buttons"}).append(i._root),a=e.g().attr({stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(i._root);i._createButtons(e,n,o),i._createTrackers(e,n,a)},_createButtons:function(e,t,n){var i=this,o=b,a=o.buttonSize/2,r=o.arrowButtonOffset-a,s=o.arrowButtonOffset,u=o.incDecButtonSize/2,d={"stroke-linecap":"square",fill:"none"},c="line";e.circle(0,0,o.bigCircleSize/2).append(n),e.circle(0,0,a).attr({fill:"none"}).append(n),e.path([-a,-r,0,-s,a,-r],c).attr(d).append(n),e.path([r,-a,s,0,r,a],c).attr(d).append(n),e.path([a,r,0,s,-a,r],c).attr(d).append(n),e.path([-r,a,-s,0,-r,-a],c).attr(d).append(n),e.circle(0,o.incButtonOffset,o.smallCircleSize/2).append(n),e.path([[-u,o.incButtonOffset,u,o.incButtonOffset],[0,o.incButtonOffset-u,0,o.incButtonOffset+u]],"area").append(n),e.circle(0,o.decButtonOffset,o.smallCircleSize/2).append(n),e.path([-u,o.decButtonOffset,u,o.decButtonOffset],"area").append(n),i._zoomLine=e.path([],"line").append(n),i._zoomDrag=e.rect(l(-o.sliderLength/2),l(o.sliderLineEndOffset-o.sliderWidth/2),o.sliderLength,o.sliderWidth).append(n),i._sliderLineLength=o.sliderLineEndOffset-o.sliderLineStartOffset},_createTrackers:function(e,t,n){var i=b,o=s((i.arrowButtonOffset-i.trackerGap)/2),a=i.arrowButtonOffset-o,r=s(u(i.bigCircleSize*i.bigCircleSize/4-o*o)),l=r-a;e.rect(-o,-o,2*o,2*o).data(t,{index:h,name:x}).append(n),e.rect(-o,-r,2*o,l).data(t,{index:f,name:x}).append(n),e.rect(a,-o,l,2*o).data(t,{index:p,name:x}).append(n),e.rect(-o,a,2*o,l).data(t,{index:g,name:x}).append(n),e.rect(-r,-o,l,2*o).data(t,{index:m,name:x}).append(n),e.circle(0,i.incButtonOffset,i.smallCircleSize/2).data(t,{index:_,name:x}).append(n),e.circle(0,i.decButtonOffset,i.smallCircleSize/2).data(t,{index:v,name:x}).append(n),e.rect(-2,i.sliderLineStartOffset-2,4,i.sliderLineEndOffset-i.sliderLineStartOffset+4).css({cursor:"default"}).data(t,{index:"command-zoom-drag-line",name:x}).append(n),this._zoomDragTracker=e.rect(-i.sliderLength/2,i.sliderLineEndOffset-i.sliderWidth/2,i.sliderLength,i.sliderWidth).data(t,{index:y,name:x}).append(n)},resize:function(e){this._isActive&&this._root.attr({visibility:null!==e?null:"hidden"})},getLayoutOptions:function(){return this._isActive?this._layoutOptions:null},locate:function(e,t){this._root.attr({translateX:e+this._margin+30.5,translateY:t+this._margin+30.5})},_update:function(){var e=this;e._isActive=e._isEnabled&&e._flags&&e._params.projection.isInvertible(),e._isActive?e._root.linkAppend():e._root.linkRemove(),e._processEnd(),e.updateLayout()},setInteraction:function(e){var t=this;(0,i.parseScalar)(e.centeringEnabled,!0)?t._flags|=1:t._flags&=-2,(0,i.parseScalar)(e.zoomingEnabled,!0)?t._flags|=2:t._flags&=-3,t._update()},setOptions:function(e){var t=this;t._isEnabled=!!(0,i.parseScalar)(e.enabled,!0),t._margin=e.margin||0,t._layoutOptions={width:2*t._margin+61,height:2*t._margin+274,horizontalAlignment:d(e.horizontalAlignment,"left"),verticalAlignment:c(e.verticalAlignment,"top")},t._buttonsGroup.attr({"stroke-width":e.borderWidth,stroke:e.borderColor,fill:e.color,"fill-opacity":e.opacity}),t._update()},_adjustZoom:function(e){var t=this,n=b.sliderLineStartOffset,i=b.sliderLineEndOffset,o=b.sliderWidth;t._zoomFactor=r(a(s(e),t._zoomPartition),0);var l={translateY:-s(t._zoomFactor*t._sliderUnitLength)},u=i-o/2+l.translateY;t._zoomLine.attr({points:[[0,n,0,r(n,u)],[0,a(i,u+o),0,i]]}),t._zoomDrag.attr(l),t._zoomDragTracker.attr(l)},_applyZoom:function(){this._callbacks.zoom(this._zoomFactor)},_processStart:function(e,t){var n;this._isActive&&(n=w[e],this._command=n&&n.flags&this._flags?new n(this,e,t):null)},_processMove:function(e,t){this._command&&this._command.update(e,t)},_processEnd:function(){this._command&&this._command.finish(),this._command=null}},k.flags=3,k.prototype.update=function(e){e!==this._command&&S(this)},k.prototype.finish=function(){var e=this._owner._flags;this._owner._callbacks.reset(!!(1&e),!!(2&e)),S(this)},D.flags=1,D.prototype.update=function(e){this._command!==e&&this.finish()},D.prototype.finish=function(){S(this._stop())},I.flags=2,I.prototype.update=function(e){this._command!==e&&this.finish()},I.prototype.finish=function(){this._owner._applyZoom(),S(this._stop())},T.flags=2,T.prototype.update=function(e,t){var n=this._owner;n._adjustZoom(this._zoomFactor+n._zoomPartition*(this._pos-t.y)/n._sliderLineLength)},T.prototype.finish=function(){this._owner._applyZoom(),S(this)}},93699:function(e,t,n){t.DataExchanger=a;var i,o=(i=n(44504))&&i.__esModule?i:{default:i};function a(){this._store={}}a.prototype={constructor:a,dispose:function(){return this._store=null,this},_get:function(e,t){var n=this._store[e]||(this._store[e]={});return n[t]||(n[t]={callbacks:(0,o.default)()})},set:function(e,t,n){var i=this._get(e,t);return i.data=n,i.callbacks.fire(n),this},bind:function(e,t,n){var i=this._get(e,t);return i.callbacks.add(n),i.data&&n(i.data),this},unbind:function(e,t,n){return this._get(e,t).callbacks.remove(n),this}}},63832:function(e,t,n){t.makeEventEmitter=function(e){var t,n=e.prototype;for(t in a)n[t]=a[t]};var i,o=(i=n(44504))&&i.__esModule?i:{default:i},a={_initEvents:function(){var e,t=this._eventNames,n=t.length,i=this._events={};for(e=0;e<n;++e)i[t[e]]=(0,o.default)()},_disposeEvents:function(){var e,t=this._events;for(e in t)t[e].empty();this._events=null},on:function(e){var t,n=this._events;for(t in e)n[t].add(e[t]);return function(){for(t in e)n[t].remove(e[t])}},_fire:function(e,t){this._events[e].fire(t)}}},3797:function(e,t){t.GestureHandler=o;var n=Math.log,i=Math.LN2;function o(e){var t=this;t._projection=e.projection,t._renderer=e.renderer,t._x=t._y=0,t._subscribeToTracker(e.tracker)}o.prototype={constructor:o,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(e){var t=this,n=!1;t._offTracker=e.on({start:function(e){(n="control-bar"!==e.data.name)&&t._processStart(e)},move:function(e){n&&t._processMove(e)},end:function(){n&&t._processEnd()},zoom:function(e){t._processZoom(e)}})},setInteraction:function(e){this._processEnd(),this._centeringEnabled=e.centeringEnabled,this._zoomingEnabled=e.zoomingEnabled},_processStart:function(e){this._centeringEnabled&&(this._x=e.x,this._y=e.y,this._projection.beginMoveCenter())},_processMove:function(e){var t=this;t._centeringEnabled&&(t._renderer.root.attr({cursor:"move"}),t._projection.moveCenter([t._x-e.x,t._y-e.y]),t._x=e.x,t._y=e.y)},_processEnd:function(){this._centeringEnabled&&(this._renderer.root.attr({cursor:"default"}),this._projection.endMoveCenter())},_processZoom:function(e){var t,o,a,r=this;r._zoomingEnabled&&(e.delta?t=e.delta:e.ratio&&(t=n(e.ratio)/i),r._centeringEnabled&&(o=r._renderer.getRootOffset(),o=[e.x-o.left,e.y-o.top],a=r._projection.fromScreenPoint(o)),r._projection.changeScaledZoom(t),r._centeringEnabled&&r._projection.setCenterByPoint(a,o))}}},39378:function(e,t,n){t.LayoutControl=f;var i=n(89386),o=n(95479),a=Math.round,r=Math.min,s=Math.max,l=o.each,u=i.inArray,d={left:0,center:1,right:2},c={top:0,bottom:1};function h(e,t){var n=!1;return function(e){l([0,1,2,3,4,5],(function(t,n){var i=e[n],o=e[(n+3)%6];i.items&&(o.items||(i.rect[1]=r(i.rect[1],o.rect[3]),i.rect[3]=s(i.rect[3],o.rect[1])))})),l([1,4],(function(t,n){var i,o,a=e[n],r=e[n-1],s=e[n+1];a.items?r.items||s.items||((i=a.rect[0]-r.rect[2])>(o=s.rect[0]-a.rect[2])?i/o>=2?(a.rect[0]-=i,a.right=!0):(a.rect[0]-=o,a.rect[2]+=o):o/i>=2?(a.rect[2]+=o,a.center=null):(a.rect[0]-=i,a.rect[2]+=i)):(r.items&&(r.rect[2]=(a.rect[0]+a.rect[2])/2),s.items&&(s.rect[0]=(a.rect[0]+a.rect[2])/2))}))}(e),l(e,(function(e,i){i.items&&(n=function(e,t){var n=e.rect,i=n[2]-n[0],o=n[3]-n[1],u=0,d=0,c=0,h=n[2],f=n[3],p=n[0],g=n[1],m=[],_=!1;return l(e.items,(function(a,l){if(l.width>i||l.height>o)return m.push(null),_=!0,t||!1;if(u+l.width>i&&(d+=c,u=c=0),d+l.height>o)return m.push(null),_=!0,t||!1;c=s(c,l.height);var v=e.horInversion?n[2]-l.width-u:n[0]+u,y=e.verInversion?n[3]-l.height-d:n[1]+d;u+=l.width,h=r(h,v),f=r(f,y),p=s(p,v+l.width),g=s(g,y+l.height),m.push([v,y])})),(t||!_)&&(u=0,e.right?u=n[2]-n[0]-p+h:e.center&&(u=a((n[2]-n[0]-p+h)/2)),l(e.items,(function(e,t){var n=m[e];n?t.item.locate(n[0]+u,n[1]):t.item.resize(null)})),e.rect=[h,f,p,g],e.items=null),_}(i,t)||n)})),n}function f(e){var t=this;t._items=[],t._suspended=0,t._widget=e,t._updateLayout=function(){t._update()}}f.prototype={constructor:f,dispose:function(){this._items=this._updateLayout=null},setSize:function(e){this._canvas=e,this._update()},suspend:function(){++this._suspended},resume:function(){0==--this._suspended&&this._update()},addItem:function(e){this._items.push(e),e.updateLayout=this._updateLayout},removeItem:function(e){this._items.splice(u(e,this._items),1),e.updateLayout=null},_update:function(){var e;0===this._suspended&&(e=this._canvas,l(this._items,(function(t,n){n.resize(e)})),this._widget.resolveItemsDeferred(this._items.filter((function(e){return e.getTemplatesGroups&&e.getTemplatesDef}))),function(e,t){var n=function(e,t){var n=(e.right-e.left)/3,i=(e.bottom-e.top)/2,o=e.left,r=a(o+n),s=a(o+n+n),u=e.right,h=e.top,f=a(h+i),p=e.bottom,g=[{rect:[o,h,r,f]},{rect:[r,h,s,f],center:!0},{rect:[s,h,u,f],horInversion:!0},{rect:[o,f,r,p],verInversion:!0},{rect:[r,f,s,p],center:!0,verInversion:!0},{rect:[s,f,u,p],horInversion:!0,verInversion:!0}],m=[[],[],[],[],[],[]];return l(t,(function(e,t){var n=t.getLayoutOptions();n&&m[function(e){return 3*c[e.verticalAlignment]+d[e.horizontalAlignment]}(n)].push({item:t,width:n.width,height:n.height})})),l(g,(function(e,t){m[e].length?t.items=m[e]:(t.center?t.rect[0]=t.rect[2]=(t.rect[0]+t.rect[2])/2:t.rect[t.horInversion?0:2]=t.rect[t.horInversion?2:0],t.rect[t.verInversion?1:3]=t.rect[t.verInversion?3:1])})),g}(e,t);h(n)&&h(n,!0)}({left:e.left,top:e.top,right:e.width+e.left,bottom:e.height+e.top},this._items))}}},7291:function(e,t,n){t.LegendsControl=c;var i=n(13306),o=n(95479),a=n(48013),r=n(16342),s=i.extend,l=o.each,u={category:"UNKNOWN",name:"UNKNOWN"},d=function(e){var t=this;t._params=e,t._root=e.renderer.g().attr({class:"dxm-legend"}).linkOn(e.container,{name:"legend",after:"legend-base"}).enableLinks().linkAppend(),e.layoutControl.addItem(t),r.Legend.call(t,{renderer:e.renderer,widget:e.widget,group:t._root,backgroundClass:null,itemsGroupClass:null,textField:"text",getFormatObject:function(e){return e}}),t._onDataChanged=function(e){t._updateData(e)}};function c(e){this._params=e,this._items=[],e.container.virtualLink("legend-base")}d.prototype=s((0,a.clone)(r.Legend.prototype),{constructor:d,dispose:function(){var e=this;return e._params.layoutControl.removeItem(e),e._unbindData(),e._root.linkRemove().linkOff(),e._params=e._root=e._onDataChanged=null,r.Legend.prototype.dispose.apply(e,arguments)},resize:function(e){this._params.notifyDirty(),null===e?this.erase():this.draw(e.width,e.height),this._params.notifyReady()},locate:r.Legend.prototype.shift,_updateData:function(e){this._options.defaultColor=e&&e.defaultColor,this.update(e?function(e,t,n){var i,o,a=t.length,r=[];for(i=0;i<a;++i)r[i]=o={start:e[i],end:e[i+1],index:i},o[n]=t[i],o.states={normal:{fill:o.color}},o.visible=!0;return r}(e.partition,e.values,this._dataName):[],this._options,this._params.themeManager.theme("legend").title),this.updateLayout()},_unbindData:function(){this._dataCategory&&this._params.dataExchanger.unbind(this._dataCategory,this._dataName,this._onDataChanged)},_bindData:function(e){this._params.dataExchanger.bind(this._dataCategory=e.category,this._dataName=e.name,this._onDataChanged)},setOptions:function(e){var t=this;t.update(t._data,e,this._params.themeManager.theme("legend").title),t._unbindData();var n=e.source;return t._bindData(n?{category:n.layer,name:n.grouping}:u),t.updateLayout(),t}}),c.prototype={constructor:c,dispose:function(){l(this._items,(function(e,t){t.dispose()})),this._params=this._items=null},setOptions:function(e){var t,n=e&&e.length?e:[],i=this._items,o=n.length,a=this._params,r=a.themeManager.theme("legend");for(t=i.length;t<o;++t)i[t]=new d(a);for(t=i.length-1;t>=o;--t)i[t].dispose(),i.splice(t,1);for(a.layoutControl.suspend(),t=0;t<o;++t)i[t].setOptions(s(!0,{},r,n[t]));a.layoutControl.resume()}}},15151:function(e,t,n){t.MapLayerCollection=ue,t.getMaxBound=T;var i,o=n(20576),a=n(13306),r=n(95479),s=(i=n(53305))&&i.__esModule?i:{default:i},l=n(35922),u=n(62754),d=n(19157),c=o.noop,h=a.extend,f=r.each,p=Array.prototype.concat,g="area",m="line",_="marker",v=[0,1,2,2],y={none:null,single:-1,multiple:NaN},x=Array.isArray,b=Number,w=String,C=Math.abs,S=Math.round,k=Math.min,D=Math.max,I=Math.sqrt;function T(e){return e.reduce((function(e,t){return t?[k(e[0],t[0]),k(e[1],t[1]),D(e[2],t[2]),D(e[3],t[3])]:e}),e[0])}function E(e,t){return(e[t]||{}).name}function A(){}function O(e){this.raw=e}function P(e){this.raw=e}function M(e){return x(e.features)}function R(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]<1&&e.size[1]/e.spaceSize[1]<1?null:"hidden"})}function B(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]<1||e.size[1]/e.spaceSize[1]<1?null:"hidden"})}function V(e,t){return e.attribute(t)}A.prototype.count=function(){return 0},O.prototype={constructor:O,count:function(){return this.raw.length},item:function(e){return this.raw[e]},geometry:function(e){return{coordinates:e.coordinates}},attributes:function(e){return e.attributes},getBBox:function(e){return 0===arguments.length?void 0:this.raw[e].bbox}},P.prototype={constructor:P,count:function(){return this.raw.features.length},item:function(e){return this.raw.features[e]},geometry:function(e){return e.geometry},attributes:function(e){return e.properties},getBBox:function(e){return 0===arguments.length?this.raw.bbox:this.raw.features[e].bbox}};var F={Point:_,MultiPoint:m,LineString:m,MultiLineString:m,Polygon:g,MultiPolygon:g};function L(e,t){return void 0!==e?e:t}var H,N,z={setup:c,reset:c,arrange:c,updateGrouping:c,getDefaultColor:c},W={},G={},j={};function q(e,t,n,i){e[i].attr(t[i][n])}function $(e,t){var n,i=[],o=i.length=t.length;for(n=0;n<o;++n)i[n]=e.project(t[n]);return i}function K(e,t){return[$(e,t)]}function U(e,t){var n,i=[],o=i.length=t.length;for(n=0;n<o;++n)i[n]=$(e,t[n]);return i}function Y(e,t){var n,i,o=[],a=t.length,r=0;for(o.length=2*a,n=0;n<a;++n)i=e.transform(t[n]),o[r++]=i[0],o[r++]=i[1];return o}function Z(e,t,n){var i,o=[],a=o.length=n.length;for(i=0;i<a;++i)o[i]=Y(t,n[i]);e.root.attr({points:o})}function X(e,t){var n,i=0,o=t.length-1,a=-1;if(t[i]<=e&&e<=t[o])if(e===t[o])a=o-1;else{for(;o-i>1;)e<t[n=i+o>>1]?o=n:i=n;a=i}return a}function Q(e,t,n,i){e.params.eventTrigger(i,{target:t.proxy,state:n})}function J(e,t){var n=h({},e,t);return n.label=h({},e.label,n.label),n.label.font=h({},e.label.font,n.label.font),n}function ee(e,t){return e.attribute(t)}W.area={projectLabel:function(e){var t,n,i,o=e.length,a=0;for(t=0;t<o;++t)(n=se(e[t])).area>a&&(a=n.area,i=n);return i?[i.center,[I(i.area),I(i.area)]]:[[],[]]},transform:Z,transformLabel:function(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),R(e)},draw:function(e,t,n){t.root=e.renderer.path([],"area").data(e.dataKey,n)},refresh:c,getLabelOffset:function(e){return R(e),[0,0]},getStyles:function(e){var t=e.color||null,n=e.borderColor||null,i=L(e.borderWidth,null),o=L(e.opacity,null);return{root:[{class:"dxm-area",stroke:n,"stroke-width":i,fill:t,opacity:o},{class:"dxm-area dxm-area-hovered",stroke:e.hoveredBorderColor||n,"stroke-width":L(e.hoveredBorderWidth,i),fill:e.hoveredColor||t,opacity:L(e.hoveredOpacity,o)},{class:"dxm-area dxm-area-selected",stroke:e.selectedBorderColor||n,"stroke-width":L(e.selectedBorderWidth,i),fill:e.selectedColor||t,opacity:L(e.selectedOpacity,o)}]}},setState:function(e,t,n){q(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){H(e)},getDefaultColor:c},W.line={projectLabel:function(e){var t,n,i,o=e.length,a=0;for(t=0;t<o;++t)(n=le(e[t]))[2]>a&&(a=n[2],i=n);return i||[[],[]]},transform:Z,transformLabel:function(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),B(e)},draw:function(e,t,n){t.root=e.renderer.path([],"line").data(e.dataKey,n)},refresh:c,getLabelOffset:function(e){return B(e),[0,0]},getStyles:function(e){var t=e.color||e.borderColor||null,n=L(e.borderWidth,null),i=L(e.opacity,null);return{root:[{class:"dxm-line",stroke:t,"stroke-width":n,opacity:i},{class:"dxm-line dxm-line-hovered",stroke:e.hoveredColor||e.hoveredBorderColor||t,"stroke-width":L(e.hoveredBorderWidth,n),opacity:L(e.hoveredOpacity,i)},{class:"dxm-line dxm-line-selected",stroke:e.selectedColor||e.selectedBorderColor||t,"stroke-width":L(e.selectedBorderWidth,n),opacity:L(e.selectedOpacity,i)}]}},setState:function(e,t,n){q(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){H(e)},getDefaultColor:c},W.marker={project:function(e,t){return e.project(t)},transform:function(e,t,n){var i=t.transform(n);e.root.attr({translateX:i[0],translateY:i[1]})},draw:function(e,t,n){t.root=e.renderer.g(),this._draw(e,t,n)},refresh:c,hasLabelsGroup:!1,getLabelOffset:function(e,t){return[S((e.size[0]+D(t.size||0,0))/2)+2,0]},getStyles:function(e){var t={root:[{class:"dxm-marker"},{class:"dxm-marker dxm-marker-hovered"},{class:"dxm-marker dxm-marker-selected"}]};return this._getStyles(t,e),t},setState:function(e,t,n){q(e,t,n,"root"),this._setState(e,t,n)},updateGrouping:function(e){H(e),N(e)},getDefaultColor:function(e,t){return e.params.themeManager.getAccentColor(t)}},G.area=function(e){return{project:function(e,t){return t[0]&&t[0][0]&&t[0][0][0]&&"number"==typeof t[0][0][0][0]?function(e,t){var n,i=[],o=i.length=t.length;for(n=0;n<o;++n)i[n]=U(e,t[n]);return p.apply([],i)}(e,t):U(e,t)}}},G.line=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&"number"==typeof t[0][0][0]?U:K}},j.marker={_default:"dot",dot:{setup:function(e){e.filter=e.renderer.shadowFilter("-40%","-40%","180%","200%",0,1,1,"#000000",.2)},reset:function(e){e.filter.dispose(),e.filter=null},_draw:function(e,t,n){t.back=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root),t.dot=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){t.dot.attr({filter:o.shadow?e.filter.id:null})},_getStyles:function(e,t){var n=t.size>0?b(t.size):0,i=n,o=n+(t.selectedStep>0?b(t.selectedStep):0),a=i+(t.backStep>0?b(t.backStep):0),r=o+(t.backStep>0?b(t.backStep):0),s=t.color||null,l=t.borderColor||null,u=L(t.borderWidth,null),d=L(t.opacity,null),c=t.backColor||null,h=L(t.backOpacity,null);e.dot=[{r:n/2,stroke:l,"stroke-width":u,fill:s,opacity:d},{r:i/2,stroke:t.hoveredBorderColor||l,"stroke-width":L(t.hoveredBorderWidth,u),fill:t.hoveredColor||s,opacity:L(t.hoveredOpacity,d)},{r:o/2,stroke:t.selectedBorderColor||l,"stroke-width":L(t.selectedBorderWidth,u),fill:t.selectedColor||s,opacity:L(t.selectedOpacity,d)}],e.back=[{r:n/2,stroke:"none","stroke-width":0,fill:c,opacity:h},{r:a/2,stroke:"none","stroke-width":0,fill:c,opacity:h},{r:r/2,stroke:"none","stroke-width":0,fill:c,opacity:h}]},_setState:function(e,t,n){q(e,t,n,"dot"),q(e,t,n,"back")}},bubble:{_draw:function(e,t,n){t.bubble=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){t.bubble.attr({r:o.size/2})},_getStyles:function(e,t){var n=t.color||null,i=t.borderColor||null,o=L(t.borderWidth,null),a=L(t.opacity,null);e.bubble=[{stroke:i,"stroke-width":o,fill:n,opacity:a},{stroke:t.hoveredBorderColor||i,"stroke-width":L(t.hoveredBorderWidth,o),fill:t.hoveredColor||t.color,opacity:L(t.hoveredOpacity,a)},{stroke:t.selectedBorderColor||i,"stroke-width":L(t.selectedBorderWidth,o),fill:t.selectedColor||t.color,opacity:L(t.selectedOpacity,a)}]},_setState:function(e,t,n){q(e,t,n,"bubble")},arrange:function(e,t){var n,i=[],o=i.length=t.length,a=e.settings,r=a.dataField,s=a.minSize>0?b(a.minSize):0,l=a.maxSize>s?b(a.maxSize):s;if(!a.sizeGroups){for(n=0;n<o;++n)i[n]=D(V(t[n].proxy,r)||0,0);var u=k.apply(null,i),d=D.apply(null,i)-u||1,c=l-s;for(n=0;n<o;++n)t[n]._settings.size=s+c*(i[n]-u)/d}},updateGrouping:function(e){var t=e.settings.dataField;W.marker.updateGrouping(e),N(e,(function(e){return V(e,t)}))}},pie:{_draw:function(e,t,n){t.pie=e.renderer.g().append(t.root),t.border=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){var a=V(i,e.settings.dataField)||[],r=o._colors,s=0,l=t.pie,u=e.renderer,d=e.dataKey,c=(o.size>0?b(o.size):0)/2,h=90,f=h,p=!1;0===(s=a.reduce((function(e,t){return e+(t||0)}),0))&&(p=!0,s=360/a.length),a.forEach((function(e,t){h=f,f+=p?s:(e||0)/s*360,u.arc(0,0,0,c,h,f).attr({"stroke-linejoin":"round",fill:r[t]}).data(d,n).append(l)})),t.border.attr({r:c})},_getStyles:function(e,t){var n=L(t.opacity,null),i=t.borderColor||null,o=L(t.borderWidth,null);e.pie=[{opacity:n},{opacity:L(t.hoveredOpacity,n)},{opacity:L(t.selectedOpacity,n)}],e.border=[{stroke:i,"stroke-width":o},{stroke:t.hoveredBorderColor||i,"stroke-width":L(t.hoveredBorderWidth,o)},{stroke:t.selectedBorderColor||i,"stroke-width":L(t.selectedBorderWidth,o)}]},_setState:function(e,t,n){q(e,t,n,"pie"),q(e,t,n,"border")},arrange:function(e,t){var n,i,o=t.length,a=e.settings.dataField,r=0;for(n=0;n<o;++n)(i=V(t[n].proxy,a))&&i.length>r&&(r=i.length);r>0&&(i=e.params.themeManager.createPalette(e.settings.palette,{useHighlight:!0,extensionMode:"alternate"}).generateColors(r),e.settings._colors=i,e.grouping.color={callback:c,field:"",partition:[],values:[]},e.params.dataExchanger.set(e.name,"color",{partition:[],values:i}))}},image:{_draw:function(e,t,n){t.image=e.renderer.image(null,null,null,null,null,"center").attr({"pointer-events":"visible"}).data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i){t.image.attr({href:V(i,e.settings.dataField)})},_getStyles:function(e,t){var n=t.size>0?b(t.size):0,i=n+(t.hoveredStep>0?b(t.hoveredStep):0),o=n+(t.selectedStep>0?b(t.selectedStep):0),a=L(t.opacity,null);e.image=[{x:-n/2,y:-n/2,width:n,height:n,opacity:a},{x:-i/2,y:-i/2,width:i,height:i,opacity:L(t.hoveredOpacity,a)},{x:-o/2,y:-o/2,width:o,height:o,opacity:L(t.selectedOpacity,a)}]},_setState:function(e,t,n){q(e,t,n,"image")}}};var te,ne=function(e,t,n,i,o){var a;i&&t&&t.length>1&&(a=o(t.length-1),e.grouping[n]={callback:(0,l.isFunction)(i)?i:ee,field:i,partition:t,values:a},e.params.dataExchanger.set(e.name,n,{partition:t,values:a,defaultColor:e.settings.color}))};function ie(e){var t=e.name,n=e.params.dataExchanger;f(e.grouping,(function(e){n.set(t,e,null)})),e.grouping={}}function oe(e,t,n){return n?e|=t:e&=~t,e}function ae(e,t){return!!(e&t)}H=function(e){ne(e,e.settings.colorGroups,"color",e.settings.colorGroupingField,(function(t){var n,i=e.params.themeManager.createDiscretePalette(e.settings.palette,t),o=[];for(n=0;n<t;++n)o.push(i.getColor(n));return o}))},N=function(e,t){var n=e.settings;ne(e,n.sizeGroups,"size",t||n.sizeGroupingField,(function(e){var t=n.minSize>0?b(n.minSize):0,i=n.maxSize>=t?b(n.maxSize):0,o=0,a=[];if(e>1)for(o=0;o<e;++o)a.push((t*(e-o-1)+i*o)/(e-1));else 1===e&&a.push((t+i)/2);return a}))};var re=function(e,t,n,i){var o=this;o._params=e,o._onProjection(),o.proxy=function(e,t,n){var i={index:n,name:t,getElements:function(){return e.getProxies()},clearSelection:function(t){return e.clearSelection(t),i},getDataSource:function(){return e.getDataSource()},getBounds:function(){return e.getBounds()}};return i}(o,n,i),o._context={name:n,layer:o.proxy,renderer:e.renderer,projection:e.projection,params:e,dataKey:e.dataKey,str:z,hover:!1,selection:null,grouping:{},root:e.renderer.g().attr({class:"dxm-layer"}).linkOn(t,n).linkAppend()},o._container=t,o._options={},o._handles=[],o._data=new A,o._dataSourceLoaded=null};function se(e){var t,n,i,o=e.length,a=e[o-1],r=0,s=0,l=0,u=1/0,d=-1/0,c=1/0,h=-1/0;for(t=0;t<o;++t)n=a,a=e[t],l+=i=n[0]*a[1]-a[0]*n[1],r+=(n[0]+a[0])*i,s+=(n[1]+a[1])*i,u=k(u,a[0]),d=D(d,a[0]),c=k(c,a[1]),h=D(h,a[1]);return{area:C(l)/2,center:[2*r/3/l-(u+d)/2,2*s/3/l-(c+h)/2]}}function le(e){var t,n,i=e.length,o=e[0]||[],a=0,r=[0],s=o[0],l=o[0],u=o[1],d=o[1];for(t=1;t<i;++t)n=o,o=e[t],a+=I((n[0]-o[0])*(n[0]-o[0])+(n[1]-o[1])*(n[1]-o[1])),r[t]=a,s=k(s,o[0]),l=D(l,o[0]),u=k(u,o[1]),d=D(d,o[1]);n=e[t=X(a/2,r)],o=e[t+1];var c=(a/2-r[t])/(r[t+1]-r[t]);return i?[[n[0]*(1-c)+o[0]*c,n[1]*(1-c)+o[1]*c],[l-s,d-u],a]:[]}function ue(e){var t=this,n=e.renderer;t._params=e,t._layers=[],t._layerByName={},t._rect=[0,0,0,0],t._clip=n.clipRect(),t._background=n.rect().attr({class:"dxm-background"}).data(e.dataKey,{name:"background"}).append(n.root),t._container=n.g().attr({class:"dxm-layers","clip-path":t._clip.id}).append(n.root).enableLinks(),t._subscribeToTracker(e.tracker,n,e.eventTrigger),t._dataReady=e.dataReady}re.prototype=h({constructor:re,getDataReadyCallback:function(){return this._dataSourceLoaded},_onProjection:function(){var e=this;e._removeHandlers=e._params.projection.on({engine:function(){e._project()},screen:function(){e._transform()},center:function(){e._transformCore()},zoom:function(){e._transform()}})},getData:function(){return this._data},_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceChangedHandler:function(){var e,t,n=this;n._data=((e=n._dataSource&&n._dataSource.items())&&(M(e)?t=P:1===e.length&&e[0]&&M(e[0])?(t=P,e=e[0]):x(e)&&(t=O)),new(t=t||A)(e)),n._update(!0)},_dataSourceOptions:function(){return{paginate:!1}},_getSpecificDataSourceOption:function(){return this._specificDataSourceOption},_normalizeDataSource:function(e){var t=e.store();return"raw"===t._loadMode&&(t._loadMode=void 0),e},_offProjection:function(){this._removeHandlers(),this._removeHandlers=null},dispose:function(){var e=this;return e._disposeDataSource(),e._destroyHandles(),ie(e._context),e._context.root.linkRemove().linkOff(),e._context.labelRoot&&e._context.labelRoot.linkRemove().linkOff(),e._context.str.reset(e._context),e._offProjection(),e._params=e._container=e._context=e.proxy=null,e},setOptions:function(e){var t,n=this;e=n._options=e||{},n._dataSourceLoaded=new u.Deferred,"dataSource"in e&&e.dataSource!==n._options_dataSource?(n._options_dataSource=e.dataSource,n._params.notifyDirty(),n._specificDataSourceOption=(t=e.dataSource)?M(t)?[t]:t:[],n._refreshDataSource()):n._data.count()>0&&(n._params.notifyDirty(),n._update(void 0!==e.type&&e.type!==n._context.str.type||void 0!==e.elementType&&e.elementType!==n._context.str.elementType)),n._transformCore()},_update:function(e){var t,n,i=this,o=i._context;e&&(o.str.reset(o),o.root.clear(),o.labelRoot&&o.labelRoot.clear(),i._params.tracker.reset(),i._destroyHandles(),o.str=function(e,t){var n,i=(0,d.normalizeEnum)(e.type),o=(0,d.normalizeEnum)(e.elementType),a=h({},z);return t.count()>0&&(n=t.geometry(t.item(0)),i=W[i]?i:function(e){var t=F[e.type],n=e.coordinates;return t||(t="number"==typeof n[0]?_:"number"==typeof n[0][0]?m:g),t}(n),h(a,W[i]),a.fullType=a.type=i,G[i]&&h(a,G[i](n)),j[i]&&(o=j[i][o]?o:j[i]._default,h(a,j[i][o]),a.elementType=o,a.fullType+=":"+o)),a}(i._options,i._data),o.str.setup(o),i.proxy.type=o.str.type,i.proxy.elementType=o.str.elementType),o.settings=function(e,t){var n,i,o,a=e.params.themeManager,r=e.str,s=J(h({label:{},color:r.getDefaultColor(e,t.palette)},a.theme("layer:"+r.fullType)),t);if(s.paletteSize>0){for(o=a.createDiscretePalette(s.palette,s.paletteSize),i=0,n=[];i<s.paletteSize;++i)n.push(o.getColor(i));s._colors=n}return s}(o,i._options),o.hasSeparateLabel=!(!o.settings.label.enabled||!o.str.hasLabelsGroup),o.hover=!!(0,d.parseScalar)(o.settings.hoverEnabled,!0),o.selection&&f(o.selection.state,(function(e,t){t&&t.resetSelected()})),o.selection=(t=o.settings.selectionMode,null!==(n=(n=(0,d.normalizeEnum)(t))in y?y[n]:y.single)&&(n={state:{},single:n}),n),o.hasSeparateLabel?o.labelRoot||(o.labelRoot=o.renderer.g().attr({class:"dxm-layer-labels"}).linkOn(i._container,{name:o.name+"-labels",after:o.name}).linkAppend(),i._transformCore()):o.labelRoot&&(o.labelRoot.linkRemove().linkOff(),o.labelRoot=null),e&&i._createHandles(),ie(o),o.str.arrange(o,i._handles),o.str.updateGrouping(o),i._updateHandles(),i._params.notifyReady(),i._dataSourceLoaded?(i._dataSourceLoaded.resolve(),i._dataSourceLoaded=null):i._params.dataReady()},getBounds:function(){return T(this._handles.map((function(e){return e.proxy.coordinates().map((function(e){if(x(e)){var t=x(e[0][0])?e.reduce((function(e,t){return e.concat(t)}),[]):e,n=t[0];return t.reduce((function(e,t){return[k(e[0],t[0]),k(e[1],t[1]),D(e[2],t[0]),D(e[3],t[1])]}),[n[0],n[1],n[0],n[1]])}}))})).map(T))},_destroyHandles:function(){this._handles.forEach((function(e){return e.dispose()})),this._context.selection&&(this._context.selection.state={}),this._handles=[]},_createHandles:function(){var e,t,n,i,o,a,r=this,s=r._handles=[],u=r._data,d=s.length=u.count(),c=r._context,h=u.geometry,p=u.attributes;for(e=0;e<d;++e)n=u.item(e),s[e]=new te(c,e,h(n),p(n));for((0,l.isFunction)(r._options.customize)&&(i=r.getProxies(),o=r._options.customize,a=r._params.widget,o.call(a,i)),e=0;e<d;++e)(t=s[e]).project(),t.draw(),t.transform();c.selection&&f(c.selection.state,(function(e,t){t&&t.restoreSelected()}))},_updateHandles:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].refresh();if(this._context.settings.label.enabled){for(e=0;e<n;++e)t[e].measureLabel();for(e=0;e<n;++e)t[e].adjustLabel()}},_transformCore:function(){var e=this._params.projection.getTransform();this._context.root.attr(e),this._context.labelRoot&&this._context.labelRoot.attr(e)},_project:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].project()},_transform:function(){var e,t=this._handles,n=t.length;for(this._transformCore(),e=0;e<n;++e)t[e].transform()},getProxies:function(){return this._handles.map((function(e){return e.proxy}))},getProxy:function(e){return this._handles[e].proxy},raiseClick:function(e,t){this._params.eventTrigger("click",{target:this._handles[e].proxy,event:t})},hoverItem:function(e,t){this._handles[e].setHovered(t)},selectItem:function(e,t,n){this._handles[e].setSelected(t,n)},clearSelection:function(){var e=this._context.selection;e&&(f(e.state,(function(e,t){t&&t.setSelected(!1)})),e.state={})}},s.default),(te=function(e,t,n,i){var o=this,a=o.proxy=function(e,t,n){var i={coordinates:function(){return t},attribute:function(e,t){return arguments.length>1?(n[e]=t,i):arguments.length>0?n[e]:n},selected:function(t,n){return arguments.length>0?(e.setSelected(t,n),i):e.isSelected()},applySettings:function(t){return e.update(t),i}};return i}(o,n.coordinates,h({},i));o._ctx=e,o._index=t,o._fig=o._label=null,o._state=0,o._coordinates=n.coordinates,o._settings={label:{}},a.index=t,a.layer=e.layer,o._data={name:e.name,index:t}}).prototype={constructor:te,dispose:function(){var e=this;return e._ctx=e.proxy=e._settings=e._fig=e._label=e.data=null,e},project:function(){var e=this._ctx;this._projection=e.str.project(e.projection,this._coordinates),e.hasSeparateLabel&&this._label&&this._projectLabel()},_projectLabel:function(){this._labelProjection=this._ctx.str.projectLabel(this._projection)},draw:function(){var e=this,t=this._ctx;t.str.draw(t,e._fig={},e._data),e._fig.root.append(t.root)},transform:function(){var e=this,t=e._ctx;t.str.transform(e._fig,t.projection,e._projection),t.hasSeparateLabel&&e._label&&e._transformLabel()},_transformLabel:function(){this._ctx.str.transformLabel(this._label,this._ctx.projection,this._labelProjection)},refresh:function(){var e=this,t=e._ctx.str,n=function(e,t,n){var i=J(e.settings,n);return function(e,t,n){f(e,(function(e,i){var o=X(i.callback(t,i.field),i.partition);o>=0&&(n[e]=i.values[o])}))}(e.grouping,t,i),void 0===n.color&&n.paletteIndex>=0&&(i.color=i._colors[n.paletteIndex]),i}(e._ctx,e.proxy,e._settings);e._styles=t.getStyles(n),t.refresh(e._ctx,e._fig,e._data,e.proxy,n),e._refreshLabel(n),e._setState()},_refreshLabel:function(e){var t=this,n=t._ctx,i=e.label,o=t._label;n.settings.label.enabled?(o||(o=t._label={root:n.labelRoot||t._fig.root,text:n.renderer.text().attr({class:"dxm-label"}),size:[0,0]},n.hasSeparateLabel&&(t._projectLabel(),t._transformLabel())),o.value=w(t.proxy.text||t.proxy.attribute(i.dataField)||""),o.value&&(o.text.attr({text:o.value,x:0,y:0}).css((0,d.patchFontOptions)(i.font)).attr({align:"center",stroke:i.stroke,"stroke-width":i["stroke-width"],"stroke-opacity":i["stroke-opacity"]}).data(n.dataKey,t._data).append(o.root),o.settings=e)):o&&(o.text.remove(),t._label=null)},measureLabel:function(){var e,t=this._label;t.value&&(e=t.text.getBBox(),t.size=[e.width,e.height,-e.y-e.height/2])},adjustLabel:function(){var e,t=this._label;t.value&&(e=this._ctx.str.getLabelOffset(t,t.settings),t.settings=null,t.text.attr({x:e[0],y:e[1]+t.size[2]}))},update:function(e){var t=this;t._settings=J(t._settings,e),t._fig&&(t.refresh(),t._label&&t._label.value&&(t.measureLabel(),t.adjustLabel()))},_setState:function(){this._ctx.str.setState(this._fig,this._styles,v[this._state])},_setForeground:function(){var e=this._fig.root;this._state?e.toForeground():e.toBackground()},setHovered:function(e){var t=this,n=ae(t._state,1),i=!!e;return t._ctx.hover&&n!==i&&(t._state=oe(t._state,1,i),t._setState(),t._setForeground(),Q(t._ctx,t,i,"hoverChanged")),t},setSelected:function(e,t){var n,i=this,o=ae(i._state,2),a=!!e,r=i._ctx.selection;r&&o!==a&&(i._state=oe(i._state,2,a),n=r.state[r.single],r.state[r.single]=null,n&&n.setSelected(!1),r.state[r.single||i._index]=e?i:null,i._fig&&(i._setState(),i._setForeground(),t||Q(i._ctx,i,a,"selectionChanged")))},isSelected:function(){return ae(this._state,2)},resetSelected:function(){this._state=oe(this._state,2,!1)},restoreSelected:function(){this._fig.root.toForeground()}},ue.prototype={constructor:ue,dispose:function(){var e=this;e._clip.dispose(),e._layers.forEach((function(e){return e.dispose()})),e._offTracker(),e._params=e._offTracker=e._layers=e._layerByName=e._clip=e._background=e._container=null},_subscribeToTracker:function(e,t,n){var i=this;i._offTracker=e.on({click:function(e){var o=t.getRootOffset(),a=i.byName(e.data.name);e.$event.x=e.x-o.left,e.$event.y=e.y-o.top,a?a.raiseClick(e.data.index,e.$event):"background"===e.data.name&&n("click",{event:e.$event})},"hover-on":function(e){var t=i.byName(e.data.name);t&&t.hoverItem(e.data.index,!0)},"hover-off":function(e){var t=i.byName(e.data.name);t&&t.hoverItem(e.data.index,!1)}})},setOptions:function(e){var t,n=this,i=e?x(e)?e:[e]:[],o=n._layers;if(i.length!==o.length||o.some((function(e,t){var n=E(i,t);return(0,l.isDefined)(n)&&n!==e.proxy.name}))){n._params.tracker.reset(),n._layers.forEach((function(e){return e.dispose()}));var a=n._layerByName={};n._layers=o=[];for(var r=0,s=i.length;r<s;++r){var d=E(i,r)||"map-layer-"+r,c=o[r]=new re(n._params,n._container,d,r);a[d]=c}}o.forEach((function(e,t){e.setOptions(i[t])})),(t=o.map((function(e){return e.getDataReadyCallback()}))).length&&u.when.apply(void 0,t).done(n._dataReady)},_updateClip:function(){var e=this._rect,t=this._borderWidth;this._clip.attr({x:e[0]+t,y:e[1]+t,width:D(e[2]-2*t,0),height:D(e[3]-2*t,0)})},setBackgroundOptions:function(e){this._background.attr({stroke:e.borderColor,"stroke-width":e.borderWidth,fill:e.color}),this._borderWidth=D(e.borderWidth,0),this._updateClip()},setRect:function(e){this._rect=e,this._background.attr({x:e[0],y:e[1],width:e[2],height:e[3]}),this._updateClip()},byIndex:function(e){return this._layers[e]},byName:function(e){return this._layerByName[e]},items:function(){return this._layers}}},102:function(e,t,n){Object.defineProperty(t,"projection",{enumerable:!0,get:function(){return i.projection}});var i=n(14316),o=Math.min,a=Math.max,r=Math.sin,s=Math.asin,l=Math.tan,u=Math.atan,d=Math.exp,c=Math.log,h=Math.PI,f=h/4,p=180,g=h/180,m=(2*u(d(h))-h/2)/g,_=(2.5*u(d(.8*h))-.625*h)/g;function v(e,t){return a(o(e,+t),-t)}i.projection.add("mercator",(0,i.projection)({aspectRatio:1,to:function(e){return[e[0]/p,c(l(f+v(e[1],m)*g/2))/h]},from:function(e){return[e[0]*p,(2*u(d(e[1]*h))-h/2)/g]}})),i.projection.add("equirectangular",(0,i.projection)({aspectRatio:2,to:function(e){return[e[0]/p,e[1]/90]},from:function(e){return[e[0]*p,90*e[1]]}})),i.projection.add("lambert",(0,i.projection)({aspectRatio:2,to:function(e){return[e[0]/p,r(v(e[1],90)*g)]},from:function(e){return[e[0]*p,s(v(e[1],1))/g]}})),i.projection.add("miller",(0,i.projection)({aspectRatio:1,to:function(e){return[e[0]/p,1.25*c(l(f+v(e[1],_)*g*.4))/h]},from:function(e){return[e[0]*p,(2.5*u(d(.8*e[1]*h))-.625*h)/g]}}))},14316:function(e,t,n){t.projection=t.Projection=void 0;var i=n(13306),o=n(63832);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s=Number,l=Math.min,u=Math.max,d=Math.abs,c=Math.round,h=Math.log,f=Math.pow,p=2/Math.LN2,g=1/3600/180/10,m=[NaN,NaN];function _(e,t){return d(e-t)<1e-8}function v(e,t){return _(e[0],t[0])&&_(e[1],t[1])}function y(e,t,n,i){var o=s(e);return isFinite(o)?l(u(o,t),n):i}function x(e,t,n,i){return[y(e[0],t[0],n[0],i[0]),y(e[1],t[1],n[1],i[1])]}function b(e){return e instanceof D&&e||O.get(e)||O(e)||O.get("mercator")}var w=function(e){var t=this;t._initEvents(),t._params=e,t._engine=b(),t._center=t._engine.center(),t._adjustCenter()};function C(e,t,n,i){var o=(n+i)/2;return d(e-o)>d(t-o)?e:t}function S(e,t,n,i){var o=(n+i)/2;return d(e-o)<d(t-o)?e:t}function k(e,t,n){var i=A(t,n),o=i.min,a=i.max;e.min=E(o),e.max=E(a)}t.Projection=w,w.prototype={constructor:w,_minZoom:1,_maxZoom:256,_zoom:1,_center:m,_canvas:{},_scale:[],dispose:function(){this._disposeEvents()},setEngine:function(e){var t=this,n=b(e);t._engine!==n&&(t._engine=n,t._fire("engine"),t._changeCenter(n.center())&&t._triggerCenterChanged(),t._changeZoom(t._minZoom)&&t._triggerZoomChanged(),t._adjustCenter(),t._setupScreen())},setBounds:function(e){void 0!==e&&this.setEngine(this._engine.original().bounds(e))},_setupScreen:function(){var e=this,t=e._canvas,n=t.width,i=t.height,o=e._engine,a=o.ar();e._x0=t.left+n/2,e._y0=t.top+i/2;var r,s=[e.project([o.min()[0],0])[0],e.project([0,o.min()[1]])[1]],c=[e.project([o.max()[0],0])[0],e.project([0,o.max()[1]])[1]],h=n/i,f=d(c[0]-s[0])/d(c[1]-s[1]);r=isNaN(f)||0===f||l(h,a)<=a*f&&a*f<=u(h,a)?1:f>1?f:1/f,a*f>=h?(e._xRadius=n/2/r,e._yRadius=n/2/(a*r)):(e._xRadius=i/2*(a/r),e._yRadius=i/2/r),e._fire("screen")},setSize:function(e){this._canvas=e,this._setupScreen()},getCanvas:function(){return this._canvas},_toScreen:function(e){return[this._x0+this._xRadius*e[0],this._y0+this._yRadius*e[1]]},_fromScreen:function(e){return[(e[0]-this._x0)/this._xRadius,(e[1]-this._y0)/this._yRadius]},_toTransformed:function(e){return[e[0]*this._zoom+this._xCenter,e[1]*this._zoom+this._yCenter]},_toTransformedFast:function(e){return[e[0]*this._zoom,e[1]*this._zoom]},_fromTransformed:function(e){return[(e[0]-this._xCenter)/this._zoom,(e[1]-this._yCenter)/this._zoom]},_adjustCenter:function(){var e=this,t=e._engine.project(e._center);e._xCenter=-t[0]*e._zoom||0,e._yCenter=-t[1]*e._zoom||0},project:function(e){return this._engine.project(e)},transform:function(e){return this._toScreen(this._toTransformedFast(e))},isInvertible:function(){return this._engine.isInvertible()},getSquareSize:function(e){return[e[0]*this._zoom*this._xRadius,e[1]*this._zoom*this._yRadius]},getZoom:function(){return this._zoom},_changeZoom:function(e){var t=this,n=!_(t._zoom,t._zoom=y(e,t._minZoom,t._maxZoom,t._minZoom));return n&&(t._adjustCenter(),t._fire("zoom")),n},setZoom:function(e){this._engine.isInvertible()&&this._changeZoom(e)&&this._triggerZoomChanged()},getScaledZoom:function(){return c((this._scale.length-1)*h(this._zoom)/h(this._maxZoom))},setScaledZoom:function(e){this.setZoom(this._scale[c(e)])},changeScaledZoom:function(e){this.setZoom(this._scale[u(l(c(this.getScaledZoom()+e),this._scale.length-1),0)])},getZoomScalePartition:function(){return this._scale.length-1},_setupScaling:function(){var e=this,t=u(c(p*h(e._maxZoom)),4),n=f(e._maxZoom,1/t),i=e._minZoom;e._scale=[i];for(var o=1;o<=t;++o)e._scale.push(i*=n)},setMaxZoom:function(e){var t=this;t._minZoom=1,t._maxZoom=y(e,t._minZoom,s.MAX_VALUE,256),t._setupScaling(),t._zoom>t._maxZoom&&t.setZoom(t._maxZoom),t._fire("max-zoom")},getCenter:function(){return this._center.slice()},setCenter:function(e){this._engine.isInvertible()&&this._changeCenter(e||[])&&this._triggerCenterChanged()},_changeCenter:function(e){var t=this,n=t._engine,i=!v(t._center,t._center=x(e,n.min(),n.max(),n.center()));return i&&(t._adjustCenter(),t._fire("center")),i},_triggerCenterChanged:function(){this._params.centerChanged(this.getCenter())},_triggerZoomChanged:function(){this._params.zoomChanged(this.getZoom())},setCenterByPoint:function(e,t){var n=this,i=n._engine.project(e),o=n._fromScreen(t);n.setCenter(n._engine.unproject([-o[0]/n._zoom+i[0],-o[1]/n._zoom+i[1]]))},beginMoveCenter:function(){this._engine.isInvertible()&&(this._moveCenter=this._center)},endMoveCenter:function(){var e=this;e._moveCenter&&(v(e._moveCenter,e._center)||e._triggerCenterChanged(),e._moveCenter=null)},moveCenter:function(e){var t=this;if(t._moveCenter){var n=t.toScreenPoint(t._center);t._changeCenter(t.fromScreenPoint([n[0]+e[0],n[1]+e[1]]))}},getViewport:function(){var e=this,t=e._engine.unproject,n=t(e._fromTransformed([-1,-1])),i=t(e._fromTransformed([-1,1])),o=t(e._fromTransformed([1,-1])),a=t(e._fromTransformed([1,1])),r=A([C(n[0],i[0],o[0],a[0]),C(n[1],o[1],i[1],a[1])],[C(o[0],a[0],n[0],i[0]),C(i[1],a[1],n[1],o[1])]);return[].concat(r.min,r.max)},setViewport:function(e){var t=this._engine,n=e?function(e,t,n){var i=e([n[0],n[3]]),o=e([n[0],n[1]]),a=e([n[2],n[3]]),r=e([n[2],n[1]]),s=S(i[0],o[0],a[0],r[0]),l=S(a[0],r[0],i[0],o[0]),c=S(i[1],a[1],o[1],r[1]),h=S(o[1],r[1],i[1],a[1]);return[2/u(d(s-l),d(c-h)),t([(s+l)/2,(c+h)/2])]}(t.project,t.unproject,e):[this._minZoom,t.center()];this.setZoom(n[0]),this.setCenter(n[1])},getTransform:function(){return{translateX:this._xCenter*this._xRadius,translateY:this._yCenter*this._yRadius}},fromScreenPoint:function(e){return this._engine.unproject(this._fromTransformed(this._fromScreen(e)))},toScreenPoint:function(e){return this._toScreen(this._toTransformed(this._engine.project(e)))},_eventNames:["engine","screen","center","zoom","max-zoom"]},(0,o.makeEventEmitter)(w);var D=function(){function e(e){var t,n=this,o=(t=e.to,function(e){return I(t(e))}),a=e.from?function(e){return function(t){return e(I(t))}}(e.from):T(m);n.project=o,n.unproject=a,n.original=T(n),n.source=function(){return(0,i.extend)({},e)},n.isInvertible=T(!!e.from),n.ar=T(e.aspectRatio>0?s(e.aspectRatio):1),n.center=E(a([0,0])),k(n,[a([-1,0])[0],a([0,1])[1]],[a([1,0])[0],a([0,-1])[1]])}var t=e.prototype;return t.aspectRatio=function(t){var n=new e((0,i.extend)(this.source(),{aspectRatio:t}));return n.original=this.original,n.min=this.min,n.max=this.max,n},t.bounds=function(t){t=t||[];var n=this.source(),o=this.min(),r=this.max(),s=x([t[0],t[1]],o,r,o),u=x([t[2],t[3]],o,r,r),c=n.to(s),h=n.to(u),f=l(d(h[0]-c[0])>g?d(h[0]-c[0]):2,d(h[1]-c[1])>g?d(h[1]-c[1]):2);f<2&&(0,i.extend)(n,function(e,t,n,i,o){var r=(n[0]+i[0])/2-o/2,s=(n[1]+i[1])/2-o/2,l=2/o;return{to:function(t){var n=a(e(t),2),i=n[0],o=n[1];return[(i-r)*l-1,(o-s)*l-1]},from:function(e){return t([r+(e[0]+1)/l,s+(e[1]+1)/l])}}}(n.to,n.from,c,h,f));var p=new e(n);return p.original=this.original,k(p,s,u),p},e}();function I(e){return[e[0],-e[1]]}function T(e){return function(){return e}}function E(e){return function(){return e.slice()}}function A(e,t){return{min:[l(e[0],t[0]),l(e[1],t[1])],max:[u(e[0],t[0]),u(e[1],t[1])]}}var O=function(e){return e&&e.to?new D(e):null};t.projection=O;var P={};O.get=function(e){return P[e]||null},O.add=function(e,t){return t=t instanceof D&&t||O(t),!P[e]&&t&&(P[e]=t),O}},8068:function(e,t){function n(e){this._subscribeToTracker(e.tracker,e.tooltip,e.layerCollection)}t.TooltipViewer=n,n.prototype={constructor:n,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(e,t,n){this._offTracker=e.on({"focus-on":function(e){var i,o;if(t.isEnabled()){var a=function(t){t&&e.done(t)};(o=(i=n.byName(e.data.name))&&i.getProxy(e.data.index))&&a(t.show(o,{x:e.x,y:e.y,offset:12},{target:o},void 0,a))}},"focus-move":function(e){t.move(e.x,e.y,12)},"focus-off":function(){t.hide()}})}}},49497:function(e,t,n){t.Tracker=A;var i=d(n(55994)),o=n(58201),a=d(n(73349)),r=n(63832),s=n(39611),l=n(765),u=n(19157);function d(e){return e&&e.__esModule?e:{default:e}}var c,h,f,p=(0,o.getNavigator)(),g=Math,m=g.abs,_=g.sqrt,v=g.round,y=s.addNamespace,x="dxVectorMap",b="start",w="move",C="zoom",S="hover-on",k="hover-off",D="click",I="focus-on",T="focus-move",E="focus-off";function A(e){var t=this;t._root=e.root,t._createEventHandlers(e.dataKey),t._createProjectionHandlers(e.projection),t._initEvents(),t._focus=new h((function(e,n){t._fire(e,n)})),t._attachHandlers()}function O(e,t,n,i){return _((e-n)*(e-n)+(t-i)*(t-i))}function P(e){var t=e.originalEvent.type,n=e.originalEvent.pointerType;return/^touch/.test(t)||/^MSPointer/.test(t)&&4!==n||/^pointer/.test(t)&&"mouse"!==n}function M(e,t){for(var n,i=0,o=e.length;i<o;++i)if(e[i]){n=t[i];break}return y(n||t[i],x)}function R(e){var t=e.originalEvent,n=t.touches&&t.touches[0]||{};return{x:n.pageX||t.pageX||e.pageX,y:n.pageY||t.pageY||e.pageY}}function B(e){return e.originalEvent.pointerId}function V(e,t){var n=e.originalEvent;return(n=void 0!==n.pointerId?n.pointerId===t?n:null:n.touches[t])?{x:n.pageX||e.pageX,y:n.pageY||e.pageY}:null}f=[p.pointerEnabled,p.msPointerEnabled,(0,o.hasProperty)("ontouchstart")],c={start:M(f,["pointerdown","MSPointerDown","touchstart mousedown","mousedown"]),move:M(f,["pointermove","MSPointerMove","touchmove mousemove","mousemove"]),end:M(f,["pointerup","MSPointerUp","touchend mouseup","mouseup"]),wheel:y(l.name,x)},A.prototype={constructor:A,dispose:function(){var e=this;e._detachHandlers(),e._disposeEvents(),e._focus.dispose(),e._root=e._focus=e._docHandlers=e._rootHandlers=null},_eventNames:[b,w,"end",C,D,S,k,I,E,T],_startClick:function(e,t){if(t){var n=R(e);this._clickState={x:n.x,y:n.y,threshold:P(e)?20:5,time:Date.now()}}},_endClick:function(e,t){var n,i,o=this._clickState;o&&(t&&Date.now()-o.time<=500&&(n=o.threshold,i=R(e),m(i.x-o.x)<=n&&m(i.y-o.y)<=n&&this._fire(D,{data:t,x:i.x,y:i.y,$event:e})),this._clickState=null)},_startDrag:function(e,t){if(t){var n=R(e),i=this._dragState={x:n.x,y:n.y,data:t};this._fire(b,{x:i.x,y:i.y,data:i.data})}},_moveDrag:function(e,t){var n=this._dragState;if(n){var i=R(e),o=P(e)?10:5;(n.active||m(i.x-n.x)>o||m(i.y-n.y)>o)&&(n.x=i.x,n.y=i.y,n.active=!0,n.data=t||{},this._fire(w,{x:n.x,y:n.y,data:n.data}))}},_endDrag:function(){var e=this._dragState;e&&(this._dragState=null,this._fire("end",{x:e.x,y:e.y,data:e.data}))},_wheelZoom:function(e,t){if(t){var n=this._wheelLock,i=Date.now();if(!(i-n.time<=50)){i-n.dirTime>300&&(n.dir=0);var o=function(e,t){if(0===e)return 0;var n=m(e),i=v(e/n);return t.dir&&i!==t.dir?0:(t.dir=i,i*(n=n<.1?0:n<1?1:n>4?4:v(n)))}(e.delta/120||0,n);if(0!==o){var a=R(e);this._fire(C,{delta:o,x:a.x,y:a.y}),n.time=n.dirTime=i}}}},_startZoom:function(e,t){if(P(e)&&t){var n,i,o=this._zoomState=this._zoomState||{};o.pointer1&&o.pointer2||(void 0===o.pointer1&&(o.pointer1=B(e)||0,n=V(e,o.pointer1),o.x1=o.x1_0=n.x,o.y1=o.y1_0=n.y),void 0===o.pointer2&&(i=B(e)||1)!==o.pointer1&&(n=V(e,i))&&(o.x2=o.x2_0=n.x,o.y2=o.y2_0=n.y,o.pointer2=i,o.ready=!0,this._endDrag()))}},_moveZoom:function(e){var t,n=this._zoomState;n&&P(e)&&(void 0!==n.pointer1&&(t=V(e,n.pointer1))&&(n.x1=t.x,n.y1=t.y),void 0!==n.pointer2&&(t=V(e,n.pointer2))&&(n.x2=t.x,n.y2=t.y))},_endZoom:function(e){var t,n,i=this._zoomState;i&&P(e)&&(i.ready&&(t=O(i.x1_0,i.y1_0,i.x2_0,i.y2_0),n=O(i.x1,i.y1,i.x2,i.y2),this._fire(C,{ratio:n/t,x:(i.x1_0+i.x2_0)/2,y:(i.y1_0+i.y2_0)/2})),this._zoomState=null)},_startHover:function(e,t){this._doHover(e,t,!0)},_moveHover:function(e,t){this._doHover(e,t,!1)},_doHover:function(e,t,n){var i=this;i._dragState&&i._dragState.active||i._zoomState&&i._zoomState.ready?i._cancelHover():P(e)!==n||i._hoverTarget===e.target||i._hoverState&&i._hoverState.data===t||(i._cancelHover(),t&&(i._hoverState={data:t},i._fire(S,{data:t})),i._hoverTarget=e.target)},_cancelHover:function(){var e=this._hoverState;this._hoverState=this._hoverTarget=null,e&&this._fire(k,{data:e.data})},_startFocus:function(e,t){this._doFocus(e,t,!0)},_moveFocus:function(e,t){this._doFocus(e,t,!1)},_doFocus:function(e,t,n){var i=this;i._dragState&&i._dragState.active||i._zoomState&&i._zoomState.ready?i._cancelFocus():P(e)===n&&(i._focus.turnOff(),t&&i._focus.turnOn(t,R(e)))},_cancelFocus:function(){this._focus.cancel()},_createEventHandlers:function(e){var t=this;function n(t){var n=t.target;return("tspan"===n.tagName?n.parentNode:n)[e]}t._docHandlers={},t._rootHandlers={},t._rootHandlers[c.start]=t._docHandlers[c.start]=function(e){var i=P(e),o=n(e);i&&!t._isTouchEnabled||(o&&(e.preventDefault(),e.stopPropagation()),t._startClick(e,o),t._startDrag(e,o),t._startZoom(e,o),t._startHover(e,o),t._startFocus(e,o))},t._docHandlers[c.move]=function(e){var i=P(e),o=n(e);i&&!t._isTouchEnabled||(t._moveDrag(e,o),t._moveZoom(e,o),t._moveHover(e,o),t._moveFocus(e,o))},t._docHandlers[c.end]=function(e){var i=P(e),o=n(e);i&&!t._isTouchEnabled||(t._endClick(e,o),t._endDrag(e,o),t._endZoom(e,o))},t._rootHandlers[c.wheel]=function(e){if(t._cancelFocus(),t._isWheelEnabled){var i=n(e);i&&(e.preventDefault(),e.stopPropagation(),t._wheelZoom(e,i))}},t._wheelLock={dir:0}},_createProjectionHandlers:function(e){var t=this;function n(){t._cancelFocus()}e.on({center:n,zoom:n})},reset:function(){var e=this;e._clickState=null,e._endDrag(),e._cancelHover(),e._cancelFocus()},setOptions:function(e){var t=this;t.reset(),t._detachHandlers(),t._isTouchEnabled=!!(0,u.parseScalar)(e.touchEnabled,!0),t._isWheelEnabled=!!(0,u.parseScalar)(e.wheelEnabled,!0),t._attachHandlers()},_detachHandlers:function(){var e=this;e._isTouchEnabled&&e._root.css({"touch-action":"","-webkit-user-select":""}).off(y("MSHoldVisual",x)).off(y("contextmenu",x)),i.default.off(a.default.getDocument(),e._docHandlers),e._root.off(e._rootHandlers)},_attachHandlers:function(){var e=this;e._isTouchEnabled&&e._root.css({"touch-action":"none","-webkit-user-select":"none"}).on(y("MSHoldVisual",x),(function(e){e.preventDefault()})).on(y("contextmenu",x),(function(e){P(e)&&e.preventDefault()})),i.default.on(a.default.getDocument(),e._docHandlers),e._root.on(e._rootHandlers)}},h=function(e){var t,n,i=this,o=null,a=null,r=!1,s=null;i.dispose=function(){clearTimeout(s),i.turnOn=i.turnOff=i.cancel=i.dispose=i=e=o=a=s=null},i.turnOn=function(i,l){function u(e){r=!e,e&&(o=a,clearTimeout(s),s=null)}i===a&&r||(r=!1,a=i,o?(t=l.x,n=l.y,a===o?(e(T,{data:a,x:t,y:n}),u(!0)):e(I,{data:a,x:t,y:n,done:u})):(t=l.x,n=l.y,e(I,{data:a,x:t,y:n,done:u})))},i.turnOff=function(){a=null,o&&!r&&(s=s||setTimeout((function(){s=null,e(E,{data:o}),o=null}),100))},i.cancel=function(){clearTimeout(s),o&&e(E,{data:o}),o=a=s=null}},(0,r.makeEventEmitter)(A)},13711:function(e,t,n){t.default=void 0;var i=n(19157),o=n(14316),a=n(75921),r=n(3797),s=n(49497),l=n(93699),u=n(7291),d=n(39378),c=n(15151),h=n(8068),f=n(56145);n(102);var p=b(n(59063)),g=b(n(99393)),m=n(82454),_=n(17384),v=n(14371),y=n(64758),x=n(77129);function b(e){return e&&e.__esModule?e:{default:e}}var w=/^layers/,C=/\.dataSource$/;function S(e,t){return t?[Math.min(t[0],t[2],e[0]),Math.min(t[1],t[3],e[3]),Math.max(t[0],t[2],e[2]),Math.max(t[1],t[3],e[1])]:e}var k=p.default.inherit({_eventsMap:{onClick:{name:"click"},onCenterChanged:{name:"centerChanged"},onZoomFactorChanged:{name:"zoomFactorChanged"},onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_rootClassPrefix:"dxm",_rootClass:"dxm-vector-map",_themeSection:"map",_fontFields:["layer:area.label.font","layer:marker:dot.label.font","layer:marker:bubble.label.font","layer:marker:pie.label.font","layer:marker:image.label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initLayerCollection:function(e){var t=this;t._layerCollection=new c.MapLayerCollection({renderer:t._renderer,projection:t._projection,themeManager:t._themeManager,tracker:t._tracker,dataKey:e,eventTrigger:t._eventTrigger,dataExchanger:t._dataExchanger,tooltip:t._tooltip,notifyDirty:t._notifyDirty,notifyReady:t._notifyReady,dataReady:function(){var e;if(t.option("getBoundsFromData")&&!t.option("bounds")&&(t._preventProjectionEvents(),e=t._getBoundsFromData(),t._projection.setBounds(e),t._allowProjectionEvents()),!t.option("projection")&&(e=e||t._getBoundsFromData(),Math.ceil(e[0])<-180||Math.ceil(e[3])<-90||Math.floor(e[2])>180||Math.floor(e[1])>90)){var n=e[2]-e[0],i=e[1]-e[3];t._projection.setEngine({to:function(t){return[2*(t[0]-e[0])/n-1,2*(t[1]-e[3])/i-1]},from:function(t){return[(t[0]+1)*n/2+e[0],(t[1]+1)*i/2+e[3]]}})}}})},_getBoundsFromData:function(){var e=this._getBoundingBoxFromDataSource();if(!e){var t=(0,c.getMaxBound)(this.getLayers().map((function(e){return e.getBounds()})));t&&(e=t)}return[(e=e||[])[0],e[3],e[2],e[1]]},_initLegendsControl:function(){var e=this;e._legendsControl=new u.LegendsControl({renderer:e._renderer,container:e._root,widget:e,layoutControl:e._layoutControl,themeManager:e._themeManager,dataExchanger:e._dataExchanger,notifyDirty:e._notifyDirty,notifyReady:e._notifyReady})},_initControlBar:function(e){var t=this;t._controlBar=new a.ControlBar({renderer:t._renderer,container:t._root,layoutControl:t._layoutControl,projection:t._projection,tracker:t._tracker,dataKey:e})},_initElements:function(){var e,t=this,n=(0,f.generateDataKey)(),i=0;t._preventProjectionEvents=function(){e=!0},t._allowProjectionEvents=function(){e=!1},t._notifyDirty=function(){t._resetIsReady(),++i},t._notifyReady=function(){t._allowProjectionEvents(),0==--i&&t._drawn()},t._preventProjectionEvents(),t._dataExchanger=new l.DataExchanger,t._projection=new o.Projection({centerChanged:function(n){e||t._eventTrigger("centerChanged",{center:n})},zoomChanged:function(n){e||t._eventTrigger("zoomFactorChanged",{zoomFactor:n})}}),t._tracker=new s.Tracker({root:t._root,projection:t._projection,dataKey:n}),t._gestureHandler=new r.GestureHandler({projection:t._projection,renderer:t._renderer,tracker:t._tracker}),t._layoutControl=new d.LayoutControl(t),t._layoutControl.suspend(),t._initLayerCollection(n),t._createHtmlStructure(),t._initControlBar(n),t._initLegendsControl(),t._prepareExtraElements(),t._tooltipViewer=new h.TooltipViewer({tracker:t._tracker,tooltip:t._tooltip,layerCollection:t._layerCollection})},_change_RESUME_LAYOUT:function(){this._layoutControl.resume()},_initialChanges:["PROJECTION","RESUME_LAYOUT","LAYOUT_INIT","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER"],_layoutChangesOrder:["RESUME_LAYOUT","LAYERS"],_customChangesOrder:["EXTRA_ELEMENTS"],_initCore:function(){this._root=this._renderer.root.attr({align:"center",cursor:"default"}),this._initElements()},_disposeCore:function(){var e=this;e._controlBar.dispose(),e._gestureHandler.dispose(),e._tracker.dispose(),e._legendsControl.dispose(),e._layerCollection.dispose(),e._layoutControl.dispose(),e._tooltipViewer.dispose(),e._dataExchanger.dispose(),e._projection.dispose(),e._dataExchanger=e._gestureHandler=e._projection=e._tracker=e._layoutControl=e._root=e._layerCollection=e._controlBar=e._legendsControl=null},_setupInteraction:function(){var e={centeringEnabled:!!(0,i.parseScalar)(this._getOption("panningEnabled",!0),!0),zoomingEnabled:!!(0,i.parseScalar)(this._getOption("zoomingEnabled",!0),!0)};this._gestureHandler.setInteraction(e),this._controlBar.setInteraction(e)},_getDefaultSize:function(){return{width:800,height:400}},_applySize:function(e){var t={left:e[0],top:e[1],width:e[2]-e[0],height:e[3]-e[1],right:0,bottom:0};this._projection.setSize(t),this._layoutControl.setSize(t),this._layerCollection.setRect([t.left,t.top,t.width,t.height]),this._requestChange(["EXTRA_ELEMENTS"])},_optionChanging:function(e,t,n){t&&n&&w.test(e)&&(t.dataSource&&n.dataSource&&t!==n?t.dataSource=null:C.test(e)&&this.option(e,null))},_applyChanges:function(){this._notifyDirty(),this.callBase.apply(this,arguments),this._notifyReady()},_optionChangesMap:{background:"BACKGROUND",layers:"LAYERS",extraElements:"EXTRA_ELEMENTS",controlBar:"CONTROL_BAR",legends:"LEGENDS",touchEnabled:"TRACKER",wheelEnabled:"TRACKER",panningEnabled:"INTERACTION",zoomingEnabled:"INTERACTION",projection:"PROJECTION",bounds:"BOUNDS",maxZoomFactor:"MAX_ZOOM_FACTOR",zoomFactor:"ZOOM_FACTOR",center:"CENTER"},_optionChangesOrder:["PROJECTION","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER","BACKGROUND","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_change_PROJECTION:function(){this._setProjection()},_change_BOUNDS:function(){this._setBounds()},_change_MAX_ZOOM_FACTOR:function(){this._setMaxZoom()},_change_ZOOM_FACTOR:function(){this._setZoom()},_change_CENTER:function(){this._setCenter()},_change_BACKGROUND:function(){this._setBackgroundOptions()},_change_LAYERS:function(){this._setLayerCollectionOptions()},_change_CONTROL_BAR:function(){this._setControlBarOptions()},_change_EXTRA_ELEMENTS:function(){this._renderExtraElements()},_change_LEGENDS:function(){this._setLegendsOptions()},_change_TRACKER:function(){this._setTrackerOptions()},_change_INTERACTION:function(){this._setupInteraction()},_themeDependentChanges:["BACKGROUND","LAYERS","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_setProjection:function(){this._projection.setEngine(this.option("projection"))},_setBounds:function(){this._projection.setBounds(this.option("bounds"))},_setMaxZoom:function(){this._projection.setMaxZoom(this.option("maxZoomFactor"))},_setZoom:function(){this._projection.setZoom(this.option("zoomFactor"))},_setCenter:function(){this._projection.setCenter(this.option("center"))},_setBackgroundOptions:function(){this._layerCollection.setBackgroundOptions(this._getOption("background"))},_setLayerCollectionOptions:function(){this._layerCollection.setOptions(this.option("layers"))},_getBoundingBoxFromDataSource:function(){var e=this._layerCollection.items(),t=[1/0,-1/0,-1/0,1/0],n=e&&e.length?e.reduce((function(e,t){var n=t.getData(),i=n.count();if(i>0){var o=n.getBBox();if(o)e=S(e,o);else for(var a=0;a<i;a++)e=S(e,n.getBBox(a))}return e}),t):void 0;return n===t?void 0:n},_setControlBarOptions:function(){this._controlBar.setOptions(this._getOption("controlBar"))},_setLegendsOptions:function(){this._legendsControl.setOptions(this.option("legends"))},_setTrackerOptions:function(){this._tracker.setOptions({touchEnabled:this._getOption("touchEnabled",!0),wheelEnabled:this._getOption("wheelEnabled",!0)})},getLayers:function(){return this._layerCollection.items().map((function(e){return e.proxy}))},getLayerByIndex:function(e){var t=this._layerCollection.byIndex(e);return t?t.proxy:null},getLayerByName:function(e){var t=this._layerCollection.byName(e);return t?t.proxy:null},clearSelection:function(e){var t,n=this._layerCollection.items(),i=n.length;for(t=0;t<i;++t)n[t].clearSelection(e);return this},center:function(e){var t=this;return void 0===e?t._projection.getCenter():(t._projection.setCenter(e),t)},zoomFactor:function(e){var t=this;return void 0===e?t._projection.getZoom():(t._projection.setZoom(e),t)},viewport:function(e){var t=this;return void 0===e?t._projection.getViewport():(t._projection.setViewport(e),t)},convertCoordinates:function(e){return e=e&&e.length?e:[arguments[0],arguments[1]],this.convertToGeo(e[0],e[1])},convertToGeo:function(e,t){return this._projection.fromScreenPoint([e,t])},convertToXY:function(e,t){return this._projection.toScreenPoint([e,t])}});(0,g.default)("dxVectorMap",k);var D=k;t.default=D,k.addPlugin(m.plugin),k.addPlugin(_.plugin),k.addPlugin(v.plugin),k.addPlugin(y.plugin),k.addPlugin(x.plugins.core),k.addPlugin(x.plugins.vectorMap),e.exports=t.default,e.exports.default=t.default},56145:function(e,t){t.generateDataKey=function(){return"vectormap-data-"+n++};var n=1},58260:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return(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])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(55285),r=n(46275),s=function(e,t){if(!(e instanceof Object&&t instanceof Object))return e===t;var n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&!n.some((function(n){return e[n]!==t[n]}))},l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._pendingContext=t.context,t}return o(t,e),t.prototype.componentWillReceiveProps=function(e,t){this._pendingContext=null!=t?t:{}},t.prototype.shouldComponentUpdate=function(e,t){return!s(this.props,e)||!s(this.state,t)||!s(this.context,this._pendingContext)},t}(a.Component);t.BaseInfernoComponent=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._effects=[],t}return o(t,e),t.prototype.createEffects=function(){return[]},t.prototype.updateEffects=function(){},t.prototype.componentWillMount=function(){r.InfernoEffectHost.lock()},t.prototype.componentWillUpdate=function(e,t,n){r.InfernoEffectHost.lock()},t.prototype.componentDidMount=function(){var e=this;r.InfernoEffectHost.callbacks.push((function(){e._effects=e.createEffects()})),r.InfernoEffectHost.callEffects()},t.prototype.componentDidUpdate=function(){var e=this;r.InfernoEffectHost.callbacks.push((function(){return e.updateEffects()})),r.InfernoEffectHost.callEffects()},t.prototype.destroyEffects=function(){this._effects.forEach((function(e){return e.dispose()}))},t.prototype.componentWillUnmount=function(){this.destroyEffects()},t}(l);t.InfernoComponent=u;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.vDomElement=null,t}return o(t,e),t.prototype.vDomUpdateClasses=function(){var e=this.vDomElement,t=e.className.length?e.className.split(" "):[],n=t.filter((function(t){return e.dxClasses.previous.indexOf(t)<0})),i=e.dxClasses.previous.filter((function(e){return t.indexOf(e)<0}));n.forEach((function(t){var n=e.dxClasses.removed.indexOf(t);n>-1?e.dxClasses.removed.splice(n,1):e.dxClasses.added.push(t)})),i.forEach((function(t){var n=e.dxClasses.added.indexOf(t);n>-1?e.dxClasses.added.splice(n,1):e.dxClasses.removed.push(t)}))},t.prototype.componentDidMount=function(){var t=a.findDOMfromVNode(this.$LI,!0);this.vDomElement=t,e.prototype.componentDidMount.call(this),t.dxClasses=t.dxClasses||{removed:[],added:[],previous:[]},t.dxClasses.previous=(null==t?void 0:t.className.length)?t.className.split(" "):[]},t.prototype.componentDidUpdate=function(){e.prototype.componentDidUpdate.call(this);var t=this.vDomElement;null!==t&&(t.dxClasses.added.forEach((function(e){return t.classList.add(e)})),t.dxClasses.removed.forEach((function(e){return t.classList.remove(e)})),t.dxClasses.previous=t.className.length?t.className.split(" "):[])},t.prototype.shouldComponentUpdate=function(t,n){var i=e.prototype.shouldComponentUpdate.call(this,t,n);return i&&this.vDomUpdateClasses(),i},t}(u);t.InfernoWrapperComponent=d},5845:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createContext=function(e){return e}},37221:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.effect=e,this.dependency=t,this.destroy=e()}return e.prototype.update=function(e){var t=this.dependency;e&&(this.dependency=e),e&&!e.some((function(e,n){return t[n]!==e}))||(this.dispose(),this.destroy=this.effect())},e.prototype.dispose=function(){this.destroy&&this.destroy()},e}();t.InfernoEffect=n},46275:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.InfernoEffectHost={lockCount:0,lock:function(){this.lockCount++},callbacks:[],callEffects:function(){if(this.lockCount--,this.lockCount<0)throw new Error("Unexpected Effect Call");if(0===this.lockCount){var e=this.callbacks;this.callbacks=[],e.forEach((function(e){return e()}))}}}},44105:function(e,t,n){function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(58260)),i(n(5845)),i(n(37221)),i(n(46275)),i(n(89216)),i(n(32766)),i(n(45202)),i(n(84885)),i(n(56064))},84885:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(55285),o=n(25326);function a(e,t,n,a,r,l){var u=e.childFlags,d=e.children,c=e.props,h=e.flags;if(1!==u){if(2===u)o.isNull(n)?i._M(d,t,a,r,null,l):n=(n=s(d,t,n,a,r,l))?n.nextSibling:null;else if(16===u)o.isNull(n)?t.appendChild(document.createTextNode(d)):1!==t.childNodes.length||3!==n.nodeType?t.textContent=d:n.nodeValue!==d&&(n.nodeValue=d),n=null;else if(12&u)for(var f=!1,p=0,g=d.length;p<g;++p){var m=d[p];o.isNull(n)||f&&(16&m.flags)>0?i._M(m,t,a,r,n,l):n=(n=s(m,t,n,a,r,l))?n.nextSibling:null,f=(16&m.flags)>0}if(0==(8192&h))for(var _=null;n;)_=n.nextSibling,t.removeChild(n),n=_}else o.isNull(t.firstChild)||function(e,t){return Boolean(t&&t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html&&function(e,t){var n=document.createElement("i");return n.innerHTML=t,n.innerHTML===e.innerHTML}(e,t.dangerouslySetInnerHTML.__html))}(t,c)||(t.textContent="",448&h&&(t.defaultValue=""))}function r(e,t,n){if(3!==n.nodeType)t.replaceChild(e.dom=document.createTextNode(e.children),n);else{var i=e.children;n.nodeValue!==i&&(n.nodeValue=i),e.dom=n}return e.dom}function s(e,t,n,l,u,d){var c=e.flags|=16384;return 14&c?function(e,t,n,o,a,r,l){var u,d=e.type,c=e.ref,h=e.props||i.EMPTY_OBJ;if(r){var f=i._CI(e,d,h,o,a,l);u=s(p=f.$LI,t,n,f.$CX,a,l),i._MCCC(c,f,l)}else{var p;u=s(p=i._HI(i._RFC(e,o)),t,n,o,a,l),e.children=p,i._MFCC(e,l)}return u}(e,t,n,l,u,(4&c)>0,d):481&c?function(e,t,n,r,s,l){var u=e.props,d=e.className,c=e.flags,h=e.ref;return s=s||(32&c)>0,1!==n.nodeType?(i._ME(e,null,r,s,null,l),t.replaceChild(e.dom,n)):(e.dom=n,a(e,n,n.firstChild,r,s,l),o.isNull(u)||i._MP(e,c,u,n,s),o.isNullOrUndef(d)?""!==n.className&&n.removeAttribute("class"):s?n.setAttribute("class",d):n.className=d,i._MR(h,n,l)),e.dom}(e,t,n,l,u,d):16&c?r(e,t,n):512&c?e.dom=n:8192&c?function(e,t,n,i,o,s){var l=e.children;return 2===e.childFlags?(r(l,t,n),l.dom):(a(e,t,n,i,o,s),function(e){for(var t,n;e;){if(2033&(t=e.flags))return e.dom;n=e.children,e=8192&t?2===e.childFlags?n:n[n.length-1]:4&t?n.$LI:n}return null}(l[l.length-1]))}(e,t,n,l,u,d):(o.throwError(),null)}t.hydrate=function(e,t,n){var a=t.firstChild;if(o.isNull(a))i.render(e,t,n);else{var r=[];for(o.isInvalid(e)||(a=s(e,t,a,{},!1,r));a&&(a=a.nextSibling);)t.removeChild(a);if(r.length>0)for(var l=void 0;void 0!==(l=r.shift());)l()}t.$V=e,o.isFunction(n)&&n()}},25326:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_MSG="a runtime error occured! Use Inferno in development environment to find the error.",t.isNullOrUndef=function(e){return null==e},t.isInvalid=function(e){return null===e||!1===e||!0===e||void 0===e},t.isFunction=function(e){return"function"==typeof e},t.isNull=function(e){return null===e},t.throwError=function(e){throw e||(e=t.ERROR_MSG),new Error("Inferno Error: "+e)}},89216:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(55285);t.Portal=function(e){var t=e.container,n=e.children;return t?i.createPortal(n,t):null}},32766:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(55285),o=n(37221);t.createReRenderEffect=function(){return new o.InfernoEffect((function(){i.rerender()}),[])}},56064:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(55285),o=n(87456);t.renderTemplate=function(e,t,n){setTimeout((function(){var n;i.render(o.createElement(e,t),null===(n=t.container)||void 0===n?void 0:n.get(0))}),0)},t.hasTemplate=function(e,t,n){return!!t[e]}},45202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"],i=/[A-Z]/g;t.normalizeStyles=function(e){if(e instanceof Object)return Object.keys(e).reduce((function(t,o){var a=e[o],r=o.replace(i,"-$&").toLowerCase();return t[r]=function(e){return"number"==typeof e||!isNaN(Number(e))}(a)?function(e,t){return n.indexOf(e)>-1?t:t+"px"}(r,a):a,t}),{})}},87456:function(e,t,n){n.r(t),n.d(t,{createElement:function(){return l}});var i=n(55285);function o(e){return null==e}function a(e){return"string"==typeof e}function r(e){return void 0===e}var s={onComponentDidMount:1,onComponentDidUpdate:1,onComponentShouldUpdate:1,onComponentWillMount:1,onComponentWillUnmount:1,onComponentWillUpdate:1};function l(e,t,n){var l,u,d=arguments,c=null,h=null,f=null,p=0,g=arguments.length-2;if(1===g)l=n;else if(g>1)for(l=[];g-- >0;)l[g]=d[g+2];if(!a(e)){if(p=2,r(l)||(t||(t={}),t.children=l),!o(t))for(var m in u={},t)"key"===m?h=t.key:"ref"===m?c=t.ref:1===s[m]?(c||(c={}),c[m]=t[m]):u[m]=t[m];return(0,i.createComponentVNode)(p,e,u,h,c)}if(p=(0,i.getFlagsForElementVnode)(e),!o(t))for(var _ in u={},t)"className"===_||"class"===_?f=t[_]:"key"===_?h=t.key:"children"===_&&r(l)?l=t.children:"ref"===_?c=t.ref:("contenteditable"===_&&(p|=4096),u[_]=t[_]);return 8192&p?(0,i.createFragment)(1===g?[l]:l,0,h):(0,i.createVNode)(p,e,f,l,0,u,h,c)}},55285:function(e,t,n){n.r(t),n.d(t,{Component:function(){return ot},EMPTY_OBJ:function(){return f},Fragment:function(){return p},_CI:function(){return Ve},_HI:function(){return j},_M:function(){return Le},_MCCC:function(){return We},_ME:function(){return Ne},_MFCC:function(){return Ge},_MP:function(){return Re},_MR:function(){return De},_RFC:function(){return Fe},__render:function(){return Ue},createComponentVNode:function(){return R},createFragment:function(){return V},createPortal:function(){return N},createRef:function(){return Ce},createRenderer:function(){return Ze},createTextVNode:function(){return B},createVNode:function(){return M},directClone:function(){return L},findDOMfromVNode:function(){return b},forwardRef:function(){return Se},getFlagsForElementVnode:function(){return W},linkEvent:function(){return c},normalizeProps:function(){return F},options:function(){return D},render:function(){return Ye},rerender:function(){return nt},version:function(){return at}});var i=Array.isArray;function o(e){var t=typeof e;return"string"===t||"number"===t}function a(e){return null==e}function r(e){return null===e||!1===e||!0===e||void 0===e}function s(e){return"function"==typeof e}function l(e){return"string"==typeof e}function u(e){return null===e}function d(e,t){var n={};if(e)for(var i in e)n[i]=e[i];if(t)for(var o in t)n[o]=t[o];return n}function c(e,t){return s(t)?{data:e,event:t}:null}function h(e){return!u(e)&&"object"==typeof e}var f={},p="$F";function g(e){return e.substr(2).toLowerCase()}function m(e,t){e.appendChild(t)}function _(e,t,n){u(n)?m(e,t):e.insertBefore(t,n)}function v(e,t){e.removeChild(t)}function y(e){for(var t=0;t<e.length;t++)e[t]()}function x(e,t,n){var i=e.children;return 4&n?i.$LI:8192&n?2===e.childFlags?i:i[t?0:i.length-1]:i}function b(e,t){for(var n;e;){if(2033&(n=e.flags))return e.dom;e=x(e,t,n)}return null}function w(e,t){do{var n=e.flags;if(2033&n)return void v(t,e.dom);var i=e.children;if(4&n&&(e=i.$LI),8&n&&(e=i),8192&n){if(2!==e.childFlags){for(var o=0,a=i.length;o<a;++o)w(i[o],t);return}e=i}}while(e)}function C(e,t,n){do{var i=e.flags;if(2033&i)return void _(t,e.dom,n);var o=e.children;if(4&i&&(e=o.$LI),8&i&&(e=o),8192&i){if(2!==e.childFlags){for(var a=0,r=o.length;a<r;++a)C(o[a],t,n);return}e=o}}while(e)}function S(e,t,n){return e.constructor.getDerivedStateFromProps?d(n,e.constructor.getDerivedStateFromProps(t,n)):n}var k={v:!1},D={componentComparator:null,createVNode:null,renderComplete:null};function I(e,t){e.textContent=t}function T(e,t){return h(e)&&e.event===t.event&&e.data===t.data}function E(e,t){for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e}function A(e,t){return!!s(e)&&(e(t),!0)}var O="$";function P(e,t,n,i,o,a,r,s){this.childFlags=e,this.children=t,this.className=n,this.dom=null,this.flags=i,this.key=void 0===o?null:o,this.props=void 0===a?null:a,this.ref=void 0===r?null:r,this.type=s}function M(e,t,n,i,o,a,r,s){var l=void 0===o?1:o,u=new P(l,i,n,e,r,a,s,t);return D.createVNode&&D.createVNode(u),0===l&&G(u,u.children),u}function R(e,t,n,i,o){var r=new P(1,null,null,e=function(e,t){return 12&e?e:t.prototype&&t.prototype.render?4:t.render?32776:8}(e,t),i,function(e,t,n){var i=(32768&e?t.render:t).defaultProps;return a(i)?n:a(n)?d(i,null):E(n,i)}(e,t,n),function(e,t,n){if(4&e)return n;var i=(32768&e?t.render:t).defaultHooks;return a(i)?n:a(n)?i:E(n,i)}(e,t,o),t);return D.createVNode&&D.createVNode(r),r}function B(e,t){return new P(1,a(e)||!0===e||!1===e?"":e,null,16,t,null,null,null)}function V(e,t,n){var i=M(8192,8192,null,e,t,null,n,null);switch(i.childFlags){case 1:i.children=H(),i.childFlags=2;break;case 16:i.children=[B(e)],i.childFlags=4}return i}function F(e){var t=e.props;if(t){var n=e.flags;481&n&&(void 0!==t.children&&a(e.children)&&G(e,t.children),void 0!==t.className&&(a(e.className)&&(e.className=t.className||null),t.className=void 0)),void 0!==t.key&&(e.key=t.key,t.key=void 0),void 0!==t.ref&&(e.ref=8&n?d(e.ref,t.ref):t.ref,t.ref=void 0)}return e}function L(e){var t=-16385&e.flags,n=e.props;if(14&t&&!u(n)){var i=n;for(var o in n={},i)n[o]=i[o]}return 0==(8192&t)?new P(e.childFlags,e.children,e.className,t,e.key,n,e.ref,e.type):function(e){var t=e.children,n=e.childFlags;return V(2===n?L(t):t.map(L),n,e.key)}(e)}function H(){return B("",null)}function N(e,t){var n=j(e);return M(1024,1024,null,n,0,null,n.key,t)}function z(e,t,n,a){for(var s=e.length;n<s;n++){var d=e[n];if(!r(d)){var c=a+O+n;if(i(d))z(d,t,0,c);else{if(o(d))d=B(d,c);else{var h=d.key,f=l(h)&&h[0]===O;(81920&d.flags||f)&&(d=L(d)),d.flags|=65536,f?h.substring(0,a.length)!==a&&(d.key=a+h):u(h)?d.key=c:d.key=a+h}t.push(d)}}}}function W(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case p:return 8192;default:return 1}}function G(e,t){var n,a=1;if(r(t))n=t;else if(o(t))a=16,n=t;else if(i(t)){for(var s=t.length,d=0;d<s;++d){var c=t[d];if(r(c)||i(c)){n=n||t.slice(0,d),z(t,n,d,"");break}if(o(c))(n=n||t.slice(0,d)).push(B(c,O+d));else{var h=c.key,f=(81920&c.flags)>0,p=u(h),g=l(h)&&h[0]===O;f||p||g?(n=n||t.slice(0,d),(f||g)&&(c=L(c)),(p||g)&&(c.key=O+d),n.push(c)):n&&n.push(c),c.flags|=65536}}a=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=L(t)),a=2;return e.children=n,e.childFlags=a,e}function j(e){return r(e)||o(e)?B(e,null):i(e)?V(e,0,null):16384&e.flags?L(e):e}var q="http://www.w3.org/1999/xlink",$="http://www.w3.org/XML/1998/namespace",K={"xlink:actuate":q,"xlink:arcrole":q,"xlink:href":q,"xlink:role":q,"xlink:show":q,"xlink:title":q,"xlink:type":q,"xml:base":$,"xml:lang":$,"xml:space":$};function U(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var Y=U(0),Z=U(null),X=U(!0);function Q(e,t){var n=t.$EV;return n||(n=t.$EV=U(null)),n[e]||1==++Y[e]&&(Z[e]=function(e){var t="onClick"===e||"onDblClick"===e?function(e){return function(t){0===t.button?ee(t,!0,e,oe(t)):t.stopPropagation()}}(e):function(e){return function(t){ee(t,!1,e,oe(t))}}(e);return document.addEventListener(g(e),t),t}(e)),n}function J(e,t){var n=t.$EV;n&&n[e]&&(0==--Y[e]&&(document.removeEventListener(g(e),Z[e]),Z[e]=null),n[e]=null)}function ee(e,t,n,i){var o=function(e){return s(e.composedPath)?e.composedPath()[0]:e.target}(e);do{if(t&&o.disabled)return;var a=o.$EV;if(a){var r=a[n];if(r&&(i.dom=o,r.event?r.event(r.data,e):r(e),e.cancelBubble))return}o=o.parentNode}while(!u(o))}function te(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ne(){return this.defaultPrevented}function ie(){return this.cancelBubble}function oe(e){var t={dom:document};return e.isDefaultPrevented=ne,e.isPropagationStopped=ie,e.stopPropagation=te,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function ae(e,t,n){if(e[t]){var i=e[t];i.event?i.event(i.data,n):i(n)}else{var o=t.toLowerCase();e[o]&&e[o](n)}}function re(e,t){var n=function(n){var i=this.$V;if(i){var o=i.props||f,a=i.dom;if(l(e))ae(o,e,n);else for(var r=0;r<e.length;++r)ae(o,e[r],n);if(s(t)){var u=this.$V,d=u.props||f;t(d,a,!1,u)}}};return Object.defineProperty(n,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),n}function se(e,t,n){var i="$"+t,o=e[i];if(o){if(o[1].wrapped)return;e.removeEventListener(o[0],o[1]),e[i]=null}s(n)&&(e.addEventListener(t,n),e[i]=[t,n])}function le(e){return"checkbox"===e||"radio"===e}var ue=re("onInput",he),de=re(["onClick","onChange"],he);function ce(e){e.stopPropagation()}function he(e,t){var n=e.type,i=e.value,o=e.checked,r=e.multiple,s=e.defaultValue,l=!a(i);n&&n!==t.type&&t.setAttribute("type",n),a(r)||r===t.multiple||(t.multiple=r),a(s)||l||(t.defaultValue=s+""),le(n)?(l&&(t.value=i),a(o)||(t.checked=o)):l&&t.value!==i?(t.defaultValue=i,t.value=i):a(o)||(t.checked=o)}function fe(e,t){if("option"===e.type)!function(e,t){var n=e.props||f,o=e.dom;o.value=n.value,n.value===t||i(t)&&-1!==t.indexOf(n.value)?o.selected=!0:a(t)&&a(n.selected)||(o.selected=n.selected||!1)}(e,t);else{var n=e.children,o=e.flags;if(4&o)fe(n.$LI,t);else if(8&o)fe(n,t);else if(2===e.childFlags)fe(n,t);else if(12&e.childFlags)for(var r=0,s=n.length;r<s;++r)fe(n[r],t)}}ce.wrapped=!0;var pe=re("onChange",ge);function ge(e,t,n,i){var o=Boolean(e.multiple);a(e.multiple)||o===t.multiple||(t.multiple=o);var r=e.selectedIndex;if(-1===r&&(t.selectedIndex=-1),1!==i.childFlags){var s=e.value;"number"==typeof r&&r>-1&&t.options[r]&&(s=t.options[r].value),n&&a(s)&&(s=e.defaultValue),fe(i,s)}}var me,_e,ve=re("onInput",xe),ye=re("onChange");function xe(e,t,n){var i=e.value,o=t.value;if(a(i)){if(n){var r=e.defaultValue;a(r)||r===o||(t.defaultValue=r,t.value=r)}}else o!==i&&(t.defaultValue=i,t.value=i)}function be(e,t,n,i,o,a){64&e?he(i,n):256&e?ge(i,n,o,t):128&e&&xe(i,n,o),a&&(n.$V=t)}function we(e){return e.type&&le(e.type)?!a(e.checked):!a(e.value)}function Ce(){return{current:null}}function Se(e){return{render:e}}function ke(e){e&&!A(e,null)&&e.current&&(e.current=null)}function De(e,t,n){e&&(s(e)||void 0!==e.current)&&n.push((function(){A(e,t)||void 0===e.current||(e.current=t)}))}function Ie(e,t){Te(e),w(e,t)}function Te(e){var t,n=e.flags,i=e.children;if(481&n){t=e.ref;var o=e.props;ke(t);var r=e.childFlags;if(!u(o))for(var l=Object.keys(o),d=0,c=l.length;d<c;d++){var h=l[d];X[h]&&J(h,e.dom)}12&r?Ee(i):2===r&&Te(i)}else i&&(4&n?(s(i.componentWillUnmount)&&i.componentWillUnmount(),ke(e.ref),i.$UN=!0,Te(i.$LI)):8&n?(!a(t=e.ref)&&s(t.onComponentWillUnmount)&&t.onComponentWillUnmount(b(e,!0),e.props||f),Te(i)):1024&n?Ie(i,e.ref):8192&n&&12&e.childFlags&&Ee(i))}function Ee(e){for(var t=0,n=e.length;t<n;++t)Te(e[t])}function Ae(e){e.textContent=""}function Oe(e,t,n){Ee(n),8192&t.flags?w(t,e):Ae(e)}function Pe(e,t,n,i){var o=e&&e.__html||"",r=t&&t.__html||"";o!==r&&(a(r)||function(e,t){var n=document.createElement("i");return n.innerHTML=t,n.innerHTML===e.innerHTML}(i,r)||(u(n)||(12&n.childFlags?Ee(n.children):2===n.childFlags&&Te(n.children),n.children=null,n.childFlags=1),i.innerHTML=r))}function Me(e,t,n,i,o,r,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":i.autofocus=!!n;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":i[e]=!!n;break;case"defaultChecked":case"value":case"volume":if(r&&"value"===e)break;var d=a(n)?"":n;i[e]!==d&&(i[e]=d);break;case"style":!function(e,t,n){if(a(t))n.removeAttribute("style");else{var i,o,r=n.style;if(l(t))r.cssText=t;else if(a(e)||l(e))for(i in t)o=t[i],r.setProperty(i,o);else{for(i in t)(o=t[i])!==e[i]&&r.setProperty(i,o);for(i in e)a(t[i])&&r.removeProperty(i)}}}(t,n,i);break;case"dangerouslySetInnerHTML":Pe(t,n,u,i);break;default:X[e]?function(e,t,n,i){if(s(n))Q(e,i)[e]=n;else if(h(n)){if(T(t,n))return;Q(e,i)[e]=n}else J(e,i)}(e,t,n,i):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?function(e,t,n,i){if(h(n)){if(T(t,n))return;n=function(e){var t=e.event;return function(n){t(e.data,n)}}(n)}se(i,g(e),n)}(e,t,n,i):a(n)?i.removeAttribute(e):o&&K[e]?i.setAttributeNS(K[e],e,n):i.setAttribute(e,n)}}function Re(e,t,n,i,o){var a=!1,r=(448&t)>0;for(var s in r&&(a=we(n))&&function(e,t,n){64&e?function(e,t){le(t.type)?(se(e,"change",de),se(e,"click",ce)):se(e,"input",ue)}(t,n):256&e?function(e){se(e,"change",pe)}(t):128&e&&function(e,t){se(e,"input",ve),t.onChange&&se(e,"change",ye)}(t,n)}(t,i,n),n)Me(s,null,n[s],i,o,a,null);r&&be(t,e,i,n,!0,a)}function Be(e,t,n){var i=j(e.render(t,e.state,n)),o=n;return s(e.getChildContext)&&(o=d(n,e.getChildContext())),e.$CX=o,i}function Ve(e,t,n,i,o,a){var r=new t(n,i),l=r.$N=Boolean(t.getDerivedStateFromProps||r.getSnapshotBeforeUpdate);if(r.$SVG=o,r.$L=a,e.children=r,r.$BS=!1,r.context=i,r.props===f&&(r.props=n),l)r.state=S(r,n,r.state);else if(s(r.componentWillMount)){r.$BR=!0,r.componentWillMount();var d=r.$PS;if(!u(d)){var c=r.state;if(u(c))r.state=d;else for(var h in d)c[h]=d[h];r.$PS=null}r.$BR=!1}return r.$LI=Be(r,n,i),r}function Fe(e,t){var n=e.props||f;return 32768&e.flags?e.type.render(n,e.ref,t):e.type(n,t)}function Le(e,t,n,i,o,a){var r=e.flags|=16384;481&r?Ne(e,t,n,i,o,a):4&r?function(e,t,n,i,o,a){var r=Ve(e,e.type,e.props||f,n,i,a);Le(r.$LI,t,r.$CX,i,o,a),We(e.ref,r,a)}(e,t,n,i,o,a):8&r?(function(e,t,n,i,o,a){Le(e.children=j(Fe(e,n)),t,n,i,o,a)}(e,t,n,i,o,a),Ge(e,a)):512&r||16&r?He(e,t,o):8192&r?function(e,t,n,i,o,a){var r=e.children,s=e.childFlags;12&s&&0===r.length&&(s=e.childFlags=2,r=e.children=H()),2===s?Le(r,n,t,i,o,a):ze(r,n,t,i,o,a)}(e,n,t,i,o,a):1024&r&&function(e,t,n,i,o){Le(e.children,e.ref,t,!1,null,o);var a=H();He(a,n,i),e.dom=a.dom}(e,n,t,o,a)}function He(e,t,n){var i=e.dom=document.createTextNode(e.children);u(t)||_(t,i,n)}function Ne(e,t,n,i,o,r){var s=e.flags,l=e.props,d=e.className,c=e.childFlags,h=e.dom=function(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}(e.type,i=i||(32&s)>0),f=e.children;if(a(d)||""===d||(i?h.setAttribute("class",d):h.className=d),16===c)I(h,f);else if(1!==c){var p=i&&"foreignObject"!==e.type;2===c?(16384&f.flags&&(e.children=f=L(f)),Le(f,h,n,p,null,r)):8!==c&&4!==c||ze(f,h,n,p,null,r)}u(t)||_(t,h,o),u(l)||Re(e,s,l,h,i),De(e.ref,h,r)}function ze(e,t,n,i,o,a){for(var r=0;r<e.length;++r){var s=e[r];16384&s.flags&&(e[r]=s=L(s)),Le(s,t,n,i,o,a)}}function We(e,t,n){De(e,t,n),s(t.componentDidMount)&&n.push(function(e){return function(){e.componentDidMount()}}(t))}function Ge(e,t){var n=e.ref;a(n)||(A(n.onComponentWillMount,e.props||f),s(n.onComponentDidMount)&&t.push(function(e,t){return function(){e.onComponentDidMount(b(t,!0),t.props||f)}}(n,e)))}function je(e,t,n,i,o,l,c){var h=t.flags|=16384;e.flags!==h||e.type!==t.type||e.key!==t.key||2048&h?16384&e.flags?function(e,t,n,i,o,a){Te(e),0!=(t.flags&e.flags&2033)?(Le(t,null,i,o,null,a),function(e,t,n){e.replaceChild(t,n)}(n,t.dom,e.dom)):(Le(t,n,i,o,b(e,!0),a),w(e,n))}(e,t,n,i,o,c):Le(t,n,i,o,l,c):481&h?function(e,t,n,i,o,r){var s,l=t.dom=e.dom,u=e.props,d=t.props,c=!1,h=!1;if(i=i||(32&o)>0,u!==d){var p=u||f;if((s=d||f)!==f)for(var g in(c=(448&o)>0)&&(h=we(s)),s){var m=p[g],_=s[g];m!==_&&Me(g,m,_,l,i,h,e)}if(p!==f)for(var v in p)a(s[v])&&!a(p[v])&&Me(v,p[v],null,l,i,h,e)}var y=t.children,x=t.className;e.className!==x&&(a(x)?l.removeAttribute("class"):i?l.setAttribute("class",x):l.className=x),4096&o?function(e,t){e.textContent!==t&&(e.textContent=t)}(l,y):qe(e.childFlags,t.childFlags,e.children,y,l,n,i&&"foreignObject"!==t.type,null,e,r),c&&be(o,t,l,s,!1,h);var b=t.ref,w=e.ref;w!==b&&(ke(w),De(b,l,r))}(e,t,i,o,h,c):4&h?function(e,t,n,i,o,a,r){var l=t.children=e.children;if(!u(l)){l.$L=r;var c=t.props||f,h=t.ref,p=e.ref,g=l.state;if(!l.$N){if(s(l.componentWillReceiveProps)){if(l.$BR=!0,l.componentWillReceiveProps(c,i),l.$UN)return;l.$BR=!1}u(l.$PS)||(g=d(g,l.$PS),l.$PS=null)}$e(l,g,c,n,i,o,!1,a,r),p!==h&&(ke(p),De(h,l,r))}}(e,t,n,i,o,l,c):8&h?function(e,t,n,i,o,r,l){var u=!0,d=t.props||f,c=t.ref,h=e.props,p=!a(c),g=e.children;if(p&&s(c.onComponentShouldUpdate)&&(u=c.onComponentShouldUpdate(h,d)),!1!==u){p&&s(c.onComponentWillUpdate)&&c.onComponentWillUpdate(h,d);var m=j(Fe(t,i));je(g,m,n,i,o,r,l),t.children=m,p&&s(c.onComponentDidUpdate)&&c.onComponentDidUpdate(h,d)}else t.children=g}(e,t,n,i,o,l,c):16&h?function(e,t){var n=t.children,i=t.dom=e.dom;n!==e.children&&(i.nodeValue=n)}(e,t):512&h?t.dom=e.dom:8192&h?function(e,t,n,i,o,a){var r=e.children,s=t.children,l=e.childFlags,u=t.childFlags,d=null;12&u&&0===s.length&&(u=t.childFlags=2,s=t.children=H());var c=0!=(2&u);if(12&l){var h=r.length;(8&l&&8&u||c||!c&&s.length>h)&&(d=b(r[h-1],!1).nextSibling)}qe(l,u,r,s,n,i,o,d,e,a)}(e,t,n,i,o,c):function(e,t,n,i){var o=e.ref,a=t.ref,s=t.children;if(qe(e.childFlags,t.childFlags,e.children,s,o,n,!1,null,e,i),t.dom=e.dom,o!==a&&!r(s)){var l=s.dom;v(o,l),m(a,l)}}(e,t,i,c)}function qe(e,t,n,i,o,a,r,s,l,u){switch(e){case 2:switch(t){case 2:je(n,i,o,a,r,s,u);break;case 1:Ie(n,o);break;case 16:Te(n),I(o,i);break;default:!function(e,t,n,i,o,a){Te(e),ze(t,n,i,o,b(e,!0),a),w(e,n)}(n,i,o,a,r,u)}break;case 1:switch(t){case 2:Le(i,o,a,r,s,u);break;case 1:break;case 16:I(o,i);break;default:ze(i,o,a,r,s,u)}break;case 16:switch(t){case 16:!function(e,t,n){e!==t&&(""!==e?n.firstChild.nodeValue=t:I(n,t))}(n,i,o);break;case 2:Ae(o),Le(i,o,a,r,s,u);break;case 1:Ae(o);break;default:Ae(o),ze(i,o,a,r,s,u)}break;default:switch(t){case 16:Ee(n),I(o,i);break;case 2:Oe(o,l,n),Le(i,o,a,r,s,u);break;case 1:Oe(o,l,n);break;default:var d=0|n.length,c=0|i.length;0===d?c>0&&ze(i,o,a,r,s,u):0===c?Oe(o,l,n):8===t&&8===e?function(e,t,n,i,o,a,r,s,l,u){var d,c,h=a-1,f=r-1,p=0,g=e[p],m=t[p];e:{for(;g.key===m.key;){if(16384&m.flags&&(t[p]=m=L(m)),je(g,m,n,i,o,s,u),e[p]=m,++p>h||p>f)break e;g=e[p],m=t[p]}for(g=e[h],m=t[f];g.key===m.key;){if(16384&m.flags&&(t[f]=m=L(m)),je(g,m,n,i,o,s,u),e[h]=m,f--,p>--h||p>f)break e;g=e[h],m=t[f]}}if(p>h){if(p<=f)for(c=(d=f+1)<r?b(t[d],!0):s;p<=f;)16384&(m=t[p]).flags&&(t[p]=m=L(m)),++p,Le(m,n,i,o,c,u)}else if(p>f)for(;p<=h;)Ie(e[p++],n);else!function(e,t,n,i,o,a,r,s,l,u,d,c,h){var f,p,g,m=0,_=s,v=s,y=a-s+1,x=r-s+1,w=new Int32Array(x+1),S=y===i,k=!1,D=0,I=0;if(o<4||(y|x)<32)for(m=_;m<=a;++m)if(f=e[m],I<x){for(s=v;s<=r;s++)if(p=t[s],f.key===p.key){if(w[s-v]=m+1,S)for(S=!1;_<m;)Ie(e[_++],l);D>s?k=!0:D=s,16384&p.flags&&(t[s]=p=L(p)),je(f,p,l,n,u,d,h),++I;break}!S&&s>r&&Ie(f,l)}else S||Ie(f,l);else{var T={};for(m=v;m<=r;++m)T[t[m].key]=m;for(m=_;m<=a;++m)if(f=e[m],I<x)if(void 0!==(s=T[f.key])){if(S)for(S=!1;m>_;)Ie(e[_++],l);w[s-v]=m+1,D>s?k=!0:D=s,16384&(p=t[s]).flags&&(t[s]=p=L(p)),je(f,p,l,n,u,d,h),++I}else S||Ie(f,l);else S||Ie(f,l)}if(S)Oe(l,c,e),ze(t,l,n,u,d,h);else if(k){var E=function(e){var t=0,n=0,i=0,o=0,a=0,r=0,s=0,l=e.length;for(l>Ke&&(Ke=l,me=new Int32Array(l),_e=new Int32Array(l));n<l;++n)if(0!==(t=e[n])){if(e[i=me[o]]<t){_e[n]=i,me[++o]=n;continue}for(a=0,r=o;a<r;)e[me[s=a+r>>1]]<t?a=s+1:r=s;t<e[me[a]]&&(a>0&&(_e[n]=me[a-1]),me[a]=n)}a=o+1;var u=new Int32Array(a);for(r=me[a-1];a-- >0;)u[a]=r,r=_e[r],me[a]=0;return u}(w);for(s=E.length-1,m=x-1;m>=0;m--)0===w[m]?(16384&(p=t[D=m+v]).flags&&(t[D]=p=L(p)),Le(p,l,n,u,(g=D+1)<o?b(t[g],!0):d,h)):s<0||m!==E[s]?C(p=t[D=m+v],l,(g=D+1)<o?b(t[g],!0):d):s--}else if(I!==x)for(m=x-1;m>=0;m--)0===w[m]&&(16384&(p=t[D=m+v]).flags&&(t[D]=p=L(p)),Le(p,l,n,u,(g=D+1)<o?b(t[g],!0):d,h))}(e,t,i,a,r,h,f,p,n,o,s,l,u)}(n,i,o,a,r,d,c,s,l,u):function(e,t,n,i,o,a,r,s,l){for(var u,d,c=a>r?r:a,h=0;h<c;++h)u=t[h],d=e[h],16384&u.flags&&(u=t[h]=L(u)),je(d,u,n,i,o,s,l),e[h]=u;if(a<r)for(h=c;h<r;++h)16384&(u=t[h]).flags&&(u=t[h]=L(u)),Le(u,n,i,o,s,l);else if(a>r)for(h=c;h<a;++h)Ie(e[h],n)}(n,i,o,a,r,d,c,s,u)}}}function $e(e,t,n,i,o,a,r,l,u){var c=e.state,h=e.props,f=Boolean(e.$N),p=s(e.shouldComponentUpdate);if(f&&(t=S(e,n,t!==c?d(c,t):t)),r||!p||p&&e.shouldComponentUpdate(n,t,o)){!f&&s(e.componentWillUpdate)&&e.componentWillUpdate(n,t,o),e.props=n,e.state=t,e.context=o;var g=null,m=Be(e,n,o);f&&s(e.getSnapshotBeforeUpdate)&&(g=e.getSnapshotBeforeUpdate(h,c)),je(e.$LI,m,i,e.$CX,a,l,u),e.$LI=m,s(e.componentDidUpdate)&&function(e,t,n,i,o){o.push((function(){e.componentDidUpdate(t,n,i)}))}(e,h,c,g,u)}else e.props=n,e.state=t,e.context=o}var Ke=0;function Ue(e,t,n,i){var o=[],r=t.$V;k.v=!0,a(r)?a(e)||(16384&e.flags&&(e=L(e)),Le(e,t,i,!1,null,o),t.$V=e,r=e):a(e)?(Ie(r,t),t.$V=null):(16384&e.flags&&(e=L(e)),je(r,e,t,i,!1,null,o),r=t.$V=e),y(o),k.v=!1,s(n)&&n(),s(D.renderComplete)&&D.renderComplete(r,t)}function Ye(e,t,n,i){void 0===n&&(n=null),void 0===i&&(i=f),Ue(e,t,n,i)}function Ze(e){return function(t,n,i,o){e||(e=t),Ye(n,e,i,o)}}"undefined"!=typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Xe=[],Qe="undefined"!=typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Je=!1;function et(e,t,n,i){var o=e.$PS;if(s(t)&&(t=t(o?d(e.state,o):e.state,e.props,e.context)),a(o))e.$PS=t;else for(var r in t)o[r]=t[r];if(e.$BR)s(n)&&e.$L.push(n.bind(e));else{if(!k.v&&0===Xe.length)return it(e,i),void(s(n)&&n.call(e));if(-1===Xe.indexOf(e)&&Xe.push(e),i&&(e.$F=!0),Je||(Je=!0,Qe(nt)),s(n)){var l=e.$QU;l||(l=e.$QU=[]),l.push(n)}}}function tt(e){for(var t=e.$QU,n=0;n<t.length;++n)t[n].call(e);e.$QU=null}function nt(){var e;for(Je=!1;e=Xe.shift();)if(!e.$UN){var t=e.$F;e.$F=!1,it(e,t),e.$QU&&tt(e)}}function it(e,t){if(t||!e.$BR){var n=e.$PS;e.$PS=null;var i=[];k.v=!0,$e(e,d(e.state,n),e.props,b(e.$LI,!0).parentNode,e.context,e.$SVG,t,null,i),y(i),k.v=!1}else e.state=e.$PS,e.$PS=null}var ot=function(e,t){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=e||f,this.context=t||f};ot.prototype.forceUpdate=function(e){this.$UN||et(this,{},e,!0)},ot.prototype.setState=function(e,t){this.$UN||this.$BS||et(this,e,t,!1)},ot.prototype.render=function(e,t,n){return null};var at="7.4.11"},23882:function(e,t,n){n.d(t,{EN:function(){return o},hj:function(){return a},xs:function(){return r},kJ:function(){return s},w6:function(){return l},rx:function(){return u},qo:function(){return d},Sk:function(){return c},Vl:function(){return h},Vy:function(){return f},qq:function(){return p},cS:function(){return g},Dw:function(){return m},q9:function(){return _}});var i=n(49509),o=function(e){return null!=e},a=function(e){return"number"==typeof e},r=function(e){return i.Z.indexOf(e)>=0},s=Array.isArray,l=function(e,t){void 0===t&&(t=e),1===arguments.length&&(t=e,e=0);for(var n=[],i=e;i<t;i++)n.push(i);return n},u=function(e,t){var n=0,i=[];if(s(e))for(;n<t;n++)i[n]=[].concat(e);else for(;n<t;n++)i[n]=e;return i},d=function(e){return s(e)?e:[e]};function c(e,t,n){void 0===n&&(n=" ");var i=String(e);return t>>=0,i.length>t?String(i):((t-=i.length)>n.length&&(n+=u(n,t/n.length)),n.slice(0,t)+String(i))}var h=function(e,t,n){var i=e.split(t);return n?i.slice(0,n).concat([i.slice(n).join(t)]):i},f=function(e,t){var n=e%t;return n*t<0?n+t:n},p=function(e,t){return{div:Math.floor(e/t),mod:f(e,t)}},g=function(e){return!o(e)||0===e.length},m=function(e){return!g(e)},_=function(e,t){return m(e)&&-1!==e.indexOf(t)}},49377:function(e,t,n){n.r(t),n.d(t,{Frequency:function(){return c},RRule:function(){return ie},RRuleSet:function(){return de},Weekday:function(){return p.O},default:function(){return pe},rrulestr:function(){return re}});var i,o=n(23882);!function(e){e.MONTH_DAYS=[31,28,31,30,31,30,31,31,30,31,30,31],e.ONE_DAY=864e5,e.MAXYEAR=9999,e.ORDINAL_BASE=new Date(Date.UTC(1970,0,1)),e.PY_WEEKDAYS=[6,0,1,2,3,4,5],e.getYearDay=function(t){var n=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate());return Math.ceil((n.valueOf()-new Date(t.getUTCFullYear(),0,1).valueOf())/e.ONE_DAY)+1},e.isLeapYear=function(e){return e%4==0&&e%100!=0||e%400==0},e.isDate=function(e){return e instanceof Date},e.isValidDate=function(t){return e.isDate(t)&&!isNaN(t.getTime())},e.tzOffset=function(e){return 60*e.getTimezoneOffset()*1e3},e.daysBetween=function(t,n){var i=t.getTime()-e.tzOffset(t)-(n.getTime()-e.tzOffset(n));return Math.round(i/e.ONE_DAY)},e.toOrdinal=function(t){return e.daysBetween(t,e.ORDINAL_BASE)},e.fromOrdinal=function(t){return new Date(e.ORDINAL_BASE.getTime()+t*e.ONE_DAY)},e.getMonthDays=function(t){var n=t.getUTCMonth();return 1===n&&e.isLeapYear(t.getUTCFullYear())?29:e.MONTH_DAYS[n]},e.getWeekday=function(t){return e.PY_WEEKDAYS[t.getUTCDay()]},e.monthRange=function(t,n){var i=new Date(Date.UTC(t,n,1));return[e.getWeekday(i),e.getMonthDays(i)]},e.combine=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},e.clone=function(e){return new Date(e.getTime())},e.cloneDates=function(t){for(var n=[],i=0;i<t.length;i++)n.push(e.clone(t[i]));return n},e.sort=function(e){e.sort((function(e,t){return e.getTime()-t.getTime()}))},e.timeToUntilString=function(e,t){void 0===t&&(t=!0);var n=new Date(e);return[(0,o.Sk)(n.getUTCFullYear().toString(),4,"0"),(0,o.Sk)(n.getUTCMonth()+1,2,"0"),(0,o.Sk)(n.getUTCDate(),2,"0"),"T",(0,o.Sk)(n.getUTCHours(),2,"0"),(0,o.Sk)(n.getUTCMinutes(),2,"0"),(0,o.Sk)(n.getUTCSeconds(),2,"0"),t?"Z":""].join("")},e.untilStringToDate=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);if(!t)throw new Error("Invalid UNTIL value: "+e);return new Date(Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[5],10)||0,parseInt(t[6],10)||0,parseInt(t[7],10)||0))}}(i||(i={}));var a=i,r=function(){function e(e,t){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=t,"between"===e?(this.maxDate=t.inc?t.before:new Date(t.before.getTime()-1),this.minDate=t.inc?t.after:new Date(t.after.getTime()+1)):"before"===e?this.maxDate=t.inc?t.dt:new Date(t.dt.getTime()-1):"after"===e&&(this.minDate=t.inc?t.dt:new Date(t.dt.getTime()+1))}return e.prototype.accept=function(e){++this.total;var t=this.minDate&&e<this.minDate,n=this.maxDate&&e>this.maxDate;if("between"===this.method){if(t)return!0;if(n)return!1}else if("before"===this.method){if(n)return!1}else if("after"===this.method)return!!t||(this.add(e),!1);return this.add(e)},e.prototype.add=function(e){return this._result.push(e),!0},e.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;default:return e.length?e[e.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}(),s=function(e,t){return(s=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])})(e,t)};function l(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var u=function(){return(u=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}).apply(this,arguments)};function d(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],r=0,s=a.length;r<s;r++,o++)i[o]=a[r];return i}var c,h=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.iterator=i,o}return l(t,e),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(r);function f(e){return e<c.HOURLY}!function(e){e[e.YEARLY=0]="YEARLY",e[e.MONTHLY=1]="MONTHLY",e[e.WEEKLY=2]="WEEKLY",e[e.DAILY=3]="DAILY",e[e.HOURLY=4]="HOURLY",e[e.MINUTELY=5]="MINUTELY",e[e.SECONDLY=6]="SECONDLY"}(c||(c={}));var p=n(49509),g=function(){function e(e,t,n,i){this.hour=e,this.minute=t,this.second=n,this.millisecond=i||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return 1e3*(60*this.hour*60+60*this.minute+this.second)+this.millisecond},e}(),m=function(e){function t(t,n,i,o,a,r,s){var l=e.call(this,o,a,r,s)||this;return l.year=t,l.month=n,l.day=i,l}return l(t,e),t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return i.getWeekday(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var t=Math.floor(this.month/12),n=(0,o.Vy)(this.month,12);this.month=n,this.year+=t,0===this.month&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(e,t){t>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-t))+7*e:this.day+=-(this.getWeekday()-t)+7*e,this.fixDay()},t.prototype.addDaily=function(e){this.day+=e,this.fixDay()},t.prototype.addHours=function(e,t,n){for(t&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var i=(0,o.qq)(this.hour,24),a=i.div,r=i.mod;if(a&&(this.hour=r,this.addDaily(a)),(0,o.cS)(n)||(0,o.q9)(n,this.hour))break}},t.prototype.addMinutes=function(e,t,n,i){for(t&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var a=(0,o.qq)(this.minute,60),r=a.div,s=a.mod;if(r&&(this.minute=s,this.addHours(r,!1,n)),((0,o.cS)(n)||(0,o.q9)(n,this.hour))&&((0,o.cS)(i)||(0,o.q9)(i,this.minute)))break}},t.prototype.addSeconds=function(e,t,n,i,a){for(t&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var r=(0,o.qq)(this.second,60),s=r.div,l=r.mod;if(s&&(this.second=l,this.addMinutes(s,!1,n,i)),((0,o.cS)(n)||(0,o.q9)(n,this.hour))&&((0,o.cS)(i)||(0,o.q9)(i,this.minute))&&((0,o.cS)(a)||(0,o.q9)(a,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=i.monthRange(this.year,this.month-1)[1];if(!(this.day<=e))for(;this.day>e;){if(this.day-=e,++this.month,13===this.month&&(this.month=1,++this.year,this.year>i.MAXYEAR))return;e=i.monthRange(this.year,this.month-1)[1]}}},t.prototype.add=function(e,t){var n=e.freq,i=e.interval,o=e.wkst,a=e.byhour,r=e.byminute,s=e.bysecond;switch(n){case c.YEARLY:return this.addYears(i);case c.MONTHLY:return this.addMonths(i);case c.WEEKLY:return this.addWeekly(i,o);case c.DAILY:return this.addDaily(i);case c.HOURLY:return this.addHours(i,t,a);case c.MINUTELY:return this.addMinutes(i,t,a,r);case c.SECONDLY:return this.addSeconds(i,t,a,r,s)}},t}(g);function _(e){for(var t=[],n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];(0,o.q9)(ne,r)||t.push(r),a.isDate(e[r])&&!a.isValidDate(e[r])&&t.push(r)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return u({},e)}function v(e){var t=e.split("\n").map(x).filter((function(e){return null!==e}));return u(u({},t[0]),t[1])}function y(e){var t={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!n)return t;n[0];var i=n[1],o=n[2];return i&&(t.tzid=i),t.dtstart=a.untilStringToDate(o),t}function x(e){if(!(e=e.replace(/^\s+|\s+$/,"")).length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return b(e);t[0];var n=t[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return b(e);case"DTSTART":return y(e);default:throw new Error("Unsupported RFC prop "+n+" in "+e)}}function b(e){var t=y(e.replace(/^RRULE:/i,""));return e.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach((function(n){var i=n.split("="),o=i[0],r=i[1];switch(o.toUpperCase()){case"FREQ":t.freq=c[r.toUpperCase()];break;case"WKST":t.wkst=ee[r.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var s=function(e){return-1!==e.indexOf(",")?e.split(",").map(w):w(e)}(r),l=o.toLowerCase();t[l]=s;break;case"BYWEEKDAY":case"BYDAY":t.byweekday=function(e){return e.split(",").map((function(e){if(2===e.length)return ee[e];var t=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/),n=Number(t[1]),i=t[2],o=ee[i].weekday;return new p.O(o,n)}))}(r);break;case"DTSTART":case"TZID":var u=y(e);t.tzid=u.tzid,t.dtstart=u.dtstart;break;case"UNTIL":t.until=a.untilStringToDate(r);break;case"BYEASTER":t.byeaster=Number(r);break;default:throw new Error("Unknown RRULE property '"+o+"'")}})),t}function w(e){return/^[+-]?\d+$/.test(e)?Number(e):e}var C=window.luxon,S=function(){function e(e,t){this.date=e,this.tzid=t}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!0,configurable:!0}),e.prototype.toString=function(){var e=a.timeToUntilString(this.date.getTime(),this.isUTC);return this.isUTC?":"+e:";TZID="+this.tzid+":"+e},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){if(this.isUTC)return this.date;try{return C.DateTime.fromJSDate(this.date).setZone(this.tzid,{keepLocalTime:!0}).toJSDate()}catch(e){return e instanceof TypeError&&console.error("Using TZID without Luxon available is unsupported. Returned times are in UTC, not the requested time zone"),this.date}},e}();function k(e){for(var t=[],n="",i=Object.keys(e),r=Object.keys(te),s=0;s<i.length;s++)if("tzid"!==i[s]&&(0,o.q9)(r,i[s])){var l=i[s].toUpperCase(),u=e[i[s]],d="";if((0,o.EN)(u)&&(!(0,o.kJ)(u)||u.length)){switch(l){case"FREQ":d=ie.FREQUENCIES[e.freq];break;case"WKST":d=(0,o.hj)(u)?new p.O(u).toString():u.toString();break;case"BYWEEKDAY":l="BYDAY",d=(0,o.qo)(u).map((function(e){return e instanceof p.O?e:(0,o.kJ)(e)?new p.O(e[0],e[1]):new p.O(e)})).toString();break;case"DTSTART":n=D(u,e.tzid);break;case"UNTIL":d=a.timeToUntilString(u,!e.tzid);break;default:if((0,o.kJ)(u)){for(var c=[],h=0;h<u.length;h++)c[h]=String(u[h]);d=c.toString()}else d=String(u)}d&&t.push([l,d])}}var f=t.map((function(e){return e[0]+"="+e[1].toString()})).join(";"),g="";return""!==f&&(g="RRULE:"+f),[n,g].filter((function(e){return!!e})).join("\n")}function D(e,t){return e?"DTSTART"+new S(new Date(e),t).toString():""}var I=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(e,t,n){t&&(t=t instanceof Date?a.clone(t):a.cloneDates(t)),"all"===e?this.all=t:(n._value=t,this[e].push(n))},e.prototype._cacheGet=function(e,t){var n=!1,i=t?Object.keys(t):[],s=function(e){for(var n=0;n<i.length;n++){var o=i[n];if(String(t[o])!==String(e[o]))return!0}return!1},l=this[e];if("all"===e)n=this.all;else if((0,o.kJ)(l))for(var u=0;u<l.length;u++){var d=l[u];if(!i.length||!s(d)){n=d._value;break}}if(!n&&this.all){var c=new r(e,t);for(u=0;u<this.all.length&&c.accept(this.all[u]);u++);n=c.getValue(),this._cacheAdd(e,n,t)}return(0,o.kJ)(n)?a.cloneDates(n):n instanceof Date?a.clone(n):n},e}(),T=d((0,o.rx)(1,31),(0,o.rx)(2,28),(0,o.rx)(3,31),(0,o.rx)(4,30),(0,o.rx)(5,31),(0,o.rx)(6,30),(0,o.rx)(7,31),(0,o.rx)(8,31),(0,o.rx)(9,30),(0,o.rx)(10,31),(0,o.rx)(11,30),(0,o.rx)(12,31),(0,o.rx)(1,7)),E=d((0,o.rx)(1,31),(0,o.rx)(2,29),(0,o.rx)(3,31),(0,o.rx)(4,30),(0,o.rx)(5,31),(0,o.rx)(6,30),(0,o.rx)(7,31),(0,o.rx)(8,31),(0,o.rx)(9,30),(0,o.rx)(10,31),(0,o.rx)(11,30),(0,o.rx)(12,31),(0,o.rx)(1,7)),A=(0,o.w6)(1,29),O=(0,o.w6)(1,30),P=(0,o.w6)(1,31),M=(0,o.w6)(1,32),R=d(M,O,M,P,M,P,M,M,P,M,P,M,M.slice(0,7)),B=d(M,A,M,P,M,P,M,M,P,M,P,M,M.slice(0,7)),V=(0,o.w6)(-28,0),F=(0,o.w6)(-29,0),L=(0,o.w6)(-30,0),H=(0,o.w6)(-31,0),N=d(H,F,H,L,H,L,H,H,L,H,L,H,H.slice(0,7)),z=d(H,V,H,L,H,L,H,H,L,H,L,H,H.slice(0,7)),W=[0,31,60,91,121,152,182,213,244,274,305,335,366],G=[0,31,59,90,120,151,181,212,243,273,304,334,365],j=function(){for(var e=[],t=0;t<55;t++)e=e.concat((0,o.w6)(7));return e}();function q(e,t){var n,i,r=new Date(Date.UTC(e,0,1)),s=a.isLeapYear(e)?366:365,l=a.isLeapYear(e+1)?366:365,d=a.toOrdinal(r),c=a.getWeekday(r),h=u(u({yearlen:s,nextyearlen:l,yearordinal:d,yearweekday:c},function(e){var t=a.isLeapYear(e)?366:365,n=new Date(Date.UTC(e,0,1)),i=a.getWeekday(n);return 365===t?{mmask:T,mdaymask:B,nmdaymask:z,wdaymask:j.slice(i),mrange:G}:{mmask:E,mdaymask:R,nmdaymask:N,wdaymask:j.slice(i),mrange:W}}(e)),{wnomask:null});if((0,o.cS)(t.byweekno))return h;h.wnomask=(0,o.rx)(0,s+7);var f=n=(0,o.Vy)(7-c+t.wkst,7);f>=4?(f=0,i=h.yearlen+(0,o.Vy)(c-t.wkst,7)):i=s-f;for(var p=Math.floor(i/7),g=(0,o.Vy)(i,7),m=Math.floor(p+g/4),_=0;_<t.byweekno.length;_++){var v=t.byweekno[_];if(v<0&&(v+=m+1),v>0&&v<=m){var y=void 0;v>1?(y=f+7*(v-1),f!==n&&(y-=7-n)):y=f;for(var x=0;x<7&&(h.wnomask[y]=1,y++,h.wdaymask[y]!==t.wkst);x++);}}if((0,o.q9)(t.byweekno,1)&&(y=f+7*m,f!==n&&(y-=7-n),y<s))for(_=0;_<7&&(h.wnomask[y]=1,y+=1,h.wdaymask[y]!==t.wkst);_++);if(f){var b=void 0;if((0,o.q9)(t.byweekno,-1))b=-1;else{var w=a.getWeekday(new Date(Date.UTC(e-1,0,1))),C=(0,o.Vy)(7-w.valueOf()+t.wkst,7),S=a.isLeapYear(e-1)?366:365,k=void 0;C>=4?(C=0,k=S+(0,o.Vy)(w-t.wkst,7)):k=s-f,b=Math.floor(52+(0,o.Vy)(k,7)/4)}if((0,o.q9)(t.byweekno,b))for(y=0;y<f;y++)h.wnomask[y]=1}return h}var $=function(){function e(e){this.options=e}return e.prototype.rebuild=function(e,t){var n=this.options;if(e!==this.lastyear&&(this.yearinfo=q(e,n)),(0,o.Dw)(n.bynweekday)&&(t!==this.lastmonth||e!==this.lastyear)){var i=this.yearinfo,a=i.yearlen,r=i.mrange,s=i.wdaymask;this.monthinfo=function(e,t,n,i,a,r){var s={lastyear:e,lastmonth:t,nwdaymask:[]},l=[];if(r.freq===ie.YEARLY)if((0,o.cS)(r.bymonth))l=[[0,n]];else for(var u=0;u<r.bymonth.length;u++)t=r.bymonth[u],l.push(i.slice(t-1,t+1));else r.freq===ie.MONTHLY&&(l=[i.slice(t-1,t+1)]);if((0,o.cS)(l))return s;for(s.nwdaymask=(0,o.rx)(0,n),u=0;u<l.length;u++)for(var d=l[u],c=d[0],h=d[1]-1,f=0;f<r.bynweekday.length;f++){var p=void 0,g=r.bynweekday[f],m=g[0],_=g[1];_<0?(p=h+7*(_+1),p-=(0,o.Vy)(a[p]-m,7)):(p=c+7*(_-1),p+=(0,o.Vy)(7-a[p]+m,7)),c<=p&&p<=h&&(s.nwdaymask[p]=1)}return s}(e,t,a,r,s,n)}(0,o.EN)(n.byeaster)&&(this.eastermask=function(e,t){void 0===t&&(t=0);var n=e%19,i=Math.floor(e/100),o=e%100,a=Math.floor(i/4),r=i%4,s=Math.floor((i+8)/25),l=Math.floor((i-s+1)/3),u=Math.floor(19*n+i-a-l+15)%30,d=Math.floor(o/4),c=o%4,h=Math.floor(32+2*r+2*d-u-c)%7,f=Math.floor((n+11*u+22*h)/451),p=Math.floor((u+h-7*f+114)/31),g=(u+h-7*f+114)%31+1,m=Date.UTC(e,p-1,g+t),_=Date.UTC(e,0,1);return[Math.ceil((m-_)/864e5)]}(e,n.byeaster))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!0,configurable:!0}),e.prototype.ydayset=function(){return[(0,o.w6)(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(e,t,n){for(var i=this.mrange[t-1],a=this.mrange[t],r=(0,o.rx)(null,this.yearlen),s=i;s<a;s++)r[s]=s;return[r,i,a]},e.prototype.wdayset=function(e,t,n){for(var i=(0,o.rx)(null,this.yearlen+7),r=a.toOrdinal(new Date(Date.UTC(e,t-1,n)))-this.yearordinal,s=r,l=0;l<7&&(i[r]=r,++r,this.wdaymask[r]!==this.options.wkst);l++);return[i,s,r]},e.prototype.ddayset=function(e,t,n){var i=(0,o.rx)(null,this.yearlen),r=a.toOrdinal(new Date(Date.UTC(e,t-1,n)))-this.yearordinal;return i[r]=r,[i,r,r+1]},e.prototype.htimeset=function(e,t,n,i){var o=this,r=[];return this.options.byminute.forEach((function(t){r=r.concat(o.mtimeset(e,t,n,i))})),a.sort(r),r},e.prototype.mtimeset=function(e,t,n,i){var o=this.options.bysecond.map((function(n){return new g(e,t,n,i)}));return a.sort(o),o},e.prototype.stimeset=function(e,t,n,i){return[new g(e,t,n,i)]},e.prototype.getdayset=function(e){switch(e){case c.YEARLY:return this.ydayset.bind(this);case c.MONTHLY:return this.mdayset.bind(this);case c.WEEKLY:return this.wdayset.bind(this);case c.DAILY:default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(e){switch(e){case c.HOURLY:return this.htimeset.bind(this);case c.MINUTELY:return this.mtimeset.bind(this);case c.SECONDLY:return this.stimeset.bind(this)}},e}();function K(e,t,n,i,r,s){for(var l=[],u=0;u<e.length;u++){var d=void 0,c=void 0,h=e[u];h<0?(d=Math.floor(h/t.length),c=(0,o.Vy)(h,t.length)):(d=Math.floor((h-1)/t.length),c=(0,o.Vy)(h-1,t.length));for(var f=[],p=n;p<i;p++){var g=s[p];(0,o.EN)(g)&&f.push(g)}var m;m=d<0?f.slice(d)[0]:f[d];var _=t[c],v=a.fromOrdinal(r.yearordinal+m),y=a.combine(v,_);(0,o.q9)(l,y)||l.push(y)}return a.sort(l),l}function U(e,t){var n=t.dtstart,i=t.freq,r=t.interval,s=t.until,l=t.bysetpos,u=t.count;if(0===u||0===r)return X(e);var d=m.fromDate(n),c=new $(t);c.rebuild(d.year,d.month);for(var h=function(e,t,n){var i=n.freq,a=n.byhour,r=n.byminute,s=n.bysecond;return f(i)?function(e){var t=e.dtstart.getTime()%1e3;if(!f(e.freq))return[];var n=[];return e.byhour.forEach((function(i){e.byminute.forEach((function(o){e.bysecond.forEach((function(e){n.push(new g(i,o,e,t))}))}))})),n}(n):i>=ie.HOURLY&&(0,o.Dw)(a)&&!(0,o.q9)(a,t.hour)||i>=ie.MINUTELY&&(0,o.Dw)(r)&&!(0,o.q9)(r,t.minute)||i>=ie.SECONDLY&&(0,o.Dw)(s)&&!(0,o.q9)(s,t.second)?[]:e.gettimeset(i)(t.hour,t.minute,t.second,t.millisecond)}(c,d,t);;){var p=c.getdayset(i)(d.year,d.month,d.day),_=p[0],v=p[1],y=p[2],x=Q(_,v,y,c,t);if((0,o.Dw)(l))for(var b=K(l,h,v,y,c,_),w=0;w<b.length;w++){var C=b[w];if(s&&C>s)return X(e);if(C>=n){var S=Z(C,t);if(!e.accept(S))return X(e);if(u&&!--u)return X(e)}}else for(w=v;w<y;w++){var k=_[w];if((0,o.EN)(k))for(var D=a.fromOrdinal(c.yearordinal+k),I=0;I<h.length;I++){var T=h[I];if(C=a.combine(D,T),s&&C>s)return X(e);if(C>=n){if(S=Z(C,t),!e.accept(S))return X(e);if(u&&!--u)return X(e)}}}if(0===t.interval)return X(e);if(d.add(t,x),d.year>a.MAXYEAR)return X(e);f(i)||(h=c.gettimeset(i)(d.hour,d.minute,d.second,0)),c.rebuild(d.year,d.month)}}function Y(e,t,n){var i=n.bymonth,a=n.byweekno,r=n.byweekday,s=n.byeaster,l=n.bymonthday,u=n.bynmonthday,d=n.byyearday;return(0,o.Dw)(i)&&!(0,o.q9)(i,e.mmask[t])||(0,o.Dw)(a)&&!e.wnomask[t]||(0,o.Dw)(r)&&!(0,o.q9)(r,e.wdaymask[t])||(0,o.Dw)(e.nwdaymask)&&!e.nwdaymask[t]||null!==s&&!(0,o.q9)(e.eastermask,t)||((0,o.Dw)(l)||(0,o.Dw)(u))&&!(0,o.q9)(l,e.mdaymask[t])&&!(0,o.q9)(u,e.nmdaymask[t])||(0,o.Dw)(d)&&(t<e.yearlen&&!(0,o.q9)(d,t+1)&&!(0,o.q9)(d,-e.yearlen+t)||t>=e.yearlen&&!(0,o.q9)(d,t+1-e.yearlen)&&!(0,o.q9)(d,-e.nextyearlen+t-e.yearlen))}function Z(e,t){return new S(e,t.tzid).rezonedDate()}function X(e){return e.getValue()}function Q(e,t,n,i,o){for(var a=!1,r=t;r<n;r++){var s=e[r];(a=Y(i,s,o))&&(e[s]=null)}return a}var J=function(){return J._nlp||(J._nlp=n(78415)),J._nlp},ee={MO:new p.O(0),TU:new p.O(1),WE:new p.O(2),TH:new p.O(3),FR:new p.O(4),SA:new p.O(5),SU:new p.O(6)},te={freq:c.YEARLY,dtstart:null,interval:1,wkst:ee.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},ne=Object.keys(te),ie=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this._cache=t?null:new I,this.origOptions=_(e);var n=function(e){var t=u(u({},te),_(e));if((0,o.EN)(t.byeaster)&&(t.freq=ie.YEARLY),!(0,o.EN)(t.freq)||!ie.FREQUENCIES[t.freq])throw new Error("Invalid frequency: "+t.freq+" "+e.freq);if(t.dtstart||(t.dtstart=new Date((new Date).setMilliseconds(0))),(0,o.EN)(t.wkst)?(0,o.hj)(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=ie.MO.weekday,(0,o.EN)(t.bysetpos)){(0,o.hj)(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var n=0;n<t.bysetpos.length;n++)if(0===(s=t.bysetpos[n])||!(s>=-366&&s<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}if(!(Boolean(t.byweekno)||(0,o.Dw)(t.byweekno)||(0,o.Dw)(t.byyearday)||Boolean(t.bymonthday)||(0,o.Dw)(t.bymonthday)||(0,o.EN)(t.byweekday)||(0,o.EN)(t.byeaster)))switch(t.freq){case ie.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case ie.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case ie.WEEKLY:t.byweekday=[a.getWeekday(t.dtstart)]}if((0,o.EN)(t.bymonth)&&!(0,o.kJ)(t.bymonth)&&(t.bymonth=[t.bymonth]),(0,o.EN)(t.byyearday)&&!(0,o.kJ)(t.byyearday)&&(0,o.hj)(t.byyearday)&&(t.byyearday=[t.byyearday]),(0,o.EN)(t.bymonthday))if((0,o.kJ)(t.bymonthday)){var i=[],r=[];for(n=0;n<t.bymonthday.length;n++){var s;(s=t.bymonthday[n])>0?i.push(s):s<0&&r.push(s)}t.bymonthday=i,t.bynmonthday=r}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);else t.bymonthday=[],t.bynmonthday=[];if((0,o.EN)(t.byweekno)&&!(0,o.kJ)(t.byweekno)&&(t.byweekno=[t.byweekno]),(0,o.EN)(t.byweekday))if((0,o.hj)(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if((0,o.xs)(t.byweekday))t.byweekday=[p.O.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof p.O)!t.byweekday.n||t.freq>ie.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{var l=[],d=[];for(n=0;n<t.byweekday.length;n++){var c=t.byweekday[n];(0,o.hj)(c)?l.push(c):(0,o.xs)(c)?l.push(p.O.fromStr(c).weekday):!c.n||t.freq>ie.MONTHLY?l.push(c.weekday):d.push([c.weekday,c.n])}t.byweekday=(0,o.Dw)(l)?l:null,t.bynweekday=(0,o.Dw)(d)?d:null}else t.bynweekday=null;return(0,o.EN)(t.byhour)?(0,o.hj)(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<ie.HOURLY?[t.dtstart.getUTCHours()]:null,(0,o.EN)(t.byminute)?(0,o.hj)(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<ie.MINUTELY?[t.dtstart.getUTCMinutes()]:null,(0,o.EN)(t.bysecond)?(0,o.hj)(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<ie.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}(e).parsedOptions;this.options=n}return e.parseText=function(e,t){return J().parseText(e,t)},e.fromText=function(e,t){return J().fromText(e,t)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(e){return U(e,this.options)},e.prototype._cacheGet=function(e,t){return!!this._cache&&this._cache._cacheGet(e,t)},e.prototype._cacheAdd=function(e,t,n){if(this._cache)return this._cache._cacheAdd(e,t,n)},e.prototype.all=function(e){if(e)return this._iter(new h("all",{},e));var t=this._cacheGet("all");return!1===t&&(t=this._iter(new r("all",{})),this._cacheAdd("all",t)),t},e.prototype.between=function(e,t,n,i){if(void 0===n&&(n=!1),!a.isValidDate(e)||!a.isValidDate(t))throw new Error("Invalid date passed in to RRule.between");var o={before:t,after:e,inc:n};if(i)return this._iter(new h("between",o,i));var s=this._cacheGet("between",o);return!1===s&&(s=this._iter(new r("between",o)),this._cacheAdd("between",s,o)),s},e.prototype.before=function(e,t){if(void 0===t&&(t=!1),!a.isValidDate(e))throw new Error("Invalid date passed in to RRule.before");var n={dt:e,inc:t},i=this._cacheGet("before",n);return!1===i&&(i=this._iter(new r("before",n)),this._cacheAdd("before",i,n)),i},e.prototype.after=function(e,t){if(void 0===t&&(t=!1),!a.isValidDate(e))throw new Error("Invalid date passed in to RRule.after");var n={dt:e,inc:t},i=this._cacheGet("after",n);return!1===i&&(i=this._iter(new r("after",n)),this._cacheAdd("after",i,n)),i},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return k(this.origOptions)},e.prototype.toText=function(e,t,n){return J().toText(this,e,t,n)},e.prototype.isFullyConvertibleToText=function(){return J().isFullyConvertible(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=c.YEARLY,e.MONTHLY=c.MONTHLY,e.WEEKLY=c.WEEKLY,e.DAILY=c.DAILY,e.HOURLY=c.HOURLY,e.MINUTELY=c.MINUTELY,e.SECONDLY=c.SECONDLY,e.MO=ee.MO,e.TU=ee.TU,e.WE=ee.WE,e.TH=ee.TH,e.FR=ee.FR,e.SA=ee.SA,e.SU=ee.SU,e.parseString=v,e.optionsToString=k,e}(),oe={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function ae(e,t){var n=[],i=[],a=[],r=[],s=y(e),l=s.dtstart,u=s.tzid;return function(e,t){if(void 0===t&&(t=!1),!(e=e&&e.trim()))throw new Error("Invalid empty string");if(!t)return e.split(/\s/);for(var n=e.split("\n"),i=0;i<n.length;){var o=n[i]=n[i].replace(/\s+$/g,"");o?i>0&&" "===o[0]?(n[i-1]+=o.slice(1),n.splice(i,1)):i+=1:n.splice(i,1)}return n}(e,t.unfold).forEach((function(e){if(e){var t=function(e){var t=function(e){if(-1===e.indexOf(":"))return{name:"RRULE",value:e};var t=(0,o.Vl)(e,":",1);return{name:t[0],value:t[1]}}(e),n=t.name,i=t.value,a=n.split(";");if(!a)throw new Error("empty property name");return{name:a[0].toUpperCase(),parms:a.slice(1),value:i}}(e),s=t.name,l=t.parms,d=t.value;switch(s.toUpperCase()){case"RRULE":if(l.length)throw new Error("unsupported RRULE parm: "+l.join(","));n.push(v(e));break;case"RDATE":var c=/RDATE(?:;TZID=([^:=]+))?/i.exec(e),h=(c[0],c[1]);h&&!u&&(u=h),i=i.concat(le(d,l));break;case"EXRULE":if(l.length)throw new Error("unsupported EXRULE parm: "+l.join(","));a.push(v(d));break;case"EXDATE":r=r.concat(le(d,l));break;case"DTSTART":break;default:throw new Error("unsupported property: "+s)}}})),{dtstart:l,tzid:u,rrulevals:n,rdatevals:i,exrulevals:a,exdatevals:r}}function re(e,t){return void 0===t&&(t={}),function(e,t){var n=ae(e,t),i=n.rrulevals,o=n.rdatevals,a=n.exrulevals,r=n.exdatevals,s=n.dtstart,l=n.tzid,u=!1===t.cache;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||i.length>1||o.length||a.length||r.length){var d=new de(u);return d.dtstart(s),d.tzid(l||void 0),i.forEach((function(e){d.rrule(new ie(se(e,s,l),u))})),o.forEach((function(e){d.rdate(e)})),a.forEach((function(e){d.exrule(new ie(se(e,s,l),u))})),r.forEach((function(e){d.exdate(e)})),t.compatible&&t.dtstart&&d.rdate(s),d}var c=i[0]||{};return new ie(se(c,c.dtstart||t.dtstart||s,c.tzid||t.tzid||l),u)}(e,function(e){var t=[],n=Object.keys(e),i=Object.keys(oe);if(n.forEach((function(e){(0,o.q9)(i,e)||t.push(e)})),t.length)throw new Error("Invalid options: "+t.join(", "));return u(u({},oe),e)}(t))}function se(e,t,n){return u(u({},e),{dtstart:t,tzid:n})}function le(e,t){return function(e){e.forEach((function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)}))}(t),e.split(",").map((function(e){return a.untilStringToDate(e)}))}function ue(e){var t=this;return function(n){if(void 0!==n&&(t["_"+e]=n),void 0!==t["_"+e])return t["_"+e];for(var i=0;i<t._rrule.length;i++){var o=t._rrule[i].origOptions[e];if(o)return o}}}var de=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this,{},t)||this;return n.dtstart=ue.apply(n,["dtstart"]),n.tzid=ue.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return l(t,e),t.prototype._iter=function(e){return function(e,t,n,i,o,r){var s={},l=e.accept;function u(e,t){n.forEach((function(n){n.between(e,t,!0).forEach((function(e){s[Number(e)]=!0}))}))}o.forEach((function(e){var t=new S(e,r).rezonedDate();s[Number(t)]=!0})),e.accept=function(e){var t=Number(e);return isNaN(t)?l.call(this,e):!(!s[t]&&(u(new Date(t-1),new Date(t+1)),!s[t]))||(s[t]=!0,l.call(this,e))},"between"===e.method&&(u(e.args.after,e.args.before),e.accept=function(e){var t=Number(e);return!!s[t]||(s[t]=!0,l.call(this,e))});for(var d=0;d<i.length;d++){var c=new S(i[d],r).rezonedDate();if(!e.accept(new Date(c.getTime())))break}t.forEach((function(t){U(e,t.options)}));var h=e._result;switch(a.sort(h),e.method){case"all":case"between":return h;case"before":return h.length&&h[h.length-1]||null;default:return h.length&&h[0]||null}}(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){ce(e,this._rrule)},t.prototype.exrule=function(e){ce(e,this._exrule)},t.prototype.rdate=function(e){he(e,this._rdate)},t.prototype.exdate=function(e){he(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map((function(e){return re(e.toString())}))},t.prototype.exrules=function(){return this._exrule.map((function(e){return re(e.toString())}))},t.prototype.rdates=function(){return this._rdate.map((function(e){return new Date(e.getTime())}))},t.prototype.exdates=function(){return this._exdate.map((function(e){return new Date(e.getTime())}))},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(k({dtstart:this._dtstart}))),this._rrule.forEach((function(t){e=e.concat(t.toString().split("\n"))})),this._exrule.forEach((function(t){e=e.concat(t.toString().split("\n").map((function(e){return e.replace(/^RRULE:/,"EXRULE:")})).filter((function(e){return!/^DTSTART/.test(e)})))})),this._rdate.length&&e.push(fe("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(fe("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join("\n")},t.prototype.clone=function(){var e=new t(!!this._cache);return this._rrule.forEach((function(t){return e.rrule(t.clone())})),this._exrule.forEach((function(t){return e.exrule(t.clone())})),this._rdate.forEach((function(t){return e.rdate(new Date(t.getTime()))})),this._exdate.forEach((function(t){return e.exdate(new Date(t.getTime()))})),e},t}(ie);function ce(e,t){if(!(e instanceof ie))throw new TypeError(String(e)+" is not RRule instance");(0,o.q9)(t.map(String),String(e))||t.push(e)}function he(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");(0,o.q9)(t.map(Number),Number(e))||(t.push(e),a.sort(t))}function fe(e,t,n){var i=!n||"UTC"===n.toUpperCase();return(i?e+":":e+";TZID="+n+":")+t.map((function(e){return a.timeToUntilString(e.valueOf(),i)})).join(",")}
/*!
 * rrule.js - Library for working with recurrence rules for calendar dates.
 * https://github.com/jakubroztocil/rrule
 *
 * Copyright 2010, Jakub Roztocil and Lars Schoning
 * Licenced under the BSD licence.
 * https://github.com/jakubroztocil/rrule/blob/master/LICENCE
 *
 * Based on:
 * python-dateutil - Extensions to the standard Python datetime module.
 * Copyright (c) 2003-2011 - Gustavo Niemeyer <gustavo@niemeyer.net>
 * Copyright (c) 2012 - Tomi Pieviläinen <tomi.pievilainen@iki.fi>
 * https://github.com/jakubroztocil/rrule/blob/master/LICENCE
 *
 */var pe=ie},78415:function(e,t,n){n.r(t),n.d(t,{fromText:function(){return h},isFullyConvertible:function(){return g},parseText:function(){return c},toText:function(){return p}});var i={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},o=n(49377),a=n(23882),r=function(e,t){return-1!==e.indexOf(t)},s=function(e){return e.toString()},l=function(e,t,n){return t+" "+n+", "+e},u=function(){function e(e,t,n,o){if(void 0===t&&(t=s),void 0===n&&(n=i),void 0===o&&(o=l),this.text=[],this.language=n||i,this.gettext=t,this.dateFormatter=o,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var r=[].concat(this.options.bymonthday),u=[].concat(this.options.bynmonthday);r.sort((function(e,t){return e-t})),u.sort((function(e,t){return t-e})),this.bymonthday=r.concat(u),this.bymonthday.length||(this.bymonthday=null)}if((0,a.EN)(this.origOptions.byweekday)){var d=(0,a.kJ)(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],c=String(d);this.byweekday={allWeeks:d.filter((function(e){return!e.n})),someWeeks:d.filter((function(e){return Boolean(e.n)})),isWeekdays:-1!==c.indexOf("MO")&&-1!==c.indexOf("TU")&&-1!==c.indexOf("WE")&&-1!==c.indexOf("TH")&&-1!==c.indexOf("FR")&&-1===c.indexOf("SA")&&-1===c.indexOf("SU"),isEveryDay:-1!==c.indexOf("MO")&&-1!==c.indexOf("TU")&&-1!==c.indexOf("WE")&&-1!==c.indexOf("TH")&&-1!==c.indexOf("FR")&&-1!==c.indexOf("SA")&&-1!==c.indexOf("SU")};var h=function(e,t){return e.weekday-t.weekday};this.byweekday.allWeeks.sort(h),this.byweekday.someWeeks.sort(h),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){if(!(t.options.freq in e.IMPLEMENTED))return!1;if(t.origOptions.until&&t.origOptions.count)return!1;for(var n in t.origOptions){if(r(["dtstart","wkst","freq"],n))return!0;if(!r(e.IMPLEMENTED[t.options.freq],n))return!1}return!0},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[o.default.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},e.prototype.MINUTELY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},e.prototype.DAILY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(1===this.options.interval&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},e.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},e.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},e.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},e.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(e){var t,n;e=parseInt(e.toString(),10);var i=this.gettext;if(-1===e)return i("last");switch(n=Math.abs(e)){case 1:case 21:case 31:t=n+i("st");break;case 2:case 22:t=n+i("nd");break;case 3:case 23:t=n+i("rd");break;default:t=n+i("th")}return e<0?t+" "+i("last"):t},e.prototype.monthtext=function(e){return this.language.monthNames[e-1]},e.prototype.weekdaytext=function(e){var t=(0,a.hj)(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[t]},e.prototype.plural=function(e){return e%100!=1},e.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},e.prototype.list=function(e,t,n,i){void 0===i&&(i=","),(0,a.kJ)(e)||(e=[e]),t=t||function(e){return e.toString()};var o=this,r=function(e){return t&&t.call(o,e)};return n?function(e,t,n){for(var i="",o=0;o<e.length;o++)0!==o&&(o===e.length-1?i+=" "+n+" ":i+=t+" "),i+=e[o];return i}(e.map(r),i,n):e.map(r).join(i+" ")},e}(),d=function(){function e(e){this.done=!0,this.rules=e}return e.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&null===this.symbol},e.prototype.nextSymbol=function(){var e,t;this.symbol=null,this.value=null;do{if(this.done)return!1;for(var n in e=null,this.rules){var i=this.rules[n].exec(this.text);i&&(null===e||i[0].length>e[0].length)&&(e=i,t=n)}if(null!=e&&(this.text=this.text.substr(e[0].length),""===this.text&&(this.done=!0)),null==e)return this.done=!0,this.symbol=null,void(this.value=null)}while("SKIP"===t);return this.symbol=t,this.value=e,!0},e.prototype.accept=function(e){if(this.symbol===e){if(this.value){var t=this.value;return this.nextSymbol(),t}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},e}();function c(e,t){void 0===t&&(t=i);var n={},a=new d(t.tokens);return a.start(e)?(function(){a.expect("every");var e=a.acceptNumber();if(e&&(n.interval=parseInt(e[0],10)),a.isDone())throw new Error("Unexpected end");switch(a.symbol){case"day(s)":n.freq=o.default.DAILY,a.nextSymbol()&&(function(){if(a.accept("at"))do{var e=a.acceptNumber();if(!e)throw new Error("Unexpected symbol "+a.symbol+", expected hour");for(n.byhour=[parseInt(e[0],10)];a.accept("comma");){if(!(e=a.acceptNumber()))throw new Error("Unexpected symbol "+a.symbol+"; expected hour");n.byhour.push(parseInt(e[0],10))}}while(a.accept("comma")||a.accept("at"))}(),c());break;case"weekday(s)":n.freq=o.default.WEEKLY,n.byweekday=[o.default.MO,o.default.TU,o.default.WE,o.default.TH,o.default.FR],a.nextSymbol(),c();break;case"week(s)":n.freq=o.default.WEEKLY,a.nextSymbol()&&(r(),c());break;case"hour(s)":n.freq=o.default.HOURLY,a.nextSymbol()&&(r(),c());break;case"minute(s)":n.freq=o.default.MINUTELY,a.nextSymbol()&&(r(),c());break;case"month(s)":n.freq=o.default.MONTHLY,a.nextSymbol()&&(r(),c());break;case"year(s)":n.freq=o.default.YEARLY,a.nextSymbol()&&(r(),c());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=o.default.WEEKLY;var t=a.symbol.substr(0,2).toUpperCase();if(n.byweekday=[o.default[t]],!a.nextSymbol())return;for(;a.accept("comma");){if(a.isDone())throw new Error("Unexpected end");var i=l();if(!i)throw new Error("Unexpected symbol "+a.symbol+", expected weekday");n.byweekday.push(o.default[i]),a.nextSymbol()}!function(){a.accept("on"),a.accept("the");var e=u();if(e)for(n.bymonthday=[e],a.nextSymbol();a.accept("comma");){if(!(e=u()))throw new Error("Unexpected symbol "+a.symbol+"; expected monthday");n.bymonthday.push(e),a.nextSymbol()}}(),c();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(n.freq=o.default.YEARLY,n.bymonth=[s()],!a.nextSymbol())return;for(;a.accept("comma");){if(a.isDone())throw new Error("Unexpected end");var d=s();if(!d)throw new Error("Unexpected symbol "+a.symbol+", expected month");n.bymonth.push(d),a.nextSymbol()}r(),c();break;default:throw new Error("Unknown symbol")}}(),n):null;function r(){var e=a.accept("on"),t=a.accept("the");if(e||t)do{var i=u(),r=l(),d=s();if(i)r?(a.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(o.default[r].nth(i))):(n.bymonthday||(n.bymonthday=[]),n.bymonthday.push(i),a.accept("day(s)"));else if(r)a.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(o.default[r]);else if("weekday(s)"===a.symbol)a.nextSymbol(),n.byweekday||(n.byweekday=[o.default.MO,o.default.TU,o.default.WE,o.default.TH,o.default.FR]);else if("week(s)"===a.symbol){a.nextSymbol();var c=a.acceptNumber();if(!c)throw new Error("Unexpected symbol "+a.symbol+", expected week number");for(n.byweekno=[parseInt(c[0],10)];a.accept("comma");){if(!(c=a.acceptNumber()))throw new Error("Unexpected symbol "+a.symbol+"; expected monthday");n.byweekno.push(parseInt(c[0],10))}}else{if(!d)return;a.nextSymbol(),n.bymonth||(n.bymonth=[]),n.bymonth.push(d)}}while(a.accept("comma")||a.accept("the")||a.accept("on"))}function s(){switch(a.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function l(){switch(a.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return a.symbol.substr(0,2).toUpperCase();default:return!1}}function u(){switch(a.symbol){case"last":return a.nextSymbol(),-1;case"first":return a.nextSymbol(),1;case"second":return a.nextSymbol(),a.accept("last")?-2:2;case"third":return a.nextSymbol(),a.accept("last")?-3:3;case"nth":var e=parseInt(a.value[1],10);if(e<-366||e>366)throw new Error("Nth out of range: "+e);return a.nextSymbol(),a.accept("last")?-e:e;default:return!1}}function c(){if("until"===a.symbol){var e=Date.parse(a.text);if(!e)throw new Error("Cannot parse until date:"+a.text);n.until=new Date(e)}else a.accept("for")&&(n.count=parseInt(a.value[0],10),a.expect("number"))}}
/*!
* rrule.js - Library for working with recurrence rules for calendar dates.
* https://github.com/jakubroztocil/rrule
*
* Copyright 2010, Jakub Roztocil and Lars Schoning
* Licenced under the BSD licence.
* https://github.com/jakubroztocil/rrule/blob/master/LICENCE
*
*/var h=function(e,t){return void 0===t&&(t=i),new o.default(c(e,t)||void 0)},f=["count","until","interval","byweekday","bymonthday","bymonth"];u.IMPLEMENTED=[],u.IMPLEMENTED[o.default.HOURLY]=f,u.IMPLEMENTED[o.default.MINUTELY]=f,u.IMPLEMENTED[o.default.DAILY]=["byhour"].concat(f),u.IMPLEMENTED[o.default.WEEKLY]=f,u.IMPLEMENTED[o.default.MONTHLY]=f,u.IMPLEMENTED[o.default.YEARLY]=["byweekno","byyearday"].concat(f);var p=function(e,t,n,i){return new u(e,t,n,i).toString()},g=u.isFullyConvertible},49509:function(e,t,n){n.d(t,{Z:function(){return i},O:function(){return o}});var i=["MO","TU","WE","TH","FR","SA","SU"],o=function(){function e(e,t){if(0===t)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=t}return e.fromStr=function(t){return new e(i.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},e.prototype.toString=function(){var e=i[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},e.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},e}()},27353:function(e){e.exports=window.DevExpress.Gantt},9549:function(e){e.exports=window.DevExpress.Quill},63472:function(e){e.exports=window.DevExpress.diagram},71272:function(e){e.exports=window.Globalize},97405:function(e){e.exports=window.JSZip},42552:function(e){e.exports=window.TurndownService},62387:function(e){e.exports=window.angular},96073:function(e){e.exports=window.jQuery},76130:function(e){e.exports=window.ko},4848:function(e){e.exports=window.showdown}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,n),a.exports}n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(16354)}();
;
var Site = Site || {};

Site.UrlHelper = function() {
    var isAspNetCoreDemos;

    var appPath = Site.appPath,
        getParts = function(href) {
            return href.replace(appPath, "").split("/").filter(function(e) { return e; });
        },
        getFullPath = function(hrefParts, themeUrl) {
            if(isAspNetCoreDemos === undefined)
                isAspNetCoreDemos = $("html").hasClass("aspnetcore-demos");

            if(isAspNetCoreDemos)
                return buildAspNetCoreDemoUrl(hrefParts, themeUrl);

            return appPath + hrefParts.join("/") + "/" + themeUrl;
        };

    function buildAspNetCoreDemoUrl(hrefParts, themeUrl) {
        var url = appPath + hrefParts.slice(0, 3).join("/") + "/";
        var themeName = Site.themeUrlToNameMap[themeUrl]; // Views/Demo/_Index.cshtml

        if(themeName === "light")
            themeName = null; // Light theme is always available (I checked it)

        if(themeName)
            url += "?theme=" + encodeURIComponent(themeName);

        return url;
    }

    this.getAppPath = function(path) {
        return appPath;
    };

    this.updateTheme = function(href, themeUrl) {
        var hrefParts = getParts(href);

        hrefParts.pop();
        if (href.toLocaleLowerCase().includes('compact')) {
            hrefParts.pop();
        }

        return getFullPath(hrefParts, themeUrl);
    };

    this.createDemoLink = function (component, demoName, theme) {
        if (Site.appPath.startsWith('/ASPNet')) {
            return `${Site.appPath}Demo/${component}/${demoName}`;
        }
        return `${Site.appPath}Demo/${component}/${demoName}/${theme}`;
    }
};
;
var Site = Site || {};
Site.Cookies = function() {
    var self = this;
    self.get = function(name) {
        var cookieName = name + "=",
        cookieLength = document.cookie.length,
        cookieBegin = 0,
        valueBegin;

        while(cookieBegin < cookieLength) {
            valueBegin = cookieBegin + cookieName.length;

            if(document.cookie.substring(cookieBegin, valueBegin) === cookieName) {
                var valueEnd = document.cookie.indexOf(";", valueBegin);
                if(valueEnd == -1) {
                    valueEnd = cookieLength;
                }
                return unescape(document.cookie.substring(valueBegin, valueEnd));
            }

            cookieBegin = document.cookie.indexOf(" ", cookieBegin) + 1;
            if(cookieBegin === 0) {
                break;
            }
        }
        return null;
    };

    self.set = function(name, value, expires) {
        var cookieValue = name + "=" + escape(value) + ";SameSite=Lax;";
        if(expires) {
            cookieValue += "expires=" + expires.toGMTString() + ";";
        } else {
            var currentDate = new Date(),
            cookiesFinishDate = new Date(currentDate.getFullYear(), currentDate.getMonth() + 6, currentDate.getDate());
            cookieValue += "expires=" + cookiesFinishDate.toGMTString() + ";";
        }
        cookieValue += "path=/";

        this.delete(name);
        document.cookie = cookieValue;
    };

    self.delete = function(name) {
        document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/';
    };

};;
var Site = Site || {};

Site.Ajax = function() {

    if(history.replaceState) {
        history.replaceState({
            href: location.pathname
        }, "", location.href);
    }

    const popstateHandler = (e) => {
        if (!e.state) {
            return;
        }

        var href = e.state.href;
        if (!href) {
            return;
        }

        Site.ajax.load(href);
    };

    this.load = function(href) {
        $.get(href, { "X-Requested-With": "XMLHttpRequest" })
            .done(function(data) {
                $(".ajax-container").html(data);
                document.title = $("#hidden-title").val();
                $(".ajax-link").removeClass("active");
                $(".ajax-link[href='" + href + "']").addClass("active");
                Site.widgetsMenu.refresh();
            });
    };

    this.onSuccess = function(html, status, xhr) {
        var href = $(this).attr("href");
        if(history.pushState) {
            history.pushState({ href: href }, "", href);
        }

        if (Site.header) {
            Site.header.updateState();
        }
    };

    this.onFailure = function(request, error) {
    };

    this.onBegin = function() {
    };

    this.onComplete = function(request, status) {
        document.title = $("#hidden-title").val();
        if(!$(this).hasClass("approach-tab")) {
            window.scrollTo(window.scrollX, 0);
        }
    };

    this.initializeAjaxLinks = function() {
        $(".ajax-link").attr("data-ajax", "true")
            .attr("data-ajax-mode", "replace")
            .attr("data-ajax-success", "Site.ajax.onSuccess")
            .attr("data-ajax-complete", "Site.ajax.onComplete")
            .attr("data-ajax-begin", "Site.ajax.onBegin")
            .attr("data-ajax-update", ".ajax-container");
    };

    window.addEventListener('popstate', popstateHandler);
};

Site.ajax = new Site.Ajax();
;
/*!
 * surveyjs - Survey JavaScript library v1.8.21
 * Copyright (c) 2015-2020 Devsoft Baltic OÜ  - http://surveyjs.io/
 * License: MIT (http://www.opensource.org/licenses/mit-license.php)
 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define("Survey",["jquery"],t):"object"==typeof exports?exports.Survey=t(require("jquery")):e.Survey=t(e.jQuery)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},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=178)}([function(e,t,n){"use strict";function r(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}n.d(t,"a",function(){return i}),t.b=r,n.d(t,"c",function(){return o}),n.d(t,"d",function(){return a});var i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},o=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}},function(e,t,n){"use strict";function r(e,t,n){var r=e.getLocalizableString(n);r||(r=e.createLocalizableString(n,e,!0),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(r.onGetTextCallback=t.localizable.onGetTextCallback))}function i(e){return function(t,n){e&&e.localizable?(Object.defineProperty(t,n,{get:function(){return r(this,e,n),this.getLocalizableStringText(n)||e.defaultValue||this[e.defaultSource]},set:function(t){r(this,e,n),this.setLocalizableStringText(n,t)}}),Object.defineProperty(t,!0===e.localizable?"loc"+n.charAt(0).toUpperCase()+n.slice(1):e.localizable.name,{get:function(){return r(this,e,n),this.getLocalizableString(n)}})):Object.defineProperty(t,n,{get:function(){return this.getPropertyValue(n)||(e?e.defaultValue||this[e.defaultSource]:void 0)},set:function(e){this.setPropertyValue(n,e)}})}}var o=n(0),a=n(4);t.e=i,n.d(t,"d",function(){return s}),n.d(t,"a",function(){return l}),n.d(t,"i",function(){return u}),n.d(t,"h",function(){return c}),n.d(t,"f",function(){return p}),n.d(t,"m",function(){return d}),n.d(t,"k",function(){return h}),n.d(t,"j",function(){return f}),n.d(t,"g",function(){return g}),n.d(t,"l",function(){return m}),n.d(t,"c",function(){return y}),n.d(t,"b",function(){return v});var s=function(){function e(t,n,r){void 0===r&&(r=!1),this.name=n,this.typeValue=null,this.choicesValue=null,this.baseValue=null,this.isRequiredValue=!1,this.isUniqueValue=!1,this.readOnlyValue=null,this.visibleValue=null,this.isLocalizableValue=null,this.choicesfunc=null,this.dependedProperties=null,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.className=null,this.alternativeName=null,this.classNamePart=null,this.baseClassName=null,this.defaultValueValue=null,this.serializationProperty=null,this.displayName=null,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.nextToProperty=null,this.showMode=null,this.maxLength=-1,this.layout=null,this.onGetValue=null,this.onSetValue=null,this.visibleIf=null,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=r,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substr(0,this.typeValue.length-2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){this.isRequiredValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){var t=this.defaultValueValue;return e.getItemValuesDefaultValue&&y.metaData.isDescendantOf(this.className,"itemvalue")&&(t=e.getItemValuesDefaultValue(this.defaultValueValue||[])),t},set:function(e){this.defaultValueValue=e},enumerable:!0,configurable:!0}),e.prototype.isDefaultValue=function(e){return a.a.isValueEmpty(this.defaultValue)?!1===e&&("boolean"==this.type||"switch"==this.type)||""===e||a.a.isValueEmpty(e):this.defaultValue==e},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e,t,n){this.onSetValue?this.onSetValue(e,t,n):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},e.prototype.getClassName=function(e){return e&&(e=e.toLowerCase()),this.classNamePart&&e.indexOf(this.classNamePart)<0?e+this.classNamePart:e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!0,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!0,configurable:!0}),e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var n=!this.layout||this.layout==e;return!(!this.visible||!n)&&(!this.visibleIf||!t||this.visibleIf(t))},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!0,configurable:!0}),e.prototype.mergeWith=function(t){for(var n=e.mergableValues,r=0;r<n.length;r++)this.mergeValue(t,n[r])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){return this.className?"array":this.baseClassName?"array":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","isDynamicChoices","isLocalizableValue","className","alternativeName","layout","classNamePart","baseClassName","defaultValue","serializationProperty","onGetValue","onSetValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","showMode","dependedProperties","visibleIf","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),l=function(){function e(){}return e.addProperty=function(t,n){t=t.toLowerCase();var r=e.properties;r[t]||(r[t]=[]),r[t].push(n)},e.removeProperty=function(t,n){t=t.toLowerCase();var r=e.properties;if(r[t])for(var i=r[t],o=0;o<i.length;o++)if(i[o].name==n){r[t].splice(o,1);break}},e.addClass=function(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n},e.getProperties=function(t){t=t.toLowerCase();for(var n=[],r=e.properties;t;){var i=r[t];if(i)for(var o=0;o<i.length;o++)n.push(i[o]);t=e.parentClasses[t]}return n},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,n){var r=e.properties;r[n]&&e.createPropertiesInObj(t,r[n]);var i=e.parentClasses[n];i&&e.createPropertiesCore(t,i)},e.createPropertiesInObj=function(t,n){for(var r=0;r<n.length;r++)e.createPropertyInObj(t,n[r])},e.createPropertyInObj=function(e,t){if(!e[t.name]&&!e.hasOwnProperty(t.name))if(t.isLocalizable&&t.serializationProperty&&!e[t.serializationProperty]&&e.createCustomLocalizableObj){e.createCustomLocalizableObj(t.name);var n={get:function(){return e.getLocalizableString(t.name)}};Object.defineProperty(e,t.serializationProperty,n);var r={get:function(){return e.getLocalizableStringText(t.name,t.defaultValue)},set:function(n){e.setLocalizableStringText(t.name,n)}};Object.defineProperty(e,t.name,r)}else{var i=t.defaultValue,o=!1;if("function"==typeof e.createNewArray&&(y.metaData.isDescendantOf(t.className,"itemvalue")&&(e.createNewArray(t.name,function(n){n.locOwner=e,n.ownerPropertyName=t.name}),o=!0),"multiplevalues"===t.type&&(e.createNewArray(t.name),o=!0),o&&(Array.isArray(i)&&e.setPropertyValue(t.name,i),i=null)),e.getPropertyValue&&e.setPropertyValue){var r={get:function(){return t.onGetValue?t.onGetValue(e):e.getPropertyValue(t.name,i)},set:function(n){t.onSetValue?t.onSetValue(e,n,null):e.setPropertyValue(t.name,n)}};Object.defineProperty(e,t.name,r)}}},e.properties={},e.parentClasses={},e}(),u=function(){function e(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),this.name=e,this.creator=n,this.parentName=r,this.properties=null,e=e.toLowerCase(),this.parentName&&(this.parentName=this.parentName.toLowerCase(),l.addClass(e,this.parentName)),this.properties=new Array;for(var i=0;i<t.length;i++){var o=this.createProperty(t[i]);o&&this.properties.push(o)}}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.createProperty=function(t){var n="string"==typeof t?t:t.name;if(n){var r=null,i=n.indexOf(e.typeSymbol);i>-1&&(r=n.substring(i+1),n=n.substring(0,i));var o=this.getIsPropertyNameRequired(n)||!!t.isRequired;n=this.getPropertyName(n);var l=new s(this,n,o);if(r&&(l.type=r),"object"==typeof t){if(t.type&&(l.type=t.type),a.a.isValueEmpty(t.default)||(l.defaultValue=t.default),a.a.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),a.a.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),a.a.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),a.a.isValueEmpty(t.displayName)||(l.displayName=t.displayName),a.a.isValueEmpty(t.category)||(l.category=t.category),a.a.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),a.a.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),a.a.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),a.a.isValueEmpty(t.showMode)||(l.showMode=t.showMode),a.a.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),a.a.isValueEmpty(t.minValue)||(l.minValue=t.minValue),a.a.isValueEmpty(t.dataList)||(l.dataList=t.dataList),a.a.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),a.a.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),a.a.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}if(t.baseValue&&l.setBaseValue(t.baseValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty){l.serializationProperty=t.serializationProperty;l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)}t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.layout&&(l.layout=t.layout),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return l}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.addDependsOnProperty(e,t[n]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var n=this.find(t);n||(n=v.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),c=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.classProperties={},this.classHashProperties={}}return e.prototype.addClass=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e=e.toLowerCase();var i=new u(e,t,n,r);if(this.classes[e]=i,r){r=r.toLowerCase();this.childrenClasses[r]||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(i)}return i},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var n=this.childrenClasses[t.parentName].indexOf(t);n>-1&&this.childrenClasses[t.parentName].splice(n,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);if(!t)return[];var n=this.classProperties[t.name];return n||(this.fillPropertiesForClass(t.name),this.classProperties[t.name])},e.prototype.getHashProperties=function(e){var t=this.findClass(e);if(!t)return{};var n=this.classHashProperties[t.name];return n||(this.fillPropertiesForClass(t.name),this.classHashProperties[t.name])},e.prototype.fillPropertiesForClass=function(e){var t=new Array,n={};this.fillProperties(e,t,n),this.classProperties[e]=t,this.classHashProperties[e]=n},e.prototype.getPropertiesByObj=function(e){if(!e||!e.getType)return[];for(var t={},n=this.getProperties(e.getType()),r=0;r<n.length;r++)t[n[r].name]=n[r];var i=e.getDynamicType?this.getProperties(e.getDynamicType()):null;if(i&&i.length>0)for(var r=0;r<i.length;r++){var o=i[r];t[o.name]||(t[o.name]=o)}return Object.keys(t).map(function(e){return t[e]})},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType||!e.getDynamicType&&!t)return[];var n=t||e.getDynamicType();if(!n)return[];var r=this.getProperties(n);if(!r||0==r.length)return[];for(var i={},o=this.getProperties(e.getType()),a=0;a<o.length;a++)i[o[a].name]=o[a];for(var s=[],a=0;a<r.length;a++){var l=r[a];i[l.name]||s.push(l)}return s},e.prototype.findProperty=function(e,t){var n=this.getHashProperties(e),r=n[t];return r||null},e.prototype.findProperties=function(e,t){for(var n=[],r=this.getHashProperties(e),i=0;i<t.length;i++){var o=r[t[i]];o&&n.push(o)}return n},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var i=this.findClass(n[r]),o=0;o<i.properties.length;o++)if(i.properties[o].name==e){t.push(i.properties[o]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var r=n.parentName;r;){if(!(n=this.findClass(r)))return null;if(r=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null},e.prototype.createCustomType=function(e,t,n){void 0===n&&(n=void 0),e=e.toLowerCase();var r=t(n),i=e,o=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return i},r.getTemplate=function(){return o},l.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n},e.prototype.getRequiredProperties=function(e){for(var t=this.getProperties(e),n=[],r=0;r<t.length;r++)t[r].isRequired&&n.push(t[r].name);return n},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var n=this.findClass(e),r=0;r<t.length;r++)this.addCustomPropertyCore(n,t[r])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var n=e.createProperty(t);return n&&(n.isCustom=!0,this.addPropertyToClass(e,n),this.emptyClassPropertiesHash(e),l.addProperty(e.name,n)),n},e.prototype.removeProperty=function(e,t){var n=this.findClass(e);if(!n)return!1;var r=n.find(t);r&&(this.removePropertyFromClass(n,r),this.emptyClassPropertiesHash(n),l.removeProperty(n.name,t))},e.prototype.addPropertyToClass=function(e,t){null==e.find(t.name)&&e.properties.push(t)},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.emptyClassPropertiesHash=function(e){this.classProperties[e.name]=null,this.classHashProperties[e.name]=null;for(var t=this.getChildrenClasses(e.name),n=0;n<t.length;n++)this.classProperties[t[n].name]=null,this.classHashProperties[t[n].name]=null},e.prototype.fillChildrenClasses=function(e,t,n){var r=this.childrenClasses[e];if(r)for(var i=0;i<r.length;i++)t&&!r[i].creator||n.push(r[i]),this.fillChildrenClasses(r[i].name,t,n)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var n=this.findClass(e);if(!n)return!1;var r=n;do{if(r.name===t)return!0;r=this.classes[r.parentName]}while(r);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{}};return this.generateSchemaProperties(t,n.properties,n.definitions),n},e.prototype.generateSchemaProperties=function(e,t,n){if(e)for(var r=0;r<e.properties.length;r++){var i=e.properties[r];t[i.name]=this.generateSchemaProperty(i,n)}},e.prototype.generateSchemaProperty=function(e,t){var n={type:e.schemaType()};if(e.hasChoices&&(n.enum=e.getChoices(null)),e.className&&(n.items={$ref:"#"+e.className},this.generateChemaClass(e.className,t)),e.baseClassName){var r=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&r.push(this.findClass("panel")),n.items=[];for(var i=0;i<r.length;i++){var o=r[i].name;n.items.push({$ref:"#"+o}),this.generateChemaClass(o,t)}}return n},e.prototype.generateChemaClass=function(e,t){if(!t[e]){var n=this.findClass(e);if(n){var r=!!n.parentName&&"base"!=n.parentName;r&&this.generateChemaClass(n.parentName,t);var i={type:"object",$id:"#"+e};t[e]=i;var o={};this.generateSchemaProperties(n,o,t),r?i.allOff=[{$ref:"#"+n.parentName},{properties:o}]:i.properties=o}}},e.prototype.fillProperties=function(e,t,n){var r=this.findClass(e);if(r){r.parentName&&this.fillProperties(r.parentName,t,n);for(var i=0;i<r.properties.length;i++){var o=r.properties[i];this.addPropertyCore(o,t,n),n[o.name]=o}}},e.prototype.addPropertyCore=function(e,t,n){if(!n[e.name])return void t.push(e);for(var r=-1,i=0;i<t.length;i++)if(t[i].name==e.name){r=i;break}e.mergeWith(t[r]),t[r]=e},e}(),p=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),d=function(e){function t(t,n){var r=e.call(this,"unknownproperty","The property '"+t+"' in class '"+n+"' is unknown.")||this;r.propertyName=t,r.className=n;var i=y.metaData.getProperties(n);if(i){r.description="The list of available properties are: ";for(var o=0;o<i.length;o++)o>0&&(r.description+=", "),r.description+=i[o].name;r.description+="."}return r}return n.i(o.b)(t,e),t}(p),h=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;i.baseClassName=t,i.type=n,i.message=r,i.description="The following types are available: ";for(var o=y.metaData.getChildrenClasses(t,!0),a=0;a<o.length;a++)a>0&&(i.description+=", "),i.description+="'"+o[a].name+"'";return i.description+=".",i}return n.i(o.b)(t,e),t}(p),f=function(e){function t(t,n){var r=e.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return n.i(o.b)(t,e),t}(h),g=function(e){function t(t,n){var r=e.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return n.i(o.b)(t,e),t}(h),m=function(e){function t(t,n){var r=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return n.i(o.b)(t,e),t}(p),y=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!0,configurable:!0}),e.prototype.toJsonObject=function(e,t){return void 0===t&&(t=!1),this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t){if(this.toObjectCore(e,t),t.getType){var n=this.getRequiredError(e,t.getType());n&&this.addNewError(n,e)}},e.prototype.toObjectCore=function(t,n){if(t){var r=null,i=void 0,o=!0;if(n.getType&&(i=n.getType(),r=e.metaData.getProperties(i),o=!!i&&!e.metaData.isDescendantOf(i,"itemvalue")),r){n.startLoadingFromJson&&n.startLoadingFromJson(),r=this.addDynamicProperties(n,t,r);for(var a in t)if(a!==e.typePropertyName)if(a!==e.positionPropertyName){var s=this.findProperty(r,a);s?this.valueToObj(t[a],n,s):o&&this.addNewError(new d(a.toString(),i),t)}else n[a]=t[a];n.endLoadingFromJson&&n.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,n,r){if(void 0===r&&(r=!1),!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var i={};return null==n||n.className||(i[e.typePropertyName]=n.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),i,r),this.propertiesToJson(t,this.getDynamicProperties(t),i,r),i},e.prototype.getDynamicProperties=function(e){return v.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,n){if(!e.getDynamicPropertyName)return n;var r=e.getDynamicPropertyName();if(!r)return n;t[r]&&(e[r]=t[r]);for(var i=this.getDynamicProperties(e),o=[],a=0;a<n.length;a++)o.push(n[a]);for(var a=0;a<i.length;a++)o.push(i[a]);return o},e.prototype.propertiesToJson=function(e,t,n,r){void 0===r&&(r=!1);for(var i=0;i<t.length;i++)this.valueToJson(e,n,t[i],r)},e.prototype.valueToJson=function(e,t,n,r){if(void 0===r&&(r=!1),!(!1===n.isSerializable||!1===n.isLightSerializable&&this.lightSerializing)){var i=n.getValue(e);if(r||!n.isDefaultValue(i)){if(this.isValueArray(i)){for(var o=[],a=0;a<i.length;a++)o.push(this.toJsonObjectCore(i[a],n,r));i=o.length>0?o:null}else i=this.toJsonObjectCore(i,n,r);var s="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(n.name,null);(r&&s||!n.isDefaultValue(i))&&(t[n.name]=i)}}},e.prototype.valueToObj=function(e,t,n){if(null!=e){if(this.removePos(n,e),null!=n&&n.hasToUseSetValue)return void n.setValue(t,e,this);if(this.isValueArray(e))return void this.valueToArray(e,t,n.name,n);var r=this.createNewObj(e,n);r.newObj&&(this.toObjectCore(e,r.newObj),e=r.newObj),r.error||(null!=n?n.setValue(t,e,this):t[n.name]=e)}},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.removePosFromObj(t[n]);t[e.positionPropertyName]&&delete t[e.positionPropertyName]}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(t,n){var r={newObj:null,error:null},i=t[e.typePropertyName];return!i&&null!=n&&n.className&&(i=n.className),i=n.getClassName(i),r.newObj=i?e.metaData.createClass(i,t):null,r.error=this.checkNewObjectOnErrors(r.newObj,t,n,i),r},e.prototype.checkNewObjectOnErrors=function(e,t,n,r){var i=null;return e?i=this.getRequiredError(t,r):n.baseClassName&&(i=r?new g(n.name,n.baseClassName):new f(n.name,n.baseClassName)),i&&this.addNewError(i,t),i},e.prototype.getRequiredError=function(t,n){var r=e.metaData.getRequiredProperties(n);if(!r)return null;for(var i=0;i<r.length;i++)if(!t[r[i]])return new m(r[i],n);return null},e.prototype.addNewError=function(t,n){n&&n[e.positionPropertyName]&&(t.at=n[e.positionPropertyName].start),this.errors.push(t)},e.prototype.valueToArray=function(e,t,n,r){t[n]&&e.length>0&&t[n].splice(0,t[n].length);var i=t[n]?t[n]:[];this.addValuesIntoArray(e,i,r),t[n]||(t[n]=i)},e.prototype.addValuesIntoArray=function(e,t,n){for(var r=0;r<e.length;r++){var i=this.createNewObj(e[r],n);i.newObj?(e[r].name&&(i.newObj.name=e[r].name),t.push(i.newObj),this.toObjectCore(e[r],i.newObj)):i.error||t.push(e[r])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var r=e[n];if(r.name==t||r.alternativeName==t)return r}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new c,e}(),v=y.metaData},function(e,t,n){"use strict";var r=n(49);n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var i={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getCurrentStrings:function(){var e=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale];return e||(e=this.locales[this.defaultLocale]),e},getString:function(e){var t=this.getCurrentStrings();t[e]||(t=this.locales[this.defaultLocale]);var n=t[e];return void 0===n&&(n=this.locales.en[e]),n},getLocales:function(e){void 0===e&&(e=!1);var t=[];t.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var i in n)e&&i==this.defaultLocale||t.push(i);return t.sort(),t}},o=r.a;i.locales.en=r.a,i.localeNames.en="english"},function(e,t,n){"use strict";var r=n(2),i=n(1);n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var o=function(){function e(){this.creatorHash={}}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[r.a.getString("choices_Item")+"1",r.a.getString("choices_Item")+"2",r.a.getString("choices_Item")+"3"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=r.a.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=r.a.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!0,configurable:!0}),e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.unregisterElement=function(e){delete this.creatorHash[e]},e.prototype.clear=function(){this.creatorHash={}},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}(),a=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],o.Instance.unregisterElement(e),t&&i.b.removeClass(e)},e.prototype.getAllTypes=function(){var e=o.Instance.getAllTypes();for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return null==n?o.Instance.createQuestion(e,t):n(t)},e.Instance=new e,e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&"object"==typeof t&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return t&&("string"==typeof t||t instanceof String)&&(t=t.trim()),!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,n){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++){for(var i=0;i<n.length&&!e.isTwoValueEquals(t[r],n[i]);i++);if(i===n.length)return!1}return!0},e.isArraysEqual=function(t,n,r){if(void 0===r&&(r=!1),!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;if(r){for(var i=[],o=[],a=0;a<t.length;a++)i.push(t[a]),o.push(n[a]);i.sort(),o.sort(),t=i,n=o}for(var a=0;a<t.length;a++)if(!e.isTwoValueEquals(t[a],n[a]))return!1;return!0},e.isTwoValueEquals=function(t,n,r){if(void 0===r&&(r=!1),t===n)return!0;if(Array.isArray(t)&&0===t.length&&void 0===n)return!0;if(Array.isArray(n)&&0===n.length&&void 0===t)return!0;if((void 0===t||null===t)&&""===n)return!0;if((void 0===n||null===n)&&""===t)return!0;if("string"==typeof t&&"string"==typeof n)return t==n;if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(n)&&parseInt(t)===parseInt(n)&&parseFloat(t)===parseFloat(n))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(n)||e.isValueEmpty(t)&&!e.isValueEmpty(n))return!1;if((!0===t||!1===t)&&"string"==typeof n)return t.toString()===n.toLocaleLowerCase();if((!0===n||!1===n)&&"string"==typeof t)return n.toString()===t.toLocaleLowerCase();if(!(t instanceof Object||n instanceof Object))return t==n;if(!(t instanceof Object&&n instanceof Object))return!1;if(t.equals)return t.equals(n);if(t.toJSON&&n.toJSON)return this.isTwoValueEquals(t.toJSON(),n.toJSON());if(Array.isArray(t)&&Array.isArray(n))return e.isArraysEqual(t,n,r);for(var i in t)if(t.hasOwnProperty(i)){if(!n.hasOwnProperty(i))return!1;if(t[i]!==n[i]){if("object"!=typeof t[i])return!1;if(!this.isTwoValueEquals(t[i],n[i]))return!1}}for(i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},e.getUnbindValue=function(e){return e&&e instanceof Object?JSON.parse(JSON.stringify(e)):e},e.createCopy=function(e){var t={};if(!e)return t;for(var n in e)t[n]=e[n];return t},e.isConvertibleToNumber=function(e){return void 0!==e&&null!==e&&!Array.isArray(e)&&!isNaN(e)},e.isNumber=function(e){return!("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)&&(!isNaN(parseFloat(e))&&isFinite(e))},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getNumberByIndex=function(t,n){if(t<0)return"";var r=1,i="",o=".",a=!0,s="A",l="";if(n){l=n;for(var u=l.length-1,c=!1,p=0;p<l.length;p++)if(e.isCharDigit(l[p])){c=!0;break}for(var d=function(){return c&&!e.isCharDigit(l[u])||e.isCharNotLetterAndDigit(l[u])};u>=0&&d();)u--;var h="";for(u<l.length-1&&(h=l.substr(u+1),l=l.substr(0,u+1)),u=l.length-1;u>=0&&!d()&&(u--,c););s=l.substr(u+1),i=l.substr(0,u+1),parseInt(s)?r=parseInt(s):1==s.length&&(a=!1),(h||i)&&(o=h)}return a?i+(t+r).toString()+o:i+String.fromCharCode(s.charCodeAt(0)+t)+o},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,function(t,n){return void 0!==e[n]?e[n]:t})})},function(e,t,n){"use strict";var r=n(0),i=n(14),o=n(4),a=n(1),s=n(7);n.d(t,"b",function(){return u}),n.d(t,"d",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"c",function(){return h});var l=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={}),t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){return!this.values},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var n in this.values)this.values[n]==e&&t.push(n);return t},e.prototype.getJson=function(){if(this.isEmpty())return null;var e={};for(var t in this.values)e[t]=this.values[t];return e},e.prototype.setJson=function(e){if(this.values=null,e){this.values={};for(var t in e)this.values[t]=e[t]}},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=a.b.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e}(),u=function(){function e(){this.propertyHash={},this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=new h,this.onItemValuePropertyChanged=new h,this.isCreating=!0,this.bindingsValue=new l(this),a.a.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.isSurveyElement=function(t){return!!t&&(Array.isArray(t)?0!=t.length&&e.isSurveyElement(t[0]):!!t.getType&&!!t.onPropertyChanged)},Object.defineProperty(e,"commentPrefix",{get:function(){return s.a.commentPrefix},set:function(e){s.a.commentPrefix=e},enumerable:!0,configurable:!0}),e.prototype.isValueEmpty=function(e){return o.a.isValueEmpty(e)},e.prototype.IsPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!0,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var n=this.bindings.getValueNameByPropertyName(e);n&&this.updateBindingValue(n,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.getIsLoadingFromJson()},enumerable:!0,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(){this.isLoadingFromJsonValue=!0},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(){return(new a.c).toJsonObject(this)},e.prototype.fromJSON=function(e){return(new a.c).toObject(e,this)},e.prototype.clone=function(){var e=a.b.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getProgressInfo=function(){return d.createProgressInfo()},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.arraysInfo[t];if(n&&n.isItemValues){var r=this.getPropertyValue(t);r&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(r)}}if(this.localizableStrings)for(var t in this.localizableStrings){var n=this.getLocalizableString(t);n&&n.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var n=this.getPropertyValueCore(this.propertyHash,e);if(this.IsPropertyEmpty(n)){if(null!=t)return t;var r=a.b.findProperty(this.getType(),e);if(r&&(!r.isCustom||!this.isCreating)){if(!this.IsPropertyEmpty(r.defaultValue)&&!Array.isArray(r.defaultValue))return r.defaultValue;if("boolean"==r.type||"switch"==r.type)return!1}}return n},e.prototype.getPropertyValueCore=function(e,t){return this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(e,t):e[t]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,n){this.setPropertyValueCoreHandler?this.setPropertyValueCoreHandler(e,t,n):e[t]=n},e.prototype.iteratePropertiesHash=function(e){var t=this,n=[];for(var r in this.propertyHash)n.push(r);n.forEach(function(n){return e(t.propertyHash,n)})},e.prototype.setPropertyValue=function(e,t){var n=this.getPropertyValue(e);if(n&&Array.isArray(n)){if(this.isTwoValueEquals(n,t))return;var r=this.arraysInfo[e];this.setArray(e,n,t,!!r&&r.isItemValues,r?r.onPush:null)}else this.setPropertyValueCore(this.propertyHash,e,t),this.isTwoValueEquals(n,t)||this.propertyValueChanged(e,n,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,n,r,i){},e.prototype.itemValuePropertyChanged=function(e,t,n,r){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:n,newValue:r,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,n){},e.prototype.propertyValueChanged=function(e,t,n,r,i){if(!this.isLoadingFromJson&&(this.updateBindings(e,n),this.onPropertyValueChanged(e,t,n),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n}),this.doPropertyValueChangedCallback&&this.doPropertyValueChangedCallback(e,t,n,r,this),this.onPropChangeFunctions))for(var o=0;o<this.onPropChangeFunctions.length;o++)this.onPropChangeFunctions[o].name==e&&this.onPropChangeFunctions[o].func(n)},e.prototype.doPropertyValueChangedCallback=function(e,t,n,r,i){i||(i=this);var o=this.getOwnerForPropertyChanged();o?o.doPropertyValueChangedCallback(e,t,n,r,i):this.onPropertyValueChangedCallback(e,t,n,i,r)},e.prototype.getOwnerForPropertyChanged=function(){for(var e=["colOwner","locOwner","survey","owner","errorOwner"],t=0;t<e.length;t++){var n=e[t],r=this[n];if(r&&r.doPropertyValueChangedCallback)return r}return null},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,n){if(void 0===n&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var i=this.onPropChangeFunctions[r];if(i.name==e&&i.key==n)return void(i.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:n})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,n){void 0===n&&(n=null);for(var r=0;r<e.length;r++)this.registerFunctionOnPropertyValueChanged(e[r],t,n)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==e&&r.key==t)return void this.onPropChangeFunctions.splice(n,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null);for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)},e.prototype.createCustomLocalizableObj=function(e){!this.getLocalizableString(e)&&this.getLocale&&this.createLocalizableString(e,this)},e.prototype.createLocalizableString=function(e,t,n){void 0===n&&(n=!1);var r=new i.a(t,n,e);return this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=r,r},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(e,t){void 0===t&&(t="");var n=this.getLocalizableString(e);if(!n)return"";var r=n.text;return r||t},e.prototype.setLocalizableStringText=function(e,t){var n=this.getLocalizableString(e);if(n){var r=n.text;r!==t&&(n.text=t,this.propertyValueChanged(e,r,t))}},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings){var n=this.getLocalizableString(t);n&&this.AddLocStringToUsedLocales(n,e)}if(this.arraysInfo)for(var t in this.arraysInfo){var r=this.getPropertyValue(t);if(r&&r.length)for(var i=0;i<r.length;i++){var n=r[i];n&&n.addUsedLocales&&n.addUsedLocales(e)}}},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var n=e.getLocales(),r=0;r<n.length;r++)t.indexOf(n[r])<0&&t.push(n[r])},e.prototype.createItemValues=function(e){var t=this,n=this.createNewArray(e,function(n){n.locOwner=t,n.ownerPropertyName=e});return this.arraysInfo[e].isItemValues=!0,n},e.prototype.notifyArrayChanged=function(e,t){!!e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.createNewArray=function(e,t,i){void 0===t&&(t=null),void 0===i&&(i=null);var o=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var a=this;return o.push=function(n){var r=Object.getPrototypeOf(o).push.call(o,n);t&&t(n,o.length-1);var i=new c(o.length-1,0,[n],[]);return a.propertyValueChanged(e,o,o,i),a.notifyArrayChanged(o,i),r},o.unshift=function(n){var r=Object.getPrototypeOf(o).unshift.call(o,n);t&&t(n,o.length-1);var i=new c(0,0,[n],[]);return a.propertyValueChanged(e,o,o,i),a.notifyArrayChanged(o,i),r},o.pop=function(){var t=Object.getPrototypeOf(o).pop.call(o);i&&i(t);var n=new c(o.length-1,1,[],[]);return a.propertyValueChanged(e,o,o,n),a.notifyArrayChanged(o,n),t},o.splice=function(s,l){for(var u,p=[],d=2;d<arguments.length;d++)p[d-2]=arguments[d];s||(s=0),l||(l=0);var h=(u=Object.getPrototypeOf(o).splice).call.apply(u,n.i(r.d)([o,s,l],p));if(p||(p=[]),i&&h)for(var f=0;f<h.length;f++)i(h[f]);if(t)for(var f=0;f<p.length;f++)t(p[f],s+f);var g=new c(s,l,p,h);return a.propertyValueChanged(e,o,o,g),a.notifyArrayChanged(o,g),h},o},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,n,r,i,o){var a=[].concat(n);if(Object.getPrototypeOf(n).splice.call(n,0,n.length),r)for(var s=0;s<r.length;s++){var l=r[s];i&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(n).push.call(n,l),o&&o(n[s])}var u=new c(0,a.length,n,a);this.propertyValueChanged(t,a,n,u),this.notifyArrayChanged(n,u)},e.prototype.isTwoValueEquals=function(e,t,n){return void 0===n&&(n=!1),n&&(e=this.getValueInLowCase(e),t=this.getValueInLowCase(t)),o.a.isTwoValueEquals(e,t)},e.copyObject=function(e,t){for(var n in t){var r=t[n];"object"==typeof r&&(r={},this.copyObject(r,t[n])),e[n]=r}},e.prototype.copyCssClasses=function(e,t){t&&("string"==typeof t||t instanceof String?e.root=t:d.copyObject(e,t))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e}(),c=function(){function e(e,t,n,r){this.index=e,this.deleteCount=t,this.itemsToAdd=n,this.deletedItems=r}return e}(),p=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0}return Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new i.a(this.errorOwner,!0),this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!0,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e}(),d=function(e){function t(n){var r=e.call(this)||this;r.selectedElementInDesignValue=r,r.disableDesignActions=t.CreateDisabledDesignElements,r.isContentElement=!1,r.name=n,r.createNewArray("errors");var i=r;return r.registerFunctionOnPropertyValueChanged("isReadOnly",function(){i.onReadOnlyChanged()}),r.registerFunctionOnPropertyValueChanged("state",function(){i.stateChangedCallback&&i.stateChangedCallback()}),r}return n.i(r.b)(t,e),t.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},t.getProgressInfoByElements=function(e,n){for(var r=t.createProgressInfo(),i=0;i<e.length;i++)if(e[i].isVisible){var o=e[i].getProgressInfo();r.questionCount+=o.questionCount,r.answeredQuestionCount+=o.answeredQuestionCount,r.requiredQuestionCount+=o.requiredQuestionCount,r.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return n&&r.questionCount>0&&(0==r.requiredQuestionCount&&(r.requiredQuestionCount=1),r.answeredQuestionCount>0&&(r.requiredAnsweredQuestionCount=1)),r},t.ScrollElementToTop=function(e){if(!e||"undefined"==typeof document)return!1;var t=document.getElementById(e);if(!t||!t.scrollIntoView)return!1;var n=t.getBoundingClientRect().top;return n<0&&t.scrollIntoView(),n<0},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var n=e[0];"#text"===n.nodeName&&(n.data=""),n=e[e.length-1],"#text"===n.nodeName&&(n.data="")}for(var r=0;r<e.length;r++)if("#text"!=e[r].nodeName&&"#comment"!=e[r].nodeName)return e[r];return null},t.FocusElement=function(e){if(!e||"undefined"==typeof document)return!1;var t=document.getElementById(e);return!!t&&(t.focus(),!0)},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){if(!this.isDesignMode)return"collapsed"==this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"==this.state},enumerable:!0,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?void this.expand():this.isExpanded?void this.collapse():void 0},t.prototype.setSurveyImpl=function(e){this.surveyImplValue=e,this.surveyImplValue&&(this.surveyDataValue=this.surveyImplValue.geSurveyData(),this.surveyValue=this.surveyImplValue.getSurvey(),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData())},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue?this.surveyValue:(this.surveyImplValue&&(this.surveyValue=this.surveyImplValue.getSurvey()),this.surveyValue)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return!!this.survey&&this.survey.isDesignMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!0,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},t.prototype.updateElementCss=function(){},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.survey&&this.survey.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!0,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!o.a.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!0,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},t.prototype.onFirstRendering=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad()},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.delete=function(){},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!0,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,n){if(void 0===n&&(n=null),!t)return!1;e.removeElement(this);var r=-1;return o.a.isNumber(n)&&(r=parseInt(n)),-1==r&&n&&n.getType&&(r=t.indexOf(n)),t.addElement(this,r),!0},t.prototype.setPage=function(e,t){this.getPage(e)!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.CreateDisabledDesignElements=!1,t}(u),h=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return null==this.callbacks||0==this.callbacks.length},enumerable:!0,configurable:!0}),e.prototype.fire=function(e,t){if(null!=this.callbacks)for(var n=0;n<this.callbacks.length;n++)this.callbacks[n](e,t)},e.prototype.clear=function(){this.callbacks=[],this.fireCallbackChanged()},e.prototype.add=function(e){this.hasFunc(e)||(null==this.callbacks&&(this.callbacks=new Array),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}()},function(e,t,n){var r,i,o;/*!
 * Knockout JavaScript library v3.5.0
 * (c) The Knockout.js team - http://knockoutjs.com/
 * License: MIT (http://www.opensource.org/licenses/mit-license.php)
 */
!function(){!function(a){var s=this||(0,eval)("this"),l=s.document,u=s.navigator,c=s.jQuery,p=s.JSON;c||"undefined"==typeof jQuery||(c=jQuery),function(a){i=[t,n],r=a,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(function(e,t){function n(e,t){return(null===e||typeof e in g)&&e===t}function r(e,t){var n;return function(){n||(n=f.a.setTimeout(function(){n=a,e()},t))}}function i(e,t){var n;return function(){clearTimeout(n),n=f.a.setTimeout(e,t)}}function o(e,t){t&&"change"!==t?"beforeChange"===t?this.oc(e):this.bb(e,t):this.pc(e)}function d(e,t){null!==t&&t.s&&t.s()}function h(e,t){var n=this.pd,r=n[x];r.qa||(this.Pb&&this.kb[t]?(n.tc(t,e,this.kb[t]),this.kb[t]=null,--this.Pb):r.F[t]||n.tc(t,e,r.G?{da:e}:n.Zc(e)),e.Ka&&e.fd())}var f=void 0!==e?e:{};f.b=function(e,t){for(var n=e.split("."),r=f,i=0;i<n.length-1;i++)r=r[n[i]];r[n[n.length-1]]=t},f.J=function(e,t,n){e[t]=n},f.version="3.5.0",f.b("version",f.version),f.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},f.a=function(){function e(e,t){for(var n in e)i.call(e,n)&&t(n,e[n])}function t(e,t){if(t)for(var n in t)i.call(t,n)&&(e[n]=t[n]);return e}function n(e,t){return e.__proto__=t,e}function r(e,t,n,r){var i=e[t].match(b)||[];f.a.C(n.match(b),function(e){f.a.Oa(i,e,r)}),e[t]=i.join(" ")}var i=Object.prototype.hasOwnProperty,o={__proto__:[]}instanceof Array,d="function"==typeof Symbol,h={},g={};h[u&&/Firefox\/2/i.test(u.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],h.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),e(h,function(e,t){if(t.length)for(var n=0,r=t.length;n<r;n++)g[t[n]]=e});var m,y={propertychange:!0},v=l&&function(){for(var e=3,t=l.createElement("div"),n=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",n[0];);return 4<e?e:a}(),b=/\S+/g;return{Ic:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],C:function(e,t,n){for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},A:"function"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Lb:function(e,t,n){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r];return a},hb:function(e,t){var n=f.a.A(e,t);0<n?e.splice(n,1):0===n&&e.shift()},vc:function(e){var t=[];return e&&f.a.C(e,function(e){0>f.a.A(t,e)&&t.push(e)}),t},Mb:function(e,t,n){var r=[];if(e)for(var i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i));return r},fb:function(e,t,n){var r=[];if(e)for(var i=0,o=e.length;i<o;i++)t.call(n,e[i],i)&&r.push(e[i]);return r},gb:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,r=t.length;n<r;n++)e.push(t[n]);return e},Oa:function(e,t,n){var r=f.a.A(f.a.$b(e),t);0>r?n&&e.push(t):n||e.splice(r,1)},Ba:o,extend:t,setPrototypeOf:n,zb:o?n:t,O:e,Ha:function(e,t,n){if(!e)return e;var r,o={};for(r in e)i.call(e,r)&&(o[r]=t.call(n,e[r],r,e));return o},Sb:function(e){for(;e.firstChild;)f.removeNode(e.firstChild)},Xb:function(e){e=f.a.la(e);for(var t=(e[0]&&e[0].ownerDocument||l).createElement("div"),n=0,r=e.length;n<r;n++)t.appendChild(f.na(e[n]));return t},Ca:function(e,t){for(var n=0,r=e.length,i=[];n<r;n++){var o=e[n].cloneNode(!0);i.push(t?f.na(o):o)}return i},ua:function(e,t){if(f.a.Sb(e),t)for(var n=0,r=t.length;n<r;n++)e.appendChild(t[n])},Wc:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var r=n[0],i=r.parentNode,o=0,a=t.length;o<a;o++)i.insertBefore(t[o],r);for(o=0,a=n.length;o<a;o++)f.removeNode(n[o])}},Ua:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==t;)e.length--;if(1<e.length){var n=e[0],r=e[e.length-1];for(e.length=0;n!==r;)e.push(n),n=n.nextSibling;e.push(r)}}return e},Yc:function(e,t){7>v?e.setAttribute("selected",t):e.selected=t},Cb:function(e){return null===e||e===a?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Td:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},ud:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Rb:function(e){return f.a.ud(e,e.ownerDocument.documentElement)},jd:function(e){return!!f.a.Lb(e,f.a.Rb)},P:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},zc:function(e){return f.onError?function(){try{return e.apply(this,arguments)}catch(e){throw f.onError&&f.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(f.a.zc(e),t)},Fc:function(e){setTimeout(function(){throw f.onError&&f.onError(e),e},0)},H:function(e,t,n){var r=f.a.zc(n);if(n=y[t],f.options.useOnlyNativeEvents||n||!c)if(n||"function"!=typeof e.addEventListener){if(void 0===e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var i=function(t){r.call(e,t)},o="on"+t;e.attachEvent(o,i),f.a.I.za(e,function(){e.detachEvent(o,i)})}else e.addEventListener(t,r,!1);else m||(m="function"==typeof c(e).on?"on":"bind"),c(e)[m](t,r)},Fb:function(e,t){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var n;if("input"===f.a.P(e)&&e.type&&"click"==t.toLowerCase()?(n=e.type,n="checkbox"==n||"radio"==n):n=!1,f.options.useOnlyNativeEvents||!c||n)if("function"==typeof l.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");n=l.createEvent(g[t]||"HTMLEvents"),n.initEvent(t,!0,!0,s,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(n)}else if(n&&e.click)e.click();else{if(void 0===e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+t)}else c(e).trigger(t)},c:function(e){return f.N(e)?e():e},$b:function(e){return f.N(e)?e.w():e},Eb:function(e,t,n){var i;t&&("object"==typeof e.classList?(i=e.classList[n?"add":"remove"],f.a.C(t.match(b),function(t){i.call(e.classList,t)})):"string"==typeof e.className.baseVal?r(e.className,"baseVal",t,n):r(e,"className",t,n))},Ab:function(e,t){var n=f.a.c(t);null!==n&&n!==a||(n="");var r=f.h.firstChild(e);!r||3!=r.nodeType||f.h.nextSibling(r)?f.h.ua(e,[e.ownerDocument.createTextNode(n)]):r.data=n,f.a.zd(e)},Xc:function(e,t){if(e.name=t,7>=v)try{var n=e.name.replace(/[&<>'"]/g,function(e){return"&#"+e.charCodeAt(0)+";"});e.mergeAttributes(l.createElement("<input name='"+n+"'/>"),!1)}catch(e){}},zd:function(e){9<=v&&(e=1==e.nodeType?e:e.parentNode,e.style&&(e.style.zoom=e.style.zoom))},vd:function(e){if(v){var t=e.style.width;e.style.width=0,e.style.width=t}},Od:function(e,t){e=f.a.c(e),t=f.a.c(t);for(var n=[],r=e;r<=t;r++)n.push(r);return n},la:function(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(e[n]);return t},Da:function(e){return d?Symbol(e):e},Xd:6===v,Yd:7===v,W:v,Kc:function(e,t){for(var n=f.a.la(e.getElementsByTagName("input")).concat(f.a.la(e.getElementsByTagName("textarea"))),r="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},i=[],o=n.length-1;0<=o;o--)r(n[o])&&i.push(n[o]);return i},Md:function(e){return"string"==typeof e&&(e=f.a.Cb(e))?p&&p.parse?p.parse(e):new Function("return "+e)():null},fc:function(e,t,n){if(!p||!p.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return p.stringify(f.a.c(e),t,n)},Nd:function(t,n,r){r=r||{};var i=r.params||{},o=r.includeFields||this.Ic,a=t;if("object"==typeof t&&"form"===f.a.P(t))for(var a=t.action,s=o.length-1;0<=s;s--)for(var u=f.a.Kc(t,o[s]),c=u.length-1;0<=c;c--)i[u[c].name]=u[c].value;n=f.a.c(n);var p=l.createElement("form");p.style.display="none",p.action=a,p.method="post";for(var d in n)t=l.createElement("input"),t.type="hidden",t.name=d,t.value=f.a.fc(f.a.c(n[d])),p.appendChild(t);e(i,function(e,t){var n=l.createElement("input");n.type="hidden",n.name=e,n.value=t,p.appendChild(n)}),l.body.appendChild(p),r.submitter?r.submitter(p):p.submit(),setTimeout(function(){p.parentNode.removeChild(p)},0)}}}(),f.b("utils",f.a),f.b("utils.arrayForEach",f.a.C),f.b("utils.arrayFirst",f.a.Lb),f.b("utils.arrayFilter",f.a.fb),f.b("utils.arrayGetDistinctValues",f.a.vc),f.b("utils.arrayIndexOf",f.a.A),f.b("utils.arrayMap",f.a.Mb),f.b("utils.arrayPushAll",f.a.gb),f.b("utils.arrayRemoveItem",f.a.hb),f.b("utils.cloneNodes",f.a.Ca),f.b("utils.createSymbolOrString",f.a.Da),f.b("utils.extend",f.a.extend),f.b("utils.fieldsIncludedWithJsonPost",f.a.Ic),f.b("utils.getFormFields",f.a.Kc),f.b("utils.objectMap",f.a.Ha),f.b("utils.peekObservable",f.a.$b),f.b("utils.postJson",f.a.Nd),f.b("utils.parseJson",f.a.Md),f.b("utils.registerEventHandler",f.a.H),f.b("utils.stringifyJson",f.a.fc),f.b("utils.range",f.a.Od),f.b("utils.toggleDomNodeCssClass",f.a.Eb),f.b("utils.triggerEvent",f.a.Fb),f.b("utils.unwrapObservable",f.a.c),f.b("utils.objectForEach",f.a.O),f.b("utils.addOrRemoveItem",f.a.Oa),f.b("utils.setTextContent",f.a.Ab),f.b("unwrap",f.a.c),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(1===arguments.length)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var r=n.slice(0);return r.push.apply(r,arguments),t.apply(e,r)}}),f.a.g=new function(){var e,t,n=0,r="__ko__"+(new Date).getTime(),i={};return f.a.W?(e=function(e,t){var o=e[r];if(!o||"null"===o||!i[o]){if(!t)return a;o=e[r]="ko"+n++,i[o]={}}return i[o]},t=function(e){var t=e[r];return!!t&&(delete i[t],e[r]=null,!0)}):(e=function(e,t){var n=e[r];return!n&&t&&(n=e[r]={}),n},t=function(e){return!!e[r]&&(delete e[r],!0)}),{get:function(t,n){var r=e(t,!1);return r&&r[n]},set:function(t,n,r){(t=e(t,r!==a))&&(t[n]=r)},Tb:function(t,n,r){return t=e(t,!0),t[n]||(t[n]=r)},clear:t,Z:function(){return n+++r}}},f.b("utils.domData",f.a.g),f.b("utils.domData.clear",f.a.g.clear),f.a.I=new function(){function e(e,t){var n=f.a.g.get(e,r);return n===a&&t&&(n=[],f.a.g.set(e,r,n)),n}function t(t){var r=e(t,!1);if(r)for(var r=r.slice(0),i=0;i<r.length;i++)r[i](t);f.a.g.clear(t),f.a.I.cleanExternalData(t),o[t.nodeType]&&n(t.childNodes,!0)}function n(e,n){for(var r,i=[],o=0;o<e.length;o++)if((!n||8===e[o].nodeType)&&(t(i[i.length]=r=e[o]),e[o]!==r))for(;o--&&-1==f.a.A(i,e[o]););}var r=f.a.g.Z(),i={1:!0,8:!0,9:!0},o={1:!0,9:!0};return{za:function(t,n){if("function"!=typeof n)throw Error("Callback must be a function");e(t,!0).push(n)},xb:function(t,n){var i=e(t,!1);i&&(f.a.hb(i,n),0==i.length&&f.a.g.set(t,r,a))},na:function(e){return i[e.nodeType]&&(t(e),o[e.nodeType]&&n(e.getElementsByTagName("*"))),e},removeNode:function(e){f.na(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){c&&"function"==typeof c.cleanData&&c.cleanData([e])}}},f.na=f.a.I.na,f.removeNode=f.a.I.removeNode,f.b("cleanNode",f.na),f.b("removeNode",f.removeNode),f.b("utils.domNodeDisposal",f.a.I),f.b("utils.domNodeDisposal.addDisposeCallback",f.a.I.za),f.b("utils.domNodeDisposal.removeDisposeCallback",f.a.I.xb),function(){var e=[0,"",""],t=[1,"<table>","</table>"],n=[3,"<table><tbody><tr>","</tr></tbody></table>"],r=[1,"<select multiple='multiple'>","</select>"],i={thead:t,tbody:t,tfoot:t,tr:[2,"<table><tbody>","</tbody></table>"],td:n,th:n,option:r,optgroup:r},o=8>=f.a.W;f.a.ta=function(t,n){var r;if(c){if(c.parseHTML)r=c.parseHTML(t,n)||[];else if((r=c.clean([t],n))&&r[0]){for(var a=r[0];a.parentNode&&11!==a.parentNode.nodeType;)a=a.parentNode;a.parentNode&&a.parentNode.removeChild(a)}}else{(r=n)||(r=l);var u,a=r.parentWindow||r.defaultView||s,p=f.a.Cb(t).toLowerCase(),d=r.createElement("div");for(u=(p=p.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&i[p[1]]||e,p=u[0],u="ignored<div>"+u[1]+t+u[2]+"</div>","function"==typeof a.innerShiv?d.appendChild(a.innerShiv(u)):(o&&r.body.appendChild(d),d.innerHTML=u,o&&d.parentNode.removeChild(d));p--;)d=d.lastChild;r=f.a.la(d.lastChild.childNodes)}return r},f.a.Ld=function(e,t){var n=f.a.ta(e,t);return n.length&&n[0].parentElement||f.a.Xb(n)},f.a.dc=function(e,t){if(f.a.Sb(e),null!==(t=f.a.c(t))&&t!==a)if("string"!=typeof t&&(t=t.toString()),c)c(e).html(t);else for(var n=f.a.ta(t,e.ownerDocument),r=0;r<n.length;r++)e.appendChild(n[r])}}(),f.b("utils.parseHtmlFragment",f.a.ta),f.b("utils.setHtml",f.a.dc),f.aa=function(){function e(t,n){if(t)if(8==t.nodeType){var r=f.aa.Tc(t.nodeValue);null!=r&&n.push({sd:t,Jd:r})}else if(1==t.nodeType)for(var r=0,i=t.childNodes,o=i.length;r<o;r++)e(i[r],n)}var t={};return{Wb:function(e){if("function"!=typeof e)throw Error("You can only pass a function to ko.memoization.memoize()");var n=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return t[n]=e,"\x3c!--[ko_memo:"+n+"]--\x3e"},ad:function(e,n){var r=t[e];if(r===a)throw Error("Couldn't find any memo with ID "+e+". Perhaps it's already been unmemoized.");try{return r.apply(null,n||[]),!0}finally{delete t[e]}},bd:function(t,n){var r=[];e(t,r);for(var i=0,o=r.length;i<o;i++){var a=r[i].sd,s=[a];n&&f.a.gb(s,n),f.aa.ad(r[i].Jd,s),a.nodeValue="",a.parentNode&&a.parentNode.removeChild(a)}},Tc:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:null}}}(),f.b("memoization",f.aa),f.b("memoization.memoize",f.aa.Wb),f.b("memoization.unmemoize",f.aa.ad),f.b("memoization.parseMemoText",f.aa.Tc),f.b("memoization.unmemoizeDomNodeAndDescendants",f.aa.bd),f.ma=function(){function e(){if(i)for(var e,t=i,n=0;a<i;)if(e=r[a++]){if(a>t){if(5e3<=++n){a=i,f.a.Fc(Error("'Too much recursion' after processing "+n+" task groups."));break}t=i}try{e()}catch(e){f.a.Fc(e)}}}function t(){e(),a=i=r.length=0}var n,r=[],i=0,o=1,a=0;return n=s.MutationObserver?function(e){var t=l.createElement("div");return new MutationObserver(e).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(t):l&&"onreadystatechange"in l.createElement("script")?function(e){var t=l.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,l.documentElement.removeChild(t),t=null,e()},l.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},{scheduler:n,yb:function(e){return i||f.ma.scheduler(t),r[i++]=e,o++},cancel:function(e){(e-=o-i)>=a&&e<i&&(r[e]=null)},resetForTesting:function(){var e=i-a;return a=i=r.length=0,e},Rd:e}}(),f.b("tasks",f.ma),f.b("tasks.schedule",f.ma.yb),f.b("tasks.runEarly",f.ma.Rd),f.Ta={throttle:function(e,t){e.throttleEvaluation=t;var n=null;return f.$({read:e,write:function(r){clearTimeout(n),n=f.a.setTimeout(function(){e(r)},t)}})},rateLimit:function(e,t){var n,o,a;"number"==typeof t?n=t:(n=t.timeout,o=t.method),e.Hb=!1,a="function"==typeof o?o:"notifyWhenChangesStop"==o?i:r,e.tb(function(e){return a(e,n,t)})},deferred:function(e,t){if(!0!==t)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");e.Hb||(e.Hb=!0,e.tb(function(t){var n,r=!1;return function(){if(!r){f.ma.cancel(n),n=f.ma.yb(t);try{r=!0,e.notifySubscribers(a,"dirty")}finally{r=!1}}}}))},notify:function(e,t){e.equalityComparer="always"==t?null:n}};var g={undefined:1,boolean:1,number:1,string:1};f.b("extenders",f.Ta),f.gc=function(e,t,n){this.da=e,this.kc=t,this.lc=n,this.Ib=!1,this.ab=this.Jb=null,f.J(this,"dispose",this.s),f.J(this,"disposeWhenNodeIsRemoved",this.l)},f.gc.prototype.s=function(){this.Ib||(this.ab&&f.a.I.xb(this.Jb,this.ab),this.Ib=!0,this.lc(),this.da=this.kc=this.lc=this.Jb=this.ab=null)},f.gc.prototype.l=function(e){this.Jb=e,f.a.I.za(e,this.ab=this.s.bind(this))},f.R=function(){f.a.zb(this,m),m.ob(this)};var m={ob:function(e){e.S={change:[]},e.rc=1},subscribe:function(e,t,n){var r=this;n=n||"change";var i=new f.gc(r,t?e.bind(t):e,function(){f.a.hb(r.S[n],i),r.cb&&r.cb(n)});return r.Qa&&r.Qa(n),r.S[n]||(r.S[n]=[]),r.S[n].push(i),i},notifySubscribers:function(e,t){if(t=t||"change","change"===t&&this.Gb(),this.Wa(t)){var n="change"===t&&this.dd||this.S[t].slice(0);try{f.v.wc();for(var r,i=0;r=n[i];++i)r.Ib||r.kc(e)}finally{f.v.end()}}},mb:function(){return this.rc},Cd:function(e){return this.mb()!==e},Gb:function(){++this.rc},tb:function(e){var t,n,r,i,a,s=this,l=f.N(s);s.bb||(s.bb=s.notifySubscribers,s.notifySubscribers=o);var u=e(function(){s.Ka=!1,l&&i===s&&(i=s.mc?s.mc():s());var e=n||a&&s.qb(r,i);a=n=t=!1,e&&s.bb(r=i)});s.pc=function(e,n){n&&s.Ka||(a=!n),s.dd=s.S.change.slice(0),s.Ka=t=!0,i=e,u()},s.oc=function(e){t||(r=e,s.bb(e,"beforeChange"))},s.qc=function(){a=!0},s.fd=function(){s.qb(r,s.w(!0))&&(n=!0)}},Wa:function(e){return this.S[e]&&this.S[e].length},Ad:function(e){if(e)return this.S[e]&&this.S[e].length||0;var t=0;return f.a.O(this.S,function(e,n){"dirty"!==e&&(t+=n.length)}),t},qb:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},toString:function(){return"[object Object]"},extend:function(e){var t=this;return e&&f.a.O(e,function(e,n){var r=f.Ta[e];"function"==typeof r&&(t=r(t,n)||t)}),t}};f.J(m,"init",m.ob),f.J(m,"subscribe",m.subscribe),f.J(m,"extend",m.extend),f.J(m,"getSubscriptionsCount",m.Ad),f.a.Ba&&f.a.setPrototypeOf(m,Function.prototype),f.R.fn=m,f.Pc=function(e){return null!=e&&"function"==typeof e.subscribe&&"function"==typeof e.notifySubscribers},f.b("subscribable",f.R),f.b("isSubscribable",f.Pc),f.U=f.v=function(){function e(e){r.push(n),n=e}function t(){n=r.pop()}var n,r=[],i=0;return{wc:e,end:t,ac:function(e){if(n){if(!f.Pc(e))throw Error("Only subscribable things can act as dependencies");n.nd.call(n.od,e,e.ed||(e.ed=++i))}},K:function(n,r,i){try{return e(),n.apply(r,i||[])}finally{t()}},pa:function(){if(n)return n.o.pa()},Va:function(){if(n)return n.o.Va()},rb:function(){if(n)return n.rb},o:function(){if(n)return n.o}}}(),f.b("computedContext",f.U),f.b("computedContext.getDependenciesCount",f.U.pa),f.b("computedContext.getDependencies",f.U.Va),f.b("computedContext.isInitial",f.U.rb),f.b("computedContext.registerDependency",f.U.ac),f.b("ignoreDependencies",f.Wd=f.v.K);var y=f.a.Da("_latestValue");f.sa=function(e){function t(){return 0<arguments.length?(t.qb(t[y],arguments[0])&&(t.xa(),t[y]=arguments[0],t.wa()),this):(f.v.ac(t),t[y])}return t[y]=e,f.a.Ba||f.a.extend(t,f.R.fn),f.R.fn.ob(t),f.a.zb(t,v),f.options.deferUpdates&&f.Ta.deferred(t,!0),t};var v={equalityComparer:n,w:function(){return this[y]},wa:function(){this.notifySubscribers(this[y],"spectate"),this.notifySubscribers(this[y])},xa:function(){this.notifySubscribers(this[y],"beforeChange")}};f.a.Ba&&f.a.setPrototypeOf(v,f.R.fn);var b=f.sa.Na="__ko_proto__";v[b]=f.sa,f.N=function(e){if((e="function"==typeof e&&e[b])&&e!==v[b]&&e!==f.o.fn[b])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!e},f.Ya=function(e){return"function"==typeof e&&(e[b]===v[b]||e[b]===f.o.fn[b]&&e.Mc)},f.b("observable",f.sa),f.b("isObservable",f.N),f.b("isWriteableObservable",f.Ya),f.b("isWritableObservable",f.Ya),f.b("observable.fn",v),f.J(v,"peek",v.w),f.J(v,"valueHasMutated",v.wa),f.J(v,"valueWillMutate",v.xa),f.Ia=function(e){if("object"!=typeof(e=e||[])||!("length"in e))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return e=f.sa(e),f.a.zb(e,f.Ia.fn),e.extend({trackArrayChanges:!0})},f.Ia.fn={remove:function(e){for(var t=this.w(),n=[],r="function"!=typeof e||f.N(e)?function(t){return t===e}:e,i=0;i<t.length;i++){var o=t[i];if(r(o)){if(0===n.length&&this.xa(),t[i]!==o)throw Error("Array modified during remove; cannot remove item");n.push(o),t.splice(i,1),i--}}return n.length&&this.wa(),n},removeAll:function(e){if(e===a){var t=this.w(),n=t.slice(0);return this.xa(),t.splice(0,t.length),this.wa(),n}return e?this.remove(function(t){return 0<=f.a.A(e,t)}):[]},destroy:function(e){var t=this.w(),n="function"!=typeof e||f.N(e)?function(t){return t===e}:e;this.xa();for(var r=t.length-1;0<=r;r--){var i=t[r];n(i)&&(i._destroy=!0)}this.wa()},destroyAll:function(e){return e===a?this.destroy(function(){return!0}):e?this.destroy(function(t){return 0<=f.a.A(e,t)}):[]},indexOf:function(e){var t=this();return f.a.A(t,e)},replace:function(e,t){var n=this.indexOf(e);0<=n&&(this.xa(),this.w()[n]=t,this.wa())},sorted:function(e){var t=this().slice(0);return e?t.sort(e):t.sort()},reversed:function(){return this().slice(0).reverse()}},f.a.Ba&&f.a.setPrototypeOf(f.Ia.fn,f.sa.fn),f.a.C("pop push reverse shift sort splice unshift".split(" "),function(e){f.Ia.fn[e]=function(){var t=this.w();this.xa(),this.yc(t,e,arguments);var n=t[e].apply(t,arguments);return this.wa(),n===t?this:n}}),f.a.C(["slice"],function(e){f.Ia.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}}),f.Oc=function(e){return f.N(e)&&"function"==typeof e.remove&&"function"==typeof e.push},f.b("observableArray",f.Ia),f.b("isObservableArray",f.Oc),f.Ta.trackArrayChanges=function(e,t){function n(){function t(){if(u){var t=[].concat(e.w()||[]);if(e.Wa("arrayChange")){var n;(!l||1<u)&&(l=f.a.Ob(i,t,e.Nb)),n=l}i=t,l=null,u=0,n&&n.length&&e.notifySubscribers(n,"arrayChange")}}s?t():(s=!0,o=e.notifySubscribers,e.notifySubscribers=function(e,t){return t&&"change"!==t||++u,o.apply(this,arguments)},i=[].concat(e.w()||[]),l=null,r=e.subscribe(t))}if(e.Nb={},t&&"object"==typeof t&&f.a.extend(e.Nb,t),e.Nb.sparse=!0,!e.yc){var r,i,o,s=!1,l=null,u=0,c=e.Qa,p=e.cb;e.Qa=function(t){c&&c.call(e,t),"arrayChange"===t&&n()},e.cb=function(t){p&&p.call(e,t),"arrayChange"!==t||e.Wa("arrayChange")||(o&&(e.notifySubscribers=o,o=a),r&&r.s(),r=null,s=!1,i=a)},e.yc=function(e,t,n){function r(e,t,n){return i[i.length]={status:e,value:t,index:n}}if(s&&!u){var i=[],o=e.length,a=n.length,c=0;switch(t){case"push":c=o;case"unshift":for(t=0;t<a;t++)r("added",n[t],c+t);break;case"pop":c=o-1;case"shift":o&&r("deleted",e[c],c);break;case"splice":t=Math.min(Math.max(0,0>n[0]?o+n[0]:n[0]),o);for(var o=1===a?o:Math.min(t+(n[1]||0),o),a=t+a-2,c=Math.max(o,a),p=[],d=[],h=2;t<c;++t,++h)t<o&&d.push(r("deleted",e[t],t)),t<a&&p.push(r("added",n[h],t));f.a.Jc(d,p);break;default:return}l=i}}}};var x=f.a.Da("_state");f.o=f.$=function(e,t,n){function r(){if(0<arguments.length){if("function"!=typeof i)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return i.apply(o.lb,arguments),this}return o.qa||f.v.ac(r),(o.ka||o.G&&r.Xa())&&r.ha(),o.X}if("object"==typeof e?n=e:(n=n||{},e&&(n.read=e)),"function"!=typeof n.read)throw Error("Pass a function that returns the value of the ko.computed");var i=n.write,o={X:a,ra:!0,ka:!0,pb:!1,hc:!1,qa:!1,vb:!1,G:!1,Vc:n.read,lb:t||n.owner,l:n.disposeWhenNodeIsRemoved||n.l||null,Sa:n.disposeWhen||n.Sa,Qb:null,F:{},V:0,Hc:null};return r[x]=o,r.Mc="function"==typeof i,f.a.Ba||f.a.extend(r,f.R.fn),f.R.fn.ob(r),f.a.zb(r,C),n.pure?(o.vb=!0,o.G=!0,f.a.extend(r,w)):n.deferEvaluation&&f.a.extend(r,P),f.options.deferUpdates&&f.Ta.deferred(r,!0),o.l&&(o.hc=!0,o.l.nodeType||(o.l=null)),o.G||n.deferEvaluation||r.ha(),o.l&&r.ja()&&f.a.I.za(o.l,o.Qb=function(){r.s()}),r};var C={equalityComparer:n,pa:function(){return this[x].V},Va:function(){var e=[];return f.a.O(this[x].F,function(t,n){e[n.La]=n.da}),e},Ub:function(e){if(!this[x].V)return!1;var t=this.Va();return-1!==f.a.A(t,e)||!!f.a.Lb(t,function(t){return t.Ub&&t.Ub(e)})},tc:function(e,t,n){if(this[x].vb&&t===this)throw Error("A 'pure' computed must not be called recursively");this[x].F[e]=n,n.La=this[x].V++,n.Ma=t.mb()},Xa:function(){var e,t,n=this[x].F;for(e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e],this.Ja&&t.da.Ka||t.da.Cd(t.Ma)))return!0},Id:function(){this.Ja&&!this[x].pb&&this.Ja(!1)},ja:function(){var e=this[x];return e.ka||0<e.V},Qd:function(){this.Ka?this[x].ka&&(this[x].ra=!0):this.Gc()},Zc:function(e){if(e.Hb){var t=e.subscribe(this.Id,this,"dirty"),n=e.subscribe(this.Qd,this);return{da:e,s:function(){t.s(),n.s()}}}return e.subscribe(this.Gc,this)},Gc:function(){var e=this,t=e.throttleEvaluation;t&&0<=t?(clearTimeout(this[x].Hc),this[x].Hc=f.a.setTimeout(function(){e.ha(!0)},t)):e.Ja?e.Ja(!0):e.ha(!0)},ha:function(e){var t=this[x],n=t.Sa,r=!1;if(!t.pb&&!t.qa){if(t.l&&!f.a.Rb(t.l)||n&&n()){if(!t.hc)return void this.s()}else t.hc=!1;t.pb=!0;try{r=this.yd(e)}finally{t.pb=!1}return r}},yd:function(e){var t=this[x],n=!1,r=t.vb?a:!t.V,n={pd:this,kb:t.F,Pb:t.V};f.v.wc({od:n,nd:h,o:this,rb:r}),t.F={},t.V=0;var i=this.xd(t,n);return t.V?n=this.qb(t.X,i):(this.s(),n=!0),n&&(t.G?this.Gb():this.notifySubscribers(t.X,"beforeChange"),t.X=i,this.notifySubscribers(t.X,"spectate"),!t.G&&e&&this.notifySubscribers(t.X),this.qc&&this.qc()),r&&this.notifySubscribers(t.X,"awake"),n},xd:function(e,t){try{var n=e.Vc;return e.lb?n.call(e.lb):n()}finally{f.v.end(),t.Pb&&!e.G&&f.a.O(t.kb,d),e.ra=e.ka=!1}},w:function(e){var t=this[x];return(t.ka&&(e||!t.V)||t.G&&this.Xa())&&this.ha(),t.X},tb:function(e){f.R.fn.tb.call(this,e),this.mc=function(){return this[x].G||(this[x].ra?this.ha():this[x].ka=!1),this[x].X},this.Ja=function(e){this.oc(this[x].X),this[x].ka=!0,e&&(this[x].ra=!0),this.pc(this,!e)}},s:function(){var e=this[x];!e.G&&e.F&&f.a.O(e.F,function(e,t){t.s&&t.s()}),e.l&&e.Qb&&f.a.I.xb(e.l,e.Qb),e.F=a,e.V=0,e.qa=!0,e.ra=!1,e.ka=!1,e.G=!1,e.l=a,e.Sa=a,e.Vc=a,this.Mc||(e.lb=a)}},w={Qa:function(e){var t=this,n=t[x];if(!n.qa&&n.G&&"change"==e){if(n.G=!1,n.ra||t.Xa())n.F=null,n.V=0,t.ha()&&t.Gb();else{var r=[];f.a.O(n.F,function(e,t){r[t.La]=e}),f.a.C(r,function(e,r){var i=n.F[e],o=t.Zc(i.da);o.La=r,o.Ma=i.Ma,n.F[e]=o}),t.Xa()&&t.ha()&&t.Gb()}n.qa||t.notifySubscribers(n.X,"awake")}},cb:function(e){var t=this[x];t.qa||"change"!=e||this.Wa("change")||(f.a.O(t.F,function(e,n){n.s&&(t.F[e]={da:n.da,La:n.La,Ma:n.Ma},n.s())}),t.G=!0,this.notifySubscribers(a,"asleep"))},mb:function(){var e=this[x];return e.G&&(e.ra||this.Xa())&&this.ha(),f.R.fn.mb.call(this)}},P={Qa:function(e){"change"!=e&&"beforeChange"!=e||this.w()}};f.a.Ba&&f.a.setPrototypeOf(C,f.R.fn);var V=f.sa.Na;C[V]=f.o,f.Nc=function(e){return"function"==typeof e&&e[V]===C[V]},f.Ed=function(e){return f.Nc(e)&&e[x]&&e[x].vb},f.b("computed",f.o),f.b("dependentObservable",f.o),f.b("isComputed",f.Nc),f.b("isPureComputed",f.Ed),f.b("computed.fn",C),f.J(C,"peek",C.w),f.J(C,"dispose",C.s),f.J(C,"isActive",C.ja),f.J(C,"getDependenciesCount",C.pa),f.J(C,"getDependencies",C.Va),f.wb=function(e,t){return"function"==typeof e?f.o(e,t,{pure:!0}):(e=f.a.extend({},e),e.pure=!0,f.o(e,t))},f.b("pureComputed",f.wb),function(){function e(r,i,o){if(o=o||new n,"object"!=typeof(r=i(r))||null===r||r===a||r instanceof RegExp||r instanceof Date||r instanceof String||r instanceof Number||r instanceof Boolean)return r;var s=r instanceof Array?[]:{};return o.save(r,s),t(r,function(t){var n=i(r[t]);switch(typeof n){case"boolean":case"number":case"string":case"function":s[t]=n;break;case"object":case"undefined":var l=o.get(n);s[t]=l!==a?l:e(n,i,o)}}),s}function t(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)t(n);"function"==typeof e.toJSON&&t("toJSON")}else for(n in e)t(n)}function n(){this.keys=[],this.values=[]}f.$c=function(t){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return e(t,function(e){for(var t=0;f.N(e)&&10>t;t++)e=e();return e})},f.toJSON=function(e,t,n){return e=f.$c(e),f.a.fc(e,t,n)},n.prototype={constructor:n,save:function(e,t){var n=f.a.A(this.keys,e);0<=n?this.values[n]=t:(this.keys.push(e),this.values.push(t))},get:function(e){return e=f.a.A(this.keys,e),0<=e?this.values[e]:a}}}(),f.b("toJS",f.$c),f.b("toJSON",f.toJSON),f.Vd=function(e,t,n){function r(t){var r=f.wb(e,n).extend({Ga:"always"}),i=r.subscribe(function(e){e&&(i.s(),t(e))});return r.notifySubscribers(r.w()),i}return"function"!=typeof Promise||t?r(t.bind(n)):new Promise(r)},f.b("when",f.Vd),function(){f.u={L:function(e){switch(f.a.P(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?f.a.g.get(e,f.f.options.Yb):7>=f.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?f.u.L(e.options[e.selectedIndex]):a;default:return e.value}},ya:function(e,t,n){switch(f.a.P(e)){case"option":"string"==typeof t?(f.a.g.set(e,f.f.options.Yb,a),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=t):(f.a.g.set(e,f.f.options.Yb,t),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof t?t:"");break;case"select":""!==t&&null!==t||(t=a);for(var r,i=-1,o=0,s=e.options.length;o<s;++o)if((r=f.u.L(e.options[o]))==t||""===r&&t===a){i=o;break}(n||0<=i||t===a&&1<e.size)&&(e.selectedIndex=i,6===f.a.W&&f.a.setTimeout(function(){e.selectedIndex=i},0));break;default:null!==t&&t!==a||(t=""),e.value=t}}}}(),f.b("selectExtensions",f.u),f.b("selectExtensions.readValue",f.u.L),f.b("selectExtensions.writeValue",f.u.ya),f.m=function(){function e(e){e=f.a.Cb(e),123===e.charCodeAt(0)&&(e=e.slice(1,-1)),e+="\n,";var t,n=[],a=e.match(r),s=[],l=0;if(1<a.length){for(var u,c=0;u=a[c];++c){var p=u.charCodeAt(0);if(44===p){if(0>=l){n.push(t&&s.length?{key:t,value:s.join("")}:{unknown:t||s.join("")}),t=l=0,s=[];continue}}else if(58===p){if(!l&&!t&&1===s.length){t=s.pop();continue}}else{if(47===p&&1<u.length&&(47===u.charCodeAt(1)||42===u.charCodeAt(1)))continue;47===p&&c&&1<u.length?(p=a[c-1].match(i))&&!o[p[0]]&&(e=e.substr(e.indexOf(u)+1),a=e.match(r),c=-1,u="/"):40===p||123===p||91===p?++l:41===p||125===p||93===p?--l:t||s.length||34!==p&&39!==p||(u=u.slice(1,-1))}s.push(u)}if(0<l)throw Error("Unbalanced parentheses, braces, or brackets")}return n}var t=["true","false","null","undefined"],n=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,r=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),i=/[\])"'A-Za-z0-9_$]+$/,o={in:1,return:1,typeof:1},a={};return{Ra:[],va:a,Zb:e,ub:function(r,i){function o(e,r){var i;if(!c){var p=f.getBindingHandler(e);if(p&&p.preprocess&&!(r=p.preprocess(r,e,o)))return;(p=a[e])&&(i=r,0<=f.a.A(t,i)?i=!1:(p=i.match(n),i=null!==p&&(p[1]?"Object("+p[1]+")"+p[2]:i)),p=i),p&&l.push("'"+("string"==typeof a[e]?a[e]:e)+"':function(_z){"+i+"=_z}")}u&&(r="function(){return "+r+" }"),s.push("'"+e+"':"+r)}i=i||{};var s=[],l=[],u=i.valueAccessors,c=i.bindingParams,p="string"==typeof r?e(r):r;return f.a.C(p,function(e){o(e.key||e.unknown,e.value)}),l.length&&o("_ko_property_writers","{"+l.join(",")+" }"),s.join(",")},Hd:function(e,t){for(var n=0;n<e.length;n++)if(e[n].key==t)return!0;return!1},$a:function(e,t,n,r,i){e&&f.N(e)?!f.Ya(e)||i&&e.w()===r||e(r):(e=t.get("_ko_property_writers"))&&e[n]&&e[n](r)}}}(),f.b("expressionRewriting",f.m),f.b("expressionRewriting.bindingRewriteValidators",f.m.Ra),f.b("expressionRewriting.parseObjectLiteral",f.m.Zb),f.b("expressionRewriting.preProcessBindings",f.m.ub),f.b("expressionRewriting._twoWayBindings",f.m.va),f.b("jsonExpressionRewriting",f.m),f.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",f.m.ub),function(){function e(e){return 8==e.nodeType&&o.test(i?e.text:e.nodeValue)}function t(e){return 8==e.nodeType&&a.test(i?e.text:e.nodeValue)}function n(n,r){for(var i=n,o=1,a=[];i=i.nextSibling;){if(t(i)&&(f.a.g.set(i,u,!0),0===--o))return a;a.push(i),e(i)&&o++}if(!r)throw Error("Cannot find closing comment tag to match: "+n.nodeValue);return null}function r(e,t){var r=n(e,t);return r?0<r.length?r[r.length-1].nextSibling:e.nextSibling:null}var i=l&&"\x3c!--test--\x3e"===l.createComment("test").text,o=i?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,a=i?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,s={ul:!0,ol:!0},u="__ko_matchedEndComment__";f.h={ea:{},childNodes:function(t){return e(t)?n(t):t.childNodes},Ea:function(t){if(e(t)){t=f.h.childNodes(t);for(var n=0,r=t.length;n<r;n++)f.removeNode(t[n])}else f.a.Sb(t)},ua:function(t,n){if(e(t)){f.h.Ea(t);for(var r=t.nextSibling,i=0,o=n.length;i<o;i++)r.parentNode.insertBefore(n[i],r)}else f.a.ua(t,n)},Uc:function(t,n){e(t)?t.parentNode.insertBefore(n,t.nextSibling):t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)},Vb:function(t,n,r){r?e(t)?t.parentNode.insertBefore(n,r.nextSibling):r.nextSibling?t.insertBefore(n,r.nextSibling):t.appendChild(n):f.h.Uc(t,n)},firstChild:function(n){if(e(n))return!n.nextSibling||t(n.nextSibling)?null:n.nextSibling;if(n.firstChild&&t(n.firstChild))throw Error("Found invalid end comment, as the first child of "+n);return n.firstChild},nextSibling:function(n){if(e(n)&&(n=r(n)),n.nextSibling&&t(n.nextSibling)){var i=n.nextSibling;if(t(i)&&!f.a.g.get(i,u))throw Error("Found end comment without a matching opening comment, as child of "+n);return null}return n.nextSibling},Bd:e,Ud:function(e){return(e=(i?e.text:e.nodeValue).match(o))?e[1]:null},Rc:function(n){if(s[f.a.P(n)]){var i=n.firstChild;if(i)do{if(1===i.nodeType){var o;o=i.firstChild;var a=null;if(o)do{if(a)a.push(o);else if(e(o)){var l=r(o,!0);l?o=l:a=[o]}else t(o)&&(a=[o])}while(o=o.nextSibling);if(o=a)for(a=i.nextSibling,l=0;l<o.length;l++)a?n.insertBefore(o[l],a):n.appendChild(o[l])}}while(i=i.nextSibling)}}}}(),f.b("virtualElements",f.h),f.b("virtualElements.allowedBindings",f.h.ea),f.b("virtualElements.emptyNode",f.h.Ea),f.b("virtualElements.insertAfter",f.h.Vb),f.b("virtualElements.prepend",f.h.Uc),f.b("virtualElements.setDomNodeChildren",f.h.ua),function(){f.ga=function(){this.md={}},f.a.extend(f.ga.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||f.i.getComponentNameForNode(e);case 8:return f.h.Bd(e);default:return!1}},getBindings:function(e,t){var n=this.getBindingsString(e,t),n=n?this.parseBindingsString(n,t,e):null;return f.i.sc(n,e,t,!1)},getBindingAccessors:function(e,t){var n=this.getBindingsString(e,t),n=n?this.parseBindingsString(n,t,e,{valueAccessors:!0}):null;return f.i.sc(n,e,t,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return f.h.Ud(e);default:return null}},parseBindingsString:function(e,t,n,r){try{var i,o=this.md,a=e+(r&&r.valueAccessors||"");if(!(i=o[a])){var s,l="with($context){with($data||{}){return{"+f.m.ub(e,r)+"}}}";s=new Function("$context","$element",l),i=o[a]=s}return i(t,n)}catch(t){throw t.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+t.message,t}}}),f.ga.instance=new f.ga}(),f.b("bindingProvider",f.ga),function(){function e(e){var t=(e=f.a.g.get(e,w))&&e.M;t&&(e.M=null,t.Sc())}function t(t,n,r){this.node=t,this.xc=n,this.ib=[],this.T=!1,n.M||f.a.I.za(t,e),r&&r.M&&(r.M.ib.push(t),this.Kb=r)}function n(e){return function(){return e}}function r(e){return e()}function i(e){return f.a.Ha(f.v.K(e),function(t,n){return function(){return e()[n]}})}function o(e,t,r){return"function"==typeof e?i(e.bind(null,t,r)):f.a.Ha(e,n)}function u(e,t){return i(this.getBindings.bind(this,e,t))}function p(e,t){var n=f.h.firstChild(t);if(n){var r,i=f.ga.instance,o=i.preprocessNode;if(o){for(;r=n;)n=f.h.nextSibling(r),o.call(i,r);n=f.h.firstChild(t)}for(;r=n;)n=f.h.nextSibling(r),d(e,r)}f.j.Ga(t,f.j.T)}function d(e,t){var n=e,r=1===t.nodeType;r&&f.h.Rc(t),(r||f.ga.instance.nodeHasBindings(t))&&(n=g(t,null,e).bindingContextForDescendants),n&&!x[f.a.P(t)]&&p(n,t)}function h(e){var t=[],n={},r=[];return f.a.O(e,function i(o){if(!n[o]){var a=f.getBindingHandler(o);a&&(a.after&&(r.push(o),f.a.C(a.after,function(t){if(e[t]){if(-1!==f.a.A(r,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+r.join(", "));i(t)}}),r.length--),t.push({key:o,Lc:a})),n[o]=!0}}),t}function g(e,t,n){var i=f.a.g.Tb(e,w,{}),o=i.gd;if(!t){if(o)throw Error("You cannot apply bindings multiple times to the same element.");i.gd=!0}o||(i.context=n);var s;if(t&&"function"!=typeof t)s=t;else{var l=f.ga.instance,c=l.getBindingAccessors||u,p=f.$(function(){return(s=t?t(n,e):c.call(l,e,n))&&(n[y]&&n[y](),n[b]&&n[b]()),s},null,{l:e});s&&p.ja()||(p=null)}var d,g=n;if(s){var m=function(){return f.a.Ha(p?p():s,r)},v=p?function(e){return function(){return r(p()[e])}}:function(e){return s[e]};m.get=function(e){return s[e]&&r(v(e))},m.has=function(e){return e in s},f.j.T in s&&f.j.subscribe(e,f.j.T,function(){var t=(0,s[f.j.T])();if(t){var n=f.h.childNodes(e);n.length&&t(n,f.Dc(n[0]))}}),f.j.oa in s&&(g=f.j.Bb(e,n),f.j.subscribe(e,f.j.oa,function(){var t=(0,s[f.j.oa])();t&&f.h.firstChild(e)&&t(e)})),i=h(s),f.a.C(i,function(t){var n=t.Lc.init,r=t.Lc.update,i=t.key;if(8===e.nodeType&&!f.h.ea[i])throw Error("The binding '"+i+"' cannot be used with virtual elements");try{"function"==typeof n&&f.v.K(function(){var t=n(e,v(i),m,g.$data,g);if(t&&t.controlsDescendantBindings){if(d!==a)throw Error("Multiple bindings ("+d+" and "+i+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");d=i}}),"function"==typeof r&&f.$(function(){r(e,v(i),m,g.$data,g)},null,{l:e})}catch(e){throw e.message='Unable to process binding "'+i+": "+s[i]+'"\nMessage: '+e.message,e}})}return i=d===a,{shouldBindDescendants:i,bindingContextForDescendants:i&&g}}function m(e,t){return e&&e instanceof f.fa?e:new f.fa(e,a,a,t)}var y=f.a.Da("_subscribable"),v=f.a.Da("_ancestorBindingInfo"),b=f.a.Da("_dataDependency");f.f={};var x={script:!0,textarea:!0,template:!0};f.getBindingHandler=function(e){return f.f[e]};var C={};f.fa=function(e,t,n,r,i){function o(){var e=p?c():c,i=f.a.c(e);return t?(f.a.extend(l,t),v in t&&(l[v]=t[v])):(l.$parents=[],l.$root=i,l.ko=f),l[y]=s,u?i=l.$data:(l.$rawData=e,l.$data=i),n&&(l[n]=i),r&&r(l,t,i),t&&t[y]&&!f.U.o().Ub(t[y])&&t[y](),d&&(l[b]=d),l.$data}var s,l=this,u=e===C,c=u?a:e,p="function"==typeof c&&!f.N(c),d=i&&i.dataDependency;i&&i.exportDependencies?o():(s=f.wb(o),s.w(),s.ja()?s.equalityComparer=null:l[y]=a)},f.fa.prototype.createChildContext=function(e,t,n,r){if(!r&&t&&"object"==typeof t&&(r=t,t=r.as,n=r.extend),t&&r&&r.noChildContext){var i="function"==typeof e&&!f.N(e);return new f.fa(C,this,null,function(r){n&&n(r),r[t]=i?e():e},r)}return new f.fa(e,this,t,function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),n&&n(e)},r)},f.fa.prototype.extend=function(e,t){return new f.fa(C,this,null,function(t){f.a.extend(t,"function"==typeof e?e(t):e)},t)};var w=f.a.g.Z();t.prototype.Sc=function(){this.Kb&&this.Kb.M&&this.Kb.M.rd(this.node)},t.prototype.rd=function(e){f.a.hb(this.ib,e),!this.ib.length&&this.T&&this.Bc()},t.prototype.Bc=function(){this.T=!0,this.xc.M&&!this.ib.length&&(this.xc.M=null,f.a.I.xb(this.node,e),f.j.Ga(this.node,f.j.oa),this.Sc())},f.j={T:"childrenComplete",oa:"descendantsComplete",subscribe:function(e,t,n,r){return e=f.a.g.Tb(e,w,{}),e.Fa||(e.Fa=new f.R),e.Fa.subscribe(n,r,t)},Ga:function(e,t){var n=f.a.g.get(e,w);if(n&&(n.Fa&&n.Fa.notifySubscribers(e,t),t==f.j.T))if(n.M)n.M.Bc();else if(n.M===a&&n.Fa&&n.Fa.Wa(f.j.oa))throw Error("descendantsComplete event not supported for bindings on this node")},Bb:function(e,n){var r=f.a.g.Tb(e,w,{});return r.M||(r.M=new t(e,r,n[v])),n[v]==r?n:n.extend(function(e){e[v]=r})}},f.Sd=function(e){return(e=f.a.g.get(e,w))&&e.context},f.eb=function(e,t,n){return 1===e.nodeType&&f.h.Rc(e),g(e,t,m(n))},f.kd=function(e,t,n){return n=m(n),f.eb(e,o(t,n,e),n)},f.Pa=function(e,t){1!==t.nodeType&&8!==t.nodeType||p(m(e),t)},f.uc=function(e,t,n){if(!c&&s.jQuery&&(c=s.jQuery),2>arguments.length){if(!(t=l.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!t||1!==t.nodeType&&8!==t.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");d(m(e,n),t)},f.Cc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?a:f.Sd(e)},f.Dc=function(e){return(e=f.Cc(e))?e.$data:a},f.b("bindingHandlers",f.f),f.b("bindingEvent",f.j),f.b("bindingEvent.subscribe",f.j.subscribe),f.b("bindingEvent.startPossiblyAsyncContentBinding",f.j.Bb),f.b("applyBindings",f.uc),f.b("applyBindingsToDescendants",f.Pa),f.b("applyBindingAccessorsToNode",f.eb),f.b("applyBindingsToNode",f.kd),f.b("contextFor",f.Cc),f.b("dataFor",f.Dc)}(),function(e){function t(t,r){var a,s=Object.prototype.hasOwnProperty.call(i,t)?i[t]:e;s?s.subscribe(r):(s=i[t]=new f.R,s.subscribe(r),n(t,function(e,n){var r=!(!n||!n.synchronous);o[t]={definition:e,Fd:r},delete i[t],a||r?s.notifySubscribers(e):f.ma.yb(function(){s.notifySubscribers(e)})}),a=!0)}function n(e,t){r("getConfig",[e],function(n){n?r("loadComponent",[e,n],function(e){t(e,n)}):t(null,null)})}function r(t,n,i,o){o||(o=f.i.loaders.slice(0));var a=o.shift();if(a){var s=a[t];if(s){var l=!1;if(s.apply(a,n.concat(function(e){l?i(null):null!==e?i(e):r(t,n,i,o)}))!==e&&(l=!0,!a.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else r(t,n,i,o)}else i(null)}var i={},o={};f.i={get:function(n,r){var i=Object.prototype.hasOwnProperty.call(o,n)?o[n]:e;i?i.Fd?f.v.K(function(){r(i.definition)}):f.ma.yb(function(){r(i.definition)}):t(n,r)},Ac:function(e){delete o[e]},nc:r},f.i.loaders=[],f.b("components",f.i),f.b("components.get",f.i.get),f.b("components.clearCachedDefinition",f.i.Ac)}(),function(){function e(e,t,n,r){function i(){0==--s&&r(a)}var a={},s=2,l=n.template;n=n.viewModel,l?o(t,l,function(t){f.i.nc("loadTemplate",[e,t],function(e){a.template=e,i()})}):i(),n?o(t,n,function(t){f.i.nc("loadViewModel",[e,t],function(e){a[c]=e,i()})}):i()}function n(e,t,r){if("function"==typeof t)r(function(e){return new t(e)});else if("function"==typeof t[c])r(t[c]);else if("instance"in t){var i=t.instance;r(function(){return i})}else"viewModel"in t?n(e,t.viewModel,r):e("Unknown viewModel value: "+t)}function r(e){switch(f.a.P(e)){case"script":return f.a.ta(e.text);case"textarea":return f.a.ta(e.value);case"template":if(i(e.content))return f.a.Ca(e.content.childNodes)}return f.a.Ca(e.childNodes)}function i(e){return s.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function o(e,n,r){"string"==typeof n.require?t||s.require?(t||s.require)([n.require],r):e("Uses require, but no AMD loader is present"):r(n)}function a(e){return function(t){throw Error("Component '"+e+"': "+t)}}var u={};f.i.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(f.i.sb(e))throw Error("Component "+e+" is already registered");u[e]=t},f.i.sb=function(e){return Object.prototype.hasOwnProperty.call(u,e)},f.i.unregister=function(e){delete u[e],f.i.Ac(e)},f.i.Ec={getConfig:function(e,t){t(f.i.sb(e)?u[e]:null)},loadComponent:function(t,n,r){var i=a(t);o(i,n,function(n){e(t,i,n,r)})},loadTemplate:function(e,t,n){if(e=a(e),"string"==typeof t)n(f.a.ta(t));else if(t instanceof Array)n(t);else if(i(t))n(f.a.la(t.childNodes));else if(t.element)if(t=t.element,s.HTMLElement?t instanceof HTMLElement:t&&t.tagName&&1===t.nodeType)n(r(t));else if("string"==typeof t){var o=l.getElementById(t);o?n(r(o)):e("Cannot find element with ID "+t)}else e("Unknown element type: "+t);else e("Unknown template value: "+t)},loadViewModel:function(e,t,r){n(a(e),t,r)}};var c="createViewModel";f.b("components.register",f.i.register),f.b("components.isRegistered",f.i.sb),f.b("components.unregister",f.i.unregister),f.b("components.defaultLoader",f.i.Ec),f.i.loaders.push(f.i.Ec),f.i.cd=u}(),function(){function e(e,n){var r=e.getAttribute("params");if(r){var r=t.parseBindingsString(r,n,e,{valueAccessors:!0,bindingParams:!0}),r=f.a.Ha(r,function(t){return f.o(t,null,{l:e})}),i=f.a.Ha(r,function(t){var n=t.w();return t.ja()?f.o({read:function(){return f.a.c(t())},write:f.Ya(n)&&function(e){t()(e)},l:e}):n});return Object.prototype.hasOwnProperty.call(i,"$raw")||(i.$raw=r),i}return{$raw:{}}}f.i.getComponentNameForNode=function(e){var t=f.a.P(e);if(f.i.sb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=f.a.W&&e.tagName===t))return t},f.i.sc=function(t,n,r,i){if(1===n.nodeType){var o=f.i.getComponentNameForNode(n);if(o){if(t=t||{},t.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var a={name:o,params:e(n,r)};t.component=i?function(){return a}:a}}return t};var t=new f.ga;9>f.a.W&&(f.i.register=function(e){return function(t){return e.apply(this,arguments)}}(f.i.register),l.createDocumentFragment=function(e){return function(){var t,n=e(),r=f.i.cd;for(t in r);return n}}(l.createDocumentFragment))}(),function(){function e(e,t,n){if(!(t=t.template))throw Error("Component '"+e+"' has no template");e=f.a.Ca(t),f.h.ua(n,e)}function t(e,t,n){var r=e.createViewModel;return r?r.call(e,t,n):t}var n=0;f.f.component={init:function(r,i,o,a,s){function l(){var e=u&&u.dispose;"function"==typeof e&&e.call(u),p&&p.s(),c=u=p=null}var u,c,p,d=f.a.la(f.h.childNodes(r));return f.h.Ea(r),f.a.I.za(r,l),f.o(function(){var o,a,h=f.a.c(i());if("string"==typeof h?o=h:(o=f.a.c(h.name),a=f.a.c(h.params)),!o)throw Error("No component name specified");var g=f.j.Bb(r,s),m=c=++n;f.i.get(o,function(n){if(c===m){if(l(),!n)throw Error("Unknown component '"+o+"'");e(o,n,r);var i=t(n,a,{element:r,templateNodes:d});n=g.createChildContext(i,{extend:function(e){e.$component=i,e.$componentTemplateNodes=d}}),i&&i.koDescendantsComplete&&(p=f.j.subscribe(r,f.j.oa,i.koDescendantsComplete,i)),u=i,f.Pa(n,r)}})},null,{l:r}),{controlsDescendantBindings:!0}}},f.h.ea.component=!0}();var _={class:"className",for:"htmlFor"};f.f.attr={update:function(e,t){var n=f.a.c(t())||{};f.a.O(n,function(t,n){n=f.a.c(n);var r=t.indexOf(":"),r="lookupNamespaceURI"in e&&0<r&&e.lookupNamespaceURI(t.substr(0,r)),i=!1===n||null===n||n===a;i?r?e.removeAttributeNS(r,t):e.removeAttribute(t):n=n.toString(),8>=f.a.W&&t in _?(t=_[t],i?e.removeAttribute(t):e[t]=n):i||(r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)),"name"===t&&f.a.Xc(e,i?"":n)})}},function(){f.f.checked={after:["value","attr"],init:function(e,t,n){function r(){var r=e.checked,i=o();if(!f.U.rb()&&(r||!l&&!f.U.pa())){var u=f.v.K(t);if(c){var d=p?u.w():u,g=h;h=i,g!==i?r&&(f.a.Oa(d,i,!0),f.a.Oa(d,g,!1)):f.a.Oa(d,i,r),p&&f.Ya(u)&&u(d)}else s&&(i===a?i=r:r||(i=a)),f.m.$a(u,n,"checked",i,!0)}}function i(){var n=f.a.c(t()),r=o();c?(e.checked=0<=f.a.A(n,r),h=r):e.checked=s&&r===a?!!n:o()===n}var o=f.wb(function(){return n.has("checkedValue")?f.a.c(n.get("checkedValue")):d?n.has("value")?f.a.c(n.get("value")):e.value:void 0}),s="checkbox"==e.type,l="radio"==e.type;if(s||l){var u=t(),c=s&&f.a.c(u)instanceof Array,p=!(c&&u.push&&u.splice),d=l||c,h=c?o():a;l&&!e.name&&f.f.uniqueName.init(e,function(){return!0}),f.o(r,null,{l:e}),f.a.H(e,"click",r),f.o(i,null,{l:e}),u=a}}},f.m.va.checked=!0,f.f.checkedValue={update:function(e,t){e.value=f.a.c(t())}}}(),f.f.class={update:function(e,t){var n=f.a.Cb(f.a.c(t()));f.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,f.a.Eb(e,n,!0)}},f.f.css={update:function(e,t){var n=f.a.c(t());null!==n&&"object"==typeof n?f.a.O(n,function(t,n){n=f.a.c(n),f.a.Eb(e,t,n)}):f.f.class.update(e,t)}},f.f.enable={update:function(e,t){var n=f.a.c(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},f.f.disable={update:function(e,t){f.f.enable.update(e,function(){return!f.a.c(t())})}},f.f.event={init:function(e,t,n,r,i){var o=t()||{};f.a.O(o,function(o){"string"==typeof o&&f.a.H(e,o,function(e){var a,s=t()[o];if(s){try{var l=f.a.la(arguments);r=i.$data,l.unshift(r),a=s.apply(r,l)}finally{!0!==a&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===n.get(o+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}})})}},f.f.foreach={Qc:function(e){return function(){var t=e(),n=f.a.$b(t);return n&&"number"!=typeof n.length?(f.a.c(t),{foreach:n.data,as:n.as,noChildContext:n.noChildContext,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:f.ba.Na}):{foreach:t,templateEngine:f.ba.Na}}},init:function(e,t){return f.f.template.init(e,f.f.foreach.Qc(t))},update:function(e,t,n,r,i){return f.f.template.update(e,f.f.foreach.Qc(t),n,r,i)}},f.m.Ra.foreach=!1,f.h.ea.foreach=!0,f.f.hasfocus={init:function(e,t,n){function r(r){e.__ko_hasfocusUpdating=!0;var i=e.ownerDocument;if("activeElement"in i){var o;try{o=i.activeElement}catch(e){o=i.body}r=o===e}i=t(),f.m.$a(i,n,"hasfocus",r,!0),e.__ko_hasfocusLastValue=r,e.__ko_hasfocusUpdating=!1}var i=r.bind(null,!0),o=r.bind(null,!1);f.a.H(e,"focus",i),f.a.H(e,"focusin",i),f.a.H(e,"blur",o),f.a.H(e,"focusout",o),e.__ko_hasfocusLastValue=!1},update:function(e,t){var n=!!f.a.c(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===n||(n?e.focus():e.blur(),!n&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),f.v.K(f.a.Fb,null,[e,n?"focusin":"focusout"]))}},f.m.va.hasfocus=!0,f.f.hasFocus=f.f.hasfocus,f.m.va.hasFocus="hasfocus",f.f.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){f.a.dc(e,t())}},function(){function e(e,t,n){f.f[e]={init:function(e,r,i,o,a){var s,l,u,c,p,d={};if(t){o=i.get("as");var h=i.get("noChildContext");p=!(o&&h),d={as:o,noChildContext:h,exportDependencies:p}}return c=(u="render"==i.get("completeOn"))||i.has(f.j.oa),f.o(function(){var i,o=f.a.c(r()),h=!n!=!o,g=!l;(p||h!==s)&&(c&&(a=f.j.Bb(e,a)),h&&(t&&!p||(d.dataDependency=f.U.o()),i=t?a.createChildContext("function"==typeof o?o:r,d):f.U.pa()?a.extend(null,d):a),g&&f.U.pa()&&(l=f.a.Ca(f.h.childNodes(e),!0)),h?(g||f.h.ua(e,f.a.Ca(l)),f.Pa(i,e)):(f.h.Ea(e),u||f.j.Ga(e,f.j.T)),s=h)},null,{l:e}),{controlsDescendantBindings:!0}}},f.m.Ra[e]=!1,f.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),f.f.let={init:function(e,t,n,r,i){return t=i.extend(t),f.Pa(t,e),{controlsDescendantBindings:!0}}},f.h.ea.let=!0;var k={};f.f.options={init:function(e){if("select"!==f.a.P(e))throw Error("options binding applies only to SELECT elements");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(e,t,n){function r(){return f.a.fb(e.options,function(e){return e.selected})}function i(e,t,n){var r=typeof t;return"function"==r?t(e):"string"==r?e[t]:n}function o(t,r){if(g&&c)f.u.ya(e,f.a.c(n.get("value")),!0);else if(h.length){var i=0<=f.a.A(h,f.u.L(r[0]));f.a.Yc(r[0],i),g&&!i&&f.v.K(f.a.Fb,null,[e,"change"])}}var s=e.multiple,l=0!=e.length&&s?e.scrollTop:null,u=f.a.c(t()),c=n.get("valueAllowUnset")&&n.has("value"),p=n.get("optionsIncludeDestroyed");t={};var d,h=[];c||(s?h=f.a.Mb(r(),f.u.L):0<=e.selectedIndex&&h.push(f.u.L(e.options[e.selectedIndex]))),u&&(void 0===u.length&&(u=[u]),d=f.a.fb(u,function(e){return p||e===a||null===e||!f.a.c(e._destroy)}),n.has("optionsCaption")&&null!==(u=f.a.c(n.get("optionsCaption")))&&u!==a&&d.unshift(k));var g=!1;t.beforeRemove=function(t){e.removeChild(t)},u=o,n.has("optionsAfterRender")&&"function"==typeof n.get("optionsAfterRender")&&(u=function(e,t){o(0,t),f.v.K(n.get("optionsAfterRender"),null,[t[0],e!==k?e:a])}),f.a.cc(e,d,function(t,r,o){return o.length&&(h=!c&&o[0].selected?[f.u.L(o[0])]:[],g=!0),r=e.ownerDocument.createElement("option"),t===k?(f.a.Ab(r,n.get("optionsCaption")),f.u.ya(r,a)):(o=i(t,n.get("optionsValue"),t),f.u.ya(r,f.a.c(o)),t=i(t,n.get("optionsText"),o),f.a.Ab(r,t)),[r]},t,u),f.v.K(function(){if(c)f.u.ya(e,f.a.c(n.get("value")),!0);else{var t;t=s?h.length&&r().length<h.length:h.length&&0<=e.selectedIndex?f.u.L(e.options[e.selectedIndex])!==h[0]:h.length||0<=e.selectedIndex,t&&f.a.Fb(e,"change")}}),f.a.vd(e),l&&20<Math.abs(l-e.scrollTop)&&(e.scrollTop=l)}},f.f.options.Yb=f.a.g.Z(),f.f.selectedOptions={after:["options","foreach"],init:function(e,t,n){f.a.H(e,"change",function(){var r=t(),i=[];f.a.C(e.getElementsByTagName("option"),function(e){e.selected&&i.push(f.u.L(e))}),f.m.$a(r,n,"selectedOptions",i)})},update:function(e,t){if("select"!=f.a.P(e))throw Error("values binding applies only to SELECT elements");var n=f.a.c(t()),r=e.scrollTop;n&&"number"==typeof n.length&&f.a.C(e.getElementsByTagName("option"),function(e){var t=0<=f.a.A(n,f.u.L(e));e.selected!=t&&f.a.Yc(e,t)}),e.scrollTop=r}},f.m.va.selectedOptions=!0,f.f.style={update:function(e,t){var n=f.a.c(t()||{});f.a.O(n,function(t,n){if(n=f.a.c(n),null!==n&&n!==a&&!1!==n||(n=""),c)c(e).css(t,n);else if(/^--/.test(t))e.style.setProperty(t,n);else{t=t.replace(/-(\w)/g,function(e,t){return t.toUpperCase()});var r=e.style[t];e.style[t]=n,n===r||e.style[t]!=r||isNaN(n)||(e.style[t]=n+"px")}})}},f.f.submit={init:function(e,t,n,r,i){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");f.a.H(e,"submit",function(n){var r,o=t();try{r=o.call(i.$data,e)}finally{!0!==r&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}})}},f.f.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){f.a.Ab(e,t())}},f.h.ea.text=!0,function(){if(s&&s.navigator){var e,t,n,r,i,o=function(e){if(e)return parseFloat(e[1])},l=s.navigator.userAgent;(e=s.opera&&s.opera.version&&parseInt(s.opera.version()))||(i=o(l.match(/Edge\/([^ ]+)$/)))||o(l.match(/Chrome\/([^ ]+)/))||(t=o(l.match(/Version\/([^ ]+) Safari/)))||(n=o(l.match(/Firefox\/([^ ]+)/)))||(r=f.a.W||o(l.match(/MSIE ([^ ]+)/)))||(r=o(l.match(/rv:([^ )]+)/)))}if(8<=r&&10>r)var u=f.a.g.Z(),c=f.a.g.Z(),p=function(e){var t=this.activeElement;(t=t&&f.a.g.get(t,c))&&t(e)},d=function(e,t){var n=e.ownerDocument;f.a.g.get(n,u)||(f.a.g.set(n,u,!0),f.a.H(n,"selectionchange",p)),f.a.g.set(e,c,t)};f.f.textInput={init:function(o,s,l){function u(e,t){f.a.H(o,e,t)}function c(){var e=f.a.c(s());null!==e&&e!==a||(e=""),m!==a&&e===m?f.a.setTimeout(c,4):o.value!==e&&(b=!0,o.value=e,b=!1,y=o.value)}function p(){g||(m=o.value,g=f.a.setTimeout(h,4))}function h(){clearTimeout(g),m=g=a;var e=o.value;y!==e&&(y=e,f.m.$a(s(),l,"textInput",e))}var g,m,y=o.value,v=9==f.a.W?p:h,b=!1;r&&u("keypress",h),11>r&&u("propertychange",function(e){b||"value"!==e.propertyName||v(e)}),8==r&&(u("keyup",h),u("keydown",h)),d&&(d(o,v),u("dragend",p)),(!r||9<=r)&&u("input",v),5>t&&"textarea"===f.a.P(o)?(u("keydown",p),u("paste",p),u("cut",p)):11>e?u("keydown",p):4>n?(u("DOMAutoComplete",h),u("dragdrop",h),u("drop",h)):i&&"number"===o.type&&u("keydown",p),u("change",h),u("blur",h),f.o(c,null,{l:o})}},f.m.va.textInput=!0,f.f.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),f.f.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++f.f.uniqueName.qd;f.a.Xc(e,n)}}},f.f.uniqueName.qd=0,f.f.using={init:function(e,t,n,r,i){var o;return n.has("as")&&(o={as:n.get("as"),noChildContext:n.get("noChildContext")}),t=i.createChildContext(t,o),f.Pa(t,e),{controlsDescendantBindings:!0}}},f.h.ea.using=!0,f.f.value={after:["options","foreach"],init:function(e,t,n){var r=f.a.P(e),i="input"==r;if(!i||"checkbox"!=e.type&&"radio"!=e.type){var o=["change"],s=n.get("valueUpdate"),l=!1,u=null;s&&("string"==typeof s&&(s=[s]),f.a.gb(o,s),o=f.a.vc(o));var c=function(){u=null,l=!1;var r=t(),i=f.u.L(e);f.m.$a(r,n,"value",i)};!f.a.W||!i||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=f.a.A(o,"propertychange")||(f.a.H(e,"propertychange",function(){l=!0}),f.a.H(e,"focus",function(){l=!1}),f.a.H(e,"blur",function(){l&&c()})),f.a.C(o,function(t){var n=c;f.a.Td(t,"after")&&(n=function(){u=f.u.L(e),f.a.setTimeout(c,0)},t=t.substring(5)),f.a.H(e,t,n)});var p;p=i&&"file"==e.type?function(){var n=f.a.c(t());null===n||n===a||""===n?e.value="":f.v.K(c)}:function(){var i=f.a.c(t()),o=f.u.L(e);null!==u&&i===u?f.a.setTimeout(p,0):i===o&&o!==a||("select"===r?(o=n.get("valueAllowUnset"),f.u.ya(e,i,o),o||i===f.u.L(e)||f.v.K(c)):f.u.ya(e,i))},f.o(p,null,{l:e})}else f.eb(e,{checkedValue:t})},update:function(){}},f.m.va.value=!0,f.f.visible={update:function(e,t){var n=f.a.c(t()),r="none"!=e.style.display;n&&!r?e.style.display="":!n&&r&&(e.style.display="none")}},f.f.hidden={update:function(e,t){f.f.visible.update(e,function(){return!f.a.c(t())})}},function(e){f.f[e]={init:function(t,n,r,i,o){return f.f.event.init.call(this,t,function(){var t={};return t[e]=n(),t},r,i,o)}}}("click"),f.ca=function(){},f.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},f.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},f.ca.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){t=t||l;var n=t.getElementById(e);if(!n)throw Error("Cannot find template with ID "+e);return new f.B.D(n)}if(1==e.nodeType||8==e.nodeType)return new f.B.ia(e);throw Error("Unknown template type: "+e)},f.ca.prototype.renderTemplate=function(e,t,n,r){return e=this.makeTemplateSource(e,r),this.renderTemplateSource(e,t,n,r)},f.ca.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},f.ca.prototype.rewriteTemplate=function(e,t,n){e=this.makeTemplateSource(e,n),t=t(e.text()),e.text(t),e.data("isRewritten",!0)},f.b("templateEngine",f.ca),f.ic=function(){function e(e,t,n,r){e=f.m.Zb(e);for(var i=f.m.Ra,o=0;o<e.length;o++){var a=e[o].key;if(Object.prototype.hasOwnProperty.call(i,a)){var s=i[a];if("function"==typeof s){if(a=s(e[o].value))throw Error(a)}else if(!s)throw Error("This template engine does not support the '"+a+"' binding within its templates")}}return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+f.m.ub(e,{valueAccessors:!0})+" } })()},'"+n.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(n)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{wd:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,function(e){return f.ic.Kd(e,t)},n)},Kd:function(r,i){return r.replace(t,function(t,n,r,o,a){return e(a,n,r,i)}).replace(n,function(t,n){return e(n,"\x3c!-- ko --\x3e","#comment",i)})},ld:function(e,t){return f.aa.Wb(function(n,r){var i=n.nextSibling;i&&i.nodeName.toLowerCase()===t&&f.eb(i,e,r)})}}}(),f.b("__tr_ambtns",f.ic.ld),function(){f.B={},f.B.D=function(e){if(this.D=e){var t=f.a.P(e);this.Db="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},f.B.D.prototype.text=function(){var e=1===this.Db?"text":2===this.Db?"value":"innerHTML";if(0==arguments.length)return this.D[e];var t=arguments[0];"innerHTML"===e?f.a.dc(this.D,t):this.D[e]=t};var e=f.a.g.Z()+"_";f.B.D.prototype.data=function(t){if(1===arguments.length)return f.a.g.get(this.D,e+t);f.a.g.set(this.D,e+t,arguments[1])};var t=f.a.g.Z();f.B.D.prototype.nodes=function(){var e=this.D;if(0==arguments.length){var n=f.a.g.get(e,t)||{},r=n.jb||(3===this.Db?e.content:4===this.Db?e:a);return r&&!n.hd||(n=this.text())&&(r=f.a.Ld(n,e.ownerDocument),this.text(""),f.a.g.set(e,t,{jb:r,hd:!0})),r}f.a.g.set(e,t,{jb:arguments[0]})},f.B.ia=function(e){this.D=e},f.B.ia.prototype=new f.B.D,f.B.ia.prototype.constructor=f.B.ia,f.B.ia.prototype.text=function(){if(0==arguments.length){var e=f.a.g.get(this.D,t)||{};return e.jc===a&&e.jb&&(e.jc=e.jb.innerHTML),e.jc}f.a.g.set(this.D,t,{jc:arguments[0]})},f.b("templateSources",f.B),f.b("templateSources.domElement",f.B.D),f.b("templateSources.anonymousTemplate",f.B.ia)}(),function(){function e(e,t,n){var r;for(t=f.h.nextSibling(t);e&&(r=e)!==t;)e=f.h.nextSibling(r),n(r,e)}function t(t,n){if(t.length){var r=t[0],i=t[t.length-1],o=r.parentNode,a=f.ga.instance,s=a.preprocessNode;if(s){if(e(r,i,function(e,t){var n=e.previousSibling,o=s.call(a,e);o&&(e===r&&(r=o[0]||t),e===i&&(i=o[o.length-1]||n))}),t.length=0,!r)return;r===i?t.push(r):(t.push(r,i),f.a.Ua(t,o))}e(r,i,function(e){1!==e.nodeType&&8!==e.nodeType||f.uc(n,e)}),e(r,i,function(e){1!==e.nodeType&&8!==e.nodeType||f.aa.bd(e,[n])}),f.a.Ua(t,o)}}function n(e){return e.nodeType?e:0<e.length?e[0]:null}function r(e,r,i,a,s){s=s||{};var l=(e&&n(e)||i||{}).ownerDocument,u=s.templateEngine||o;if(f.ic.wd(i,u,l),i=u.renderTemplate(i,a,s,l),"number"!=typeof i.length||0<i.length&&"number"!=typeof i[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(l=!1,r){case"replaceChildren":f.h.ua(e,i),l=!0;break;case"replaceNode":f.a.Wc(e,i),l=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+r)}return l&&(t(i,a),s.afterRender&&f.v.K(s.afterRender,null,[i,a[s.as||"$data"]]),"replaceChildren"==r&&f.j.Ga(e,f.j.T)),i}function i(e,t,n){return f.N(e)?e():"function"==typeof e?e(t,n):e}var o;f.ec=function(e){if(e!=a&&!(e instanceof f.ca))throw Error("templateEngine must inherit from ko.templateEngine");o=e},f.bc=function(e,t,s,l,u){if(s=s||{},(s.templateEngine||o)==a)throw Error("Set a template engine before calling renderTemplate");if(u=u||"replaceChildren",l){var c=n(l);return f.$(function(){var o=t&&t instanceof f.fa?t:new f.fa(t,null,null,null,{exportDependencies:!0}),a=i(e,o.$data,o),o=r(l,u,a,o,s);"replaceNode"==u&&(l=o,c=n(l))},null,{Sa:function(){return!c||!f.a.Rb(c)},l:c&&"replaceNode"==u?c.parentNode:c})}return f.aa.Wb(function(n){f.bc(e,t,s,n,"replaceNode")})},f.Pd=function(e,n,o,s,l){function u(e,t){f.v.K(f.a.cc,null,[s,e,p,o,c,t]),f.j.Ga(s,f.j.T)}function c(e,n){t(n,d),o.afterRender&&o.afterRender(n,e),d=null}function p(t,n){d=l.createChildContext(t,{as:h,noChildContext:o.noChildContext,extend:function(e){e.$index=n,h&&(e[h+"Index"]=n)}});var a=i(e,t,d);return r(s,"ignoreTargetNode",a,d,o)}var d,h=o.as,g=!1===o.includeDestroyed||f.options.foreachHidesDestroyed&&!o.includeDestroyed;if(g||o.beforeRemove||!f.Oc(n))return f.$(function(){var e=f.a.c(n)||[];void 0===e.length&&(e=[e]),g&&(e=f.a.fb(e,function(e){return e===a||null===e||!f.a.c(e._destroy)})),u(e)},null,{l:s});u(n.w());var m=n.subscribe(function(e){u(n(),e)},null,"arrayChange");return m.l(s),m};var s=f.a.g.Z(),l=f.a.g.Z();f.f.template={init:function(e,t){var n=f.a.c(t());if("string"==typeof n||n.name)f.h.Ea(e);else if("nodes"in n){if(n=n.nodes||[],f.N(n))throw Error('The "nodes" option must be a plain, non-observable array.');var r=n[0]&&n[0].parentNode;r&&f.a.g.get(r,l)||(r=f.a.Xb(n),f.a.g.set(r,l,!0)),new f.B.ia(e).nodes(r)}else{if(n=f.h.childNodes(e),!(0<n.length))throw Error("Anonymous template defined, but no template content was provided");r=f.a.Xb(n),new f.B.ia(e).nodes(r)}return{controlsDescendantBindings:!0}},update:function(e,t,n,r,i){var o=t();t=f.a.c(o),n=!0,r=null,"string"==typeof t?t={}:(o=t.name,"if"in t&&(n=f.a.c(t.if)),n&&"ifnot"in t&&(n=!f.a.c(t.ifnot))),"foreach"in t?r=f.Pd(o||e,n&&t.foreach||[],t,e,i):n?(n=i,"data"in t&&(n=i.createChildContext(t.data,{as:t.as,noChildContext:t.noChildContext,exportDependencies:!0})),r=f.bc(o||e,n,t,e)):f.h.Ea(e),i=r,(t=f.a.g.get(e,s))&&"function"==typeof t.s&&t.s(),f.a.g.set(e,s,!i||i.ja&&!i.ja()?a:i)}},f.m.Ra.template=function(e){return e=f.m.Zb(e),1==e.length&&e[0].unknown||f.m.Hd(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},f.h.ea.template=!0}(),f.b("setTemplateEngine",f.ec),f.b("renderTemplate",f.bc),f.a.Jc=function(e,t,n){if(e.length&&t.length){var r,i,o,a,s;for(r=i=0;(!n||r<n)&&(a=e[i]);++i){for(o=0;s=t[o];++o)if(a.value===s.value){a.moved=s.index,s.moved=a.index,t.splice(o,1),r=o=0;break}r+=o}}},f.a.Ob=function(){function e(e,t,n,r,i){var o,a,s,l,u,c=Math.min,p=Math.max,d=[],h=e.length,g=t.length,m=g-h||1,y=h+g+1;for(o=0;o<=h;o++)for(l=s,d.push(s=[]),u=c(g,o+m),a=p(0,o-1);a<=u;a++)s[a]=a?o?e[o-1]===t[a-1]?l[a-1]:c(l[a]||y,s[a-1]||y)+1:a+1:o+1;for(c=[],p=[],m=[],o=h,a=g;o||a;)g=d[o][a]-1,a&&g===d[o][a-1]?p.push(c[c.length]={status:n,value:t[--a],index:a}):o&&g===d[o-1][a]?m.push(c[c.length]={status:r,value:e[--o],index:o}):(--a,--o,i.sparse||c.push({status:"retained",value:t[a]}));return f.a.Jc(m,p,!i.dontLimitMoves&&10*h),c.reverse()}return function(t,n,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},t=t||[],n=n||[],t.length<n.length?e(t,n,"added","deleted",r):e(n,t,"deleted","added",r)}}(),f.b("utils.compareArrays",f.a.Ob),function(){function e(e,t,n,r,i){var o=[],s=f.$(function(){var a=t(n,i,f.a.Ua(o,e))||[];0<o.length&&(f.a.Wc(o,a),r&&f.v.K(r,null,[n,a,i])),o.length=0,f.a.gb(o,a)},null,{l:e,Sa:function(){return!f.a.jd(o)}});return{Y:o,$:s.ja()?s:a}}var t=f.a.g.Z(),n=f.a.g.Z();f.a.cc=function(r,i,o,s,l,u){function c(e){h={Aa:e,nb:f.sa(b++)},y.push(h),m||V.push(h)}function p(e){h=g[e],b!==h.nb.w()&&P.push(h),h.nb(b++),f.a.Ua(h.Y,r),y.push(h)}function d(e,t){if(e)for(var n=0,r=t.length;n<r;n++)f.a.C(t[n].Y,function(r){e(r,n,t[n].Aa)})}i=i||[],void 0===i.length&&(i=[i]),s=s||{};var h,g=f.a.g.get(r,t),m=!g,y=[],v=0,b=0,x=[],C=[],w=[],P=[],V=[],_=0;if(m)f.a.C(i,c);else{if(!u||g&&g._countWaitingForRemove){var k=f.a.Mb(g,function(e){return e.Aa});u=f.a.Ob(k,i,{dontLimitMoves:s.dontLimitMoves,sparse:!0})}for(var T,S,R,k=0;T=u[k];k++)switch(S=T.moved,R=T.index,T.status){case"deleted":for(;v<R;)p(v++);S===a&&(h=g[v],h.$&&(h.$.s(),h.$=a),f.a.Ua(h.Y,r).length&&(s.beforeRemove&&(y.push(h),_++,h.Aa===n?h=null:w.push(h)),h&&x.push.apply(x,h.Y))),v++;break;case"added":for(;b<R;)p(v++);S!==a?(C.push(y.length),p(S)):c(T.value)}for(;b<i.length;)p(v++);y._countWaitingForRemove=_}f.a.g.set(r,t,y),d(s.beforeMove,P),f.a.C(x,s.beforeRemove?f.na:f.removeNode);var q,E,O;try{O=r.ownerDocument.activeElement}catch(e){}if(C.length)for(;(k=C.shift())!=a;){for(h=y[k],q=a;k;)if((E=y[--k].Y)&&E.length){q=E[E.length-1];break}for(i=0;v=h.Y[i];q=v,i++)f.h.Vb(r,v,q)}for(k=0,C=f.h.firstChild(r);h=y[k];k++){for(h.Y||f.a.extend(h,e(r,o,h.Aa,l,h.nb)),i=0;v=h.Y[i];C=v.nextSibling,q=v,i++)v!==C&&f.h.Vb(r,v,q);!h.Dd&&l&&(l(h.Aa,h.Y,h.nb),h.Dd=!0,q=h.Y[h.Y.length-1])}for(O&&r.ownerDocument.activeElement!=O&&O.focus(),d(s.beforeRemove,w),k=0;k<w.length;++k)w[k].Aa=n;d(s.afterMove,P),d(s.afterAdd,V)}}(),f.b("utils.setDomNodeChildrenFromArrayMapping",f.a.cc),f.ba=function(){this.allowTemplateRewriting=!1},f.ba.prototype=new f.ca,f.ba.prototype.constructor=f.ba,f.ba.prototype.renderTemplateSource=function(e,t,n,r){return(t=(9>f.a.W?0:e.nodes)?e.nodes():null)?f.a.la(t.cloneNode(!0).childNodes):(e=e.text(),f.a.ta(e,r))},f.ba.Na=new f.ba,f.ec(f.ba.Na),f.b("nativeTemplateEngine",f.ba),function(){f.Za=function(){var e=this.Gd=function(){if(!c||!c.tmpl)return 0;try{if(0<=c.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(t,n,r,i){if(i=i||l,r=r||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=t.data("precompiled");return o||(o=t.text()||"",o=c.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),t.data("precompiled",o)),t=[n.$data],n=c.extend({koBindingContext:n},r.templateOptions),n=c.tmpl(o,t,n),n.appendTo(i.createElement("div")),c.fragments={},n},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){l.write("<script type='text/html' id='"+e+"'>"+t+"<\/script>")},0<e&&(c.tmpl.tag.ko_code={open:"__.push($1 || '');"},c.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},f.Za.prototype=new f.ca,f.Za.prototype.constructor=f.Za;var e=new f.Za;0<e.Gd&&f.ec(e),f.b("jqueryTmplTemplateEngine",f.Za)}()})}()}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={commentPrefix:"-Comment",webserviceEncodeParameters:!0,useCachingForChoicesRestfull:!0,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey",itemValueSeparator:"|",defaultLocaleName:"default",matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,matrixMaxRowCountInCondition:1,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20,disableOnGettingChoicesFromWeb:!1,serializeLocalizableStringAsObject:!1,allowShowEmptyTitleInDesignMode:!0,allowShowEmptyDescriptionInDesignMode:!0,executeCompleteTriggerOnValueChanged:!1,executeSkipTriggerOnValueChanged:!0,readOnlyCommentRenderMode:"textarea",confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"initial",maximumConditionRunCountOnValueChanged:10,setQuestionVisibleIndexForHiddenTitle:!1,setQuestionVisibleIndexForHiddenNumber:!1,lazyRowsRendering:!1,showItemsInOrder:"default"}},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(5)),a=n(4),s=n(15);n.d(t,"a",function(){return l});var l=function(e){function t(t){var n=e.call(this,t)||this;n.question=t,n._koValue=i.observableArray();var r=!1;n._koValue.subscribe(function(e){r||(n.question.value=e)}),n.toggleStateByClick=function(){return n.question.toggleState(),!!n.question.isExpanded||!n.question.isCollapsed&&void 0},n.toggleStateByKeyUp=function(e,t){13===t.which&&n.toggleStateByClick()},Object.defineProperty(n.question,"koValue",{get:function(){if(!a.a.isTwoValueEquals(n._koValue(),n.getKoValue()))try{r=!0,n._koValue(n.getKoValue())}finally{r=!1}return n._koValue},enumerable:!0,configurable:!0});var o=n;return t.surveyLoadCallback=function(){o.onSurveyLoad()},n.koTemplateName=i.pureComputed(function(){return o.getTemplateName()}),n.koElementType=i.observable("survey-question"),n.question.koElementType=n.koElementType,n.question.koTemplateName=n.koTemplateName,n.question.updateQuestion=function(){o.updateQuestion()},n.question.koCss=i.pureComputed(function(){return o.question.cssClasses}),n.question.koRootCss=i.pureComputed(function(){var e=o.question.cssRoot;return o.question.isReadOnly&&(e+=" "+o.question.cssClasses.disabled),e}),n.question.toggleStateByClick=n.toggleStateByClick,n.question.toggleStateByKeyUp=n.toggleStateByKeyUp,n.question.koErrorClass=i.pureComputed(function(){return o.question.cssError}),t.registerFunctionOnPropertyValueChanged("visibleIndex",function(){o.onVisibleIndexChanged()}),n.koDummy=i.observable(0),n.question.koQuestionAfterRender=function(e,t){o.koQuestionAfterRender(e,t)},n}return n.i(r.b)(t,e),t.prototype.getKoValue=function(){return this.question.value},t.prototype.updateQuestion=function(){this.updateKoDummy()},t.prototype.onVisibleIndexChanged=function(){this.updateKoDummy()},t.prototype.onSurveyLoad=function(){},t.prototype.getQuestionTemplate=function(){return this.question.getTemplate()},t.prototype.getTemplateName=function(){return this.question.customWidget&&!this.question.customWidget.widgetJson.isDefaultRender?"survey-widget-"+this.question.customWidget.name:"survey-question-"+this.getQuestionTemplate()},t.prototype.getNo=function(){return this.question.visibleIndex>-1?this.question.visibleIndex+1+". ":""},t.prototype.updateKoDummy=function(){this.koDummy(this.koDummy()+1),this.question.locTitle.onChanged()},t.prototype.koQuestionAfterRender=function(e,t){var n=this,r=o.a.GetFirstNonTextElement(e,!0);r&&(this.question.afterRenderQuestionElement(r),this.question.customWidget&&this.question.customWidget.afterRender(this.question,r),i.utils.domNodeDisposal.addDisposeCallback(r,function(){if(n.question.beforeDestroyQuestionElement(r),n.question.customWidget)try{n.question.customWidget.willUnmount(n.question,r)}catch(e){console.warn("Custom widget will unmount failed")}}))},t.prototype.changeExpanded=function(){if(this.question.isCollapsed||this.question.isExpanded)return this.question.isCollapsed?(this.question.expand(),!0):(this.question.collapse(),!1)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.koTemplateName.dispose(),this.question.koCss.dispose(),this.question.koErrorClass.dispose(),this.question.unRegisterFunctionOnPropertyValueChanged("visibleIndex"),this.question.updateQuestion=void 0,this.question.koQuestionAfterRender=void 0},t}(s.a)},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(1),a=n(5),s=n(2),l=n(12),u=n(36),c=n(14),p=n(10),d=n(29),h=n(7),f=n(34);n.d(t,"a",function(){return g});var g=function(e){function t(n){var r=e.call(this,n)||this;r.name=n,r.conditionRunner=null,r.isCustomWidgetRequested=!1,r.customWidgetData={isNeedRender:!0},r.isReadyValue=!0,r.onReadyChanged=new a.c,r.parentQuestionValue=null,r.isRunningValidatorsValue=!1,r.isValueChangedInSurvey=!1,r.allowNotifyValueChanged=!0,r.locNotificationInData=!1,r.locOwner=null,r.id=t.getQuestionId(),r.onCreating();var i=r;r.createNewArray("validators",function(e){e.errorOwner=i});var o=r.createLocalizableString("title",r,!0);return o.onGetTextCallback=function(e){return e||(e=i.name),i.survey?i.survey.getUpdatedQuestionTitle(i,e):e},r.locProcessedTitle=new c.a(r,!0),r.locProcessedTitle.sharedData=o,r.createLocalizableString("commentText",r,!0).onGetTextCallback=function(e){return e||s.a.getString("otherItemText")},r.createLocalizableString("requiredErrorText",r),r.registerFunctionOnPropertyValueChanged("width",function(){i.updateElementCss(),i.parent&&i.parent.elementWidthChanged(i)}),r.registerFunctionOnPropertiesValueChanged(["indent","rightIndent"],function(){i.onIndentChanged()}),r.registerFunctionOnPropertiesValueChanged(["hasComment","hasOther"],function(){i.initCommentFromSurvey()}),r}return n.i(r.b)(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===h.a.readOnlyCommentRenderMode},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!0,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!0,configurable:!0}),t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!0,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!0,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!0,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible),this.isVisible&&this.survey&&this.survey.isClearValueOnHidden&&this.updateValueWithDefaults(),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},Object.defineProperty(t.prototype,"useDisplayValuesInTitle",{get:function(){return this.getPropertyValue("useDisplayValuesInTitle",!0)},set:function(e){this.setPropertyValue("useDisplayValuesInTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e),this.runConditions()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(this.visible||this.areInvisibleElementsShowing)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber",!1)},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"question"},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:e.prototype.getProgressInfo.call(this)},t.prototype.runConditions=function(){!this.data||this.isLoadingFromJson||this.isDesignMode||(this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.survey&&this.survey.questionCreated(this),this.survey&&this.survey.isDesignMode&&!this.isDesignMode&&this.onVisibleChanged(),this.runConditions()},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():null},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e),this.updateElementCss(),this.onParentChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!0,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e},t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(),t&&this.notifySurveyVisibilityChanged()},enumerable:!0,configurable:!0}),t.prototype.notifySurveyVisibilityChanged=function(){this.survey&&!this.isLoadingFromJson&&(this.survey.questionVisibilityChanged(this,this.isVisible),this.survey.isClearValueOnHidden&&!this.visible&&this.clearValue())},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.name)},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()},enumerable:!0,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){if(this.hasInput){var e=this;return function(){return e.focus(),!0}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText",s.a.getString("otherItemText"))},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!0,configurable:!0}),t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=d.a.Instance.getCustomWidget(this)},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e))},t.prototype.beforeDestroyQuestionElement=function(e){},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locProcessedTitle.textOrHtml;return e||this.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine",!0)},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e=this.css,t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),this.survey&&this.survey.updateQuestionCssClasses(this,t),this.updateElementCssCore(t),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.getPropertyValue("cssRoot","")},enumerable:!0,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(e){var t=this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot;return t||(t=""),!this.isFlowLayout&&this.hasTitleOnLeft&&e.titleLeftRoot&&(t+=" "+e.titleLeftRoot),this.errors.length>0&&e.hasError&&(t+=" "+e.hasError),e.small&&!this.width&&(t+=" "+e.small),t},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.getPropertyValue("cssHeader","")},enumerable:!0,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){var t=e.header||"";return this.hasTitleOnTop&&e.headerTop&&(t+=" "+e.headerTop),this.hasTitleOnLeft&&e.headerLeft&&(t+=" "+e.headerLeft),this.hasTitleOnBottom&&e.headerBottom&&(t+=" "+e.headerBottom),t},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.getPropertyValue("cssContent","")},enumerable:!0,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){var t=e.content||"";return this.hasTitleOnLeft&&e.contentLeft&&(t+=" "+e.contentLeft),t},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getPropertyValue("cssTitle","")},enumerable:!0,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(e){var t=e.title;return(this.isCollapsed||this.isExpanded)&&(t+=" "+e.titleExpandable),this.containsErrors?e.titleOnError&&(t+=" "+e.titleOnError):this.isAnswered&&e.titleOnAnswer&&(t+=" "+e.titleOnAnswer),t},Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getPropertyValue("cssError","")},enumerable:!0,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){var t=e.error.root||"";return"top"==this.errorLocation?e.error.locationTop&&(t+=" "+e.error.locationTop):"bottom"===this.errorLocation&&e.error.locationBottom&&(t+=" "+e.error.locationBottom),t},t.prototype.updateElementCss=function(){this.isLoadingFromJson||this.updateElementCssCore(this.cssClasses)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){this.isRequired&&(t.question.required&&(e.root=(e.root?e.root+" ":"")+n),t.question.titleRequired&&(e.title+=" "+t.question.titleRequired));var n=t[this.getCssType()];if(void 0!==n&&null!==n)if("string"==typeof n||n instanceof String)e.root=(e.root?e.root+" ":"")+n;else for(var r in n)e[r]=n[r]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth",h.a.minWidth)},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth",h.a.maxWidth)},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent",0)},set:function(e){this.setPropertyValue("indent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddintLeft","")},set:function(e){this.setPropertyValue("paddintLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!0,configurable:!0}),t.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e){if(void 0===e&&(e=!1),!this.isDesignMode){this.survey&&this.survey.scrollElementToTop(this,this,null,this.id);var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();a.a.FocusElement(t)&&this.fireCallback(this.focusCallback)}},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(n)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[n]||e.name]},t.prototype.supportComment=function(){return!1},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired",!1)},set:function(e){this.isRequired!=e&&(this.setPropertyValue("isRequired",e),this.isLoadingFromJson||this.locTitle.onChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e),this.runConditions()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.getPropertyValue("hasComment",!1)},set:function(e){this.supportComment()&&(this.setPropertyValue("hasComment",e),this.hasComment&&(this.hasOther=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.getPropertyValue("hasOther",!1)},set:function(e){this.supportOther()&&this.hasOther!=e&&(this.setPropertyValue("hasOther",e),this.hasOther&&(this.hasComment=!1),this.hasOtherChanged())},enumerable:!0,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e),this.runConditions()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(e,t){this.isDesignMode||(t||(t={}),t.question=this,this.areInvisibleElementsShowing||this.runVisibleIfCondition(e,t),this.runEnableIfCondition(e,t),this.runRequiredIfCondition(e,t))},t.prototype.runVisibleIfCondition=function(e,t){var n=this;this.visibleIf&&(this.conditionRunner||(this.conditionRunner=new p.a(this.visibleIf)),this.conditionRunner.expression=this.visibleIf,this.conditionRunner.onRunComplete=function(e){n.visible=e},this.conditionRunner.run(e,t))},t.prototype.runEnableIfCondition=function(e,t){var n=this;this.enableIf&&(this.conditionEnabelRunner||(this.conditionEnabelRunner=new p.a(this.enableIf)),this.conditionEnabelRunner.expression=this.enableIf,this.conditionEnabelRunner.onRunComplete=function(e){n.readOnly=!e},this.conditionEnabelRunner.run(e,t))},t.prototype.runRequiredIfCondition=function(e,t){var n=this;this.requiredIf&&(this.conditionRequiredRunner||(this.conditionRequiredRunner=new p.a(this.requiredIf)),this.conditionRequiredRunner.expression=this.requiredIf,this.conditionRequiredRunner.onRunComplete=function(e){n.isRequired=e},this.conditionRequiredRunner.run(e,t))},Object.defineProperty(t.prototype,"no",{get:function(){if(!this.hasTitle||this.hideNumber)return"";var e=i.a.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedQuestionNo(this,e)),e},enumerable:!0,configurable:!0}),t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.updateDisplayValue(),this.updateElementCss()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.updateElementCss()},t.prototype.initDataFromSurvey=function(){this.data&&(this.updateValueFromSurvey(this.data.getValue(this.getValueName())),this.initCommentFromSurvey())},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(this.survey&&e)return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValue("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!0,configurable:!0}),t.prototype.clearValue=function(){this.value=null,this.comment=null},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.isEditingSurveyElement=function(e){return a.b.isSurveyElement(e)},t.prototype.getUnbindValue=function(e){return this.isEditingSurveyElement(e)?e:i.a.getUnbindValue(e)},t.prototype.canClearValueAsInvisible=function(){return(!this.isVisible||!this.isParentVisible)&&((!this.page||!this.page.isStarted)&&(!this.survey||!this.valueName||!this.survey.hasVisibleQuestionByValueName(this.valueName)))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!0,configurable:!0}),t.prototype.clearValueIfInvisible=function(){this.canClearValueAsInvisible()&&this.clearValue()},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.updateDisplayValue(),this.getPropertyValue("displayValue","")},enumerable:!0,configurable:!0}),t.prototype.updateDisplayValue=function(){this.isLoadingFromJson||this.setPropertyValue("displayValue",this.getDisplayValue(!0))},t.prototype.getDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var n=this.customWidget.getDisplayValue(this,t);if(n)return n}return t=void 0==t?this.createValueCopy():t,i.a.isValueEmpty(t)?"":this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){if(this.isValueExpression(e))return void(this.defaultValueExpression=e.substr(1));this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.updateValueWithDefaults()},enumerable:!0,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(void 0===e&&(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var n={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(n.questionType=this.getType()),(e.calculations||[]).forEach(function(e){n[e.propertyName]=t[e.propertyName]}),this.hasComment&&(n.isNode=!0,n.data=[{name:0,isComment:!0,title:"Comment",value:h.a.commentPrefix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),n}},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!0,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!i.a.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!0,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.isTwoValueEquals(this.value,this.correctAnswer,!0)?1:0},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||(this.isDesignMode||this.isEmpty())&&(this.isEmpty()&&this.isDefaultValueEmpty()||this.survey&&this.survey.isClearValueOnHidden&&!this.isVisible||this.setDefaultValue())},t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue)},t.prototype.setDefaultValue=function(){this.value=this.getValueAndRunExpression(this.getUnbindValue(this.defaultValue),this.defaultValueExpression)},t.prototype.isValueExpression=function(e){return!!e&&"string"==typeof e&&e.length>0&&"="==e[0]},t.prototype.getValueAndRunExpression=function(e,t){return t&&(e=this.runExpression(t)),e?(e instanceof Date&&(e=e.toISOString().slice(0,10)),e):e},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){e&&(e=e.toString().trim()),this.comment!=e&&this.setQuestionComment(e)},enumerable:!0,configurable:!0}),t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!0,configurable:!0}),t.prototype.updateIsAnswered=function(){this.setPropertyValue("isAnswered",this.getIsAnswered())},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!0,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){var e=[];return this.addSupportedValidators(e),e},t.prototype.addSupportedValidators=function(e){e.push("expression")},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getValueName(),text:this.processedTitle,question:this})},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var n=(new o.c).toJsonObject(this);return n.type=this.getType(),n},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var n=this.errors.length>0,r=this.checkForErrors(!!t&&!0===t.isOnValueChanged);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,r),this.errors=r),this.updateContainsErrors(),n!=r.length>0&&this.updateElementCss(),this.isCollapsed&&t&&e&&r.length>0&&this.expand(),r.length>0},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!0,configurable:!0}),t.prototype.addError=function(e){if(e){var t=null;t="string"==typeof e||e instanceof String?new l.b(e,this.survey):e,this.errors.push(t)}},t.prototype.removeError=function(e){var t=this.errors,n=t.indexOf(e);-1!==n&&t.splice(n,1)},t.prototype.checkForErrors=function(e){var t=new Array;return this.isVisible&&!this.isReadOnly&&this.collectErrors(t,e),t},t.prototype.collectErrors=function(e,t){if(this.onCheckForErrors(e,t),!(e.length>0)&&this.canRunValidators(t)){var n=this.runValidators();if(n.length>0){e.length=0;for(var r=0;r<n.length;r++)e.push(n[r])}if(this.survey&&0==e.length){var i=this.fireSurveyValidation();i&&e.push(i)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t){!t&&this.hasRequiredError()&&e.push(new l.c(this.requiredErrorText,this))},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!0,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new u.a,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){var t=this.isAnswered;this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isAnswered!=t&&this.updateElementCss()},t.prototype.isTextValue=function(){return!1},Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},enumerable:!0,configurable:!0}),t.prototype.getDataLocNotification=function(){return this.locNotificationInData?this.locNotificationInData:!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.isSurveyInputTextUpdate&&this.isTextValue()},enumerable:!0,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged)},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.setNewComment=function(e){this.questionComment=e,null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.isSurveyInputTextUpdate&&"text")},t.prototype.getValidName=function(e){return e?e.trim().replace(/[\{\}]+/g,""):e},t.prototype.updateValueFromSurvey=function(e){e=this.getUnbindValue(e),this.setQuestionValue(this.valueFromData(e))},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0),this.questionValue=e,this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){this.isLoadingFromJson||this.updateDisplayValue()},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!h.a.setQuestionVisibleIndexForHiddenTitle||this.hideNumber&&!h.a.setQuestionVisibleIndexForHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.checkBindings=function(e,t){if(!this.bindings.isEmpty()&&this.data)for(var n=this.bindings.getPropertiesByValueName(e),r=0;r<n.length;r++)this[n[r]]=t},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):null},t.prototype.getProcessedText=function(e){return this.textProcessor?this.textProcessor.processText(e,this.useDisplayValuesInTitle):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getComponentName=function(){return f.a.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||"default"===this.renderAs||"default"===this.getComponentName()},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getErrorCustomText(e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.dispose=function(){},t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,n.i(r.c)([n.i(o.e)({localizable:!0})],t.prototype,"description",void 0),n.i(r.c)([n.i(o.e)({defaultValue:"default"})],t.prototype,"renderAs",void 0),t}(a.a);o.b.addClass("question",["!name",{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0},{name:"useDisplayValuesInTitle:boolean",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",default:h.a.minWidth},{name:"maxWidth",default:h.a.maxWidth},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row"},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(t&&"off"===t.showQuestionNumbers)return!1;var n=e?e.survey:null;return!n||"off"!==n.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},"valueName","enableIf:condition","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value","isRequired:switch","requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:switch",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(e){return e.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1}]),o.b.addAlterNativeClassName("question","questionbase")},function(e,t,n){"use strict";var r=n(0),i=n(16),o=n(43);n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l});var a=function(){function e(e){this.processValue=new i.a,this.parser=new o.a,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},set:function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},enumerable:!0,configurable:!0}),e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!0,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.runCore=function(e,t){var n=this;if(void 0===t&&(t=null),!this.operand)return null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].onAsyncReady=function(){n.doAsyncFunctionReady()};for(var r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.doOnComplete(e),e},e.prototype.doOnComplete=function(e){},e}(),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.i(r.b)(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(1==e)},t}(a),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.i(r.b)(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(e)},t}(a)},function(e,t,n){"use strict";var r=n(0),i=n(14),o=n(1),a=n(4),s=n(10),l=n(5),u=n(7);n.d(t,"a",function(){return c});var c=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="itemvalue");var a=e.call(this)||this;return a.typeName=r,a.ownerPropertyName="",a.isVisibleValue=!0,a.locTextValue=new i.a(null,!0),a.locTextValue.onGetTextCallback=function(e){return e||(a.isValueItemEmpty?null:a.value.toString())},n&&(a.locText.text=n),t&&"object"==typeof t?a.setData(t):a.value=t,"itemvalue"!=a.getType()&&o.a.createProperties(a),a.onCreating(),a}return n.i(r.b)(t,e),Object.defineProperty(t,"Separator",{get:function(){return u.a.itemValueSeparator},set:function(e){u.a.itemValueSeparator=e},enumerable:!0,configurable:!0}),t.createArray=function(e){var n=[];return t.setupArray(n,e),n},t.setupArray=function(e,t){e.push=function(e){var n=Array.prototype.push.call(this,e);return e.locOwner=t,n},e.unshift=function(e){var n=Array.prototype.unshift.call(this,e);return e.locOwner=t,n},e.splice=function(e,i){for(var o,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];var l=(o=Array.prototype.splice).call.apply(o,n.i(r.d)([this,e,i],a));a||(a=[]);for(var u=0;u<a.length;u++)a[u].locOwner=t;return l}},t.setData=function(e,n){e.length=0;for(var r=0;r<n.length;r++){var i,a=n[r];i="function"==typeof a.getType?o.b.createClass(a.getType()):new t(null),i.setData(a),a.originalItem&&(i.originalItem=a.originalItem),e.push(i)}},t.getData=function(e){for(var t=new Array,n=0;n<e.length;n++)t.push(e[n].getData());return t},t.getItemByValue=function(e,t){for(var n=0;n<e.length;n++)if(a.a.isTwoValueEquals(e[n].value,t))return e[n];return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return null!==r?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locText.strChanged()},t.runConditionsForItems=function(e,n,r,i,o,a){return void 0===a&&(a=!0),t.runConditionsForItemsCore(e,n,r,i,o,!0,a)},t.runEnabledConditionsForItems=function(e,n,r,i,o){return t.runConditionsForItemsCore(e,null,n,r,i,!1,!0,o)},t.runConditionsForItemsCore=function(e,t,n,r,i,o,a,s){void 0===a&&(a=!0),r||(r={});for(var l=r.item,u=r.choice,c=!1,p=0;p<e.length;p++){var d=e[p];r.item=d.value,r.choice=d.value;var h=!(!a||!d.getConditionRunner)&&d.getConditionRunner(o);h||(h=n);var f=!0;h&&(f=h.run(r,i)),f&&s&&(f=s(d)),t&&f&&t.push(d);f!=(o?d.isVisible:d.isEnabled)&&(c=!0,o?d.setIsVisible&&d.setIsVisible(f):d.setIsEnabled&&d.setIsEnabled(f))}return l?r.item=l:delete r.item,u?r.choice=u:delete r.choice,c},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getLocale=function(){return this.locText.locale},Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!0,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this.locText.owner},set:function(e){this.locText.owner=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue},set:function(e){var t=this.itemValue;if(this.itemValue=e,this.propertyValueChanged("value",t,this.itemValue),this.itemValue){var n=this.itemValue.toString(),r=n.indexOf(u.a.itemValueSeparator);r>-1?(this.itemValue=n.slice(0,r),this.text=n.slice(r+1)):this.hasText||this.locText.onChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){var t=this.locText.text;this.locText.text=e,this.propertyValueChanged("text",t,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!0,configurable:!0}),t.prototype.getData=function(){var e=this.toJSON();return e.value&&e.value.pos&&delete e.value.pos,1!=Object.keys(e).length||a.a.isValueEmpty(e.value)?e:this.value},t.prototype.toJSON=function(){var e={},t=o.b.getProperties(this.getType());t&&0!=t.length||(t=o.b.getProperties("itemvalue"));for(var n=new o.c,r=0;r<t.length;r++)n.valueToJson(this,e,t[r]);return e},t.prototype.setData=function(e){if(!a.a.isValueEmpty(e))if(void 0!==e.value){var t=e;"function"==typeof e.toJSON&&(t=e.toJSON()),(new o.c).toObject(t,this)}else this.value=e},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.isVisibleValue},enumerable:!0,configurable:!0}),t.prototype.setIsVisible=function(e){this.isVisibleValue=e},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.getPropertyValue("isEnabled",!0)},enumerable:!0,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.onPropertyValueChanged=function(e,t,n){var r="itemValuePropertyChanged";this.locOwner&&this.locOwner[r]&&this.locOwner[r](this,e,t,n)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new s.a(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new s.a(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"isValueItemEmpty",{get:function(){return!this.itemValue&&0!==this.itemValue&&!1!==this.itemValue},enumerable:!0,configurable:!0}),t}(l.b);l.b.createItemValue=function(e,t){var n=null;return n=t?o.c.metaData.createClass(t,{}):"function"==typeof e.getType?new c(null,void 0,e.getType()):new c(null),n.setData(e),n},l.b.itemValueLocStrChanged=function(e){c.locStrsChanged(e)},o.d.getItemValuesDefaultValue=function(e){var t=new Array;return c.setData(t,e||[]),t},o.b.addClass("itemvalue",["value",{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form"}],function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(2),o=n(5);n.d(t,"c",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"l",function(){return u}),n.d(t,"g",function(){return c}),n.d(t,"f",function(){return p}),n.d(t,"e",function(){return d}),n.d(t,"k",function(){return h}),n.d(t,"j",function(){return f}),n.d(t,"i",function(){return g}),n.d(t,"h",function(){return m}),n.d(t,"b",function(){return y});var a=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return i.a.getString("requiredError")},t}(o.d),s=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return i.a.getString("requiredErrorInPanel")},t}(o.d),l=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return i.a.getString("numericError")},t}(o.d),u=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.maxSize=t,r.locText.text=r.getText(),r}return n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return i.a.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){var e=["Bytes","KB","MB","GB","TB"],t=[0,0,2,3,3];if(0===this.maxSize)return"0 Byte";var n=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,n)).toFixed(t[n])+" "+e[n]},t}(o.d),c=function(e){function t(t,n,r){void 0===r&&(r=null);var i=e.call(this,null,r)||this;return i.status=t,i.response=n,i}return n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){return i.a.getString("urlRequestError").format(this.status,this.response)},t}(o.d),p=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return i.a.getString("urlGetChoicesError")},t}(o.d),d=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return i.a.getString("otherRequiredError")},t}(o.d),h=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return i.a.getString("uploadingFile")},t}(o.d),f=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return i.a.getString("requiredInAllRowsError")},t}(o.d),g=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.minRowCount=t,r}return n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return i.a.getString("minRowCountError").format(this.minRowCount)},t}(o.d),m=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return i.a.getString("keyDuplicationError")},t}(o.d),y=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"custom"},t}(o.d)},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});var r={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:i;return e||(e=i),e}},i={root:"sv_main sv_default_css",container:"sv_container",header:"sv_header",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",materialDecorator:"sv-item__decorator sv-boolean__decorator ",itemDecorator:"sv-item__svg  sv-boolean__svg",checkedPath:"sv-boolean__checked-path",uncheckedPath:"sv-boolean__unchecked-path",indeterminatePath:"sv-boolean__indeterminate-path"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",materialDecorator:"checkbox-material",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},comment:"",dropdown:{root:"",control:"sv_q_dropdown_control",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",row:"sv_q_mt_row",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",materialDecorator:"circle",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",disabled:""},text:"sv_q_text_root",expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",removeFileSvg:"sv-hidden",fileDecorator:"sv-file__decorator",fileSignBottom:"sv-hidden",removeButtonBottom:"sv-hidden",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder"},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}}};r.standard=i},function(e,t,n){"use strict";var r=n(4),i=n(2),o=n(7);n.d(t,"a",function(){return a});var a=function(){function e(e,t,n){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=n,this.values={},this.htmlValues={},this.renderedText=null,this.calculatedTextValue=null,this.onGetTextCallback=null,this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return o.a.defaultLocaleName},set:function(e){o.a.defaultLocaleName=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!0,configurable:!0}),e.prototype.strChanged=function(){null!==this.renderedText&&(this.calculatedTextValue=this.calText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=null,this.calculatedTextValue=null,this.onChanged()))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=null!==this.calculatedTextValue?this.calculatedTextValue:this.calText(),this.calculatedTextValue=null,this.renderedText},enumerable:!0,configurable:!0}),e.prototype.calText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=o.a.defaultLocaleName);var t=this.getValue(e);return t||e!=o.a.defaultLocaleName||(t=this.getValue(i.a.defaultLocale)),t||e===o.a.defaultLocaleName||(t=this.getValue(o.a.defaultLocaleName)),t||(t=""),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!0,configurable:!0}),e.prototype.getLocaleText=function(e){e||(e=o.a.defaultLocaleName);var t=this.getValue(e);return t||""},e.prototype.setLocaleText=function(e,t){t!=this.getLocaleText(e)&&(t&&e&&e!=o.a.defaultLocaleName&&!this.getValue(e)&&t==this.getLocaleText(o.a.defaultLocaleName)||(e||(e=o.a.defaultLocaleName),delete this.htmlValues[e],t?"string"==typeof t&&(e!=o.a.defaultLocaleName&&t==this.getLocaleText(o.a.defaultLocaleName)?this.setLocaleText(e,null):(this.setValue(e,t),e==o.a.defaultLocaleName&&this.deleteValuesEqualsToDefault(t))):this.getValue(e)&&this.deleteValue(e),this.strChanged()))},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=o.a.defaultLocaleName)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=o.a.defaultLocaleName||o.a.serializeLocalizableStringAsObject?this.values:this.values[e[0]]},e.prototype.setJson=function(e){if(this.sharedData)return void this.sharedData.setJson(e);if(this.values={},this.htmlValues={},e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&r.a.isTwoValueEquals(this.values,e.values)},e.prototype.onChanged=function(){this.onStrChanged&&this.onStrChanged()},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.calculatedText;if(!e)return!1;var t=this.locale;return t||(t=o.a.defaultLocaleName),this.htmlValues[t]=this.owner.getMarkdownHtml(e,this.name),!!this.htmlValues[t]},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=o.a.defaultLocaleName),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=o.a.defaultLocaleName&&this.getValue(t[n])==e&&this.deleteValue(t[n])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[e]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[e]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[e]},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},e.SerializeAsObject=!1,e}()},function(e,t,n){"use strict";var r=n(6);n.n(r);n.d(t,"a",function(){return i});var i=function(){function e(t){this.element=t,t.iteratePropertiesHash(function(t,n){e.doIterateProperties(t,n)}),t.createArrayCoreHandler=function(e,n){var i=r.observableArray();return i().onArrayChanged=function(){t.isLoadingFromJson||i.notifySubscribers()},e[n]=i,i()},t.getPropertyValueCoreHandler=function(e,t){return void 0===e[t]&&(e[t]=r.observable()),"function"==typeof e[t]?e[t]():e[t]},t.setPropertyValueCoreHandler=function(e,t,n){return void 0!==e[t]?e[t](n):e[t]=r.observable(n)}}return e.doIterateProperties=function(e,t){var n=e[t];"function"!==n&&(Array.isArray(n)?(e[t]=r.observableArray(n),n.onArrayChanged=function(){return e[t].notifySubscribers()}):e[t]=r.observable(n))},e.prototype.dispose=function(){this.element.iteratePropertiesHash(function(e,t){delete e[t]}),this.element.createArrayCoreHandler=void 0,this.element.getPropertyValueCoreHandler=void 0,this.element.setPropertyValueCoreHandler=void 0},e}()},function(e,t,n){"use strict";var r=n(4);n.d(t,"a",function(){return i});var i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var n="";if(t&&(n=this.getFirstPropertyName(e,t)))return n;for(var r=0;r<e.length;r++){var i=e[r];if("."==i||"["==i)break;n+=i}return n},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,n){if(t){var r=this.getNonNestedObject(e,t,!0);r&&(e=r.value,t=r.text,e&&t&&(e[t]=n))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!r.a.isValueEmpty(e.value),void(!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null},e.prototype.getValueFromPath=function(e,t){for(var n=0;t&&n<e.length;){var i=e[n];if(r.a.isNumber(i)&&Array.isArray(t)&&i>=t.length)return null;t=t[i],n++}return t},e.prototype.getValueCore=function(e,t){var n={hasValue:!1,value:null,path:null},i=t;if(!i&&0!==i&&!1!==i)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-".length".length&&(n.value=0,n.hasValue=!0);var o=this.getNonNestedObject(i,e,!1);return o?(n.path=o.path,n.value=o.text?this.getObjectValue(o.value,o.text):o.value,n.hasValue=!r.a.isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t,n){for(var i=this.getFirstPropertyName(t,e,n),o=i?[i]:null;t!=i&&e;){if("["==t[0]){var a=this.getObjInArray(e,t);if(!a)return null;e=a.value,t=a.text,o.push(a.index)}else{if(!i&&t==this.getFirstName(t))return{value:e,text:t,path:o};if(e=this.getObjectValue(e,i),r.a.isValueEmpty(e)&&!n)return null;t=t.substr(i.length)}t&&"."==t[0]&&(t=t.substr(1)),i=this.getFirstPropertyName(t,e,n),i&&o.push(i)}return{value:e,text:t,path:o}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var n=1,r="";n<t.length&&"]"!=t[n];)r+=t[n],n++;return t=n<t.length?t.substr(n+1):"",n=this.getIntValue(r),n<0||n>=e.length?null:{value:e[n],text:t,index:n}},e.prototype.getFirstPropertyName=function(e,t,n){if(void 0===n&&(n=!1),!e)return e;if(t||(t={}),t.hasOwnProperty(e))return e;var r=e.toLowerCase(),i=r[0],o=i.toUpperCase();for(var a in t){var s=a[0];if(s===o||s===i){var l=a.toLowerCase();if(l==r)return a;if(r.length<=l.length)continue;var u=r[l.length];if("."!=u&&"["!=u)continue;if(l==r.substr(0,l.length))return a}}if(n&&"["!==e[0]){var c=e.indexOf(".");return c>-1&&(e=e.substr(0,c),t[e]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},function(e,t,n){"use strict";var r=n(0),i=n(8);n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var o=function(e){function t(t){var n=e.call(this,t)||this;return n.onCreated(),n}return n.i(r.b)(t,e),t.prototype.onCreated=function(){},Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.question.isOtherSelected},enumerable:!0,configurable:!0}),t}(i.a),a=function(e){function t(t){var n=e.call(this,t)||this;return n.question.koAfterRender=n.koAfterRender,n}return n.i(r.b)(t,e),t.prototype.koAfterRender=function(e,t){var n=e[0];"#text"==n.nodeName&&(n.data=""),n=e[e.length-1],"#text"==n.nodeName&&(n.data="")},t}(o)},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(4),a=n(5),s=n(9),l=n(10),u=n(3),c=n(12),p=n(7),d=n(25);n.d(t,"c",function(){return h}),n.d(t,"a",function(){return f}),n.d(t,"d",function(){return g}),n.d(t,"b",function(){return m});var h=function(){function e(e,t,n){void 0===n&&(n=-1),this.source=e,this.target=t,this.nestedPanelDepth=n}return e}(),f=function(e){function t(n){var r=e.call(this)||this;return r.panel=n,r._scrollableParent=void 0,r._updateVisibility=void 0,r.idValue=t.getRowId(),r.isNeedRender=!p.a.lazyRowsRendering,r.visible=n.areInvisibleElementsShowing,r.createNewArray("elements"),r}return n.i(r.b)(t,e),t.getRowId=function(){return"pr_"+t.rowCounter++},t.prototype.startLazyRendering=function(e){var t=this;this._scrollableParent=n.i(d.a)(e),this._updateVisibility=function(){var r=n.i(d.b)(e,50);!t.isNeedRender&&r&&(t.isNeedRender=!0,t.stopLazyRendering())},setTimeout(function(){t._scrollableParent.addEventListener("scroll",t._updateVisibility),t._updateVisibility()},10)},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.elements.filter(function(e){return e.isVisible})},enumerable:!0,configurable:!0}),t.prototype.updateVisible=function(){this.visible=this.calcVisible(),this.setWidth()},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!0,configurable:!0}),t.prototype.setWidth=function(){var e=this.visibleElements.length;if(0!=e){for(var t=0,n=[],r=0;r<this.elements.length;r++){var i=this.elements[r];if(this.setElementMaxMinWidth(i),i.isVisible){var o=this.getElementWidth(i);o&&(i.renderWidth=this.getRenderedWidthFromWidth(o),n.push(i)),i.rightIndent=t<e-1?1:0,t++}else i.renderWidth=""}for(var r=0;r<this.elements.length;r++){var i=this.elements[r];!i.isVisible||n.indexOf(i)>-1||(0==n.length?i.renderWidth=(100/e).toFixed(6)+"%":i.renderWidth=this.getRenderedCalcWidth(i,n,e))}}},t.prototype.setElementMaxMinWidth=function(e){e.width&&"string"==typeof e.width&&-1===e.width.indexOf("%")&&(e.minWidth=e.width,e.maxWidth=e.width)},t.prototype.getRenderedCalcWidth=function(e,t,n){for(var r="100%",i=0;i<t.length;i++)r+=" - "+t[i].renderWidth;var o=n-t.length;return o>1&&(r="("+r+")/"+o.toString()),"calc("+r+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return o.a.isNumber(e)?e+"px":e},t.prototype.calcVisible=function(){return this.visibleElements.length>0},t.rowCounter=100,t}(a.b),g=function(e){function t(n){void 0===n&&(n="");var r=e.call(this,n)||this;return r.name=n,r.isQuestionsReady=!1,r.questionsValue=new Array,r.createNewArray("rows"),r.elementsValue=r.createNewArray("elements",r.onAddElement.bind(r),r.onRemoveElement.bind(r)),r.registerFunctionOnPropertyValueChanged("questionTitleLocation",r.onVisibleChanged.bind(r)),r.id=t.getPanelId(),r.createLocalizableString("title",r,!0),r.createLocalizableString("description",r,!0),r.createLocalizableString("requiredErrorText",r),r}return n.i(r.b)(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.isDesignMode&&this.onVisibleChanged();for(var n=0;n<this.elements.length;n++)this.elements[n].setSurveyImpl(t)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title")},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_showTitle",{get:function(){return this.survey.showPageTitles&&this.title.length>0||this.isDesignMode&&p.a.allowShowEmptyTitleInDesignMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_showDescription",{get:function(){return this.survey.showPageTitles&&this.description.length>0||this.isDesignMode&&p.a.allowShowEmptyTitleInDesignMode&&p.a.allowShowEmptyDescriptionInDesignMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!0,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):null},t.prototype.getProcessedText=function(e){return this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e={panel:{},error:{},row:""};return this.copyCssClasses(e.panel,this.css.panel),this.copyCssClasses(e.error,this.css.error),this.css.row&&(e.row=this.css.row),this.survey&&this.survey.updatePanelCssClasses(this,e),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var n=t.questions,r=0;r<n.length;r++)this.questionsValue.push(n[r]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!0,configurable:!0}),t.prototype.getValidName=function(e){return e?e.trim():e},t.prototype.getQuestionByName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].name==e)return t[n];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.name==e)return r;var i=r.getPanel();if(i){var o=i.getElementByName(e);if(o)return o}}return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].getValueName()==e)return t[n];return null},t.prototype.getValue=function(){for(var e={},t=this.questions,n=0;n<t.length;n++){var r=t[n];if(!r.isEmpty()){var i=r.getValueName();if(e[i]=r.value,this.data){var o=this.data.getComment(i);o&&(e[i+p.a.commentPrefix]=o)}}}return e},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],i=this.data.getComment(r.getValueName());i&&(e[r.getValueName()]=i)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!0,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];if(n==e)return!0;var r=n.getPanel();if(r&&r.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired",!1)},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),n=n||{fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1},this.hasErrorsCore(n),n.firstErrorQuestion&&n.firstErrorQuestion.focus(!0),n.result},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.survey){var n=this.survey.validatePanel(this);n&&(t.push(n),e.result=!0)}e.fireCallback&&(this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getErrorCustomText(e,t):e},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){var n=[];if(this.addQuestionsToList(n,!0),0!=n.length){for(var r=0;r<n.length;r++)if(!n[r].isEmpty())return;e.result=!0,t.push(new c.a(this.requiredErrorText,this)),e.focuseOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=n[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,n=null,r=0;r<t.length;r++)if(n=t[r],n.isVisible)if(n.isPanel)n.hasErrorsCore(e);else{var i=n;if(i.isReadOnly)continue;i.hasErrors(e.fireCallback,e)&&(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=i),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.elements,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue("isVisible",t.isVisible),t.isPanel&&t.updateElementVisibility()}},t.prototype.getFirstQuestionToFocus=function(e){void 0===e&&(e=!1);for(var t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.isVisible)if(r.isPanel){var i=r.getFirstQuestionToFocus(e);if(i)return i}else{var o=r;if(o.hasInput&&(!e||o.currentErrorCount>0))return o}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!1)},t.prototype.addPanelsIntoList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!0)},t.prototype.addElementsToList=function(e,t,n,r){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,n,r)},t.prototype.addElementsToListCore=function(e,t,n,r,i){for(var o=0;o<t.length;o++){var a=t[o];n&&!a.visible||((i&&a.isPanel||!i&&!a.isPanel)&&e.push(a),a.isPanel?a.addElementsToListCore(e,a.elements,n,r,i):r&&this.addElementsToListCore(e,a.getElementsInDesign(!1),n,r,i))}},Object.defineProperty(t.prototype,"isActive",{get:function(){return!this.survey||this.survey.currentPage==this.root},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return a.a.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRow=function(){return new f(this)},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this)},t.prototype.onFirstRendering=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onFirstRendering();this.onRowsChanged()},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!0,configurable:!0}),t.prototype.onRowsChanged=function(){this.isLoadingFromJson||this.setPropertyValue("rows",this.buildRows())},t.prototype.onAddElement=function(e,t){if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.updateRowsOnElementAdded(e,t),e.isPanel){var n=e;this.survey&&this.survey.panelAdded(n,t,this,this.root)}else if(this.survey){var r=e;this.survey.questionAdded(r,t,this,this.root)}this.addElementCallback&&this.addElementCallback(e);var i=this;e.registerFunctionOnPropertiesValueChanged(["visible","isVisible"],function(){i.onElementVisibilityChanged(e)},this.id),e.registerFunctionOnPropertyValueChanged("startWithNewLine",function(){i.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unRegisterFunctionOnPropertiesValueChanged(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),e.isPanel?this.survey&&this.survey.panelRemoved(e):this.survey&&this.survey.questionRemoved(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this)},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.onRowsChanged()},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,n=0;n<t.length;n++){var r=t[n];if(r.elements.indexOf(e)>-1){r.updateVisible();break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,t=0;t<this.elements.length;t++){var n=this.elements[t],r=0==t||n.startWithNewLine,i=r?this.createRow():e[e.length-1];r&&e.push(i),i.addElement(n)}for(var t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.updateRowsOnElementAdded=function(e,t){if(this.canBuildRows()){var n=new h(null,e);n.target=e,n.isEdge=this.elements.length>1,this.elements.length<2?n.destination=this:(n.isBottom=t>0,n.destination=0==t?this.elements[1]:this.elements[t-1]),this.dragDropAddTargetToRow(n,null)}},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e))},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(t&&t.panel){var n=t.elements.indexOf(e);n<0||(t.elements.splice(n,1),t.elements.length>0?t.updateVisible():t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.findRowByElement=function(e){for(var t=this.rows,n=0;n<t.length;n++)if(t[n].elements.indexOf(e)>-1)return t[n];return null},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!0,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!0,configurable:!0}),t.prototype.onVisibleChanged=function(){if(this.setPropertyValue("isVisible",this.isVisible),this.survey&&this.survey.isClearValueOnHiddenContainer&&!this.isLoadingFromJson)for(var e=this.questions,t=0;t<e.length;t++)this.isVisible?e[t].updateValueWithDefaults():e[t].clearValue()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!0,configurable:!0}),t.prototype.getIsPageVisible=function(e){if(!this.visible)return!1;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0){for(var t=0;t<this.elements.length;t++)this.elements[t].setVisibleIndex(-1);return 0}var n=e;e+=this.beforeSetVisibleIndex(e);for(var r=this.getPanelStartIndex(e),i=r,t=0;t<this.elements.length;t++)i+=this.elements[t].setVisibleIndex(i);return this.isContinueNumbering()&&(e+=i-r),e-n},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!0,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];n.setPropertyValue("isReadOnly",n.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(){for(var t=0;t<this.elements.length;t++){this.elements[t].updateElementCss()}e.prototype.updateElementCss.call(this)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!0,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),!0)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=-1);var r=u.b.Instance.createQuestion(e,t);return this.addQuestion(r,n)?r:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){return new m(e)},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var n=0;n<this.elements.length;n++)if(this.elements[n].removeElement(e))return!0;return!1}return this.elements.splice(t,1),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode){for(var n=this.elements.slice(),r=0;r<n.length;r++)n[r].runCondition(e,t);this.areInvisibleElementsShowing||this.runVisibleCondition(e,t),this.runEnableCondition(e,t),this.runRequiredCondition(e,t)}},t.prototype.runVisibleCondition=function(e,t){var n=this;if(this.visibleIf){var r=new l.a(this.visibleIf);r.onRunComplete=function(e){n.visible=e},r.run(e,t)}},t.prototype.runEnableCondition=function(e,t){var n=this;if(this.enableIf){var r=new l.a(this.enableIf);r.onRunComplete=function(e){n.readOnly=!e},r.run(e,t)}},t.prototype.runRequiredCondition=function(e,t){var n=this;if(this.requiredIf){var r=new l.a(this.requiredIf);r.onRunComplete=function(e){n.isRequired=e},r.run(e,t)}},t.prototype.onAnyValueChanged=function(e){for(var t=this.elements,n=0;n<t.length;n++)t[n].onAnyValueChanged(e)},t.prototype.checkBindings=function(e,t){for(var n=this.elements,r=0;r<n.length;r++)n[r].checkBindings(e,t)},t.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.updateRowsRemoveElementFromRow(e.target,t)},t.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,n=this.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(t)>-1)return n[r];for(var r=0;r<this.elements.length;r++){var i=this.elements[r].getPanel();if(i){var o=i.dragDropFindRow(t);if(o)return o}}return null},t.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPanel(e))return!0;var n=e.destination,r=this.dragDropFindRow(n);return!r||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,r,t):this.dragDropAddTargetToExistingRow(e,r,t))},t.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){var n=t;if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},t.prototype.dragDropAddTargetToExistingRow=function(e,t,n){var r=t.elements.indexOf(e.destination);if(0==r&&!e.isBottom&&t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,n)):this.dragDropAddTargetToNewRow(e,t,n);var i=-1;n==t&&(i=t.elements.indexOf(e.target)),e.isBottom&&r++;var o=this.findRowByElement(e.source);return(o!=t||o.elements.indexOf(e.source)!=r)&&(r!=i&&(i>-1&&(t.elements.splice(i,1),i<r&&r--),t.elements.splice(r,0,e.target),t.updateVisible(),i<0))},t.prototype.dragDropAddTargetToNewRow=function(e,t,n){var r=t.panel.createRow();r.addElement(e.target);var i=t.index;if(e.isBottom&&i++,n&&n.panel==r.panel&&n.index==i)return!1;var o=this.findRowByElement(e.source);return(!o||o.panel!=r.panel||1!=o.elements.length||o.index!=i)&&(t.panel.rows.splice(i,0,r),!0)},t.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,n){var r=e.createRow();r.addElement(t),0==e.elements.length||n?e.rows.push(r):e.rows.splice(0,0,r)},t.prototype.dragDropMoveElement=function(e,t,n){n>e.parent.elements.indexOf(e)&&n--,this.removeElement(e),this.addElement(t,n)},t.prototype.dispose=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].dispose();this.elements.splice(0,this.elements.length)},t.panelCounter=100,t}(a.a),m=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.name=t;var r=n;return n.registerFunctionOnPropertyValueChanged("width",function(){r.parent&&r.parent.elementWidthChanged(r)}),n.registerFunctionOnPropertiesValueChanged(["indent","innerIndent","rightIndent"],function(){r.onIndentChanged()}),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!0,configurable:!0}),t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber",!1)},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers","default")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!0,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no","")},enumerable:!0,configurable:!0}),t.prototype.setNo=function(e){this.setPropertyValue("no",o.a.getNumberByIndex(this.visibleIndex,this.getStartIndex()))},t.prototype.beforeSetVisibleIndex=function(e){var t=-1;return!this.showNumber||!this.isDesignMode&&this.locTitle.isEmpty||(t=e),this.setPropertyValue("visibleIndex",t),this.setNo(t),t<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"==this.showQuestionNumbers?-1:"onpanel"==this.showQuestionNumbers?0:e},t.prototype.isContinueNumbering=function(){return"off"!=this.showQuestionNumbers&&"onpanel"!=this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null==this.survey||this.isLoadingFromJson||this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.hasErrorsCore=function(t){e.prototype.hasErrorsCore.call(this,t),this.isCollapsed&&t.result&&t.fireCallback&&this.expand()},t.prototype.getRenderedTitle=function(t){if(!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent",0)},set:function(e){this.setPropertyValue("indent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent",0)},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine",!0)},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!0,configurable:!0}),t.prototype.onIndentChanged=function(){this.innerPaddingLeft=this.getIndentSize(this.innerIndent),this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){if(e<1)return"";if(!this.data)return"";var t=this.survey.css;return t?e*t.question.indent+"px":""},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach(function(e){(e instanceof s.a||e instanceof t)&&e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!(!this.survey||"preview"!=this.survey.state)&&1==this.depth},enumerable:!0,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t}(g);i.b.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:boolean",default:!0},"visibleIf:condition","enableIf:condition","requiredIf:condition","readOnly:boolean",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],function(){return new g}),i.b.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},"isRequired:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},"width",{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},"showNumber:boolean",{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},"questionStartIndex"],function(){return new m},"panelbase")},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(20)),a=n(5),s=n(21),l=n(13),u=n(48),c=n(29),p=n(14),d=n(11),h=n(15),f=n(35);n.d(t,"b",function(){return g}),n.d(t,"a",function(){return m}),c.a.Instance.onCustomWidgetAdded.add(function(e){e.widgetJson.isDefaultRender||(e.htmlTemplate||(e.htmlTemplate="<div>'htmlTemplate' attribute is missed.</div>"),(new u.a).replaceText(e.htmlTemplate,"widget",e.name))});var g=function(e){function t(t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=e.call(this,t)||this;if(o.isFirstRender=!0,o.mouseDownPage=null,o.koTitleTemplate=i.observable("survey-header"),void 0===i)throw new Error("knockoutjs library is not loaded.");return r&&(o.css=r),n&&(o.renderedElement=n),o.render(n),o}return n.i(r.b)(t,e),Object.defineProperty(t,"cssType",{get:function(){return l.b.currentType},set:function(e){f.a.applyTheme(e)},enumerable:!0,configurable:!0}),t.prototype.getDataValueCore=function(t,n){return this.editingObj?e.prototype.getDataValueCore.call(this,t,n):(void 0===t[n]&&(t[n]=i.observable()),i.unwrap(t[n]))},t.prototype.setDataValueCore=function(t,n,r){if(this.editingObj)return void e.prototype.setDataValueCore.call(this,t,n,r);i.isWriteableObservable(t[n])?t[n](r):t[n]=i.observable(r)},t.prototype.deleteDataValueCore=function(t,n){if(this.editingObj)return void e.prototype.deleteDataValueCore.call(this,t,n);i.isWriteableObservable(t[n])?t[n](void 0):delete t[n]},t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new h.a(this)},t.prototype.nextPageUIClick=function(){this.mouseDownPage&&this.mouseDownPage!==this.currentPage||(this.mouseDownPage=null,this.nextPage())},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.currentPage,this.navigationMouseDown()},t.prototype.render=function(e){void 0===e&&(e=null),this.updateKoCurrentPage(),this.updateCustomWidgets(this.currentPage);var t=this;e&&"string"==typeof e&&(e=document.getElementById(e)),e&&(this.renderedElement=e),e=this.renderedElement,t.startTimerFromUI(),e&&t.applyBinding()},t.prototype.clear=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=!0),e.prototype.clear.call(this,t,n),this.render()},t.prototype.onLocaleChanged=function(){this.render()},t.prototype.koEventAfterRender=function(e,t){t.afterRenderSurvey(e)},t.prototype.loadSurveyFromService=function(t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),r&&(this.renderedElement=r),e.prototype.loadSurveyFromService.call(this,t,n)},t.prototype.setCompleted=function(){e.prototype.setCompleted.call(this),this.updateKoCurrentPage()},t.prototype.start=function(){var t=e.prototype.start.call(this);return this.updateKoCurrentPage(),t},t.prototype.createNewPage=function(e){return new s.a(e)},t.prototype.getHtmlTemplate=function(){return u.b},t.prototype.onBeforeCreating=function(){var e=this,t=this;this.dummyObservable=i.observable(0),this.koCurrentPage=i.observable(this.currentPage),this.isCurrentPageEmpty=i.computed(function(){return!!e.koCurrentPage()&&0===e.getRows(e.koCurrentPage()).length}),this.koIsFirstPage=i.computed(function(){return e.dummyObservable(),e.isFirstPage}),this.koIsLastPage=i.computed(function(){return e.dummyObservable(),e.isLastPage}),this.koState=i.observable(this.state),this.koCompletedState=i.observable(""),this.koCompletedStateText=i.observable(""),this.koCompletedStateCss=i.observable(""),this.koTimerInfoText=i.observable(this.timerInfoText),this.koAfterRenderPage=function(e,n){var r=a.a.GetFirstNonTextElement(e);r&&t.afterRenderPage(r)},this.koAfterRenderHeader=function(e,n){var r=a.a.GetFirstNonTextElement(e);r&&t.afterRenderHeader(r)}},t.prototype.currentPageChanged=function(t,n){this.updateKoCurrentPage(),e.prototype.currentPageChanged.call(this,t,n),this.isDesignMode||this.scrollToTopOnPageChange()},t.prototype.pageVisibilityChanged=function(t,n){e.prototype.pageVisibilityChanged.call(this,t,n),this.updateKoCurrentPage()},t.prototype.onLoadSurveyFromService=function(){this.render()},t.prototype.onLoadingSurveyFromService=function(){this.render()},t.prototype.setCompletedState=function(t,n){e.prototype.setCompletedState.call(this,t,n),this.koCompletedState(this.completedState),this.koCompletedStateText(this.completedStateText),this.koCompletedStateCss(""!==this.completedState?this.css.saveData[this.completedState]:"")},t.prototype.doTimer=function(){e.prototype.doTimer.call(this),this.koTimerInfoText(this.timerInfoText)},t.prototype.applyBinding=function(){this.renderedElement&&(this.updateKoCurrentPage(),i.cleanNode(this.renderedElement),this.isFirstRender||this.updateCurrentPageQuestions(),this.isFirstRender=!1,i.renderTemplate("survey-content",this,{afterRender:this.koEventAfterRender},this.renderedElement))},t.prototype.updateKoCurrentPage=function(){this.isLoadingFromJson||(this.dummyObservable(this.dummyObservable()+1),this.currentPage!==this.koCurrentPage()&&this.koCurrentPage(this.currentPage),this.koState(this.state))},t.prototype.getRows=function(e){return e.koRows?e.koRows():e.rows},t.prototype.updateCurrentPageQuestions=function(){for(var e=this.currentPage?this.currentPage.questions:[],t=0;t<e.length;t++){var n=e[t];n.visible&&n.updateQuestion()}},t.prototype.updateSurvey=function(e,t){var n=function(){if("model"==i||"children"==i)return"continue";if("css"==i)return r.mergeValues(e.css,r.getCss()),r.updateElementCss(),"continue";if(0==i.indexOf("on")&&r[i]&&r[i].add){var t=e[i],n=function(e,n){t(e,n)};r[i].add(n)}else r[i]=e[i]},r=this;for(var i in e)n();e&&e.data&&this.onValueChanged.add(function(t,n){e.data[n.name]=n.value})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.renderedElement&&(i.cleanNode(this.renderedElement),this.renderedElement.innerHTML=""),this.isCurrentPageEmpty.dispose(),this.koIsFirstPage.dispose(),this.koIsLastPage.dispose(),this.iteratePropertiesHash(function(e,t){delete e[t]}),this.koCurrentPage(void 0)},t}(o.a);p.a.prototype.onCreating=function(){var e=this;this.koReRender=i.observable(0),Object.defineProperty(e,"koHasHtml",{get:function(){return e.koReRender(),e.hasHtml}}),this.koRenderedHtml=i.pureComputed(function(){return e.koReRender(),e.renderedHtml})},d.a.prototype.onCreating=function(){new h.a(this)},p.a.prototype.onChanged=function(){this.koReRender(this.koReRender()+1)},i.components.register("survey",{viewModel:{createViewModel:function(e,t){var n=i.unwrap(e.survey);return setTimeout(function(){var e=document.createElement("div");t.element.appendChild(e),n.render(e)},1),e.survey}},template:u.b}),i.bindingHandlers.surveyProp={update:function(e,t,n){var r=i.utils.unwrapObservable(t())||{};for(var o in r)if("string"==typeof o){var a=i.utils.unwrapObservable(r[o]);e[o]=a}}},o.a.platform="knockout";var m=function(e,t){e.surveyTemplateEngine=function(){},e.surveyTemplateEngine.prototype=new e.nativeTemplateEngine,e.surveyTemplateEngine.prototype.makeTemplateSource=function(n,r){if("string"==typeof n){r=r||document;var i=r.getElementById("survey-content-"+t);i||(i=document.createElement("div"),i.id="survey-content-"+o.a.platform,i.style.display="none",i.innerHTML=u.b,document.body.appendChild(i));for(var a,s=0;s<i.children.length;s++)if(i.children[s].id===n){a=i.children[s];break}return a||(a=r.getElementById(n)),a?new e.templateSources.domElement(a):(new e.nativeTemplateEngine).makeTemplateSource(n,r)}if(1===n.nodeType||8===n.nodeType)return new e.templateSources.anonymousTemplate(n);throw new Error("Unknown template type: "+n)};var n=new e.surveyTemplateEngine;e.setTemplateEngine(n)}},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(1),a=n(5),s=n(13),l=n(28),u=n(24),c=n(16),p=n(44),d=n(2),h=n(12),f=n(14),g=n(35),m=n(70),y=n(10),v=n(7);n.d(t,"a",function(){return b});var b=function(e){function t(n){void 0===n&&(n=null);var r=e.call(this)||this;r.valuesHash={},r.variablesHash={},r.localeValue="",r.completedStateValue="",r.completedStateTextValue="",r.isTimerStarted=!1,r.onCompleting=new a.c,r.onComplete=new a.c,r.onNavigateToUrl=new a.c,r.onStarted=new a.c,r.onPartialSend=new a.c,r.onCurrentPageChanging=new a.c,r.onCurrentPageChanged=new a.c,r.onValueChanging=new a.c,r.onValueChanged=new a.c,r.onVisibleChanged=new a.c,r.onPageVisibleChanged=new a.c,r.onPanelVisibleChanged=new a.c,r.onQuestionCreated=new a.c,r.onQuestionAdded=new a.c,r.onQuestionRemoved=new a.c,r.onPanelAdded=new a.c,r.onPanelRemoved=new a.c,r.onPageAdded=new a.c,r.onValidateQuestion=new a.c,r.onSettingQuestionErrors=new a.c,r.onServerValidateQuestions=new a.c,r.onValidatePanel=new a.c,r.onErrorCustomText=new a.c,r.onValidatedErrorsOnCurrentPage=new a.c,r.onProcessHtml=new a.c,r.onGetQuestionTitle=new a.c,r.onGetQuestionNo=new a.c,r.onProgressText=new a.c,r.onTextMarkdown=new a.c,r.onSendResult=new a.c,r.onGetResult=new a.c,r.onUploadFiles=new a.c,r.onDownloadFile=new a.c,r.onClearFiles=new a.c,r.onLoadChoicesFromServer=new a.c,r.onLoadedSurveyFromService=new a.c,r.onProcessTextValue=new a.c,r.onUpdateQuestionCssClasses=new a.c,r.onUpdatePanelCssClasses=new a.c,r.onUpdatePageCssClasses=new a.c,r.onAfterRenderSurvey=new a.c,r.onAfterRenderHeader=new a.c,r.onAfterRenderPage=new a.c,r.onAfterRenderQuestion=new a.c,r.onAfterRenderQuestionInput=new a.c,r.onAfterRenderPanel=new a.c,r.onMatrixRowAdded=new a.c,r.onMatrixBeforeRowAdded=new a.c,r.onMatrixRowRemoved=new a.c,r.onMatrixAllowRemoveRow=new a.c,r.onMatrixCellCreated=new a.c,r.onMatrixAfterCellRender=new a.c,r.onMatrixCellValueChanged=new a.c,r.onMatrixCellValueChanging=new a.c,r.onMatrixCellValidate=new a.c,r.onDynamicPanelAdded=new a.c,r.onDynamicPanelRemoved=new a.c,r.onTimer=new a.c,r.onTimerPanelInfoText=new a.c,r.onDynamicPanelItemValueChanged=new a.c,r.onIsAnswerCorrect=new a.c,r.onDragDropAllow=new a.c,r.onScrollingElementToTop=new a.c,r.onLocaleChangedEvent=new a.c,r.jsonErrors=null,r.cssValue=null,r.hideRequiredErrors=!1,r._isDesignMode=!1,r.ignoreValidation=!1,r.isNavigationButtonPressed=!1,r.runningPages=null,r.origionalPages=null,r.isTriggerIsRunning=!1,r.triggerValues=null,r.triggerKeys=null,r.conditionValues=null,r.isValueChangedOnRunningCondition=!1,r.conditionRunnerCounter=0,r.conditionUpdateVisibleIndexes=!1,r.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,r.isEndLoadingFromJson=null,r.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},r.timerFunc=null,r.timeSpent=0;var i=r;return"undefined"!=typeof document&&(t.stylesManager=new g.a),r.createLocalizableString("title",r,!0),r.createLocalizableString("description",r,!0),r.createLocalizableString("logo",r,!1),r.createLocalizableString("completedHtml",r),r.createLocalizableString("completedBeforeHtml",r),r.createLocalizableString("loadingHtml",r),r.createLocalizableString("startSurveyText",r),r.createLocalizableString("pagePrevText",r),r.createLocalizableString("pageNextText",r),r.createLocalizableString("completeText",r),r.createLocalizableString("previewText",r),r.createLocalizableString("editText",r),r.createLocalizableString("questionTitleTemplate",r,!0),r.textPreProcessor=new u.a,r.textPreProcessor.onProcess=function(e){i.getProcessedTextValue(e)},r.createNewArray("pages",function(e){i.doOnPageAdded(e)},function(e){i.doOnPageRemoved(e)}),r.createNewArray("triggers",function(e){e.setOwner(i)}),r.createNewArray("calculatedValues",function(e){e.setOwner(i)}),r.createNewArray("completedHtmlOnCondition",function(e){e.locOwner=i}),r.createNewArray("navigateToUrlOnCondition",function(e){e.locOwner=i}),r.registerFunctionOnPropertyValueChanged("firstPageIsStarted",function(){i.onFirstPageIsStartedChanged()}),r.registerFunctionOnPropertyValueChanged("mode",function(){i.onModeChanged()}),r.registerFunctionOnPropertyValueChanged("progressBarType",function(){i.updateProgressText()}),r.onProgressText.onCallbacksChanged=function(){r.updateProgressText()},r.onBeforeCreating(),n&&(("string"==typeof n||n instanceof String)&&(n=JSON.parse(n)),n&&n.clientId&&(r.clientId=n.clientId),r.fromJSON(n),r.surveyId&&r.loadSurveyFromService(r.surveyId,r.clientId)),r.onCreating(),r}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return v.a.commentPrefix},set:function(e){v.a.commentPrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageValue",{get:function(){return this.getPropertyValue("currentPageValue",null)},set:function(e){this.setPropertyValue("currentPageValue",e)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,n){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!0,configurable:!0}),t.prototype.getCss=function(){return this.css},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,s.b.getCss())),this.cssValue},set:function(e){this.mergeValues(e,this.css)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.complete)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.preview)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.prev)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.start)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.next)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedCss",{get:function(){var e=this.css;return e.body+" "+e.completedPage},enumerable:!0,configurable:!0}),t.prototype.getNavigationCss=function(e,t){var n="";return e&&(n=e),t&&(n+=" "+t),n},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext",!1)},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving",!1)},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic",!0)},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError",!0)},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){!0!==e&&void 0!==e||(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton",!0)},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle",!0)},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles",!0)},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage",!0)},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!0,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!0)),t},t.prototype.navigateTo=function(){var e=this.getNavigateToUrl(),t={url:e};this.onNavigateToUrl.fire(this,t),t.url&&"undefined"!=typeof window&&window.location&&(window.location.href=t.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!0,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){if(this.hideRequiredErrors)for(var n=0;n<t.length;n++)"required"==t[n].getErrorType()&&(t[n].visible=!1);this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment",!0)},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength",0)},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength",0)},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic",!1)},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic",!0)},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!0,configurable:!0}),t.prototype.clearIncorrectValues=function(e){void 0===e&&(e=!1);for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var n=this.data,r=!1;for(var i in n)if(!this.getQuestionByValueName(i)&&!this.iscorrectValueWithPostPrefix(i,v.a.commentPrefix)&&!this.iscorrectValueWithPostPrefix(i,v.a.matrixTotalValuePostFix)){var o=this.getCalculatedValueByName(i);o&&o.includeIntoResult||(r=!0,delete n[i])}r&&(this.data=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substr(0,e.indexOf(t)))},Object.defineProperty(t.prototype,"locale",{get:function(){return this.localeValue},set:function(e){d.a.currentLocale=e,this.localeValue=d.a.currentLocale,this.setPropertyValue("locale",this.localeValue),this.isLoadingFromJson||(this.locStrsChanged(),this.onLocaleChanged(),this.onLocaleChangedEvent.fire(this,e))},enumerable:!0,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var n=d.a.defaultLocale,r=e.indexOf(n);r>-1&&e.splice(r,1),t=e.indexOf("default"),e[t]=n}return e},t.prototype.onLocaleChanged=function(){},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.updateProgressText(),this.isStartedState&&this.startedPage&&this.startedPage.locStrsChanged(),this.currentPage&&this.currentPage.locStrsChanged()},t.prototype.getMarkdownHtml=function(e,t){return this.getSurveyMarkdownHtml(this,e,t)},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return d.a.getString(e)},t.prototype.getErrorCustomText=function(e,t){var n={text:e,name:t.getErrorType(),error:t};return this.onErrorCustomText.fire(this,n),n.text},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocString("emptySurvey")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title")},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return this.getPropertyValue("logoWidth",300)},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return this.getPropertyValue("logoHeight",200)},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition","left")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return!!this.logo&&"none"!==this.logoPosition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return this.hasLogo&&("left"===this.logoPosition||"top"===this.logoPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.hasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){var e={left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"};return this.css.logo+" "+e[this.logoPosition]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){var e=this.logoWidth;return"left"===this.logoPosition||"right"===this.logoPosition?"calc(100% - 5px - 2em - "+e+"px)":""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!0,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new y.b(e).run(t,n)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new y.a(e).run(t,n)},t.prototype.runTriggers=function(){this.checkTriggers(this.data,!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!0,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),n=this.getFilteredProperties(),r=0;r<e.length;r++)if(e[r].runCondition(t,n))return e[r];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText",this.getLocString("startSurveyText"))},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText",this.getLocString("pagePrevText"))},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText",this.getLocString("pageNextText"))},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText",this.getLocString("completeText"))},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText",this.getLocString("previewText"))},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText",this.getLocString("editText"))},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!0,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,t=this.getLocString("questionTitlePatternText"),n=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:n+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:n+" "+this.requiredText+" "+t}),e.push({value:"requireNumTitle",text:this.requiredText+" "+n+" "+t}),e.push({value:"numTitle",text:n+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!0,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){e=e.substr(e.indexOf("{")+1);var n=e.indexOf("}");if(n<0)break;t.push(e.substr(0,n)),e=e.substr(n+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(t.indexOf("require")<0)return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,n,r){if(t="{"+t+"}",!e||e.indexOf(t)<0)return n;for(var i=e.indexOf(t),o="",a="",s=i-1;s>=0&&"}"!=e[s];s--);for(s<i-1&&(o=e.substr(s+1,i-s-1)),i+=t.length,s=i;s<e.length&&"{"!=e[s];s++);for(s>i&&(a=e.substr(i,s-i)),s=0;s<o.length&&o.charCodeAt(s)<33;)s++;for(o=o.substr(s),s=a.length-1;s>=0&&a.charCodeAt(s)<33;)s--;return a=a.substr(0,s+1),o||a?o+(n||r)+a:n},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!0,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var n={question:e,title:t};return this.onGetQuestionTitle.fire(this,n),n.title},t.prototype.getUpdatedQuestionNo=function(e,t){if(this.onGetQuestionNo.isEmpty)return t;var n={question:e,no:t};return this.onGetQuestionNo.fire(this,n),n.no},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers",!1)},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){e=e.toLowerCase(),(e="onpage"===e?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){this.setPropertyValue("progressBarType",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return!!this.canShowProresBar()&&("top"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return!!this.canShowProresBar()&&("bottom"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!0,configurable:!0}),t.prototype.canShowProresBar=function(){return!this.isShowingPreview||"showAllQuestions"!=this.showPreviewBeforeComplete},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss()},enumerable:!0,configurable:!0}),t.prototype.updateElementCss=function(){for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].updateElementCss()},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!0,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n],i=this.getDataValueCore(this.valuesHash,r);void 0!==i&&(e[r]=i)}return this.setCalcuatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e)},enumerable:!0,configurable:!0}),t.prototype.mergeData=function(e){e&&this.setDataCore(e)},t.prototype.setDataCore=function(e){if(e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]);this.updateAllQuestionsValue(),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions()},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var t=this;if(this.editingObj!=e){if(this.editingObj&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=e,!e)for(var n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(e,n){t.updateOnSetValue(n.name,n.newValue,n.oldValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!0,configurable:!0}),t.prototype.setCalcuatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var n=this.calculatedValues[t];n.includeIntoResult&&n.name&&void 0!==this.getVariable(n.name)&&(e[n.name]=this.getVariable(n.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){void 0===e&&(e={includeEmpty:!0,includeQuestionTypes:!1});var t=[];return this.getAllQuestions().forEach(function(n){var r=n.getPlainData(e);r&&t.push(r)}),t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];for(var n=this.getValuesKeys(),r=0;r<n.length;r++){var t=n[r];e[t]=this.getDataValueCore(this.valuesHash,t)}return e},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=o.b.getPropertiesByObj(this.editingObj),t=[],n=0;n<e.length;n++)t.push(e[n].name);return t},t.prototype.getDataValueCore=function(e,t){return this.editingObj?this.editingObj.getPropertyValue(t):e[t]},t.prototype.setDataValueCore=function(e,t,n){if(this.editingObj){var r=o.b.findProperty(this.editingObj.getType(),t);r&&r.isLocalizable?this.editingObj.setLocalizableStringText(t,n):this.editingObj.setPropertyValue(t,n)}else e[t]=n},t.prototype.deleteDataValueCore=function(e,t){this.editingObj?this.editingObj[t]=null:delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n];r.indexOf(this.commentPrefix)>0&&(e[r]=this.getDataValueCore(this.valuesHash,r))}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=new Array,t=0;t<this.pages.length;t++)this.pages[t].isVisible&&e.push(this.pages[t]);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>0?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){var e=this.visiblePages;return null!=this.currentPageValue&&e.indexOf(this.currentPageValue)<0&&(this.onContainsPageCallback&&this.onContainsPageCallback(this.currentPageValue)||(this.currentPage=null)),null==this.currentPageValue&&e.length>0&&(this.currentPage=e[0]),this.currentPageValue},set:function(e){var t=this.getPageByObject(e);if(!e||t){var n=this.visiblePages;if(!(null!=t&&n.indexOf(t)<0)&&t!=this.currentPageValue){var r=this.currentPageValue;this.currentPageChanging(t,r)&&(this.currentPageValue=t,t&&(t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.currentPageChanged(t,r))}}},enumerable:!0,configurable:!0}),t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),n=this.visiblePages;return e<0||e>=n.length?null:n[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!0,configurable:!0}),t.prototype.focusFirstQuestion=function(){var e=this.currentPage;e&&(e.scrollToTop(),e.focusFirstQuestion())},t.prototype.scrollToTopOnPageChange=function(){var e=this.currentPage;e&&(e.scrollToTop(),this.focusFirstQuestionAutomatic&&e.focusFirstQuestion())},Object.defineProperty(t.prototype,"state",{get:function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.completedStateValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.completedStateTextValue},enumerable:!0,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.completedStateValue=e,t||("saving"==e&&(t=this.getLocString("savingData")),"error"==e&&(t=this.getLocString("savingDataError")),"success"==e&&(t=this.getLocString("savingDataSuccess"))),this.completedStateTextValue=t},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),e&&(this.data=null,this.variablesHash={}),this.timeSpent=0;for(var n=0;n<this.pages.length;n++)this.pages[n].timeSpent=0,this.pages[n].setWasShown(!1),this.pages[n].passed=!1;this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.isStartedState=this.firstPageIsStarted,t&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){if(t&&e)for(var n in e){var r=e[n];r&&"object"==typeof r?(t[n]||(t[n]={}),this.mergeValues(r,t[n])):t[n]=r}},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,n=0;n<t.length;n++)t[n].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){var n={oldCurrentPage:t,newCurrentPage:e,allowChanging:!0,isNextPage:this.isNextPage(e,t),isPrevPage:this.isPrevPage(e,t)};return this.onCurrentPageChanging.fire(this,n),n.allowChanging},t.prototype.currentPageChanged=function(e,t){this.onCurrentPageChanged.fire(this,{oldCurrentPage:t,newCurrentPage:e,isNextPage:this.isNextPage(e,t),isPrevPage:this.isPrevPage(e,t)})},t.prototype.isNextPage=function(e,t){return!(!e||!t)&&e.visibleIndex==t.visibleIndex+1},t.prototype.isPrevPage=function(e,t){return!(!e||!t)&&e.visibleIndex+1==t.visibleIndex},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("pages"!==this.progressBarType){var e=this.getProgressInfo();return"requiredQuestions"===this.progressBarType?e.requiredQuestionCount>1?Math.ceil(100*e.requiredAnsweredQuestionCount/e.requiredQuestionCount):100:e.questionCount>1?Math.ceil(100*e.answeredQuestionCount/e.questionCount):100}var t=this.visiblePages.indexOf(this.currentPage)+1;return Math.ceil(100*t/this.visiblePageCount)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"bottom":"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.isEditMode&&(!this.isShowPreviewBeforeComplete||"preview"==this.state)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode||"preview"==this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!0,configurable:!0}),t.prototype.setDesignMode=function(e){this._isDesignMode=e,this.onQuestionsOnPageModeChanged("standard")},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.isLoadingFromJson||(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!0,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];n.updateElementVisibility(),e.indexOf(n)>-1!=n.isVisible&&this.onPageVisibleChanged.fire(this,{page:n,visible:n.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName||"undefined"==typeof document)return!1;var e=document.cookie;return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!0,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&"undefined"!=typeof document&&(document.cookie=this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=;")},t.prototype.nextPage=function(){return!this.isLastPage&&this.doCurrentPageComplete(!1)},t.prototype.hasErrorsOnNavigate=function(e){if(this.ignoreValidation||!this.isEditMode)return!1;if("onComplete"==this.checkErrorsMode){if(!this.isLastPage)return!1;if(this.hasErrors(!0,!0))return!0}else if(this.isCurrentPageHasErrors)return!0;return this.checkForAsyncQuestionValidation(e)},t.prototype.checkForAsyncQuestionValidation=function(e){var t=this;this.clearAsyncValidationQuesitons();for(var n=this.currentPage.questions,r=0;r<n.length;r++)n[r].isRunningValidators&&(n[r].onCompletedAsyncValidators=function(n){t.onCompletedAsyncQuestionValidators(e,n)},this.asyncValidationQuesitons.push(n[r]));return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t){if(t)return void this.clearAsyncValidationQuesitons();for(var n=this.asyncValidationQuesitons,r=0;r<n.length;r++)if(n[r].isRunningValidators)return;this.doCurrentPageCompleteCore(e)},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);for(var n=this.visiblePages,r=null,i=!1,o=0;o<n.length;o++)n[o].hasErrors(e,!1)&&(r||(r=n[o]),i=!0);if(t&&r){this.currentPage=r;for(var a=r.questions,o=0;o<a.length;o++)if(a[o].errors.length>0){a[o].focus(!0);break}}return i},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,n=0;n<t.length;n++)this.ensureUniqueNames(t[n]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,function(e){return t.getPageByName(e)})},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,function(e){return t.getPanelByName(e)})},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,function(e){return t.getQuestionByName(e)})},t.prototype.ensureUniqueElementName=function(e,t){var n=t(e.name);if(n&&n!=e){for(var r=this.getNewName(e.name);t(r);)var r=this.getNewName(e.name);e.name=r}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var n=e.substr(0,t),r=0;return t<e.length&&(r=parseInt(e.substr(t))),r++,n+r},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.currentPage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var n=e.hasErrors(!0,t);return this.fireValidatedErrorsOnPage(e),n},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=e.questions,n=new Array,r=new Array,i=0;i<t.length;i++){var o=t[i];if(o.errors.length>0){n.push(o);for(var a=0;a<o.errors.length;a++)r.push(o.errors[a])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:n,errors:r,page:e})}},t.prototype.prevPage=function(){if(this.isFirstPage)return!1;this.resetNavigationButton();var e=this.visiblePages,t=e.indexOf(this.currentPage);this.currentPage=e[t-1]},t.prototype.completeLastPage=function(){var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.showPreview=function(){return this.resetNavigationButton(),!this.hasErrorsOnNavigate(!0)&&(!this.doServerValidation(!0,!0)&&(this.isShowingPreview=!0,!0))},t.prototype.cancelPreview=function(e){void 0===e&&(e=null),this.isShowingPreview&&(this.isShowingPreview=!1,i.a.isValueEmpty(e)&&this.visiblePageCount>0&&(e=this.visiblePageCount-1),null!==e&&(this.currentPage=e))},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e.originalPage)},t.prototype.doCurrentPageComplete=function(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e))},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation(e)&&(this.currentPage.passed=!0,e?this.doComplete():this.doNextPage(),!0)},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode","standard")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted",!1)},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!0,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>0&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete","noPreview")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!0,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){0!=this.pages.length&&(this.isStartedState=this.firstPageIsStarted,this.pageVisibilityChanged(this.pages[0],!this.firstPageIsStarted))},t.prototype.onShowingPreviewChanged=function(){this.isDesignMode||(this.isShowingPreview?(this.runningPages=this.pages.slice(0,this.pages.length),this.setupPagesForPageModes(!0)):(this.runningPages&&this.restoreOrigionalPages(this.runningPages),this.runningPages=null),this.updateAllElementsVisibility(this.pages),this.updateVisibleIndexes(),this.currentPageNo=0)},t.prototype.onQuestionsOnPageModeChanged=function(e){this.isShowingPreview||("standard"==this.questionsOnPageMode||this.isDesignMode?(this.origionalPages&&this.restoreOrigionalPages(this.origionalPages),this.origionalPages=null):(e&&"standard"!=e||(this.origionalPages=this.pages.slice(0,this.pages.length)),this.setupPagesForPageModes(this.isSinglePage)),this.updateVisibleIndexes())},t.prototype.restoreOrigionalPages=function(e){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<e.length;t++)this.pages.push(e[t])},t.prototype.setupPagesForPageModes=function(t){this.questionHashesClear();var n=this.firstPageIsStarted?1:0;e.prototype.startLoadingFromJson.call(this);var r=this.createPagesForQuestionOnPageMode(t,n),i=this.pages.length-n;this.pages.splice(n,i);for(var o=0;o<r.length;o++)this.pages.push(r[o]);e.prototype.endLoadingFromJson.call(this);for(var o=0;o<r.length;o++)r[o].endLoadingFromJson(),r[o].setSurveyImpl(this);this.doElementsOnLoad()},t.prototype.createPagesForQuestionOnPageMode=function(e,t){return e?[this.createSinglePage(t)]:this.createPagesForEveryQuestion(t)},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var n=e;n<this.pages.length;n++){var r=this.pages[n],i=o.b.createClass("panel");i.originalPage=r,t.addPanel(i);var a=(new o.c).toJsonObject(r);(new o.c).toObject(a,i),this.showPageTitles||(i.title="")}return t},t.prototype.createPagesForEveryQuestion=function(e){for(var t=[],n=e;n<this.pages.length;n++){var r=this.pages[n];r.setWasShown(!0);for(var i=0;i<r.elements.length;i++){var a=r.elements[i],s=o.b.createClass(a.getType());if(s){var l=new o.c;l.lightSerializing=!0;var u=l.toJsonObject(r),c=o.b.createClass(r.getType());c.fromJSON(u),c.name="page"+(t.length+1),c.setSurveyImpl(this),t.push(c);var p=(new o.c).toJsonObject(a);(new o.c).toObject(p,s),c.addElement(s);for(var d=0;d<c.questions.length;d++)this.questionHashesAdded(c.questions[d])}}}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return null==this.currentPage||0==this.visiblePages.indexOf(this.currentPage)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){if(this.isFirstPage||!this.showPrevButton)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){if(null==this.currentPage)return!0;var e=this.visiblePages;return e.indexOf(this.currentPage)==e.length-1},enumerable:!0,configurable:!0}),t.prototype.doComplete=function(e){void 0===e&&(e=!1);var t={allowComplete:!0,isCompleteOnTrigger:e};if(this.onCompleting.fire(this,t),t.allowComplete){var n=this.hasCookie;this.stopTimer(),this.setCompleted(),this.clearUnusedValues(),this.setCookie();var r=this,i=!1,o={isCompleteOnTrigger:e,showDataSaving:function(e){i=!0,r.setCompletedState("saving",e)},showDataSavingError:function(e){r.setCompletedState("error",e)},showDataSavingSuccess:function(e){r.setCompletedState("success",e),r.navigateTo()},showDataSavingClear:function(e){r.setCompletedState("","")}};this.onComplete.fire(this,o),!n&&this.surveyPostId&&this.sendResult(),i||this.navigateTo()}},t.prototype.start=function(){return!!this.firstPageIsStarted&&(!this.checkIsPageHasErrors(this.startedPage,!0)&&(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}),!0))},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!0,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,t){if(void 0===t&&(t=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty)return!1;if(!e&&"onComplete"===this.checkErrorsMode)return!1;var n=this,r={data:{},errors:{},survey:this,complete:function(){n.completeServerValidation(r,t)}};if(e&&"onComplete"===this.checkErrorsMode)r.data=this.data;else for(var i=0;i<this.currentPage.questions.length;i++){var o=this.currentPage.questions[i];if(o.visible){var a=this.getValue(o.getValueName());this.isValueEmpty(a)||(r.data[o.getValueName()]=a)}}return this.setIsValidatingOnServer(!0),"function"==typeof this.onServerValidateQuestions?this.onServerValidateQuestions(this,r):this.onServerValidateQuestions.fire(this,r),!0},t.prototype.completeServerValidation=function(e,t){if(this.setIsValidatingOnServer(!1),e||e.survey){var n=e.survey,r=!1;if(e.errors){var i=this.focusOnFirstError;for(var o in e.errors){var a=n.getQuestionByName(o);a&&a.errors&&(r=!0,a.addError(new h.b(e.errors[o],this)),i&&(i=!1,a.page&&(this.currentPage=a.page),a.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}r||(t?this.isShowingPreview=!0:n.isLastPage?n.doComplete():n.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var t=this.visiblePages,n=t.indexOf(this.currentPage);this.currentPage=t[n+1]}},t.prototype.setCompleted=function(){this.isCompleted=!0},Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e):"<h3>"+this.getLocString("completingSurvey")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.completedBeforeHtml?this.processHtml(this.completedBeforeHtml):"<h3>"+this.getLocString("completingSurveyBefore")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.loadingHtml?this.processHtml(this.loadingHtml):"<h3>"+this.getLocString("loadingSurvey")+"</h3>"},enumerable:!0,configurable:!0}),t.prototype.getProgressInfo=function(){return a.a.getProgressInfoByElements(this.visiblePages,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!0,configurable:!0}),t.prototype.updateProgressText=function(e){void 0===e&&(e=!1),this.isDesignMode||e&&"pages"==this.progressBarType&&this.onProgressText.isEmpty||(this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()))},t.prototype.getProgressText=function(){if(this.isDesignMode||null==this.currentPage)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},t=this.progressBarType.toLowerCase();if("questions"===t||"requiredquestions"===t||"correctquestions"===t||!this.onProgressText.isEmpty){var n=this.getProgressInfo();e.questionCount=n.questionCount,e.answeredQuestionCount=n.answeredQuestionCount,e.requiredQuestionCount=n.requiredQuestionCount,e.requiredAnsweredQuestionCount=n.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var t=this.progressBarType.toLowerCase();if("questions"===t)return this.getLocString("questionsProgressText").format(e.answeredQuestionCount,e.questionCount);if("requiredquestions"===t)return this.getLocString("questionsProgressText").format(e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if("correctquestions"===t){var n=this.getCorrectedAnswerCount();return this.getLocString("questionsProgressText").format(n,e.questionCount)}var r=this.visiblePages,i=r.indexOf(this.currentPage)+1;return this.getLocString("progressText").format(i,r.length)},t.prototype.afterRenderSurvey=function(e){this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e})},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.afterRenderPage=function(e){this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.currentPage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var n=e.inputId;if(n&&t.id!==n&&"undefined"!=typeof document){var r=document.getElementById(n);r&&(t=r)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixBeforeRowAdded.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,n){var r=this.getQuestionsByValueName(e);if(r){for(var i=0;i<r.length;i++){var o=r[i].getQuestionFromArray(t,n);if(o)return o}return null}},t.prototype.matrixRowRemoved=function(e,t,n){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:n})},t.prototype.matrixAllowRemoveRow=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixAllowRemoveRow.fire(this,r),r.allow},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onMatrixAfterCellRender.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new h.b(t.error,this):null},t.prototype.dynamicPanelAdded=function(e){this.onDynamicPanelAdded.fire(this,{question:e})},t.prototype.dynamicPanelRemoved=function(e,t,n){for(var r=n?n.questions:[],i=0;i<r.length;i++)r[i].clearOnDeletingContainer();this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:n})},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return e.allow=!0,this.onDragDropAllow.fire(this,e),e.allow},t.prototype.scrollElementToTop=function(e,t,n,r){var i={element:e,question:t,page:n,elementId:r,cancel:!1};this.onScrollingElementToTop.fire(this,i),i.cancel||a.a.ScrollElementToTop(i.elementId)},t.prototype.uploadFiles=function(e,t,n,r){this.onUploadFiles.isEmpty?r("error",n):this.onUploadFiles.fire(this,{question:e,name:t,files:n||[],callback:r}),this.surveyPostId&&this.uploadFilesCore(t,n,r)},t.prototype.downloadFile=function(e,t,n){this.onDownloadFile.isEmpty&&!!n&&n("success",t.content||t),this.onDownloadFile.fire(this,{name:e,content:t.content||t,fileValue:t,callback:n})},t.prototype.clearFiles=function(e,t,n,r,i){this.onClearFiles.isEmpty&&!!i&&i("success",n),this.onClearFiles.fire(this,{question:e,name:t,value:n,fileName:r,callback:i})},t.prototype.updateChoicesFromServer=function(e,t,n){var r={question:e,choices:t,serverResult:n};return this.onLoadChoicesFromServer.fire(this,r),r.choices},t.prototype.createSurveyService=function(){return new p.a},t.prototype.uploadFilesCore=function(e,t,n){var r=this,i=[];t.forEach(function(e){n&&n("uploading",e),r.createSurveyService().sendFile(r.surveyPostId,e,function(r,o){r?(i.push({content:o,file:e}),i.length===t.length&&n&&n("success",i)):n&&n("error",{response:o,file:e})})})},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))},t.prototype.addNewPage=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1);var n=this.createNewPage(e);return this.addPage(n,t),n},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPageValue==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var n=t?this.questionHashes.namesInsensitive:this.questionHashes.names,r=n[e];return r?r[0]:null},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var n=this.getQuestionsByValueName(e,t);return n?n[0]:null},t.prototype.getQuestionsByValueName=function(e,t){void 0===t&&(t=!1);var n=t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames,r=n[e];return r||null},t.prototype.getCalculatedValueByName=function(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var i=this.getQuestionByName(e[r],t);i&&n.push(i)}return n},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];if(n.containsElement(e))return n}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var n=0;n<e.length;n++)if(e[n]){var r=this.getPageByName(e[n]);r&&t.push(r)}return t},t.prototype.getAllQuestions=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,r=0;r<this.pages.length;r++)this.pages[r].addQuestionsToList(n,e,t);return n},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.firstPageIsStarted?1:0,n=t;n<this.pages.length;n++)if(this.pages[n].isVisible)for(var r=this.pages[n].questions,i=0;i<r.length;i++){var o=r[i];o.quizQuestionCount>0&&e.push(o)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var n=this.getAllPanels();t&&(e=e.toLowerCase());for(var r=0;r<n.length;r++){var i=n[r].name;if(t&&(i=i.toLowerCase()),i==e)return n[r]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,r=0;r<this.pages.length;r++)this.pages[r].addPanelsIntoList(n,e,t);return n},t.prototype.createNewPage=function(e){return new l.a(e)},t.prototype.questionOnValueChanging=function(e,t){if(this.onValueChanging.isEmpty)return t;var n={name:e,question:this.getQuestionByValueName(e),value:this.getUnbindValue(t),oldValue:this.getValue(e)};return this.onValueChanging.fire(this,n),n.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var r=0;r<n.length;r++){var i=n[r].value;(i===t&&Array.isArray(i)&&this.editingObj||!this.isTwoValueEquals(i,t))&&n[r].updateValueFromSurvey(t)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){if(!this.isNavigationButtonPressed&&("onValueChanged"==this.checkErrorsMode||e.errors.length>0)){var t=e.errors.length;e.hasErrors(!0,{isOnValueChanged:!0}),e.page&&(t>0||e.errors.length>0)&&this.fireValidatedErrorsOnPage(e.page)}},t.prototype.notifyQuestionOnValueChanged=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var r=0;r<n.length;r++){var i=n[r];this.checkQuestionErrorOnValueChanged(i),i.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:i,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});for(var r=0;r<this.pages.length;r++)this.pages[r].checkBindings(e,t);this.notifyElementsOnAnyValueOrVariableChanged(e)}},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){if("processing"!==this.isEndLoadingFromJson){if(this.isRunningConditions)return void(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0);for(var t=0;t<this.pages.length;t++)this.pages[t].onAnyValueChanged(e);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++){var n=e[t],r=n.getValueName();n.updateValueFromSurvey(this.getValue(r)),n.requireUpdateCommentValue&&n.updateCommentFromSurvey(this.getComment(r))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(){for(var e=this.getCurrentPageQuestions(!0),t={},n=0;n<e.length;n++){var r=e[n],i=r.getValueName();t[i]=this.getValue(i)}this.checkTriggers(t,!0)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],n=this.currentPage;if(!n)return t;for(var r=0;r<n.questions.length;r++){var i=n.questions[r];(e||i.visible)&&i.name&&t.push(i)}return t},t.prototype.checkTriggers=function(e,t){if(!this.isCompleted&&0!=this.triggers.length)if(this.isTriggerIsRunning){this.triggerValues=this.getFilteredValues();for(var n in e)this.triggerKeys[n]=e[n]}else{this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var r=this.getFilteredProperties(),i=0;i<this.triggers.length;i++){var o=this.triggers[i];o.isOnNextPage==t&&o.checkExpression(this.triggerKeys,this.triggerValues,r)}this.isTriggerIsRunning=!1}},t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!0,configurable:!0}),t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPageValue);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<v.a.maximumConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.isRunningConditions?(this.conditionValues[e]=t,this.isValueChangedOnRunningCondition=!0):this.runConditions()},t.prototype.runConditionsCore=function(e){for(var t=this.pages,n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].resetCalculation();for(var n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].doCalculation(this.calculatedValues,this.conditionValues,e);for(var n=0;n<t.length;n++)t[n].runCondition(this.conditionValues,e)},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPageValue);if(!(t<=e+1))for(var n=e+1;n<t;n++)if(this.pages[n].isVisible){this.currentPage=this.pages[n];break}},t.prototype.sendResult=function(e,t,n){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isEditMode&&(n&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!n||this.clientId))){var r=this;this.surveyShowDataSaving&&this.setCompletedState("saving",""),this.createSurveyService().sendResult(e,this.data,function(e,t,n){r.surveyShowDataSaving&&(e?r.setCompletedState("success",""):r.setCompletedState("error",t)),r.onSendResult.fire(r,{success:e,response:t,request:n})},this.clientId,n)}},t.prototype.getResult=function(e,t){var n=this;this.createSurveyService().getResult(e,t,function(e,t,r,i){n.onGetResult.fire(n,{success:e,data:t,dataList:r,response:i})})},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var n=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,function(e,t,r,i){n.isLoading=!1,e&&(n.isCompletedBefore="completed"==r,n.loadSurveyFromServiceJson(t))}):this.createSurveyService().loadSurvey(this.surveyId,function(e,t,r){n.isLoading=!1,e&&n.loadSurveyFromServiceJson(t)})},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.updateVisibleIndexes=function(){if(!this.isLoadingFromJson&&!this.isEndLoadingFromJson){if(this.isRunningConditions&&this.onVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty)return void(this.conditionUpdateVisibleIndexes=!0);if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else for(var n="on"==this.showQuestionNumbers?0:-1,t=0;t<this.pages.length;t++)n+=this.pages[t].setVisibleIndex(n);this.updateProgressText(!0)}},t.prototype.updatePageVisibleIndexes=function(e){for(var t=0,n=0;n<this.pages.length;n++){var r=this.pages[n].isVisible;this.pages[n].visibleIndex=r?t++:-1,this.pages[n].num=e&&r?this.pages[n].visibleIndex+1:-1}},t.prototype.fromJSON=function(e){if(e){this.questionHashesClear(),this.jsonErrors=null;var t=new o.c;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors)}},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.isStartedState=this.firstPageIsStarted,this.onQuestionsOnPageModeChanged("standard"),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&this.doComplete(),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes()},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){if("pageno"===t){e.isExists=!0;var n=this.currentPage;return void(e.value=null!=n?this.visiblePages.indexOf(n)+1:0)}if("pagecount"===t)return e.isExists=!0,void(e.value=this.visiblePageCount);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:d.a.defaultLocale);if("correctedanswers"===t||"correctedanswercount"===t)return e.isExists=!0,void(e.value=this.getCorrectedAnswerCount());if("incorrectedanswers"===t||"incorrectedanswercount"===t)return e.isExists=!0,void(e.value=this.getInCorrectedAnswerCount());if("questioncount"===t)return e.isExists=!0,void(e.value=this.getQuizQuestionCount());var r=(new c.a).getFirstName(t,this.data),i=this.getVariable(t);if(void 0!==i)return e.isExists=!0,void(e.value=i);r&&(r=r.toLowerCase());var o=this.getQuestionByValueName(r,!0);if(o){e.isExists=!0,t=o.getValueName()+t.substr(r.length),t=t.toLocaleLowerCase();var a={};return a[r]=e.returnDisplayValue?o.getDisplayValue(!1,void 0):o.value,void(e.value=(new c.a).getValue(t,a))}var s=this.getValue(e.name);void 0!==s&&(e.isExists=!0,e.value=s)}},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();"none"!=this.clearInvisibleValues&&this.clearInvisibleQuestionValues()},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);if(!t)return!1;for(var n=0;n<t.length;n++)if(t[n].isVisible)return!0;return!1},t.prototype.questionCountByValueName=function(e){var t=this.getQuestionsByValueName(e);return t?t.length:0},t.prototype.clearInvisibleQuestionValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearValueIfInvisible()},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return i.a.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&(new c.a).hasValue(e,this.variablesHash)?(new c.a).getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){e&&(e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),this.runConditionOnValueChanged(e,t))},t.prototype.getUnbindValue=function(e){return this.editingObj?e:i.a.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!0);var i=t;if(r&&(i=this.questionOnValueChanging(e,t)),this.editingObj||!this.isValueEqual(e,i)||!this.isTwoValueEquals(i,t)){var o=this.getValue(e);this.isValueEmpty(i)?this.deleteDataValueCore(this.valuesHash,e):(i=this.getUnbindValue(i),this.setDataValueCore(this.valuesHash,e,i)),this.updateOnSetValue(e,i,o,n,r)}},t.prototype.updateOnSetValue=function(e,t,n,r,i){if(void 0===r&&(r=!1),void 0===i&&(i=!0),this.updateQuestionValue(e,t),!0!==r){var o={};o[e]={newValue:t,oldValue:n},this.checkTriggers(o,!1),this.runConditionOnValueChanged(e,t),i&&this.notifyQuestionOnValueChanged(e,t),"text"!==r&&this.tryGoNextPageAutomatic(e),this.updateProgressText(!0)}},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var n=this.getValue(e);return""!==n&&void 0!==n||(n=null),null===t||null===n?t===n:this.isTwoValueEquals(t,n)},t.prototype.doOnPageAdded=function(e){e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes();var t={page:e};this.onPageAdded.fire(this,t)},t.prototype.doOnPageRemoved=function(e){this.updateVisibleIndexes()},t.prototype.generateNewName=function(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].name]=!0;for(var i=1;n[t+i];)i++;return t+i},t.prototype.tryGoNextPageAutomatic=function(e){if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var t=this.getQuestionByValueName(e);if(t&&(!t||t.visible&&t.supportGoNextPageAutomatic())&&(!t.hasErrors(!1)||t.supportGoNextPageError())){var n=this.getCurrentPageQuestions();if(!(n.indexOf(t)<0)){for(var r=0;r<n.length;r++)if(n[r].hasInput&&n[r].isEmpty())return;this.checkIsCurrentPageHasErrors(!1)||(this.isLastPage?!0===this.goNextPageAutomatic&&this.allowCompleteSurveyAutomatic&&this.completeLastPage():this.nextPage())}}}},t.prototype.getComment=function(e){var t=this.data[e+this.commentPrefix];return null==t&&(t=""),t},t.prototype.setComment=function(e,t,n){if(void 0===n&&(n=!1),t||(t=""),!i.a.isTwoValueEquals(t,this.getComment(e))){var r=e+this.commentPrefix;i.a.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,r):this.setDataValueCore(this.valuesHash,r,t);var o=this.getQuestionsByValueName(e);if(o)for(var a=0;a<o.length;a++)o[a].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(o[a]);"text"!==n&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByName(e);s&&this.onValueChanged.fire(this,{name:r,question:s,value:t})}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){return"onHidden"==this.clearInvisibleValues||this.isClearValueOnHiddenContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHiddenContainer",{get:function(){return"onHiddenContainer"==this.clearInvisibleValues},enumerable:!0,configurable:!0}),t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onVisibleChanged.fire(this,{question:e,name:e.name,visible:t})},t.prototype.pageVisibilityChanged=function(e,t){this.isLoadingFromJson||(t&&!this.currentPageValue&&(this.currentPageValue=this.currentPage),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t}))},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.updateVisibleIndexes(),this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parentPanel:n,rootPanel:r})},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name})},t.prototype.questionRenamed=function(e,t,n){this.questionHashesRemoved(e,t,n),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,n=0;n<t.length;n++)this.questionHashesAdded(t[n])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,n){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),n&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,n),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,n.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,n){var r=e[n];if(r){var r=e[n];r.indexOf(t)<0&&r.push(t)}else e[n]=[t]},t.prototype.questionHashRemovedCore=function(e,t,n){var r=e[n];if(r){var i=r.indexOf(t);i>-1&&r.splice(i,1),0==r.length&&delete e[n]}},t.prototype.panelAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parentPanel:n,rootPanel:r})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name})},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new h.b(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new h.b(t.error,this):null},t.prototype.processHtml=function(e){var t={html:e};return this.onProcessHtml.fire(this,t),this.processText(t.html,!0)},t.prototype.processText=function(e,t){return this.processTextEx(e,t,!1).text},t.prototype.processTextEx=function(e,t,n){var r={text:this.processTextCore(e,t,n),hasAllValuesOnLastRun:!0};return r.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,r},t.prototype.processTextCore=function(e,t,n){return void 0===n&&(n=!1),this.isDesignMode?e:this.textPreProcessor.process(e,t,n)},t.prototype.getSurveyMarkdownHtml=function(e,t,n){var r={element:e,text:t,name:n,html:null};return this.onTextMarkdown.fire(this,r),r.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,n=0;n<e.length;n++)t+=e[n].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),n=0,r={question:null,result:!1,correctAnswers:0,incorrectAnswers:0},i=0;i<t.length;i++){var o=t[i],a=o.quizQuestionCount;if(r.question=o,r.correctAnswers=o.correctAnswerCount,r.incorrectAnswers=a-r.correctAnswers,r.result=r.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,r),e){if(r.result||r.correctAnswers<a){var s=r.correctAnswers;0==s&&r.result&&(s=1),n+=s}}else(!r.result||r.incorrectAnswers<a)&&(n+=r.incorrectAnswers)}return n},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.getPropertyValue("showTimerPanel","none")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.isTimerStarted&&"top"==this.showTimerPanel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.isTimerStarted&&"bottom"==this.showTimerPanel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode","all")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new f.a(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!0,configurable:!0}),t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),n=this.getDisplayTime(this.timeSpent),r=this.getPageMaxTimeToFinish(e),i=this.getDisplayTime(r),o=this.getDisplayTime(this.maxTimeToFinish);if("page"==this.showTimerPanelMode)return this.getTimerInfoPageText(e,t,i);if("survey"==this.showTimerPanelMode)return this.getTimerInfoSurveyText(n,o);if("all"==this.showTimerPanelMode){if(r<=0&&this.maxTimeToFinish<=0)return this.getLocString("timerSpentAll").format(t,n);if(r>0&&this.maxTimeToFinish>0)return this.getLocString("timerLimitAll").format(t,i,n,o);return this.getTimerInfoPageText(e,t,i)+" "+this.getTimerInfoSurveyText(n,o)}return""},t.prototype.getTimerInfoPageText=function(e,t,n){return this.getPageMaxTimeToFinish(e)>0?this.getLocString("timerLimitPage").format(t,n):this.getLocString("timerSpentPage").format(t,n)},t.prototype.getTimerInfoSurveyText=function(e,t){return this.maxTimeToFinish>0?this.getLocString("timerLimitSurvey").format(e,t):this.getLocString("timerSpentSurvey").format(e,t)},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),n=e%60,r="";return t>0&&(r+=t+" "+this.getLocString("timerMin")),r&&0==n?r:(r&&(r+=" "),r+n+" "+this.getLocString("timerSec"))},t.prototype.startTimer=function(){if(!this.isTimerStarted&&!this.isDesignMode){var e=this;this.timerFunc=function(){e.doTimer()},this.isTimerStarted=!0,m.a.instance.start(this.timerFunc)}},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.isTimerStarted&&(this.isTimerStarted=!1,m.a.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!0,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(){var e=this.currentPage;if(e&&(e.timeSpent=e.timeSpent+1),this.timeSpent=this.timeSpent+1,this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),e){var t=this.getPageMaxTimeToFinish(e);t>0&&t==e.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},t.prototype.geSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var n=[];return Array.prototype.push.apply(n,this.getPagesByNames(e)),Array.prototype.push.apply(n,this.getQuestionsByNames(t)),n},t.prototype.setTriggerValue=function(e,t,n){if(e)if(n)this.setVariable(e,t);else{var r=this.getQuestionByName(e);if(r)r.value=t;else{var i=new c.a,o=i.getFirstName(e);if(o==e)this.setValue(e,t);else{if(!this.getQuestionByName(o))return;var a=this.getUnbindValue(this.getFilteredValues());i.setValue(a,e,t),this.setValue(o,a[o])}}}},t.prototype.copyTriggerValue=function(e,t){if(e&&t){var n=new c.a,r=n.getValue(t,this.getFilteredValues());this.setTriggerValue(e,r,!1)}},t.prototype.focusQuestion=function(e){var t=this.getQuestionByName(e,!0);return!!(t&&t.isVisible&&t.page)&&(this.currentPage=t.page,setTimeout(function(){t.focus()}),!0)},t.prototype.dispose=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].dispose();this.pages.splice(0,this.pages.length)},t.stylesManager=null,t.platform="unknown",t}(a.b);o.b.addClass("survey",[{name:"locale",choices:function(){return d.a.getLocales(!0)},onGetValue:function(e){return e.locale==d.a.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"logo",serializationProperty:"locLogo"},{name:"logoWidth:number",default:300,minValue:0},{name:"logoHeight:number",default:200,minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean",default:!0},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem"},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page"},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,n){var r=e.addNewPage("");n.toObject({questions:t},r)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue"},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem"},{name:"questionsOrder",default:"initial",choices:["initial","random"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","top","bottom","both"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions","buttons"]},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},"goNextPageAutomatic:boolean",{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"startSurveyText",serializationProperty:"locStartSurveyText"},{name:"pagePrevText",serializationProperty:"locPagePrevText"},{name:"pageNextText",serializationProperty:"locPageNextText"},{name:"completeText",serializationProperty:"locCompleteText"},{name:"previewText",serializationProperty:"locPreviewText"},{name:"editText",serializationProperty:"locEditText"},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["singlePage","standard","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"maxTimeToFinishPage:number",default:0,minValue:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["all","page","survey"]}])},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(28)),a=n(18),s=n(1),l=n(5),u=n(3),c=n(15),p=n(7);n.d(t,"b",function(){return f}),n.d(t,"a",function(){return g});var d=function(e){function t(t){var n=e.call(this,t)||this;n.panel=t,new c.a(n);var r=n;return n.koGetType=function(e){return r.getElementType(e)},n.koElementAfterRender=function(e,t){return r.elementAfterRender(e,t)},n}return n.i(r.b)(t,e),t.prototype.getElementType=function(e){return e.isPanel?"survey-panel":"survey-question"},t.prototype.koAfterRender=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];"#text"==r.nodeName&&(r.data="")}},t.prototype.elementAfterRender=function(e,t){if(this.panel&&this.panel.survey){var n=l.a.GetFirstNonTextElement(e);if(n){var r=t;r.isPanel?this.panel.survey.afterRenderPanel(t,n):r.afterRender(n)}}},t.prototype.rowAfterRender=function(e,t){if(!t.isNeedRender){var n=e[0].parentElement;t.startLazyRendering(n),i.utils.domNodeDisposal.addDisposeCallback(n,function(){return t.isNeedRender=!p.a.lazyRowsRendering})}},t}(a.a),h=function(e){function t(t){var n=e.call(this,t)||this;return n.panel=t,n}return n.i(r.b)(t,e),t}(c.a),f=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.onCreating();var r=n;return n.koElementType=i.observable("survey-panel"),n.koCss=i.pureComputed(function(){return r.cssClasses}),n.koIsCollapsed=i.observable(n.isCollapsed),n.koIsExpanded=i.observable(n.isExpanded),n.stateChangedCallback=function(){r.onStateChanged()},n.toggleStateByKeyUp=function(e,t){13===t.which&&r.toggleState()},n.koErrorClass=i.pureComputed(function(){var e=r.cssClasses.error.root;return e||"panel-error-root"}),n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new h(this)},t.prototype.createRow=function(){return new d(this)},t.prototype.onCreating=function(){},t.prototype.onNumChanged=function(e){this.locTitle.onChanged()},t.prototype.onStateChanged=function(){this.koIsCollapsed(this.isCollapsed),this.koIsExpanded(this.isExpanded)},t.prototype.getTitleStyle=function(){var e=this.cssClasses.panel.title;return(this.koIsCollapsed()||this.koIsExpanded())&&(e+=" "+this.cssClasses.panel.titleExpandable),this.containsErrors&&(e+=" "+this.cssClasses.panel.titleOnError),e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.onStateChanged()},t.prototype.dispose=function(){this.koCss.dispose(),this.koErrorClass.dispose(),this._implementor.dispose(),this._implementor=void 0},t}(a.b),g=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.onCreating(),n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new c.a(this)},t.prototype.createRow=function(){return new d(this)},t.prototype.createNewPanel=function(e){return new f(e)},t.prototype.onCreating=function(){},t.prototype.onNumChanged=function(e){this.locTitle.onChanged()},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0},t}(o.a);s.b.overrideClassCreator("panel",function(){return new f}),s.b.overrideClassCreator("page",function(){return new g}),u.a.Instance.registerElement("panel",function(e){return new f(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(9),a=n(11),s=n(4),l=n(2),u=n(12),c=n(42),p=n(10),d=n(7);n.d(t,"b",function(){return h}),n.d(t,"a",function(){return f});var h=function(e){function t(t){var n=e.call(this,t)||this;n.filteredChoicesValue=null,n.otherItemValue=new a.a("other"),n.choicesFromUrl=null,n.cachedValueForUrlRequests=null,n.isChoicesLoaded=!1,n.enableOnLoadingChoices=!1,n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0;var r=n;n.createItemValues("choices"),n.registerFunctionOnPropertyValueChanged("choices",function(){r.filterItems()||r.onVisibleChoicesChanged()}),n.registerFunctionOnPropertyValueChanged("hideIfChoicesEmpty",function(){r.updateVisibilityBasedOnChoices()}),n.createNewArray("visibleChoices"),n.setPropertyValue("choicesByUrl",n.createRestfull()),n.choicesByUrl.owner=n,n.choicesByUrl.loadingOwner=n;var i=n.createLocalizableString("otherText",n,!0);return n.createLocalizableString("otherErrorText",n,!0),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(i),i.onGetTextCallback=function(e){return e||l.a.getString("otherItemText")},n.choicesByUrl.beforeSendRequestCallback=function(){r.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(e){r.onLoadChoicesFromUrl(e)},n.choicesByUrl.updateResultCallback=function(e,t){return r.survey?r.survey.updateChoicesFromServer(r,e,t):e},n.createLocalizableString("otherPlaceHolder",n),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"selectbase"},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.comment},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsEnableCondition(t,n),this.runItemsCondition(t,n)},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||void 0==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var n=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=null),n&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),n},t.prototype.runItemsEnableCondition=function(e,t){var n=this;this.setConditionalEnableChoicesRunner(),a.a.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t,function(e){return n.onEnableItemCallBack(e)})&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.a(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p.a(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.runConditionsForItems=function(e,t){return this.filteredChoicesValue=[],a.a.runConditionsForItems(this.activeChoices,this.filteredChoices,this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t,!this.survey||!this.survey.areInvisibleElementsShowing)},t.prototype.getHasOther=function(e){return e===this.otherItem.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!0,configurable:!0}),t.prototype.createRestfull=function(){return new c.a},t.prototype.getQuestionComment=function(){return this.commentValue?this.commentValue:this.hasComment||this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.commentValue},t.prototype.setQuestionComment=function(t){this.hasComment||this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.isSettingComment||t==this.commentValue||(this.isSettingComment=!0,this.commentValue=t,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.setPropertyValue("renderedValue",e),this.value=this.rendredValueToData(e)},enumerable:!0,configurable:!0}),t.prototype.setQuestionValue=function(t,n){if(void 0===n&&(n=!0),!this.isLoadingFromJson&&!s.a.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),!this.hasComment)){var r=this.isOtherSelected;if(r&&this.prevCommentValue){var i=this.prevCommentValue;this.prevCommentValue="",this.comment=i}!r&&this.comment&&(this.getStoreOthersAsComment()&&(this.prevCommentValue=this.comment),this.comment="")}},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var n=a.a.getItemByValue(this.activeChoices,t);return n?n.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0)?(this.comment=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.getQuestionComment()&&(e=this.getQuestionComment()),e},t.prototype.hasUnknownValue=function(e,t){return void 0===t&&(t=!1),!s.a.isValueEmpty(e)&&((!t||e!=this.otherItem.value)&&null==a.a.getItemByValue(this.filteredChoices,e))},t.prototype.isValueDisabled=function(e){var t=a.a.getItemByValue(this.filteredChoices,e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty",!1)},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment","default")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!0,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText",l.a.getString("otherItemText"))},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.getLocalizableStringText("otherPlaceHolder")},set:function(e){this.setLocalizableStringText("otherPlaceHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherPlaceHolder",{get:function(){return this.getLocalizableString("otherPlaceHolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText",l.a.getString("otherRequiredError"))},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices",[])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++)t[n].isEnabled&&e.push(t[n]);return e},enumerable:!0,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson){var e=new Array,t=this.calcVisibleChoices();t||(t=[]);for(var n=0;n<t.length;n++)e.push(t[n]);this.setPropertyValue("visibleChoices",e)}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.filteredChoices;var e=this.sortVisibleChoices(this.filteredChoices.slice());return this.addToVisibleChoices(e),e},t.prototype.canUseFilteredChoices=function(){return!this.hasOther&&"none"==this.choicesOrder},t.prototype.addToVisibleChoices=function(e){this.hasOther&&e.push(this.otherItem)},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var r=e.prototype.getPlainData.call(this,t);if(r){var i=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(i.map(function(e,r){var i=a.a.getItemByValue(n.visibleChoices,e),o={name:r,title:"Choice",value:e,displayValue:n.getChoicesDisplayValue(n.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return i&&(t.calculations||[]).forEach(function(e){o[e.propertyName]=i[e.propertyName]}),n.isOtherSelected&&n.otherItemValue===i&&(o.isOther=!0,o.displayValue=n.comment),o}))}return r},t.prototype.getDisplayValueCore=function(e,t){return this.getChoicesDisplayValue(this.visibleChoices,t)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.comment?this.comment:this.locOtherText.textOrHtml;var n=a.a.getTextOrHtmlByValue(e,t);return""==n&&t?t:n},Object.defineProperty(t.prototype,"filteredChoices",{get:function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!0,configurable:!0}),t.prototype.getChoices=function(){return this.choices},t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return!0},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),this.hasOther&&this.isOtherSelected&&!this.comment&&t.push(new u.e(this.otherErrorText,this))},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.runChoicesByUrl()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||!this.choicesByUrl.isEmpty&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.runChoicesByUrl(),this.onVisibleChoicesChanged()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),t!=this.getValueName()&&this.runChoicesByUrl()},t.prototype.updateValueFromSurvey=function(t){var n="";this.hasOther&&this.getStoreOthersAsComment()&&this.hasUnknownValue(t)&&!this.getHasOther(t)&&(n=this.getCommentFromValue(t),t=this.setOtherValueIntoValue(t)),e.prototype.updateValueFromSurvey.call(this,t),n&&this.setNewComment(n)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.runChoicesByUrl=function(){if(this.choicesByUrl&&!this.isLoadingFromJson&&!this.isRunningChoices){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.isReadyValue=this.isChoicesLoaded||this.choicesByUrl.isEmpty,this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){!0!==d.a.disableOnGettingChoicesFromWeb||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){if(this.enableOnLoadingChoices&&(this.readOnly=!1),!this.isReadOnly){var t=[];this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error),this.errors=t}var n=null,r=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,r=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value),this.isFirstLoadChoicesFromUrl=!1;var i=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,r);if(e&&e.length>0&&(n=new Array,a.a.setData(n,e)),this.choicesFromUrl=n,this.filterItems(),this.onVisibleChoicesChanged(),n){var o=this.updateCachedValueForUrlRequests(i,n);if(o&&!this.isReadOnly){var l=!s.a.isTwoValueEquals(this.value,o.value);try{s.a.isValueEmpty(o.value)||(this.allowNotifyValueChanged=!1,this.locNotificationInData=!0,this.value=void 0,this.locNotificationInData=!1),this.allowNotifyValueChanged=l,this.value=o.value}finally{this.allowNotifyValueChanged=!0}}}this.choicesLoaded()},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++)n.push(this.createCachedValueForUrlRequests(e[r],!0));return n}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++){var i=this.updateCachedValueForUrlRequests(e[r],t);if(i&&!this.isValueEmpty(i.value)){var o=i.value,s=a.a.getItemByValue(t,i.value);s&&(o=s.value),n.push(o)}}return{value:n}}var l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,s=a.a.getItemByValue(t,l);return s&&(l=s.value),{value:l}},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||(this.updateVisibleChoices(),this.updateVisibilityBasedOnChoices(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback())},t.prototype.updateVisibilityBasedOnChoices=function(){this.hideIfChoicesEmpty&&(this.visible=!this.filteredChoices||this.filteredChoices.length>0)},t.prototype.sortVisibleChoices=function(e){var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort(function(e,n){return e.calculatedText<n.calculatedText?-1*t:e.calculatedText>n.calculatedText?1*t:0})},t.prototype.randomizeArray=function(e){return s.a.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){this.keepIncorrectValues||this.survey&&this.survey.questionCountByValueName(this.getValueName())>1||this.choicesByUrl&&!this.choicesByUrl.isEmpty||(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknow(e)&&this.clearValue()},t.prototype.canClearValueAnUnknow=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||this.hasComment||(this.comment="")},t.prototype.getColumnClass=function(){var e=this.cssClasses.column;return this.hasColumns&&(e+=" sv-q-column-"+this.colCount),e},t.prototype.getLabelClass=function(e){var t=this.cssClasses.label;return this.isItemSelected(e)&&(t+=" "+this.cssClasses.labelChecked),t},t.prototype.getControlLabelClass=function(e){var t=this.cssClasses.controlLabel;return this.isItemSelected(e)&&(t+=" "+this.cssClasses.controlLabelChecked),t},Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.colCount;if(this.hasColumns&&this.visibleChoices.length>0)if("column"==d.a.showItemsInOrder)for(var n=0,r=this.visibleChoices.length%t,i=0;i<t;i++){for(var o=[],a=n;a<n+Math.floor(this.visibleChoices.length/t);a++)o.push(this.visibleChoices[a]);r>0&&(r--,o.push(this.visibleChoices[a]),a++),n=a,e.push(o)}else for(var i=0;i<t;i++){for(var o=[],a=i;a<this.visibleChoices.length;a+=t)o.push(this.visibleChoices[a]);e.push(o)}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasColumns",{get:function(){return this.colCount>1},enumerable:!0,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0;var e=this.isReadyValue;this.isReadyValue=!0,this.onReadyChanged&&this.onReadyChanged.fire(this,{question:this,isReady:!0,oldIsReady:e})},t}(o.a),f=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:1)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!0,configurable:!0}),t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t}(h);i.b.addClass("selectbase",[{name:"hasComment:switch",layout:"row"},{name:"commentText",dependsOn:"hasComment",visibleIf:function(e){return e.hasComment},serializationProperty:"locCommentText",layout:"row"},{name:"choices:itemvalue[]",baseValue:function(){return l.a.getString("choices_Item")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"]},{name:"choicesByUrl:restfull",className:"ChoicesRestfull",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition","choicesEnableIf:condition","hasOther:boolean",{name:"otherPlaceHolder",serializationProperty:"locOtherPlaceHolder",dependsOn:"hasOther",visibleIf:function(e){return e.hasOther}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"hasOther",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"hasOther",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),i.b.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},function(e,t,n){"use strict";function r(e,t,n,r){e.storeOthersAsComment=!!n&&n.storeOthersAsComment,e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=n.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(r.getTextProcessor())}var i=n(0),o=n(1),a=n(50),s=n(4),l=n(5),u=n(24),c=n(2),p=n(3),d=n(14),h=n(31),f=n(27),g=n(18),m=n(7);n.d(t,"e",function(){return y}),n.d(t,"d",function(){return v}),n.d(t,"c",function(){return b}),n.d(t,"b",function(){return w}),n.d(t,"a",function(){return T});var y={dropdown:{properties:["choices","choicesOrder","choicesByUrl","optionsCaption","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,n,i){r(e,t,n,i),e.locOptionsCaption&&e.locOptionsCaption.isEmpty&&!n.locOptionsCaption.isEmpty&&(e.optionsCaption=n.optionsCaption)}},checkbox:{properties:["choices","choicesOrder","choicesByUrl","otherText","choicesVisibleIf","hasSelectAll","hasNone"],onCellQuestionUpdate:function(e,t,n,i){r(e,t,n,i),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},radiogroup:{properties:["choices","choicesOrder","choicesByUrl","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,n,i){r(e,t,n,i),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},text:{properties:["placeHolder","inputType","maxLength","min","max","step"],onCellQuestionUpdate:function(e,t,n,r){}},comment:{properties:["placeHolder","rows","maxLength"],onCellQuestionUpdate:function(e,t,n,r){}},boolean:{properties:["renderAs","defaultValue"],onCellQuestionUpdate:function(e,t,n,r){e.showTitle=!0,e.renderAs=t.renderAs}},expression:{properties:["expression","displayStyle","currency"],onCellQuestionUpdate:function(e,t,n,r){}},rating:{properties:["rateValues"]}},v=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;r.colOwnerValue=null,r.indexValue=-1,r._isVisible=!0,r._hasVisibleCell=!0;var i=r;return r.createLocalizableString("totalFormat",r),r.registerFunctionOnPropertyValueChanged("showInMultipleColumns",function(){i.doShowInMultipleColumnsChanged()}),r.updateTemplateQuestion(),r.name=t,n&&(r.title=n),r}return n.i(i.b)(t,e),t.getColumnTypes=function(){var e=[];for(var t in y)e.push(t);return e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.templateQuestion.endLoadingFromJson()},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return this.calcCellQuestionType()},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,this.updateTemplateQuestion()},enumerable:!0,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!0,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.setPropertyValue("cellType",e),this.updateTemplateQuestion(),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!0,configurable:!0}),t.prototype.setIsVisible=function(e){this._isVisible=e},Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.templateQuestion.requiredText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns",!1)},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType","none")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){n.i(h.b)().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",-1)},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.colOwner?this.colOwner.getMarkdownHtml(e,t):null},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(),n=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(n,e),n},t.prototype.updateCellQuestion=function(e,t,n){void 0===n&&(n=null),this.setQuestionProperties(e,n),this.callOnCellQuestionUpdate(e,t)},t.prototype.callOnCellQuestionUpdate=function(e,t){var n=e.getType(),r=y[n];r&&r.onCellQuestionUpdate&&r.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(){return"default"!==this.cellType?this.cellType:this.colOwner?this.colOwner.getCellType():m.a.matrixDefaultCellType},t.prototype.updateTemplateQuestion=function(){var e=this.templateQuestion?this.templateQuestion.getType():"",t=this.calcCellQuestionType();if(t!==e){this.templateQuestion&&this.removeProperties(e),this.templateQuestionValue=this.createNewQuestion(t),this.templateQuestion.locOwner=this,this.addProperties(t);var n=this;this.templateQuestion.onPropertyChanged.add(function(e,t){n.propertyValueChanged(t.name,t.oldvalue,t.newValue)})}},t.prototype.createNewQuestion=function(e){var t=o.b.createClass(e);return t||(t=o.b.createClass("text")),t.loadingOwner=this,this.setQuestionProperties(t),t},t.prototype.setQuestionProperties=function(e,t){if(void 0===t&&(t=null),this.templateQuestion){var n=(new o.c).toJsonObject(this.templateQuestion,!0);t&&t(n),n.type=e.getType(),(new o.c).toObject(n,e)}},t.prototype.propertyValueChanged=function(t,n,r){e.prototype.propertyValueChanged.call(this,t,n,r),"visibleChoices"!=t&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnPropertyChanged(this,t,r))},t.prototype.doShowInMultipleColumnsChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onShowInMultipleColumnsChanged(this)},t.prototype.getProperties=function(e){return o.b.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),n=0;n<t.length;n++){var r=t[n];delete this[r.name],r.serializationProperty&&delete this[r.serializationProperty]}},t.prototype.addProperties=function(e){for(var t=this.templateQuestion,n=this.getProperties(e),r=0;r<n.length;r++){var i=n[r];this.addProperty(t,i.name,!1),i.serializationProperty&&this.addProperty(t,i.serializationProperty,!0)}},t.prototype.addProperty=function(e,t,n){var r={configurable:!0,get:function(){return e[t]}};n||(r.set=function(n){e[t]=n}),Object.defineProperty(this,t,r)},t}(l.b),b=function(){function e(e,t,n){this.column=e,this.row=t,this.data=n,this.questionValue=this.createQuestion(e,t,n),this.questionValue.updateCustomWidget()}return e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,n){var r=n.createQuestion(this.row,this.column);return r.validateValueCallback=function(){return n.validateCell(t,e.name,t.value)},o.a.getProperties(e.getType()).forEach(function(t){var n=t.name;void 0!==e[n]&&(r[n]=e[n])}),r},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!0,configurable:!0}),e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),x=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.column=t,i.row=n,i.data=r,i.updateCellQuestion(),i}return n.i(i.b)(t,e),t.prototype.createQuestion=function(e,t,n){var r=o.b.createClass("expression");return r.setSurveyImpl(t),r},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,function(e){delete e.defaultValue}),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation()},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"";var e=this.column.totalType+"InArray";return f.a.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(b),C=function(e){function t(t,n){var r=e.call(this,n)||this;return r.row=t,r.variableName=n,r}return n.i(i.b)(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!0,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==w.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):e.name==w.RowValueVariableName&&(e.isExists=!0,e.value=this.row.rowName,!0)},t}(u.b),w=function(){function e(t,n){var r=this;this.isSettingValue=!1,this.detailPanelValue=null,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(n),this.textPreProcessor=new C(this,e.RowVariableName),this.showHideDetailPanelClick=function(){r.showHideDetailPanel()},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=this.questions,n=0;n<t.length;n++){var r=t[n];r.isEmpty()||(e[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(e[r.getValueName()+m.a.commentPrefix]=r.comment)}return e},set:function(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],i=e?e[r.getValueName()]:null,o=r.comment,a=e?e[r.getValueName()+m.a.commentPrefix]:"";void 0==a&&(a=""),r.updateValueFromSurvey(i),(a||s.a.isTwoValueEquals(o,r.comment))&&r.updateCommentFromSurvey(a),r.onSurveyValueChanged(i)}this.isSettingValue=!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.data&&this.data.hasDetailPanel(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDetailPanelShowing",{get:function(){return!!this.data&&this.data.getIsDetailPanelShowing(this)},enumerable:!0,configurable:!0}),e.prototype.setIsDetailPanelShowing=function(e){this.data&&this.data.setIsDetailPanelShowing(this,e)},e.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},e.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},e.prototype.hideDetailPanel=function(e){void 0===e&&(e=!1),this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)},e.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!this.detailPanelValue&&this.hasPanel&&this.data){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.data.getRowValue(this.data.getRowIndex(this));if(!s.a.isValueEmpty(t))for(var n=0;n<e.length;n++){var r=e[n].getValueName();s.a.isValueEmpty(t[r])||(e[n].value=t[r])}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.getAllValues(),t={row:e};for(var n in e)t[n]=e[n];return t},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.runCondition=function(t,n){this.data&&(t[e.OwnerVariableName]=this.data.value),t[e.IndexVariableName]=this.rowIndex,t[e.RowValueVariableName]=this.rowName,n||(n={}),n[e.RowVariableName]=this;for(var r=0;r<this.cells.length;r++)t[e.RowVariableName]=this.value,this.cells[r].runCondition(t,n);this.detailPanel&&this.detailPanel.runCondition(t,n)},e.prototype.onAnyValueChanged=function(e){for(var t=this.questions,n=0;n<t.length;n++)t[n].onAnyValueChanged(e)},e.prototype.getDataValueCore=function(e,t){var n=this.getSurvey();return n?n.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByName(e);return t?t.value:null},e.prototype.setValue=function(e,t){this.setValueCore(e,t,!1)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getQuestionByName(e);return t?t.comment:""},e.prototype.setComment=function(e,t,n){this.setValueCore(e,t,!0)},e.prototype.setValueCore=function(t,n,r){if(!this.isSettingValue){var i=this.value,o=r?t+m.a.commentPrefix:t,a=r?this.getComment(t):this.getValue(t),l=this.getQuestionByName(t),u=this.data.onRowChanging(this,o,i);l&&!s.a.isTwoValueEquals(u,a)?r?l.comment=u:l.value=u:(this.data.onRowChanged(this,o,i,null==n&&!l),this.onAnyValueChanged(e.RowVariableName))}},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.a.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!0,configurable:!0}),e.prototype.getQuestionByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t].question;return null},e.prototype.getQuestionByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t].question;return null},Object.defineProperty(e.prototype,"questions",{get:function(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);for(var n=this.detailPanel?this.detailPanel.questions:[],t=0;t<n.length;t++)e.push(n[t]);return e},enumerable:!0,configurable:!0}),e.prototype.getQuestionByName=function(e){var t=this.getQuestionByColumnName(e);return t||(this.detailPanel?this.detailPanel.getQuestionByName(e):null)},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var n=this.getQuestionByName(t);if(n){var r=n.value;n.clearIncorrectValues(),s.a.isTwoValueEquals(r,n.value)||this.setValue(t,n.value)}else!this.getSharedQuestionByName(t)&&t.indexOf(m.a.matrixTotalValuePostFix)<0&&this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e,t){return this.data?this.data.getMarkdownHtml(e,t):null},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,n){for(var r=0;r<this.cells.length;r++)if(this.cells[r].column===e)return void this.updateCellOnColumnChanged(this.cells[r],t,n)},e.prototype.onQuestionReadOnlyChanged=function(e){for(var t=this.questions,n=0;n<t.length;n++)t[n].readOnly=e},e.prototype.hasErrors=function(e,t,n){var r=!1,i=this.cells;if(!i)return r;for(var o=0;o<i.length;o++)if(i[o]){var a=i[o].question;a&&a.visible&&(a.onCompletedAsyncValidators=function(e){n()},t&&!0===t.isOnValueChanged&&a.isEmpty()||(r=a.hasErrors(e,t)||r))}if(this.hasPanel){this.ensureDetailPanel();var s=this.detailPanel.hasErrors(e,!1,t);!t.hideErroredPanel&&s&&e&&(t.isSingleDetailPanel&&(t.hideErroredPanel=!0),this.showDetailPanel()),r=s||r}return r},e.prototype.updateCellOnColumnChanged=function(e,t,n){e.question[t]=n},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,n=0;n<t.length;n++){var r=t[n];if(r.isVisible){var i=this.createCell(r);if(this.cells.push(i),e&&!s.a.isValueEmpty(e[r.name])){i.question.value=e[r.name];var o=r.name+m.a.commentPrefix;s.a.isValueEmpty(e[o])||(i.question.comment=e[o])}}}this.isSettingValue=!1},e.prototype.createCell=function(e){return new b(e,this,this.data)},e.prototype.geSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},e.prototype.subscribeToChanges=function(e){var t=this;e&&e.getType&&e.onPropertyChanged&&e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=function(e,n){t.updateOnSetValue(n.name,n.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},e.prototype.updateOnSetValue=function(e,t){this.isSettingValue=!0;var n=this.getQuestionByName(e);n&&(n.value=t),this.isSettingValue=!1},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.RowValueVariableName="rowValue",e.idCounter=1,e}(),P=function(e){function t(t){var n=e.call(this,t,null)||this;return n.buildCells(null),n}return n.i(i.b)(t,e),t.prototype.createCell=function(e){return new x(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,n){var r,i=0;do{r=s.a.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,n),i++}while(!s.a.isTwoValueEquals(r,this.value)&&i<3)},t.prototype.updateCellOnColumnChanged=function(e,t,n){e.updateCellQuestion()},t}(w),V=function(){function e(){this.minWidth="",this.width="",this.colSpans=1,this.className="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!0,configurable:!0}),e.prototype.showErrorOnCore=function(e){return this.getShowErrorLocation()==e&&(!this.isChoice||this.isFirstChoice)},e.prototype.getShowErrorLocation=function(){return this.hasQuestion?this.question.survey.questionErrorLocation:""},Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isChoice&&"checkbox"==this.question.getType()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!0,configurable:!0}),e.counter=1,e}(),_=function(){function e(){this.isDetailRow=!1,this.cells=[],this.className="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),e.counter=1,e}(),k=function(e){function t(t){var n=e.call(this)||this;return n.matrix=t,n.createNewArray("rows"),n.build(),n}return n.i(i.b)(t,e),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!0,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!0,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows;this.matrix.visibleRows;this.cssClasses=this.matrix.cssClasses,this.buildHeader(),this.buildRows(),this.buildFooter()},t.prototype.onAddedRow=function(){this.getRenderedDataRowCount()>=this.matrix.visibleRows.length||this.addHorizontalRow(this.rows,this.matrix.visibleRows[this.matrix.visibleRows.length-1],1==this.matrix.visibleRows.length&&!this.matrix.showHeader)},t.prototype.getRenderedDataRowCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.rows[t].isDetailRow||e++;return e},t.prototype.onRemovedRow=function(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){var n=1;t<this.rows.length-1&&this.rows[t+1].isDetailRow&&n++,this.rows.splice(t,n)}},t.prototype.onDetailPanelChangeVisibility=function(e,t){var n=this.getRenderedRowIndex(e);if(!(n<0)){var r=n<this.rows.length-1&&this.rows[n+1].isDetailRow?n+1:-1;if(!(t&&r>-1||!t&&r<0))if(t){var i=this.createDetailPanelRow(e,this.rows[n]);this.rows.splice(n+1,0,i)}else this.rows.splice(r,1)}},t.prototype.getRenderedRowIndex=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return-1},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader,t=e||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",t),t){if(this.headerRowValue=new _,this.getHasDetailPanelInRows()&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var n=0;n<this.matrix.visibleColumns.length;n++){var r=this.matrix.visibleColumns[n];r.hasVisibleCell&&(r.isShowInMultipleColumns?this.createMutlipleColumnsHeader(r):this.headerRow.cells.push(this.createHeaderCell(r)))}else{for(var i=this.matrix.visibleRows,n=0;n<i.length;n++)this.headerRow.cells.push(this.createTextCell(i[n].locText));this.matrix.hasFooter&&this.headerRow.cells.push(this.createTextCell(this.matrix.getFooterText()))}this.hasRemoveRows&&this.headerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildFooter=function(){if(this.showFooter){this.footerRowValue=new _,this.getHasDetailPanelInRows()&&this.footerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.footerRow.cells.push(this.createTextCell(this.matrix.getFooterText()));for(var e=this.matrix.visibleTotalRow.cells,t=0;t<e.length;t++){var n=e[t];n.column.hasVisibleCell&&(n.column.isShowInMultipleColumns?this.createMutlipleColumnsFooter(this.footerRow,n):this.footerRow.cells.push(this.createEditCell(n)))}this.hasRemoveRows&&this.footerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildRows=function(){var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.setPropertyValue("rows",e)},t.prototype.getHasDetailPanelInRows=function(){if(!this.matrix.isColumnLayoutHorizontal)return!1;for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)if(e[t].hasPanel)return!0;return!1},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],n=0;n<e.length;n++)this.addHorizontalRow(t,e[n],0==n&&!this.matrix.showHeader);return t},t.prototype.addHorizontalRow=function(e,t,n){var r=this.createHorizontalRow(t,n);r.row=t,e.push(r),t.isDetailPanelShowing&&e.push(this.createDetailPanelRow(t,r))},t.prototype.createHorizontalRow=function(e,t){var n=new _;if(e.hasPanel){var r=new V;r.isShowHideDetail=!0,r.className=this.cssClasses.detailCell,r.row=e,n.cells.push(r)}if(this.matrix.hasRowText){var i=this.createTextCell(e.locText);n.cells.push(i),t&&this.setHeaderCellWidth(null,i),e.hasPanel&&this.cssClasses.detailRowText&&(i.className&&(i.className+=" "),i.className+=this.cssClasses.detailRowText)}for(var o=0;o<e.cells.length;o++){var r=e.cells[o];if(r.column.hasVisibleCell)if(r.column.isShowInMultipleColumns)this.createMutlipleEditCells(n,r);else{var i=this.createEditCell(r);n.cells.push(i),t&&this.setHeaderCellWidth(r.column,i)}}return this.hasRemoveRows&&n.cells.push(this.createRemoveRowCell(e)),n},t.prototype.createDetailPanelRow=function(e,t){var n=new _;n.row=e,n.className=this.cssClasses.detailRow,n.isDetailRow=!0;var r=new V;this.matrix.hasRowText&&(r.colSpans=2),r.isEmpty=!0,n.cells.push(r);var i=null;this.hasRemoveRows&&(i=new V,i.isEmpty=!0);var o=new V;return o.panel=e.detailPanel,o.colSpans=t.cells.length-r.colSpans-(i?i.colSpans:0),o.className=this.cssClasses.detailPanelCell,n.cells.push(o),i&&n.cells.push(i),n},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],n=0;n<e.length;n++){var r=e[n];r.isVisible&&r.hasVisibleCell&&(r.isShowInMultipleColumns?this.createMutlipleVerticalRows(t,r,n):t.push(this.createVerticalRow(r,n)))}return this.hasRemoveRows&&t.push(this.createVerticalRemoveRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,n){var r=this.getMultipleColumnChoices(t);if(r)for(var i=0;i<r.length;i++)e.push(this.createVerticalRow(t,n,r[i],i))},t.prototype.createVerticalRow=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=-1);var i=new _;if(this.matrix.showHeader){var o=n?n.locText:e.locTitle,a=this.createTextCell(o);n||this.setRequriedToHeaderCell(e,a),i.cells.push(a)}for(var s=this.matrix.visibleRows,l=0;l<s.length;l++){var u=this.createEditCell(s[l].cells[t]);u.item=n,u.choiceIndex=r>=0?r:l,i.cells.push(u)}return this.matrix.hasTotal&&i.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),i},t.prototype.createVerticalRemoveRow=function(){var e=new _;this.matrix.showHeader&&e.cells.push(this.createTextCell(null));for(var t=this.matrix.visibleRows,n=0;n<t.length;n++)e.cells.push(this.createRemoveRowCell(t[n]));return this.matrix.hasTotal&&e.cells.push(this.createTextCell(null)),e},t.prototype.createMutlipleEditCells=function(e,t,n){void 0===n&&(n=!1);var r=this.getMultipleColumnChoices(t.column);if(r)for(var i=0;i<r.length;i++){var o=this.createEditCell(t);n||(o.item=r[i],o.choiceIndex=i),e.cells.push(o)}},t.prototype.createEditCell=function(e){var t=new V;t.cell=e,t.row=e.row,t.question=e.question,t.matrix=this.matrix;var n=e.question.cssClasses,r="";return n&&(r="",n.itemValue&&(r+=" "+n.itemValue),n.asCell&&(r&&(r+=""),r+=n.asCell)),!r&&this.cssClasses.cell&&(r=this.cssClasses.cell),t.className=r,t},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var n=0;n<t.length;n++){var r=this.createTextCell(t[n].locText);this.setHeaderCell(e,r),this.headerRow.cells.push(r)}},t.prototype.getMultipleColumnChoices=function(e){var t=e.templateQuestion.choices;if(t&&Array.isArray(t)&&0==t.length)return this.matrix.choices;var t=e.templateQuestion.visibleChoices;return t&&Array.isArray(t)?t:null},t.prototype.createHeaderCell=function(e){var t=this.createTextCell(e?e.locTitle:null);return this.setHeaderCell(e,t),this.cssClasses.headerCell&&(t.className=this.cssClasses.headerCell),t},t.prototype.setHeaderCell=function(e,t){this.setHeaderCellWidth(e,t),this.setRequriedToHeaderCell(e,t)},t.prototype.setHeaderCellWidth=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):"",t.width=null!=e?e.width:this.matrix.getRowTitleWidth()},t.prototype.setRequriedToHeaderCell=function(e,t){e&&e.isRequired&&this.matrix.survey&&(t.requiredText=this.matrix.survey.requiredText)},t.prototype.createRemoveRowCell=function(e){var t=new V;return t.row=e,t.isRemoveRow=this.canRemoveRow(e),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createTextCell=function(e){var t=new V;return t.locTitle=e||new d.a(this.matrix,!1),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t}(l.b),T=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1;var r=n;return n.createItemValues("choices"),n.createLocalizableString("optionsCaption",n),n.detailPanelValue=n.createNewDetailPanel(),n.detailPanel.selectedElementInDesign=n,n.detailPanel.renderWidth="100%",n.registerFunctionOnPropertyValueChanged("columns",function(e){r.updateColumnsIndexes(e),r.clearGeneratedRows(),r.generatedTotalRow=null,r.resetRenderedTable(),r.fireCallback(r.columnsChangedCallback)}),n.registerFunctionOnPropertiesValueChanged(["columnLayout","addRowLocation"],function(){r.fireCallback(r.columnLayoutChangedCallback)}),n.registerFunctionOnPropertiesValueChanged(["cellType","optionsCaption","columnColCount","rowTitleWidth"],function(){r.clearGeneratedRows(),r.resetRenderedTable(),r.fireCallback(r.columnsChangedCallback)}),n.registerFunctionOnPropertiesValueChanged(["columnLayout","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode"],function(){r.resetRenderedTable()}),n}return n.i(i.b)(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return m.a.matrixDefaultCellType},set:function(e){m.a.matrixDefaultCellType=e},enumerable:!0,configurable:!0}),t.addDefaultColumns=function(e){for(var t=p.b.DefaultColums,n=0;n<t.length;n++)e.addColumn(t[n])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",function(t){t.colOwner=e})},t.prototype.getType=function(){return"matrixdropdownbase"},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.getPropertyValue("columnLayout")},set:function(e){this.setPropertyValue("columnLayout",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return"vertical"!=this.columnLayout},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode","none")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!0,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!0,configurable:!0}),t.prototype.createNewDetailPanel=function(){return new g.b},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0},t.prototype.onEndRowAdding=function(){this.lockResetRenderedTable=!1,this.renderedTable&&(this.renderedTable.isRequireReset()?this.resetRenderedTable():this.renderedTable.onAddedRow())},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!0,configurable:!0}),t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isLoadingFromJson||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].dispose();e.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!0,configurable:!0}),t.prototype.createRenderedTable=function(){return new k(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},n=0;n<this.visibleColumns.length;n++){t.column=this.visibleColumns[n],t.columnName=t.column.name;var r=e.cells[n];t.cell=r,t.cellQuestion=r.question,t.value=r.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",m.a.matrixDefaultCellType)},set:function(e){e=e.toLowerCase(),this.cellType!=e&&(this.setPropertyValue("cellType",e),this.updateColumnsCellType(),this.fireCallback(this.updateCellsCallback))},enumerable:!0,configurable:!0}),t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount",0)},set:function(e){e<0||e>4||(this.setPropertyValue("columnColCount",e),this.fireCallback(this.updateCellsCallback))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll",!1)},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!0,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.onColumnPropertyChanged=function(e,t,n){if(this.updateHasFooter(),this.generatedVisibleRows){for(var r=0;r<this.generatedVisibleRows.length;r++)this.generatedVisibleRows[r].updateCellQuestionOnColumnChanged(e,t,n);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,n),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable(),e.isShowInMultipleColumns&&this.onShowInMultipleColumnsChanged(e)}},t.prototype.onShowInMultipleColumnsChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.onColumnCellTypeChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!0,configurable:!0}),t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!0,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);for(var r="",i=n.length-1;i>=0&&"."!=n[i];i--)r=n[i]+r;var o=this.getColumnByName(r);if(!o)return null;var a=o.createCellQuestion(null);return a?a.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){var e=this.visibleRows;if(e)for(var t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))},t.prototype.clearErrors=function(){if(e.prototype.clearErrors.call(this),this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t],r=0;r<n.cells.length;r++)n.cells[r].question.clearErrors()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n);var r,i=0;do{r=s.a.getUnbindValue(this.totalValue),this.runCellsCondition(t,n),this.runTotalsCondition(t,n),i++}while(!s.a.isTwoValueEquals(r,this.totalValue)&&i<3)},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){for(var n=this.getRowConditionValues(e),r=this.generatedVisibleRows,i=0;i<r.length;i++)r[i].runCondition(n,t);this.checkColumnsVisibility()}},t.prototype.checkColumnsVisibility=function(){for(var e=!1,t=0;t<this.visibleColumns.length;t++)this.visibleColumns[t].visibleIf&&(e=this.isColumnVisibilityChanged(this.visibleColumns[t])||e);e&&this.resetRenderedTable()},t.prototype.isColumnVisibilityChanged=function(e){for(var t=e.hasVisibleCell,n=!1,r=this.generatedVisibleRows,i=0;i<r.length;i++){var o=r[i].cells[e.index];if(o&&o.question&&o.question.isVisible){n=!0;break}}return t!=n&&(e.hasVisibleCell=n),t!=n},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t=e;t||(t={});var n={};return s.a.isValueEmpty(this.totalValue)||(n=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=n,t},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);var t=this.generatedVisibleRows;if(t){for(var n=this.columns,r=0;r<n.length;r++)n[r].locStrsChanged();for(var r=0;r<t.length;r++)t[r].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){return e.minWidth?e.minWidth:this.columnMinWidth},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",c.a.getString("optionsCaption"))},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return!!this.survey&&this.survey.storeOthersAsComment},enumerable:!0,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var n=new v(e,t);return this.columns.push(n),n},t.prototype.getVisibleRows=function(){var e=this;return this.isLoadingFromJson?null:(this.generatedVisibleRows||(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach(function(t){return e.onMatrixRowCreated(t)}),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()),this.generatedVisibleRows)},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),n=this.createNewValue(),r=0;r<e.length;r++){var i=e[r];if(!i.editingObj){var o=this.getRowValue(r),a=i.value;this.isTwoValueEquals(o,a)||(n=this.getNewValueOnRowChanged(i,"",a,!1,n).value)}}this.isTwoValueEquals(t,n)||(this.isRowChanging=!0,this.setNewValue(n),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!0,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isLoadingFromJson)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var n=this.createNewValue();return this.getRowValueCore(t[e],n)},t.prototype.setRowValue=function(e,t){if(e<0)return null;var n=this.visibleRows;if(e>=n.length)return null;n[e].value=t,this.onRowChanged(n[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new P(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,n){void 0===n&&(n=!1);var r=t&&t[e.rowName]?t[e.rowName]:null;return!r&&n&&(r={},t&&(t[e.rowName]=r)),r},t.prototype.getRowObj=function(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null},t.prototype.getRowDisplayValue=function(e,t){if(!t)return t;if(e.editingObj)return t;for(var n in t){var r=e.getQuestionByName(n);r||(r=this.getSharedQuestionByName(n,e)),r&&(t[n]=r.displayValue)}return t},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);return r&&(r.isNode=!0,r.data=this.visibleRows.map(function(e){var r={name:e.rowName,title:e.rowName,value:e.value,displayValue:n.getRowDisplayValue(e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map(function(e){return e.question.getPlainData(t)}).filter(function(e){return!!e})};return(t.calculations||[]).forEach(function(t){r[t.propertyName]=e[t.propertyName]}),r})),r},t.prototype.getProgressInfo=function(){return l.a.getProgressInfoByElements(this.getCellQuestions(),this.isRequired)},t.prototype.getCellQuestions=function(){var e=this.visibleRows;if(!e)return[];for(var t=[],n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.cells.length;i++)t.push(r.cells[i].question);return t},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(n,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++){var i=n[r].question;if(i&&(!i.supportGoNextPageAutomatic()||!i.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors(function(e){return e.containsErrors},!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors(function(e){return e.isAnswered},!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var n=this.generatedVisibleRows;if(!n)return!1;for(var r=0;r<n.length;r++){var i=n[r].cells;if(i)for(var o=0;o<i.length;o++)if(i[o]){var a=i[o].question;if(a&&a.isVisible)if(e(a)){if(!t)return!0}else if(t)return!1}}return!!t},t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=this.hasErrorInRows(t,n);return e.prototype.hasErrors.call(this,t,n)||r},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++)if(n[r]){var i=n[r].question;if(i&&i.isRunningValidators)return!0}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(null===n)return t;for(var r=0;r<n.length;r++)for(var i=n[r],o=0;o<i.cells.length;o++){var a=i.cells[o].question.getAllErrors();a&&a.length>0&&(t=t.concat(a))}return t},t.prototype.hasErrorInRows=function(e,t){var n=this;if(!this.generatedVisibleRows)return!1;var r=!1;t||(t={}),t.isSingleDetailPanel="underRowSingle"==this.detailPanelMode;for(var i=0;i<this.generatedVisibleRows.length;i++)r=this.generatedVisibleRows[i].hasErrors(e,t,function(){n.raiseOnCompletedAsyncValidators()})||r;return r},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t].cells,r=0;r<n.length;r++){if(!e)return n[r].question;if(n[r].question.currentErrorCount>0)return n[r].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged(this.isReadOnly)},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var n=t.createCellQuestion(e);return this.isReadOnly&&(n.readOnly=!0),n.setSurveyImpl(e),n.setParentQuestion(this),n},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e){if(!this.isLoadingFromJson&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var t=this.visibleRows,n=0;n<t.length;n++)t[n].onAnyValueChanged(e);var r=this.visibleTotalRow;r&&r.onAnyValueChanged(e),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,n){var r=this,i=function(t){for(var n=0;r.columns.length;n++)if(r.columns[n].name===t)return e.cells[n].question;return null};return{row:e,columnName:t,rowValue:n,value:n?n[t]:null,getCellQuestion:i}},t.prototype.onCellValueChanged=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(r),this.survey.matrixCellValueChanged(this,r)}},t.prototype.validateCell=function(e,t,n){if(this.survey){var r=this,i=function(t){for(var n=0;r.columns.length;n++)if(r.columns[n].name===t)return e.cells[n].question;return null},o={row:e,columnName:t,rowValue:n,value:n[t],getCellQuestion:i};return this.survey.matrixCellValidate(this,o)}},t.prototype.onRowChanging=function(e,t,n){if(!this.survey)return n?n[t]:null;var r=this.getOnCellValueChangedOptions(e,t,n),i=this.getRowValueCore(e,this.createNewValue(),!0);return r.oldValue=i?i[t]:null,this.survey.matrixCellValueChanging(this,r),r.value},t.prototype.onRowChanged=function(e,t,n,r){var i=t?this.getRowObj(e):null;if(i){var o=null;n&&!r&&(o=n[t]),this.isRowChanging=!0,i[t]=o,this.isRowChanging=!1,this.onCellValueChanged(e,t,i)}else{var a=this.createNewValue(!0),s=this.getNewValueOnRowChanged(e,t,n,r,this.createNewValue());if(this.isTwoValueEquals(a,s.value))return;this.isRowChanging=!0,this.setNewValue(s.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,s.rowValue)}},t.prototype.getNewValueOnRowChanged=function(e,t,n,r,i){var o=this.getRowValueCore(e,i,!0);r&&delete o[t];for(var a=0;a<e.cells.length;a++){var s=e.cells[a].question.getValueName();delete o[s]}if(n){n=JSON.parse(JSON.stringify(n));for(var s in n)this.isValueEmpty(n[s])||(o[s]=n[s])}return this.isObject(o)&&0===Object.keys(o).length&&(i=this.deleteRowValue(i,e)),{value:i,rowValue:o}},t.prototype.getRowIndex=function(e){return this.generatedVisibleRows?this.visibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(t){return void 0===t&&(t=!1),"none"==this.detailPanelMode?e.prototype.getElementsInDesign.call(this,t):t?[this.detailPanel]:this.detailElements},t.prototype.hasDetailPanel=function(e){return"none"!=this.detailPanelMode&&(!!this.isDesignMode||(this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0))},t.prototype.getIsDetailPanelShowing=function(e){if("none"==this.detailPanelMode)return!1;if(this.isDesignMode){var t=0==this.visibleRows.indexOf(e);return t&&(e.detailPanel||e.showDetailPanel()),t}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,t){if(t!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),t&&"underRowSingle"===this.detailPanelMode))for(var n=this.visibleRows,r=0;r<n.length;r++)n[r].id!==e.id&&n[r].isDetailPanelShowing&&n[r].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var t=this.getPropertyValue("detailButtonCss"+e.id);if(t)return t;var t=this.cssClasses.detailButton;return t||""},t.prototype.getDetailPanelIconCss=function(e){var t=this.getPropertyValue("detailIconCss"+e.id);if(t)return t;var t=this.cssClasses.detailIcon;return t||""},t.prototype.updateDetailPanelButtonCss=function(e){var t=this.cssClasses,n=t.detailIcon;n||(n="");var r=t.detailButton;r||(r=""),this.getIsDetailPanelShowing(e)&&(t.detailIconExpanded&&(n+=" "+t.detailIconExpanded),t.detailButtonExpanded&&(r+=" "+t.detailButtonExpanded)),this.setPropertyValue("detailIconCss"+e.id,n),this.setPropertyValue("detailButtonCss"+e.id,r)},t.prototype.createRowDetailPanel=function(e){if(this.isDesignMode)return this.detailPanel;var t=this.createNewDetailPanel(),n=this.detailPanel.toJSON();return(new o.c).toObject(n,t),t.renderWidth="100%",t.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,t),t},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var n=this.getRowIndex(t);return n<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,n)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isLoadingFromJson&&!this.isSett&&this.data.setValue(this.getValueName()+m.a.matrixTotalValuePostFix,this.totalValue,!1)},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},t.prototype.getSurvey=function(){return this.survey},t}(a.a);o.b.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle"},{name:"cellType",default:"default",choices:function(){var e=v.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean","minWidth","width","visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return!!e&&e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",default:"none",choices:["none","sum","count","min","max","avg"]},"totalExpression:expression",{name:"totalFormat",serializationProperty:"locTotalFormat"},{name:"totalDisplayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"totalCurrency",choices:function(){return n.i(h.b)()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1},{name:"renderAs",default:"default",visible:!1}],function(){return new v("")}),o.b.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},{name:"detailElements",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},"horizontalScroll:boolean",{name:"choices:itemvalue[]"},{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"cellType",default:"dropdown",choices:function(){return v.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth"],function(){return new T("")},"matrixbase")},function(e,t,n){"use strict";var r=n(4),i=n(16);n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l});var o=function(){function e(){}return e}(),a=function(){function e(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0}return e}(),s=function(){function e(){}return e.prototype.process=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var i=this.getItems(e),o=i.length-1;o>=0;o--){var s=i[o],l=this.getName(e.substring(s.start+1,s.end));if(l){var u=new a(l,t);if(this.onProcess(u),u.isExists){r.a.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=r.a.isValueEmpty(u.value)?"":u.value;n&&(c=encodeURIComponent(c)),e=e.substr(0,s.start)+c+e.substr(s.end+1)}else u.canProcess&&(this.hasAllValuesOnLastRunValue=!1)}}return e},e.prototype.processValue=function(e,t){var n=new a(e,t);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!0,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],n=e.length,r=-1,i="",a=0;a<n;a++)if(i=e[a],"{"==i&&(r=a),"}"==i){if(r>-1){var s=new o;s.start=r,s.end=a,t.push(s)}r=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}(),l=function(){function e(e){var t=this;this.variableName=e,this.textPreProcessor=new s,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return e.prototype.processValue=function(e,t){return this.textPreProcessor.processValue(e,t)},Object.defineProperty(e.prototype,"survey",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"panel",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.getValues=function(){return this.panel?this.panel.getValue():null},e.prototype.getQuestionByName=function(e){return this.panel?this.panel.getQuestionByValueName(e):null},e.prototype.onCustomProcessText=function(e){return!1},e.prototype.getProcessedTextValue=function(e){if(e&&!this.onCustomProcessText(e)){var t=(new i.a).getFirstName(e.name);if(e.isExists=t==this.variableName,e.canProcess=e.isExists,e.canProcess){e.name=e.name.replace(this.variableName+".","");var t=(new i.a).getFirstName(e.name),n=this.getQuestionByName(t),r={};if(n)r[t]=e.returnDisplayValue?n.displayValue:n.value;else{var o=this.panel?this.getValues():null;o&&(r[t]=o[t])}e.value=(new i.a).getValue(e.name,r)}}},e.prototype.processText=function(e,t){e=this.textPreProcessor.process(e,t);var n=this.survey;return n?n.processText(e,t):e},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var n=this.textPreProcessor.hasAllValuesOnLastRun,r={hasAllValuesOnLastRun:!0,text:e};return this.survey&&(r=this.survey.processTextEx(e,t,!1)),r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&n,r},e}()},function(e,t,n){"use strict";function r(e){return l.a&&l.a.confirmActionFunc?l.a.confirmActionFunc(e):confirm(e)}function i(){if("undefined"==typeof window)return!1;if(void 0===i.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");i.isIEOrEdge=r>0||n>0||t>0}return i.isIEOrEdge}function o(e,t){try{for(var n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(n.length),o=new Uint8Array(i),a=0;a<n.length;a++)o[a]=n.charCodeAt(a);var s=new Blob([i],{type:r});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(s,t)}catch(e){}}function a(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n="visible"),"undefined"==typeof document)return!1;var r=e.getBoundingClientRect(),i=Math.max(document.documentElement.clientHeight,window.innerHeight),o=r.bottom-t<0,a=r.top-i+t>=0;return"above"===n?o:"below"===n?a:!o&&!a}function s(e){return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)?e===document.body?window:e:s(e.parentElement):window}var l=n(7);n.d(t,"c",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"e",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s})},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(27),a=n(16);n.d(t,"g",function(){return s}),n.d(t,"f",function(){return l}),n.d(t,"b",function(){return u}),n.d(t,"e",function(){return c}),n.d(t,"c",function(){return p}),n.d(t,"d",function(){return d}),n.d(t,"a",function(){return h}),n.d(t,"h",function(){return f});var s=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e}(),l=function(e){function t(t,n,r,i){void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=!1);var o=e.call(this)||this;return o.operatorName=t,o.left=n,o.right=r,o.isArithmeticValue=i,o.consumer=i?f.binaryFunctions.arithmeticOp(t):f.binaryFunctions[t],null==o.consumer&&f.throwInvalidOperatorError(t),o}return n.i(r.b)(t,e),t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!0,configurable:!0}),t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e))},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+f.safeToString(this.left,e)+" "+f.operatorToString(this.operatorName)+" "+f.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(s),u=function(e){function t(t,n){var r=e.call(this)||this;return r.expressionValue=t,r.operatorName=n,r.consumer=f.unaryFunctions[n],null==r.consumer&&f.throwInvalidOperatorError(n),r}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return f.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(s),c=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map(function(t){return t.toString(e)}).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map(function(t){return t.evaluate(e)})},t.prototype.setVariables=function(e){this.values.forEach(function(t){t.setVariables(e)})},t.prototype.hasFunction=function(){return this.values.some(function(e){return e.hasFunction()})},t.prototype.hasAsyncFunction=function(){return this.values.some(function(e){return e.hasAsyncFunction()})},t.prototype.addToAsyncList=function(e){this.values.forEach(function(t){return t.addToAsyncList(e)})},t}(s),p=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!0,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1])?e.substr(1,e.length-2):f.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):e.length>1&&"0"==e[0]?e:parseFloat(e):e:e},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(s),d=function(e){function t(n){var r=e.call(this,n)||this;return r.variableName=n,r.valueInfo={},r.useValueAsItIs=!1,r.variableName&&r.variableName.length>1&&r.variableName[0]===t.DisableConversionChar&&(r.variableName=r.variableName.substr(1),r.useValueAsItIs=!0),r}return n.i(r.b)(t,e),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var n=e(this);if(n)return n}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!0,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.DisableConversionChar="#",t}(p),h=function(e){function t(t,n){var r=e.call(this)||this;return r.origionalValue=t,r.parameters=n,r.isReadyValue=!1,Array.isArray(n)&&0===n.length&&(r.parameters=new c([])),r}return n.i(r.b)(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var n=new a.a;n.values=i.a.createCopy(e.values),n.properties=i.a.createCopy(e.properties),n.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(n)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return o.a.Instance.run(this.origionalValue,this.parameters.evaluate(e),e.properties)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.origionalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!0,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return o.a.Instance.isAsyncFunction(this.origionalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t}(s),f=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return(!t||!(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1))&&(!e.isSpaceString(t)&&i.a.isNumber(t))},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.isTwoValueEquals=function(e,t){return"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),i.a.isTwoValueEquals(e,t,!0)},e.operatorToString=function(t){var n=e.signs[t];return null==n?t:n},e.unaryFunctions={empty:function(e){return i.a.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){return function(n,r){i.a.isValueEmpty(n)&&!e.isSpaceString(n)&&(n="string"==typeof r?"":0),i.a.isValueEmpty(r)&&!e.isSpaceString(r)&&(r="string"==typeof n?"":0);var o=e.binaryFunctions[t];return null==o?null:o.call(this,n,r)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return e+t},minus:function(e,t){return e-t},mul:function(e,t){return e*t},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(e,t){return null!=e&&null!=t&&e>t},less:function(e,t){return null!=e&&null!=t&&e<t},greaterorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.greater(t,n)},lessorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.less(t,n)},equal:function(t,n){return e.isTwoValueEquals(t,n)},notequal:function(t,n){return!e.binaryFunctions.equal(t,n)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!i.a.isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(!t&&i.a.isValueEmpty(n))return!0;if(!t||!Array.isArray(t)&&0===t.length)return!1;if(i.a.isValueEmpty(n))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(n,t);if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(e.binaryFunctions.contains(t,n[r]))return!0;return!1},allof:function(t,n){if(!t&&!i.a.isValueEmpty(n))return!1;if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(!e.binaryFunctions.contains(t,n[r]))return!1;return!0},containsCore:function(t,n,r){if(!t)return!1;if(t.length||(t=t.toString()),"string"==typeof t||t instanceof String){if(!n)return!1;n=n.toString();var i=t.indexOf(n)>-1;return r?i:!i}for(var o=Array.isArray(n)?n:[n],a=0;a<o.length;a++){var s=0;for(n=o[a];s<t.length&&!e.isTwoValueEquals(t[s],n);s++);if(s==t.length)return!r}return r}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},function(e,t,n){"use strict";function r(e,t){if(void 0!==e&&null!==e)if(Array.isArray(e))for(var n=0;n<e.length;n++)r(e[n],t);else V.a.isNumber(e)&&(e=parseFloat(e)),t.push(e)}function i(e){var t=[];r(e,t);for(var n=0,i=0;i<t.length;i++)n+=t[i];return n}function o(e,t){var n=[];r(e,n);for(var i=void 0,o=0;o<n.length;o++)void 0===i&&(i=n[o]),t?i>n[o]&&(i=n[o]):i<n[o]&&(i=n[o]);return i}function a(e){return o(e,!0)}function s(e){return o(e,!1)}function l(e){var t=[];return r(e,t),t.length}function u(e){var t=[];r(e,t);for(var n=0,i=0;i<t.length;i++)n+=t[i];return t.length>0?n/t.length:0}function c(e){if(2!=e.length)return null;var t=e[0];if(!t)return null;if(!Array.isArray(t)&&!Array.isArray(Object.keys(t)))return null;var n=e[1];return"string"==typeof n||n instanceof String?{data:t,name:n}:null}function p(e,t){var n=c(e);if(n){var r=void 0;if(Array.isArray(n.data))for(var i=0;i<n.data.length;i++){var o=n.data[i];o&&o[n.name]&&(r=t(r,o[n.name]))}else for(var a in n.data){var o=n.data[a];o&&o[n.name]&&(r=t(r,o[n.name]))}return r}}function d(e){var t=p(e,function(e,t){return void 0==e&&(e=0),+e+ +t});return void 0!==t?t:0}function h(e){return p(e,function(e,t){return void 0==e?t:e<t?e:t})}function f(e){return p(e,function(e,t){return void 0==e?t:e>t?e:t})}function g(e){var t=p(e,function(e,t){return void 0==e&&(e=0),e+1});return void 0!==t?t:0}function m(e){var t=g(e);return 0==t?0:d(e)/t}function y(e){return e||3===e.length?e[0]?e[1]:e[2]:""}function v(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null}function b(e){if(!e&&e.length<1)return null;if(!e[0])return null;var t=new Date(e[0]),n=new Date,r=n.getFullYear()-t.getFullYear(),i=n.getMonth()-t.getMonth();return(i<0||0===i&&n.getDate()<t.getDate())&&(r-=r>0?1:0),r}function x(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],n=this.survey.getPageByName(t);if(n||(n=this.survey.getPanelByName(t)),!n)return!1;for(var r=n.questions,i=0;i<r.length;i++)if(r[i].hasErrors(!1))return!1;return!0}function C(){return this.survey&&this.survey.isDisplayMode}function w(){return new Date}function P(e){var t=new Date;return Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t}var V=n(4);n.d(t,"a",function(){return _}),n.d(t,"b",function(){return k});var _=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,n){void 0===n&&(n=!1),this.functionHash[e]=t,n&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,n){void 0===n&&(n=null);var r=this.functionHash[e];if(!r)return null;var i={func:r};if(n)for(var o in n)i[o]=n[o];return i.func(t)},e.Instance=new e,e}(),k=_.Instance.register;_.Instance.register("sum",i),_.Instance.register("min",a),_.Instance.register("max",s),_.Instance.register("count",l),_.Instance.register("avg",u),_.Instance.register("sumInArray",d),_.Instance.register("minInArray",h),_.Instance.register("maxInArray",f),_.Instance.register("countInArray",g),_.Instance.register("avgInArray",m),_.Instance.register("iif",y),_.Instance.register("getDate",v),_.Instance.register("age",b),_.Instance.register("isContainerReady",x),_.Instance.register("isDisplayMode",C),_.Instance.register("currentDate",w),_.Instance.register("today",P)},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(4),a=n(18);n.d(t,"a",function(){return s});var s=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.name=t,n.hasShownValue=!1,n.isRandomizing=!1,n.timeSpent=0;var r=n;return n.locTitle.onGetTextCallback=function(e){return r.num>0?r.num+". "+e:e},n.createLocalizableString("navigationTitle",n,!0),n.createLocalizableString("navigationDescription",n,!0),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!0,configurable:!0}),t.prototype.delete=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},t.prototype.onFirstRendering=function(){this.wasShown||e.prototype.onFirstRendering.call(this)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e=this.css,t={page:{},pageTitle:"",pageDescription:"",row:""};return this.copyCssClasses(t.page,e.page),e.pageTitle&&(t.pageTitle=e.pageTitle),e.pageDescription&&(t.pageDescription=e.pageDescription),e.row&&(t.row=e.row),this.survey&&this.survey.updatePageCssClasses(this,t),t},enumerable:!0,configurable:!0}),t.prototype.getIsPageVisible=function(t){return!this.isStarted&&e.prototype.getIsPageVisible.call(this,t)},Object.defineProperty(t.prototype,"num",{get:function(){return this.getPropertyValue("num",-1)},set:function(e){this.num!=e&&(this.setPropertyValue("num",e),this.onNumChanged(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!0,configurable:!0}),t.prototype.setWasShown=function(e){e!=this.hasShownValue&&(this.hasShownValue=e,this.isDesignMode||1==e&&this.areQuestionsRandomized&&this.randomizeElements())},t.prototype.randomizeElements=function(){if(!this.isRandomizing){this.isRandomizing=!0;for(var e=[],t=this.elements,n=0;n<t.length;n++)e.push(t[n]);var r=o.a.randomizeArray(e);this.elements.splice(0,this.elements.length);for(var n=0;n<r.length;n++)this.elements.push(r[n]);this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!0,configurable:!0}),t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=new Array;return this.addPanelsIntoList(n,e,t),n},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!0,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropInfo=new a.c(e,t,n)},t.prototype.dragDropMoveTo=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var r=this.dragDropFindRow(this.dragDropInfo.target);this.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.dragDropAddTarget(this.dragDropInfo),!0},t.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},t.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.survey)return!0;var t=null,n=null,r=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var i=e.parent;if(i){var o=i.elements,a=o.indexOf(e);a>-1&&(t=e,n=e,this.dragDropInfo.isBottom?t=a<o.length-1?o[a+1]:null:n=a>0?o[a-1]:null)}}var s={target:this.dragDropInfo.target,source:this.dragDropInfo.source,parent:r,insertAfter:n,insertBefore:t};return this.survey.dragAndDropAllow(s)},t.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,n=this.dragDropFindRow(t),r=this.dragDropGetElementIndex(t,n);if(this.updateRowsRemoveElementFromRow(t,n),!e&&n){var i=this.dragDropInfo.source,o=!1;i&&i.parent&&(o=n.panel==i.parent,o?(n.panel.dragDropMoveElement(i,t,r),r=-1):i.parent.removeElement(i)),r>-1&&n.panel.addElement(t,r)}return this.dragDropInfo=null,e?null:t}},t.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var n=t.elements.indexOf(e);if(0==t.index)return n;var r=t.panel.rows[t.index-1],i=r.elements[r.elements.length-1];return n+t.panel.elements.indexOf(i)+1},t.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},t.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;return!!this.dragDropCanDropCore(e,t)&&this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},t.prototype.dragDropCanDropCore=function(e,t){if(!t)return!0;if(this.dragDropIsSameElement(t,e))return!1;if(e.isPanel){var n=e;if(n.containsElement(t)||n.getElementByName(t.name))return!1}return!0},t.prototype.dragDropCanDropNotNext=function(e,t,n,r){if(!t||t.isPanel&&!n)return!0;if(e.parent!==t.parent)return!0;var i=e.parent,o=i.elements.indexOf(e),a=i.elements.indexOf(t);return a<o&&!r&&a--,r&&a++,o<a?a-o>1:o-a>0},t.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},t}(a.d);i.b.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationDescription"}],function(){return new s},"panelbase")},function(e,t,n){"use strict";var r=n(5);n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o});var i=function(){function e(e,t){this.name=e,this.widgetJson=t,this.isFirstRender=!0,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var n=this;this.isFirstRender&&(this.isFirstRender=!1,e.survey.onLocaleChangedEvent.add(function(){n.widgetJson.willUnmount(e,t),n.widgetJson.afterRender(e,t)})),this.widgetJson.afterRender&&this.widgetJson.afterRender(e,t)},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return void 0===t&&(t=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e,t):null},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!0,configurable:!0}),e}(),o=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new r.c}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!0,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var n=e.name;n||(n="widget_"+this.widgets.length+1);var r=new i(n,e);this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=t,r.activatedByChanged(t),this.onCustomWidgetAdded.fire(r,null)},e.prototype.getActivatedBy=function(e){var t=this.widgetsActivatedBy[e];return t||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var n=this.getCustomWidgetByName(e);n&&(this.widgetsActivatedBy[e]=t,n.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}()},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(22),s=n(2),l=n(11);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.minMaxChoices=[],n.createLocalizableString("optionsCaption",n);var r=n;return n.registerFunctionOnPropertiesValueChanged(["choicesMin","choicesMax","choicesStep"],function(){r.onVisibleChoicesChanged()}),n}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.getPropertyValue("showOptionsCaption",!0)},set:function(e){this.setPropertyValue("showOptionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",s.a.getString("optionsCaption"))},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.isEmpty()?null:l.a.getItemByValue(this.visibleChoices,this.value)},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var n=[],r=0;r<t.length;r++)n.push(t[r]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1){this.minMaxChoices=[];for(var r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(new l.a(r))}return n=n.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin",0)},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax",0)},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep",1)},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!0,configurable:!0}),t}(a.b);i.b.addClass("dropdown",[{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"showOptionsCaption:boolean",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1}],function(){return new u("")},"selectbase"),o.b.Instance.registerQuestion("dropdown",function(e){var t=new u(e);return t.choices=o.b.DefaultChoices,t})},function(e,t,n){"use strict";function r(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}var i=n(0),o=n(4),a=n(9),s=n(1),l=n(3),u=n(10);n.d(t,"a",function(){return c}),t.b=r;var c=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.createLocalizableString("format",n);var r=n;return n.registerFunctionOnPropertyValueChanged("expression",function(){r.expressionRunner&&(r.expressionRunner=new u.b(r.expression))}),n}return n.i(i.b)(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,n){var r=this;e.prototype.runCondition.call(this,t,n),this.expression&&!this.expressionIsRunning&&(this.locCalculation(),this.expressionRunner||(this.expressionRunner=new u.b(this.expression)),this.expressionRunner.onRunComplete=function(e){o.a.isTwoValueEquals(e,r.value)||(r.value=e),r.unlocCalculation()},this.expressionRunner.run(t,n))},t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){var n=this.isValueEmpty(t)?this.defaultValue:t;if(this.isValueEmpty(n))return"";var r=this.getValueAsStr(n);return this.format?this.format.format(r):r},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){r().indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping",!0)},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!0,configurable:!0}),t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=new Date(e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&o.a.isNumber(e)){var n=this.getLocale();n||(n="en");var r={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(r.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(r.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(n,r)}return e.toString()},t}(a.a);s.b.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return r()},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"validators",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],function(){return new c("")},"question"),l.b.Instance.registerQuestion("expression",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(3),o=n(1),a=n(9),s=n(4),l=n(36);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.createLocalizableString("placeHolder",n),n.registerFunctionOnPropertiesValueChanged(["min","max","inputType","minValueExpression","maxValueExpression"],function(){n.setRenderedMinMax()}),n}return n.i(r.b)(t,e),t.prototype.isTextValue=function(){return["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.setRenderedMinMax()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){e=e.toLowerCase(),"datetime_local"==e&&(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return"default"==this.textUpdateMode?!!this.survey&&this.survey.isUpdateValueTextOnTyping:"onTyping"==this.textUpdateMode},enumerable:!0,configurable:!0}),t.prototype.getValidators=function(){var t=e.prototype.getValidators.call(this);return"email"!==this.inputType||this.validators.some(function(e){return"emailvalidator"===e.getType()})||t.push(new l.b),t},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){return s.a.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoComplete",{get:function(){return this.getPropertyValue("autoComplete","")},set:function(e){this.setPropertyValue("autoComplete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){if(this.isValueExpression(e))return void(this.minValueExpression=e.substr(1));this.setPropertyValue("min",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){if(this.isValueExpression(e))return void(this.maxValueExpression=e.substr(1));this.setPropertyValue("max",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!0,configurable:!0}),t.prototype.setRenderedMinMax=function(){this.setPropertyValue("renderedMin",this.getValueAndRunExpression(this.min,this.minValueExpression));var e=this.getValueAndRunExpression(this.max,this.maxValueExpression);e||"date"!==this.inputType&&"datetime-local"!==this.inputType||(e="2999-12-31"),this.setPropertyValue("renderedMax",e)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},t.prototype.supportGoNextPageAutomatic=function(){return["date","datetime","datetime-local"].indexOf(this.inputType)<0},t.prototype.supportGoNextPageError=function(){return["date","datetime","datetime-local"].indexOf(this.inputType)<0},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.getLocalizableStringText("placeHolder")},set:function(e){this.setLocalizableStringText("placeHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.getLocalizableString("placeHolder")},enumerable:!0,configurable:!0}),t.prototype.canRunValidators=function(e){return this.errors.length>0||!e||this.supportGoNextPageError()},t.prototype.setNewValue=function(t){t=this.correctValueType(t),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){return e&&("number"==this.inputType||"range"==this.inputType)?s.a.isNumber(e)?parseFloat(e):"":e},t.prototype.addSupportedValidators=function(t){e.prototype.addSupportedValidators.call(this,t),t.push("numeric","text","regex","email")},t}(a.a),c=["number","range","date","datetime-local","month","time","week"];o.b.addClass("text",[{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},{name:"size:number",default:25},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"==e.inputType}},{name:"autoComplete",dataList:["name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},{name:"min",dependsOn:"inputType",visibleIf:function(e){return!!e&&-1!==c.indexOf(e.inputType)},onPropertyEditorUpdate:function(e,t){t.inputType=e.inputType}},{name:"max",dependsOn:"inputType",visibleIf:function(e){return!!e&&-1!==c.indexOf(e.inputType)},onPropertyEditorUpdate:function(e,t){t.inputType=e.inputType}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return!!e&&-1!==c.indexOf(e.inputType)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return!!e&&-1!==c.indexOf(e.inputType)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&"number"===e.inputType}},{name:"maxLength:number",default:-1},{name:"placeHolder",serializationProperty:"locPlaceHolder"}],function(){return new u("")},"question"),i.b.Instance.registerQuestion("text",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(0),i=n(9),o=n(1);n.d(t,"a",function(){return a});var a=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},t}(i.a);o.b.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"useDisplayValuesInTitle",visible:!1}],function(){return new a("")},"question")},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){this.renderersHash={}}return e.prototype.unregisterRenderer=function(e,t){delete this.renderersHash[e][t]},e.prototype.registerRenderer=function(e,t,n){this.renderersHash[e]||(this.renderersHash[e]={}),this.renderersHash[e][t]=n},e.prototype.getRenderer=function(e,t){return this.renderersHash[e]&&this.renderersHash[e][t]||"default"},e.prototype.getRendererByQuestion=function(e){return this.getRenderer(e.getType(),e.renderAs)},e.Instance=new e,e}()},function(e,t,n){"use strict";var r=n(13);n.d(t,"a",function(){return i});var i=function(){function e(){this.sheet=null,e.Enabled&&(this.sheet=e.findSheet(e.SurveyJSStylesSheetId),this.sheet||(this.sheet=e.createSheet(e.SurveyJSStylesSheetId),this.initializeStyles(this.sheet)))}return e.findSheet=function(e){if("undefined"==typeof document)return null;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode&&document.styleSheets[t].ownerNode.id===e)return document.styleSheets[t];return null},e.createSheet=function(e){var t=document.createElement("style");return t.id=e,t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet},e.applyTheme=function(t,n){void 0===t&&(t="default"),void 0===n&&(n=".sv_main");var i;if("modern"===t&&(n=".sv-root-modern "),-1!==["bootstrap","bootstrapmaterial","modern"].indexOf(t)?(i=e[t+"ThemeCss"],r.b.currentType=t):(i=e.ThemeCss,r.b.currentType="standard"),e.Enabled){var o=e.findSheet(t+n);if(!o){o=e.createSheet(t+n);var a=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(i).forEach(function(e){var t=i[e];Object.keys(a).forEach(function(e){return t=t.replace(new RegExp("\\"+e,"g"),a[e])});try{o.insertRule(n+e+" { "+t+" }",0)}catch(e){}})}}},e.prototype.initializeStyles=function(t){e.Enabled&&(Object.keys(e.Styles).forEach(function(n){try{t.insertRule(n+" { "+e.Styles[n]+" }",0)}catch(e){}}),Object.keys(e.Media).forEach(function(n){try{t.insertRule(e.Media[n].media+" { "+n+" { "+e.Media[n].style+" } }",0)}catch(e){}}))},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={".sv_main span":"word-break: break-word;",".sv_main legend":"border: none; margin: 0;",".sv_bootstrap_css .sv_qstn":"padding: 0.5em 1em 1.5em 1em;",".sv_bootstrap_css .sv_qcbc input[type=checkbox], .sv_bootstrap_css .sv_qcbc input[type=radio]":"vertical-align: middle; margin-top: -1px",".sv_bootstrap_css .sv_qstn fieldset":"display: block;",".sv_bootstrap_css .sv_qstn  .sv_q_checkbox_inline, .sv_bootstrap_css .sv_qstn .sv_q_radiogroup_inline":"display: inline-block;",".sv_bootstrap_css .sv-paneldynamic__progress-container ":"position: relative; margin-right: 250px; margin-left: 40px; margin-top: 10px;",".sv_main.sv_bootstrapmaterial_css .sv_q_radiogroup_control_label":"display: inline; position: static;",".sv_main.sv_bootstrapmaterial_css .checkbox":"margin-top:10px;margin-bottom:10px;",".sv_row":"clear: both; min-width:300px;",".sv_row .sv_qstn":"float: left",".sv_row .sv_qstn:last-child":"float: none",".sv_qstn":"display: inline-block; vertical-align: top; overflow: auto; min-width:300px;",".sv_p_container":"display: inline-block; vertical-align: top; min-width:300px;",".sv_q_title .sv_question_icon":"float: right; margin-right: 1em;",".sv_q_title .sv_question_icon::before":"content: ''; background-repeat: no-repeat; background-position: center; padding: 0.5em; display: inline-block; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxMCAxMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTAgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiM2RDcwNzI7fQ0KPC9zdHlsZT4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMiwyIDAsNCA1LDkgMTAsNCA4LDIgNSw1ICIvPg0KPC9zdmc+DQo=);",".sv_q_title .sv_question_icon.sv_expanded::before":"transform: rotate(180deg);",".sv_qbln .checkbox-material":"margin-right: 3px;",".sv_qcbx .checkbox-material":"margin-right: 5px;",".sv_qcbx .checkbox label":"justify-content: left; display: inline-block;",".sv_qstn .radio label":"justify-content: left; display: inline-block;",".sv_qstn .sv_q_imgsel > label img":"pointer-events: none;",".sv_qstn .sv_q_imgsel.sv_q_imagepicker_inline":"display: inline-block;",".sv_qstn label.sv_q_m_label":"position: absolute; margin: 0; display: block; width: 100%;",".sv_qstn td":"position: relative;",".sv_q_mt_item_value":"float: left;",'[dir="rtl"] .sv_q_mt_item_value':"float: right;",".sv_qstn.sv_qstn_left":"margin-top: 0.75em;",".sv_qstn .title-left":"float: left; margin-right: 1em;",'[dir="rtl"] .sv_qstn .title-left':"float: right; margin-left: 1em;",".sv_qstn .content-left":"overflow: hidden",".sv_q_radiogroup_inline .sv_q_radiogroup_other":"display: inline-block;",".sv_q_checkbox_inline .sv_q_checkbox_other":"display: inline-block;",".sv_q_checkbox_inline, .sv_q_radiogroup_inline, .sv_q_imagepicker_inline":"line-height: 2.5em;",".form-inline .sv_q_checkbox_inline:not(:last-child)":"margin-right: 1em;",".form-inline .sv_q_radiogroup_inline:not(:last-child)":"margin-right: 1em;",".sv_imgsel .sv_q_imagepicker_inline:not(:last-child)":"margin-right: 1em;",".sv_qstn fieldset":"border: none; margin: 0; padding: 0;",".sv_qstn .sv_q_file_placeholder":"display:none",".sv_p_title":"padding-left: 1em; padding-bottom: 0.3em;",".sv_p_title_expandable":"cursor: pointer;",".sv_q_title_expandable":"cursor: pointer;",".sv_p_title .sv_panel_icon":"float: right; margin-right: 1em;",".sv_p_title .sv_panel_icon::before":"content: ''; background-repeat: no-repeat; background-position: center; padding: 0.5em; display: inline-block; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxMCAxMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTAgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiM2RDcwNzI7fQ0KPC9zdHlsZT4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMiwyIDAsNCA1LDkgMTAsNCA4LDIgNSw1ICIvPg0KPC9zdmc+DQo=);",".sv_p_title .sv_panel_icon.sv_expanded::before":"transform: rotate(180deg);",".sv_p_footer":"padding-left: 1em; padding-bottom: 1em;padding-top: 1em;",".sv_matrix_cell_detail_button":"position: relative",".sv_detail_panel_icon":"display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px;",".sv_detail_panel_icon::before":"content: ''; background-repeat: no-repeat; background-position: center; width: 14px; height: 14px; display: block; transform: rotate(270deg); background-image: url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 15 15' style='enable-background:new 0 0 15 15;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23FFFFFF;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='14,5.5 12.6,4.1 7.5,9.1 2.4,4.1 1,5.5 7.5,12 '/%3E%3C/svg%3E%0A\");",".sv_detail_panel_icon.sv_detail_expanded::before":"transform: rotate(0deg)",".sv_q_file > input[type=file], .sv_q_file > button":"display: inline-block;",".sv_q_file_preview":"display: inline-block; vertical-align: top; border: 1px solid lightgray; padding: 5px; margin-top: 10px;",".sv_q_file_preview > a":"display: block; overflow: hidden; vertical-align: top; white-space: nowrap; text-overflow: ellipsis;",".sv_q_file_remove_button":"line-height: normal;",".sv_q_file_remove":"display: block; cursor: pointer;",".sv_q_m_cell_text":"cursor: pointer;",".sv_q_dd_other":"margin-top: 1em;",".sv_q_dd_other input":"width: 100%;",".sv_qstn .sv-q-col-1, .sv-question .sv-q-col-1":"width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-2, .sv-question .sv-q-col-2":"width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-3, .sv-question .sv-q-col-3":"width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-4, .sv-question .sv-q-col-4":"width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-5, .sv-question .sv-q-col-5":"width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-1, .sv-question .sv-q-column-1":"width: 100%; max-width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-2, .sv-question .sv-q-column-2":"max-width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-3, .sv-question .sv-q-column-3":"max-width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-4, .sv-question .sv-q-column-4":"max-width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-5, .sv-question .sv-q-column-5":"max-width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv_q_file_input":"color: transparent;",".sv_qstn .sv_q_imgsel label > div":"overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 4px; border: 1px solid lightgray; border-radius: 4px;",".sv_qstn .sv_q_imgsel label > div > img, .sv_qstn .sv_q_imgsel label > div > embed":"display: block;",".sv_qstn table tr td .sv_q_m_cell_label":"position: absolute; left: 0; right: 0; top: 0; bottom: 0;","f-panel":"padding: 0.5em 1em; display: inline-block; line-height: 2em;",".sv_progress_bar > span":"white-space: nowrap;",".sv_progress-buttons__container-center":"text-align: center;",".sv_progress-buttons__container":"display: inline-block; font-size:0; width: 100%; max-width: 1100px; white-space: nowrap; overflow: hidden;",".sv_progress-buttons__image-button-left":"display: inline-block; vertical-align: top; margin-top: 22px; font-size: 14px; width: 16px; height: 16px; cursor: pointer; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo=);",".sv_progress-buttons__image-button-right":"display: inline-block; vertical-align: top; margin-top: 22px; font-size: 14px; width: 16px; height: 16px; cursor: pointer; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg==);",".sv_progress-buttons__image-button--hidden":"visibility: hidden;",".sv_progress-buttons__list-container":"max-width: calc(100% - 36px); display: inline-block; overflow: hidden;",".sv_progress-buttons__list":"display: inline-block; width: max-content; padding-left: 28px; padding-right: 28px; margin-top: 14px; margin-bottom: 14px;",".sv_progress-buttons__list li":"width: 138px; font-size: 14px; font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; position: relative; text-align: center; vertical-align: top; display: inline-block;",".sv_progress-buttons__list li:before":"width: 24px; height: 24px; content: ''; line-height: 30px; border: 3px solid #8dd9ca; display: block; margin: 0 auto 10px auto; border-radius: 50%; box-sizing: content-box; background-color: #8dd9ca; cursor: pointer;",".sv_progress-buttons__list li:after":"width: 73%; height: 3px; content: ''; position: absolute; background-color: #d4d4d4; top: 15px; left: -36.5%;",".sv_progress-buttons__list li:first-child:after":"content: none;",".sv_progress-buttons__list .sv_progress-buttons__page-title":"width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: $text-color; font-weight: bold;",".sv_progress-buttons__list .sv_progress-buttons__page-description":"width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: $text-color;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: #1ab394; background-color: #1ab394;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: #8dd9ca;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: #1ab394; background-color: white;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: #1ab394; background-color: white;",".sv_qstn .sv_q_select_column":"display: inline-block; vertical-align: top; min-width: 10%;",".sv_qstn .sv_q_select_column > *:not(.sv_technical)":"display: block;",".sv_main .sv_container .sv_body .sv_p_root .sv_qstn .sv_q_select_column textarea":"margin-left: 0; padding-left: 0; line-height: initial;",".sv_main .sv-hidden":"display: none !important;",".sv_main .sv-visuallyhidden":"position: absolute; height: 1px !important; width: 1px !important; overflow: hidden; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);",".sv_main .sv-progress":"height: 0.19em; background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color; height: 100%; position: relative;",".sv_main .sv-paneldynamic__progress-container":"position: relative; display: inline-block; width: calc(100% - 250px); margin-top: 20px;",".sv_main .sv-paneldynamic__add-btn":"float: right;",".sv_main .sv-paneldynamic__add-btn--list-mode":"float: none; margin-top: 0;",".sv_main .sv-paneldynamic__remove-btn ":"margin-top: 1.25em;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"box-sizing: border-box; display: inline-block; cursor: pointer; width: 0.7em; top: -0.28em; position: absolute;",".sv_main .sv-paneldynamic__prev-btn":"left: -1.3em; transform: rotate(90deg);",".sv_main .sv-paneldynamic__next-btn ":"right: -1.3em; transform: rotate(270deg);",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"cursor: auto;",".sv_main .sv-paneldynamic__progress-text":"font-weight: bold; font-size: 0.87em; margin-top: 0.69em; margin-left: 4em",".sv_main .sv-boolean__switch":"display: inline-block; box-sizing: border-box; width: 63px; height: 24px; margin-right: 17px; margin-left: 21px; padding: 2px 3px; vertical-align: middle; border-radius: 12px; cursor: pointer;",".sv_main .sv-boolean__slider":"display: inline-block; width: 20px; height: 20px; transition-duration: .4s; transition-property: margin-left; border: none; border-radius: 100%;",".sv_main .sv-boolean__label":"vertical-align: middle; cursor: pointer;",".sv_main .sv-boolean--indeterminate  .sv-boolean__slider":"margin-left: calc(50% - 10px);",".sv_main .sv-boolean--checked  .sv-boolean__slider":"margin-left: calc(100% - 20px);","[dir='rtl'] .sv-boolean__label ":"float: right;","[dir='rtl'] .sv-boolean--indeterminate .sv-boolean__slider":"margin-right: calc(50% - 0.625em);","[dir='rtl'] .sv-boolean--checked .sv-boolean__slider":"margin-right: calc(100% - 1.25em);","[dir='rtl'] .sv-boolean__switch":"float: right;","[style*='direction:rtl'] .sv-boolean__label ":"float: right;","[style*='direction:rtl'] .sv-boolean--indeterminate .sv-boolean__slider":"margin-right: calc(50% - 0.625em);","[style*='direction:rtl'] .sv-boolean--checked .sv-boolean__slider":"margin-right: calc(100% - 1.25em);","[style*='direction:rtl'] .sv-boolean__switch":"float: right;",".sv_main .sv_q_num":"",".sv_main .sv_q_num + span":"",".sv_main .sjs_sp_container":"position: relative;",".sv_main .sjs_sp_controls":"position: absolute; left: 0; bottom: 0;",".sv_main .sjs_sp_controls > button":"user-select: none;",".sv_main .sjs_sp_container>div>canvas:focus":"outline: none;",".sv_main .sv_logo":"",".sv_main .sv-logo--left":"display: inline-block; vertical-align: top; margin-right: 2em;",".sv_main .sv-logo--right":"display: inline-block; vertical-align: top; margin-left: 2em; float: right;",".sv_main .sv-logo--right+.sv-logo--right-tail":"clear: both;",".sv_main .sv-logo--top":"display: block; width: 100%; text-align: center;",".sv_main .sv-logo--bottom":"display: block; width: 100%; text-align: center;",".sv_main .sv_header__text":"display: inline-block; vertical-align: top; max-width: 100%"},e.Media={".sv_qstn fieldset .sv-q-col-1":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-2":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-3":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-4":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-5":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn":{style:"display: block; width: 100% !important;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .title-left":{style:"float: none;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_radiogroup_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_checkbox_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_imagepicker_inline":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table thead":{style:"display: none;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tbody, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tr, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table td":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table:not(.sv_q_matrix) td:before":{style:"content: attr(headers);",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.sv_q_matrix td:after":{style:"content: attr(headers); padding-left: 1em",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .radio label, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .checkbox label":{style:"line-height: 12px; vertical-align: top;",media:"@media (max-width: 600px)"},".sv_qstn label.sv_q_m_label":{style:"display: inline;",media:"@media (max-width: 600px)"},".sv_main .sv_custom_header":{style:"display: none;",media:"@media (max-width: 1300px)"},".sv_main .sv_container .sv_header h3":{style:"font-size: 1.5em;",media:"@media (max-width: 1300px)"},".sv_main .sv_container .sv_header h3 span":{style:"font-size: 0.75em;",media:"@media (max-width: 700px)"},".sv_main.sv_bootstrap_css .sv-progress__text":{style:"margin-left: 8em;",media:"@media (min-width: 768px)"},".sv_row":{style:" display: flex; flex-wrap: wrap;",media:"@supports (display: flex)"},".sv-vue-row-additional-div":{style:" display: flex; flex-wrap: wrap; flex-basis: 100%;",media:"@supports (display: flex)"},".sv-row > .sv-row__panel, .sv-row__question:not(:last-child)":{style:"float: left;",media:"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)"},"[dir='rtl'],[style*='direction:rtl'] .sv-row__question:not(:last-child)":{style:"float: right;",media:"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)"},".sv-row > .sv-row__panel, .sv-row__question":{style:"width: 100% !important; padding-right: 0 !important;",media:"@media only screen and (max-width: 600px)"}},e.ThemeColors={default:{"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},orange:{"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},darkblue:{"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},darkrose:{"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},stone:{"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},winter:{"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},winterstone:{"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$header-color":"#fff","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},modern:{"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$inputs-background-color":"#f4f4f4","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$dropdown-border-color":"#d4d4d4","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff"},bootstrap:{"$main-color":"#18a689","$text-color":"#404040;","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$header-background-color":"#e7e7e7","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},bootstrapmaterial:{"$main-color":"#18a689","$text-color":"#404040;","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$header-background-color":"#e7e7e7","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$body-background-color":"#ffffff"}},e.ThemeCss={".sv_default_css":"background-color: $body-container-background-color;",".sv_default_css hr":"border-color: $border-color;",".sv_default_css input[type='button'], .sv_default_css button":"color: $body-background-color; background-color: $main-color;",".sv_default_css input[type='button']:hover, .sv_default_css button:hover":"background-color: $main-hover-color;",".sv_default_css .sv_header":"color: $header-color;",".sv_default_css .sv_custom_header":"background-color: $header-background-color;",".sv_default_css .sv_container":"color: $text-color;",".sv_default_css .sv_body":"background-color: $body-background-color; border-color: $main-color;",".sv_default_css .sv_progress":"background-color: $border-color;",".sv_default_css .sv_progress_bar":"background-color: $main-color;",".sv_default_css .sv_p_root > .sv_row":"border-color: $border-color;",".sv_default_css .sv_p_root > .sv_row:nth-child(odd)":"background-color: $body-background-color;",".sv_default_css .sv_p_root > .sv_row:nth-child(even)":"background-color: $body-container-background-color;",".sv_default_css .sv_q_other input":"color: $text-color; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_text_root":"color: $text-color; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_dropdown_control":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css input[type='text']":"color: $text-color; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css select":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css textarea":"color: $text-color; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio'])":"border: 1px solid $border-color; background-color: $inputs-background-color;color: $text-color; -webkit-text-fill-color: $text-color;",".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio']):focus":"border: 1px solid $main-color;",".sv_default_css .sv_container .sv_body .sv_p_root .sv_q .sv_select_wrapper .sv_q_dropdown_control ":"background-color: $inputs-background-color;",".sv_default_css .sv_q_other input:focus":"border-color: $main-color;",".sv_default_css .sv_q_text_root:focus":"border-color: $main-color;",".sv_default_css .sv_q_dropdown_control:focus":"border-color: $main-color;",".sv_default_css input[type='text']:focus":"border-color: $main-color;",'.sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type="radio"]:focus, .sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type="checkbox"]:focus':"outline: 1px dotted $main-color;",".sv_default_css select:focus":"border-color: $main-color;",".sv_default_css textarea:focus":"border-color: $main-color;",".sv_default_css .sv_select_wrapper":"background-color: $body-background-color;",".sv_default_css .sv_select_wrapper::before":"background-color: $main-color;",".sv_default_css .sv_q_rating_item.active .sv_q_rating_item_text":"background-color: $main-hover-color; border-color: $main-hover-color; color: $body-background-color;",".sv_default_css .sv_q_rating_item .sv_q_rating_item_text":"border-color: $border-color;",".sv_default_css .sv_q_rating_item .sv_q_rating_item_text:hover":"border-color: $main-hover-color;",".sv_default_css table.sv_q_matrix tr":"border-color: $border-color;",".sv_default_css table.sv_q_matrix_dropdown tr":"border-color: $border-color;",".sv_default_css table.sv_q_matrix_dynamic tr":"border-color: $border-color;",".sv_default_css .sv_q_m_cell_selected":"color: $body-background-color; background-color: $main-hover-color;",".sv_main .sv_q_file_remove:hover":"color: $main-color;",".sv_main .sv_q_file_choose_button":"color: $body-background-color; background-color: $main-color;",".sv_main .sv_q_file_choose_button:hover":"background-color: $main-hover-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color",".sv_default_css .sv_p_description":"padding-left: 1.29em;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv_main .sv_matrix_detail_row":"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;"},e.modernThemeCss={".sv-boolean__switch":"background-color: $main-color;",".sv-boolean__slider":"background-color: $slider-color;",".sv-boolean__label--disabled":"color: $disabled-label-color;",".sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv-btn":"color: $inputs-background-color;",".sv-checkbox__svg":"border-color: $border-color; fill: transparent;",".sv-checkbox--allowhover:hover .sv-checkbox__svg":"background-color: $main-hover-color; fill: $inputs-background-color;",".sv-checkbox--checked .sv-checkbox__svg":"background-color: $main-color; fill: $inputs-background-color;",".sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg":"background-color: $disable-color; fill: $inputs-background-color;",".sv-checkbox--disabled .sv-checkbox__svg":"border-color: $disable-color;",".sv-comment":"border-color: $text-border-color;",".sv-comment:focus":"border-color: $main-color;",".sv-completedpage":"color: $text-color; background-color: $body-container-background-color;",".sv-container-modern":"color: $text-color;",".sv-container-modern__title":"color: $main-color;",".sv-description":"color: $disabled-text-color;",".sv-dropdown":"border-bottom: 0.06em solid $text-border-color;",".sv-dropdown:focus":"border-color: $dropdown-border-color;",".sv-dropdown--error":"border-color: $error-color; color: $error-color;",".sv-dropdown--error::placeholder":"color: $error-color;",".sv-dropdown--error::-ms-input-placeholder":"color: $error-color;",".sv-file__decorator":"background-color: $body-container-background-color;",".sv-file__clean-btn":"background-color: $remove-button-color;",".sv-file__choose-btn":"background-color: $add-button-color;",".sv-file__choose-btn--disabled":"background-color: $disable-color;",".sv-file__remove-svg":"fill: #ff1800;",".sv-file__sign a":"color: $text-color;",".sv-footer__complete-btn":"background-color: $main-color;",".sv-footer__next-btn":"background-color: $main-color;",".sv-footer__prev-btn":"background-color: $main-color;",".sv-footer__start-btn":"background-color: $main-color;",".sv-footer__preview-btn":"background-color: $main-color;",".sv-footer__edit-btn":"background-color: $main-color;",".sv-imagepicker__item--allowhover:hover .sv-imagepicker__image":"background-color: $main-hover-color; border-color: $main-hover-color;",".sv-imagepicker__item--checked .sv-imagepicker__image":"background-color: $main-color; border-color: $main-color;",".sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image":"background-color: $disable-color; border-color: $disable-color;",".sv-item__control:focus + .sv-item__decorator":"border-color: $main-color;",".sv-matrix__text--checked":"color: $inputs-background-color; background-color: $main-color;",".sv-matrix__text--disabled.sv-matrix__text--checked":"background-color: $disable-color;",".sv-matrixdynamic__add-btn":"background-color: $add-button-color;",".sv-matrixdynamic__remove-btn":"background-color: $remove-button-color;",".sv-paneldynamic__add-btn":"background-color: $add-button-color;",".sv-paneldynamic__remove-btn":"background-color: $remove-button-color;",".sv-paneldynamic__prev-btn, .sv-paneldynamic__next-btn":"fill: $text-color;",".sv-paneldynamic__prev-btn--disabled, .sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv-progress":"background-color: $header-background-color;",".sv-progress__bar":"background-color: $main-color;",".sv-progress__text":"color: $progress-text-color;",".sv-question__erbox":"color: $error-color;",".sv-question__title--answer":"background-color: $answer-background-color;",".sv-question__title--error":"background-color: $error-background-color;",".sv-panel__title--error":"background-color: $error-background-color;",".sv-radio__svg":"border-color: $border-color; fill: transparent;",".sv-radio--allowhover:hover .sv-radio__svg":"fill: $border-color;",".sv-radio--checked .sv-radio__svg":"border-color: $radio-checked-color; fill: $radio-checked-color;",".sv-radio--disabled .sv-radio__svg":"border-color: $disable-color;",".sv-radio--disabled.sv-radio--checked .sv-radio__svg":"fill: $disable-color;",".sv-rating":"color: $text-color;",".sv-rating input:focus + .sv-rating__min-text + .sv-rating__item-text, .sv-rating input:focus + .sv-rating__item-text":"outline-color: $main-color;",".sv-rating__item-text":"color: $main-hover-color; border: solid 0.1875em $main-hover-color;",".sv-rating__item-text:hover":"background-color: $main-hover-color; color: $body-background-color;",".sv-rating__item--selected .sv-rating__item-text":"background-color: $main-color; color: $body-background-color; border-color: $main-color;",".sv-rating--disabled .sv-rating__item-text":"color: $disable-color; border-color: $disable-color;",".sv-rating--disabled .sv-rating__item-text:hover":"background-color: transparent;",".sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text":"background-color: $disable-color; color: $body-background-color;","::-webkit-scrollbar":"background-color: $main-hover-color;","::-webkit-scrollbar-thumb":"background: $main-color;",".sv-selectbase__clear-btn":"background-color: $clean-button-color;",".sv-table":"background-color: rgba($main-hover-color, 0.1);",".sv-text:focus":"border-color: $main-color;",'.sv-text[type="date"]::-webkit-calendar-picker-indicator':"color: transparent; background: transparent;",".sv-text--error":"color: $error-color; border-color: $error-color;",".sv-text--error::placeholder":"color: $error-color;",".sv-text--error::-ms-placeholder":"color: $error-color;",".sv-text--error:-ms-placeholder":"color: $error-color;",".sv-text::placeholder":"color: $text-color;",".sv-text::-ms-placeholder":"color: $text-color;",".sv-text:-ms-placeholder":"color: $text-color;",".sv-table__row--detail":"background-color: $header-background-color;"},e.bootstrapThemeCss={".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color",".sv_main .sv_p_description":"padding-left: 1.66em;",".sv_main .sv_qstn_error_bottom":"margin-top: 20px; margin-bottom: 0;",".sv_main .progress":"width: 60%;",".sv_main .progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_main .table>tbody>tr>td":"min-width: 90px;",".sv_main f-panel .sv_qstn":"padding: 0; vertical-align: middle;",".sv_main .sv_q_image":"display: inline-block;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled  .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv_main .sv_matrix_detail_row":"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;"},e.bootstrapmaterialThemeCss={".sv_main.sv_bootstrapmaterial_css .form-group.is-focused .form-control":"linear-gradient(0deg, $main-color 2px, $main-color 0),linear-gradient(0deg, #D2D2D2 1px, transparent 0);",".sv_main.sv_bootstrapmaterial_css .sv_qstn":"margin-bottom: 1rem;",".sv_main.sv_bootstrapmaterial_css .sv_qstn label.sv_q_m_label":"height: 100%;",".sv_main.sv_bootstrapmaterial_css .sv_q_image":"display: inline-block;",".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check:before":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check:before":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .circle":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .circle":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .check":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .check":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .btn-default.active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-default:active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-secondary.active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-secondary:active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .open>.dropdown-toggle.btn-default":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary, .sv_main.sv_bootstrapmaterial_css button.btn-primary":"color: $body-background-color; background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary:hover, .sv_main.sv_bootstrapmaterial_css button.btn-primary:hover":"background-color: $main-hover-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .sv_q_file_remove:hover":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css .form-group input[type=file]":"position: relative; opacity: 1;",".sv_main.sv_bootstrapmaterial_css .progress":"width: 60%; height: 1.5em;",".sv_main.sv_bootstrapmaterial_css .progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean .checkbox-decorator":"display: none;",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label.sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean__label":"color: $text-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled  .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv_main .sv_matrix_detail_row":"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;"},e.Enabled=!0,e}()},function(e,t,n){"use strict";var r=n(0),i=n(5),o=n(12),a=n(2),s=n(1),l=n(10),u=n(4);n.d(t,"h",function(){return c}),n.d(t,"f",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"d",function(){return h}),n.d(t,"g",function(){return f}),n.d(t,"c",function(){return g}),n.d(t,"e",function(){return m}),n.d(t,"b",function(){return y}),n.d(t,"i",function(){return v});var c=function(){function e(e,t){void 0===t&&(t=null),this.value=e,this.error=t}return e}(),p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!0,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,t):null},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){return new o.b(this.getErrorText(e),this.errorOwner)},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(i.b),d=function(){function e(){}return e.prototype.run=function(e){var t=this,n=[],r=null,i=null;this.prepareAsyncValidators();for(var o=[],a=e.getValidators(),s=0;s<a.length;s++){var l=a[s];!r&&l.isValidateAllValues&&(r=e.getDataFilteredValues(),i=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&o.push(e.error),t.onAsyncCompleted){for(var n=0;n<t.asyncValidators.length;n++)if(t.asyncValidators[n].isRunning)return;t.onAsyncCompleted(o)}})}a=e.getValidators();for(var s=0;s<a.length;s++){var l=a[s],u=l.validate(e.validatedValue,e.getValidatorTitle(),r,i);u&&u.error&&n.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),h=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minValue=t,r.maxValue=n,r}return n.i(r.b)(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),u.a.isValueEmpty(e))return null;if(!u.a.isNumber(e))return new c(null,new o.d(null,this.errorOwner));var i=new c(parseFloat(e));return null!==this.minValue&&this.minValue>i.value?(i.error=this.createCustomError(t),i):null!==this.maxValue&&this.maxValue<i.value?(i.error=this.createCustomError(t),i):"number"==typeof e?null:i},t.prototype.getDefaultErrorText=function(e){var t=e||a.a.getString("value");return null!==this.minValue&&null!==this.maxValue?a.a.getString("numericMinMax").format(t,this.minValue,this.maxValue):null!==this.minValue?a.a.getString("numericMin").format(t,this.minValue):a.a.getString("numericMax").format(t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!0,configurable:!0}),t}(p),f=function(e){function t(t,n,r){void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=!0);var i=e.call(this)||this;return i.minLength=t,i.maxLength=n,i.allowDigits=r,i}return n.i(r.b)(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),""!==e&&u.a.isValueEmpty(e))return null;if(!this.allowDigits){if(!/^[A-Za-z\s]*$/.test(e))return new c(null,this.createCustomError(t))}return this.minLength>0&&e.length<this.minLength?new c(null,this.createCustomError(t)):this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?a.a.getString("textMinMaxLength").format(this.minLength,this.maxLength):this.minLength>0?a.a.getString("textMinLength").format(this.minLength):a.a.getString("textMaxLength").format(this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits",!0)},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!0,configurable:!0}),t}(p),g=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minCount=t,r.maxCount=n,r}return n.i(r.b)(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null==e||e.constructor!=Array)return null;var i=e.length;return this.minCount&&i<this.minCount?new c(null,this.createCustomError(a.a.getString("minSelectError").format(this.minCount))):this.maxCount&&i>this.maxCount?new c(null,this.createCustomError(a.a.getString("maxSelectError").format(this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!0,configurable:!0}),t}(p),m=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.regex=t,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.regex||u.a.isValueEmpty(e))return null;var i=new RegExp(this.regex);if(Array.isArray(e))for(var o=0;o<e.length;o++){var a=this.hasError(i,e[o],t);if(a)return a}return this.hasError(i,e,t)},t.prototype.hasError=function(e,t,n){return e.test(t)?null:new c(t,this.createCustomError(n))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!0,configurable:!0}),t}(p),y=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return n.i(r.b)(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),e?this.re.test(e)?null:new c(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return a.a.getString("invalidEmail")},t}(p),v=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=t,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner()&&this.conditionRunner.isAsync},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!0,configurable:!0}),t.prototype.validate=function(e,t,n,r){var i=this;if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.ensureConditionRunner())return null;this.conditionRunner.onRunComplete=function(t){i.isRunningValue=!1,i.onAsyncCompleted&&i.onAsyncCompleted(i.generateError(t,e))},this.isRunningValue=!0;var o=this.conditionRunner.run(n,r);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(o,e))},t.prototype.generateError=function(e,t){return e?null:new c(t,this.createCustomError(name))},t.prototype.getDefaultErrorText=function(e){return a.a.getString("invalidExpression").format(this.expression)},t.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):!!this.expression&&(this.conditionRunner=new l.a(this.expression),!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),t}(p);s.b.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.b.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new h},"surveyvalidator"),s.b.addClass("textvalidator",["minLength:number","maxLength:number","allowDigits:boolean"],function(){return new f},"surveyvalidator"),s.b.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new g},"surveyvalidator"),s.b.addClass("regexvalidator",["regex"],function(){return new m},"surveyvalidator"),s.b.addClass("emailvalidator",[],function(){return new y},"surveyvalidator"),s.b.addClass("expressionvalidator",["expression:condition"],function(){return new v},"surveyvalidator")},function(e,t,n){"use strict";var r=n(13);n.d(t,"a",function(){return i});var i={root:"sv_main sv_bootstrap_css",container:"sv_container",header:"panel-heading card-header",body:"panel-body card-block mt-4",bodyEmpty:"panel-body card-block mt-4 sv_body_empty",footer:"panel-footer card-footer",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"",completedPage:"",navigation:{complete:"btn sv_complete_btn",prev:"btn sv_prev_btn",next:"btn sv_next_btn",start:"btn sv_start_btn",preview:"btn sv_preview_btn",edit:"btn sv_edit_btn"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"",title:"",description:"small"},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",title:"",titleExpandable:"sv_q_title_expandable",number:"sv_q_num",description:"small",descriptionUnderInput:"small",requiredText:"sv_q_required_text",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20,formGroup:"form-group"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"small sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qbln form-inline checkbox",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",materialDecorator:"sv-item__decorator sv-boolean__decorator ",itemDecorator:"sv-item__svg  sv-boolean__svg",checkedPath:"sv-boolean__checked-path",uncheckedPath:"sv-boolean__unchecked-path",indeterminatePath:"sv-boolean__indeterminate-path"},checkbox:{root:"sv_qcbc sv_qcbx form-inline",item:"checkbox",itemChecked:"checked",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemInline:"sv_q_checkbox_inline",itemControl:"",itemDecorator:"sv-hidden",label:"",labelChecked:"",controlLabel:"",materialDecorator:"checkbox-material",other:"sv_q_checkbox_other form-control",column:"sv_q_select_column"},comment:"form-control",dropdown:{root:"",control:"form-control",other:"sv_q_dd_other form-control"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image"},matrix:{root:"table sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",cellLabel:"sv_q_m_cell_label"},matrixdropdown:{root:"table",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel"},matrixdynamic:{root:"table",button:"button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel"},paneldynamic:{root:"",navigation:"sv-paneldynamic__navigation",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",title:"sv-title sv-question__title",button:"button",buttonAdd:"button sv-paneldynamic__add-btn",buttonRemove:"button sv-paneldynamic__remove-btn",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text"},multipletext:{root:"table",itemTitle:"",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"sv_qcbc form-inline",item:"radio",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",label:"",labelChecked:"",itemControl:"",itemDecorator:"sv-hidden",controlLabel:"",materialDecorator:"circle",other:"sv_q_radiogroup_other form-control",clearButton:"sv_q_radiogroup_clear button",column:"sv_q_select_column"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",itemInline:"sv_q_imagepicker_inline",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},rating:{root:"btn-group",item:"btn btn-default btn-secondary",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",disabled:""},text:"form-control",expression:"form-control",file:{root:"sv_q_file",placeholderInput:"sv_q_file_placeholder",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",removeFile:"sv_q_file_remove",removeFileSvg:"sv-hidden",fileDecorator:"sv-hidden",fileSignBottom:"sv-hidden",removeButtonBottom:"sv-hidden"},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"alert alert-info",error:"alert alert-danger",success:"alert alert-success",saveAgainButton:""},window:{root:"modal-content",body:"modal-body",header:{root:"modal-header panel-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};r.b.bootstrap=i},function(e,t,n){"use strict";var r=n(13);n.d(t,"a",function(){return i});var i={root:"sv_main sv_bootstrapmaterial_css",container:"sv_container",header:"card-heading",body:"card-body",bodyEmpty:"card-body sv_body_empty",footer:"card-footer",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"",completedPage:"",navigation:{complete:"btn sv_complete_btn btn-primary",prev:"btn sv_prev_btn btn-primary",next:"btn sv_next_btn btn-primary",start:"btn sv_start_btn btn-primary",preview:"btn sv_preview_btn btn-primary",edit:"btn sv_edit_btn btn-primary"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"",title:"",description:"small"},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn form-group bmd-form-group",flowRoot:"sv_q_flow form-group bmd-form-group",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"",titleExpandable:"sv_q_title_expandable",number:"sv_q_num",description:"small",descriptionUnderInput:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20,formGroup:"form-group bmd-form-group"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"small sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qbln checkbox",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",materialDecorator:"sv-item__decorator sv-boolean__decorator ",itemDecorator:"sv-item__svg  sv-boolean__svg",checkedPath:"sv-boolean__checked-path",uncheckedPath:"sv-boolean__unchecked-path",indeterminatePath:"sv-boolean__indeterminate-path"},checkbox:{root:"sv_qcbx",item:"checkbox",itemChecked:"checked",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemInline:"sv_q_checkbox_inline",itemDecorator:"sv-hidden",itemControl:"",label:"",labelChecked:"",controlLabel:"",materialDecorator:"checkbox-decorator",other:"sv_q_checkbox_other form-control",column:"sv_q_select_column"},comment:"form-control",dropdown:{root:"",control:"form-control",other:"sv_q_dd_other form-control"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image"},matrix:{root:"table sv_q_matrix",row:"form-group bmd-form-group",label:"sv_q_m_label radio-inline",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",cellLabel:"sv_q_m_cell_label",itemValue:"form-control",itemChecked:"checked",itemDecorator:"sv-hidden",materialDecorator:"bmd-radio"},matrixdropdown:{root:"table",itemValue:"form-group bmd-form-group",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel"},matrixdynamic:{mainRoot:"sv_qstn",flowRoot:"sv_q_flow",root:"table",button:"btn btn-primary",itemValue:"form-group bmd-form-group",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel"},paneldynamic:{root:"",navigation:"sv-paneldynamic__navigation",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",title:"sv-title sv-question__title",button:"button",buttonAdd:"button sv-paneldynamic__add-btn btn btn-primary",buttonRemove:"button sv-paneldynamic__remove-btn btn btn-primary",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text"},multipletext:{root:"table",itemTitle:"",row:"form-group bmd-form-group",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"",item:"radio",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"",labelChecked:"",itemControl:"",controlLabel:"sv_q_radiogroup_control_label",materialDecorator:"bmd-radio",other:"sv_q_radiogroup_other form-control",clearButton:"sv_q_radiogroup_clear button btn btn-primary",column:"sv_q_select_column"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",itemInline:"sv_q_imagepicker_inline",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},rating:{root:"btn-group",item:"btn btn-default btn-secondary",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",disabled:""},text:"form-control",expression:"form-control",file:{root:"form-group bmd-form-group is-fileinput sv_q_file",placeholderInput:"",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",removeFile:"sv_q_file_remove",removeFileSvg:"sv-hidden",fileDecorator:"sv-hidden",fileSignBottom:"sv-hidden",removeButtonBottom:"sv-hidden"},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"alert alert-info",error:"alert alert-danger",success:"alert alert-success",saveAgainButton:""},window:{root:"modal-content",body:"modal-body",header:{root:"modal-header card-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};r.b.bootstrapmaterial=i},function(e,t,n){"use strict";var r=n(13);n.d(t,"a",function(){return i});var i={root:"sv-root-modern",container:"sv-container-modern",header:"sv-title sv-container-modern__title",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"",completedPage:"sv-completedpage",navigation:{complete:"sv-btn sv-footer__complete-btn",prev:"sv-btn sv-footer__prev-btn",next:"sv-btn sv-footer__next-btn",start:"sv-btn sv-footer__start-btn",preview:"sv-btn sv-footer__preview-btn",edit:"sv-btn sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator"},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},boolean:{root:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",materialDecorator:"sv-item__decorator sv-boolean__decorator ",itemDecorator:"sv-item__svg  sv-boolean__svg",checkedPath:"sv-boolean__checked-path",uncheckedPath:"sv-boolean__unchecked-path",indeterminatePath:"sv-boolean__indeterminate-path"},text:{root:"sv-text",small:"sv-row__question--small",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error"},imagepicker:{root:"sv-imagepicker",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled"},matrixdropdown:{root:"sv-table",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",detailRow:"sv-table__row sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",row:"sv-table__row",detailRow:"sv-table__row sv-table__row--detail",detailCell:"sv-table__cell--detail",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",disabled:"sv-rating--disabled"},comment:{root:"sv-comment",small:"sv-row__question--small"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",preview:"sv-file__preview",fileSign:"sv-hidden",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",disabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",wrapper:"sv-file__wrapper"},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}}};r.b.modern=i},function(e,t,n){"use strict";n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(170),n(172),n(174),n(173),n(175),n(171),n(169),n(176)},function(e,t,n){"use strict";var r=n(73),i=(n.n(r),n(74)),o=(n.n(i),n(7));n.d(t,"b",function(){return o.a});var a=n(4);n.d(t,"c",function(){return a.a});var s=n(36);n.d(t,"d",function(){return s.c}),n.d(t,"e",function(){return s.b}),n.d(t,"f",function(){return s.d}),n.d(t,"g",function(){return s.e}),n.d(t,"h",function(){return s.f}),n.d(t,"i",function(){return s.g}),n.d(t,"j",function(){return s.h}),n.d(t,"k",function(){return s.i}),n.d(t,"l",function(){return s.a});var l=n(11);n.d(t,"m",function(){return l.a});var u=n(5);n.d(t,"n",function(){return u.b}),n.d(t,"o",function(){return u.c}),n.d(t,"p",function(){return u.d}),n.d(t,"q",function(){return u.a});var c=n(114);n.d(t,"r",function(){return c.a});var p=n(12);n.d(t,"s",function(){return p.b}),n.d(t,"t",function(){return p.c}),n.d(t,"u",function(){return p.a}),n.d(t,"v",function(){return p.d}),n.d(t,"w",function(){return p.l});var d=n(14);n.d(t,"x",function(){return d.a});var h=n(115);n.d(t,"y",function(){return h.a}),n.d(t,"z",function(){return h.b});var f=n(42);n.d(t,"A",function(){return f.a});var g=n(27);n.d(t,"B",function(){return g.a}),n.d(t,"C",function(){return g.b});var m=n(10);n.d(t,"D",function(){return m.a}),n.d(t,"E",function(){return m.b});var y=n(26);n.d(t,"F",function(){return y.g}),n.d(t,"G",function(){return y.c}),n.d(t,"H",function(){return y.f}),n.d(t,"I",function(){return y.d}),n.d(t,"J",function(){return y.a}),n.d(t,"K",function(){return y.e});var v=n(43);n.d(t,"L",function(){return v.a});var b=n(16);n.d(t,"M",function(){return b.a});var x=n(1);n.d(t,"N",function(){return x.f}),n.d(t,"O",function(){return x.g}),n.d(t,"P",function(){return x.h}),n.d(t,"Q",function(){return x.i}),n.d(t,"R",function(){return x.j}),n.d(t,"S",function(){return x.k}),n.d(t,"T",function(){return x.c}),n.d(t,"U",function(){return x.d}),n.d(t,"V",function(){return x.l}),n.d(t,"W",function(){return x.m}),n.d(t,"X",function(){return x.b});var C=n(23);n.d(t,"Y",function(){return C.c}),n.d(t,"Z",function(){return C.d}),n.d(t,"_0",function(){return C.e}),n.d(t,"_1",function(){return C.b}),n.d(t,"_2",function(){return C.a});var w=n(61);n.d(t,"_3",function(){return w.b}),n.d(t,"_4",function(){return w.a});var P=n(62);n.d(t,"_5",function(){return P.b}),n.d(t,"_6",function(){return P.a});var V=n(60);n.d(t,"_7",function(){return V.b}),n.d(t,"_8",function(){return V.c}),n.d(t,"_9",function(){return V.a});var _=n(63);n.d(t,"_10",function(){return _.a}),n.d(t,"_11",function(){return _.b});var k=n(18);n.d(t,"_12",function(){return k.b}),n.d(t,"_13",function(){return k.d}),n.d(t,"_14",function(){return k.a});var T=n(45);n.d(t,"_15",function(){return T.a});var S=n(28);n.d(t,"_16",function(){return S.a});var R=n(9);n.d(t,"_17",function(){return R.a});var q=n(33);n.d(t,"_18",function(){return q.a});var E=n(55);n.d(t,"_19",function(){return E.a});var O=n(22);n.d(t,"_20",function(){return O.a}),n.d(t,"_21",function(){return O.b});var I=n(52);n.d(t,"_22",function(){return I.a});var L=n(53);n.d(t,"_23",function(){return L.a});var A=n(30);n.d(t,"_24",function(){return A.a});var D=n(3);n.d(t,"_25",function(){return D.b}),n.d(t,"_26",function(){return D.a});var N=n(56);n.d(t,"_27",function(){return N.a});var j=n(57);n.d(t,"_28",function(){return j.a});var F=n(65);n.d(t,"_29",function(){return F.a});var M=n(66);n.d(t,"_30",function(){return M.a});var B=n(31);n.d(t,"_31",function(){return B.a});var z=n(32);n.d(t,"_32",function(){return z.a});var Q=n(51);n.d(t,"_33",function(){return Q.a});var H=n(59);n.d(t,"_34",function(){return H.a});var $=n(58);n.d(t,"_35",function(){return $.a});var U=n(67);n.d(t,"_36",function(){return U.a});var W=n(64);n.d(t,"_37",function(){return W.a}),n.d(t,"_38",function(){return W.b});var J=n(70);n.d(t,"_39",function(){return J.a});var G=n(68);n.d(t,"_40",function(){return G.a});var K=n(20);n.d(t,"_41",function(){return K.a});var Z=n(177);n.d(t,"_42",function(){return Z.a}),n.d(t,"_43",function(){return Z.b}),n.d(t,"_44",function(){return Z.c}),n.d(t,"_45",function(){return Z.d}),n.d(t,"_46",function(){return Z.e}),n.d(t,"_47",function(){return Z.f}),n.d(t,"_48",function(){return Z.g});var X=n(69);n.d(t,"_49",function(){return X.a});var Y=n(24);n.d(t,"_50",function(){return Y.a});var ee=n(44);n.d(t,"_51",function(){return ee.a});var te=n(49);n.d(t,"_52",function(){return te.a});var ne=n(2);n.d(t,"_53",function(){return ne.a}),n.d(t,"_54",function(){return ne.b});var re=n(29);n.d(t,"_55",function(){return re.b}),n.d(t,"_56",function(){return re.a});var ie=n(54);n.d(t,"_57",function(){return ie.a}),n.d(t,"_58",function(){return ie.b}),n.d(t,"_59",function(){return ie.d}),n.d(t,"_60",function(){return ie.c});var oe=n(35);n.d(t,"_61",function(){return oe.a}),n.d(t,"a",function(){return ae});var ae;ae="1.8.21"},function(e,t,n){"use strict";var r=n(0),i=n(5),o=n(11),a=n(1),s=n(12),l=n(7);n.d(t,"a",function(){return c});var u=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,n){Array.isArray(e[t])?e[t].push(n):void 0!==e[t]?e[t]=[e[t]].concat(n):"object"==typeof n&&1===Object.keys(n).length&&Object.keys(n)[0]===t?e[t]=n[t]:e[t]=n},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var r=e.children[n],i={};this.xml2Json(r,i),this.assignValue(t,r.nodeName,i)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),n={};return this.xml2Json(t,n),n},e}(),c=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.isUsingCacheFromUrl=void 0,t.error=null,t}return n.i(r.b)(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return l.a.webserviceEncodeParameters},set:function(e){l.a.webserviceEncodeParameters=e},enumerable:!0,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){if(e.isUsingCache){var r=t.sendingSameRequests[e.objHash];delete t.sendingSameRequests[e.objHash];for(var i=0;i<r.length;i++)r[i].getResultCallback&&r[i].getResultCallback(n)}},t.getCachedItemsResult=function(e){var n=e.objHash,r=t.itemsResult[n];return!!r&&(e.getResultCallback&&e.getResultCallback(r),!0)},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return this.doEmptyResultCallback({}),void(this.lastObjHash=this.objHash);this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,this.useChangedItemsResults()||t.addSameRequest(this)||this.sendRequest())}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return!0===this.isUsingCacheFromUrl||!1!==this.isUsingCacheFromUrl&&l.a.useCachingForChoicesRestfull},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!0,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx(n,!1,l.a.webserviceEncodeParameters),i=e.processTextEx(this.path,!1,l.a.webserviceEncodeParameters);r.hasAllValuesOnLastRun&&i.hasAllValuesOnLastRun?(this.processedUrl=r.text,this.processedPath=i.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<")){var n=new u;t=n.parseXmlString(e)}else try{t=JSON.parse(e)}catch(n){t=(e||"").split("\n").map(function(e){return e.trim(" ")}).filter(function(e){return!!e})}return t},t.prototype.sendRequest=function(){this.isRunningValue=!0;var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var n=this,r=this.objHash;e.onload=function(){n.isRunningValue=!1,200===e.status?n.onLoad(n.parseResponse(e.response),r):n.onError(e.statusText,e.responseText)};var i={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(this,i),this.beforeSendRequest(),i.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!(this.url||this.path||this.valueName||this.titleName||this.imageLinkName)},enumerable:!0,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,n=0;n<e.length;n++)t.push(this.getCustomPropertyName(e[n].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=a.b.getProperties(this.itemValueType),t=[],n=0;n<e.length;n++)"value"!==e[n].name&&"text"!==e[n].name&&"visibleIf"!==e[n].name&&"enableIf"!==e[n].name&&t.push(e[n]);return t},t.prototype.setData=function(e){this.clear(),e.url&&(this.url=e.url),e.path&&(this.path=e.path),e.valueName&&(this.valueName=e.valueName),e.titleName&&(this.titleName=e.titleName),e.imageLinkName&&(this.imageLinkName=e.imageLinkName),void 0!==e.allowEmptyResponse&&(this.allowEmptyResponse=e.allowEmptyResponse),void 0!==e.attachOriginalItems&&(this.attachOriginalItems=e.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)e[t[n]]&&(this[t[n]]=e[t[n]])},t.prototype.getData=function(){if(this.isEmpty)return null;var e={};this.url&&(e.url=this.url),this.path&&(e.path=this.path),this.valueName&&(e.valueName=this.valueName),this.titleName&&(e.titleName=this.titleName),this.imageLinkName&&(e.imageLinkName=this.imageLinkName),this.allowEmptyResponse&&(e.allowEmptyResponse=this.allowEmptyResponse),this.attachOriginalItems&&(e.attachOriginalItems=this.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)this[t[n]]&&(e[t[n]]=this[t[n]]);return e},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url","")},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse",!1)},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems",!1)},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=a.b.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="",this.imageLinkName="";for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.beforeSendRequest=function(){this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.onLoad=function(e,n){void 0===n&&(n=null),n||(n=this.objHash);var r=new Array,i=this.getResultAfterPath(e);if(i&&i.length)for(var a=0;a<i.length;a++){var l=i[a];if(l){var u=this.getItemValueCallback?this.getItemValueCallback(l):this.getValue(l),c=this.getTitle(l),p=new o.a(u,c);this.setCustomProperties(p,l),this.attachOriginalItems&&(p.originalItem=l);var d=this.getImageLink(l);d&&(p.imageLink=d),r.push(p)}}else this.allowEmptyResponse||(this.error=new s.f(null,this.owner));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),this.isUsingCache&&(t.itemsResult[n]=r),this.callResultCallback(r,n),t.unregisterSameRequests(this,r)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var n=this.getCustomProperties(),r=0;r<n.length;r++){var i=n[r],o=this.getValueCore(t,this.getPropertyBinding(i.name));this.isValueEmpty(o)||(e[i.name]=o)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new s.g(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),n=0;n<t.length;n++)if(!(e=e[t[n]]))return null;return e},t.prototype.getPathes=function(){var e=[];return e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(","),0==e.length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.getTitle=function(e){var t=this.titleName?this.titleName:"title";return this.getValueCore(e,t)},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=0;r<n.length;r++)if(!(e=e[n[r]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!0,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(i.b);a.b.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean",default:!1},{name:"attachOriginalItems:boolean",default:!1,visible:!1}],function(){return new c})},function(e,t,n){"use strict";var r=n(116);n.d(t,"a",function(){return o});var i=function(){function e(e,t){this.at=e,this.code=t}return e}(),o=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/==/g,"= ").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var o=e.parserCache[t];return void 0===o&&(o=n.i(r.a)(this.patchExpression(t)),o.hasAsyncFunction()||(e.parserCache[t]=o)),o}catch(e){e instanceof r.b&&(this.conditionError=new i(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!0,configurable:!0}),e.parserCache={},e}()},function(e,t,n){"use strict";var r=n(7);n.d(t,"a",function(){return i});var i=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return r.a.surveyServiceUrl},set:function(e){r.a.surveyServiceUrl=e},enumerable:!0,configurable:!0}),e.prototype.loadSurvey=function(t,n){var r=new XMLHttpRequest;r.open("GET",e.serviceUrl+"/getSurvey?surveyId="+t),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=JSON.parse(r.response);n(200==r.status,e,r.response)},r.send()},e.prototype.getSurveyJsonAndIsCompleted=function(t,n,r){var i=new XMLHttpRequest;i.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+n),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onload=function(){var e=JSON.parse(i.response),t=e?e.survey:null,n=e?e.isCompleted:null;r(200==i.status,t,n,i.response)},i.send()},e.prototype.sendResult=function(t,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=!1);var a=new XMLHttpRequest;a.open("POST",e.serviceUrl+"/post/"),a.setRequestHeader("Content-Type","application/json; charset=utf-8");var s={postId:t,surveyResult:JSON.stringify(n)};i&&(s.clientId=i),o&&(s.isPartialCompleted=!0);var l=JSON.stringify(s);a.onload=a.onerror=function(){r&&r(200===a.status,a.response,a)},a.send(l)},e.prototype.sendFile=function(t,n,r){var i=new XMLHttpRequest;i.onload=i.onerror=function(){r&&r(200==i.status,JSON.parse(i.response))},i.open("POST",e.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",n),o.append("postId",t),i.send(o)},e.prototype.getResult=function(t,n,r){var i=new XMLHttpRequest,o="resultId="+t+"&name="+n;i.open("GET",e.serviceUrl+"/getResult?"+o),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");i.onload=function(){var e=null,t=null;if(200==i.status){e=JSON.parse(i.response),t=[];for(var n in e.QuestionResult){var o={name:n,value:e.QuestionResult[n]};t.push(o)}}r(200==i.status,e,t,i.response)},i.send()},e.prototype.isCompleted=function(t,n,r){var i=new XMLHttpRequest,o="resultId="+t+"&clientId="+n;i.open("GET",e.serviceUrl+"/isCompleted?"+o),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");i.onload=function(){var e=null;200==i.status&&(e=JSON.parse(i.response)),r(200==i.status,e,i.response)},i.send()},e}()},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(18);n.d(t,"a",function(){return a});var a=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.createLocalizableString("content",n,!0);var r=n;return n.registerFunctionOnPropertyValueChanged("content",function(){r.onContentChanged()}),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!0,configurable:!0}),t.prototype.onContentChanged=function(){var e="";e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,n=this.content,r=0,i=null;null!==(i=t.exec(n));){i.index>r&&(e.push(n.substr(r,i.index-r)),r=i.index);var o=this.getQuestionFromText(i[0]);o?e.push(this.getHtmlForQuestion(o)):e.push(n.substr(r,i.index+i[0].length-r)),r=i.index+i[0].length}return r<n.length&&e.push(n.substr(r,n.length-r)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=e.substr(1,e.length-2),e=e.replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,n){e.prototype.onAddElement.call(this,t,n),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var n=this.getElementContentText(t);this.content=this.content.replace(n,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,n){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||"undefined"==typeof document||!window.getSelection)return!1;var n=window.getSelection();if(n.getRangeAt&&n.rangeCount){var r=n.getRangeAt(0);r.deleteContents(),r.insertNode(document.createTextNode(e));var i=this;if(i.getContent){var o=i.getContent(t);this.content=o}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(o.b);i.b.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new a},"panel")},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(5)),a=n(61),s=n(23),l=n(1),u=n(3),c=n(8),p=n(15),d=n(21);n.d(t,"a",function(){return h});var h=function(e){function t(t){var n=e.call(this,t)||this,r=n;return n.koCellAfterRender=function(e,t){return r.cellAfterRender(e,t)},n.koCellQuestionAfterRender=function(e,t){return r.cellQuestionAfterRender(e,t)},n.koRecalc=i.observable(0),n.koTable=i.pureComputed(function(){return r.koRecalc(),r.question.renderedTable}),n.question.onRenderedTableCreatedCallback=function(e){new p.a(e)},n.question.onRenderedTableResetCallback=function(){r.koRecalc(r.koRecalc()+1)},n.koAddRowClick=function(){r.addRow()},n.koRemoveRowClick=function(e){r.removeRow(e.row)},n.koIsAddRowOnTop=i.pureComputed(function(){return r.koRecalc(),r.isAddRowTop()}),n.koIsAddRowOnBottom=i.pureComputed(function(){return r.koRecalc(),r.isAddRowBottom()}),n.question.koTable=n.koTable,n.question.koCellAfterRender=n.koCellAfterRender,n.question.koCellQuestionAfterRender=n.koCellQuestionAfterRender,n.question.koAddRowClick=n.koAddRowClick,n.question.koRemoveRowClick=n.koRemoveRowClick,n.question.koIsAddRowOnTop=n.koIsAddRowOnTop,n.question.koIsAddRowOnBottom=n.koIsAddRowOnBottom,n.question.koPanelAfterRender=function(e,t){r.panelAfterRender(e,t)},n}return n.i(r.b)(t,e),t.prototype.getQuestionTemplate=function(){return"matrixdynamic"},t.prototype.cellAfterRender=function(e,t){if(this.question.survey){var n=o.a.GetFirstNonTextElement(e);if(n){var r=t;r.question.customWidget&&(r.question.customWidget.afterRender(r.question,n),i.utils.domNodeDisposal.addDisposeCallback(n,function(){r.question.customWidget.willUnmount(r.question,n)}));var a={cell:r.cell,cellQuestion:r.question,htmlElement:n,row:r.row,column:r.cell?r.cell.column:null};this.question.survey.matrixAfterCellRender(this.question,a)}}},t.prototype.cellQuestionAfterRender=function(e,t){if(this.question.survey){var n=o.a.GetFirstNonTextElement(e);if(n){t.question.afterRenderQuestionElement(n)}}},t.prototype.isAddRowTop=function(){return!1},t.prototype.isAddRowBottom=function(){return!1},t.prototype.canRemoveRows=function(){return!1},t.prototype.addRow=function(){},t.prototype.removeRow=function(e){},t.prototype.panelAfterRender=function(e,t){if(this.question&&this.question.survey){var n=o.a.GetFirstNonTextElement(e);this.question.survey.afterRenderPanel(t,n)}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.koTemplateName.dispose(),this.koTable.dispose(),this.koIsAddRowOnTop.dispose(),this.koIsAddRowOnBottom.dispose(),this.question.onRenderedTableCreatedCallback=void 0,this.question.onRenderedTableResetCallback=void 0},t}(c.a),f=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new h(this)},t.prototype.createNewDetailPanel=function(){return new d.b},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0},t}(a.a);l.b.overrideClassCreator("matrixdropdown",function(){return new f("")}),u.b.Instance.registerQuestion("matrixdropdown",function(e){var t=new f(e);return t.choices=[1,2,3,4,5],t.rows=u.b.DefaultRows,s.a.addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),i=n(32),o=n(1),a=n(3),s=n(8);n.d(t,"a",function(){return u});var l=function(e){function t(t){var n=e.call(this,t)||this;return n.question=t,n}return n.i(r.b)(t,e),t}(s.a),u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new l(this)},t}(i.a);o.b.overrideClassCreator("text",function(){return new u("")}),a.b.Instance.registerQuestion("text",function(e){return new u(e)})},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});var r=n(111),i=function(){function e(){}return e.prototype.addText=function(e,t,n){t=this.getId(t,n),this.text=this.text+'<script type="text/html" '+t+">"+e+"<\/script>"},e.prototype.replaceText=function(e,t,n){void 0===n&&(n=null);var r=this.getId(t,n),i=this.text.indexOf(r);if(i<0)return void this.addText(e,t,n);if(!((i=this.text.indexOf(">",i))<0)){var o=i+1;i=this.text.indexOf("<\/script>",o),i<0||(this.text=this.text.substr(0,o)+e+this.text.substr(i))}},e.prototype.getId=function(e,t){var n='id="survey-'+e;return t&&(n+="-"+t),n+'"'},Object.defineProperty(e.prototype,"text",{get:function(){return r},set:function(e){r=e},enumerable:!0,configurable:!0}),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",progressText:"Page {0} of {1}",panelDynamicProgressText:"Record {0} of {1}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Thank you for completing the survey!",completingSurveyBefore:"Our records show that you have already completed this survey.",loadingSurvey:"Loading Survey...",optionsCaption:"Choose...",value:"value",requiredError:"Please answer the question.",requiredErrorInPanel:"Please answer at least one question.",requiredInAllRowsError:"Please answer questions in all rows.",numericError:"The value should be numeric.",textMinLength:"Please enter at least {0} characters.",textMaxLength:"Please enter less than {0} characters.",textMinMaxLength:"Please enter more than {0} and less than {1} characters.",minRowCountError:"Please fill in at least {0} rows.",minSelectError:"Please select at least {0} variants.",maxSelectError:"Please select no more than {0} variants.",numericMinMax:"The '{0}' should be equal or more than {1} and equal or less than {2}",numericMin:"The '{0}' should be equal or more than {1}",numericMax:"The '{0}' should be equal or less than {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",otherRequiredError:"Please enter the other value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file chosen",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addColumn:"Add column",addRow:"Add row",removeRow:"Remove",addPanel:"Add new",removePanel:"Remove",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",savingData:"The results are saving on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",cleanCaption:"Clean",clearCaption:"Clear",chooseFileCaption:"Choose file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title"}},function(e,t,n){"use strict";var r=n(0),i=n(11),o=n(9),a=n(1),s=n(10),l=n(4);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.filteredColumns=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return n.i(r.b)(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsCondition(t,n)},t.prototype.filterItems=function(){return this.areInvisibleElementsShowing?(this.onRowsChanged(),!1):!(this.isLoadingFromJson||!this.data)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var n=null;if(this.filteredRows&&!l.a.isValueEmpty(this.defaultValue)){n=[];for(var r=0;r<this.filteredRows.length;r++)n.push(this.filteredRows[r])}var i=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),o=this.runConditionsForColumns(e,t);return i=o||i,i&&(this.survey&&this.survey.isClearValueOnHidden&&(this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),n&&this.restoreNewVisibleRowsValues(n),this.clearGeneratedRows(),o&&this.onColumnsChanged(),this.onRowsChanged()),i},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.runConditionsForRows=function(e,t){var n=!!this.survey&&this.survey.areInvisibleElementsShowing,r=!n&&this.rowsVisibleIf?new s.a(this.rowsVisibleIf):null;this.filteredRows=[];var o=i.a.runConditionsForItems(this.rows,this.filteredRows,r,e,t,!n);return this.filteredRows.length===this.rows.length&&(this.filteredRows=null),o},t.prototype.runConditionsForColumns=function(e,t){var n=!!this.survey&&!this.survey.areInvisibleElementsShowing,r=n&&this.columnsVisibleIf?new s.a(this.columnsVisibleIf):null;this.filteredColumns=[];var o=i.a.runConditionsForItems(this.columns,this.filteredColumns,r,e,t,this.shouldRunColumnExpression());return this.filteredColumns.length===this.columns.length&&(this.filteredColumns=null),o},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,o=this.filteredRows?this.filteredRows:this.rows,a=this.filteredColumns?this.filteredColumns:this.columns;for(var s in t)i.a.getItemByValue(o,s)&&i.a.getItemByValue(a,t[s])?(null==n&&(n={}),n[s]=t[s]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=this.getUnbindValue(this.value),t=this.rows,n=0;n<t.length;n++){var r=t[n].value;e[r]&&!t[n].isVisible&&delete e[r]}l.a.isTwoValueEquals(e,this.value)||(this.value=e)}},t.prototype.restoreNewVisibleRowsValues=function(e){var t=this.filteredRows?this.filteredRows:this.rows,n=this.defaultValue,r=this.getUnbindValue(this.value),o=!1;for(var a in n)i.a.getItemByValue(t,a)&&!i.a.getItemByValue(e,a)&&(null==r&&(r={}),r[a]=n[a],o=!0);o&&(this.value=r)},t}(o.a);a.b.addClass("matrixbase",["columnsVisibleIf:condition","rowsVisibleIf:condition",{name:"showHeader:boolean",default:!0}],void 0,"question")},function(e,t,n){"use strict";var r=n(0),i=n(3),o=n(1),a=n(9),s=n(2);n.d(t,"a",function(){return l});var l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.createLocalizableString("labelFalse",n,!0),n.createLocalizableString("labelTrue",n,!0),n.locLabelFalse.onGetTextCallback=function(e){return e||s.a.getString("booleanUncheckedLabel")},n.locLabelTrue.onGetTextCallback=function(e){return e||s.a.getString("booleanCheckedLabel")},n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||(this.isValueEmpty(e)?this.value=null:this.value=1==e?this.getValueTrue():this.getValueFalse())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!0,configurable:!0}),t.prototype.getDefaultValue=function(){return"indeterminate"==this.defaultValue?null:void 0===this.defaultValue?null:"true"==this.defaultValue?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.showTitle||this.isValueEmpty(this.locLabel.text)?this.getLocalizableString("title"):this.locLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDisplayLabel",{get:function(){return this.locLabel.text?this.locLabel:this.showTitle?this.locLabel:this.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!0,configurable:!0}),t.prototype.getValueTrue=function(){return!this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return!!this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){"true"==this.defaultValue&&(this.checkedValue=!0),"false"==this.defaultValue&&(this.checkedValue=!1),"indeterminate"==this.defaultValue&&(this.value=null)},n.i(r.c)([n.i(o.e)({localizable:!0})],t.prototype,"label",void 0),n.i(r.c)([n.i(o.e)()],t.prototype,"showTitle",void 0),n.i(r.c)([n.i(o.e)()],t.prototype,"valueTrue",void 0),n.i(r.c)([n.i(o.e)()],t.prototype,"valueFalse",void 0),t}(a.a);o.b.addClass("boolean",[{name:"label:text",serializationProperty:"locLabel"},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"showTitle:boolean","valueTrue","valueFalse",{name:"renderAs",default:"default",visible:!1}],function(){return new l("")},"question"),i.b.Instance.registerQuestion("boolean",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(22),s=n(4),l=n(11),u=n(2);n.d(t,"a",function(){return c});var c=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.noneItemValue=new l.a("none"),n.selectAllItemValue=new l.a("selectall"),n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1;var r=n.createLocalizableString("noneText",n,!0);r.onGetTextCallback=function(e){return e||u.a.getString("noneItemText")},n.noneItemValue.locOwner=n,n.noneItemValue.setLocText(r);var i=n.createLocalizableString("selectAllText",n,!0);i.onGetTextCallback=function(e){return e||u.a.getString("selectAllItemText")},n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(i);var o=n;return n.registerFunctionOnPropertiesValueChanged(["hasNone","noneText","hasSelectAll","selectAllText"],function(){o.onVisibleChoicesChanged()}),n}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"group"},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText",u.a.getString("noneItemText"))},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText",u.a.getString("selectAllItemText"))},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.getPropertyValue("hasSelectAll",!1)},set:function(e){this.setPropertyValue("hasSelectAll",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){var e=this.value;if(!e||!Array.isArray(e))return!1;if(this.isItemSelected(this.noneItem))return!1;var t=this.visibleChoices.length;this.hasOther&&t--,this.hasNone&&t--,this.hasSelectAll&&t--;var n=e.length;return this.isItemSelected(this.otherItem)&&n--,n===t},set:function(e){e?this.selectAll():this.clearValue()},enumerable:!0,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.selectAll=function(){for(var e=[],t=0;t<this.visibleChoices.length;t++){var n=this.visibleChoices[t];n!==this.noneItem&&n!==this.otherItem&&n!==this.selectAllItem&&e.push(n.value)}this.value=e},Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.getPropertyValue("hasNone",!1)},set:function(e){this.setPropertyValue("hasNone",e)},enumerable:!0,configurable:!0}),t.prototype.isItemSelected=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(s.a.isTwoValueEquals(t[n],e.value))return!0;return!1},Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices",0)},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e)},enumerable:!0,configurable:!0}),t.prototype.onEnableItemCallBack=function(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)},t.prototype.onAfterRunItemsEnableCondition=function(){this.maxSelectedChoices<1||(this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.maxSelectedChoices>=this.activeChoices.length),this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected))},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices},t.prototype.getItemClass=function(e){var t=(this.value,this.isItemSelected(e)),n=this.isReadOnly||!e.isEnabled,r=!t&&!n,i=e===this.selectAllItem,o=e===this.noneItem,a=this.cssClasses.item;return this.hasColumns||(a+=0===this.colCount?" "+this.cssClasses.itemInline:" sv-q-col-"+this.colCount),n&&this.cssClasses.itemDisabled&&(a+=" "+this.cssClasses.itemDisabled),t&&this.cssClasses.itemChecked&&(a+=" "+this.cssClasses.itemChecked),r&&this.cssClasses.itemHover&&(a+=" "+this.cssClasses.itemHover),i&&this.cssClasses.itemSelectAll&&(a+=" "+this.cssClasses.itemSelectAll),o&&this.cssClasses.itemNone&&(a+=" "+this.cssClasses.itemNone),a},t.prototype.setNewValue=function(t){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues=[]),t=this.valueFromData(t);var n=this.value;if(t||(t=[]),n||(n=[]),!s.a.isTwoValueEquals(n,t)){if(this.hasNone){var r=this.noneIndexInArray(n),i=this.noneIndexInArray(t);r>-1?i>-1&&t.length>1&&t.splice(i,1):i>-1&&(t.splice(0,t.length),t.push(this.noneItem.value))}e.prototype.setNewValue.call(this,this.rendredValueToData(t))}},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?"":e[t]},t.prototype.setOtherValueIntoValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?e:(e.splice(t,1,this.otherItem.value),e)},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var t=0;t<e.length;t++)if(this.hasUnknownValue(e[t]))return t;return-1},t.prototype.noneIndexInArray=function(e){if(!e||!Array.isArray(e))return-1;for(var t=this.noneItem.value,n=0;n<e.length;n++)if(e[n]==t)return n;return-1},t.prototype.canUseFilteredChoices=function(){return!this.hasNone&&!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.addToVisibleChoices=function(t){this.hasSelectAll&&t.unshift(this.selectAllItem),e.prototype.addToVisibleChoices.call(this,t),this.hasNone&&t.push(this.noneItem)},t.prototype.getDisplayValueCore=function(t,n){if(!Array.isArray(n))return e.prototype.getDisplayValueCore.call(this,t,n);for(var r=this.visibleChoices,i="",o=0;o<n.length;o++){var a=this.getChoicesDisplayValue(r,n[o]);a&&(i&&(i+=", "),i+=a)}return i},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,n=!1,r=this.restoreValuesFromInvisible();if(t||0!=r.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue()),this.isChangingValueOnClearIncorrect=!1,0==r.length)return;t=[]}for(var i=[],o=0;o<t.length;o++){var a=this.canClearValueAnUnknow(t[o]);!e&&!a||e&&!this.isValueDisabled(t[o])?i.push(t[o]):(n=!0,a&&(this.invisibleOldValues[t[o]]=!0))}for(var o=0;o<r.length;o++)i.push(r[o]),n=!0;n&&(this.isChangingValueOnClearIncorrect=!0,0==i.length?this.clearValue():this.value=i,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++){var r=t[n].value;this.invisibleOldValues[r]&&(e.push(r),delete this.invisibleOldValues[r])}return e},t.prototype.getConditionJson=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.prototype.getConditionJson.call(this);return"contains"!=t&&"notcontains"!=t||(r.type="radiogroup"),r},t.prototype.isAnswerCorrect=function(){return s.a.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getHasOther=function(e){return!(!e||!Array.isArray(e))&&e.indexOf(this.otherItem.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var n=[],r=0;r<t.length;r++){var i=l.a.getItemByValue(this.activeChoices,t[r]);i?n.push(i.value):n.push(t[r])}return n},t.prototype.renderedValueFromDataCore=function(e){e&&Array.isArray(e)||(e=[]);for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValue(e[t])){this.comment=e[t];var n=e.slice();return n[t]=this.otherItem.value,n}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.getQuestionComment()){var n=e.slice();return n[t]=this.getQuestionComment(),n}return e},t.prototype.hasUnknownValue=function(t,n){return void 0===n&&(n=!1),(!this.hasNone||t!=this.noneItemValue.value)&&e.prototype.hasUnknownValue.call(this,t,n)},t.prototype.addSupportedValidators=function(t){e.prototype.addSupportedValidators.call(this,t),t.push("answercount")},t}(a.a);i.b.addClass("checkbox",["hasSelectAll:boolean","hasNone:boolean",{name:"maxSelectedChoices",default:0},{name:"noneText",serializationProperty:"locNoneText"},{name:"selectAllText",serializationProperty:"locSelectAllText"}],function(){return new c("")},"checkboxbase"),o.b.Instance.registerQuestion("checkbox",function(e){var t=new c(e);return t.choices=o.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(9),o=n(1),a=n(3),s=n(4);n.d(t,"a",function(){return l});var l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.createLocalizableString("placeHolder",n),n}return n.i(r.b)(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){return s.a.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.getLocalizableStringText("placeHolder")},set:function(e){this.setLocalizableStringText("placeHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.getLocalizableString("placeHolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return"default"==this.textUpdateMode?!!this.survey&&this.survey.isUpdateValueTextOnTyping:"onTyping"==this.textUpdateMode},enumerable:!0,configurable:!0}),t.prototype.addSupportedValidators=function(t){e.prototype.addSupportedValidators.call(this,t),t.push("text","regex")},t}(i.a);o.b.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50},{name:"rows:number",default:4},{name:"placeHolder",serializationProperty:"locPlaceHolder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]}],function(){return new l("")},"question"),a.b.Instance.registerQuestion("comment",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(9),o=n(1),a=n(5),s=n(4),l=n(24);n.d(t,"d",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return d}),n.d(t,"b",function(){return f});var u=function(){function e(e,t){this.name=e,this.json=t;var n=this;o.b.addClass(e,[],function(e){return c.Instance.createQuestion(e?e.name:"",n)},"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,n)},e.prototype.onPropertyChanged=function(e,t,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,n)},e.prototype.onItemValuePropertyChanged=function(e,t,n,r,i){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:n,name:r,newValue:i})},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!0,configurable:!0}),e}(),c=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(o.b.findClass(t))throw"There is already class with name '"+t+"'";var n=new u(t,e);this.onAddingJson&&this.onAddingJson(t,n.isComposite),this.customQuestionValues.push(n)}},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!0,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name==e)return this.customQuestionValues[t];return null},e.prototype.clear=function(){for(var e=0;e<this.customQuestionValues.length;e++)o.b.removeClass(this.customQuestionValues[e].name);this.customQuestionValues=[]},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new f(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new d(e,t)},e.Instance=new e,e}(),p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.name=t,r.customQuestion=n,o.a.createProperties(r),a.a.CreateDisabledDesignElements=!0,r.createWrapper(),a.a.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return n.i(r.b)(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,r)},t.prototype.itemValuePropertyChanged=function(t,n,r,i){e.prototype.itemValuePropertyChanged.call(this,t,n,r,i),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,n,i)},t.prototype.onFirstRendering=function(){var t=this.getElement();t&&t.onFirstRendering(),e.prototype.onFirstRendering.call(this)},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.initElement(this.getElement())},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateElementCss()},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.geSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.survey},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,n,r){if(this.data){var i=this.convertDataName(e);this.data.setValue(i,this.convertDataValue(e,t),n,r),this.updateIsAnswered(),this.updateElementCss()}},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,n){this.data&&this.data.setComment(this.getValueName(),t,n)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(e){return-1},t}(i.a),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.i(r.b)(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.createWrapper=function(){this.questionWrapper=this.createQuestion()},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(t)},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(t,n);this.errors=[];for(var i=0;i<this.contentQuestion.errors.length;i++)this.errors.push(this.contentQuestion.errors[i]);return r||(r=e.prototype.hasErrors.call(this,t,n)),this.updateElementCss(),r},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.call(this,t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!0,configurable:!0}),t.prototype.createQuestion=function(){var e=this.customQuestion.json,t=null;if(e.questionJSON){var n=e.questionJSON.type;if(!n||!o.b.findClass(n))throw"type attribute in questionJSON is empty or incorrect";t=o.b.createClass(n),this.initElement(t),t.fromJSON(e.questionJSON)}else e.createQuestion&&(t=e.createQuestion(),this.initElement(t));return t&&!t.name&&(t.name="question"),t},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.contentQuestion.value)},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.contentQuestion&&this.contentQuestion.runCondition(t,n)},t.prototype.convertDataName=function(t){if(!this.contentQuestion)return e.prototype.convertDataName.call(this,t);var n=t.replace(this.contentQuestion.getValueName(),this.getValueName());return 0==n.indexOf(this.getValueName())?n:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,n){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.contentQuestion.value:n},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.contentQuestion&&(this.contentQuestion.value=t)},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.initElement=function(t){var n=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,e,t)})},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t}(p),h=function(e){function t(t,n){var r=e.call(this,n)||this;return r.composite=t,r.variableName=n,r}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!0,configurable:!0}),t}(l.b),f=function(e){function t(n,r){var i=e.call(this,n,r)||this;return i.name=n,i.customQuestion=r,i.textProcessing=new h(i,t.ItemVariableName),i}return n.i(r.b)(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getCssType=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=e.prototype.hasErrors.call(this,t,n);return this.contentPanel?this.contentPanel.hasErrors(t,!1,n)||r:r},t.prototype.updateElementCss=function(){e.prototype.updateElementCss.call(this),this.contentPanel&&this.contentPanel.updateElementCss()},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this);for(var t=this.contentPanel.questions,n=0;n<t.length;n++)t[n].clearValueIfInvisible()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(t)},t.prototype.createPanel=function(){var e=o.b.createClass("panel");e.showQuestionNumbers="off",e.renderWidth="100%";var t=this.customQuestion.json;return t.elementsJSON&&e.fromJSON({elements:t.elementsJSON}),t.createElements&&t.createElements(e,this),this.initElement(e),e.readOnly=this.isReadOnly,this.setAfterRenderCallbacks(e),e},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this)},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,n=0;n<t.length;n++){var r=t[n];r.isPanel?this.setIsContentElement(r):r.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var n=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(t)),n},t.prototype.runCondition=function(n,r){if(e.prototype.runCondition.call(this,n,r),this.contentPanel){var i=n[t.ItemVariableName];n[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(n,r),delete n[t.ItemVariableName],i&&(n[t.ItemVariableName]=i)}},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.convertDataValue=function(e,t){var n=this.value;return n||(n={}),s.a.isValueEmpty(t)?delete n[e]:n[e]=t,n},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n);for(var r=this.contentPanel.questions,i=0;i<r.length;i++){var o=r[i].getValueName();r[i].value=t?t[o]:void 0}},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var n=e.questions,r=0;r<n.length;r++)n[r].afterRenderQuestionCallback=function(e,n){t.customQuestion.onAfterRenderContentElement(t,e,n)}},t.ItemVariableName="composite",t}(p)},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(9);n.d(t,"a",function(){return a});var a=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"empty"},t}(o.a);i.b.addClass("empty",[],function(){return new a("")},"question")},function(e,t,n){"use strict";var r=n(0),i=n(9),o=n(1),a=n(3),s=n(5),l=n(12),u=n(2);n.d(t,"a",function(){return c});var c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.isUploading=!1,n.onStateChanged=new s.c,n.previewValue=[],n.currentState="empty",n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"file"},t.prototype.clearOnDeletingContainer=function(){this.survey.clearFiles(this,this.name,this.value,null,function(){})},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple",!1)},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload",!1)},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize",0)},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!0,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return u.a.getString("confirmRemoveFile").format(e)},Object.defineProperty(t.prototype,"confirmRemoveAllMessage",{get:function(){return u.a.getString("confirmRemoveAllFiles")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noFileChosenCaption",{get:function(){return u.a.getString("noFileChosen")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonCaption",{get:function(){return u.a.getString("chooseFileCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cleanButtonCaption",{get:function(){return u.a.getString("cleanCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeFileCaption",{get:function(){return u.a.getString("removeFileCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?u.a.getString("loadingFile"):this.isEmpty()?u.a.getString("chooseFile"):" "},enumerable:!0,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey.clearFiles(this,this.name,this.value,null,function(n,r){"success"===n&&(t.value=void 0,t.errors=[],!!e&&e())})},t.prototype.removeFile=function(e){var t=this;this.survey.clearFiles(this,this.name,this.value,e.name,function(n,r){if("success"===n){var i=t.value;Array.isArray(i)?t.value=i.filter(function(t){return t.name!==e.name}):t.value=void 0}})},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){this.stateChanged("loading");var n=function(){var n=[];t.storeDataAsText?e.forEach(function(r){var i=new FileReader;i.onload=function(o){n=n.concat([{name:r.name,type:r.type,content:i.result}]),n.length===e.length&&(t.value=(t.value||[]).concat(n))},i.readAsDataURL(r)}):t.survey.uploadFiles(t,t.name,e,function(e,n){"error"===e&&t.stateChanged("error"),"success"===e&&(t.value=(t.value||[]).concat(n.map(function(e){return{name:e.file.name,type:e.file.type,content:e.content}})))})};this.allowMultiple?n():this.clear(n)}},t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.setQuestionValue=function(t,n){var r=this;void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.previewValue=[];var i=!Array.isArray(t)&&t||Array.isArray(t)&&t.length>0?this.showPreview?"loading":"loaded":"empty";if(this.stateChanged(i),this.showPreview&&t){var o=Array.isArray(t)?t:t?[t]:[];this.storeDataAsText?(o.forEach(function(e){var t=e.content||e;r.previewValue=r.previewValue.concat([{name:e.name,type:e.type,content:t}])}),"loading"===i&&this.stateChanged("loaded")):o.forEach(function(e){e.content;r.survey.downloadFile(r.name,e,function(t,n){"success"===t?(r.previewValue=r.previewValue.concat([{content:n,name:e.name,type:e.type}]),r.previewValue.length===o.length&&r.stateChanged("loaded")):r.stateChanged("error")})})}},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),this.isUploading&&this.waitForUpload&&t.push(new l.k(u.a.getString("uploadingFile"),this))},t.prototype.stateChanged=function(e){"loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),"error"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e})},t.prototype.allFilesOk=function(e){var t=this,n=this.errors?this.errors.length:0;return(e||[]).forEach(function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new l.l(t.maxSize,t))}),n===this.errors.length},t.prototype.isFileImage=function(e){if(!e)return!1;var t="data:image",n=e.content&&e.content.substr(0,t.length);return(n=n&&n.toLowerCase())===t||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map(function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}})}return n},t.prototype.supportComment=function(){return!0},t}(i.a);o.b.addClass("file",[{name:"hasComment:switch",layout:"row"},{name:"commentText",dependsOn:"hasComment",visibleIf:function(e){return e.hasComment},serializationProperty:"locCommentText",layout:"row"},{name:"showPreview:boolean",default:!0},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},"maxSize:number",{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean",visible:!0,default:!1}],function(){return new c("")},"question"),a.b.Instance.registerQuestion("file",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(33),o=n(1),a=n(3);n.d(t,"a",function(){return s});var s=function(e){function t(t){var n=e.call(this,t)||this;n.name=t;var r=n.createLocalizableString("html",n),i=n;return r.onGetTextCallback=function(e){return i.survey?i.survey.processHtml(e):e},n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.survey?this.survey.processHtml(this.html):this.html},enumerable:!0,configurable:!0}),t}(i.a);o.b.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new s("")},"nonvalue"),a.b.Instance.registerQuestion("html",function(e){return new s(e)})},function(e,t,n){"use strict";var r=n(0),i=n(33),o=n(1),a=n(3);n.d(t,"a",function(){return s});var s=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.createLocalizableString("imageLink",n,!1),n.createLocalizableString("text",n,!1),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!0,configurable:!0}),t}(i.a);o.b.addClass("image",[{name:"imageLink",serializationProperty:"locImageLink"},{name:"text",serializationProperty:"locText"},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",default:150,minValue:0},{name:"imageWidth:number",default:200,minValue:0}],function(){return new s("")},"nonvalue"),a.b.Instance.registerQuestion("image",function(e){return new s(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(22),s=n(11),l=n(4);n.d(t,"a",function(){return c});var u=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="imageitemvalue");var i=e.call(this,t,n,r)||this;return i.typeName=r,i.createLocalizableString("imageLink",i,!1),i}return n.i(r.b)(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t}(s.a),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.colCount=0,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect",!1)},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!0,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value;if(l.a.isValueEmpty(t))return!1;if(!this.multiSelect)return l.a.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(l.a.isTwoValueEquals(t[n],e.value))return!0;return!1},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!t)return;if(!Array.isArray(t)||0==t.length)return void this.clearValue();for(var n=[],r=0;r<t.length;r++)this.hasUnknownValue(t[r],!0)||n.push(t[r]);if(n.length==t.length)return;0==n.length?this.clearValue():this.value=n}else e.prototype.clearIncorrectValues.call(this)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel",!1)},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!0,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value"))},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return this.multiSelect?l.a.isValueEmpty(e)||Array.isArray(e)?e:[e]:e},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!0,configurable:!0}),t.prototype.getItemClass=function(e){var t=this.cssClasses.item+(0===this.colCount?" "+this.cssClasses.itemInline:" sv-q-col-"+this.colCount),n=this.isItemSelected(e),r=this.isReadOnly||!e.isEnabled,i=!n&&!r;return n&&this.cssClasses.itemChecked&&(t+=" "+this.cssClasses.itemChecked),r&&this.cssClasses.itemDisabled&&(t+=" "+this.cssClasses.itemDisabled),i&&this.cssClasses.itemHover&&(t+=" "+this.cssClasses.itemHover),t},t.prototype.convertDefaultValue=function(e){return e},t}(a.a);i.b.addClass("imageitemvalue",[],function(e){return new u(e)},"itemvalue"),i.b.addProperty("imageitemvalue",{name:"imageLink",serializationProperty:"locImageLink"}),i.b.addClass("imagepicker",[{name:"hasOther",visible:!1},{name:"otherText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",default:150,minValue:0},{name:"imageWidth:number",default:200,minValue:0}],function(){return new c("")},"checkboxbase"),i.b.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),i.b.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),i.b.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),i.b.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),o.b.Instance.registerQuestion("imagepicker",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(11),a=n(50),s=n(1),l=n(5),u=n(2),c=n(12),p=n(3),d=n(14),h=n(30),f=n(7);n.d(t,"b",function(){return g}),n.d(t,"c",function(){return m}),n.d(t,"a",function(){return y});var g=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.fullName=n,o.item=t,o.data=r,o.value=i,o.cellClick=function(e){o.value=e.value},o.registerFunctionOnPropertyValueChanged("value",function(){o.data&&o.data.onMatrixRowChanged(o)}),o}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses,t=e.row?e.row:"",n=e.rowError?e.rowError:"",r=!!this.data.getErrorByType("requiredinallrowserror"),o=t;return n&&r&&i.a.isValueEmpty(this.value)&&(o&&(o+=" "),o+=n),o},enumerable:!0,configurable:!0}),t}(l.b),m=function(){function e(e){this.cellsOwner=e,this.values={}}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!0,configurable:!0}),e.prototype.setCellText=function(e,t,n){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t)if(n)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=n;else if(this.values[e]&&this.values[e][t]){var r=this.values[e][t];r.text="",r.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(f.a.matrixDefaultRowName,e,t)},e.prototype.getCellLocText=function(e,t){return e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t&&this.values[e]&&this.values[e][t]?this.values[e][t]:null},e.prototype.getDefaultCellLocText=function(e,t){return this.getCellLocText(f.a.matrixDefaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var n=this.getCellLocText(e,t);return n&&!n.isEmpty?n:(n=this.getCellLocText(f.a.matrixDefaultRowName,t))&&!n.isEmpty?n:("number"==typeof t&&(t=t>=0&&t<this.columns.length?this.columns[t]:null),t&&t.locText?t.locText:null)},e.prototype.getCellText=function(e,t){var n=this.getCellLocText(e,t);return n?n.calculatedText:null},e.prototype.getDefaultCellText=function(e){var t=this.getCellLocText(f.a.matrixDefaultRowName,e);return t?t.calculatedText:null},e.prototype.getCellDisplayText=function(e,t){var n=this.getCellDisplayLocText(e,t);return n?n.calculatedText:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!0,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},e.prototype.getJson=function(){if(this.isEmpty)return null;var e={};for(var t in this.values){var n={},r=this.values[t];for(var i in r)n[i]=r[i].getJson();e[t]=n}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var n=e[t];this.values[t]={};for(var r in n)if("pos"!=r){var i=this.createString();i.setJson(n[r]),this.values[t][r]=i}}},e.prototype.createString=function(){return new d.a(this.cellsOwner,!0)},e}(),y=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isRowChanging=!1,n.emptyLocalizableString=new d.a(n),n.cellsValue=new m(n);var r=n;return n.registerFunctionOnPropertyValueChanged("columns",function(){r.onColumnsChanged()}),n.registerFunctionOnPropertyValueChanged("rows",function(){r.filterItems()||r.onRowsChanged()}),n.registerFunctionOnPropertyValueChanged("hideIfRowsEmpty",function(){r.updateVisibilityBasedOnRows()}),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired",!1)},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty",!1)},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!0,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.getItemClass=function(e,t){var n=e.value==t.value,r=this.isReadOnly,i=!n&&!r,o=this.hasCellText?this.cssClasses.cellTextDisabled:this.cssClasses.itemDisabled,a=this.hasCellText?this.cssClasses.cellTextSelected:this.cssClasses.itemChecked,s=this.hasCellText?"":this.cssClasses.itemHover,l=this.hasCellText?this.cssClasses.cellText:this.cssClasses.label,u=this.hasCellText&&this.cssClasses.cell?this.cssClasses.cell+" ":"";return u+=l+(n?" "+a:"")+(r?" "+o:"")+(i?" "+s:"")},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.isValueEmpty(this.correctAnswer[this.rows[t].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,n=0;n<this.rows.length;n++){var r=this.rows[n].value;!i.a.isValueEmpty(t[r])&&i.a.isTwoValueEquals(this.correctAnswer[r],t[r])&&e++}return e},t.prototype.getVisibleRows=function(){var e=new Array,t=this.value;t||(t={});for(var n=this.filteredRows?this.filteredRows:this.rows,r=0;r<n.length;r++){var i=n[r];this.isValueEmpty(i.value)||e.push(this.createMatrixRow(i,this.id+"_"+i.value.toString().replace(/\s/g,"_"),t[i.value]))}return 0!=e.length||this.filteredRows||e.push(this.createMatrixRow(new o.a(null),this.name.replace(/\s/g,"_"),t)),this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return"random"===this.rowsOrder.toLowerCase()?i.a.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows),this.updateVisibilityBasedOnRows()},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return!this.cells.isEmpty},enumerable:!0,configurable:!0}),t.prototype.setCellText=function(e,t,n){this.cells.setCellText(e,t,n)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){var n=this.cells.getCellDisplayLocText(e,t);return n||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),(!n||this.errors.length>0)&&this.hasErrorInRows()&&t.push(new c.j(null,this))},t.prototype.hasErrorInRows=function(){return!!this.isAllRowRequired&&!this.hasValuesInAllRows()},t.prototype.hasValuesInAllRows=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++)if(i.a.isValueEmpty(e[t].value))return!1;return!0},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,n){var r=new g(e,t,this,n);return this.onMatrixRowCreated(r),r},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(t,n){if(void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,this.isRowChanging||n),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var r=this.value;if(r||(r={}),0==this.rows.length)this.generatedVisibleRows[0].value=r;else for(var o=0;o<this.generatedVisibleRows.length;o++){var a=this.generatedVisibleRows[o],s=r[a.name];i.a.isValueEmpty(s)&&(s=null),this.generatedVisibleRows[o].value=s}this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var n={};for(var r in t){var i=e?o.a.getTextOrHtmlByValue(this.rows,r):r;i||(i=r);var a=o.a.getTextOrHtmlByValue(this.columns,t[r]);a||(a=t[r]),n[i]=a}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){var i=this.createValueCopy();r.isNode=!0,r.data=Object.keys(i||{}).map(function(e){var r=n.rows.filter(function(t){return t.value===e})[0],a={name:e,title:r?r.text:"row",value:i[e],displayValue:o.a.getTextOrHtmlByValue(n.visibleColumns,i[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},s=o.a.getItemByValue(n.visibleColumns,i[e]);return s&&(t.calculations||[]).forEach(function(e){a[e.propertyName]=s[e.propertyName]}),a})}return r},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.rows.length;n++){var r=this.rows[n];r.value&&e.push({name:this.getValueName()+"."+r.value,text:this.processedTitle+"."+r.calculatedText,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);var r=new h.a(n);r.choices=this.columns;var i=(new s.c).toJsonObject(r);return i.type=r.getType(),i},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.hasRows&&this.clearInvisibleValuesInRows()},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),e.prototype.onRowsChanged.call(this)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&(this.visible=this.rows.length>0&&(!this.filteredRows||this.filteredRows.length>0))},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t}(a.a);s.b.addClass("matrix",[{name:"columns:itemvalue[]",baseValue:function(){return u.a.getString("matrix_column")}},{name:"rows:itemvalue[]",baseValue:function(){return u.a.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean","hideIfRowsEmpty:boolean"],function(){return new y("")},"matrixbase"),p.b.Instance.registerQuestion("matrix",function(e){var t=new y(e);return t.rows=p.b.DefaultRows,t.columns=p.b.DefaultColums,t})},function(e,t,n){"use strict";var r=n(0),i=n(23),o=n(1),a=n(11),s=n(3);n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var l=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.name=t,o.item=n,o.buildCells(i),o}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!0,configurable:!0}),t}(i.b),u=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.createLocalizableString("totalText",n,!0);var r=n;return n.registerFunctionOnPropertyValueChanged("rows",function(){r.clearGeneratedRows(),r.resetRenderedTable(),r.filterItems()}),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!0,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth","")},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!0,configurable:!0}),t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},t.prototype.getDisplayValueCore=function(e,t){var n=this.createValueCopy();if(!n)return n;for(var r=this.visibleRows,i={},o=0;o<r.length;o++){var s=this.rows[o].value,l=n[s];if(l){if(e){var u=a.a.getTextOrHtmlByValue(this.rows,s);u&&(s=u)}i[s]=this.getRowDisplayValue(r[o],l)}}return n},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.columns.indexOf(t)>-1,r=0;r<this.rows.length;r++){var i=this.rows[r];if(i.value)for(var o=this.getValueName()+"."+i.value+".",a=this.processedTitle+"."+i.calculatedText+".",s=0;s<this.columns.length;s++){var l=this.columns[s];e.push({name:o+l.name,text:a+l.fullTitle,question:this})}}if(n)for(var r=0;r<this.columns.length;r++){var l=this.columns[r];l!=t&&e.push({name:"row."+l.name,text:"row."+l.fullTitle,question:this})}},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,i=this.filteredRows?this.filteredRows:this.rows;for(var o in t)a.a.getItemByValue(i,o)?(null==n&&(n={}),n[o]=t[o]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.clearInvisibleValuesInRows()},t.prototype.generateRows=function(){var e=new Array,t=this.filteredRows?this.filteredRows:this.rows;if(!t||0===t.length)return e;var n=this.value;n||(n={});for(var r=0;r<t.length;r++)t[r].value&&e.push(this.createMatrixRow(t[r],n[t[r].value]));return e},t.prototype.createMatrixRow=function(e,t){return new l(e.value,e,this,t)},t}(i.a);o.b.addClass("matrixdropdown",[{name:"rows:itemvalue[]"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"}],function(){return new u("")},"matrixdropdownbase"),s.b.Instance.registerQuestion("matrixdropdown",function(e){var t=new u(e);return t.choices=[1,2,3,4,5],t.rows=s.b.DefaultColums,i.a.addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),i=n(23),o=n(1),a=n(3),s=n(2),l=n(12),u=n(4),c=n(7),p=n(25);n.d(t,"b",function(){return d}),n.d(t,"a",function(){return h});var d=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.index=t,i.buildCells(r),i}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!0,configurable:!0}),t}(i.b),h=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.rowCounter=0,n.initialRowCount=2,n.setRowCountValueFromData=!1,n.createLocalizableString("confirmDeleteText",n),n.createLocalizableString("keyDuplicationError",n),n.createLocalizableString("addRowText",n),n.createLocalizableString("removeRowText",n),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!0,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(t){if(this.minRowCount<1)return e.prototype.valueFromData.call(this,t);Array.isArray(t)||(t=[]);for(var n=t.length;n<this.minRowCount;n++)t.push({});return t},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultRowValue)||!this.isValueEmpty(this.defaultValue))return void e.prototype.setDefaultValue.call(this);if(this.isEmpty()&&0!=this.rowCount){for(var t=[],n=0;n<this.rowCount;n++)t.push(this.defaultRowValue);this.value=t}},t.prototype.isEditingSurveyElement=function(t){return!(!this.survey||!this.survey.isEditingSurveyElement)||e.prototype.isEditingSurveyElement.call(this,t)},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>c.a.matrixMaximumRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var n=this.value;n.splice(e),this.value=n}if(this.isLoadingFromJson)return void(this.initialRowCount=e);if(this.generatedVisibleRows){this.generatedVisibleRows.splice(e);for(var r=t;r<e;r++){var i=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(i),this.onMatrixRowCreated(i)}}this.onRowsChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount",2)},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!0,configurable:!0}),t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount",0)},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount",c.a.matrixMaximumRowCount)},set:function(e){e<=0||(e>c.a.matrixMaximumRowCount&&(e=c.a.matrixMaximumRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows",!0)},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows",!0)},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isLoadingFromJson||this.resetRenderedTable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount},enumerable:!0,configurable:!0}),t.prototype.canRemoveRow=function(e){return!this.survey||this.survey.matrixAllowRemoveRow(this,e.index,e)},t.prototype.addRow=function(){var e={question:this,canAddRow:this.canAddRow};this.survey&&this.survey.matrixBeforeRowAdded(e),e.canAddRow&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding())},t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,e.prototype.unbindValue.call(this)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),n=null;if(this.isValueEmpty(t)||(n=this.createNewValue(),n.length==this.rowCount&&(n[n.length-1]=t,this.value=n)),this.data){this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties());var r=this.visibleRows[this.rowCount-1];u.a.isValueEmpty(r.value)||(n||(n=this.createNewValue()),this.isEditingSurveyElement(n)||u.a.isTwoValueEquals(n[n.length-1],r.value)||(n[n.length-1]=r.value,this.value=n))}this.survey&&e+1==this.rowCount&&(this.survey.matrixRowAdded(this,this.visibleRows[this.visibleRows.length-1]),this.onRowsChanged())},t.prototype.getDefaultRowValue=function(e){for(var t=null,n=0;n<this.columns.length;n++){var r=this.columns[n].templateQuestion;r&&!this.isValueEmpty(r.getDefaultValue())&&(t=t||{},t[this.columns[n].name]=r.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var i in this.defaultRowValue)t=t||{},t[i]=this.defaultRowValue[i];if(e&&this.defaultValueFromLastRow){var o=this.value;if(o&&Array.isArray(o)&&o.length>=this.rowCount-1){var a=o[this.rowCount-2];for(var i in a)t=t||{},t[i]=a[i]}}return t},t.prototype.removeRowUI=function(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}this.isRequireConfirmOnRowDelete(e)&&!n.i(p.c)(this.confirmDeleteText)||this.removeRow(e)},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete)return!1;if(e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!(u.a.isValueEmpty(t)||!Array.isArray(t))&&(!(e>=t.length)&&!u.a.isValueEmpty(t[e]))},t.prototype.removeRow=function(e){if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var t=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(t)}},t.prototype.removeRowCore=function(e){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var n=[];n=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue(),n.splice(e,1),n=this.deleteRowValue(n,null),this.isRowChanging=!0,this.value=n,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,t)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",s.a.getString("confirmDelete"))},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError",s.a.getString("keyDuplicationError"))},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){var e=this.isColumnLayoutHorizontal?"addRow":"addColumn";return this.getLocalizableStringText("addRowText",s.a.getString(e))},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAddRowOnTop",{get:function(){return!!this.canAddRow&&("default"===this.addRowLocation?"vertical"===this.columnLayout:"bottom"!==this.addRowLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAddRowOnBottom",{get:function(){return!!this.canAddRow&&("default"===this.addRowLocation?"horizontal"===this.columnLayout:"top"!==this.addRowLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText",s.a.getString("removeRow"))},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){var n=this.createValueCopy();if(!n||!Array.isArray(n))return n;for(var r=this.visibleRows,i=0;i<r.length&&i<n.length;i++){var o=n[i];o&&(n[i]=this.getRowDisplayValue(r[i],o))}return n},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.columns.indexOf(t)>-1,r=0;r<this.columns.length;r++){var i=this.columns[r];this.addColumnIntoaddConditionObjectsByContext(e,0,i),n&&i!=t&&this.addColumnIntoaddConditionObjectsByContext(e,-1,i);for(var o=1;o<Math.min(c.a.matrixMaxRowCountInCondition,this.rowCount);o++)this.addColumnIntoaddConditionObjectsByContext(e,o,i)}},t.prototype.addColumnIntoaddConditionObjectsByContext=function(e,t,n){var r=t>-1?"["+t.toString()+"].":"row.";e.push({name:(t>-1?this.getValueName()+r:r)+n.name,text:(t>-1?this.processedTitle+r:r)+n.fullTitle,question:this})},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),!n&&this.hasErrorInMinRows()&&t.push(new l.i(this.minRowCount,this))},t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=e.prototype.hasErrors.call(this,t,n);return this.isValueDuplicated()||r},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++){this.generatedVisibleRows[t].isEmpty||e++}return e<this.minRowCount},t.prototype.isValueDuplicated=function(){if(!this.keyName||!this.generatedVisibleRows)return!1;var e=this.getColumnByName(this.keyName);if(!e)return!1;for(var t=[],n=!1,r=0;r<this.generatedVisibleRows.length;r++)n=this.isValueDuplicatedInRow(this.generatedVisibleRows[r],e,t)||n;return n},t.prototype.isValueDuplicatedInRow=function(e,t,n){var r=e.getQuestionByColumn(t);if(!r||r.isEmpty())return!1;for(var i=r.value,o=0;o<n.length;o++)if(i==n[o])return r.addError(new l.h(this.keyDuplicationError,this)),!0;return n.push(i),!1},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(),n=0;n<this.rowCount;n++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,n)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new d(this.rowCounter++,this,e)},t.prototype.onBeforeValueChanged=function(e){if(e&&Array.isArray(e)){var t=e.length;t!=this.rowCount&&(!this.setRowCountValueFromData&&t<this.initialRowCount||(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows&&(this.clearGeneratedRows(),this.generatedVisibleRows=this.visibleRows,this.onRowsChanged())))}},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var n=e.length;n<this.rowCount;n++)e.push(this.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){for(var n=!0,r=0;r<e.length;r++)if(this.isObject(e[r])&&Object.keys(e[r]).length>0){n=!1;break}return n?null:e},t.prototype.getRowValueByIndex=function(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,n){if(void 0===n&&(n=!1),!this.generatedVisibleRows)return{};var r=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!r&&n&&(r={}),r},t}(i.a);o.b.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:c.a.matrixMaximumRowCount},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"}],function(){return new h("")},"matrixdropdownbase"),a.b.Instance.registerQuestion("matrixdynamic",function(e){var t=new h(e);return t.choices=[1,2,3,4,5],i.a.addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),i=n(5),o=n(9),a=n(32),s=n(1),l=n(3),u=n(4);n.d(t,"a",function(){return c}),n.d(t,"b",function(){return p});var c=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.editorValue=r.createEditor(t),r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r}return n.i(r.b)(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!0,configurable:!0}),t.prototype.createEditor=function(e){return new a.a(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e)},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return u.a.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.editor.placeHolder},set:function(e){this.editor.placeHolder=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.editor.locPlaceHolder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!0,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return u.a.isValueEmpty(this.value)},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.geSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,t){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(i.b),p=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isMultipleItemValueChanging=!1;var r=n;return n.createNewArray("items",function(e){e.setData(r)}),n.registerFunctionOnPropertyValueChanged("items",function(){r.fireCallback(r.colCountChangedCallback)}),n.registerFunctionOnPropertyValueChanged("colCount",function(){r.fireCallback(r.colCountChangedCallback)}),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t);for(var n=0;n<this.items.length;n++)this.items[n].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),this.fireCallback(this.colCountChangedCallback)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n);for(var r=0;r<this.items.length;r++){var i=this.items[r];i.editor&&i.editor.updateValueFromSurvey(i.value)}this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.items.length;n++){var r=this.items[n];r.editor&&r.editor.onSurveyValueChanged(r.value)}},t.prototype.editorsOnSurveyLoad=function(){for(var e=0;e<this.items.length;e++){var t=this.items[e];t.editor&&t.editor.onSurveyLoad()}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!0,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var n=this.createTextItem(e,t);return this.items.push(n),n},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.items.length;n++){var r=this.items[n];e.push({name:this.getValueName()+"."+r.name,text:this.processedTitle+"."+r.fullTitle,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);var r=this.getItemByName(n);if(!r)return null;var i=(new s.c).toJsonObject(r);return i.type="text",i},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!0,configurable:!0}),t.prototype.getRows=function(){for(var e=this.colCount,t=this.items,n=[],r=0,i=0;i<t.length;i++)0==r&&n.push([]),n[n.length-1].push(t[i]),++r>=e&&(r=0);return n},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new c(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null);for(var i=!1,o=0;o<this.items.length;o++)this.items[o].editor.onCompletedAsyncValidators=function(e){r.raiseOnCompletedAsyncValidators()},n&&!0===n.isOnValueChanged&&this.items[o].editor.isEmpty()||(i=this.items[o].editor.hasErrors(t,n)||i);return e.prototype.hasErrors.call(this,t)||i},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(t=t.concat(r))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.items,r=0;r<n.length;r++)if(n[r].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var n=this.items[t].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return i.a.getProgressInfoByElements(e,this.isRequired)},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0;var n=this.value;n||(n={}),n[e]=t,this.setNewValue(n),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getSurvey=function(){return this.survey},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(e){return-1},t}(o.a);s.b.addClass("multipletextitem",["name","isRequired:boolean",{name:"placeHolder",serializationProperty:"locPlaceHolder"},{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new c("")}),s.b.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",default:25,minValue:0},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],function(){return new p("")},"question"),l.b.Instance.registerQuestion("multipletext",function(e){var t=new p(e);return t.addItem("text1"),t.addItem("text2"),t})},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(5),a=n(2),s=n(24),l=n(9),u=n(18),c=n(1),p=n(3),d=n(12),h=n(7),f=n(25);n.d(t,"b",function(){return m}),n.d(t,"a",function(){return v});var g=function(e){function t(t,n,r){var i=e.call(this,r)||this;return i.data=t,i.panelItem=n,i.variableName=r,i}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!0,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(t){var n=e.prototype.getQuestionByName.call(this,t);if(n)return n;var r=this.panelIndex;return r>-1?this.data.getSharedQuestionFromArray(t,r):null},t.prototype.onCustomProcessText=function(e){if(e.name==m.IndexVariableName){var n=this.panelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(0==e.name.indexOf(m.ParentItemVariableName+".")){var r=this.data;if(r&&r.parentQuestion&&r.parent){var i=r.parent.data,o=new t(r.parentQuestion,i,m.ItemVariableName),a=e.name.replace(m.ParentItemVariableName,m.ItemVariableName),s=o.processValue(a,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(s.b),m=function(){function e(t,n){this.data=t,this.panelValue=n,this.textPreProcessor=new g(t,this,e.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!0,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(e,t){this.data.setPanelItemData(this,e,t)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getValue(e+h.a.commentPrefix);return t||""},e.prototype.setComment=function(e,t,n){this.setValue(e+h.a.commentPrefix,t)},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},n=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var r in n)t[r]=n[r];return t[e.ItemVariableName]=this.getAllValues(),t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.geSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},e.ItemVariableName="panel",e.ParentItemVariableName="parentPanel",e.IndexVariableName="panelIndex",e}(),y=function(){function e(e){this.data=e}return e.prototype.geSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),v=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.loadingPanelCount=0,n.currentIndexValue=-1,n.isAddingNewPanels=!1,n.createNewArray("panels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n;var r=n;return n.template.addElementCallback=function(e){r.addOnPropertyChangedCallback(e),r.rebuildPanels()},n.template.removeElementCallback=function(e){r.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n),n.createLocalizableString("keyDuplicationError",n),n.createLocalizableString("panelAddText",n),n.createLocalizableString("panelRemoveText",n),n.createLocalizableString("panelPrevText",n),n.createLocalizableString("panelNextText",n),n.registerFunctionOnPropertyValueChanged("panelsState",function(){r.setPanelsState()}),n}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.onPropertyChanged.add(function(e,n){t.onTemplateElementPropertyChanged(e,n)}),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.isDesignMode&&0!=this.panels.length){if(c.b.findProperty(e.getType(),t.name))for(var n=this.panels,r=0;r<n.length;r++){var i=n[r].getQuestionByName(e.name);i&&i[t.name]!==t.newValue&&(i[t.name]=t.newValue)}}},t.prototype.getType=function(){return"paneldynamic"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.clearOnDeletingContainer=function(){this.panels.forEach(function(e){e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!0,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panels.length;t++)e.push(this.panels[t].data);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.getPropertyValue("panels")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.isDesignMode?0:(this.currentIndexValue<0&&this.panelCount>0&&(this.currentIndexValue=0),this.currentIndexValue>=this.panelCount&&(this.currentIndexValue=this.panelCount-1),this.currentIndexValue)},set:function(e){this.currentIndexValue!==e&&(e>=this.panelCount&&(e=this.panelCount-1),this.currentIndexValue=e,this.fireCallback(this.currentIndexChangedCallback))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){var e=this.currentIndex;return e<0||e>=this.panels.length?null:this.panels[e]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",a.a.getString("confirmDelete"))},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError",a.a.getString("keyDuplicationError"))},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText",a.a.getString("pagePrevText"))},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText",a.a.getString("pageNextText"))},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText",a.a.getString("addPanel"))},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText",a.a.getString("removePanel"))},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"==this.renderMode||"progressTopBottom"==this.renderMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"==this.renderMode||"progressTopBottom"==this.renderMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.currentIndex>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.panelCount-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.panelCount>1},enumerable:!0,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.isDesignMode?this.loadingPanelCount:this.panels.length},set:function(e){if(!(e<0)){if(this.isLoadingFromJson||this.isDesignMode)return void(this.loadingPanelCount=e);if(e!=this.panels.length&&!this.isDesignMode){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var n=this.createNewPanel();this.panels.push(n),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?n.expand():n.title&&n.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!0,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.isDesignMode?this.surveyImpl:new y(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panels.length;e++){var t=this.panels[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.isDesignMode&&"list"==this.renderMode&&this.templateTitle)for(var e=0;e<this.panels.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panels[e].state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++)e.push({});e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount",0)},set:function(e){e<0&&(e=0),e!=this.minPanelCount&&(this.setPropertyValue("minPanelCount",e),e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount",h.a.panelMaximumPanelCount)},set:function(e){e<=0||(e>h.a.panelMaximumPanelCount&&(e=h.a.panelMaximumPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress",!0)},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(e){this.setPropertyValue("renderMode",e),this.fireCallback(this.renderModeChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"==this.renderMode},enumerable:!0,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var n="onSurvey"==this.showQuestionNumbers?t:0,r=0;r<this.panels.length;r++){var i=this.setPanelVisibleIndex(this.panels[r],n,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(n+=i)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:n-t},t.prototype.setPanelVisibleIndex=function(e,t,n){return n?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return(!this.survey||!this.survey.isDesignMode)&&(this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return(!this.survey||!this.survey.isDesignMode)&&(this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount)},enumerable:!0,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.isDesignMode)new m(this,this.template),t.push(this.template);else for(var i=0;i<this.panelCount;i++)t.push(this.createNewPanel());(e=this.panels).splice.apply(e,n.i(r.d)([0,this.panels.length],t)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!0,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultPanelValue)||!this.isValueEmpty(this.defaultValue))return void e.prototype.setDefaultValue.call(this);if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}},t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.getProgressInfo=function(){return o.a.getProgressInfoByElements(this.panels,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),e},t.prototype.addPanel=function(){this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1);var e=this.value,t=!1;return this.isValueEmpty(this.defaultPanelValue)||e&&Array.isArray(e)&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],this.defaultPanelValue)),this.defaultValueFromLastPanel&&e&&Array.isArray(e)&&e.length>1&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],e[e.length-2])),t&&(this.value=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panels[this.panelCount-1]},t.prototype.copyValue=function(e,t){for(var n in t)e[n]=t[n]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!n.i(f.c)(this.confirmDeleteText)||this.removePanel(e))},t.prototype.goToNextPanel=function(){"list"!==this.renderMode&&this.currentPanel.hasErrors()||this.currentIndex++},t.prototype.goToPrevPanel=function(){this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getPanelIndex(e);if(!(t<0||t>=this.panelCount)){var n=this.panels[t];this.panels.splice(t,1),this.updateBindings("panelCount",this.panelCount);var e=this.value;!e||!Array.isArray(e)||t>=e.length||(this.isValueChangingInternally=!0,e.splice(t,1),this.value=e,this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,t,n),this.isValueChangingInternally=!1)}},t.prototype.getPanelIndex=function(e){if(i.a.isNumber(e))return e;for(var t=this.items,n=0;n<this.panels.length;n++)if(this.panels[n]===e||t[n]===e)return n;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,n=0;n<t.length;n++)t[n].locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panels.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t>=this.panelCount?null:this.panels[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panels[e];t.clearIncorrectValues();var n=this.value,r=n&&e<n.length?n[e]:null;if(r){var i=!1;for(var o in r)if(!this.getSharedQuestionFromArray(o,e)){var a=t.getQuestionByName(o);a||this.iscorrectValueWithPostPrefix(t,o,h.a.commentPrefix)||this.iscorrectValueWithPostPrefix(t,o,h.a.matrixTotalValuePostFix)||(delete r[o],i=!0)}i&&(n[e]=r,this.value=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,n){return t.indexOf(n)===t.length-n.length&&!!e.getQuestionByName(t.substr(0,t.indexOf(n)))},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.template.questions.indexOf(t)>-1,r=this.getValueName()+"[0].",i=this.processedTitle+"[0].",o=new Array,a=this.template.questions,s=0;s<a.length;s++)a[s].addConditionObjectsByContext(o,t);for(var s=0;s<o.length;s++)e.push({name:r+o[s].name,text:i+o[s].text,question:o[s].question});if(n)for(var s=0;s<o.length;s++)o[s].question!=t&&e.push({name:"panel."+o[s].name,text:"panel."+o[s].text,question:o[s].question})},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t,n);var r=n,i=n.indexOf(".");i>-1&&(r=n.substr(0,i),n=n.substr(i+1));var o=this.template.getQuestionByName(r);return o?o.getConditionJson(t,n):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var n=0;n<this.panels.length;n++)this.panels[n].readOnly=t;e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.loadingPanelCount>0&&(this.panelCount=this.loadingPanelCount),this.isDesignMode&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),e.prototype.onSurveyLoad.call(this)},t.prototype.onFirstRendering=function(){this.template.onFirstRendering();for(var t=0;t<this.panels.length;t++)this.panels[t].onFirstRendering();e.prototype.onFirstRendering.call(this)},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runPanelsCondition(t,n)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var n={};e&&e instanceof Object&&(n=JSON.parse(JSON.stringify(e)));for(var r=0;r<this.panels.length;r++){var o=this.getPanelItemData(this.panels[r].data),a=i.a.createCopy(n);a[m.ItemVariableName.toLowerCase()]=o,a[m.IndexVariableName.toLowerCase()]=r,this.panels[r].runCondition(a,t)}},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panels[n].onAnyValueChanged(t),this.panels[n].onAnyValueChanged(m.ItemVariableName)},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var n,r=[],i=0;i<this.panels.length;i++)n=this.isValueDuplicated(this.panels[i],r,t,e)||n;return n},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion,t=e.parent;t;)t.updateContainsErrors(),t=t.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),this.isValueChangingInternally)return!1;var r=!1;if(this.changingValueQuestion){var r=this.changingValueQuestion.hasErrors(t,n);return r=this.hasKeysDuplicated(t,n)||r,this.updatePanelsContainsErrors(),r}var i=this.hasErrorInPanels(t,n);return e.prototype.hasErrors.call(this,t)||i},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.panels,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.panels,n=0;n<t.length;n++){var r=[];t[n].addQuestionsToList(r,!0);for(var i=0;i<r.length;i++)if(!r[i].isAnswered)return!1}return!0},t.prototype.clearValueIfInvisible=function(){for(var t=0;t<this.panels.length;t++)for(var n=this.panels[t].questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible();e.prototype.clearValueIfInvisible.call(this)},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panels.length;t++)for(var n=this.panels[t].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.panels.length;n++)for(var r=this.panels[n].questions,i=0;i<r.length;i++){var o=r[i].getAllErrors();o&&o.length>0&&(t=t.concat(o))}return t},t.prototype.getDisplayValueCore=function(e,t){var n=this.createValueCopy();if(!n||!Array.isArray(n))return n;for(var r=0;r<this.panels.length&&r<n.length;r++){var i=n[r];i&&(n[r]=this.getPanelDisplayValue(r,i,e))}return n},t.prototype.getPanelDisplayValue=function(e,t,n){if(!t)return t;var r=this.panels[e];for(var i in t){var o=r.getQuestionByValueName(i);o||(o=this.getSharedQuestionFromArray(i,e)),o&&(t[i]=o.getDisplayValue(n))}return t},t.prototype.hasErrorInPanels=function(e,t){for(var n=!1,r=this.panels,i=[],o=0;o<r.length;o++)this.setOnCompleteAsyncInPanel(r[o]);for(var o=0;o<r.length;o++){var a=r[o].hasErrors(e,!!t&&t.focuseOnFirstError,t);a=this.isValueDuplicated(r[o],i,t)||a,this.isRenderModeList||!a||n||(this.currentIndex=o),n=a||n}return n},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,n=e.questions,r=0;r<n.length;r++)n[r].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,n,r){if(!this.keyName)return!1;var i=e.getQuestionByValueName(this.keyName);if(!i||i.isEmpty())return!1;var o=i.value;this.changingValueQuestion&&i!=this.changingValueQuestion&&i.hasErrors(r,n);for(var a=0;a<t.length;a++)if(o==t[a])return i.addError(new d.h(this.keyDuplicationError,this)),n&&!n.firstErrorQuestion&&(n.firstErrorQuestion=i),!0;return t.push(o),!1},t.prototype.createNewPanel=function(){var e=this.createAndSetupNewPanelObject(),t=this.template.toJSON();(new c.c).toObject(t,e),e.renderWidth="100%",e.updateCustomWidgets(),new m(this,e),e.onFirstRendering();for(var n=e.questions,r=0;r<n.length;r++)n[r].setParentQuestion(this);return e},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject(),t=this;return e.onGetQuestionTitleLocation=function(){return t.getTemplateQuestionTitleLocation()},e},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.createNewPanelObject=function(){return new u.b},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.isDesignMode){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.loadingPanelCount>0&&(t=this.loadingPanelCount),this.panelCount=t}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panels.length;n++)this.panelUpdateValueFromSurvey(this.panels[n]);this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panelSurveyValueChanged(this.panels[n]);void 0===t&&this.setValueBasedOnPanelCount()},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var i=t[r];i.updateValueFromSurvey(n[i.getValueName()]),i.updateCommentFromSurvey(n[i.getValueName()+h.a.commentPrefix])}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var i=t[r];i.onSurveyValueChanged(n[i.getValueName()])}},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.isDesignMode&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.getItemIndex=function(e){return this.items.indexOf(e)},t.prototype.getPanelItemData=function(e){var t=this.items,n=t.indexOf(e),r=this.value;return n<0&&Array.isArray(r)&&r.length>t.length&&(n=t.length),n<0?{}:!r||!Array.isArray(r)||r.length<=n?{}:r[n]},t.prototype.setPanelItemData=function(e,t,n){var r=this.items,i=r.indexOf(e);i<0&&(i=r.length);var o=this.getUnbindValue(this.value);if(o&&Array.isArray(o)||(o=[]),o.length<=i)for(var a=o.length;a<=i;a++)o.push({});if(o[i]||(o[i]={}),this.isValueEmpty(n)?delete o[i][t]:o[i][t]=n,i>=0&&i<this.panels.length&&(this.changingValueQuestion=this.panels[i].getQuestionByValueName(t)),this.value=o,this.changingValueQuestion=null,this.survey){var s={question:this,panel:e.panel,name:t,itemIndex:i,itemValue:o[i],value:n};this.survey.dynamicPanelItemValueChanged(this,s)}},t.prototype.getSurvey=function(){return this.survey},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);return n&&(n.isNode=!0,n.data=this.panels.map(function(e,n){var r={name:e.name||n,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map(function(e){return e.getPlainData(t)}).filter(function(e){return!!e})};return(t.calculations||[]).forEach(function(t){r[t.propertyName]=e[t.propertyName]}),r})),n},t.prototype.updateElementCss=function(){e.prototype.updateElementCss.call(this);for(var t=0;t<this.panels.length;t++){this.panels[t].updateElementCss()}},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.panelCount;return a.a.getString("panelDynamicProgressText").format(this.currentIndex+1,e)},enumerable:!0,configurable:!0}),t}(l.a);c.b.addClass("paneldynamic",[{name:"templateElements",alternativeName:"questions",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",default:h.a.panelMaximumPanelCount},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"]},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"panelAddText",serializationProperty:"locPanelAddText"},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText"},{name:"panelPrevText",serializationProperty:"locPanelPrevText"},{name:"panelNextText",serializationProperty:"locPanelNextText"},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom"]},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]}],function(){return new v("")},"question"),p.b.Instance.registerQuestion("paneldynamic",function(e){return new v(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(22),s=n(2),l=n(11);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.isEmpty()?null:l.a.getItemByValue(this.visibleChoices,this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton",!1)},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return s.a.getString("clearCaption")},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.getItemClass=function(e){var t=this.cssClasses.item,n=this.isReadOnly||!e.isEnabled,r=e.value===this.value||this.isOtherSelected&&this.otherItem.value===e.value,i=!n&&!r;return this.hasColumns||(t+=0===this.colCount?" "+this.cssClasses.itemInline:" sv-q-col-"+this.colCount),n&&this.cssClasses.itemDisabled&&(t+=" "+this.cssClasses.itemDisabled),r&&this.cssClasses.itemChecked&&(t+=" "+this.cssClasses.itemChecked),i&&this.cssClasses.itemHover&&(t+=" "+this.cssClasses.itemHover),t},t}(a.a);i.b.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1}],function(){return new u("")},"checkboxbase"),o.b.Instance.registerQuestion("radiogroup",function(e){var t=new u(e);return t.choices=o.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(11),o=n(9),a=n(1),s=n(3),l=n(7);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.createItemValues("rates");var r=n;n.registerFunctionOnPropertyValueChanged("rates",function(){r.fireCallback(r.rateValuesChangedCallback)}),n.onPropertyChanged.add(function(e,t){"rateMin"!=t.name&&"rateMax"!=t.name&&"rateStep"!=t.name||r.fireCallback(r.rateValuesChangedCallback)});var i=n.createLocalizableString("minRateDescription",n,!0),o=n.createLocalizableString("maxRateDescription",n,!0);return i.onGetTextCallback=function(e){return e?e+" ":e},o.onGetTextCallback=function(e){return e?" "+e:e},n}return n.i(r.b)(t,e),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.fireCallback(this.rateValuesChangedCallback)},Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rates")},set:function(e){this.setPropertyValue("rates",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){!this.isLoadingFromJson&&e>this.rateMax-this.rateStep&&(e=this.rateMax-this.rateStep),this.setPropertyValue("rateMin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){!this.isLoadingFromJson&&e<this.rateMin+this.rateStep&&(e=this.rateMin+this.rateStep),this.setPropertyValue("rateMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){e<=0&&(e=1),!this.isLoadingFromJson&&e>this.rateMax-this.rateMin&&(e=this.rateMax-this.rateMin),this.setPropertyValue("rateStep",e)},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){var n=i.a.getTextOrHtmlByValue(this.visibleRateValues,t);return n||t},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){if(this.rateValues.length>0)return this.rateValues;for(var e=[],t=this.rateMin,n=this.rateStep;t<=this.rateMax&&e.length<l.a.ratingMaximumRateValueCount;)e.push(new i.a(t)),t=this.correctValue(t+n,n);return e},enumerable:!0,configurable:!0}),t.prototype.correctValue=function(e,t){if(!e)return e;if(Math.round(e)==e)return e;for(var n=0;Math.round(t)!=t;)t*=10,n++;return parseFloat(e.toFixed(n))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return!0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!0,configurable:!0}),t.prototype.valueToData=function(e){if(this.rateValues.length>0){var t=i.a.getItemByValue(this.rateValues,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)},t}(o.a);a.b.addClass("rating",[{name:"hasComment:switch",layout:"row"},{name:"commentText",dependsOn:"hasComment",visibleIf:function(e){return e.hasComment},serializationProperty:"locCommentText",layout:"row"},{name:"rateValues:itemvalue[]"},{name:"rateMin:number",default:1},{name:"rateMax:number",default:5},{name:"rateStep:number",default:1,minValue:.1},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription"},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription"}],function(){return new u("")},"question"),s.b.Instance.registerQuestion("rating",function(e){return new u(e)})},function(e,t,n){"use strict";function r(e){var t=e.getContext("2d"),n=window.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1,i=n/r,o=e.width,a=e.height;e.width=o*i,e.height=a*i,e.style.width=o+"px",e.style.height=a+"px",t.scale(i,i)}var i=n(0),o=n(1),a=n(9),s=n(2),l=n(113),u=n(3);n.d(t,"a",function(){return d});var c=300,p=200,d=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(i.b)(t,e),t.prototype.getCssRoot=function(t){var n=e.prototype.getCssRoot.call(this,t);return""+this.width=="300"&&(n+=" "+t.small),n},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.dataFormat);this.value=e}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&this.initSignaturePad(t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.initSignaturePad=function(e){var t=this,n=e.getElementsByTagName("canvas")[0],i=e.getElementsByTagName("button")[0],o=new l.a(n,{backgroundColor:"#ffffff"});this.isReadOnly&&o.off(),i.onclick=function(){t.value=void 0},this.readOnlyChangedCallback=function(){!t.allowClear||t.isReadOnly?(o.off(),i.style.display="none"):(o.on(),i.style.display="block")},o.penColor=this.penColor,o.onBegin=function(){n.focus()},o.onEnd=function(){t.updateValue()};var a=function(){var e=t.value;n.width=t.width||c,n.height=t.height||p,r(n),e?o.fromDataURL(e):o.clear()};this.valueChangedCallback=a,a(),this.readOnlyChangedCallback(),this.signaturePad=o;var s=function(e,t){"width"!==t.name&&"height"!==t.name||a()};this.onPropertyChanged.add(s),this.signaturePad.propertyChangedHandler=s},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"dataFormat",{get:function(){return this.getPropertyValue("dataFormat","")},set:function(e){this.setPropertyValue("dataFormat",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width",300)},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height",200)},set:function(e){this.setPropertyValue("height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear",!0)},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor","#1ab394")},set:function(e){this.setPropertyValue("penColor",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return s.a.getString("clearCaption")},enumerable:!0,configurable:!0}),t}(a.a);o.b.addClass("signaturepad",[{name:"width:number",category:"general",default:300},{name:"height:number",category:"general",default:200},{name:"allowClear:boolean",category:"general",default:!0},{name:"penColor:color",category:"general",default:"#1ab394"},{name:"dataFormat",category:"general",default:"",choices:[{value:"",text:"PNG"},{value:"image/jpeg",text:"JPEG"},{value:"image/svg+xml",text:"SVG"}]},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1}],function(){return new d("")},"question"),u.b.Instance.registerQuestion("signaturepad",function(e){return new d(e)})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(e){this.survey=e}return e.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length)){var t=this.survey.visiblePages[e].passed?this.survey.css.progressButtonsListElementPassed:"";return this.survey.currentPageNo===e&&(t+=t?" ":"",t+=this.survey.css.progressButtonsListElementCurrent),t}},e.prototype.clickListElement=function(e){if(!this.survey.isDesignMode)if(e<this.survey.currentPageNo)this.survey.currentPageNo=e;else if(e>this.survey.currentPageNo){for(var t=this.survey.currentPageNo;t<e&&!this.survey.visiblePages[t].hasErrors(!0,!0);t++)this.survey.visiblePages[t].passed=!0;this.survey.currentPageNo=t}},e}()},function(e,t,n){"use strict";var r=n(0),i=n(5),o=n(20);n.d(t,"a",function(){return a});var a=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;r.closeOnCompleteTimeout=0,r.surveyValue=n||r.createSurvey(t),r.surveyValue.showTitle=!1,"undefined"!=typeof document&&(r.windowElement=document.createElement("div"));var i=r;return r.survey.onComplete.add(function(e,t){i.onSurveyComplete()}),r}return n.i(r.b)(t,e),t.prototype.getType=function(){return"window"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.isShowing!=e&&(this.setPropertyValue("isShowing",e),this.showingChangedCallback&&this.showingChangedCallback())},enumerable:!0,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.setPropertyValue("isExpanded",e),!this.isLoadingFromJson&&this.expandedChangedCallback&&this.expandedChangedCallback()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle},enumerable:!0,configurable:!0}),t.prototype.expand=function(){this.expandcollapse(!0)},t.prototype.collapse=function(){this.expandcollapse(!1)},t.prototype.createSurvey=function(e){return new o.a(e)},t.prototype.expandcollapse=function(e){this.isExpanded=e},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.closeWindowOnComplete();else{var e=this,t=null,n=function(){e.closeWindowOnComplete(),"undefined"!=typeof window&&window.clearInterval(t)};t="undefined"!=typeof window?window.setInterval(n,1e3*this.closeOnCompleteTimeout):0}},t.prototype.closeWindowOnComplete=function(){this.closeWindowOnCompleteCallback&&this.closeWindowOnCompleteCallback()},t.surveyElementName="windowSurveyJS",t}(i.b)},function(e,t,n){"use strict";var r=n(5);n.d(t,"a",function(){return o});var i={setTimeout:function(e){return"undefined"==typeof window?0:window.setTimeout(e,1e3)},clearTimeout:function(e){"undefined"!=typeof window&&window.clearTimeout(e)}},o=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new r.c}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!0,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0&&(this.timerId=i.setTimeout(function(){t.doTimer()})),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),0==--this.listenerCounter&&this.timerId>-1&&(i.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;this.timerId<0||(this.onTimer.fire(this,{}),this.timerId=i.setTimeout(function(){e.doTimer()}))},e.instanceValue=null,e}()},function(e,t,n){"use strict";var r=(n(41),n(40),n(0),n(13),n(37),n(38),n(39),n(19));n.d(t,"a",function(){return r.b});var i=(n(15),n(21),n(121),n(8),n(17),n(123),n(124),n(126),n(129),n(130),n(133),n(46),n(134),n(136),n(135),n(137),n(138),n(47),n(122),n(127),n(128),n(132),n(120));n.d(t,"b",function(){return i.a});var o=(n(48),n(131),n(139),n(125),n(118),n(117),n(119),n(34),n(6)),a=(n.n(o),n(20));n.i(r.a)(o,a.a.platform)},function(t,n){t.exports=e},function(e,t){},function(e,t){},function(e,t){e.exports='<div data-bind="css: question.koCss().root">\n  <label data-bind="css: question.getItemCss()">\n    <input\n      type="checkbox"\n      data-bind="css: question.koCss().control, attr: {name: question.name, id: question.inputId, \'aria-required\': question.isRequired, \'aria-label\': question.locTitle.renderedHtml, \'aria-invalid\': question.errors.length > 0, \'aria-describedby\': question.errors.length > 0 ? question.id + \'_errors\' : null}, checked: question.checkedValue, surveyProp: {indeterminate: question.isIndeterminate}, enable: !question.isReadOnly"\n    />\n    <span data-bind="css: question.koCss().materialDecorator">\n      <svg viewBox="0 0 24 24" data-bind="css:question.koCss().itemDecorator">\n        <rect\n          data-bind="css:question.koCss().uncheckedPath"\n          x="5"\n          y="10"\n          width="14"\n          height="4"\n        />\n        <polygon\n          data-bind="css:question.koCss().checkedPath"\n          points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "\n        />\n        <path\n          data-bind="css:question.koCss().indeterminatePath"\n          d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"\n        />\n      </svg>\n      <span class="check"></span>\n    </span>\n    <span\n      data-bind="if: question.titleLocation === \'hidden\', css: question.koCss().label"\n    >\n      \x3c!-- ko template: { name: \'survey-string\', data: question.locDisplayLabel } --\x3e\n      \x3c!-- /ko --\x3e\n    </span>\n  </label>\n</div>\n'},function(e,t){e.exports='<script type="text/html" id="survey-comment">\n  \x3c!--ko if: !question.isReadOnlyRenderDiv() --\x3e\n      \x3c!--ko if: !question.isInputTextUpdate --\x3e\n      <textarea type="text" data-bind="disable: question.isReadOnly, value: $data.question.comment, visible: $data.visible, css: question.koCss().other, attr: {maxLength: question.getOthersMaxLength(), \'aria-label\': !!question.locTitle && question.locTitle.renderedHtml, placeholder: question.otherPlaceHolder}"></textarea>\n      \x3c!--/ko--\x3e\n      \x3c!--ko if: question.isInputTextUpdate --\x3e\n      <textarea type="text" data-bind="disable: question.isReadOnly, textInput: $data.question.comment, visible: $data.visible, css: question.koCss().other, attr: {maxLength: question.getOthersMaxLength(), \'aria-label\': !!question.locTitle && question.locTitle.renderedHtml, placeholder: question.otherPlaceHolder}"></textarea>\n      \x3c!--/ko--\x3e\n   \x3c!--/ko--\x3e\n\n    \x3c!--ko if: question.isReadOnlyRenderDiv() --\x3e\n        <div data-bind="text: question.comment"></div>\n    \x3c!--/ko--\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-flowpanel">\n  <div data-bind="style:{ flexBasis: renderWidth, flexGrow: 1, flexShrink: 1, width: renderWidth, minWidth: $data.minWidth, maxWidth: $data.maxWidth }, attr: {id: id}, css: cssClasses.panel.container">\n      <h4 data-bind="visible: (processedTitle.length > 0), css: cssClasses.panel.title">\n          \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\n          \x3c!-- /ko --\x3e\n      </h4>\n      <div data-bind="css: cssClasses.panel.description">\n          \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\n          \x3c!-- /ko --\x3e\n      </div>\n      <div data-bind="style: { paddingLeft: innerPaddingLeft}"></div>\n      <f-panel params="question: question" data-bind="attr: {contenteditable : question.isDesignMode, placeHolder: question.placeHolder}"></f-panel>\n  </div>\n<\/script>\n<script type="text/html" id="survey-flowpanel-question">\n  \x3c!-- ko with: $parent.question.getQuestionByName($data) --\x3e\n    \x3c!-- ko template: { name: koElementType(), data: $data, as: \'question\', afterRender: parent.koElementAfterRender } --\x3e\x3c!-- /ko --\x3e\n  \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-header">\n  \x3c!-- ko if: (locTitle.koRenderedHtml().length > 0) && showTitle || hasLogo --\x3e\n  <div data-bind="css: css.header">\n\n      \x3c!-- ko if: isLogoBefore --\x3e\n      <div data-bind="css: logoClassNames">\n          <img data-bind="css: css.logoImage, attr: { src: locLogo.koRenderedHtml, width: logoWidth ? logoWidth + \'px\' : undefined, height: logoHeight ? logoHeight + \'px\' : undefined }, style: { objectFit: logoFit }">\n      </div>\n      \x3c!-- /ko --\x3e\n\n      \x3c!-- ko if: (locTitle.koRenderedHtml().length > 0) && showTitle || isDesignMode --\x3e\n      <div data-bind="css: css.headerText, style: { maxWidth: titleMaxWidth }">\n          <h3 data-bind="css: css.title">\x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\x3c!-- /ko --\x3e</h3>\n          <h5 data-bind="css: css.description">\x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\x3c!-- /ko --\x3e</h5>\n      </div>\n      \x3c!-- /ko --\x3e\n\n      \x3c!-- ko if: isLogoAfter --\x3e\n      <div data-bind="css: logoClassNames">\n        <img data-bind="css: css.logoImage, attr: { src: locLogo.koRenderedHtml, width: logoWidth ? logoWidth + \'px\' : undefined, height: logoHeight ? logoHeight + \'px\' : undefined }, style: { objectFit: logoFit }">\n      </div>\n      <div class="sv-logo--right-tail"></div>\n      \x3c!-- /ko --\x3e\n\n  </div>\n  \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-content">\n  <div data-bind="css: css.root, afterRender: koEventAfterRender">\n      <form onsubmit="return false;">\n          <div class="sv_custom_header" data-bind="visible: !hasLogo"></div>\n          <div data-bind="css: css.container">\n              \x3c!-- ko template: { name: koTitleTemplate, afterRender: koAfterRenderHeader } --\x3e\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: koState() == "starting" --\x3e\n              <div data-bind="css: css.body">\n                  \x3c!-- ko if: isNavigationButtonsShowing === \'top\' || isNavigationButtonsShowing === \'both\' --\x3e\n                  \x3c!-- ko template: { name: \'survey-navigation-start\' } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  <div data-bind="attr: { id: startedPage.id }, template: { name: \'survey-page\', data: startedPage, afterRender: koAfterRenderPage }"></div>\n                  \x3c!-- ko if: isNavigationButtonsShowing === \'bottom\' || isNavigationButtonsShowing === \'both\' --\x3e\n                  \x3c!-- ko template: { name: \'survey-navigation-start\' } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n              </div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: koState() == "running" || koState() == "preview" --\x3e\n              <div data-bind="css: css.body">\n                  \x3c!-- ko if: isTimerPanelShowingOnTop --\x3e\n                  \x3c!-- ko template: { name: \'survey-timerpanel\' } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: isShowProgressBarOnTop --\x3e\n                  \x3c!-- ko component: { name: \'sv-progress-\' + progressBarType, params: { model: $data } } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: isNavigationButtonsShowing === \'top\' || isNavigationButtonsShowing === \'both\' --\x3e\n                  \x3c!-- ko template: { name: \'survey-navigation\' } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: koCurrentPage --\x3e\n                    <div data-bind="attr: { id: koCurrentPage().id }, template: { name: \'survey-page\', data: koCurrentPage, afterRender: koAfterRenderPage }"></div>\n                    \x3c!-- ko if: isCurrentPageEmpty() && $data.emptyPageTemplate --\x3e\n                    \x3c!-- ko template: { name: emptyPageTemplate, data: $data.emptyPageTemplateData || $data } --\x3e\n                    \x3c!-- /ko --\x3e\n                    \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: isShowProgressBarOnBottom --\x3e\n                  \x3c!-- ko component: { name: \'sv-progress-\' + progressBarType, params: { model: $data } } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: isTimerPanelShowingOnBottom --\x3e\n                  \x3c!-- ko template: { name: \'survey-timerpanel\' } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: isNavigationButtonsShowing === \'bottom\' || isNavigationButtonsShowing === \'both\' --\x3e\n                  \x3c!-- ko template: { name: \'survey-navigation\' } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n              </div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: koState() == "completed" && showCompletedPage --\x3e\n              <div data-bind="html: processedCompletedHtml, css: completedCss"></div>\n              <div data-bind="visible: koCompletedState() != \'\', css: css.saveData.root">\n                  <div data-bind="css: koCompletedStateCss">\n                      <span data-bind="text:koCompletedStateText"></span>\n                      <input type="button" data-bind="visible: koCompletedState() == \'error\', value: getLocString(\'saveAgainButton\'), click: doComplete, css: css.saveData.saveAgainButton"/>\n                  </div>\n              </div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: koState() == "completedbefore" --\x3e\n              <div data-bind="html: processedCompletedBeforeHtml, css: css.body"></div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: koState() == "loading" --\x3e\n              <div data-bind="html: processedLoadingHtml, css: css.body"></div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: koState() == "empty" --\x3e\n              <div data-bind="text:emptySurveyText, css: css.bodyEmpty"></div>\n              \x3c!-- /ko --\x3e\n          </div>\n      </form>\n  </div>\n<\/script>\n<script type="text/html" id="survey-navigation">\n  <div data-bind="css: css.footer">\n      <input type="button" data-bind="event: { mousedown: navigationMouseDown }, value: pagePrevText, click: prevPage, visible: !koIsFirstPage() && isShowPrevButton, css: cssNavigationPrev" />\n      <input type="button" data-bind="event: { mousedown: nextPageMouseDown }, value: pageNextText, click: nextPageUIClick, visible: !koIsLastPage(), css: cssNavigationNext" />\n      <input type="button" data-bind="event: { mousedown: navigationMouseDown }, value: previewText, click: showPreview, visible: koIsLastPage() && isPreviewButtonVisible, css: cssNavigationPreview" />\n      <input type="button" data-bind="event: { mousedown: navigationMouseDown }, value: completeText, click: completeLastPage, visible: koIsLastPage() && isCompleteButtonVisible, css: cssNavigationComplete" />\n  </div>\n<\/script>\n<script type="text/html" id="survey-navigation-start">\n  <div data-bind="css: css.footer">\n      <input type="button" data-bind="value: startSurveyText, click: start, css: cssNavigationStart"/>\n  </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-page">\n  <div data-bind="css: cssClasses.page.root">\n      \x3c!-- ko if: _showTitle --\x3e\n      <h4 data-bind="css: cssClasses.page.title">\n          \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\n          \x3c!-- /ko --\x3e\n      </h4>\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko if: _showDescription--\x3e\n      <div data-bind="visible: data.showPageTitles, css: cssClasses.page.description">\n          \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\n          \x3c!-- /ko --\x3e\n      </div>\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko template: { name: \'survey-rows\', data: $data} --\x3e\n      \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-panel">\n  <div\n    data-bind="style: { flexBasis: renderWidth, flexGrow: 1, flexShrink: 1, width: renderWidth, minWidth: $data.minWidth, maxWidth: $data.maxWidth }, attr: { id: id }, css: cssClasses.panel.container"\n  >\n    <h4\n      data-bind="visible: !!locTitle.koRenderedHtml(), css: $data.getTitleStyle(), click: toggleState"\n    >\n      \x3c!-- ko template: { name: \'survey-question-title-content\', data: $data } --\x3e\x3c!-- /ko --\x3e\n      <span\n        data-bind="visible: koIsCollapsed() || koIsExpanded(), css: cssClasses.panel.icon + (!koIsCollapsed() ? \' \' + cssClasses.panel.iconExpanded: \'\'), event: { keyup: toggleStateByKeyUp }, attr:{\'aria-expanded\': koIsCollapsed() ? \'false\': \'true\', \'aria-controls\': !koIsCollapsed() ? contentId: false}"\n        tabindex="0"\n      ></span>\n    </h4>\n    <div data-bind="css: cssClasses.panel.description">\n      \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\n      \x3c!-- /ko --\x3e\n    </div>\n    \x3c!-- ko template: { name: \'survey-question-errors\', data: $data } --\x3e\n    \x3c!-- /ko --\x3e\n    <div\n      data-bind="visible: !koIsCollapsed(), style: { paddingLeft: innerPaddingLeft }, css: cssClasses.panel.content, attr: {id:contentId}"\n    >\n      \x3c!-- ko template: { name: \'survey-rows\', data: $data} --\x3e\n      \x3c!-- /ko --\x3e\n      <div data-bind="visible: hasEditButton, css: cssClasses.panel.footer">\n        <input\n          type="button"\n          data-bind="value: survey.editText, click: cancelPreview, css: survey.cssNavigationEdit"\n        />\n      </div>\n    </div>\n  </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-boolean">\n  <div data-bind="css: question.koCss().root">\n    <label data-bind="css: question.getItemCss()">\n      <input\n        type="checkbox"\n        data-bind="css: question.koCss().control, attr: {name: question.name, id: question.inputId, \'aria-required\': question.isRequired, \'aria-label\': question.locTitle.renderedHtml, \'aria-invalid\': question.errors.length > 0, \'aria-describedby\': question.errors.length > 0 ? question.id + \'_errors\' : null}, checked: question.checkedValue, surveyProp: {indeterminate: question.isIndeterminate}, enable: !question.isReadOnly"\n      />\n      <span\n        data-bind="css: question.getUncheckedLabelCss(), click: onFalseLabelClick"\n        >\x3c!-- ko template: { name: \'survey-string\', data: locLabelFalse } --\x3e\x3c!-- /ko --\x3e</span\n      >\n      <div data-bind="css: question.koCss().switch, click: onSwitchClick">\n        <span data-bind="css: question.koCss().slider"></span>\n      </div>\n      <span\n        data-bind="css: question.getCheckedLabelCss(), click: onTrueLabelClick"\n        >\x3c!-- ko template: { name: \'survey-string\', data: locLabelTrue } --\x3e\x3c!-- /ko --\x3e</span\n      >\n    </label>\n  </div>\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-checkbox\">\n  <fieldset data-bind=\"css: question.koCss().root\">\n      <legend data-bind=\"attr: { 'aria-label': question.locTitle.renderedHtml }\"></legend>\n      \x3c!-- ko ifnot: question.hasColumns  --\x3e\n        \x3c!-- ko foreach: { data: question.visibleChoices, as: 'item', afterRender: question.koAfterRender }  --\x3e\n            \x3c!-- ko template: 'survey-checkbox-item' --\x3e\n            \x3c!-- /ko --\x3e\n        \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko if: question.hasColumns  --\x3e\n        \x3c!-- ko foreach: question.columns --\x3e\n            <div data-bind=\"css: question.getColumnClass()\">\n            \x3c!-- ko foreach: { data: $data, as: 'item', afterRender: question.koAfterRender }  --\x3e\n                \x3c!-- ko template: 'survey-checkbox-item' --\x3e\n                \x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n            </div>\n        \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n    </fieldset>\n<\/script>\n<script type=\"text/html\" id=\"survey-checkbox-item\">\n  <div data-bind=\"css: question.getItemClass(item)\">\n      <label data-bind=\"css: question.getLabelClass(item)\">\n          \x3c!-- ko if: item == question.selectAllItem --\x3e\n          <input type=\"checkbox\" data-bind=\"attr: {name: question.name, id: question.inputId + '_' + question.getItemIndex(item), 'aria-required': question.isRequired, 'aria-label': item.locText.renderedHtml, 'aria-invalid': question.errors.length > 0, 'aria-describedby': question.errors.length > 0 ? question.id + '_errors' : null }, checked: question.koAllSelected, enable: !question.isReadOnly && item.isEnabled, css: question.koCss().itemControl\"/>\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko if: item != question.selectAllItem --\x3e\n          <input type=\"checkbox\" data-bind=\"attr: {name: question.name, id: question.inputId + '_' + question.getItemIndex(item), 'aria-required': question.isRequired, 'aria-label': item.locText.renderedHtml, 'aria-invalid': question.errors.length > 0, 'aria-describedby': question.errors.length > 0 ? question.id + '_errors' : null }, checkedValue: item.value, checked: question.koValue, enable: !question.isReadOnly && item.isEnabled, css: question.koCss().itemControl\"/>\n          \x3c!-- /ko --\x3e\n          <span data-bind=\"css: question.koCss().materialDecorator\">\n            <svg viewBox=\"0 0 24 24\" data-bind=\"css: question.koCss().itemDecorator\">\n              <path d=\"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z\"/>\n            </svg>\n            <span class=\"check\"></span>\n          </span>\n          <span data-bind=\"visible: !item.hideCaption, css: question.koCss().controlLabel, attr: { title: item.locText.koRenderedHtml }\">\n              \x3c!-- ko template: { name: 'survey-string', data: item.locText } --\x3e\n              \x3c!-- /ko --\x3e\n          </span>\n      </label>\n      \x3c!-- ko if: question.hasOther && (item.value == question.otherItem.value) --\x3e\n      <div class=\"form-group\" data-bind=\"template: { name: 'survey-comment', data: {'question': question, 'visible': question.isOtherSelected } }\"></div>\n      \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n"},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-comment\">\n  \x3c!--ko if: !question.isReadOnlyRenderDiv() --\x3e\n\x3c!--ko if: !question.isInputTextUpdate --\x3e\n<textarea type=\"text\"\n  data-bind=\"attr: {'readonly': question.isReadOnly, 'disabled': question.isReadOnly, maxLength: question.getMaxLength(), cols: question.cols, rows: question.rows, id: question.inputId, placeholder: question.isReadOnly ? undefined : question.placeHolder, 'aria-required': question.isRequired, 'aria-label': question.locTitle.renderedHtml, 'aria-invalid': question.errors.length > 0, 'aria-describedby': question.errors.length > 0 ? question.id + '_errors' : null}, value:question.value, css: question.koCss().root\"></textarea>\n\x3c!--/ko--\x3e\n\x3c!--ko if: question.isInputTextUpdate --\x3e\n<textarea type=\"text\"\n  data-bind=\"attr: {'readonly': question.isReadOnly, 'disabled': question.isReadOnly, maxLength: question.getMaxLength(), cols: question.cols, rows: question.rows, id: question.inputId, placeholder: question.isReadOnly ? undefined : question.placeHolder, 'aria-required': question.isRequired, 'aria-label': question.locTitle.renderedHtml, 'aria-invalid': question.errors.length > 0, 'aria-describedby': question.errors.length > 0 ? question.id + '_errors' : null}, textInput:question.value, css: question.koCss().root\"></textarea>\n\x3c!--/ko--\x3e\n\x3c!--/ko--\x3e\n\n\x3c!--ko if: question.isReadOnlyRenderDiv() --\x3e\n<div data-bind=\"text: question.value\"></div>\n\x3c!--/ko--\x3e\n<\/script>"},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-composite\">\n  \x3c!-- ko template: { name: 'survey-panel', data: question.contentPanel, as: 'question', afterRender: question.contentPanel.koPanelAfterRender } --\x3e\n  \x3c!-- /ko --\x3e\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-custom">\n  \x3c!-- ko template: { name: question.contentQuestion.koTemplateName(), data: question.contentQuestion, as: \'question\', afterRender: question.contentQuestion.koQuestionAfterRender } --\x3e\n  \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-dropdown\">\n<div data-bind=\"css: question.koCss().selectWrapper\">\n  \x3c!-- ko ifnot: question.isReadOnly --\x3e\n  <select\n    data-bind=\"if: true, attr: {id: question.inputId, 'aria-label': question.locTitle.renderedHtml, 'aria-invalid': question.errors.length > 0, 'aria-describedby': question.errors.length > 0 ? question.id + '_errors' : null}, value: question.renderedValue, valueAllowUnset: true, css: question.koControlClass\">\n    \x3c!-- ko if: question.showOptionsCaption --\x3e\n    <option data-bind=\"text:question.optionsCaption, value: null\"></option>\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko foreach: question.visibleChoices --\x3e\n    <option data-bind=\"value: $data.value, text: $data.text, attr: { disabled: !$data.isEnabled }\"></option>\n    \x3c!-- /ko --\x3e\n  </select>\n  \x3c!-- /ko --\x3e\n  \x3c!-- ko if: question.isReadOnly --\x3e\n    <div disabled\n    data-bind=\"attr: {id: question.inputId}, text: question.hasOther && question.isOtherSelected ? question.otherText : question.displayValue, css: question.koCss().control\">\n    </div>\n  \x3c!-- /ko --\x3e\n</div>\n\x3c!-- ko if: question.hasOther --\x3e\n<div class=\"form-group\"\n  data-bind=\"template: { name: 'survey-comment', data: {'question': question, 'visible': question.isOtherSelected } }, style: {display: question.isFlowLayout ? 'inline': ''}\">\n</div>\n\x3c!-- /ko --\x3e\n<\/script>"},function(e,t){e.exports='<script type="text/html" id="survey-question-empty">\n    <div></div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-errors">\n        <div role="alert" data-bind="visible: errors.length > 0, foreach: { data: errors, as: \'error\' }, css: koErrorClass(), attr: { id: question.id + \'_errors\' }">\n            <div>   \n                <span aria-hidden="true" data-bind="css: question.koCss().error.icon"></span>\n                <span data-bind="css: question.koCss().error.item">\n                    \x3c!-- ko template: { name: \'survey-string\', data: error.locText } --\x3e\x3c!-- /ko --\x3e\n                </span>\n            </div>\n        </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-expression">\n  <div data-bind="text:question.displayValue, css: question.koCss().root"></div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-file">\n  <div data-bind="css: question.koCss().root">\n      \x3c!-- ko ifnot: question.isReadOnly --\x3e\n      <input type="file" data-bind="css: question.cssClasses.fileInput, attr: {id: question.inputId, \'aria-required\': question.isRequired, \'aria-label\': question.locTitle.renderedHtml, \'aria-invalid\': question.errors.length > 0, \'aria-describedby\': question.errors.length > 0 ? question.id + \'_errors\' : null, multiple: question.allowMultiple ? \'multiple\' : undefined, title: koInputTitle, accept: question.acceptedTypes }, event: {change: question.dochange}">\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko if: question.isReadOnly --\x3e\n      <input type="file" disabled data-bind="css: \'form-control \' + question.cssClasses.placeholderInput, attr: { placeholder: question.title }" style="color: transparent;"/>\n      \x3c!-- /ko --\x3e\n      <div data-bind="css:question.koCss().fileDecorator, event:{ dragover: question.ondragover, drop: question.ondrop}">\n        <div data-bind="css: question.koCss().wrapper">\n          <label role="button" data-bind="css: question.koChooseFileClass, attr: {for: question.inputId, \'aria-label\': question.chooseButtonCaption}, text: question.chooseButtonCaption"></label>\n          <span data-bind="css: question.koCss().noFileChosen, visible: !question.koHasValue(), text: question.noFileChosenCaption"></span>\n        </div>\n      </div>\n      \x3c!-- ko if: question.koHasValue() && !question.isReadOnly --\x3e\n      <button type="button" data-bind="css: question.cssClasses.removeButton, click: question.doclean, text: question.cleanButtonCaption"></button>\n      \x3c!-- /ko --\x3e\n      <div data-bind="foreach: question.koData, visible: question.koHasValue">\n          <span data-bind="visible: question.showPreview, css: question.cssClasses.preview">\n              \x3c!-- ko if: $data.name --\x3e\n              <div data-bind="css: question.koCss().fileSign">\n              <a data-bind="style: { width: question.imageWidth + \'px\' }, click: question.dodownload, text: $data.name,\n              attr: { href: $data.content, title: $data.name, download: $data.name }"></a>\n              </div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: question.canPreviewImage($data) --\x3e\n              <img data-bind="attr: { src: $data.content, height: question.imageHeight, width: question.imageWidth }" alt="File preview">\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: $data.name --\x3e\n              \x3c!-- ko ifnot: question.isReadOnly --\x3e\n              <div>\n                  <span data-bind="css: question.cssClasses.removeFile, click: question.doremovefile, text: question.removeFileCaption"></span>\n                  <svg data-bind="css: question.cssClasses.removeFileSvg, click: question.doremovefile" viewBox="0 0 16 16">\n                    <path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"/>\n                  </svg>\n              </div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: $data.name --\x3e\n              <div data-bind="css: question.koCss().fileSignBottom">\n                <a data-bind="style: { width: question.imageWidth + \'px\' }, click: question.dodownload, text: $data.name, attr: { href: $data.content, title: $data.name, download: $data.name }"></a>\n              </div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- /ko --\x3e\n          </span>\n      </div>\n      \x3c!-- ko if: question.koHasValue() && !question.isReadOnly --\x3e\n      <button type="button" data-bind="css: question.cssClasses.removeButtonBottom, click: question.doclean, text: question.cleanButtonCaption"></button>\n      \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-html">\n  <div data-bind="html: question.locHtml.koRenderedHtml, css: question.koCss().root"></div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-image">\n  <div data-bind="css: question.koCss().root">\n    \x3c!-- ko if: question.contentMode === "image" --\x3e\n    <img data-bind="css: question.koCss().image, attr: { src: $data.imageLink, width: question.imageWidth ? question.imageWidth + \'px\' : undefined, height: question.imageHeight ? question.imageHeight + \'px\' : undefined, alt: question.text || question.title }, style: { objectFit: question.imageFit }"/>\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko if: question.contentMode === "video" --\x3e\n    <embed data-bind="css: question.koCss().image, attr: { src: $data.imageLink, width: question.imageWidth ? question.imageWidth + \'px\' : undefined, height: question.imageHeight ? question.imageHeight + \'px\' : undefined }, style: { objectFit: question.imageFit }"/>\n    \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-imagepicker\">\n  <fieldset data-bind=\"css: question.koCss().root\">\n      <legend data-bind=\"attr: { 'aria-label': question.locTitle.renderedHtml }\"></legend>\n      \x3c!-- ko foreach: { data: question.visibleChoices, as: 'item', afterRender: question.koAfterRender}  --\x3e\n      <div data-bind=\"css: question.getItemClass(item)\">\n          <label data-bind=\"css: question.koCss().label\">\n              <input style=\"display: none;\" data-bind=\"attr: {type: question.multiSelect ? 'checkbox' : 'radio', name: question.name + '_' + question.id, value: item.value, id: question.inputId + '_' + item.value, 'aria-required': question.isRequired, 'aria-label': question.locTitle.renderedHtml, 'aria-invalid': question.errors.length > 0, 'aria-describedby': question.errors.length > 0 ? question.id + '_errors' : null}, checked: question.koValue, enable: !question.isReadOnly && item.isEnabled, css: question.koCss().itemControl\"\n              />\n              <div>\n                  \x3c!-- ko if: question.contentMode === \"image\" --\x3e\n                  <img data-bind=\"css: question.koCss().image, attr: { src: $data.locImageLink.koRenderedHtml, width: question.imageWidth ? question.imageWidth + 'px' : undefined, height: question.imageHeight ? question.imageHeight + 'px' : undefined, alt: item.locText.koRenderedHtml }, style: { objectFit: question.imageFit }\"/>\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: question.contentMode === \"video\" --\x3e\n                  <embed data-bind=\"css: question.koCss().image, attr: { src: $data.locImageLink.koRenderedHtml, width: question.imageWidth ? question.imageWidth + 'px' : undefined, height: question.imageHeight ? question.imageHeight + 'px' : undefined }, style: { objectFit: question.imageFit }\"/>\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: question.showLabel --\x3e\n                  <span data-bind=\"css: question.koCss().itemText, attr: { title: item.locText.koRenderedHtml }\">\n                    \x3c!-- ko template: { name: 'survey-string', data: item.locText } --\x3e\n                    \x3c!-- /ko --\x3e\n                </span>\n                  \x3c!-- /ko --\x3e\n              </div>\n          </label>\n      </div>\n      \x3c!-- /ko --\x3e\n  </fieldset>\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-matrix">\n    <div data-bind="css: question.koCss().tableWrapper">\n        <fieldset>\n            <legend data-bind="attr: { \'aria-label\': question.locTitle.renderedHtml }"></legend>\n            <table data-bind="css: question.koCss().root">\n                \x3c!-- ko if: question.showHeader --\x3e\n                <thead>\n                    <tr>\n                        <td data-bind="visible: question.hasRows"></td>\n                        \x3c!-- ko foreach: question.koVisibleColumns --\x3e\n                        <th data-bind="css: question.koCss().headerCell">\n                            \x3c!-- ko template: { name: \'survey-string\', data: locText } --\x3e\n                            \x3c!-- /ko --\x3e\n                        </th>\n                        \x3c!-- /ko --\x3e\n                    </tr>\n                </thead>\n                \x3c!-- /ko --\x3e\n                <tbody>\n                    \x3c!-- ko foreach: { data: question.koVisibleRows, as: \'row\' } --\x3e\n                    <tr data-bind="css: row.rowClasses">\n                        <td data-bind="visible: question.hasRows, css: question.koCss().cell">\n                            \x3c!-- ko template: { name: \'survey-string\', data: row.locText } --\x3e\n                            \x3c!-- /ko --\x3e\n                        </td>\n                        \x3c!-- ko foreach: question.koVisibleColumns --\x3e\n                        \x3c!-- ko if: question.hasCellText --\x3e\n                        <td data-bind="css: question.getItemClass(row, $data), click: function() { if (!question.isReadOnly) { row.cellClick($data); } }">\n                            \x3c!-- ko template: { name: \'survey-string\', data: question.getCellDisplayLocText(row.name, $data) } --\x3e\n                            \x3c!-- /ko --\x3e\n                        </td>\n                        \x3c!-- /ko --\x3e\n                        \x3c!-- ko if: !question.hasCellText --\x3e\n                        <td data-bind="attr: { headers: $data.locText.renderedHtml }, css: question.koCss().cell">\n                            <label data-bind="css: question.getItemClass(row, $data)">\n                                <input type="radio" data-bind="css: question.koCss().itemValue, attr: { name: row.fullName, \'aria-required\': question.isRequired, \'aria-label\': question.locTitle.renderedHtml, value: \'\' + $data.value, id: question.inputId + \'_\' + row.name + \'_\' + $index() }, checked: row.value, enable: !question.isReadOnly"/>\n                                <span data-bind="css: question.koCss().materialDecorator">\n                                <svg data-bind="css:question.koCss().itemDecorator" viewBox="-12 -12 24 24">\n                                    <circle r="6" cx="0" cy="0">\n                                </svg>\n                                </span>\n                                <span class="circle"></span>\n                                <span class="check"></span>\n                                <span style="display: none" data-bind="text: $data.locText.text"></span>\n                            </label>\n                        </td>\n                        \x3c!-- /ko --\x3e\n                        \x3c!-- /ko --\x3e\n                    </tr>\n                    \x3c!-- /ko --\x3e\n                </tbody>\n            </table>\n        </fieldset>\n    </div>\n<\/script>\n<script type="text/html" id="survey-text">\n    <span data-bind="text:$data.renderedHtml"></span>\n<\/script>'},function(e,t){e.exports='\ufeff<script type="text/html" id="survey-question-matrixdynamic">\n  <div data-bind="visible: question.koIsAddRowOnTop(), css: question.koCss().footer">\n      <button type="button" data-bind="click:question.koAddRowClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd">\n          <span data-bind="text: question.addRowText"></span>\n          <span data-bind="css: question.koCss().iconAdd"></span>\n      </button>\n  </div>\n  <div data-bind="style: {overflowX: question.horizontalScroll? \'scroll\': \'\'}">\n      <table data-bind="css: question.koCss().root">\n          \x3c!-- ko if: question.koTable().showHeader --\x3e\n          <thead>\n              <tr>\n                  \x3c!-- ko foreach: question.koTable().headerRow.cells --\x3e\n                  <th data-bind="style: { minWidth: $data.minWidth, width: $data.width }, css: question.koCss().headerCell">\n                      \x3c!-- ko template: { name: \'survey-string\', data: $data.locTitle } --\x3e\x3c!-- /ko --\x3e\n                    \x3c!-- ko if: $data.requiredText --\x3e\n                    <span data-bind="text: $data.requiredText"></span>\n                    \x3c!-- /ko --\x3e\n                  </th>\n                  \x3c!-- /ko --\x3e\n              </tr>\n          </thead>\n          \x3c!-- /ko --\x3e\n          <tbody>\n              \x3c!-- ko foreach: question.koTable().rows --\x3e\n              <tr data-bind="css:$data.className">\n                  \x3c!-- ko foreach: $data.cells --\x3e\n                    \x3c!-- ko if: $data.isShowHideDetail --\x3e\n                    <td data-bind="css:$data.className">\n                      <button  type="button" data-bind="css:question.getDetailPanelButtonCss($data.row), click:row.showHideDetailPanelClick, attr:{\'aria-expanded\': question.getIsDetailPanelShowing($data.row) ? \'true\': \'false\', \'aria-controls\': question.getIsDetailPanelShowing($data.row) ? row.detailPanelId: false}">\n                        <span data-bind="css: question.getDetailPanelIconCss($data.row)"></span>\n                      </button>\n                    </td>\n                    \x3c!-- /ko --\x3e\n                    \x3c!-- ko if: $data.isEmpty --\x3e\n                    <td data-bind="attr: {colspan: $data.colSpans}">\n                    </td>\n                    \x3c!-- /ko --\x3e\n                    \x3c!-- ko if: $data.hasPanel --\x3e\n                    <td data-bind="css:$data.className, attr: {colspan: $data.colSpans}">\n                      \x3c!-- ko template: { name: $data.panel.koElementType, data: $data.panel, afterRender: question.koPanelAfterRender } --\x3e\n                      \x3c!-- /ko --\x3e\n                    </td>\n                    \x3c!-- /ko --\x3e\n                    \x3c!-- ko if: $data.hasQuestion --\x3e\n                        \x3c!-- ko template: { name: \'survey-matrixcell\', afterRender: function(els) { $data.matrix.koCellAfterRender(els, $data); } } --\x3e\x3c!-- /ko --\x3e\n                    \x3c!-- /ko --\x3e\n                    \x3c!-- ko if: $data.hasTitle --\x3e\n                        <td data-bind="css: $data.className, style: { minWidth: $data.minWidth, width: $data.width }">\n                            \x3c!-- ko template: { name: \'survey-string\', data: $data.locTitle } --\x3e\x3c!-- /ko --\x3e\n                            \x3c!-- ko if: $data.requiredText --\x3e\n                            <span data-bind="text: $data.requiredText"></span>\n                            \x3c!-- /ko --\x3e\n                        </td>\n                    \x3c!-- /ko --\x3e\n                    \x3c!-- ko if: $data.isRemoveRow --\x3e\n                    <td data-bind="css: $data.className">\n                        <button type="button" data-bind="click:question.koRemoveRowClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove">\n                            <span data-bind="text: question.removeRowText"></span>\n                            <span data-bind="css: question.koCss().iconRemove"></span>\n                        </button>\n                    </td>\n                    \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n              </tr>\n              \x3c!-- /ko --\x3e\n          </tbody>\n          \x3c!-- ko if:question.koTable().hasFooter --\x3e\n          <tfoot>\n            <tr>\n                \x3c!-- ko foreach: question.koTable().footerRow.cells --\x3e\n                <td>\n                    \x3c!-- ko if: $data.hasQuestion --\x3e\n                        \x3c!-- ko template: { name: \'survey-matrixcell\', afterRender: function(els) { $data.matrix.koCellAfterRender(els, $data); } } --\x3e\x3c!-- /ko --\x3e\n                    \x3c!-- /ko --\x3e\n                    \x3c!-- ko if: $data.hasTitle --\x3e\x3c!-- ko template: { name: \'survey-string\', data: $data.locTitle } --\x3e\x3c!-- /ko --\x3e\x3c!-- /ko --\x3e\n                </td>\n                \x3c!-- /ko --\x3e\n            </tr>\n          </tfoot>\n          \x3c!-- /ko --\x3e\n    </table>\n  </div>\n  <div data-bind="visible: question.koIsAddRowOnBottom(), css: question.koCss().footer">\n      <button type="button" data-bind="click:question.koAddRowClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd">\n          <span data-bind="text: question.addRowText"></span>\n          <span data-bind="css: question.koCss().iconAdd"></span>\n      </button>\n  </div>\n<\/script>\n<script type="text/html" id="survey-matrixcell">\n  <td data-bind="css: $data.className + (question.errors.length > 0 ? \' \' + question.koCss().hasError : \'\'), style: {\'text-align\': $data.isChoice ? \'center\': \'\', minWidth: $data.minWidth, width: $data.width}, attr: { headers: question.isVisible ? question.locTitle.renderedHtml : \'\' }">\n      <div data-bind="visible: question.isVisible">\n          \x3c!-- ko if: $data.showErrorOnTop --\x3e\n            \x3c!-- ko template: { name: \'survey-question-errors\', data: question, as: \'question\' } --\x3e\n            \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko if: $data.isChoice --\x3e\n            \x3c!-- ko if: $data.isCheckbox --\x3e\n                \x3c!-- ko template: {name: \'survey-checkbox-item\', templateOptions: {hideCaption: true} }  --\x3e\x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko ifnot: $data.isCheckbox --\x3e\n                \x3c!-- ko template: {name: \'survey-radiogroup-item\', templateOptions: {hideCaption: true} }  --\x3e\x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko ifnot: $data.isChoice --\x3e\n            \x3c!-- ko if: question.isDefaultRendering() --\x3e\n                \x3c!-- ko template: { name: question.koTemplateName(), data: question, as: \'question\', afterRender: function(el) { $data.matrix.koCellQuestionAfterRender(el, $data); } } --\x3e\x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko ifnot: question.isDefaultRendering() --\x3e\n                \x3c!-- ko component: { name: question.getComponentName(), params: { question: question } } --\x3e\n                \x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko if: $data.showErrorOnBottom --\x3e\n            \x3c!-- ko template: { name: \'survey-question-errors\', data: question, as: \'question\' } --\x3e\n            \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n      </div>\n  </td>\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-multipletext\">\n  <table data-bind=\"css: question.koCss().root, foreach: { data:  question.koRows, as: 'row' }\">\n      <tr data-bind=\"foreach: { data: row, as: 'item' }, css: question.koCss().row\">\n          <td data-bind=\"css: question.koCss().itemTitle + ' ' + question.koCss().cell\">\n            \x3c!-- ko template: { name: 'survey-question-title-content', data: item.editor, as: 'question' } --\x3e\x3c!-- /ko --\x3e\n          </td>\n          <td data-bind=\"css: question.koCss().item + ' ' + question.koCss().cell\">\n            \x3c!-- ko if: item.editor.errorLocation == 'top' --\x3e\n            <div data-bind=\"css: question.koCss().error.locationTop\">\n                \x3c!-- ko template: { name: 'survey-question-errors', data: item.editor } --\x3e\n                \x3c!-- /ko --\x3e\n            </div>\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko template: { name: item.editor.koTemplateName(), data: item.editor, as: 'question', afterRender: item.editor.koQuestionAfterRender } --\x3e\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko if: item.editor.errorLocation == 'bottom' --\x3e\n              \x3c!-- ko template: { name: 'survey-question-errors', data: item.editor } --\x3e\n              \x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n        </td>\n      </tr>\n  </table>\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-paneldynamic-navigator">\n  <div style="clear:both;">\n        <div data-bind="css: question.koCss().progressContainer">\n          <div data-bind="title: question.panelPrevText, click: question.koPrevPanelClick">\n            <svg viewBox="0 0 10 10" data-bind="css: question.koButtonPrevCss">\n              <polygon points="2,2 0,4 5,9 10,4 8,2 5,5 " />\n            </svg>\n          </div>\n\n          \x3c!-- ko if: question.koIsRange --\x3e\n          <div data-bind="css: question.koCss().progress">\n            <div\n              data-bind="css: question.koCss().progressBar, style: {width: question.koProgress}"\n              role="progressbar"\n            ></div>\n          </div>\n          \x3c!-- /ko --\x3e\n\n          <div data-bind="title:question.panelNextText, click: question.koNextPanelClick">\n            <svg viewBox="0 0 10 10" data-bind="css: question.koButtonNextCss">\n              <polygon points="2,2 0,4 5,9 10,4 8,2 5,5 " />\n            </svg>\n          </div>\n        </div>\n\n        \x3c!-- ko if: question.canAddPanel --\x3e\n        <input\n          type="button"\n          data-bind="value: question.panelAddText, css:question.koCss().button  + \' \' + question.koCss().buttonAdd, click:question.koAddPanelClick"\n        />\n        \x3c!-- /ko --\x3e\n\n        <div data-bind="text:question.koProgressText, css:question.koCss().progressText"></div>\n      </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-paneldynamic">\n  <div data-bind="css: question.koCss().root">\n      \x3c!-- ko if: question.koIsList() --\x3e\n        \x3c!-- ko foreach: { data: question.panels } --\x3e\n        \x3c!-- ko template: { name: \'survey-panel\', data: $data, as: \'question\', afterRender: question.koPanelAfterRender } --\x3e\n        \x3c!-- /ko --\x3e\n        <input type="button" data-bind="visible: question.koCanRemovePanel() && !$data.koIsCollapsed(), click:question.koRemovePanelClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove, value: question.panelRemoveText"\n        />\n        <hr data-bind="css: question.koCss().separator"/>\n        \x3c!-- /ko --\x3e\n        <input type="button" data-bind="visible:question.koCanAddPanel, click:question.koAddPanelClick, css: question.koButtonAddCss, value: question.panelAddText"\n        />\n        \x3c!-- /ko --\x3e\n      \x3c!-- ko ifnot: question.koIsList()  --\x3e\n        <div data-bind="visible:question.koIsProgressTop, css: question.koCss().progressTop">\n            \x3c!-- ko template: { name: \'survey-question-paneldynamic-navigator\', data: question, as: \'question\'} --\x3e\n            \x3c!-- /ko --\x3e\n        </div>\n        \x3c!-- ko if: question.koPanel() --\x3e\n            \x3c!-- ko template: { name: \'survey-panel\', data: question.koPanel(), as: \'question\', afterRender: question.koPanelAfterRender } --\x3e\n            \x3c!-- /ko --\x3e\n        \x3c!-- /ko --\x3e\n        <input type="button" data-bind="visible: question.koCanRemovePanel, click:question.koRemovePanelClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove, value: question.panelRemoveText"\n        />\n        <div data-bind="visible:question.koIsProgressBottom,  css: question.koCss().progressBottom">\n            \x3c!-- ko template: { name: \'survey-question-paneldynamic-navigator\', data: question, as: \'question\'} --\x3e\n            \x3c!-- /ko --\x3e\n        </div>\n      \x3c!-- /ko --\x3e\n  </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-radiogroup">\n  <fieldset data-bind="css: question.koCss().root" role="radiogroup">\n    <legend\n      data-bind="attr: { \'aria-label\': question.locTitle.renderedHtml }"\n    ></legend>\n    \x3c!-- ko ifnot: question.hasColumns --\x3e\n    \x3c!-- ko foreach: { data: question.visibleChoices, as: \'item\', afterRender: question.koAfterRender } --\x3e\n    \x3c!-- ko template: \'survey-radiogroup-item\' --\x3e\n    \x3c!-- /ko --\x3e\n    \x3c!-- /ko --\x3e\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko if: question.hasColumns --\x3e\n    \x3c!-- ko foreach: question.columns --\x3e\n    <div data-bind="css: question.getColumnClass()">\n      \x3c!-- ko foreach: { data: $data, as: \'item\', afterRender: question.koAfterRender } --\x3e\n      \x3c!-- ko template: \'survey-radiogroup-item\' --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n    </div>\n    \x3c!-- /ko --\x3e\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko if: question.canShowClearButton --\x3e\n    <div>\n      <input\n        type="button"\n        data-bind="click:question.clearValue, css: question.koCss().clearButton, value: question.clearButtonCaption"\n      />\n    </div>\n    \x3c!-- /ko --\x3e\n  </fieldset>\n<\/script>\n<script type="text/html" id="survey-radiogroup-item">\n  <div data-bind="css: question.getItemClass(item)">\n      <label data-bind="css: question.getLabelClass(item)">\n          <input type="radio" data-bind="attr: { name: question.name + \'_\' + question.id, id: question.inputId + \'_\' + question.getItemIndex(item), \'aria-required\': question.isRequired, \'aria-label\': item.locText.renderedHtml, role: \'radio\', \'aria-invalid\': question.errors.length > 0, \'aria-describedby\': question.errors.length > 0 ? question.id + \'_errors\' : null}, checkedValue: item.value, checked: question.renderedValue, enable: !question.isReadOnly && item.isEnabled, css: question.koCss().itemControl"/>\n          <span data-bind="css: question.koCss().materialDecorator">\n            <svg data-bind="css:question.koCss().itemDecorator" viewBox="-12 -12 24 24">\n                <circle r="6" cx="0" cy="0">\n            </svg>\n          </span>\n          <span class="check"></span>\n          <span data-bind="visible: !item.hideCaption, css: question.getControlLabelClass(item), attr: { title: item.locText.koRenderedHtml }">\n              \x3c!-- ko template: { name: \'survey-string\', data: item.locText } --\x3e\n              \x3c!-- /ko --\x3e\n          </span>\n      </label>\n      \x3c!-- ko if: question.hasOther && (item.value == question.otherItem.value) --\x3e\n      <div class="form-group" data-bind="template: { name: \'survey-comment\', data: {\'question\': question, \'visible\': question.isOtherSelected}}"></div>\n      \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-rating">\n  <div data-bind="css: question.koCss().root">\n      \x3c!-- ko foreach: question.koVisibleRateValues --\x3e\n      <label data-bind="css: question.koGetCss($data)">\n          <input type="radio" class="sv-visuallyhidden" data-bind="attr: { name: question.name, id: question.inputId + \'_\' + $index(), value: $data.value, \'aria-required\': question.isRequired, \'aria-label\': $data.locText.text, \'aria-invalid\': question.errors.length > 0, \'aria-describedby\': question.errors.length > 0 ? question.id + \'_errors\' : null }, checkedValue: $data.value, checked: question.value, enable: !question.isReadOnly"/>\n          \x3c!-- ko if: $index() == 0 --\x3e\n          <span data-bind="css: question.koCss().minText">\n              \x3c!-- ko template: { name: \'survey-string\', data: question.locMinRateDescription } --\x3e\n              \x3c!-- /ko --\x3e\n          </span>\n          \x3c!-- /ko --\x3e\n\n          <span data-bind="css: question.koCss().itemText">\n              \x3c!-- ko template: { name: \'survey-string\', data: $data.locText } --\x3e\n              \x3c!-- /ko --\x3e\n          </span>\n\n          \x3c!-- ko if: $index() == (question.koVisibleRateValues().length-1) --\x3e\n          <span data-bind="css: question.koCss().maxText">\n              \x3c!-- ko template: { name: \'survey-string\', data: question.locMaxRateDescription } --\x3e\n              \x3c!-- /ko --\x3e\n          </span>\n          \x3c!-- /ko --\x3e\n      </label>\n      \x3c!-- /ko --\x3e\n  </div>\n  <div data-bind="visible: question.hasOther">\n      <div data-bind="template: { name: \'survey-comment\', data: { \'question\': question } }"></div>\n  </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-signaturepad">\n    <div data-bind="css: question.koCss().root">\n        <div>\n            <canvas tabindex=\'0\'></canvas>\n        </div>\n        <div data-bind="css: question.koCss().controls">\n            <button type=\'button\' data-bind="css: question.koCss().clearButton, attr: { title: question.clearButtonCaption }">✖</button>\n        </div>\n    </div>\n<\/script>'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-text\">\n  \x3c!--ko if: !question.isInputTextUpdate --\x3e\n  <input\n    data-bind=\"disable: question.isReadOnly, attr: {type: question.inputType, size: question.size, id: question.inputId, placeholder: question.inputType === 'range' || question.isReadOnly ? undefined : question.placeHolder, maxLength: question.getMaxLength(), min: question.renderedMin, max: question.renderedMax, step: question.step, 'aria-required': question.isRequired, 'aria-label': question.locTitle.renderedHtml, 'aria-invalid': question.errors.length > 0, 'aria-describedby': question.errors.length > 0 ? question.id + '_errors' : null, autoComplete: question.autoComplete}, value: question.value, css: question.koCss().root + (question.errors.length > 0 ? ' ' + question.koCss().onError: '')\"\n  />\n  \x3c!--/ko--\x3e\n  \x3c!--ko if: question.isInputTextUpdate --\x3e\n  <input\n    data-bind=\"disable: question.isReadOnly, attr: {type: question.inputType, size: question.size, id: question.inputId, placeholder: question.inputType === 'range' || question.isReadOnly ? undefined : question.placeHolder, maxLength: question.getMaxLength(), min: question.renderedMin, max: question.renderedMax, step: question.step, 'aria-required': question.isRequired, 'aria-label': question.locTitle.renderedHtml, 'aria-invalid': question.errors.length > 0, 'aria-describedby': question.errors.length > 0 ? question.id + '_errors' : null, autoComplete: question.autoComplete}, textInput: question.value, css: question.koCss().root + (question.errors.length > 0 ? ' ' + question.koCss().onError: '')\"\n  />\n  \x3c!--/ko--\x3e\n<\/script>\n"},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question\">\n  <div data-bind=\"css: question.koRootCss(), style: { paddingLeft: question.paddingLeft, paddingRight: question.paddingRight, flexBasis: renderWidth, flexGrow: 1, flexShrink: 1, width: renderWidth, minWidth:  $data.minWidth, maxWidth: $data.maxWidth}, attr: { id: question.id, name: question.name, role: question.ariaRole, 'aria-labelledby': question.hasTitle ? question.ariaTitleId : null }\">\n      \x3c!-- ko if: question.hasTitleOnLeftTop --\x3e\n      \x3c!--ko template: { name: 'survey-question-title', data: question  } --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n      <div data-bind=\"visible: !question.isCollapsed, css: question.cssContent\" >\n          \x3c!-- ko if: question.errorLocation == 'top' --\x3e\n              \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n              \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko if: question.isDefaultRendering() --\x3e\n            \x3c!-- ko template: { name: question.koTemplateName(), data: question, afterRender: question.koQuestionAfterRender } --\x3e\n            \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko ifnot: question.isDefaultRendering() --\x3e\n            \x3c!-- ko component: { name: getComponentName(), params: { question: question } } --\x3e\n            \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko if: question.hasComment --\x3e\n          <div data-bind=\"css: question.koCss().formGroup\">\n            \x3c!-- ko template: { name: 'survey-string', data: question.locCommentText } --\x3e\n            \x3c!-- /ko --\x3e\n            <div data-bind=\"template: { name: 'survey-comment', data: {'question': question, 'visible': true } }\"></div>\n          </div>\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko if: question.errorLocation == 'bottom' --\x3e\n              \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n              \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n          <div data-bind=\"visible: question.hasDescriptionUnderInput, css: koCss().descriptionUnderInput\">\n              \x3c!-- ko template: { name: 'survey-string', data: locDescription } --\x3e\x3c!-- /ko --\x3e\n          </div>\n      </div>\n      \x3c!-- ko if: question.hasTitleOnBottom --\x3e\n      \x3c!--ko template: { name: 'survey-question-title', data: question  } --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-title">\n  <div data-bind="css: question.cssHeader, click: question.clickTitleFunction">\n    <h5\n      data-bind="css: cssTitle, attr: { \'aria-label\': question.locTitle.renderedHtml, id: ariaTitleId}, click: toggleStateByClick"\n    >\n      \x3c!-- ko template: { name: \'survey-question-title-content\', data: question } --\x3e\x3c!-- /ko --\x3e\n      \x3c!-- ko if: isCollapsed || isExpanded --\x3e\n      <span\n        data-bind="css: cssClasses.icon + (!isCollapsed ? \' \' + cssClasses.iconExpanded: \'\'), event: { keyup: toggleStateByKeyUp }, attr:{\'aria-expanded\': isCollapsed ? \'false\': \'true\'}"\n        tabindex="0"\n      ></span>\n      \x3c!-- /ko --\x3e\n    </h5>\n    <div\n      data-bind="visible: question.hasDescriptionUnderTitle, css: koCss().description"\n    >\n      \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\x3c!-- /ko --\x3e\n    </div>\n  </div>\n<\/script>\n<script type="text/html" id="survey-question-title-content">\n  \x3c!-- ko if: $data.isRequireTextOnStart --\x3e\n  <span\n    data-bind="css: koCss().requiredText || koCss().panel.requiredText, text: $data.requiredText"\n  ></span>\n  \x3c!-- /ko --\x3e\n  \x3c!-- ko if: no --\x3e\n  <span\n    style="position: static;"\n    data-bind="css: koCss().number, text: no"\n  ></span>\n  \x3c!-- /ko --\x3e\n  \x3c!-- ko if: $data.isRequireTextBeforeTitle --\x3e\n  <span\n    data-bind="css: koCss().requiredText || koCss().panel.requiredText, text: $data.requiredText"\n  ></span>\n  \x3c!-- /ko --\x3e\n  \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\x3c!-- /ko --\x3e\n  \x3c!-- ko if: $data.isRequireTextAfterTitle --\x3e\n  <span\n    data-bind="css: koCss().requiredText || koCss().panel.requiredText, text: $data.requiredText"\n  ></span>\n  \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-rows">\n  \x3c!-- ko foreach: { data: rows, as: \'row\'} --\x3e\n  \x3c!-- ko if: row.visible --\x3e\n  <div data-bind="css: panel.cssClasses.row">\n    \x3c!-- ko template: { name: "survey-row-content", afterRender: rowAfterRender } --\x3e\n    \x3c!-- /ko --\x3e\n  </div>\n  \x3c!-- /ko --\x3e\n  \x3c!-- /ko --\x3e\n<\/script>\n<script type="text/html" id="survey-row-content">\n  \x3c!-- ko if: row.isNeedRender --\x3e\n  \x3c!-- ko foreach: { data: row.elements, as: \'question\' , afterRender: row.koAfterRender } --\x3e\n  \x3c!-- ko if: question.isVisible --\x3e\n  \x3c!-- ko template: { name: question.koElementType, data: question, afterRender: $parent.koElementAfterRender } --\x3e\n  \x3c!-- /ko --\x3e\n  \x3c!-- /ko --\x3e\n  \x3c!-- /ko --\x3e\n  \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-string">\n    \x3c!-- ko ifnot: koHasHtml --\x3e\n    <span style="position: static;" data-bind="text: koRenderedHtml"></span>\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko if: koHasHtml --\x3e\n    <span style="position: static;" data-bind="html: koRenderedHtml"></span>\n    \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-timerpanel">\n    <div data-bind="text:koTimerInfoText"></div>\n<\/script>\n'},function(e,t){e.exports='<div data-bind="css: model.css.progressButtonsContainerCenter">\n    <div data-bind="css: model.css.progressButtonsContainer">\n        <div data-bind="css: getScrollButtonCss(true), click: clickScrollButton.bind($data, $element.nextElementSibling, true)" role="button"></div>\n        <div data-bind="css: model.css.progressButtonsListContainer">\n            <ul data-bind="foreach: model.visiblePages, css: model.css.progressButtonsList">\n                <li data-bind="css: $parent.getListElementCss($index), click: $parent.clickListElement.bind($parent, $index)">\n                    <div data-bind="css: css.progressButtonsPageTitle, text: locNavigationTitle.koRenderedHtml() || name, attr: { title: locNavigationTitle.koRenderedHtml() || name }"></div>\n                    <div data-bind="css: css.progressButtonsPageDescription, text: locNavigationDescription.koRenderedHtml(), attr: { title: locNavigationDescription.koRenderedHtml() }"></div>\n                </li>\n            </ul>\n        </div>\n        <div data-bind="css: getScrollButtonCss(false), click: clickScrollButton.bind($data, $element.previousElementSibling, false)" role="button"></div>\n    </div>\n</div>'},function(e,t){e.exports='<div data-bind="css: model.css.progress">\n    <div data-bind="css: model.css.progressBar, style:{ width: model.progressValue + \'%\' }"\n        role="progressbar" aria-valuemin="0" aria-valuemax="100">\n        <span data-bind="text: model.progressText, css: model.css.progressText + \' \' + model.css.progressTextInBar"></span>\n    </div>\n    <span data-bind="text: model.progressText, css: model.css.progressText + \' \' + model.css.progressTextUnderBar"></span>\n</div>'},function(e,t,n){e.exports=n(76)+"\n"+n(77)+"\n"+n(78)+"\n"+n(79)+"\n"+n(80)+"\n"+n(81)+"\n"+n(106)+"\n"+n(107)+"\n"+n(108)+"\n"+n(104)+"\n"+n(105)+"\n"+n(82)+"\n"+n(83)+"\n"+n(84)+"\n"+n(85)+"\n"+n(86)+"\n"+n(87)+"\n"+n(88)+"\n"+n(89)+"\n"+n(90)+"\n"+n(91)+"\n"+n(92)+"\n"+n(93)+"\n"+n(94)+"\n"+n(95)+"\n"+n(96)+"\n"+n(97)+"\n"+n(99)+"\n"+n(98)+"\n"+n(100)+"\n"+n(101)+"\n"+n(102)+"\n"+n(103)+"\n"},function(e,t){e.exports='<div style="position: fixed; bottom: 3px; right: 10px; max-width: 60%;" data-bind="css: css.window.root">\n    <div data-bind="css: css.window.header.root">\n        <span data-bind="click:doExpand" style="width: 100%; cursor: pointer;">\n            <span style="padding-right:10px" data-bind="css: css.window.header.title, text: locTitle.koRenderedHtml"></span>\n            <span aria-hidden="true" data-bind="css: koExpandedCss"></span>\n        </span>\n        <span data-bind="visible:koExpanded, click:doExpand" style="float: right; cursor: pointer;">\n            <span style="padding-right:10px" data-bind="css: css.window.header.title">X</span>\n        </span>\n    </div>\n    <div data-bind="visible:koExpanded, css: css.window.body">\n        <div id="windowSurveyJS"></div>\n    </div>\n</div>'},function(e,t,n){"use strict";/*!
 * Signature Pad v2.3.2
 * https://github.com/szimek/signature_pad
 *
 * Copyright 2017 Szymon Nowak
 * Released under the MIT license
 *
 * The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from:
 * http://corner.squareup.com/2012/07/smoother-signatures.html
 *
 * Implementation of interpolation using cubic Bézier curves is taken from:
 * http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript
 *
 * Algorithm for approximated length of a Bézier curve is taken from:
 * http://www.lemoda.net/maths/bezier-length/index.html
 *
 */
function r(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function i(e,t,n,r){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=r}function o(e,t,n){var r,i,o,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),a=null,o=e.apply(r,i),a||(r=i=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=t-(u-s);return r=this,i=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),s=u,o=e.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(l,c)),o}}function a(e,t){var n=this,r=t||{};this.velocityFilterWeight=r.velocityFilterWeight||.7,this.minWidth=r.minWidth||.5,this.maxWidth=r.maxWidth||2.5,this.throttle="throttle"in r?r.throttle:16,this.minDistance="minDistance"in r?r.minDistance:5,this.throttle?this._strokeMoveUpdate=o(a.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=a.prototype._strokeUpdate,this.dotSize=r.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=r.penColor||"black",this.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",this.onBegin=r.onBegin,this.onEnd=r.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];n._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];n._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}r.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},r.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},r.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},i.prototype.length=function(){for(var e=10,t=0,n=void 0,r=void 0,i=0;i<=e;i+=1){var o=i/e,a=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var l=a-n,u=s-r;t+=Math.sqrt(l*l+u*u)}n=a,r=s}return t},i.prototype._point=function(e,t,n,r,i){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+i*e*e*e},a.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},a.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Image,i=n.ratio||window.devicePixelRatio||1,o=n.width||this._canvas.width/i,a=n.height||this._canvas.height/i;this._reset(),r.src=e,r.onload=function(){t._ctx.drawImage(r,0,0,o,a)},this._isEmpty=!1},a.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this._canvas).toDataURL.apply(t,[e].concat(r))}},a.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},a.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},a.prototype.isEmpty=function(){return this._isEmpty},a.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},a.prototype._strokeUpdate=function(e){var t=e.clientX,n=e.clientY,r=this._createPoint(t,n),i=this._data[this._data.length-1],o=i&&i[i.length-1],a=o&&r.distanceTo(o)<this.minDistance;if(!o||!a){var s=this._addPoint(r),l=s.curve,u=s.widths;l&&u&&this._drawCurve(l,u.start,u.end),this._data[this._data.length-1].push({x:r.x,y:r.y,time:r.time,color:this.penColor})}},a.prototype._strokeEnd=function(e){var t=this.points.length>2,n=this.points[0];if(!t&&n&&this._drawDot(n),n){var r=this._data[this._data.length-1],i=r[r.length-1];n.equals(i)||r.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},a.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},a.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},a.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},a.prototype._createPoint=function(e,t,n){var i=this._canvas.getBoundingClientRect();return new r(e-i.left,t-i.top,n||(new Date).getTime())},a.prototype._addPoint=function(e){var t=this.points,n=void 0;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]),n=this._calculateCurveControlPoints(t[0],t[1],t[2]);var r=n.c2;n=this._calculateCurveControlPoints(t[1],t[2],t[3]);var o=n.c1,a=new i(t[1],r,o,t[2]),s=this._calculateCurveWidths(a);return t.shift(),{curve:a,widths:s}}return{}},a.prototype._calculateCurveControlPoints=function(e,t,n){var i=e.x-t.x,o=e.y-t.y,a=t.x-n.x,s=t.y-n.y,l={x:(e.x+t.x)/2,y:(e.y+t.y)/2},u={x:(t.x+n.x)/2,y:(t.y+n.y)/2},c=Math.sqrt(i*i+o*o),p=Math.sqrt(a*a+s*s),d=l.x-u.x,h=l.y-u.y,f=p/(c+p),g={x:u.x+d*f,y:u.y+h*f},m=t.x-g.x,y=t.y-g.y;return{c1:new r(l.x+m,l.y+y),c2:new r(u.x+m,u.y+y)}},a.prototype._calculateCurveWidths=function(e){var t=e.startPoint,n=e.endPoint,r={start:null,end:null},i=this.velocityFilterWeight*n.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(i);return r.start=this._lastWidth,r.end=o,this._lastVelocity=i,this._lastWidth=o,r},a.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},a.prototype._drawPoint=function(e,t,n){var r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},a.prototype._drawCurve=function(e,t,n){var r=this._ctx,i=n-t,o=Math.floor(e.length());r.beginPath();for(var a=0;a<o;a+=1){var s=a/o,l=s*s,u=l*s,c=1-s,p=c*c,d=p*c,h=d*e.startPoint.x;h+=3*p*s*e.control1.x,h+=3*c*l*e.control2.x,h+=u*e.endPoint.x;var f=d*e.startPoint.y;f+=3*p*s*e.control1.y,f+=3*c*l*e.control2.y,f+=u*e.endPoint.y;var g=t+u*i;this._drawPoint(h,f,g)}r.closePath(),r.fill()},a.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},a.prototype._fromData=function(e,t,n){for(var i=0;i<e.length;i+=1){var o=e[i];if(o.length>1)for(var a=0;a<o.length;a+=1){var s=o[a],l=new r(s.x,s.y,s.time),u=s.color;if(0===a)this.penColor=u,this._reset(),this._addPoint(l);else if(a!==o.length-1){var c=this._addPoint(l),p=c.curve,d=c.widths;p&&d&&t(p,d,u)}}else{this._reset();n(o[0])}}},a.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,r=Math.max(window.devicePixelRatio||1,1),i=0,o=0,a=n.width/r,s=n.height/r,l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttributeNS(null,"width",n.width),l.setAttributeNS(null,"height",n.height),this._fromData(t,function(e,t,n){var r=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var i="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);r.setAttribute("d",i),r.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),r.setAttribute("stroke",n),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),l.appendChild(r)}},function(t){var n=document.createElement("circle"),r="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",r),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),l.appendChild(n)});var u="data:image/svg+xml;base64,",c='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="'+i+" "+o+" "+a+" "+s+'" width="'+a+'" height="'+s+'">',p=l.innerHTML;if(void 0===p){var d=document.createElement("dummy"),h=l.childNodes;d.innerHTML="";for(var f=0;f<h.length;f+=1)d.appendChild(h[f].cloneNode(!0));p=d.innerHTML}var g="</svg>",m=c+p+g;return u+btoa(m)},a.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,function(e,n){return t._drawCurve(e,n.start,n.end)},function(e){return t._drawDot(e)}),this._data=e},a.prototype.toData=function(){return this._data},t.a=a},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(5),a=n(10),s=n(1);n.d(t,"a",function(){return l});var l=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,t&&(r.name=t),n&&(r.expression=n),r}return n.i(r.b)(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult",!1)},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!0,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,n){this.isCalculated||(this.runExpressionCore(e,t,n),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!(!this.data||this.isLoadingFromJson||!this.expression||this.expressionIsRunning||!this.name)},enumerable:!0,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,n){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,n),this.expressionRunner.run(t,n))},t.prototype.runDependentExpressions=function(e,t,n){var r=this.expressionRunner.getVariables();if(r)for(var i=0;i<e.length;i++){var o=e[i];o===this||r.indexOf(o.name)<0||(o.doCalculation(e,t,n),t[o.name]=o.value)}},t.prototype.ensureExpression=function(e){var t=this;this.expressionRunner||(this.expressionRunner=new a.b(this.expression),this.expressionRunner.onRunComplete=function(e){i.a.isTwoValueEquals(e,t.value)||t.setValue(e),t.unlocCalculation()})},t}(o.b);s.b.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],function(){return new l},"base")},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(5),a=n(10);n.d(t,"a",function(){return l}),n.d(t,"b",function(){return u});var s=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.createLocalizableString("html",n),n.expression=t,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new a.a(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):null},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t}(o.b),l=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("html",r),r.html=n,r}return n.i(r.b)(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!0,configurable:!0}),t}(s),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("url",r),r.url=n,r}return n.i(r.b)(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!0,configurable:!0}),t}(s);i.b.addClass("expressionitem",["expression:condition"],function(){return new s},"base"),i.b.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new l},"expressionitem"),i.b.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],function(){return new u},"expressionitem")},function(e,t,n){"use strict";function r(e,t){function n(){return e.substring(nr,tr)}function r(e,t){return{type:"literal",text:e,ignoreCase:t}}function i(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function s(){return{type:"end"}}function l(e){return{type:"other",description:e}}function u(t){var n,r=rr[t];if(r)return r;for(n=t-1;!rr[n];)n--;for(r=rr[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return rr[t]=r,r}function c(e,t){var n=u(e),r=u(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function p(e){tr<ir||(tr>ir&&(ir=tr,or=[]),or.push(e))}function d(e,t,n){return new a(a.buildMessage(e,t),e,t,n)}function h(){var e,t,n,r,i,o,a,s,l,u=34*tr+0,c=sr[u];if(c)return tr=c.nextPos,c.result;if(e=tr,(t=U())!==K)if((n=g())!==K){for(r=[],i=tr,o=U(),o!==K?(a=f(),a!==K?(s=U(),s!==K?(l=g(),l!==K?(o=[o,a,s,l],i=o):(tr=i,i=K)):(tr=i,i=K)):(tr=i,i=K)):(tr=i,i=K);i!==K;)r.push(i),i=tr,o=U(),o!==K?(a=f(),a!==K?(s=U(),s!==K?(l=g(),l!==K?(o=[o,a,s,l],i=o):(tr=i,i=K)):(tr=i,i=K)):(tr=i,i=K)):(tr=i,i=K);r!==K?(i=U(),i!==K?(nr=e,t=Y(n,r),e=t):(tr=e,e=K)):(tr=e,e=K)}else tr=e,e=K;else tr=e,e=K;return sr[u]={nextPos:tr,result:e},e}function f(){var t,n,r=34*tr+1,i=sr[r];return i?(tr=i.nextPos,i.result):(t=tr,e.substr(tr,2)===ee?(n=ee,tr+=2):(n=K,0===ar&&p(te)),n===K&&(e.substr(tr,2).toLowerCase()===ne?(n=e.substr(tr,2),tr+=2):(n=K,0===ar&&p(re))),n!==K&&(nr=t,n=ie()),t=n,sr[r]={nextPos:tr,result:t},t)}function g(){var e,t,n,r,i,o,a,s,l=34*tr+2,u=sr[l];if(u)return tr=u.nextPos,u.result;if(e=tr,(t=y())!==K){for(n=[],r=tr,i=U(),i!==K?(o=m(),o!==K?(a=U(),a!==K?(s=y(),s!==K?(i=[i,o,a,s],r=i):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K);r!==K;)n.push(r),r=tr,i=U(),i!==K?(o=m(),o!==K?(a=U(),a!==K?(s=y(),s!==K?(i=[i,o,a,s],r=i):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K);n!==K?(nr=e,t=Y(t,n),e=t):(tr=e,e=K)}else tr=e,e=K;return sr[l]={nextPos:tr,result:e},e}function m(){var t,n,r=34*tr+3,i=sr[r];return i?(tr=i.nextPos,i.result):(t=tr,e.substr(tr,2)===oe?(n=oe,tr+=2):(n=K,0===ar&&p(ae)),n===K&&(e.substr(tr,3).toLowerCase()===se?(n=e.substr(tr,3),tr+=3):(n=K,0===ar&&p(le))),n!==K&&(nr=t,n=ue()),t=n,sr[r]={nextPos:tr,result:t},t)}function y(){var e,t,n,r,i,o,a,s,l=34*tr+4,u=sr[l];if(u)return tr=u.nextPos,u.result;if(e=tr,(t=b())!==K){for(n=[],r=tr,i=U(),i!==K?(o=v(),o!==K?(a=U(),a!==K?(s=b(),s!==K?(i=[i,o,a,s],r=i):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K);r!==K;)n.push(r),r=tr,i=U(),i!==K?(o=v(),o!==K?(a=U(),a!==K?(s=b(),s!==K?(i=[i,o,a,s],r=i):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K);n!==K?(nr=e,t=ce(t,n),e=t):(tr=e,e=K)}else tr=e,e=K;return sr[l]={nextPos:tr,result:e},e}function v(){var t,n,r=34*tr+5,i=sr[r];return i?(tr=i.nextPos,i.result):(t=tr,e.substr(tr,2)===pe?(n=pe,tr+=2):(n=K,0===ar&&p(de)),n===K&&(e.substr(tr,11).toLowerCase()===he?(n=e.substr(tr,11),tr+=11):(n=K,0===ar&&p(fe))),n!==K&&(nr=t,n=ge()),t=n,t===K&&(t=tr,e.substr(tr,2)===me?(n=me,tr+=2):(n=K,0===ar&&p(ye)),n===K&&(e.substr(tr,14).toLowerCase()===ve?(n=e.substr(tr,14),tr+=14):(n=K,0===ar&&p(be))),n!==K&&(nr=t,n=xe()),(t=n)===K&&(t=tr,61===e.charCodeAt(tr)?(n=Ce,tr++):(n=K,0===ar&&p(we)),n===K&&(e.substr(tr,5).toLowerCase()===Pe?(n=e.substr(tr,5),tr+=5):(n=K,0===ar&&p(Ve))),n!==K&&(nr=t,n=_e()),(t=n)===K&&(t=tr,e.substr(tr,2)===ke?(n=ke,tr+=2):(n=K,0===ar&&p(Te)),n===K&&(e.substr(tr,8).toLowerCase()===Se?(n=e.substr(tr,8),tr+=8):(n=K,0===ar&&p(Re))),n!==K&&(nr=t,n=qe()),(t=n)===K&&(t=tr,60===e.charCodeAt(tr)?(n=Ee,tr++):(n=K,0===ar&&p(Oe)),n===K&&(e.substr(tr,4).toLowerCase()===Ie?(n=e.substr(tr,4),tr+=4):(n=K,0===ar&&p(Le))),n!==K&&(nr=t,n=Ae()),(t=n)===K&&(t=tr,62===e.charCodeAt(tr)?(n=De,tr++):(n=K,0===ar&&p(Ne)),n===K&&(e.substr(tr,7).toLowerCase()===je?(n=e.substr(tr,7),tr+=7):(n=K,0===ar&&p(Fe))),n!==K&&(nr=t,n=Me()),t=n))))),sr[r]={nextPos:tr,result:t},t)}function b(){var e,t,n,r,i,o,a,s,l=34*tr+6,u=sr[l];if(u)return tr=u.nextPos,u.result;if(e=tr,(t=C())!==K){for(n=[],r=tr,i=U(),i!==K?(o=x(),o!==K?(a=U(),a!==K?(s=C(),s!==K?(i=[i,o,a,s],r=i):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K);r!==K;)n.push(r),r=tr,i=U(),i!==K?(o=x(),o!==K?(a=U(),a!==K?(s=C(),s!==K?(i=[i,o,a,s],r=i):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K);n!==K?(nr=e,t=Y(t,n),e=t):(tr=e,e=K)}else tr=e,e=K;return sr[l]={nextPos:tr,result:e},e}function x(){var t,n,r=34*tr+7,i=sr[r];return i?(tr=i.nextPos,i.result):(t=tr,43===e.charCodeAt(tr)?(n=Be,tr++):(n=K,0===ar&&p(ze)),n!==K&&(nr=t,n=Qe()),t=n,t===K&&(t=tr,45===e.charCodeAt(tr)?(n=He,tr++):(n=K,0===ar&&p($e)),n!==K&&(nr=t,n=Ue()),t=n),sr[r]={nextPos:tr,result:t},t)}function C(){var e,t,n,r,i,o,a,s,l=34*tr+8,u=sr[l];if(u)return tr=u.nextPos,u.result;if(e=tr,(t=P())!==K){for(n=[],r=tr,i=U(),i!==K?(o=w(),o!==K?(a=U(),a!==K?(s=P(),s!==K?(i=[i,o,a,s],r=i):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K);r!==K;)n.push(r),r=tr,i=U(),i!==K?(o=w(),o!==K?(a=U(),a!==K?(s=P(),s!==K?(i=[i,o,a,s],r=i):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K);n!==K?(nr=e,t=Y(t,n),e=t):(tr=e,e=K)}else tr=e,e=K;return sr[l]={nextPos:tr,result:e},e}function w(){var t,n,r=34*tr+9,i=sr[r];return i?(tr=i.nextPos,i.result):(t=tr,42===e.charCodeAt(tr)?(n=We,tr++):(n=K,0===ar&&p(Je)),n!==K&&(nr=t,n=Ge()),t=n,t===K&&(t=tr,47===e.charCodeAt(tr)?(n=Ke,tr++):(n=K,0===ar&&p(Ze)),n!==K&&(nr=t,n=Xe()),(t=n)===K&&(t=tr,37===e.charCodeAt(tr)?(n=Ye,tr++):(n=K,0===ar&&p(et)),n!==K&&(nr=t,n=tt()),t=n)),sr[r]={nextPos:tr,result:t},t)}function P(){var e,t,n,r,i,o,a,s,l=34*tr+10,u=sr[l];if(u)return tr=u.nextPos,u.result;if(e=tr,(t=_())!==K){for(n=[],r=tr,i=U(),i!==K?(o=V(),o!==K?(a=U(),a!==K?(s=_(),s!==K?(i=[i,o,a,s],r=i):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K);r!==K;)n.push(r),r=tr,i=U(),i!==K?(o=V(),o!==K?(a=U(),a!==K?(s=_(),s!==K?(i=[i,o,a,s],r=i):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K);n!==K?(nr=e,t=Y(t,n),e=t):(tr=e,e=K)}else tr=e,e=K;return sr[l]={nextPos:tr,result:e},e}function V(){var t,n,r=34*tr+11,i=sr[r];return i?(tr=i.nextPos,i.result):(t=tr,94===e.charCodeAt(tr)?(n=nt,tr++):(n=K,0===ar&&p(rt)),n===K&&(e.substr(tr,5).toLowerCase()===it?(n=e.substr(tr,5),tr+=5):(n=K,0===ar&&p(ot))),n!==K&&(nr=t,n=at()),t=n,sr[r]={nextPos:tr,result:t},t)}function _(){var e,t,n,r,i,o,a,s,l=34*tr+12,u=sr[l];if(u)return tr=u.nextPos,u.result;if(e=tr,(t=T())!==K){for(n=[],r=tr,i=U(),i!==K?(o=k(),o!==K?(a=U(),a!==K?(s=T(),s===K&&(s=null),s!==K?(i=[i,o,a,s],r=i):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K);r!==K;)n.push(r),r=tr,i=U(),i!==K?(o=k(),o!==K?(a=U(),a!==K?(s=T(),s===K&&(s=null),s!==K?(i=[i,o,a,s],r=i):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K)):(tr=r,r=K);n!==K?(nr=e,t=ce(t,n),e=t):(tr=e,e=K)}else tr=e,e=K;return sr[l]={nextPos:tr,result:e},e}function k(){var t,n,r=34*tr+13,i=sr[r];return i?(tr=i.nextPos,i.result):(t=tr,e.substr(tr,2)===st?(n=st,tr+=2):(n=K,0===ar&&p(lt)),n===K&&(e.substr(tr,8).toLowerCase()===ut?(n=e.substr(tr,8),tr+=8):(n=K,0===ar&&p(ct)),n===K&&(e.substr(tr,7).toLowerCase()===pt?(n=e.substr(tr,7),tr+=7):(n=K,0===ar&&p(dt)))),n!==K&&(nr=t,n=ht()),t=n,t===K&&(t=tr,e.substr(tr,11).toLowerCase()===ft?(n=e.substr(tr,11),tr+=11):(n=K,0===ar&&p(gt)),n===K&&(e.substr(tr,10).toLowerCase()===mt?(n=e.substr(tr,10),tr+=10):(n=K,0===ar&&p(yt))),n!==K&&(nr=t,n=vt()),(t=n)===K&&(t=tr,e.substr(tr,5).toLowerCase()===bt?(n=e.substr(tr,5),tr+=5):(n=K,0===ar&&p(xt)),n!==K&&(nr=t,n=Ct()),(t=n)===K&&(t=tr,e.substr(tr,5).toLowerCase()===wt?(n=e.substr(tr,5),tr+=5):(n=K,0===ar&&p(Pt)),n!==K&&(nr=t,n=Vt()),t=n))),sr[r]={nextPos:tr,result:t},t)}function T(){var t,n,r,i,o,a,s=34*tr+14,l=sr[s];return l?(tr=l.nextPos,l.result):(t=tr,40===e.charCodeAt(tr)?(n=_t,tr++):(n=K,0===ar&&p(kt)),n!==K?(r=U(),r!==K?(i=h(),i!==K?(o=U(),o!==K?(41===e.charCodeAt(tr)?(a=Tt,tr++):(a=K,0===ar&&p(St)),a===K&&(a=null),a!==K?(nr=t,n=Rt(i),t=n):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K),t===K&&(t=S())===K&&(t=R())===K&&(t=E())===K&&(t=I()),sr[s]={nextPos:tr,result:t},t)}function S(){var t,n,r,i,o,a=34*tr+15,s=sr[a];return s?(tr=s.nextPos,s.result):(t=tr,n=z(),n!==K?(40===e.charCodeAt(tr)?(r=_t,tr++):(r=K,0===ar&&p(kt)),r!==K?(i=L(),i!==K?(41===e.charCodeAt(tr)?(o=Tt,tr++):(o=K,0===ar&&p(St)),o===K&&(o=null),o!==K?(nr=t,n=qt(n,i),t=n):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K),sr[a]={nextPos:tr,result:t},t)}function R(){var t,n,r,i,o=34*tr+16,a=sr[o];return a?(tr=a.nextPos,a.result):(t=tr,33===e.charCodeAt(tr)?(n=Et,tr++):(n=K,0===ar&&p(Ot)),n===K&&(e.substr(tr,6).toLowerCase()===It?(n=e.substr(tr,6),tr+=6):(n=K,0===ar&&p(Lt))),n!==K?(r=U(),r!==K?(i=h(),i!==K?(nr=t,n=At(i),t=n):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K),t===K&&(t=tr,n=E(),n!==K?(r=U(),r!==K?(i=q(),i!==K?(nr=t,n=Dt(n,i),t=n):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K)),sr[o]={nextPos:tr,result:t},t)}function q(){var t,n,r=34*tr+17,i=sr[r];return i?(tr=i.nextPos,i.result):(t=tr,e.substr(tr,5).toLowerCase()===Nt?(n=e.substr(tr,5),tr+=5):(n=K,0===ar&&p(jt)),n!==K&&(nr=t,n=Ft()),t=n,t===K&&(t=tr,e.substr(tr,8).toLowerCase()===Mt?(n=e.substr(tr,8),tr+=8):(n=K,0===ar&&p(Bt)),n!==K&&(nr=t,n=zt()),t=n),sr[r]={nextPos:tr,result:t},t)}function E(){var t,n,r,i,o,a=34*tr+18,s=sr[a];return s?(tr=s.nextPos,s.result):(t=tr,n=U(),n!==K?(e.substr(tr,9)===Qt?(r=Qt,tr+=9):(r=K,0===ar&&p(Ht)),r===K&&(e.substr(tr,4)===$t?(r=$t,tr+=4):(r=K,0===ar&&p(Ut))),r!==K?(nr=t,n=Wt(),t=n):(tr=t,t=K)):(tr=t,t=K),t===K&&(t=tr,n=U(),n!==K?(r=O(),r!==K?(nr=t,n=Jt(r),t=n):(tr=t,t=K)):(tr=t,t=K),t===K&&(t=tr,n=U(),n!==K?(123===e.charCodeAt(tr)?(r=Gt,tr++):(r=K,0===ar&&p(Kt)),r!==K?(i=j(),i!==K?(125===e.charCodeAt(tr)?(o=Zt,tr++):(o=K,0===ar&&p(Xt)),o!==K?(nr=t,n=Yt(i),t=n):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K))),sr[a]={nextPos:tr,result:t},t)}function O(){var t,n,r,i,o=34*tr+19,a=sr[o];return a?(tr=a.nextPos,a.result):(t=tr,n=A(),n!==K&&(nr=t,n=en(n)),t=n,t===K&&(t=tr,n=D(),n!==K&&(nr=t,n=en(n)),(t=n)===K&&(t=tr,n=z(),n!==K&&(nr=t,n=en(n)),(t=n)===K&&(t=tr,39===e.charCodeAt(tr)?(n=tn,tr++):(n=K,0===ar&&p(nn)),n!==K?(r=F(),r!==K?(39===e.charCodeAt(tr)?(i=tn,tr++):(i=K,0===ar&&p(nn)),i!==K?(nr=t,n=rn(r),t=n):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K),t===K&&(t=tr,34===e.charCodeAt(tr)?(n=on,tr++):(n=K,0===ar&&p(an)),n!==K?(r=F(),r!==K?(34===e.charCodeAt(tr)?(i=on,tr++):(i=K,0===ar&&p(an)),i!==K?(nr=t,n=rn(r),t=n):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K))))),sr[o]={nextPos:tr,result:t},t)}function I(){var t,n,r,i,o=34*tr+20,a=sr[o];return a?(tr=a.nextPos,a.result):(t=tr,91===e.charCodeAt(tr)?(n=sn,tr++):(n=K,0===ar&&p(ln)),n!==K?(r=L(),r!==K?(93===e.charCodeAt(tr)?(i=un,tr++):(i=K,0===ar&&p(cn)),i!==K?(nr=t,n=pn(r),t=n):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K),sr[o]={nextPos:tr,result:t},t)}function L(){var t,n,r,i,o,a,s,l,u=34*tr+21,c=sr[u];if(c)return tr=c.nextPos,c.result;if(t=tr,n=h(),n===K&&(n=null),n!==K){for(r=[],i=tr,o=U(),o!==K?(44===e.charCodeAt(tr)?(a=dn,tr++):(a=K,0===ar&&p(hn)),a!==K?(s=U(),s!==K?(l=h(),l!==K?(o=[o,a,s,l],i=o):(tr=i,i=K)):(tr=i,i=K)):(tr=i,i=K)):(tr=i,i=K);i!==K;)r.push(i),i=tr,o=U(),o!==K?(44===e.charCodeAt(tr)?(a=dn,tr++):(a=K,0===ar&&p(hn)),a!==K?(s=U(),s!==K?(l=h(),l!==K?(o=[o,a,s,l],i=o):(tr=i,i=K)):(tr=i,i=K)):(tr=i,i=K)):(tr=i,i=K);r!==K?(nr=t,n=fn(n,r),t=n):(tr=t,t=K)}else tr=t,t=K;return sr[u]={nextPos:tr,result:t},t}function A(){var t,n,r=34*tr+22,i=sr[r];return i?(tr=i.nextPos,i.result):(t=tr,e.substr(tr,4).toLowerCase()===gn?(n=e.substr(tr,4),tr+=4):(n=K,0===ar&&p(mn)),n!==K&&(nr=t,n=yn()),t=n,t===K&&(t=tr,e.substr(tr,5).toLowerCase()===vn?(n=e.substr(tr,5),tr+=5):(n=K,0===ar&&p(bn)),n!==K&&(nr=t,n=xn()),t=n),sr[r]={nextPos:tr,result:t},t)}function D(){var t,n,r,i=34*tr+23,o=sr[i];return o?(tr=o.nextPos,o.result):(t=tr,e.substr(tr,2)===Cn?(n=Cn,tr+=2):(n=K,0===ar&&p(wn)),n!==K?(r=Q(),r!==K?(nr=t,n=Pn(),t=n):(tr=t,t=K)):(tr=t,t=K),t===K&&(t=tr,Vn.test(e.charAt(tr))?(n=e.charAt(tr),tr++):(n=K,0===ar&&p(_n)),n===K&&(n=null),n!==K?(r=N(),r!==K?(nr=t,n=kn(n,r),t=n):(tr=t,t=K)):(tr=t,t=K)),sr[i]={nextPos:tr,result:t},t)}function N(){var t,n,r,i,o=34*tr+24,a=sr[o];return a?(tr=a.nextPos,a.result):(t=tr,n=Q(),n!==K?(46===e.charCodeAt(tr)?(r=Tn,tr++):(r=K,0===ar&&p(Sn)),r!==K?(i=Q(),i!==K?(nr=t,n=Rn(),t=n):(tr=t,t=K)):(tr=t,t=K)):(tr=t,t=K),t===K&&(t=tr,n=H(),n!==K?(r=Q(),r===K&&(r=null),r!==K?(nr=t,n=qn(),t=n):(tr=t,t=K)):(tr=t,t=K),t===K&&(t=tr,48===e.charCodeAt(tr)?(n=En,tr++):(n=K,0===ar&&p(On)),n!==K&&(nr=t,n=In()),t=n)),sr[o]={nextPos:tr,result:t},t)}function j(){var e,t,n,r=34*tr+25,i=sr[r];if(i)return tr=i.nextPos,i.result;if(e=tr,t=[],(n=B())!==K)for(;n!==K;)t.push(n),n=B();else t=K;return t!==K&&(nr=e,t=Ln(t)),e=t,sr[r]={nextPos:tr,result:e},e}function F(){var e,t,n,r=34*tr+26,i=sr[r];if(i)return tr=i.nextPos,i.result;if(e=tr,t=[],(n=M())!==K)for(;n!==K;)t.push(n),n=M();else t=K;return t!==K&&(nr=e,t=Ln(t)),e=t,sr[r]={nextPos:tr,result:e},e}function M(){var t,n,r=34*tr+27,i=sr[r];return i?(tr=i.nextPos,i.result):(t=tr,e.substr(tr,2)===An?(n=An,tr+=2):(n=K,0===ar&&p(Dn)),n!==K&&(nr=t,n=Nn()),t=n,t===K&&(t=tr,e.substr(tr,2)===jn?(n=jn,tr+=2):(n=K,0===ar&&p(Fn)),n!==K&&(nr=t,n=Mn()),(t=n)===K&&(t=tr,Bn.test(e.charAt(tr))?(n=e.charAt(tr),tr++):(n=K,0===ar&&p(zn)),n!==K&&(nr=t,n=Qn()),t=n)),sr[r]={nextPos:tr,result:t},t)}function B(){var t,n,r=34*tr+28,i=sr[r];return i?(tr=i.nextPos,i.result):(t=tr,Hn.test(e.charAt(tr))?(n=e.charAt(tr),tr++):(n=K,0===ar&&p($n)),n!==K&&(nr=t,n=Qn()),t=n,sr[r]={nextPos:tr,result:t},t)}function z(){var e,t,n,r,i,o,a,s=34*tr+29,l=sr[s];if(l)return tr=l.nextPos,l.result;if(e=tr,(t=$())!==K){if(n=[],r=tr,(i=Q())!==K){for(o=[],a=$();a!==K;)o.push(a),a=$();o!==K?(i=[i,o],r=i):(tr=r,r=K)}else tr=r,r=K;for(;r!==K;)if(n.push(r),r=tr,(i=Q())!==K){for(o=[],a=$();a!==K;)o.push(a),a=$();o!==K?(i=[i,o],r=i):(tr=r,r=K)}else tr=r,r=K;n!==K?(nr=e,t=Qn(),e=t):(tr=e,e=K)}else tr=e,e=K;return sr[s]={nextPos:tr,result:e},e}function Q(){var t,n,r=34*tr+30,i=sr[r];if(i)return tr=i.nextPos,i.result;if(t=[],Un.test(e.charAt(tr))?(n=e.charAt(tr),tr++):(n=K,0===ar&&p(Wn)),n!==K)for(;n!==K;)t.push(n),Un.test(e.charAt(tr))?(n=e.charAt(tr),tr++):(n=K,0===ar&&p(Wn));else t=K;return sr[r]={nextPos:tr,result:t},t}function H(){var t,n,r=34*tr+31,i=sr[r];if(i)return tr=i.nextPos,i.result;if(t=[],Jn.test(e.charAt(tr))?(n=e.charAt(tr),tr++):(n=K,0===ar&&p(Gn)),n!==K)for(;n!==K;)t.push(n),Jn.test(e.charAt(tr))?(n=e.charAt(tr),tr++):(n=K,0===ar&&p(Gn));else t=K;return sr[r]={nextPos:tr,result:t},t}function $(){var t,n,r=34*tr+32,i=sr[r];if(i)return tr=i.nextPos,i.result;if(t=[],Kn.test(e.charAt(tr))?(n=e.charAt(tr),tr++):(n=K,0===ar&&p(Zn)),n!==K)for(;n!==K;)t.push(n),Kn.test(e.charAt(tr))?(n=e.charAt(tr),tr++):(n=K,0===ar&&p(Zn));else t=K;return sr[r]={nextPos:tr,result:t},t}function U(){var t,n,r=34*tr+33,i=sr[r];if(i)return tr=i.nextPos,i.result;for(ar++,t=[],Yn.test(e.charAt(tr))?(n=e.charAt(tr),tr++):(n=K,0===ar&&p(er));n!==K;)t.push(n),Yn.test(e.charAt(tr))?(n=e.charAt(tr),tr++):(n=K,0===ar&&p(er));return ar--,t===K&&(n=K,0===ar&&p(Xn)),sr[r]={nextPos:tr,result:t},t}function W(e,t,n){return void 0===n&&(n=!1),t.reduce(function(e,t){return new o.f(t[1],e,t[3],n)},e)}function J(e){return[].concat.apply([],e)}t=void 0!==t?t:{};var G,K={},Z={Expression:h},X=h,Y=function(e,t){return W(e,t,!0)},ee="||",te=r("||",!1),ne="or",re=r("or",!0),ie=function(){return"or"},oe="&&",ae=r("&&",!1),se="and",le=r("and",!0),ue=function(){return"and"},ce=function(e,t){return W(e,t)},pe="<=",de=r("<=",!1),he="lessorequal",fe=r("lessorequal",!0),ge=function(){return"lessorequal"},me=">=",ye=r(">=",!1),ve="greaterorequal",be=r("greaterorequal",!0),xe=function(){return"greaterorequal"},Ce="=",we=r("=",!1),Pe="equal",Ve=r("equal",!0),_e=function(){return"equal"},ke="!=",Te=r("!=",!1),Se="notequal",Re=r("notequal",!0),qe=function(){return"notequal"},Ee="<",Oe=r("<",!1),Ie="less",Le=r("less",!0),Ae=function(){return"less"},De=">",Ne=r(">",!1),je="greater",Fe=r("greater",!0),Me=function(){return"greater"},Be="+",ze=r("+",!1),Qe=function(){return"plus"},He="-",$e=r("-",!1),Ue=function(){return"minus"},We="*",Je=r("*",!1),Ge=function(){return"mul"},Ke="/",Ze=r("/",!1),Xe=function(){return"div"},Ye="%",et=r("%",!1),tt=function(){return"mod"},nt="^",rt=r("^",!1),it="power",ot=r("power",!0),at=function(){return"power"},st="*=",lt=r("*=",!1),ut="contains",ct=r("contains",!0),pt="contain",dt=r("contain",!0),ht=function(){return"contains"},ft="notcontains",gt=r("notcontains",!0),mt="notcontain",yt=r("notcontain",!0),vt=function(){return"notcontains"},bt="anyof",xt=r("anyof",!0),Ct=function(){return"anyof"},wt="allof",Pt=r("allof",!0),Vt=function(){return"allof"},_t="(",kt=r("(",!1),Tt=")",St=r(")",!1),Rt=function(e){return e},qt=function(e,t){return new o.a(e,t)},Et="!",Ot=r("!",!1),It="negate",Lt=r("negate",!0),At=function(e){return new o.b(e,"negate")},Dt=function(e,t){return new o.b(e,t)},Nt="empty",jt=r("empty",!0),Ft=function(){return"empty"},Mt="notempty",Bt=r("notempty",!0),zt=function(){return"notempty"},Qt="undefined",Ht=r("undefined",!1),$t="null",Ut=r("null",!1),Wt=function(){return null},Jt=function(e){return new o.c(e)},Gt="{",Kt=r("{",!1),Zt="}",Xt=r("}",!1),Yt=function(e){return new o.d(e)},en=function(e){return e},tn="'",nn=r("'",!1),rn=function(e){return"'"+e+"'"},on='"',an=r('"',!1),sn="[",ln=r("[",!1),un="]",cn=r("]",!1),pn=function(e){return e},dn=",",hn=r(",",!1),fn=function(e,t){if(null==e)return new o.e([]);var n=[e];if(Array.isArray(t))for(var r=J(t),i=3;i<r.length;i+=4)n.push(r[i]);return new o.e(n)},gn="true",mn=r("true",!0),yn=function(){return!0},vn="false",bn=r("false",!0),xn=function(){return!1},Cn="0x",wn=r("0x",!1),Pn=function(){return parseInt(n(),16)},Vn=/^[\-]/,_n=i(["-"],!1,!1),kn=function(e,t){return null==e?t:-t},Tn=".",Sn=r(".",!1),Rn=function(){return parseFloat(n())},qn=function(){return parseInt(n(),10)},En="0",On=r("0",!1),In=function(){return 0},Ln=function(e){return e.join("")},An="\\'",Dn=r("\\'",!1),Nn=function(){return"'"},jn='\\"',Fn=r('\\"',!1),Mn=function(){return'"'},Bn=/^[^"']/,zn=i(['"',"'"],!0,!1),Qn=function(){return n()},Hn=/^[^{}]/,$n=i(["{","}"],!0,!1),Un=/^[0-9]/,Wn=i([["0","9"]],!1,!1),Jn=/^[1-9]/,Gn=i([["1","9"]],!1,!1),Kn=/^[a-zA-Z]/,Zn=i([["a","z"],["A","Z"]],!1,!1),Xn=l("whitespace"),Yn=/^[ \t\n\r]/,er=i([" ","\t","\n","\r"],!1,!1),tr=0,nr=0,rr=[{line:1,column:1}],ir=0,or=[],ar=0,sr={};if(void 0!==t.startRule){if(!(t.startRule in Z))throw new Error("Can't start parsing from rule \""+t.startRule+'".');X=Z[t.startRule]}if((G=X())!==K&&tr===e.length)return G;throw G!==K&&tr<e.length&&p(s()),d(or,ir<e.length?e.charAt(ir):null,ir<e.length?c(ir,ir+1):c(ir,ir))}var i=n(0),o=n(26);n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});var a=function(e){function t(n,r,i,o){var a=e.call(this)||this;return a.message=n,a.expected=r,a.found=i,a.location=o,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return n.i(i.b)(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function o(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)});return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}function a(e){var t,n,r=e.map(o);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}function s(e){return e?'"'+r(e)+'"':"end of input"}return"Expected "+a(e)+" but "+s(t)+" found."},t}(Error),s=r},function(e,t,n){"use strict";var r=n(6),i=(n.n(r),n(34)),o=n(75);r.components.register("sv-checkbox",{viewModel:{createViewModel:function(e,t){return{question:e.question}}},template:o}),i.a.Instance.registerRenderer("boolean","checkbox","sv-checkbox")},function(e,t,n){"use strict";var r=n(6),i=(n.n(r),n(68)),o=n(109),a=function(){function e(e,t){var n=this;this.model=e,this.element=t,this.scrollButtonCssKo=void 0,this.hasScroller=r.observable(!1),this.updateScroller=void 0,this.progressButtonsModel=new i.a(e),this.updateScroller=setInterval(function(){var t=n.element.querySelector("."+e.css.progressButtonsListContainer);t&&n.hasScroller(t.scrollWidth>t.offsetWidth)},100)}return e.prototype.getListElementCss=function(e){return this.progressButtonsModel.getListElementCss(e())},e.prototype.clickListElement=function(e){this.progressButtonsModel.clickListElement(e())},e.prototype.getScrollButtonCss=function(e){var t=this;return this.scrollButtonCssKo=r.computed(function(){var n=e?t.model.css.progressButtonsImageButtonLeft:t.model.css.progressButtonsImageButtonRight;return t.hasScroller()||(n+=" "+t.model.css.progressButtonsImageButtonHidden),n},this),this.scrollButtonCssKo},e.prototype.clickScrollButton=function(e,t){e.scrollLeft+=70*(t?-1:1)},e.prototype.dispose=function(){void 0!==this.updateScroller&&(clearInterval(this.updateScroller),this.updateScroller=void 0),void 0!==this.scrollButtonCssKo&&(this.scrollButtonCssKo.dispose(),this.scrollButtonCssKo=void 0)},e}();r.components.register("sv-progress-buttons",{viewModel:{createViewModel:function(e,t){return new a(e.model,t.element.nextElementSibling)}},template:o})},function(e,t,n){"use strict";var r=n(6),i=(n.n(r),n(110)),o=function(e){return{model:e.model}};r.components.register("sv-progress-progress",{viewModel:o,template:i});var a="\x3c!-- ko component: { name: 'sv-progress-progress', params: $data } --\x3e\x3c!-- /ko --\x3e";r.components.register("sv-progress-pages",{viewModel:o,template:a}),r.components.register("sv-progress-questions",{viewModel:o,template:a}),r.components.register("sv-progress-correctquestions",{viewModel:o,template:a})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(69)),a=n(19);n.d(t,"a",function(){return l});var s=n(112),l=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;r.koExpanded=i.observable(!1),r.koExpandedCss=i.observable(r.getButtonCss());var o=r;return r.expandedChangedCallback=function(){o.koExpanded(o.isExpanded),o.koExpandedCss(o.getButtonCss())},r.showingChangedCallback=function(){o.doShowingChanged()},r.doExpand=function(){o.changeExpanded()},r}return n.i(r.b)(t,e),t.prototype.createSurvey=function(e){return new a.b(e)},t.prototype.closeWindowOnComplete=function(){this.hide()},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue?this.templateValue:this.getDefaultTemplate()},set:function(e){this.templateValue=e},enumerable:!0,configurable:!0}),t.prototype.doShowingChanged=function(){this.isShowing?(this.windowElement.innerHTML=this.template,i.cleanNode(this.windowElement),i.applyBindings(this,this.windowElement),document.body.appendChild(this.windowElement),this.survey.render(t.surveyElementName)):(document.body.removeChild(this.windowElement),this.windowElement.innerHTML="")},t.prototype.getDefaultTemplate=function(){return s},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!0,configurable:!0}),t.prototype.changeExpanded=function(){this.expandcollapse(!this.isExpanded)},t.prototype.getButtonCss=function(){return this.koExpanded()?this.css.window.header.buttonCollapsed:this.css.window.header.buttonExpanded},t}(o.a)},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(45)),a=n(1),s=n(15),l=n(5),u=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.koElementType=i.observable("survey-flowpanel"),new s.a(n),n.onCreating();var r=n;return n.koElementAfterRender=function(e,t){return r.elementAfterRender(e,t)},n}return n.i(r.b)(t,e),t.prototype.onCreating=function(){},t.prototype.getHtmlForQuestion=function(e){return'<span question="true" contenteditable="false" id="flowpanel_'+e.name+'">\x3c!-- ko template: { name: "survey-flowpanel-question", data: "'+e.name+'"} --\x3e\x3c!-- /ko --\x3e</span>'},t.prototype.elementAfterRender=function(e,t){if(this.survey){var n=l.a.GetFirstNonTextElement(e);n&&this.survey.afterRenderQuestion(t,n)}},t}(o.a);a.b.overrideClassCreator("flowpanel",function(){return new u}),i.components.register("f-panel",{viewModel:{createViewModel:function(e,t){var n=this,r=i.unwrap(e.question);n.element=t.element,n.element.innerHTML=r.html,n.isOnFocus=!1,n.wasChanged=!1,n.isContentUpdating=!1,r.contentChangedCallback=function(){n.isContentUpdating||(i.cleanNode(n.element),n.element.innerHTML=r.html,i.applyBindings({question:r},n.element),i.tasks.runEarly())},n.element.onfocus=function(){n.isOnFocus=!0},n.element.onblur=function(){n.wasChanged&&n.updateContent(),n.isOnFocus=!1,n.wasChanged=!1},n.element.ondragend=function(e){var t=/{(.*?(element:)[^$].*?)}/g,i=n.element.innerHTML,o=t.exec(i);if(null!==o){var a=r.getQuestionFromText(o[0]);a&&(r.content=n.getContent(a.name))}},n.updateContent=function(){n.isContentUpdating=!0,r.content=n.getContent(),n.isContentUpdating=!1},r.getContent=n.getContent=function(e){var t=document.createElement("DIV");t.innerHTML=n.element.innerHTML;for(var i=t.querySelectorAll('span[question="true"]'),o=0;o<i.length;o++){var a=i[o].id.replace("flowpanel_",""),s="";if(a!==e){var l=r.getQuestionByName(a);s=l?r.getElementContentText(l):""}i[o].outerHTML=s}return t.innerHTML};var o={characterData:!0,attributes:!0,childList:!0,subtree:!0},a=function(e,t){n.isOnFocus&&(n.wasChanged=!0)};return new MutationObserver(a).observe(n.element,o),{question:r}}},template:"<div></div>"})},function(e,t,n){"use strict";var r=n(0),i=n(51),o=n(1),a=n(3),s=n(8),l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new s.a(this)},t.prototype.getItemCss=function(e,t){var n=this.checkedValue,r=this.isReadOnly,i=this.cssClasses.item;return r&&(i+=" "+this.cssClasses.itemDisabled),n?i+=" "+this.cssClasses.itemChecked:null===n&&(i+=" "+this.cssClasses.itemIndeterminate),i},t.prototype.getCheckedLabelCss=function(){return this.getLabelClass(!0)},t.prototype.getUncheckedLabelCss=function(){return this.getLabelClass(!1)},t.prototype.getLabelClass=function(e){return this.cssClasses.label+(this.checkedValue===!e||this.isReadOnly?" "+this.cssClasses.disabledLabel:"")},t.prototype.preventDefaults=function(e){e.preventDefault(),e.stopPropagation()},t.prototype.onLabelClick=function(e,t){return this.isIndeterminate&&(this.preventDefaults(e),this.checkedValue=t),!0},t.prototype.onSwitchClick=function(e,t){if(this.isIndeterminate){this.preventDefaults(t);var n=t.offsetX/t.target.offsetWidth>.5,r="rtl"==document.defaultView.getComputedStyle(t.target).direction;return void(this.checkedValue=r?!n:n)}return!0},t.prototype.onTrueLabelClick=function(e,t){return this.onLabelClick(t,!0)},t.prototype.onFalseLabelClick=function(e,t){return this.onLabelClick(t,!1)},t}(i.a);o.b.overrideClassCreator("boolean",function(){return new l("")}),a.b.Instance.registerQuestion("boolean",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(17)),a=n(1),s=n(3),l=n(52),u=function(e){function t(t){return e.call(this,t)||this}return n.i(r.b)(t,e),t.prototype.getKoValue=function(){return this.question.renderedValue},t}(o.a),c=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isAllSelectedUpdating=!1,n.koAllSelected=i.observable(n.isAllSelected);var r=n;return n.koAllSelected.subscribe(function(e){r.isAllSelectedUpdating||(e?r.selectAll():r.clearValue())}),n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new u(this)},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.updateAllSelected()},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.updateAllSelected()},t.prototype.updateAllSelected=function(){this.isAllSelectedUpdating=!0,this.koAllSelected(this.isAllSelected),this.isAllSelectedUpdating=!1},t}(l.a);a.b.overrideClassCreator("checkbox",function(){return new c("")}),s.b.Instance.registerQuestion("checkbox",function(e){var t=new c(e);return t.choices=s.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(53),s=n(8),l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new s.a(this)},t}(a.a);i.b.overrideClassCreator("comment",function(){return new l("")}),o.b.Instance.registerQuestion("comment",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(54),o=n(8),a=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.name=t,r}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new o.a(this)},t}(i.a),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.name=t,r}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new o.a(this)},t}(i.b);i.c.Instance.onCreateCustom=function(e,t){return new a(e,t)},i.c.Instance.onCreateComposite=function(e,t){return new s(e,t)}},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(30)),a=n(1),s=n(3),l=n(17),u=function(e){function t(t){var n=e.call(this,t)||this;return n.koControlClass=i.pureComputed(function(){return n.question.koCss().control+(n.question.errors.length>0?" "+n.question.koCss().onError:"")}),n.question.koControlClass=n.koControlClass,n}return n.i(r.b)(t,e),t}(l.b),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new u(this)},t}(o.a);a.b.overrideClassCreator("dropdown",function(){return new c("")}),s.b.Instance.registerQuestion("dropdown",function(e){var t=new c(e);return t.choices=s.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(55),o=n(1),a=n(8),s=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new a.a(this)},t}(i.a);o.b.overrideClassCreator("empty",function(){return new s("")})},function(e,t,n){"use strict";var r=n(0),i=n(31),o=n(1),a=n(3),s=n(8),l=function(e){function t(t){var n=e.call(this,t)||this;return n.question=t,n}return n.i(r.b)(t,e),t}(s.a),u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new l(this)},t}(i.a);o.b.overrideClassCreator("expression",function(){return new u("")}),a.b.Instance.registerQuestion("expression",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(1)),a=n(3),s=n(56),l=n(8),u=n(25),c=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.koState=i.observable("empty"),r.koHasValue=i.computed(function(){return"loaded"===r.koState()}),r.koData=i.computed(function(){return r.koHasValue()?r.previewValue:[]}),r.koInputTitle=i.observable(),r.koChooseFileClass=i.pureComputed(function(){return r.koCss().chooseFile+(r.isReadOnly?" "+r.koCss().disabled:"")});var o=r,a=function(e){r.koState(e),r.koInputTitle(r.inputTitle)};return r.onStateChanged.add(function(e,t){a(t.state)}),r.ondrop=function(e,t){if(r.isReadOnly)return!1;t.preventDefault();var n=t.originalEvent?t.originalEvent.dataTransfer:t.dataTransfer;r.onChange(n)},r.ondragover=function(e,t){if(r.isReadOnly)return t.returnValue=!1,!1;t.dataTransfer.dropEffect="copy",t.preventDefault()},r.dochange=function(e,t){var n=t.target||t.srcElement;o.onChange(n)},r.doclean=function(e,t){var i=t.target||t.srcElement;if(r.needConfirmRemoveFile){if(!n.i(u.c)(r.confirmRemoveAllMessage))return}var o=i.parentElement.querySelectorAll("input")[0];r.clear(),o.value=""},r.doremovefile=function(e,t){if(r.needConfirmRemoveFile){if(!n.i(u.c)(r.getConfirmRemoveMessage(e.name)))return}r.removeFile(e)},r.dodownload=function(e,t){if(!n.i(u.d)())return!0;n.i(u.e)(e.content,e.name)},r}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new l.a(this)},t.prototype.onChange=function(e){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var t=[],n=this.allowMultiple?e.files.length:1,r=0;r<n;r++)t.push(e.files[r]);e.value="",this.loadFiles(t)}},t}(s.a);o.b.overrideClassCreator("file",function(){return new c("")}),a.b.Instance.registerQuestion("file",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(8),s=n(57),l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new a.a(this)},t}(s.a);i.b.overrideClassCreator("html",function(){return new l("")}),o.b.Instance.registerQuestion("html",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(8),s=n(58),l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new a.a(this)},t}(s.a);i.b.overrideClassCreator("image",function(){return new l("")}),o.b.Instance.registerQuestion("image",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(59),o=n(1),a=n(3),s=n(17),l=function(e){function t(t){return e.call(this,t)||this}return n.i(r.b)(t,e),t.prototype.getKoValue=function(){return this.question.renderedValue},t}(s.a),u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new l(this)},t}(i.a);o.b.overrideClassCreator("imagepicker",function(){return new u("")}),a.b.Instance.registerQuestion("imagepicker",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(60)),a=n(8),s=n(15),l=n(1),u=n(3),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.koVisibleRows=i.observableArray(),n.koVisibleColumns=i.observableArray(),n.koVisibleRows(n.visibleRows),n.koVisibleColumns(n.visibleColumns),n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new a.a(this)},t.prototype.onColumnsChanged=function(){e.prototype.onColumnsChanged.call(this),this.koVisibleColumns(this.visibleColumns)},t.prototype.onRowsChanged=function(){e.prototype.onRowsChanged.call(this),this.koVisibleRows(this.visibleRows)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onRowsChanged()},t.prototype.onMatrixRowCreated=function(e){new s.a(e)},t.prototype.getVisibleRows=function(){var t=e.prototype.getVisibleRows.call(this);return this.koVisibleRows(t),t},t}(o.a);l.b.overrideClassCreator("matrix",function(){return new c("")}),u.b.Instance.registerQuestion("matrix",function(e){var t=new c(e);return t.rows=u.b.DefaultRows,t.columns=u.b.DefaultColums,t})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(46),s=n(62),l=n(23),u=n(21),c=function(e){function t(t){return e.call(this,t)||this}return n.i(r.b)(t,e),t.prototype.isAddRowTop=function(){return this.question.isAddRowOnTop},t.prototype.isAddRowBottom=function(){return this.question.isAddRowOnBottom},t.prototype.canRemoveRows=function(){return!this.question.isReadOnly&&this.question.canRemoveRows},t.prototype.addRow=function(){this.question.addRow()},t.prototype.removeRow=function(e){this.question.removeRowUI(e)},t}(a.a),p=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new c(this)},t.prototype.createNewDetailPanel=function(){return new u.b},t}(s.a);i.b.overrideClassCreator("matrixdynamic",function(){return new p("")}),o.b.Instance.registerQuestion("matrixdynamic",function(e){var t=new p(e);return t.choices=[1,2,3,4,5],t.rowCount=2,l.a.addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(63)),a=n(8),s=n(47),l=n(1),u=n(3),c=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.name=t,r}return n.i(r.b)(t,e),t.prototype.createEditor=function(e){return new s.a(e)},t}(o.a),p=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.koRows=i.observableArray(n.getRows()),n.colCountChangedCallback=function(){n.onColCountChanged()},n.onColCountChanged(),n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new a.a(this)},t.prototype.onColCountChanged=function(){this.koRows(this.getRows())},t.prototype.createTextItem=function(e,t){return new c(e,t)},t}(o.b);l.b.overrideClassCreator("multipletextitem",function(){return new c("")}),l.b.overrideClassCreator("multipletext",function(){return new p("")}),u.b.Instance.registerQuestion("multipletext",function(e){var t=new p(e);return t.addItem("text1"),t.addItem("text2"),t})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(5)),a=n(1),s=n(3),l=n(8),u=n(64),c=n(21),p=function(e){function t(t){var n=e.call(this,t)||this;n.koRecalc=i.observable(0);var r=n;return n.koAddPanelClick=function(){r.addPanel()},n.koRemovePanelClick=function(e){r.removePanel(e)},n.koPrevPanelClick=function(){r.question.goToPrevPanel()},n.koNextPanelClick=function(){r.question.goToNextPanel()},n.koCanAddPanel=i.pureComputed(function(){return r.koRecalc(),r.question.canAddPanel}),n.koCanRemovePanel=i.pureComputed(function(){return r.koRecalc(),r.question.canRemovePanel}),n.koIsPrevButton=i.pureComputed(function(){return r.koRecalc(),r.question.isPrevButtonShowing}),n.koIsNextButton=i.pureComputed(function(){return r.koRecalc(),r.question.isNextButtonShowing}),n.koIsRange=i.pureComputed(function(){return r.koRecalc(),r.question.isRangeShowing}),n.koPanel=i.pureComputed(function(){return r.koRecalc(),r.question.currentPanel}),n.koIsList=i.pureComputed(function(){return r.koRecalc(),r.question.isRenderModeList}),n.koIsProgressTop=i.pureComputed(function(){return r.koRecalc(),r.question.isProgressTopShowing}),n.koIsProgressBottom=i.pureComputed(function(){return r.koRecalc(),r.question.isProgressBottomShowing}),n.koRangeValue=i.observable(r.question.currentIndex),n.koRangeValue.subscribe(function(e){r.question.currentIndex=e}),n.koRangeMax=i.pureComputed(function(){return r.koRecalc(),r.question.panelCount-1}),n.koButtonAddCss=i.pureComputed(function(){return r.koRecalc(),r.buttonAddCss}),n.koButtonNextCss=i.pureComputed(function(){return r.koRecalc(),r.buttonNextCss}),n.koButtonPrevCss=i.pureComputed(function(){return r.koRecalc(),r.buttonPrevCss}),n.koProgressText=i.pureComputed(function(){return r.koRecalc(),r.question.progressText}),n.koProgress=i.pureComputed(function(){return r.koRecalc(),r.progress}),n.question.koAddPanelClick=n.koAddPanelClick,n.question.koRemovePanelClick=n.koRemovePanelClick,n.question.koPrevPanelClick=n.koPrevPanelClick,n.question.koNextPanelClick=n.koNextPanelClick,n.question.koCanAddPanel=n.koCanAddPanel,n.question.koCanRemovePanel=n.koCanRemovePanel,n.question.koProgressText=n.koProgressText,n.question.koProgress=n.koProgress,n.question.koPanel=n.koPanel,n.question.koIsList=n.koIsList,n.question.koIsProgressTop=n.koIsProgressTop,n.question.koIsProgressBottom=n.koIsProgressBottom,n.question.koIsPrevButton=n.koIsPrevButton,n.question.koIsNextButton=n.koIsNextButton,n.question.koIsRange=n.koIsRange,n.question.koRangeValue=n.koRangeValue,n.question.koRangeMax=n.koRangeMax,n.question.koButtonAddCss=n.koButtonAddCss,n.question.koButtonNextCss=n.koButtonNextCss,n.question.koButtonPrevCss=n.koButtonPrevCss,n.question.koPanelAfterRender=function(e,t){r.panelAfterRender(e,t)},n.question.panelCountChangedCallback=function(){r.onPanelCountChanged()},n.question.renderModeChangedCallback=function(){r.onRenderModeChanged()},n.question.currentIndexChangedCallback=function(){r.onCurrentIndexChanged()},n}return n.i(r.b)(t,e),t.prototype.onPanelCountChanged=function(){this.onCurrentIndexChanged()},t.prototype.onRenderModeChanged=function(){this.onCurrentIndexChanged()},t.prototype.onCurrentIndexChanged=function(){this.koRecalc(this.koRecalc()+1),this.koRangeValue(this.question.currentIndex)},t.prototype.addPanel=function(){this.question.addPanelUI()},t.prototype.removePanel=function(e){var t=this.question;t.isRenderModeList||(e=t.currentPanel),t.removePanelUI(e)},t.prototype.panelAfterRender=function(e,t){if(this.question&&this.question.survey){var n=o.a.GetFirstNonTextElement(e);this.question.survey.afterRenderPanel(t,n)}},Object.defineProperty(t.prototype,"buttonAddCss",{get:function(){var e=this.question,t=e.cssClasses.button+" "+e.cssClasses.buttonAdd;return"list"===this.question.renderMode&&(t+=" "+e.cssClasses.buttonAdd+"--list-mode"),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttonPrevCss",{get:function(){var e=this.question,t=e.cssClasses.buttonPrev;return e.isPrevButtonShowing||(t+=" "+e.cssClasses.buttonPrev+"--disabled"),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttonNextCss",{get:function(){var e=this.question,t=e.cssClasses.buttonNext;return e.isNextButtonShowing||(t+=" "+e.cssClasses.buttonNext+"--disabled"),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){var e=this.question.panelCount-1;return this.question.currentIndex/e*100+"%"},enumerable:!0,configurable:!0}),t}(l.a),d=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new p(this)},t.prototype.createNewPanelObject=function(){return new c.b},t}(u.a);a.b.overrideClassCreator("paneldynamic",function(){return new d("")}),s.b.Instance.registerQuestion("paneldynamic",function(e){return new d(e)})},function(e,t,n){"use strict";var r=n(0),i=n(65),o=n(1),a=n(3),s=n(17),l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new s.a(this)},t}(i.a);o.b.overrideClassCreator("radiogroup",function(){return new l("")}),a.b.Instance.registerQuestion("radiogroup",function(e){var t=new l(e);return t.choices=a.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(8)),a=n(66),s=n(1),l=n(3),u=function(e){function t(t){var n=e.call(this,t)||this;n.koVisibleRateValues=i.observableArray(),n.question.koVisibleRateValues=n.koVisibleRateValues;var r=n;return n.question.rateValuesChangedCallback=function(){r.onRateValuesChanged()},n.question.koGetCss=function(e){var t=r.question.cssClasses.item,i=r.question.cssClasses.selected,o=r.question.cssClasses.disabled,a=t;return n.question.value==e.value&&(a=a+" "+i),n.question.isReadOnly&&(a=a+" "+o),a},n}return n.i(r.b)(t,e),t.prototype.onRateValuesChanged=function(){this.koVisibleRateValues(this.getValues())},t.prototype.getValues=function(){return this.question.visibleRateValues},t}(o.a),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new u(this)},t}(a.a);s.b.overrideClassCreator("rating",function(){return new c("")}),l.b.Instance.registerQuestion("rating",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(67),o=n(1),a=n(8),s=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new a.a(this)},t}(i.a);o.b.overrideClassCreator("signaturepad",function(){return new s("")})},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"السابق",pageNextText:"التالي",completeText:"إرسال البيانات",previewText:"معاينة",editText:"تعديل",startSurveyText:"بداية",otherItemText:"نص آخر",noneItemText:"لا شيء",selectAllItemText:"اختر الكل",progressText:"{1} صفحة {0} من",panelDynamicProgressText:"سجل {0} من {1}",questionsProgressText:"تمت الإجابة على أسئلة {0} / {1}",emptySurvey:"لا توجد صفحة مرئية أو سؤال في النموذج",completingSurvey:"شكرا لكم لاستكمال النموذج!",completingSurveyBefore:"تظهر سجلاتنا أنك قد أكملت هذا الاستطلاع بالفعل.",loadingSurvey:"...يتم تحميل النموذج",optionsCaption:"...اختر",value:"القيمة",requiredError:".يرجى الإجابة على السؤال",requiredErrorInPanel:"الرجاء الإجابة على سؤال واحد على الأقل.",requiredInAllRowsError:"يرجى الإجابة على الأسئلة في جميع الصفوف",numericError:"يجب أن تكون القيمة رقمية.",textMinLength:"الرجاء إدخال ما لا يقل عن {0} حروف",textMaxLength:"الرجاء إدخال أقل من {0} حروف",textMinMaxLength:"يرجى إدخال أكثر من {0} وأقل من {1} حروف",minRowCountError:"يرجى ملء ما لا يقل عن {0} الصفوف",minSelectError:"يرجى تحديد ما لا يقل عن {0} المتغيرات",maxSelectError:"يرجى تحديد ما لا يزيد عن {0} المتغيرات",numericMinMax:"و'{0}' يجب أن تكون مساوية أو أكثر من {1} وتساوي أو أقل من {2}ا",numericMin:"و'{0}' يجب أن تكون مساوية أو أكثر من {1}ا",numericMax:"و'{0}' يجب أن تكون مساوية أو أقل من {1}ا",invalidEmail:"الرجاء إدخال بريد الكتروني صحيح",invalidExpression:"يجب أن يعرض التعبير: {0} 'صواب'.",urlRequestError:"طلب إرجاع خطأ '{0}'. {1}ا",urlGetChoicesError:"عاد طلب البيانات فارغ أو 'المسار' غير صحيح ",exceedMaxSize:"ينبغي ألا يتجاوز حجم الملف {0}ا",otherRequiredError:"الرجاء إدخال قيمة أخرى",uploadingFile:"تحميل الملف الخاص بك. يرجى الانتظار عدة ثوان والمحاولة لاحقًا",loadingFile:"جار التحميل...",chooseFile:"اختر الملفات...",noFileChosen:"لم تقم باختيار ملف",confirmDelete:"هل تريد حذف السجل؟",keyDuplicationError:"يجب أن تكون هذه القيمة فريدة.",addColumn:"أضف العمود",addRow:"اضافة صف",removeRow:"إزالة صف",addPanel:"اضف جديد",removePanel:"إزالة",choices_Item:"بند",matrix_column:"عمود",matrix_row:"صف",savingData:"يتم حفظ النتائج على الخادم ...",savingDataError:"حدث خطأ ولم نتمكن من حفظ النتائج.",savingDataSuccess:"تم حفظ النتائج بنجاح!",saveAgainButton:"حاول مجددا",timerMin:"دقيقة",timerSec:"ثانية",timerSpentAll:"لقد أنفقت {0} على هذه الصفحة و {1} إجمالاً.",timerSpentPage:"لقد أنفقت {0} على هذه الصفحة.",timerSpentSurvey:"لقد أنفقت {0} إجمالاً.",timerLimitAll:"لقد أنفقت {0} من {1} في هذه الصفحة و {2} من إجمالي {3}.",timerLimitPage:"لقد أنفقت {0} من {1} في هذه الصفحة.",timerLimitSurvey:"لقد أنفقت {0} من إجمالي {1}.",cleanCaption:"نظيف",clearCaption:"واضح",chooseFileCaption:"اختر ملف",removeFileCaption:"قم بإزالة هذا الملف",booleanCheckedLabel:"نعم",booleanUncheckedLabel:"لا",confirmRemoveFile:"هل أنت متأكد أنك تريد إزالة هذا الملف: {0}؟",confirmRemoveAllFiles:"هل أنت متأكد أنك تريد إزالة كافة الملفات؟",questionTitlePatternText:"عنوان السؤال"};r.a.locales.ar=i,r.a.localeNames.ar="العربية"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Назад",pageNextText:"Напред",completeText:"Край",previewText:"Визуализация",editText:"редактиране",startSurveyText:"Начало",otherItemText:"Друго (опишете)",noneItemText:"Нито един",selectAllItemText:"Всички",progressText:"стр. {0}, общо стр. {1}",panelDynamicProgressText:"Запис {0} от {1}",questionsProgressText:"Отговорени на {0} / {1} въпроса",emptySurvey:"Анкетата не съдържа видими страници или въпроси.",completingSurvey:"Благодарим ви за участието в анкетата!",completingSurveyBefore:"Изглежда, че вие вече сте попълнили анкетата.",loadingSurvey:"Зареждане на анкетата...",optionsCaption:"Изберете...",value:"value",requiredError:"Моля, отговорете на следния въпрос.",requiredErrorInPanel:"Моля, отговорете поне на един от въпросите.",requiredInAllRowsError:"Моля, отговорете на въпросите на всички редове.",numericError:"Стойността следва да бъде число.",textMinLength:"Моля, използвайте поне {0} символа.",textMaxLength:"Моля, използвайте не повече от {0} символа.",textMinMaxLength:"Моля, използвайте повече от {0} и по-малко от {1} символа.",minRowCountError:"Моля, попълнете поне {0} реда.",minSelectError:"Моля, изберете поне {0} варианта.",maxSelectError:"Моля, изберете не повече от {0} варианта.",numericMinMax:"Стойността '{0}' следва да бъде равна или по-голяма от {1} и равна или по-малка от {2}",numericMin:"Стойността '{0}' следва да бъде равна или по-голяма от {1}",numericMax:"Стойността '{0}' следва да бъде равна или по-малка от {1}",invalidEmail:"Моля, въведете валиден адрес на електронна поща.",invalidExpression:"Изразът: {0} трябва да дава резултат 'true' (истина).",urlRequestError:"Заявката води до грешка '{0}'. {1}",urlGetChoicesError:"Заявката не връща данни или частта 'path' (път до търсения ресурс на сървъра) е неправилно зададена",exceedMaxSize:"Размерът на файла следва да не превишава {0}.",otherRequiredError:"Моля, въведете другата стойност.",uploadingFile:"Вашит файл се зарежда на сървъра. Моля, изчакайте няколко секунди и тогава опитвайте отново.",loadingFile:"Зареждане...",chooseFile:"Изберете файл(ове)...",noFileChosen:"Няма избран файл",confirmDelete:"Желаете ли да изтриете записа?",keyDuplicationError:"Стойността следва да бъде уникална.",addColumn:"Добавяне на колона",addRow:"Добавяне на ред",removeRow:"Премахване на ред",addPanel:"Добавяне на панел",removePanel:"Премахване на панел",choices_Item:"елемент",matrix_column:"Колона",matrix_row:"Ред",savingData:"Резултатите се запазват на сървъра...",savingDataError:"Поради възникнала грешка резултатите не можаха да бъдат запазени.",savingDataSuccess:"Резултатите бяха запазени успешно!",saveAgainButton:"Нов опит",timerMin:"мин",timerSec:"сек",timerSpentAll:"Вие използвахте {0} на тази страница и общо {1}.",timerSpentPage:"Вие използвахте {0} на тази страница.",timerSpentSurvey:"Вие използвахте общо {0}.",timerLimitAll:"Вие изпозвахте {0} от {1} на тази страница и общо {2} от {3}.",timerLimitPage:"Вие използвахте {0} от {1} на тази страница.",timerLimitSurvey:"Вие използвахте общо {0} от {1}.",cleanCaption:"Изчистване",clearCaption:"Начално състояние",chooseFileCaption:"Изберете файл",removeFileCaption:"Премахване на файла",booleanCheckedLabel:"Да",booleanUncheckedLabel:"Не",confirmRemoveFile:"Наистина ли искате да премахнете този файл: {0}?",confirmRemoveAllFiles:"Наистина ли искате да премахнете всички файлове?",questionTitlePatternText:"Заглавие на въпроса"};r.a.locales.bg=i,r.a.localeNames.bg="Bulgarian"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Anterior",pageNextText:"Següent",completeText:"Complet",otherItemText:"Un altre (descrigui)",progressText:"Pàgina {0} de {1}",emptySurvey:"No hi ha cap pàgina visible o pregunta a l'enquesta.",completingSurvey:"Gràcies per completar l'enquesta!",loadingSurvey:"L'enquesta s'està carregant ...",optionsCaption:"Selecciona ...",requiredError:"Si us plau contesti la pregunta.",requiredInAllRowsError:"Si us plau contesti les preguntes de cada filera.",numericError:"L'estimació ha de ser numèrica.",textMinLength:"Si us plau entre almenys {0} símbols.",textMaxLength:"Si us plau entre menys de {0} símbols.",textMinMaxLength:"Si us plau entre més de {0} i menys de {1} símbols.",minRowCountError:"Si us plau ompli almenys {0} fileres.",minSelectError:"Si us plau seleccioni almenys {0} variants.",maxSelectError:"Si us plau seleccioni no més de {0} variants.",numericMinMax:"El '{0}' deu ser igual o més de {1} i igual o menys de {2}",numericMin:"El '{0}' ha de ser igual o més de {1}",numericMax:"El '{0}' ha de ser igual o menys de {1}",invalidEmail:"Si us plau afegiu un correu electrònic vàlid.",urlRequestError:"La sol·licitud va tornar error '{0}'. {1}",urlGetChoicesError:"La sol·licitud va tornar buida de dates o la propietat 'trajectòria' no és correcta",exceedMaxSize:"La mida de l'arxiu no pot excedir {0}.",otherRequiredError:"Si us plau afegiu l'altra estimació.",uploadingFile:"El seu arxiu s'està pujant. Si us plau esperi uns segons i intenteu-ho de nou.",addRow:"Afegiu una filera",removeRow:"Eliminar una filera",choices_firstItem:"primer article",choices_secondItem:"segon article",choices_thirdItem:"tercer article",matrix_column:"Columna",matrix_row:"Filera"};r.a.locales.ca=i,r.a.localeNames.ca="català"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Předchozí",pageNextText:"Další",completeText:"Hotovo",previewText:"Náhled",editText:"Upravit",startSurveyText:"Start",otherItemText:"Jiná odpověď (napište)",noneItemText:"Žádný",selectAllItemText:"Vybrat vše",progressText:"Strana {0} z {1}",panelDynamicProgressText:"Záznam {0} z {1}",questionsProgressText:"Zodpovězené otázky: {0} / {1}",emptySurvey:"Průzkumu neobsahuje žádné otázky.",completingSurvey:"Děkujeme za vyplnění průzkumu!",completingSurveyBefore:"Naše záznamy ukazují, že jste tento průzkum již dokončili.",loadingSurvey:"Probíhá načítání průzkumu...",optionsCaption:"Vyber...",value:"hodnota",requiredError:"Odpovězte prosím na otázku.",requiredErrorInPanel:"Please answer at least one question.",requiredInAllRowsError:"Odpovězte prosím na všechny otázky.",numericError:"V tomto poli lze zadat pouze čísla.",textMinLength:"Zadejte prosím alespoň {0} znaků.",textMaxLength:"Zadejte prosím méně než {0} znaků.",textMinMaxLength:"Zadejte prosím více než {0} a méně než {1} znaků.",minRowCountError:"Vyplňte prosím alespoň {0} řádků.",minSelectError:"Vyberte prosím alespoň {0} varianty.",maxSelectError:"Nevybírejte prosím více než {0} variant.",numericMinMax:"Odpověď '{0}' by mělo být větší nebo rovno {1} a menší nebo rovno {2}",numericMin:"Odpověď '{0}' by mělo být větší nebo rovno {1}",numericMax:"Odpověď '{0}' by mělo být menší nebo rovno {1}",invalidEmail:"Zadejte prosím platnou e-mailovou adresu.",invalidExpression:"Výraz: {0} by měl vrátit hodnotu „true“.",urlRequestError:"Požadavek vrátil chybu '{0}'. {1}",urlGetChoicesError:"Požadavek nevrátil data nebo cesta je neplatná",exceedMaxSize:"Velikost souboru by neměla být větší než {0}.",otherRequiredError:"Zadejte prosím jinou hodnotu.",uploadingFile:"Váš soubor se nahrává. Zkuste to prosím za několik sekund.",loadingFile:"Načítání...",chooseFile:"Vyberte soubory ...",noFileChosen:"Není zvolený žádný soubor",confirmDelete:"Chcete smazat záznam?",keyDuplicationError:"Tato hodnota by měla být jedinečná.",addColumn:"Přidat sloupec",addRow:"Přidat řádek",removeRow:"Odstranit",addPanel:"Přidat nový",removePanel:"Odstranit",choices_Item:"položka",matrix_column:"Sloupec",matrix_row:"Řádek",savingData:"Výsledky se ukládají na server ...",savingDataError:"Došlo k chybě a výsledky jsme nemohli uložit.",savingDataSuccess:"Výsledky byly úspěšně uloženy!",saveAgainButton:"Zkus to znovu",timerMin:"min",timerSec:"sek",timerSpentAll:"Na této stránce jste utratili celkem {0} a celkem {1}.",timerSpentPage:"Na této stránce jste utratili {0}.",timerSpentSurvey:"Celkem jste utratili {0}.",timerLimitAll:"Na této stránce jste utratili {0} z {1} a celkem {2} z {3}.",timerLimitPage:"Na této stránce jste strávili {0} z {1}.",timerLimitSurvey:"Celkově jste utratili {0} z {1}.",cleanCaption:"Čistý",clearCaption:"Průhledná",chooseFileCaption:"Vyberte soubor",removeFileCaption:"Odeberte tento soubor",booleanCheckedLabel:"Ano",booleanUncheckedLabel:"Ne",confirmRemoveFile:"Opravdu chcete odebrat tento soubor: {0}?",confirmRemoveAllFiles:"Opravdu chcete odstranit všechny soubory?",questionTitlePatternText:"Název otázky"};r.a.locales.cs=i,r.a.localeNames.cs="čeština"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Tilbage",pageNextText:"Videre",completeText:"Færdig",previewText:"Forpremiere",editText:"Redigér",startSurveyText:"Start",otherItemText:"Valgfrit svar...",noneItemText:"Ingen",selectAllItemText:"Vælg alle",progressText:"Side {0} af {1}",panelDynamicProgressText:"Optag {0} af {1}",questionsProgressText:"Besvarede {0} / {1} spørgsmål",emptySurvey:"Der er ingen synlige spørgsmål.",completingSurvey:"Mange tak for din besvarelse!",completingSurveyBefore:"Vores data viser at du allerede har gennemført dette spørgeskema.",loadingSurvey:"Spørgeskemaet hentes fra serveren...",optionsCaption:"Vælg...",value:"værdi",requiredError:"Besvar venligst spørgsmålet.",requiredErrorInPanel:"Besvar venligst mindst ét spørgsmål.",requiredInAllRowsError:"Besvar venligst spørgsmål i alle rækker.",numericError:"Angiv et tal.",textMinLength:"Angiv mindst {0} tegn.",textMaxLength:"Please enter less than {0} characters.",textMinMaxLength:"Angiv mere end {0} og mindre end {1} tegn.",minRowCountError:"Udfyld mindst {0} rækker.",minSelectError:"Vælg venligst mindst {0} svarmulighed(er).",maxSelectError:"Vælg venligst færre {0} svarmuligheder(er).",numericMinMax:"'{0}' skal være lig med eller større end {1} og lig med eller mindre end {2}",numericMin:"'{0}' skal være lig med eller større end {1}",numericMax:"'{0}' skal være lig med eller mindre end {1}",invalidEmail:"Angiv venligst en gyldig e-mail adresse.",invalidExpression:"Udtrykket: {0} skal returnere 'true'.",urlRequestError:"Forespørgslen returnerede fejlen '{0}'. {1}",urlGetChoicesError:"Forespørgslen returnerede ingen data eller 'path' parameteren er forkert",exceedMaxSize:"Filstørrelsen må ikke overstige {0}.",otherRequiredError:"Angiv en værdi for dit valgfrie svar.",uploadingFile:"Din fil bliver uploadet. Vent nogle sekunder og prøv eventuelt igen.",loadingFile:"Indlæser...",chooseFile:"Vælg fil(er)...",noFileChosen:"Ingen fil er valgt",confirmDelete:"Vil du fjerne den?",keyDuplicationError:"Denne værdi skal være unik.",addColumn:"Tilføj kolonne",addRow:"Tilføj række",removeRow:"Fjern",addPanel:"Tilføj ny",removePanel:"Fjern",choices_Item:"valg",matrix_column:"Kolonne",matrix_row:"Række",savingData:"Resultaterne bliver gemt på serveren...",savingDataError:"Der opstod en fejl og vi kunne ikke gemme resultatet.",savingDataSuccess:"Resultatet blev gemt!",saveAgainButton:"Prøv igen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har brugt {0} på denne side og {1} i alt.",timerSpentPage:"Du har brugt {0} på denne side.",timerSpentSurvey:"Du har brugt {0} i alt.",timerLimitAll:"Du har brugt {0} af {1} på denne side og {2} af {3} i alt.",timerLimitPage:"Du har brugt {0} af {1} på denne side.",timerLimitSurvey:"Du har brugt {0} af {1} i alt.",cleanCaption:"Rens",clearCaption:"Fjern",chooseFileCaption:"Vælg fil",removeFileCaption:"Fjern denne fil",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Ingen",confirmRemoveFile:"Er du sikker på, at du vil fjerne denne fil: {0}?",confirmRemoveAllFiles:"Er du sikker på, at du vil fjerne alle filer?",questionTitlePatternText:"Spørgsmåls titel"};r.a.locales.da=i,r.a.localeNames.da="dansk"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Vorige",pageNextText:"Volgende",completeText:"Verzenden",previewText:"Voorbeeld",editText:"Bewerk",startSurveyText:"Begin met",otherItemText:"Anders, nl.",noneItemText:"Geen",selectAllItemText:"Selecteer Alles",progressText:"Pagina {0} van {1}",panelDynamicProgressText:"Record {0} of {1}",questionsProgressText:"Geantwoord {0}/{1} vragen",emptySurvey:"Er is geen zichtbare pagina of vraag in deze vragenlijst",completingSurvey:"Bedankt voor het invullen van de vragenlijst",completingSurveyBefore:"Onze gegevens tonen aan dat je deze vragenlijst reeds beantwoord hebt.",loadingSurvey:"De vragenlijst is aan het laden...",optionsCaption:"Kies...",value:"waarde",requiredError:"Dit is een vereiste vraag",requiredErrorInPanel:"Gelieve ten minste een vraag te beantwoorden.",requiredInAllRowsError:"Deze vraag vereist één antwoord per rij",numericError:"Het antwoord moet een getal zijn",textMinLength:"Vul minstens {0} karakters in",textMaxLength:"Gelieve minder dan {0} karakters in te vullen.",textMinMaxLength:"Gelieve meer dan {0} en minder dan {1} karakters in te vullen.",minRowCountError:"Gelieve ten minste {0} rijen in te vullen.",minSelectError:"Selecteer minimum {0} antwoorden",maxSelectError:"Selecteer niet meer dan {0} antwoorden",numericMinMax:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1} en kleiner of gelijk aan {2}",numericMin:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}",numericMax:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}",invalidEmail:"Vul een geldig e-mailadres in",invalidExpression:"De uitdrukking: {0} moet 'waar' teruggeven.",urlRequestError:"De vraag keerde een fout terug '{0}'. {1}",urlGetChoicesError:"De vraag gaf een leeg antwoord terug of de 'pad' eigenschap is niet correct",exceedMaxSize:"De grootte van het bestand mag niet groter zijn dan {0}",otherRequiredError:"Vul het veld 'Anders, nl.' in",uploadingFile:"Uw bestand wordt opgeladen. Gelieve enkele seconden te wachten en opnieuw te proberen.",loadingFile:"Opladen...",chooseFile:"Kies uw bestand(en)...",noFileChosen:"Geen bestand gekozen",confirmDelete:"Wil je deze gegevens verwijderen?",keyDuplicationError:"Deze waarde moet uniek zijn.",addColumn:"Voeg kolom toe",addRow:"Voeg rij toe",removeRow:"Verwijder",addPanel:"Nieuwe toevoegen",removePanel:"Verwijder",choices_Item:"onderwerp",matrix_column:"Kolom",matrix_row:"Rij",savingData:"De resultaten worden bewaard op de server...",savingDataError:"Er was een probleem en we konden de resultaten niet bewaren.",savingDataSuccess:"De resultaten werden succesvol bewaard!",saveAgainButton:"Probeer opnieuw",timerMin:"minimum",timerSec:"sec",timerSpentAll:"U heeft {0} gespendeerd op deze pagina en {1} in totaal.",timerSpentPage:"U heeft {0} op deze pagina gespendeerd.",timerSpentSurvey:"U heeft in totaal {0} gespendeerd.",timerLimitAll:"U heeft {0} van {1} op deze pagina gespendeerd en {2} van {3} in totaal.",timerLimitPage:"U heeft {0} van {1} gespendeerd op deze pagina.",timerLimitSurvey:"U heeft {0} van {1} in het totaal.",cleanCaption:"Kuis op",clearCaption:"Kuis op",chooseFileCaption:"Gekozen bestand",removeFileCaption:"Verwijder deze file",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Neen",confirmRemoveFile:"Bent u zeker dat u deze file wilt verwijderen: {0}?",confirmRemoveAllFiles:"Bent u zeker dat u al deze files wilt verwijderen?",questionTitlePatternText:"Titel van de vraag"};r.a.locales.nl=i,r.a.localeNames.nl="nederlands"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Tagasi",pageNextText:"Edasi",completeText:"Lõpeta",previewText:"Eelvaade",editText:"Muuda",startSurveyText:"Alusta",otherItemText:"Muu (täpsusta)",noneItemText:"Mitte midagi",selectAllItemText:"Vali kõik",progressText:"Lehekülg {0}/{1}",panelDynamicProgressText:"Kirje {0}/{1}",questionsProgressText:"Vastatud {0} küsimust {1}-st",emptySurvey:"Selles uuringus ei ole ühtki nähtavat lehekülge või küsimust.",completingSurvey:"Aitäh, et vastasid ankeedile!",completingSurveyBefore:"Meie andmetel oled sa sellele ankeedile juba vastanud.",loadingSurvey:"Laen ankeeti...",optionsCaption:"Vali...",value:"väärtus",requiredError:"Palun vasta küsimusele.",requiredErrorInPanel:"Palun vasta vähemalt ühele küsimusele.",requiredInAllRowsError:"Palun anna vastus igal real.",numericError:"See peaks olema numbriline väärtus.",textMinLength:"Palun sisesta vähemalt {0} tähemärki.",textMaxLength:"Palun ära sisesta rohkem kui {0} tähemärki.",textMinMaxLength:"Sisesta palun {0} - {1} tähemärki.",minRowCountError:"Sisesta plaun vähemalt {0} rida.",minSelectError:"Palun vali vähemalt {0} varianti.",maxSelectError:"Palun vali kõige rohkem {0} varianti.",numericMinMax:"'{0}' peaks olema võrdne või suurem kui {1} ja võrdne või väiksem kui {2}",numericMin:"'{0}' peaks olema võrdne või suurem kui {1}",numericMax:"'{0}' peaks olema võrnde või väiksem kui {1}",invalidEmail:"Sisesta palun korrektne e-posti aadress.",invalidExpression:"Avaldis: {0} peaks tagastama tõese.",urlRequestError:"Taotlus tagastas vea „{0}”. {1}",urlGetChoicesError:"Taotlus tagastas tühjad andmed või atribuut 'path' on vale",exceedMaxSize:"Faili suurus ei tohi ületada {0}.",otherRequiredError:"Sisesta palun muu vastus.",uploadingFile:"Sinu fail laeb üles. Palun oota mõned sekundid ning proovi seejärel uuesti.",loadingFile:"Laen...",chooseFile:"Vali fail(id)...",noFileChosen:"Faili pole valitud",confirmDelete:"Kas tahad kirje kustutada?",keyDuplicationError:"See väärtus peab olema unikaalne.",addColumn:"Lisa veerg",addRow:"Lisa rida",removeRow:"Eemalda",addPanel:"Lisa uus",removePanel:"Eemalda",choices_Item:"üksus",matrix_column:"Veerg",matrix_row:"Rida",savingData:"Salvestan andmed serveris...",savingDataError:"Tekkis viga ning me ei saanud vastuseid salvestada.",savingDataSuccess:"Vastuste salvestamine õnnestus!",saveAgainButton:"Proovi uuesti",timerMin:"min",timerSec:"sek",timerSpentAll:"Oled veetnud {0} sellel lehel ning kokku {1}.",timerSpentPage:"Oled veetnud {0} sellel lehel.",timerSpentSurvey:"Oled veetnud {0} kokku.",timerLimitAll:"Oled kulutanud {0} võimalikust {1} sellel lehel ning {2} võimalikust {3} kokku.",timerLimitPage:"Oled kulutanud {0} võimalikust {1} sellel lehel.",timerLimitSurvey:"Oled kulutanud {0} võimalikust {1} koguajast.",cleanCaption:"Puhasta",clearCaption:"Puhasta",chooseFileCaption:"Vali fail",removeFileCaption:"Eemalda see fail",booleanCheckedLabel:"Jah",booleanUncheckedLabel:"Ei",confirmRemoveFile:"Oled sa kindel, et soovid selle faili eemaldada: {0}?",confirmRemoveAllFiles:"Oled sa kindel, et soovid eemaldada kõik failid?",questionTitlePatternText:"Küsimuse pealkiri"};r.a.locales.et=i,r.a.localeNames.et="eesti keel"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Edellinen",pageNextText:"Seuraava",completeText:"Valmis",previewText:"Esikatselu",editText:"Muokata",startSurveyText:"alkaa",otherItemText:"Muu (kuvaile)",noneItemText:"Ei mitään",selectAllItemText:"Valitse kaikki",progressText:"Sivu {0}/{1}",panelDynamicProgressText:"Nauhoita {0} / {1}",questionsProgressText:"Vastasi kysymyksiin {0} / {1}",emptySurvey:"Tässä kyselyssä ei ole yhtäkään näkyvillä olevaa sivua tai kysymystä.",completingSurvey:"Kiitos kyselyyn vastaamisesta!",completingSurveyBefore:"Tietojemme mukaan olet jo suorittanut tämän kyselyn.",loadingSurvey:"Kyselyä ladataan palvelimelta...",optionsCaption:"Valitse...",value:"arvo",requiredError:"Vastaa kysymykseen, kiitos.",requiredErrorInPanel:"Vastaa ainakin yhteen kysymykseen.",requiredInAllRowsError:"Vastaa kysymyksiin kaikilla riveillä.",numericError:"Arvon tulee olla numeerinen.",textMinLength:"Ole hyvä ja syötä vähintään {0} merkkiä.",textMaxLength:"Anna alle {0} merkkiä.",textMinMaxLength:"Anna yli {0} ja alle {1} merkkiä.",minRowCountError:"Täytä vähintään {0} riviä.",minSelectError:"Ole hyvä ja valitse vähintään {0} vaihtoehtoa.",maxSelectError:"Ole hyvä ja valitse enintään {0} vaihtoehtoa.",numericMinMax:"'{0}' täytyy olla enemmän tai yhtä suuri kuin {1} ja vähemmän tai yhtä suuri kuin {2}",numericMin:"'{0}' täytyy olla enemmän tai yhtä suuri kuin {1}",numericMax:"'{0}' täytyy olla vähemmän tai yhtä suuri kuin {1}",invalidEmail:"Syötä validi sähköpostiosoite.",invalidExpression:"Lausekkeen: {0} pitäisi palauttaa 'true'.",urlRequestError:"Pyyntö palautti virheen {0}. {1}",urlGetChoicesError:"Pyyntö palautti tyhjät tiedot tai polku-ominaisuus on väärä",exceedMaxSize:"Tiedoston koko ei saa olla suurempi kuin {0}.",otherRequiredError:"Anna toinen arvo.",uploadingFile:"Tiedostoa ladataan. Odota muutama sekunti ja yritä uudelleen.",loadingFile:"Ladataan...",chooseFile:"Valitse tiedosto (t) ...",noFileChosen:"Ei tiedostoa valittuna",confirmDelete:"Haluatko poistaa tietueen?",keyDuplicationError:"Tämän arvon tulisi olla ainutlaatuinen.",addColumn:"Lisää sarake",addRow:"Lisää rivi",removeRow:"Poista",addPanel:"Lisää uusi",removePanel:"Poista",choices_Item:"kohde",matrix_column:"Sarake",matrix_row:"Rivi",savingData:"Tulokset tallennetaan palvelimelle ...",savingDataError:"Tapahtui virhe, emmekä voineet tallentaa tuloksia.",savingDataSuccess:"Tulokset tallennettiin onnistuneesti!",saveAgainButton:"Yritä uudelleen",timerMin:"min",timerSec:"sek",timerSpentAll:"Olet käyttänyt {0} tällä sivulla ja yhteensä {1}.",timerSpentPage:"Olet viettänyt {0} tällä sivulla.",timerSpentSurvey:"Olet käyttänyt yhteensä {0}.",timerLimitAll:"Olet käyttänyt tällä sivulla {0} / {1} ja yhteensä {2} / {3}.",timerLimitPage:"Olet käyttänyt {0} / {1} tällä sivulla.",timerLimitSurvey:"Olet käyttänyt yhteensä {0} / {1}.",cleanCaption:"Puhdas",clearCaption:"Asia selvä",chooseFileCaption:"Valitse tiedosto",removeFileCaption:"Poista tämä tiedosto",booleanCheckedLabel:"Joo",booleanUncheckedLabel:"Ei",confirmRemoveFile:"Haluatko varmasti poistaa tämän tiedoston: {0}?",confirmRemoveAllFiles:"Haluatko varmasti poistaa kaikki tiedostot?",questionTitlePatternText:"Kysymyksen otsikko"};r.a.locales.fi=i,r.a.localeNames.fi="suomalainen"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Précédent",pageNextText:"Suivant",completeText:"Terminer",previewText:"Aperçu",editText:"Éditer",startSurveyText:"Commencer",otherItemText:"Autre (préciser)",noneItemText:"Aucun",selectAllItemText:"Tout sélectionner",progressText:"Page {0} sur {1}",panelDynamicProgressText:"Enregistrement {0} sur {1}",questionsProgressText:"{0}/{1} question(s) répondue(s)",emptySurvey:"Il n'y a ni page visible ni question visible dans ce questionnaire",completingSurvey:"Merci d'avoir répondu au questionnaire !",completingSurveyBefore:"Nos données indiquent que vous avez déjà rempli ce questionnaire.",loadingSurvey:"Le questionnaire est en cours de chargement...",optionsCaption:"Choisissez...",value:"valeur",requiredError:"La réponse à cette question est obligatoire.",requiredErrorInPanel:"Merci de répondre au moins à une question.",requiredInAllRowsError:"Toutes les lignes sont obligatoires",numericError:"La réponse doit être un nombre.",textMinLength:"Merci de saisir au moins {0} caractères.",textMaxLength:"Merci de saisir moins de {0} caractères.",textMinMaxLength:"Merci de saisir entre {0} et {1} caractères.",minRowCountError:"Merci de compléter au moins {0} lignes.",minSelectError:"Merci de sélectionner au minimum {0} réponses.",maxSelectError:"Merci de sélectionner au maximum {0} réponses.",numericMinMax:"Votre réponse '{0}' doit être supérieure ou égale à {1} et inférieure ou égale à {2}",numericMin:"Votre réponse '{0}' doit être supérieure ou égale à {1}",numericMax:"Votre réponse '{0}' doit être inférieure ou égale à {1}",invalidEmail:"Merci d'entrer une adresse mail valide.",invalidExpression:"L'expression: {0} doit retourner 'true'.",urlRequestError:"La requête a renvoyé une erreur '{0}'. {1}",urlGetChoicesError:"La requête a renvoyé des données vides ou la propriété 'path' est incorrecte",exceedMaxSize:"La taille du fichier ne doit pas excéder {0}.",otherRequiredError:"Merci de préciser le champ 'Autre'.",uploadingFile:"Votre fichier est en cours de chargement. Merci d'attendre quelques secondes et de réessayer.",loadingFile:"Chargement...",chooseFile:"Ajouter des fichiers...",noFileChosen:"Aucun fichier ajouté",confirmDelete:"Voulez-vous supprimer cet enregistrement ?",keyDuplicationError:"Cette valeur doit être unique.",addColumn:"Ajouter une colonne",addRow:"Ajouter une ligne",removeRow:"Supprimer",addPanel:"Ajouter",removePanel:"Supprimer",choices_Item:"item",matrix_column:"Colonne",matrix_row:"Ligne",savingData:"Les résultats sont en cours de sauvegarde sur le serveur...",savingDataError:"Une erreur est survenue et a empêché la sauvegarde des résultats.",savingDataSuccess:"Les résultats ont bien été enregistrés !",saveAgainButton:"Réessayer",timerMin:"min",timerSec:"sec",timerSpentAll:"Vous avez passé {0} sur cette page et {1} au total.",timerSpentPage:"Vous avez passé {0} sur cette page.",timerSpentSurvey:"Vous avez passé {0} au total.",timerLimitAll:"Vous avez passé {0} sur {1} sur cette page et {2} sur {3} au total.",timerLimitPage:"Vous avez passé {0} sur {1} sur cette page.",timerLimitSurvey:"Vous avez passé {0} sur {1} au total.",cleanCaption:"Nettoyer",clearCaption:"Vider",chooseFileCaption:"Ajouter un fichier",removeFileCaption:"Enlever ce fichier",booleanCheckedLabel:"Oui",booleanUncheckedLabel:"Non",confirmRemoveFile:"Êtes-vous certains de vouloir supprimer ce fichier : {0}?",confirmRemoveAllFiles:"Êtes-vous certains de vouloir supprimer tous les fichiers?",questionTitlePatternText:"Titre de la question"};r.a.locales.fr=i,r.a.localeNames.fr="français"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"უკან",pageNextText:"შემდეგ",completeText:"დასრულება",progressText:"გვერდი {0} / {1}",emptySurvey:"არცერთი კითხვა არ არის.",completingSurvey:"გმადლობთ კითხვარის შევსებისთვის!",loadingSurvey:"ჩატვირთვა სერვერიდან...",otherItemText:"სხვა (გთხოვთ მიუთითეთ)",optionsCaption:"არჩევა...",requiredError:"გთხოვთ უპასუხეთ კითხვას.",numericError:"პასუხი უნდა იყოს რიცხვი.",textMinLength:"გთხოვთ შეიყვანეთ არანაკლებ {0} სიმბოლო.",minSelectError:"გთხოვთ აირჩიეთ არანაკლებ {0} ვარიანტი.",maxSelectError:"გთხოვთ აირჩიეთ არაუმეტეს {0} ვარიანტი.",numericMinMax:"'{0}' უნდა იყოს მეტი ან ტოლი, ვიდრე {1}, და ნაკლები ან ტოლი ვიდრე {2}",numericMin:"'{0}' უნდა იყოს მეტი ან ტოლი ვიდრე {1}",numericMax:"'{0}' უნდა იყოს ნაკლები ან ტოლი ვიდრე {1}",invalidEmail:"გთხოვთ შეიყვანოთ ელ. ფოსტის რეალური მისამართი.",otherRequiredEror:"გთხოვთ შეავსეთ ველი 'სხვა'"};r.a.locales.ka=i,r.a.localeNames.ka="ქართული"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Zurück",pageNextText:"Weiter",completeText:"Abschließen",previewText:"Vorschau",editText:"Bearbeiten",startSurveyText:"Start",otherItemText:"Sonstiges (Bitte angeben)",noneItemText:"Nichts trifft zu",selectAllItemText:"Alles auswählen",progressText:"Seite {0} von {1}",panelDynamicProgressText:"Eintrag {0} von {1}",questionsProgressText:"{0}/{1} Fragen beantwortet",emptySurvey:"Es sind keine Fragen vorhanden.",completingSurvey:"Vielen Dank, dass Sie die Umfrage abgeschlossen haben!",completingSurveyBefore:"Wir haben festgestellt, dass Sie diese Umfrage bereits abgeschlossen haben.",loadingSurvey:"Umfrage wird geladen...",optionsCaption:"Bitte auswählen...",value:"Wert",requiredError:"Bitte beantworten Sie diese Frage.",requiredErrorInPanel:"Bitte beantworten Sie mindestens eine Frage.",requiredInAllRowsError:"Bitte beantworten Sie alle Fragen.",numericError:"Der Wert muss eine Zahl sein.",textMinLength:"Bitte geben Sie mindestens {0} Zeichen ein.",textMaxLength:"Bitte geben Sie nicht mehr als {0} Zeichen ein.",textMinMaxLength:"Bitte geben Sie mindestens {0} und maximal {1} Zeichen ein.",minRowCountError:"Bitte machen Sie in mindestens {0} Zeilen eine Eingabe.",minSelectError:"Bitte wählen Sie mindestens {0} Antwort(en) aus.",maxSelectError:"Bitte wählen Sie nicht mehr als {0} Antwort(en) aus.",numericMinMax:"'{0}' muss größer oder gleich {1} und kleiner oder gleich {2} sein",numericMin:"'{0}' muss größer oder gleich {1} sein",numericMax:"'{0}' muss kleiner oder gleich {1} sein",invalidEmail:"Bitte geben Sie eine gültige E-Mail-Adresse ein.",invalidExpression:"Der Ausdruck: {0} muss den Wert 'wahr' zurückgeben.",urlRequestError:"Ein Netzwerkdienst hat folgenden Fehler zurückgegeben '{0}'. {1}",urlGetChoicesError:"Eine Netzwerkdienst hat ungültige Daten zurückgegeben",exceedMaxSize:"Die Datei darf nicht größer als {0} sein.",otherRequiredError:"Bitte geben Sie einen Wert an.",uploadingFile:"Bitte warten Sie bis der Upload Ihrer Dateien abgeschlossen ist.",loadingFile:"Wird hochgeladen...",chooseFile:"Datei(en) auswählen...",noFileChosen:"Keine Datei ausgewählt",confirmDelete:"Wollen Sie den Eintrag löschen?",keyDuplicationError:"Dieser Wert muss einmalig sein.",addColumn:"Spalte hinzufügen",addRow:"Zeile hinzufügen",removeRow:"Entfernen",addPanel:"Neu hinzufügen",removePanel:"Entfernen",choices_Item:"Element",matrix_column:"Spalte",matrix_row:"Zeile",savingData:"Die Ergebnisse werden auf dem Server gespeichert...",savingDataError:"Es ist ein Fehler aufgetreten. Die Ergebnisse konnten nicht gespeichert werden.",savingDataSuccess:"Die Ergebnisse wurden gespeichert!",saveAgainButton:"Erneut absenden",timerMin:"Min.",timerSec:"Sek.",timerSpentAll:"Sie waren {0} auf dieser Seite und brauchten insgesamt {1}.",timerSpentPage:"Sie waren {0} auf dieser Seite.",timerSpentSurvey:"Sie haben insgesamt {0} gebraucht.",timerLimitAll:"Sie waren {0} von {1} auf dieser Seite und brauchten insgesamt {2} von {3}.",timerLimitPage:"Sie waren {0} von {1} auf dieser Seite.",timerLimitSurvey:"Sie haben insgesamt {0} von {1} gebraucht.",cleanCaption:"Alles löschen",clearCaption:"Auswahl entfernen",chooseFileCaption:"Datei auswählen",removeFileCaption:"Datei löschen",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Nein",confirmRemoveFile:"Sind Sie sicher, dass Sie diese Datei löschen möchten: {0}?",confirmRemoveAllFiles:"Sind Sie sicher, dass Sie alle Dateien löschen möchten?",questionTitlePatternText:"Fragentitel"};r.a.locales.de=i,r.a.localeNames.de="deutsch"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Προηγούμενο",pageNextText:"Επόμενο",completeText:"Ολοκλήρωση",previewText:"Προεπισκόπηση",editText:"Επεξεργασία",startSurveyText:"Αρχή",otherItemText:"Άλλο (παρακαλώ διευκρινίστε)",noneItemText:"Κανένας",selectAllItemText:"Επιλογή όλων",progressText:"Σελίδα {0} από {1}",panelDynamicProgressText:"Εγγραφή {0} από {1}",questionsProgressText:"Απαντήθηκαν {0} / {1} ερωτήσεις",emptySurvey:"Δεν υπάρχει καμία ορατή σελίδα ή ορατή ερώτηση σε αυτό το ερωτηματολόγιο.",completingSurvey:"Ευχαριστούμε για την συμπλήρωση αυτού του ερωτηματολογίου!",completingSurveyBefore:"Τα αρχεία μας δείχνουν ότι έχετε ήδη ολοκληρώσει αυτήν την έρευνα.",loadingSurvey:"Το ερωτηματολόγιο φορτώνεται απο το διακομιστή...",optionsCaption:"Επιλέξτε...",value:"αξία",requiredError:"Παρακαλώ απαντήστε στην ερώτηση.",requiredErrorInPanel:"Απαντήστε σε τουλάχιστον μία ερώτηση.",requiredInAllRowsError:"Παρακαλώ απαντήστε στις ερωτήσεις σε όλες τις γραμμές.",numericError:"Η τιμή πρέπει να είναι αριθμητική.",textMinLength:"Παρακαλώ συμπληρώστε τουλάχιστον {0} σύμβολα.",textMaxLength:"Εισαγάγετε λιγότερους από {0} χαρακτήρες.",textMinMaxLength:"Εισαγάγετε περισσότερους από {0} και λιγότερους από {1} χαρακτήρες.",minRowCountError:"Παρακαλώ συμπληρώστε τουλάχιστον {0} γραμμές.",minSelectError:"Παρακαλώ επιλέξτε τουλάχιστον {0} παραλλαγές.",maxSelectError:"Παρακαλώ επιλέξτε όχι παραπάνω απο {0} παραλλαγές.",numericMinMax:"Το '{0}' θα πρέπει να είναι ίσο ή μεγαλύτερο απο το {1} και ίσο ή μικρότερο απο το {2}",numericMin:"Το '{0}' πρέπει να είναι μεγαλύτερο ή ισο με το {1}",numericMax:"Το '{0}' πρέπει να είναι μικρότερο ή ίσο απο το {1}",invalidEmail:"Παρακαλώ δώστε μια αποδεκτή διεύθυνση e-mail.",invalidExpression:"Η έκφραση: {0} θα πρέπει να επιστρέψει 'true'.",urlRequestError:"Η αίτηση επέστρεψε σφάλμα '{0}'. {1}",urlGetChoicesError:"Η αίτηση επέστρεψε κενά δεδομένα ή η ιδιότητα 'μονοπάτι/path' είναι εσφαλμένη",exceedMaxSize:"Το μέγεθος δεν μπορεί να υπερβαίνει τα {0}.",otherRequiredError:"Παρακαλώ συμπληρώστε την τιμή για το πεδίο 'άλλο'.",uploadingFile:"Το αρχείο σας ανεβαίνει. Παρακαλώ περιμένετε καποια δευτερόλεπτα και δοκιμάστε ξανά.",loadingFile:"Φόρτωση...",chooseFile:"Επιλογή αρχείων ...",noFileChosen:"Δεν έχει επιλεγεί αρχείο",confirmDelete:"Θέλετε να διαγράψετε την εγγραφή;",keyDuplicationError:"Αυτή η τιμή πρέπει να είναι μοναδική.",addColumn:"Προσθήκη στήλης",addRow:"Προσθήκη γραμμής",removeRow:"Αφαίρεση",addPanel:"Προσθεσε νεο",removePanel:"Αφαιρώ",choices_Item:"είδος",matrix_column:"Στήλη",matrix_row:"Σειρά",savingData:"Τα αποτελέσματα αποθηκεύονται στον διακομιστή ...",savingDataError:"Παρουσιάστηκε σφάλμα και δεν ήταν δυνατή η αποθήκευση των αποτελεσμάτων.",savingDataSuccess:"Τα αποτελέσματα αποθηκεύτηκαν με επιτυχία!",saveAgainButton:"Προσπάθησε ξανά",timerMin:"ελάχ",timerSec:"δευτ",timerSpentAll:"Έχετε δαπανήσει {0} σε αυτήν τη σελίδα και {1} συνολικά.",timerSpentPage:"Έχετε ξοδέψει {0} σε αυτήν τη σελίδα.",timerSpentSurvey:"Έχετε ξοδέψει συνολικά {0}.",timerLimitAll:"Έχετε δαπανήσει {0} από {1} σε αυτήν τη σελίδα και {2} από {3} συνολικά.",timerLimitPage:"Έχετε ξοδέψει {0} από {1} σε αυτήν τη σελίδα.",timerLimitSurvey:"Έχετε ξοδέψει {0} από {1} συνολικά.",cleanCaption:"ΚΑΘΑΡΗ",clearCaption:"Σαφή",chooseFileCaption:"Επιλέξτε το αρχείο",removeFileCaption:"Καταργήστε αυτό το αρχείο",booleanCheckedLabel:"Ναί",booleanUncheckedLabel:"Οχι",confirmRemoveFile:"Είστε βέβαιοι ότι θέλετε να καταργήσετε αυτό το αρχείο: {0};",confirmRemoveAllFiles:"Είστε βέβαιοι ότι θέλετε να καταργήσετε όλα τα αρχεία;",questionTitlePatternText:"Τίτλος ερώτησης"};r.a.locales.gr=i,r.a.localeNames.gr="ελληνικά"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"אחורה",pageNextText:"קדימה",completeText:"סיום",previewText:"תצוגה מקדימה",editText:"לַעֲרוֹך",startSurveyText:"הַתחָלָה",otherItemText:"אחר (נא לתאר)",noneItemText:"אף אחד",selectAllItemText:"בחר הכל",progressText:"דף {1} מתוך {0}",panelDynamicProgressText:"הקלטה {0} מתוך {1}",questionsProgressText:"ענה על שאלות",emptySurvey:"אין שאלות",completingSurvey:"תודה על מילוי השאלון!",completingSurveyBefore:"הרשומות שלנו מראות שכבר סיימת את הסקר הזה.",loadingSurvey:"טעינה מהשרת...",optionsCaption:"בחר...",value:"ערך",requiredError:"אנא השב על השאלה",requiredErrorInPanel:"אנא ענה לפחות על שאלה אחת.",requiredInAllRowsError:"אנא ענה על שאלות בכל השורות.",numericError:"התשובה צריכה להיות מספר.",textMinLength:"הזן לפחות {0} תווים.",textMaxLength:"הזן פחות מ- {0} תווים.",textMinMaxLength:"הזן יותר מ- {0} ופחות מ- {1} תווים.",minRowCountError:"אנא מלא לפחות {0} שורות.",minSelectError:"בחר לפחות {0} אפשרויות.",maxSelectError:"בחר עד {0} אפשרויות.",numericMinMax:"'{0}' חייב להיות שווה או גדול מ {1}, ושווה ל- {2} או פחות מ- {}}",numericMin:"'{0}' חייב להיות שווה או גדול מ {1}",numericMax:"'{0}' חייב להיות שווה או קטן מ {1}",invalidEmail:'הזן כתובת דוא"ל חוקית.',invalidExpression:"הביטוי: {0} צריך להחזיר 'אמת'.",urlRequestError:"הבקשה החזירה את השגיאה '{0}'. {1}",urlGetChoicesError:"הבקשה החזירה נתונים ריקים או שהמאפיין 'נתיב' שגוי",exceedMaxSize:"גודל הקובץ לא יעלה על {0}.",otherRequiredError:'נא להזין נתונים בשדה "אחר"',uploadingFile:"הקובץ שלך נטען. המתן מספר שניות ונסה שוב.",loadingFile:"טוען...",chooseFile:"לבחור קבצים...",noFileChosen:"לא נבחר קובץ",confirmDelete:"האם אתה רוצה למחוק את הרשומה?",keyDuplicationError:"ערך זה צריך להיות ייחודי.",addColumn:"הוסף עמודה",addRow:"להוסיף שורה",removeRow:"לְהַסִיר",addPanel:"הוסף חדש",removePanel:"לְהַסִיר",choices_Item:"פריט",matrix_column:"טור",matrix_row:"שׁוּרָה",savingData:"התוצאות נשמרות בשרת ...",savingDataError:"אירעה שגיאה ולא הצלחנו לשמור את התוצאות.",savingDataSuccess:"התוצאות נשמרו בהצלחה!",saveAgainButton:"נסה שוב",timerMin:"דקה",timerSec:"שניות",timerSpentAll:"הוצאת {0} בדף זה ובסך הכל {1}.",timerSpentPage:"הוצאת {0} בדף זה.",timerSpentSurvey:"הוצאת סכום כולל של {0}.",timerLimitAll:"הוצאת {0} מתוך {1} בדף זה ו- {2} מתוך {3} בסך הכל.",timerLimitPage:"הוצאת {0} מתוך {1} בדף זה.",timerLimitSurvey:"הוצאת סכום כולל של {0} מתוך {1}.",cleanCaption:"לְנַקוֹת",clearCaption:"ברור",chooseFileCaption:"בחר קובץ",removeFileCaption:"הסר קובץ זה",booleanCheckedLabel:"כן",booleanUncheckedLabel:"לא",confirmRemoveFile:"האם אתה בטוח שברצונך להסיר קובץ זה: {0}?",confirmRemoveAllFiles:"האם אתה בטוח שברצונך להסיר את כל הקבצים?",questionTitlePatternText:"כותרת שאלה"};r.a.locales.he=i,r.a.localeNames.he="עברית"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Vissza",pageNextText:"Tovább",completeText:"Kész",previewText:"Előnézet",editText:"Szerkesztés",startSurveyText:"Rajt",otherItemText:"Egyéb (adja meg)",noneItemText:"Egyik sem",selectAllItemText:"Mindet kiválaszt",progressText:"{0}./{1} oldal",panelDynamicProgressText:"{0} / {1} rekord",questionsProgressText:"Válaszolt kérdések: {0} / {1}",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Köszönjük, hogy kitöltötte felmérésünket!",completingSurveyBefore:"Már kitöltötte a felmérést.",loadingSurvey:"Felmérés betöltése...",optionsCaption:"Válasszon...",value:"érték",requiredError:"Kérjük, válaszolja meg ezt a kérdést!",requiredErrorInPanel:"Kérjük, válaszoljon legalább egy kérdésre.",requiredInAllRowsError:"Kérjük adjon választ minden sorban!",numericError:"Az érték szám kell, hogy legyen!",textMinLength:"Adjon meg legalább {0} karaktert!",textMaxLength:"Legfeljebb {0} karaktert adjon meg!",textMinMaxLength:"Adjon meg legalább {0}, de legfeljebb {1} karaktert!",minRowCountError:"Töltsön ki minimum {0} sort!",minSelectError:"Válasszon ki legalább {0} lehetőséget!",maxSelectError:"Ne válasszon többet, mint {0} lehetőség!",numericMinMax:"'{0}' legyen nagyobb, vagy egyenlő, mint {1} és kisebb, vagy egyenlő, mint {2}!",numericMin:"'{0}' legyen legalább {1}!",numericMax:"The '{0}' ne legyen nagyobb, mint {1}!",invalidEmail:"Adjon meg egy valós email címet!",invalidExpression:"A következő kifejezés: {0} vissza kell adnia az „igaz” értéket.",urlRequestError:"A lekérdezés hibával tért vissza: '{0}'. {1}",urlGetChoicesError:"A lekérdezés üres adattal tért vissza, vagy a 'path' paraméter helytelen.",exceedMaxSize:"A méret nem lehet nagyobb, mint {0}.",otherRequiredError:"Adja meg az egyéb értéket!",uploadingFile:"Feltöltés folyamatban. Várjon pár másodpercet, majd próbálja újra.",loadingFile:"Betöltés...",chooseFile:"Fájlok kiválasztása ...",noFileChosen:"Nincs kiválasztva fájl",confirmDelete:"Törli ezt a rekordot?",keyDuplicationError:"Az értéknek egyedinek kell lennie.",addColumn:"Oszlop hozzáadása",addRow:"Sor hozzáadása",removeRow:"Eltávolítás",addPanel:"Új hozzáadása",removePanel:"Eltávolítás",choices_Item:"elem",matrix_column:"Oszlop",matrix_row:"Sor",savingData:"Eredmény mentése a szerverre...",savingDataError:"Egy hiba folytán nem tudtuk elmenteni az eredményt.",savingDataSuccess:"Eredmény sikeresen mentve!",saveAgainButton:"Próbálja újra",timerMin:"min",timerSec:"sec",timerSpentAll:"Ön {0} összeget költött ezen az oldalon, és összesen {1}.",timerSpentPage:"{0} összeget költött ezen az oldalon.",timerSpentSurvey:"Összesen {0} költött.",timerLimitAll:"Ön {0} / {1} összeget költött ezen az oldalon, és összesen {2} / {3}.",timerLimitPage:"Ön {0} / {1} összeget költött ezen az oldalon.",timerLimitSurvey:"Összesen {0} / {1} összeget költött el.",cleanCaption:"Tiszta",clearCaption:"Egyértelmű",chooseFileCaption:"Válassz fájlt",removeFileCaption:"Távolítsa el ezt a fájlt",booleanCheckedLabel:"Igen",booleanUncheckedLabel:"Nem",confirmRemoveFile:"Biztosan eltávolítja ezt a fájlt: {0}?",confirmRemoveAllFiles:"Biztosan el akarja távolítani az összes fájlt?",questionTitlePatternText:"Kérdés címe"};r.a.locales.hu=i,r.a.localeNames.hu="magyar"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Tilbaka",pageNextText:"Áfram",completeText:"Lokið",previewText:"Forskoða",editText:"Breyta",startSurveyText:"Byrjaðu",otherItemText:"Hinn (skýring)",noneItemText:"Enginn",selectAllItemText:"Velja allt",progressText:"Síða {0} of {1}",panelDynamicProgressText:"Taka upp {0} af {1}",questionsProgressText:"Svarað {0} / {1} spurningum",emptySurvey:"Það er enginn síða eða spurningar í þessari könnun.",completingSurvey:"Takk fyrir að fyllja út þessa könnun!",completingSurveyBefore:"Skrár okkar sýna að þú hefur þegar lokið þessari könnun.",loadingSurvey:"Könnunin er að hlaða...",optionsCaption:"Veldu...",value:"gildi",requiredError:"Vinsamlegast svarið spurningunni.",requiredErrorInPanel:"Vinsamlegast svaraðu að minnsta kosti einni spurningu.",requiredInAllRowsError:"Vinsamlegast svarið spurningum í öllum röðum.",numericError:"Þetta gildi verður að vera tala.",textMinLength:"Það ætti að vera minnst {0} tákn.",textMaxLength:"Það ætti að vera mest {0} tákn.",textMinMaxLength:"Það ætti að vera fleiri en {0} og færri en {1} tákn.",minRowCountError:"Vinsamlegast fyllið úr að minnsta kosti {0} raðir.",minSelectError:"Vinsamlegast veljið að minnsta kosti {0} möguleika.",maxSelectError:"Vinsamlegast veljið ekki fleiri en {0} möguleika.",numericMinMax:"'{0}' ætti að vera meira en eða jafnt og {1} minna en eða jafnt og {2}",numericMin:"{0}' ætti að vera meira en eða jafnt og {1}",numericMax:"'{0}' ætti að vera minna en eða jafnt og {1}",invalidEmail:"Vinsamlegast sláið inn gilt netfang.",invalidExpression:"Tjáningin: {0} ætti að skila 'satt'.",urlRequestError:"Beiðninn skilaði eftirfaranadi villu '{0}'. {1}",urlGetChoicesError:"Beiðninng skilaði engum gögnum eða slóðinn var röng",exceedMaxSize:"Skráinn skal ekki vera stærri en {0}.",otherRequiredError:"Vinamlegast fyllið út hitt gildið.",uploadingFile:"Skráinn þín var send. Vinsamlegast bíðið í nokkrar sekúndur og reynið aftur.",loadingFile:"Hleður ...",chooseFile:"Veldu skrár ...",noFileChosen:"Engin skrá valin",confirmDelete:"Viltu eyða skránni?",keyDuplicationError:"Þetta gildi ætti að vera einstakt.",addColumn:"Bæta við dálki",addRow:"Bæta við röð",removeRow:"Fjarlægja",addPanel:"Bæta við nýju",removePanel:"Fjarlægðu",choices_Item:"hlutur",matrix_column:"Dálkur",matrix_row:"Röð",savingData:"Niðurstöðurnar eru að spara á netþjóninum ... ",savingDataError:"Villa kom upp og við gátum ekki vistað niðurstöðurnar.",savingDataSuccess:"Árangurinn var vistaður með góðum árangri!",saveAgainButton:"Reyndu aftur",timerMin:"mín",timerSec:"sek",timerSpentAll:"Þú hefur eytt {0} á þessari síðu og {1} samtals.",timerSpentPage:"Þú hefur eytt {0} á þessari síðu.",timerSpentSurvey:"Þú hefur eytt {0} samtals.",timerLimitAll:"Þú hefur eytt {0} af {1} á þessari síðu og {2} af {3} samtals.",timerLimitPage:"Þú hefur eytt {0} af {1} á þessari síðu.",timerLimitSurvey:"Þú hefur eytt {0} af {1} samtals.",cleanCaption:"Hreint",clearCaption:"Hreinsa",chooseFileCaption:"Veldu skrá",removeFileCaption:"Fjarlægðu þessa skrá",booleanCheckedLabel:"Já",booleanUncheckedLabel:"Nei",confirmRemoveFile:"Ertu viss um að þú viljir fjarlægja þessa skrá: {0}?",confirmRemoveAllFiles:"Ertu viss um að þú viljir fjarlægja allar skrár?",questionTitlePatternText:"Spurningartitill"};r.a.locales.is=i,r.a.localeNames.is="íslenska"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Sebelumnya",pageNextText:"Selanjutnya",completeText:"Selesai",previewText:"Pratinjau",editText:"Sunting",startSurveyText:"Mulai",otherItemText:"Lainnya (jelaskan)",noneItemText:"Tidak Ada",selectAllItemText:"Pilih Semua",progressText:"Halaman {0} dari {1}",panelDynamicProgressText:"Rekam {0} dari {1}",questionsProgressText:"Menjawab pertanyaan {0} / {1}",emptySurvey:"Tidak ada halaman atau pertanyaan dalam survei.",completingSurvey:"Terima kasih telah menyelesaikan survei!",completingSurveyBefore:"Catatan kami menunjukkan bahwa Anda telah menyelesaikan survei ini.",loadingSurvey:"Memuat survei...",optionsCaption:"Pilih...",value:"nilai",requiredError:"Silahkan jawab pertanyaan berikut.",requiredErrorInPanel:"Silahkan jawab setidaknya satu petanyaan.",requiredInAllRowsError:"Silahkan jawab pertanyaan pada semua baris.",numericError:"Nilai harus berupa angka.",textMinLength:"Silahkan masukkan setidaknya {0} karakter.",textMaxLength:"Silahkan masukkan kurang {0} karakter.",textMinMaxLength:"PSilahkan masukkan lebih dari {0} dan kurang dari {1} karakter.",minRowCountError:"Silahkan isi setidaknya {0} baris.",minSelectError:"Silahkan pilih setidaknya {0} varian.",maxSelectError:"Silahkan pilih tidak lebih dari {0} varian.",numericMinMax:"'{0}' harus sama dengan atau lebih dari {1} dan harus sama dengan atau kurang dari {2}",numericMin:"'{0}' harus sama dengan atau lebih dari {1}",numericMax:"'{0}' harus sama dengan atau kurang dari {1}",invalidEmail:"Silahkan masukkan e-mail yang benar.",invalidExpression:"Ekspresi: {0} harus mengembalikan 'benar'.",urlRequestError:"Permintaan mengembalikan kesalahan '{0}'. {1}",urlGetChoicesError:"Permintaan mengembalikan data kosong atau properti 'path' salah.",exceedMaxSize:"Ukuran berkas tidak boleh melebihi {0}.",otherRequiredError:"Silahkan masukkan nilai lainnnya.",uploadingFile:"Berkas Anda sedang diunggah. Silahkan tunggu beberapa saat atau coba lagi.",loadingFile:"Memuat...",chooseFile:"Pilih berkas...",noFileChosen:"Tidak ada file yang dipilih",confirmDelete:"Apakah Anda ingin menghapus catatan?",keyDuplicationError:"Nilai harus unik.",addColumn:"Tambah kolom",addRow:"Tambah baris",removeRow:"Hapus",addPanel:"Tambah baru",removePanel:"Hapus",choices_Item:"item",matrix_column:"Kolom",matrix_row:"Baris",savingData:"Hasil sedang disimpan pada server...",savingDataError:"Kesalahan terjadi dan kami tidak dapat menyimpan hasil.",savingDataSuccess:"Hasil telah sukses disimpan!",saveAgainButton:"Coba lagi",timerMin:"menit",timerSec:"detik",timerSpentAll:"Anda telah menghabiskan {0} pada halaman ini dan {1} secara keseluruhan.",timerSpentPage:"YAnda telah menghabiskan {0} pada halaman ini.",timerSpentSurvey:"Anda telah menghabiskan {0} secara keseluruhan.",timerLimitAll:"Anda telah menghabiskan {0} dari {1} pada halaman ini dan {2} dari {3} secara keseluruhan.",timerLimitPage:"Anda telah menghabiskan {0} dari {1} pada halaman ini.",timerLimitSurvey:"Anda telah menghabiskan {0} dari {1} secara keseluruhan.",cleanCaption:"Bersihkan",clearCaption:"Bersihkan",chooseFileCaption:"Pilih File",removeFileCaption:"Hapus berkas ini",booleanCheckedLabel:"Iya",booleanUncheckedLabel:"Tidak",confirmRemoveFile:"Anda yakin ingin menghapus file ini: {0}?",confirmRemoveAllFiles:"Anda yakin ingin menghapus semua file?",questionTitlePatternText:"Judul pertanyaan"};r.a.locales.id=i,r.a.localeNames.id="Bahasa Indonesia"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Precedente",pageNextText:"Successivo",completeText:"Salva",previewText:"Anteprima",editText:"Modifica",startSurveyText:"Inizio",otherItemText:"Altro (descrivi)",noneItemText:"Nessuno",selectAllItemText:"Seleziona tutti",progressText:"Pagina {0} di {1}",panelDynamicProgressText:"Record di {0} di {1}",questionsProgressText:"Risposte a {0}/{1} domande",emptySurvey:"Non ci sono pagine o domande visibili nel questionario.",completingSurvey:"Grazie per aver completato il questionario!",completingSurveyBefore:"I nostri records mostrano che hai già completato questo questionario.",loadingSurvey:"Caricamento del questionario in corso...",optionsCaption:"Scegli...",value:"valore",requiredError:"Campo obbligatorio",requiredErrorInPanel:"Per Favore, rispondi ad almeno una domanda.",requiredInAllRowsError:"Completare tutte le righe",numericError:"Il valore deve essere numerico",textMinLength:"Inserire almeno {0} caratteri",textMaxLength:"Lunghezza massima consentita {0} caratteri",textMinMaxLength:"Inserire una stringa con minimo {0} e massimo {1} caratteri",minRowCountError:"Completare almeno {0} righe.",minSelectError:"Selezionare almeno {0} varianti.",maxSelectError:"Selezionare massimo {0} varianti.",numericMinMax:"'{0}' deve essere uguale o superiore a {1} e uguale o inferiore a {2}",numericMin:"'{0}' deve essere uguale o superiore a {1}",numericMax:"'{0}' deve essere uguale o inferiore a {1}",invalidEmail:"Inserire indirizzo mail valido",invalidExpression:"L'espressione: {0} dovrebbe tornare 'vero'.",urlRequestError:"La richiesta ha risposto con un errore '{0}'. {1}",urlGetChoicesError:"La richiesta ha risposto null oppure il percorso non è corretto",exceedMaxSize:"Il file non può eccedere {0}",otherRequiredError:"Inserire il valore 'altro'",uploadingFile:"File in caricamento. Attendi alcuni secondi e riprova",loadingFile:"Caricamento...",chooseFile:"Selezionare file(s)...",noFileChosen:"Nessun file selezionato",confirmDelete:"Sei sicuro di voler elminare il record?",keyDuplicationError:"Questo valore deve essere univoco.",addColumn:"Aggiungi colonna",addRow:"Aggiungi riga",removeRow:"Rimuovi riga",addPanel:"Aggiungi riga",removePanel:"Elimina",choices_Item:"Elemento",matrix_column:"Colonna",matrix_row:"Riga",savingData:"Salvataggio dati sul server...",savingDataError:"Si è verificato un errore e non è stato possibile salvare i risultati.",savingDataSuccess:"I risultati sono stati salvati con successo!",saveAgainButton:"Riprova",timerMin:"min",timerSec:"sec",timerSpentAll:"Hai impiegato {0} su questa pagina e {1} in totale.",timerSpentPage:"Hai impiegato {0} su questa pagina.",timerSpentSurvey:"Hai impiegato {0} in totale.",timerLimitAll:"Hai impiegato {0} di {1} su questa pagina e {2} di {3} in totale.",timerLimitPage:"Hai impiegato {0} di {1} su questa pagina.",timerLimitSurvey:"Hai impiegato {0} di {1} in totale.",cleanCaption:"Pulisci",clearCaption:"Cancella",chooseFileCaption:"Scegliere il file",removeFileCaption:"Rimuovere questo file",booleanCheckedLabel:"Sì",booleanUncheckedLabel:"No",confirmRemoveFile:"Sei sicuro di voler elminare questo file: {0}?",confirmRemoveAllFiles:"Sei sicuro di voler elminare tutti i files?",questionTitlePatternText:"Titolo della domanda"};r.a.locales.it=i,r.a.localeNames.it="italiano"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"前へ",pageNextText:"次へ",completeText:"完了",previewText:"プレビュー",editText:"編集",startSurveyText:"スタート",otherItemText:"その他（説明）",noneItemText:"なし",selectAllItemText:"すべて選択",progressText:"{0}/{1}頁",panelDynamicProgressText:"{1}の{0}を記録する",questionsProgressText:"{0}/{1}の質問に回答しました。",emptySurvey:"この調査に表示できるページや質問はありません",completingSurvey:"調査を完了してくれてありがとうございました",completingSurveyBefore:"当社の記録によると、この調査はすでに完了しています。",loadingSurvey:"調査をダウンロード中",optionsCaption:"選択",value:"値打ち",requiredError:"質問にお答え下さい",requiredErrorInPanel:"最低でも1つの質問に答えてください。",requiredInAllRowsError:"質問には全列で回答してください。",numericError:"数字でご記入下さい",textMinLength:"{0} 文字以上で入力して下さい",textMaxLength:"{0}文字以下で入力してください。",textMinMaxLength:"{0}以上{1}未満の文字を入力してください。",minRowCountError:"{0}行以上で入力して下さい",minSelectError:"{0}種類以上を選択して下さい",maxSelectError:"{0}以上のバリアントを選択しないでください。",numericMinMax:"{0}は{1}以上であり、{2}以下であることが望ましい。",numericMin:"'{0}' は同等か{1}より大きくなければなりません",numericMax:"'{0}' は同等か{1}より小さくなければなりません",invalidEmail:"有効なメールアドレスをご記入下さい",invalidExpression:"式は {0}は'true'を返すべきです。",urlRequestError:"リクエストはエラー '{0}' を返しました。{1}",urlGetChoicesError:"リクエストが空のデータを返したか、'path' プロパティが正しくありません。",exceedMaxSize:"ファイルのサイズは{0}を超えてはいけません",otherRequiredError:"その他の値を入力してください。",uploadingFile:"ファイルをアップロード中です。しばらくしてから再度お試し下さい",loadingFile:"読み込み中",chooseFile:"ファイルを選択",noFileChosen:"選択されたファイルはありません",confirmDelete:"レコードを削除しますか？",keyDuplicationError:"この値は一意でなければなりません。",addColumn:"列の追加",addRow:"追加行",removeRow:"除去",addPanel:"新規追加",removePanel:"除去",choices_Item:"品目",matrix_column:"コラム",matrix_row:"行",savingData:"結果はサーバーに保存されています...。",savingDataError:"エラーが発生し、結果を保存できませんでした。",savingDataSuccess:"結果は無事に保存されました",saveAgainButton:"もう一度試してみてください。",timerMin:"僅少",timerSec:"セック",timerSpentAll:"あなたはこのページに{0}を費やし、合計で{1}を費やしました。",timerSpentPage:"あなたはこのページに{0}を費やしました。",timerSpentSurvey:"合計で{0}を使ったことになります。",timerLimitAll:"このページに{1}のうち{0}を費やし、{3}のうち{2}を合計で費やしました。",timerLimitPage:"このページで{1}の{0}を使ったことがあります。",timerLimitSurvey:"合計で{1}の{0}を使ったことがあります。",cleanCaption:"削除",clearCaption:"空白",chooseFileCaption:"ファイルを選択",removeFileCaption:"このファイルを削除",booleanCheckedLabel:"噫",booleanUncheckedLabel:"否",confirmRemoveFile:"このファイルを削除してもよろしいですか？{0}?",confirmRemoveAllFiles:"すべてのファイルを削除してもよろしいですか？",questionTitlePatternText:"質問名"};r.a.locales.ja=i,r.a.localeNames.ja="日本語"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"이전",pageNextText:"다음",completeText:"완료",previewText:"시사",editText:"편집하다",startSurveyText:"시작",otherItemText:"기타(설명)",noneItemText:"없음",selectAllItemText:"모두 선택",progressText:"페이지 {1} 중 {0}",panelDynamicProgressText:"{0} / {1} 기록",questionsProgressText:"{0} / {1} 개의 질문에 답변 함",emptySurvey:"설문지에 보여지는 페이지나 질문이 없습니다",completingSurvey:"설문 조사를 완료해 주셔서 감사합니다!",completingSurveyBefore:"기록에 따르면 이미 설문 조사를 마치셨습니다.",loadingSurvey:"설문조사가 로드중입니다...",optionsCaption:"선택하십시오...",value:"값",requiredError:"질문에 답하시오.",requiredErrorInPanel:"하나 이상의 질문에 답하십시오.",requiredInAllRowsError:"모든 행에 있는 질문에 답하십시오.",numericError:"값은 숫자여야 합니다.",textMinLength:"답변의 길이는 최소 {0}자여야 입니다.",textMaxLength:"답변의 길이는 {0}자를 초과 할 수 없습니다.",textMinMaxLength:"답변의 길이는 {0} - {1}자 사이여야 합니다.",minRowCountError:"최소 {0}개의 행을 채우십시오",minSelectError:"최소 {0}개의 변수를 선택하십시오.",maxSelectError:"최대 {0}개의 변수를 선택하십시오.",numericMinMax:"'{0}'은 {1}보다 크거나 같고 {2}보다 작거나 같아야합니다.",numericMin:"'{0}'은 {1}보다 크거나 같아야합니다.",numericMax:"'{0}'은 {1}보다 작거나 같아야합니다.",invalidEmail:"올바른 이메일 주소를 입력하십시오.",invalidExpression:"표현식: {0}은 '참'이어야 합니다.",urlRequestError:"'{0}'으로 잘못된 요청입니다. {1}",urlGetChoicesError:"비어있는 데이터를 요청했거나 잘못된 속성의 경로입니다.",exceedMaxSize:"파일 크기가 {0}을 초과 할 수 없습니다.",otherRequiredError:"다른 질문을 작성하십시오.",uploadingFile:"파일 업로드 중입니다. 잠시 후 다시 시도하십시오.",loadingFile:"로드 중...",chooseFile:"파일 선택...",noFileChosen:"선택된 파일이 없습니다",confirmDelete:"기록을 삭제하시겠습니까?",keyDuplicationError:" 이 값은 고유해야합니다.",addColumn:"열 추가",addRow:"행 추가",removeRow:"제거",addPanel:"새롭게 추가",removePanel:"제거",choices_Item:"항목",matrix_column:"열",matrix_row:"행",savingData:"결과가 서버에 저장 중입니다...",savingDataError:"오류가 발생하여 결과를 저장할 수 없습니다.",savingDataSuccess:"결과가 성공적으로 저장되었습니다!",saveAgainButton:"다시 시도하십시오",timerMin:"분",timerSec:"초",timerSpentAll:"현재 페이지에서 {0}을 소요해 총 {1}이 걸렸습니다.",timerSpentPage:"현재 페이지에서 {0]이 걸렸습니다",timerSpentSurvey:"총 {0}이 걸렸습니다.",timerLimitAll:"현재 페이지에서 {0}/{1}을 소요해 총 {2}/{3}이 걸렸습니다.",timerLimitPage:"현재 페이지에서 {0}/{1}이 걸렸습니다.",timerLimitSurvey:"총 {0}/{1}이 걸렸습니다.",cleanCaption:"닦기",clearCaption:"지우기",chooseFileCaption:"파일을 선택",removeFileCaption:"이 파일 제거",booleanCheckedLabel:"예",booleanUncheckedLabel:"아니",confirmRemoveFile:"{0} 파일을 제거 하시겠습니까?",confirmRemoveAllFiles:"모든 파일을 제거 하시겠습니까?",questionTitlePatternText:"질문 제목"};r.a.locales.ko=i,r.a.localeNames.ko="한국어"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Atpakaļ",pageNextText:"Tālāk",completeText:"Pabeigt",previewText:"Priekšskatījums",editText:"Rediģēt",startSurveyText:"Sākt",otherItemText:"Cits (lūdzu, aprakstiet!)",noneItemText:"Nav",selectAllItemText:"Izvēlēties visus",progressText:"Lappuse {0} no {1}",panelDynamicProgressText:"Ierakstīt {0} no {1}",questionsProgressText:"Atbildēja uz jautājumiem {0} / {1}",emptySurvey:"Nav neviena jautājuma.",completingSurvey:"Pateicamies Jums par anketas aizpildīšanu!",completingSurveyBefore:"Mūsu ieraksti liecina, ka jūs jau esat aizpildījis šo aptauju.",loadingSurvey:"Ielāde no servera...",optionsCaption:"Izvēlēties...",value:"value",requiredError:"Lūdzu, atbildiet uz jautājumu!",requiredErrorInPanel:"Lūdzu, atbildiet uz vismaz vienu jautājumu.",requiredInAllRowsError:"Lūdzu, atbildiet uz jautājumiem visās rindās.",numericError:"Atbildei ir jābūt skaitlim.",textMinLength:"Lūdzu, ievadiet vismaz {0} simbolus.",textMaxLength:"Lūdzu, ievadiet mazāk nekā {0} rakstzīmes.",textMinMaxLength:"Lūdzu, ievadiet vairāk nekā {0} rakstzīmes un mazāk nekā {1} rakstzīmes.",minRowCountError:"Lūdzu, aizpildiet vismaz {0} rindas.",minSelectError:"Lūdzu, izvēlieties vismaz {0} variantu.",maxSelectError:"Lūdzu, izvēlieties ne vairak par {0} variantiem.",numericMinMax:"'{0}' jābūt vienādam vai lielākam nekā {1}, un vienādam vai mazākam, nekā {2}",numericMin:"'{0}' jābūt vienādam vai lielākam {1}",numericMax:"'{0}' jābūt vienādam vai lielākam {1}",invalidEmail:"Lūdzu, ievadiet patiesu e-pasta adresi!",invalidExpression:"Izteicienam: {0} jāatgriež “true”.",urlRequestError:"Pieprasījumā tika atgriezta kļūda “{0}”. {1}",urlGetChoicesError:"Pieprasījums atgrieza tukšus datus vai rekvizīts “path” ir nepareizs",exceedMaxSize:"Faila lielums nedrīkst pārsniegt {0}.",otherRequiredError:"Lūdzu, ievadiet datus laukā 'Cits'",uploadingFile:"Jūsu fails tiek augšupielādēts. Lūdzu, uzgaidiet vairākas sekundes un mēģiniet vēlreiz.",loadingFile:"Notiek ielāde ...",chooseFile:"Izvēlieties failus ...",noFileChosen:"Nav izvēlēts neviens fails",confirmDelete:"Vai vēlaties izdzēst ierakstu?",keyDuplicationError:"Šai vērtībai jābūt unikālai.",addColumn:"Pievienot kolonnu",addRow:"Pievienot rindu",removeRow:"Noņemt",addPanel:"Pievieno jaunu",removePanel:"Noņemt",choices_Item:"lieta",matrix_column:"Sleja",matrix_row:"Rinda",savingData:"Rezultāti tiek saglabāti serverī ...",savingDataError:"Radās kļūda, un mēs nevarējām saglabāt rezultātus.",savingDataSuccess:"Rezultāti tika veiksmīgi saglabāti!",saveAgainButton:"Mēģini vēlreiz",timerMin:"min",timerSec:"sek",timerSpentAll:"Šajā lapā esat iztērējis {0} un kopā {1}.",timerSpentPage:"Šajā lapā esat iztērējis {0}.",timerSpentSurvey:"Kopā esat iztērējis {0}.",timerLimitAll:"Šajā lapā esat iztērējis {0} no {1} un kopā {2} no {3}.",timerLimitPage:"Šajā lapā esat iztērējis {0} no {1}.",timerLimitSurvey:"Kopā esat iztērējis {0} no {1}.",cleanCaption:"Tīrs",clearCaption:"Skaidrs",chooseFileCaption:"Izvēlēties failu",removeFileCaption:"Noņemiet šo failu",booleanCheckedLabel:"Jā",booleanUncheckedLabel:"Nē",confirmRemoveFile:"Vai tiešām vēlaties noņemt šo failu: {0}?",confirmRemoveAllFiles:"Vai tiešām vēlaties noņemt visus failus?",questionTitlePatternText:"Jautājuma nosaukums"};r.a.locales.lv=i,r.a.localeNames.lv="latviešu"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Atgal",pageNextText:"Toliau",completeText:"Baigti",previewText:"Peržiūra",editText:"Redaguoti",startSurveyText:"Pradėti",otherItemText:"Kita (įvesti)",noneItemText:"Nėra",selectAllItemText:"Pasirinkti visus",progressText:"Puslapis {0} iš {1}",panelDynamicProgressText:"Įrašyti {0} iš {1}",questionsProgressText:"Atsakė į {0} / {1} klausimus",emptySurvey:"Apklausoje nėra matomo puslapio ar klausimo.",completingSurvey:"Dėkojame už dalyvavimą apklausoje!",completingSurveyBefore:"Mūsų įrašai rodo, kad jau atlikote šią apklausą.",loadingSurvey:"Prašome palaukti...",optionsCaption:"Pasirinkti...",value:"reikšmė",requiredError:"Būtina atsakyti į šį klausimą.",requiredErrorInPanel:"Būtina atsakyti bent į vieną klausimą.",requiredInAllRowsError:"Prašome atsakyti į klausimus visose eilutėse.",numericError:"Turi būti skaičiai.",textMinLength:"Prašome suvesti bent {0} simbolius.",textMaxLength:"Prašome suvesti mažiau nei {0} simbolių.",textMinMaxLength:"Prašome suvesti daugiau nei {0} ir mažiau nei {1} simbolių.",minRowCountError:"Prašome suvesti ne mažiau nei {0} eilučių.",minSelectError:"Prašome pasirinkti bent {0} variantų.",maxSelectError:"Pasirinkite ne daugiau kaip {0} variantus.",numericMinMax:"'{0}' turi būti lygus arba didesnis nei {1} ir lygus arba mažesnis nei {2}",numericMin:"'{0}' turėtų būti lygus arba didesnis nei {1}",numericMax:"'{0}' turėtų būti lygus ar mažesnis už {1}",invalidEmail:"Prašome įvesti galiojantį elektroninio pašto adresą.",invalidExpression:"Reikšmė: {0} turi grąžinti 'true'.",urlRequestError:"Užklausa grąžino klaidą'{0}'. {1}",urlGetChoicesError:"Užklausa grąžino tuščius duomenis arba 'path' savybė yra neteisinga",exceedMaxSize:"Failo dydis neturi viršyti {0}.",otherRequiredError:"Įveskite kitą reikšmę.",uploadingFile:"Jūsų failas yra keliamas. Palaukite keletą sekundžių ir bandykite dar kartą.",loadingFile:"Prašome palaukti...",chooseFile:"Pasirinkti failą(us)...",noFileChosen:"Nepasirinktas joks failas",confirmDelete:"Ar norite ištrinti įrašą?",keyDuplicationError:"Ši reikšmė turėtų būti unikali.",addColumn:"Pridėti stulpelį",addRow:"Pridėti eilutę",removeRow:"Ištrinti",addPanel:"Pridėti naują",removePanel:"Ištrinti",choices_Item:"elementas",matrix_column:"Stulpelis",matrix_row:"Eilutė",savingData:"Rezultatai saugomi serveryje...",savingDataError:"Įvyko klaida ir mes negalėjome išsaugoti rezultatų.",savingDataSuccess:"Rezultatai buvo išsaugoti sėkmingai!",saveAgainButton:"Bandyti dar kartą",timerMin:"min",timerSec:"sek",timerSpentAll:"Praleidote {0} šiame puslapyje ir {1} iš viso.",timerSpentPage:"Praleidote {0} šiame puslapyje.",timerSpentSurvey:"Praleidote {0} iš viso.",timerLimitAll:"Praleidote {0} iš {1} šiame puslapyje ir {2} iš {3} iš viso.",timerLimitPage:"Praleidote {0} iš {1} šiame puslapyje.",timerLimitSurvey:"Praleidote {0} iš {1} iš viso.",cleanCaption:"Išvalyti",clearCaption:"Valyti",chooseFileCaption:"Pasirinkti failą",removeFileCaption:"Ištrinti šį failą",booleanCheckedLabel:"Taip",booleanUncheckedLabel:"Ne",confirmRemoveFile:"Ar tikrai norite pašalinti šį failą: {0}?",confirmRemoveAllFiles:"Ar tikrai norite pašalinti visus failus?",questionTitlePatternText:"Klausimo pavadinimas"};r.a.locales.lt=i,r.a.localeNames.lt="Lietuvių"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Forrige",pageNextText:"Neste",completeText:"Fullfør",previewText:"Forhåndsvisning",editText:"Redigere",startSurveyText:"Start",otherItemText:"Annet (beskriv)",noneItemText:"Ingen",selectAllItemText:"Velg alle",progressText:"Side {0} av {1}",panelDynamicProgressText:"Ta opp {0} av {1}",questionsProgressText:"Besvarte {0} / {1} spørsmål",emptySurvey:"Det er ingen synlig side eller spørsmål i undersøkelsen.",completingSurvey:"Takk for at du fullførte undersøkelsen!",completingSurveyBefore:"Våre data viser at du allerede har gjennomført denne undersøkelsen.",loadingSurvey:"Undersøkelsen laster...",optionsCaption:"Velg...",value:"verdi",requiredError:"Vennligst svar på spørsmålet.",requiredErrorInPanel:"Vennligst svar på minst ett spørsmål.",requiredInAllRowsError:"Vennligst svar på spørsmål i alle rader.",numericError:"Verdien skal være numerisk.",textMinLength:"Vennligst skriv inn minst {0} tegn.",textMaxLength:"Vennligst skriv inn mindre enn {0} tegn.",textMinMaxLength:"Vennligst skriv inn mer enn {0} og mindre enn {1} tegn.",minRowCountError:"Vennligst fyll inn minst {0} rader.",minSelectError:"Vennligst velg minst {0} varianter.",maxSelectError:"Vennligst ikke velg mer enn {0} varianter.",numericMinMax:"'{0}' bør være lik eller mer enn {1} og lik eller mindre enn {2}",numericMin:"'{0}' bør være lik eller mer enn {1}",numericMax:"'{0}' bør være lik eller mindre enn {1}",invalidEmail:"Vennligst skriv inn en gyldig e-post adresse.",invalidExpression:"Uttrykket: {0} skal returnere 'sant'.",urlRequestError:"Forespørselen returnerte feilen '{0}'. {1}",urlGetChoicesError:"Forespørselen returnerte tomme data, eller 'sti' -egenskapen er feil",exceedMaxSize:"Filstørrelsen bør ikke overstige {0}.",otherRequiredError:"Vennligst skriv inn den andre verdien.",uploadingFile:"Filen din lastes opp. Vennligst vent noen sekunder og prøv igjen.",loadingFile:"Laster inn ...",chooseFile:"Velg fil (er) ...",noFileChosen:"Ingen fil valgt",confirmDelete:"Ønsker du å slette posten?",keyDuplicationError:"Denne verdien skal være unik.",addColumn:"Legg til kolonne",addRow:"Legg til rad",removeRow:"Fjern",addPanel:"Legg til ny",removePanel:"Fjerne",choices_Item:"element",matrix_column:"Kolonne",matrix_row:"Rad",savingData:"Resultatene lagres på serveren ...",savingDataError:"Det oppsto en feil, og vi kunne ikke lagre resultatene.",savingDataSuccess:"Resultatene ble lagret!",saveAgainButton:"Prøv igjen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har tilbrakt {0} på denne siden og {1} totalt.",timerSpentPage:"Du har tilbrakt {0} på denne siden.",timerSpentSurvey:"Du har tilbrakt {0} totalt.",timerLimitAll:"Du har tilbrakt {0} av {1} på denne siden og totalt {2} av {3}.",timerLimitPage:"Du har tilbrakt {0} av {1} på denne siden.",timerLimitSurvey:"Du har tilbrakt {0} av {1} totalt.",cleanCaption:"Rens",clearCaption:"Klar",chooseFileCaption:"Velg Fil",removeFileCaption:"Fjern denne filen",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Nei",confirmRemoveFile:"Er du sikker på at du vil fjerne denne filen: {0}?",confirmRemoveAllFiles:"Er du sikker på at du vil fjerne alle filene?",questionTitlePatternText:"Spørsmålstittel"};r.a.locales.no=i,r.a.localeNames.no="norsk"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"قبلی",pageNextText:"بعدی",completeText:"تکمیل",previewText:"پیش نمایش",editText:"ویرایش",startSurveyText:"شروع",otherItemText:"دیگر(توضیح)",noneItemText:"هیچ",selectAllItemText:"انتخاب همه",progressText:"صفحه {0} از {1}",panelDynamicProgressText:"مورد {0} از {1}",questionsProgressText:"تعداد پاسخ {0}/{1} سوال",emptySurvey:"صفحه ای یا گزینه ای برای این پرسشنامه موجود نیست.",completingSurvey:"از شما بابت تکمیل این پرسشنامه متشکریم",completingSurveyBefore:"به نظر می رسد هم هم اکنون پرسشنامه را تکمیل کرده اید.",loadingSurvey:"درحال ایجاد پرسشنامه",optionsCaption:"انتخاب کنید...",value:"مقدار",requiredError:"لطفا به سوال پاسخ دهید",requiredErrorInPanel:"لطفا حداقل به یک سوال پاسخ دهید.",requiredInAllRowsError:"لطفا سوالات تمام سطرها را پاسخ دهید.",numericError:"مقدار باید عددی باشد",textMinLength:"لطفا حداقل  {0} حرف وارد کنید",textMaxLength:"لطفا کمتر از  {0} حرف وارد کنید.",textMinMaxLength:"لطفا بیشتر از  {0} حرف و کمتر از {1} حرف وارد کنید.",minRowCountError:"لطفا حداقل {0} سطر وارد کنید.",minSelectError:"حداقل {0} انتخاب کنید.",maxSelectError:"لطفا بیشتر از  {0} انتخاب کنید.",numericMinMax:"'{0}' باید بین {1} و {2} باشد",numericMin:"'{0}' بزرگتر مساوی {1} باشد",numericMax:"'{0}' باید کوچکتر یا مساوی {1} باشد",invalidEmail:"لطفا ایمیل صحیح درج کنید",invalidExpression:"عبارت: {0} پاسخ باید 'true' باشد.",urlRequestError:"درخواست با خطا روبرو شد: '{0}'. {1}",urlGetChoicesError:"درخواست مسیری خالی بازگشت داده یا مسیر درست تنظیم نشده",exceedMaxSize:"بیشترین حجم مجاز فایل: {0}",otherRequiredError:"مقدار 'دیگر' را وارد کنید",uploadingFile:"فایل در حال آیلود است. لطفا صبر کنید.",loadingFile:"بارگیری...",chooseFile:"انتخاب فایل(ها)...",noFileChosen:"هیچ فایلی انتخاب نشده",confirmDelete:"آیا مایل به حذف این ردیف هستید؟",keyDuplicationError:"این مقدار باید غیر تکراری باشد",addColumn:"ستون جدید",addRow:"سطر جدید",removeRow:"حذف",addPanel:"جدید",removePanel:"حذف",choices_Item:"آیتم",matrix_column:"ستون",matrix_row:"سطر",savingData:"نتایج در حال ذخیره سازی در سرور است",savingDataError:"خطایی در ذخیره سازی نتایج رخ داده است",savingDataSuccess:"نتایج با موفقیت ذخیره شد",saveAgainButton:"مجدد تلاش کنید",timerMin:"دقیقه",timerSec:"ثانیه",timerSpentAll:"شما مدت {0} در این صفحه و مدت {1} را در مجموع سپری کرده اید.",timerSpentPage:"شما مدت {0} را در این صفحه سپری کرده اید.",timerSpentSurvey:"شما مدت {0} را در مجموع سپری کرده اید.",timerLimitAll:"شما مدت {0} از {1} در این صفحه و مدت {2} از {3} را در مجموع سپری کرده اید.",timerLimitPage:"شما مدت {0} از {1} را در این صفحه سپری کرده اید.",timerLimitSurvey:"شما مدت {0} از {1} را در مجموع سپری کرده اید.",cleanCaption:"پاکسازی",clearCaption:"خالی کردن",chooseFileCaption:"انتخاب فایل",removeFileCaption:"حذف این فایل",booleanCheckedLabel:"بله",booleanUncheckedLabel:"خیر",confirmRemoveFile:"آیا میخواهید این فایل را پاک کنید: {0}?",confirmRemoveAllFiles:"آیا میخواهید تمام فایل ها را پاک کنید?",questionTitlePatternText:"عنوان سوال"};r.a.locales.fa=i,r.a.localeNames.fa="فارْسِى"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Wstecz",pageNextText:"Dalej",completeText:"Gotowe",previewText:"Premiera",editText:"Edycja",startSurveyText:"Start",otherItemText:"Inna odpowiedź (wpisz)",noneItemText:"Brak",selectAllItemText:"Wybierz wszystkie",progressText:"Strona {0} z {1}",panelDynamicProgressText:"Zapis {0} z {1}",questionsProgressText:"Odpowiedzi na {0}/{1} pytania",emptySurvey:"Nie ma widocznych pytań.",completingSurvey:"Dziękujemy za wypełnienie ankiety!",completingSurveyBefore:"Z naszych zapisów wynika, że wypełniłeś już tę ankietę.",loadingSurvey:"Trwa wczytywanie ankiety...",optionsCaption:"Wybierz...",value:"Wartość",requiredError:"Proszę odpowiedzieć na to pytanie.",requiredErrorInPanel:"Proszę odpowiedzieć na co najmniej jedno pytanie.",requiredInAllRowsError:"Proszę odpowiedzieć na wszystkie pytania.",numericError:"W tym polu można wpisać tylko liczby.",textMinLength:"Proszę wpisać co najmniej {0} znaków.",textMaxLength:"Proszę wpisać mniej niż {0} znaków.",textMinMaxLength:"Proszę wpisać więcej niż {0} i mniej niż {1} znaków.",minRowCountError:"Proszę uzupełnić przynajmniej {0} wierszy.",minSelectError:"Proszę wybrać co najmniej {0} pozycji.",maxSelectError:"Proszę wybrać nie więcej niż {0} pozycji.",numericMinMax:"Odpowiedź '{0}' powinna być większa lub równa {1} oraz mniejsza lub równa {2}",numericMin:"Odpowiedź '{0}' powinna być większa lub równa {1}",numericMax:"Odpowiedź '{0}' powinna być mniejsza lub równa {1}",invalidEmail:"Proszę podać prawidłowy adres email.",invalidExpression:"Wyrażenie: {0} powinno wracać 'prawdziwe'.",urlRequestError:"Żądanie zwróciło błąd '{0}'. {1}",urlGetChoicesError:"Żądanie nie zwróciło danych albo ścieżka jest nieprawidłowa",exceedMaxSize:"Rozmiar przesłanego pliku nie może przekraczać {0}.",otherRequiredError:"Proszę podać inną odpowiedź.",uploadingFile:"Trwa przenoszenie Twojego pliku, proszę spróbować ponownie za kilka sekund.",loadingFile:"Ładowanie...",chooseFile:"Wybierz plik(i)...",noFileChosen:"Nie wybrano żadnego pliku",confirmDelete:"Chcesz skasować nagranie?",keyDuplicationError:"Ta wartość powinna być wyjątkowa.",addColumn:"Dodaj kolumnę",addRow:"Dodaj wiersz",removeRow:"Usuń",addPanel:"Dodaj panel",removePanel:"Usuń",choices_Item:"element",matrix_column:"Kolumna",matrix_row:"Wiersz",savingData:"Zapisuję wyniki ankiety na serwerze...",savingDataError:"Wystąpił błąd i wyniki nie mogły zostać zapisane.",savingDataSuccess:"Wyniki zostały poprawnie zapisane!",saveAgainButton:"Spróbuj ponownie",timerMin:"min",timerSec:"sek",timerSpentAll:"Spędziłeś {0} na tej stronie a w sumie {1}.",timerSpentPage:"Spędziłeś {0} na tej stronie.",timerSpentSurvey:"Spędziłeś w sumie {0}.",timerLimitAll:"Spędziłeś {0} z {1} na tej stronie a w sumie {2} z {3}.",timerLimitPage:"Spędziłeś {0} z {1} na tej stronie",timerLimitSurvey:"Spędziłeś {0} z {1}.",cleanCaption:"Wyczyść",clearCaption:"Jasne",chooseFileCaption:"Wybierz plik",removeFileCaption:"Usuń ten plik",booleanCheckedLabel:"Tak",booleanUncheckedLabel:"Nie",confirmRemoveFile:"Jesteś pewien, że chcesz usunąć ten plik: {0}?",confirmRemoveAllFiles:"Jesteś pewien, że chcesz usunąć wszystkie pliki?",questionTitlePatternText:"Tytuł pytania"};r.a.locales.pl=i,r.a.localeNames.pl="polski"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Anterior",pageNextText:"Próximo",completeText:"Finalizar",previewText:"Pré-visualização",editText:"Editar",startSurveyText:"Começar",otherItemText:"Outros (descrever)",noneItemText:"Nenhum",selectAllItemText:"Selecionar Todos",progressText:"Página {0} de {1}",panelDynamicProgressText:"Registo {0} de {1}",questionsProgressText:"Respostas {0}/{1} perguntas",emptySurvey:"Não há página visível ou pergunta na pesquisa.",completingSurvey:"Obrigado por finalizar a pesquisa!",completingSurveyBefore:"Nossos registros mostram que você já finalizou a pesquisa.",loadingSurvey:"A pesquisa está carregando...",optionsCaption:"Selecione...",value:"valor",requiredError:"Por favor, responda a pergunta.",requiredErrorInPanel:"Por favor, responda pelo menos uma pergunta.",requiredInAllRowsError:"Por favor, responda as perguntas em todas as linhas.",numericError:"O valor deve ser numérico.",textMinLength:"Por favor, insira pelo menos {0} caracteres.",textMaxLength:"Por favor, insira menos de {0} caracteres.",textMinMaxLength:"Por favor, insira mais de {0} e menos de {1} caracteres.",minRowCountError:"Preencha pelo menos {0} linhas.",minSelectError:"Selecione pelo menos {0} opções.",maxSelectError:"Por favor, selecione não mais do que {0} opções.",numericMinMax:"O '{0}' deve ser igual ou superior a {1} e igual ou menor que {2}",numericMin:"O '{0}' deve ser igual ou superior a {1}",numericMax:"O '{0}' deve ser igual ou inferior a {1}",invalidEmail:"Por favor, informe um e-mail válido.",invalidExpression:"A expressão: {0} deve retornar 'verdadeiro'.",urlRequestError:"A requisição retornou o erro '{0}'. {1}",urlGetChoicesError:"A requisição não retornou dados ou o 'caminho' da requisição não está correto",exceedMaxSize:"O tamanho do arquivo não deve exceder {0}.",otherRequiredError:"Por favor, informe o outro valor.",uploadingFile:"Seu arquivo está sendo carregado. Por favor, aguarde alguns segundos e tente novamente.",loadingFile:"Carregando...",chooseFile:"Selecione o(s) arquivo(s)...",noFileChosen:"Nenhum ficheiro escolhido",confirmDelete:"Tem certeza que deseja deletar?",keyDuplicationError:"Esse valor deve ser único.",addColumn:"Adicionar coluna",addRow:"Adicionar linha",removeRow:"Remover linha",addPanel:"Adicionar novo",removePanel:"Remover",choices_Item:"item",matrix_column:"Coluna",matrix_row:"Linha",savingData:"Os resultados esto sendo salvos no servidor...",savingDataError:"Ocorreu um erro e não foi possível salvar os resultados.",savingDataSuccess:"Os resultados foram salvos com sucesso!",saveAgainButton:"Tente novamente",timerMin:"min",timerSec:"seg",timerSpentAll:"Você gastou {0} nesta página e {1} no total.",timerSpentPage:"Você gastou {0} nesta página.",timerSpentSurvey:"Você gastou {0} no total.",timerLimitAll:"Você gastou {0} de {1} nesta página e {2} de {3} no total.",timerLimitPage:"Você gastou {0} de {1} nesta página.",timerLimitSurvey:"Você gastou {0} de {1} no total.",cleanCaption:"Limpar",clearCaption:"Limpar",chooseFileCaption:"Escolher ficheiro",removeFileCaption:"Remover este arquivo",booleanCheckedLabel:"Sim",booleanUncheckedLabel:"Não",confirmRemoveFile:"Tem certeza que deseja remover este arquivo: {0}?",confirmRemoveAllFiles:"Tem certeza que deseja remover todos os arquivos?",questionTitlePatternText:"Título da questão"};r.a.locales.pt=i,r.a.localeNames.pt="português"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Precedent",pageNextText:"Următor",completeText:"Finalizare",previewText:"previzualizare",editText:"Editați",startSurveyText:"start",otherItemText:"Altul(precizaţi)",noneItemText:"Nici unul",selectAllItemText:"Selectează tot",progressText:"Pagina {0} din {1}",panelDynamicProgressText:"Înregistrare {0} din {1}",questionsProgressText:"Răspunsuri la {0} / {1} întrebări",emptySurvey:"Nu sunt întrebări pentru acest chestionar",completingSurvey:"Vă mulţumim pentru timpul acordat!",completingSurveyBefore:"Din înregistrările noastre reiese că ați completat deja acest chestionar.",loadingSurvey:"Chestionarul se încarcă...",optionsCaption:"Alegeţi...",value:"valoare",requiredError:"Răspunsul la această întrebare este obligatoriu.",requiredErrorInPanel:"Vă rugăm să răspundeți la cel puțin o întrebare.",requiredInAllRowsError:"Toate răspunsurile sunt obligatorii",numericError:"Răspunsul trebuie să fie numeric.",textMinLength:"Trebuie să introduceți minim {0} caractere.",textMaxLength:"Trebuie să introduceți maxim {0} caractere.",textMinMaxLength:"Trebuie să introduceți mai mult de {0} și mai puțin de {1} caractere.",minRowCountError:"Trebuie să completați minim {0} rânduri.",minSelectError:"Trebuie să selectați minim {0} opţiuni.",maxSelectError:"Trebuie să selectați maxim {0} opţiuni.",numericMinMax:"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1} şî mai mic sau egal cu {2}",numericMin:"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1}",numericMax:"Răspunsul '{0}' trebuie să fie mai mic sau egal ca {1}",invalidEmail:"Trebuie să introduceţi o adresa de email validă.",invalidExpression:"Expresia: {0} ar trebui să returneze „adevărat”.",urlRequestError:"Request-ul a returnat eroarea '{0}'. {1}",urlGetChoicesError:"Request-ul nu a returnat date sau proprietatea 'path' este incorectă",exceedMaxSize:"Dimensiunea fişierului nu trebuie să depăşească {0}.",otherRequiredError:"Trebuie să completați câmpul 'Altul'.",uploadingFile:"Fișierul dumneavoastră este în curs de încărcare. Vă rugăm așteptați câteva secunde și reveniți apoi.",loadingFile:"Se încarcă...",chooseFile:"Alege fisierele...",noFileChosen:"Niciun fișier ales",confirmDelete:"Sunteți sigur că doriți să ștergeți înregistrarea?",keyDuplicationError:"Valoarea trebuie să fie unică.",addColumn:"Adăugați coloană",addRow:"Adăugare rând",removeRow:"Ștergere",addPanel:"Adăugare",removePanel:"Ștergere",choices_Item:"opțiune",matrix_column:"Coloană",matrix_row:"Rând",savingData:"Rezultatele sunt în curs de salvare...",savingDataError:"A intervenit o eroare, rezultatele nu au putut fi salvate.",savingDataSuccess:"Rezultatele au fost salvate cu succes!",saveAgainButton:"Încercați din nou",timerMin:"min",timerSec:"sec",timerSpentAll:"Ați petrecut {0} pe această pagină și {1} în total.",timerSpentPage:"Ați petrecut {0} pe această pagină.",timerSpentSurvey:"Ați petrecut {0} în total.",timerLimitAll:"Ați petrecut {0} din {1} pe această pagină și {2} din {3} în total.",timerLimitPage:"Ați petrecut {0} din {1} pe această pagină.",timerLimitSurvey:"Ați petrecut {0} din {1} în total.",cleanCaption:"Curat",clearCaption:"clar",chooseFileCaption:"Alege fișierul",removeFileCaption:"Eliminați acest fișier",booleanCheckedLabel:"da",booleanUncheckedLabel:"Nu",confirmRemoveFile:"Sigur doriți să eliminați acest fișier: {0}?",confirmRemoveAllFiles:"Sigur doriți să eliminați toate fișierele?",questionTitlePatternText:"Titlul intrebarii"};r.a.locales.ro=i,r.a.localeNames.ro="română"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Назад",pageNextText:"Далее",completeText:"Готово",previewText:"Предварительный просмотр",editText:"Редактирование",startSurveyText:"Начать",otherItemText:"Другое (пожалуйста, опишите)",noneItemText:"Нет",selectAllItemText:"Выбрать всё",progressText:"Страница {0} из {1}",panelDynamicProgressText:"Запись {0} из {1}",questionsProgressText:"Ответы на {0}/{1}вопросы",emptySurvey:"Нет ни одного вопроса.",completingSurvey:"Благодарим Вас за заполнение анкеты!",completingSurveyBefore:"Вы уже проходили этот опрос.",loadingSurvey:"Загрузка с сервера...",optionsCaption:"Выбрать...",value:"значение",requiredError:"Пожалуйста, ответьте на вопрос.",requiredErrorInPanel:"Пожалуйста, ответьте по крайней мере на один вопрос.",requiredInAllRowsError:"Пожалуйста, ответьте на вопросы в каждой строке.",numericError:"Ответ должен быть числом.",textMinLength:"Пожалуйста введите больше {0} символов.",textMaxLength:"Пожалуйста введите меньше {0} символов.",textMinMaxLength:"Пожалуйста введите больше {0} и меньше {1} символов.",minRowCountError:"Пожалуйста, заполните не меньше {0} строк.",minSelectError:"Пожалуйста, выберите хотя бы {0} вариантов.",maxSelectError:"Пожалуйста, выберите не более {0} вариантов.",numericMinMax:"'{0}' должно быть не меньше чем {1}, и не больше чем {2}",numericMin:"'{0}' должно быть не меньше чем {1}",numericMax:"'{0}' должно быть не больше чем {1}",invalidEmail:"Пожалуйста, введите действительный адрес электронной почты.",invalidExpression:"Выражение {0} должно возвращать 'true'.",urlRequestError:"Запрос вернул ошибку '{0}'. {1}",urlGetChoicesError:"Ответ на запрос пришел пустой или свойство 'path' указано неверно",exceedMaxSize:"Размер файла не должен превышать {0}.",otherRequiredError:"Пожалуйста, введите данные в поле 'Другое'",uploadingFile:"Ваш файл загружается. Подождите несколько секунд и попробуйте снова.",loadingFile:"Загрузка...",chooseFile:"Выберите файл(ы)...",noFileChosen:"Файл не выбран",confirmDelete:"Вы точно хотите удалить запись?",keyDuplicationError:"Это значение должно быть уникальным.",addColumn:"Добавить колонку",addRow:"Добавить строку",removeRow:"Удалить",addPanel:"Добавить новую",removePanel:"Удалить",choices_Item:"Вариант",matrix_column:"Колонка",matrix_row:"Строка",savingData:"Результаты сохраняются на сервер...",savingDataError:"Произошла ошибка, результат не был сохранён.",savingDataSuccess:"Результат успешно сохранён!",saveAgainButton:"Попробовать снова",timerMin:"мин",timerSec:"сек",timerSpentAll:"Вы потратили {0} на этой странице и {1} всего.",timerSpentPage:"Вы потратили {0} на этой странице.",timerSpentSurvey:"Вы потратили {0} в течение теста.",timerLimitAll:"Вы потратили {0} из {1} на этой странице и {2} из {3} для всего теста.",timerLimitPage:"Вы потратили {0} из {1} на этой странице.",timerLimitSurvey:"Вы потратили {0} из {1} для всего теста.",cleanCaption:"Очистить",clearCaption:"Очистить",chooseFileCaption:"Выберите файл",removeFileCaption:"Удалить файл",booleanCheckedLabel:"Да",booleanUncheckedLabel:"Нет",confirmRemoveFile:"Вы уверены, что хотите удалить этот файл: {0}?",confirmRemoveAllFiles:"Вы уверены, что хотите удалить все файлы?",questionTitlePatternText:"Название вопроса"};r.a.locales.ru=i,r.a.localeNames.ru="русский"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"上一页",pageNextText:"下一页",completeText:"提交问卷",previewText:"预览",editText:"编辑",startSurveyText:"开始问卷",otherItemText:"填写其他答案",noneItemText:"无",selectAllItemText:"选择全部",progressText:"第 {0} 页, 共 {1} 页",panelDynamicProgressText:"{0} of {1}",questionsProgressText:"第 {0}/{1} 题",emptySurvey:"问卷中没有问题或页面",completingSurvey:"感谢您的参与!",completingSurveyBefore:"你已完成问卷.",loadingSurvey:"问卷正在加载中...",optionsCaption:"请选择...",value:"值",requiredError:"请填写此问题",requiredErrorInPanel:"至少回答一题.",requiredInAllRowsError:"请填写所有行中问题",numericError:"答案必须是个数字",textMinLength:"答案长度至少 {0} 个字符",textMaxLength:"答案长度不能超过 {0} 个字符",textMinMaxLength:"答案长度必须在 {0} - {1} 个字符之间",minRowCountError:"最少需要填写 {0} 行答案",minSelectError:"最少需要选择 {0} 项答案",maxSelectError:"最多只能选择 {0} 项答案",numericMinMax:"答案 '{0}' 必须大于等于 {1} 且小于等于 {2}",numericMin:"答案 '{0}' 必须大于等于 {1}",numericMax:"答案 '{0}' 必须小于等于 {1}",invalidEmail:"请输入有效的 Email 地址",invalidExpression:"公式: {0} 无效.",urlRequestError:"载入选项时发生错误 '{0}': {1}",urlGetChoicesError:"未能载入有效的选项或请求参数路径有误",exceedMaxSize:"文件大小不能超过 {0}",otherRequiredError:"请完成其他问题",uploadingFile:"文件上传中... 请耐心等待几秒后重试",loadingFile:"加载...",chooseFile:"选择文件...",noFileChosen:"未选择文件",confirmDelete:"删除记录?",keyDuplicationError:"主键不能重复",addColumn:"添加列",addRow:"添加行",removeRow:"删除答案",addPanel:"新添",removePanel:"删除",choices_Item:"选项",matrix_column:"列",matrix_row:"行",savingData:"正在将结果保存到服务器...",savingDataError:"在保存结果过程中发生了错误，结果未能保存",savingDataSuccess:"结果保存成功!",saveAgainButton:"请重试",timerMin:"分",timerSec:"秒",timerSpentAll:"本页用时 {0} 总计用时{1} .",timerSpentPage:"本页用时{0} .",timerSpentSurvey:"总计用时 {0} .",timerLimitAll:"本页用时 {0} 共 {1}， 总计用时 {2} 共 {3} .",timerLimitPage:"本页用时 {0} 共 {1} .",timerLimitSurvey:"总计用时 {0} 共 {1}.",cleanCaption:"清理",clearCaption:"清除",chooseFileCaption:"选择文件",removeFileCaption:"移除文件",booleanCheckedLabel:"是",booleanUncheckedLabel:"否",confirmRemoveFile:"删除文件: {0}?",confirmRemoveAllFiles:"删除所有文件?",questionTitlePatternText:"标题"};r.a.locales["zh-cn"]=i,r.a.localeNames["zh-cn"]="简体中文"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Anterior",pageNextText:"Siguiente",completeText:"Completar",previewText:"Vista previa",editText:"Edita",startSurveyText:"Comienza",otherItemText:"Otro (describa)",noneItemText:"Ninguno",selectAllItemText:"Seleccionar todo",progressText:"Página {0} de {1}",panelDynamicProgressText:"Registro {0} de {1}",questionsProgressText:"Respondió a {0}/{1} preguntas",emptySurvey:"No hay página visible o pregunta en la encuesta.",completingSurvey:"Gracias por completar la encuesta!",completingSurveyBefore:"Nuestros registros muestran que ya ha completado esta encuesta.",loadingSurvey:"La encuesta está cargando...",optionsCaption:"Seleccione...",value:"valor",requiredError:"Por favor conteste la pregunta.",requiredErrorInPanel:"Por favor, responda al menos una pregunta.",requiredInAllRowsError:"Por favor conteste las preguntas en cada hilera.",numericError:"La estimación debe ser numérica.",textMinLength:"Por favor entre por lo menos {0} símbolos.",textMaxLength:"Por favor entre menos de {0} símbolos.",textMinMaxLength:"Por favor entre más de {0} y menos de {1} símbolos.",minRowCountError:"Por favor llene por lo menos {0} hileras.",minSelectError:"Por favor seleccione por lo menos {0} variantes.",maxSelectError:"Por favor seleccione no más de {0} variantes.",numericMinMax:"El '{0}' debe de ser igual o más de {1} y igual o menos de {2}",numericMin:"El '{0}' debe ser igual o más de {1}",numericMax:"El '{0}' debe ser igual o menos de {1}",invalidEmail:"Por favor agregue un correo electrónico válido.",invalidExpression:"La expresión: {0} debería devolver 'verdadero'.",urlRequestError:"La solicitud regresó error '{0}'. {1}",urlGetChoicesError:"La solicitud regresó vacío de data o la propiedad 'trayectoria' no es correcta",exceedMaxSize:"El tamaño del archivo no debe de exceder {0}.",otherRequiredError:"Por favor agregue la otra estimación.",uploadingFile:"Su archivo se está subiendo. Por favor espere unos segundos e intente de nuevo.",loadingFile:"Cargando...",chooseFile:"Elija archivo(s)...",noFileChosen:"No se ha elegido ningún archivo",confirmDelete:"¿Quieres borrar el registro?",keyDuplicationError:"Este valor debe ser único.",addColumn:"Añadir columna",addRow:"Agregue una hilera",removeRow:"Eliminar una hilera",addPanel:"Añadir nuevo",removePanel:"Retire",choices_Item:"artículo",matrix_column:"Columna",matrix_row:"Hilera",savingData:"Los resultados se están guardando en el servidor...",savingDataError:"Los resultados se están guardando en el servidor...",savingDataSuccess:"¡Los resultados se guardaron con éxito!",saveAgainButton:"Inténtalo de nuevo.",timerMin:"min",timerSec:"sec",timerSpentAll:"Has gastado {0} en esta página y {1} en total.",timerSpentPage:"Usted ha pasado {0} en esta página.",timerSpentSurvey:"Has gastado en total.",timerLimitAll:"Has gastado {0} de {1} en esta página y {2} de {3} en total.",timerLimitPage:"Has gastado {0} de {1} en esta página.",timerLimitSurvey:"Usted ha gastado {0} de {1} en total.",cleanCaption:"Limpia",clearCaption:"Despejen",chooseFileCaption:"Elija el archivo",removeFileCaption:"Elimina este archivo",booleanCheckedLabel:"Sí",booleanUncheckedLabel:"No",confirmRemoveFile:"¿Estás seguro de que quieres eliminar este archivo: {0}?",confirmRemoveAllFiles:"¿Estás seguro de que quieres eliminar todos los archivos?",questionTitlePatternText:"Título de la pregunta"};r.a.locales.es=i,r.a.localeNames.es="español"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Iliyotangulia",pageNextText:"Ifuatayo",completeText:"Kamili",previewText:"Hakiki",editText:"Hariri",startSurveyText:"Anza",otherItemText:"Nyingine (eleza)",noneItemText:"Hakuna",selectAllItemText:"Chagua Zote",progressText:"Ukurasa {0} wa {1}",panelDynamicProgressText:"Rekodi {0} ya {1}",questionsProgressText:"Yaliyojibiwa {0}/{1} maswali",emptySurvey:"Hakuna ukurasa unaoonekana au swali katika utafiti.",completingSurvey:"Asanti kwa kukamilisha utafiti!",completingSurveyBefore:"Recodi zetu zinatuonyesha tayari umekamilisha utafiti.",loadingSurvey:"Tunaandaa utafiti...",optionsCaption:"Chagua...",value:"thamani",requiredError:"Tafadhali jibu hili swali.",requiredErrorInPanel:"Tafadhali jibu swali angalau moja.",requiredInAllRowsError:"Tafadhali jibu maswali katika safu zote.",numericError:"Thamani inapaswa kuwa ya nambari.",textMinLength:"Tafadhali ingiza angalau{0} husika.",textMaxLength:"Tafadhali ingiza isiozidi {0} husika.",textMinMaxLength:"Tafadhali ingiza kiwango zaidi ya {0} na kisichopungua {1} husika.",minRowCountError:"Tafadhali jaza isiopungua {0} safu.",minSelectError:"Tafadhali chagua angalau {0} lahaja.",maxSelectError:"Tafadhali changua isiozidi {0} lahaja.",numericMinMax:" '{0}' inapaswa kuwa sawa au zaidi ya {1} na sawa au chini ya {2}",numericMin:" '{0}'inapaswa kuwa sawa au zaidi ya {1}",numericMax:" '{0}'inapaswa kuwa sawa au chini ya {1}",invalidEmail:"Tafadhali ingiza anwani halali ya barua-pepe.",invalidExpression:"Usemi:{0} inapaswa kurudi 'kweli'.",urlRequestError:"Ombi lina kosa '{0}'. {1}",urlGetChoicesError:"Ombi lilirudisha data tupu au the 'path' mali ya njia sio sahihi",exceedMaxSize:"Saizi ya faili haipaswi kuzidi {0}.",otherRequiredError:"Tafadhali ingiza thamani nyingine.",uploadingFile:"Faili yako inapakia.Tafadhali subiri sekunde kadhaa na ujaribu tena.",loadingFile:"Inapakia...",chooseFile:"Chagua faili...",noFileChosen:"Hujachagua faili",confirmDelete:"Je! Unataka kufuta rekodi?",keyDuplicationError:"Thamani hii inapaswa kuwa ya kipekee.",addColumn:"Ongeza Kolamu",addRow:"Ongeza safu",removeRow:"Toa",addPanel:"Ongeza mpya",removePanel:"Toa",choices_Item:"kitu",matrix_column:"Kolamu",matrix_row:"Safu",savingData:"Matokeo yamehifadhiwa kwa seva...",savingDataError:"Kosa limetokea na hatukuweza kuhifadhi matokeo.",savingDataSuccess:"Matokeo yamehifadhiwa!",saveAgainButton:"Jaribu tena",timerMin:"dakika",timerSec:"sekunde",timerSpentAll:"Umetumia {0} kwenye ukurasa huu na {1} kwa jumla.",timerSpentPage:"Umetumia {0} kwenye ukurasa huu.",timerSpentSurvey:"Umetumia {0} kwa jumla.",timerLimitAll:"Umetumia {0} ya {1} kwenye ukurasa huu {2} wa {3} kwa jumla.",timerLimitPage:"Umetumia {0} ya {1} kwenye ukurasa huu.",timerLimitSurvey:"Umetumia {0} ya {1} kwa jumla.",cleanCaption:"Safisha",clearCaption:"Ondoa",chooseFileCaption:"Chagua faili",removeFileCaption:"Ondoa faili",booleanCheckedLabel:"Ndio",booleanUncheckedLabel:"Hapana",confirmRemoveFile:"Je! Una uhakika kuwa unataka kuondoa faili hii: {0}?",confirmRemoveAllFiles:"Je! Una uhakika kuwa unataka kuondoa faili zote?",questionTitlePatternText:"Kichwa cha Swali"};r.a.locales.sw=i,r.a.localeNames.sw="Swahili"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Föregående",pageNextText:"Nästa",completeText:"Färdig",previewText:"Förhandsvisning",editText:"Redigera",startSurveyText:"Start",otherItemText:"Annat (beskriv)",noneItemText:"Ingen",selectAllItemText:"Välj alla",progressText:"Sida {0} av {1}",panelDynamicProgressText:"Spela in {0} av {1}",questionsProgressText:"Besvarade {0} / {1} frågor",emptySurvey:"Det finns ingen synlig sida eller fråga i enkäten.",completingSurvey:"Tack för att du genomfört enkäten!!",completingSurveyBefore:"Våra register visar att du redan har slutfört denna undersökning.",loadingSurvey:"Enkäten laddas...",optionsCaption:"Välj...",value:"värde",requiredError:"Var vänlig besvara frågan.",requiredErrorInPanel:"Vänligen svara på minst en fråga.",requiredInAllRowsError:"Var vänlig besvara frågorna på alla rader.",numericError:"Värdet ska vara numeriskt.",textMinLength:"Var vänlig ange minst {0} tecken.",textMaxLength:"Ange färre än {0} tecken.",textMinMaxLength:"Ange mer än {0} och färre än {1} tecken.",minRowCountError:"Var vänlig fyll i minst {0} rader.",minSelectError:"Var vänlig välj åtminstone {0} varianter.",maxSelectError:"Var vänlig välj inte fler än {0} varianter.",numericMinMax:"'{0}' ska vara lika med eller mer än {1} samt lika med eller mindre än {2}",numericMin:"'{0}' ska vara lika med eller mer än {1}",numericMax:"'{0}' ska vara lika med eller mindre än {1}",invalidEmail:"Var vänlig ange en korrekt e-postadress.",invalidExpression:"Uttrycket: {0} ska returnera 'true'.",urlRequestError:"Förfrågan returnerade felet '{0}'. {1}",urlGetChoicesError:"Antingen returnerade förfrågan ingen data eller så är egenskapen 'path' inte korrekt",exceedMaxSize:"Filstorleken får ej överstiga {0}.",otherRequiredError:"Var vänlig ange det andra värdet.",uploadingFile:"Din fil laddas upp. Var vänlig vänta några sekunder och försök sedan igen.",loadingFile:"Läser in...",chooseFile:"Välj fil (er) ...",noFileChosen:"Ingen fil vald",confirmDelete:"Vill du radera posten?",keyDuplicationError:"Detta värde ska vara unikt.",addColumn:"Lägg till kolumn",addRow:"Lägg till rad",removeRow:"Ta bort",addPanel:"Lägg till ny",removePanel:"Ta bort",choices_Item:"Artikel",matrix_column:"Kolumn",matrix_row:"Rad",savingData:"Resultaten sparas på servern ...",savingDataError:"Ett fel inträffade och vi kunde inte spara resultaten.",savingDataSuccess:"Resultaten sparades framgångsrikt!",saveAgainButton:"Försök igen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har spenderat {0} på den här sidan och {1} totalt.",timerSpentPage:"Du har spenderat {0} på den här sidan.",timerSpentSurvey:"Du har spenderat {0} totalt.",timerLimitAll:"Du har spenderat {0} av {1} på den här sidan och {2} av {3} totalt.",timerLimitPage:"Du har spenderat {0} av {1} på den här sidan.",timerLimitSurvey:"Du har spenderat {0} av {1} totalt.",cleanCaption:"Rena",clearCaption:"Klar",chooseFileCaption:"Välj FIL",removeFileCaption:"Ta bort den här filen",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Nej",confirmRemoveFile:"Är du säker på att du vill ta bort den här filen: {0}?",confirmRemoveAllFiles:"Är du säker på att du vill ta bort alla filer?",questionTitlePatternText:"Frågetitel"};r.a.locales.sv=i,r.a.localeNames.sv="svenska"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Бозгашт",pageNextText:"Оянда",completeText:"Иҷро шуд",startSurveyText:"Оғоз",otherItemText:"Дигар (лутфан тавсиф кунед)",noneItemText:"Не",selectAllItemText:"Ҳамаро интихоб кардан",progressText:"Саҳифаи {0} аз {1}",emptySurvey:"Ягон савол вуҷуд надорад.",completingSurvey:"Ташаккур барои пур кардани саволнома!",completingSurveyBefore:"Шумо аллакай ин пурсишро анҷом додаед.",loadingSurvey:"Боргирӣ аз сервер...",optionsCaption:"Интихоб кардан...",value:"қиммат",requiredError:"Илтимос, ба савол ҷавоб диҳед.",requiredErrorInPanel:"Илтимос, ақалан ба як савол ҷавоб диҳед.",requiredInAllRowsError:"Илтимос, ба ҳамаи саволҳо дар ҳамаи сатрҳо ҷавоб диҳед.",numericError:"Ҷавоб бояд рақам бошад.",textMinLength:"Илтимос, аз {0} зиёдтар рамз ворид кунед.",textMaxLength:"Илтимос, аз {0} камтар рамз ворид кунед.",textMinMaxLength:"Илтимос, аз {0} зиёдтар ва аз {1} камтар рамз ворид кунед.",minRowCountError:"Илтимос, на камтар аз {0} сатр пур кунед.",minSelectError:"Илтимос, ақалан {0} вариант интихоб кунед.",maxSelectError:"Илтимос, на зиёдтар аз {0} вариант интихоб кунед.",numericMinMax:"'{0}' бояд на кам аз {1} ва на бисёр аз {2} бошад",numericMin:"'{0}' бояд на кам аз {1} бошад",numericMax:"'{0}' бояд на зиёд аз {1} бошад",invalidEmail:"Илтимос, почтаи электронии воқеиро ворид кунед.",invalidExpression:"Ифодаи {0} бояд 'true' баргардонад.",urlRequestError:"Дархост хатогӣ бозгардонд '{0}'. {1}",urlGetChoicesError:"Ҷавоб ба дархост холӣ омад ё хосияти 'path' нодуруст муайян карда шудааст",exceedMaxSize:"Андозаи файл бояд на калон аз {0} бошад.",otherRequiredError:"Илтимос, ба майдони 'Дигар' додаҳоро ворид кунед",uploadingFile:"Файли шумо бор шуда истодааст. Якчанд сония интизор шавед ва бори дигар кӯшиш кунед.",loadingFile:"Боркунӣ...",chooseFile:"Файл(ҳо)-ро интихоб кунед...",confirmDelete:"Шумо мутмаин ҳастед, ки мехоҳед воридро тоза кунед?",keyDuplicationError:"Ин арзиш бояд беназир бошад.",addColumn:"Иловаи сутун",addRow:"Иловаи сатр",removeRow:"Нест кардан",addPanel:"Илова кардан",removePanel:"Нест кардан",choices_Item:"Вариант",matrix_column:"Сутун",matrix_row:"Сатр",savingData:"Натиҷа ба сервер сабт шуда истодаанд...",savingDataError:"Хатогӣ ба амал омад, натиҷа сабт нашуд.",savingDataSuccess:"Натиҷа бомуваффакият сабт шуд!",saveAgainButton:"Бори дигар кӯшиш карданд",timerMin:"дақ",timerSec:"сон",timerSpentAll:"Шумо {0} дар ин саҳифа ва {1} дар умум сарф кардед.",timerSpentPage:"Шумо {0} дар ин саҳифа сарф кардед.",timerSpentSurvey:"Шумо {0} дар ин тест сарф намудед.",timerLimitAll:"Шумо {0} аз {1} дар ин саҳифа ва {2} аз {3} дар умум сарф кардед дар дохили ин тест.",timerLimitPage:"Шумо {0} аз {1} дар ин саҳифа сарф кардед.",timerLimitSurvey:"Шумо {0} аз {1} дар ҳамаи тест сарф кардед.",cleanCaption:"Тоза кардан",clearCaption:"Тоза кардан",removeFileCaption:"Файлро нест кардан"};r.a.locales.tg=i,r.a.localeNames.tg="тоҷикӣ"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"ก่อนหน้า",pageNextText:"ถัดไป",completeText:"สำเร็จ",previewText:"ดูตัวอย่าง",editText:"แก้ไข",startSurveyText:"เริ่ม",otherItemText:"อื่นๆ (โปรดระบุ)",noneItemText:"ไม่มี",selectAllItemText:"เลือกทั้งหมด",progressText:"หน้าที่ {0} จาก {1}",panelDynamicProgressText:"รายการที่ {0} จาก {1}",questionsProgressText:"คำตอบที่ {0}/{1} จำนวนคำถาม",emptySurvey:"ไม่มีหน้าเพจที่มองเห็น หรือ คำถามใน survey นี้",completingSurvey:"ขอบคุณที่ทำ survey จนเสร็จ",completingSurveyBefore:"รายการของเราแสดงว่าคุณได้ทำ survey เสร็จเรียบร้อยแล้ว",loadingSurvey:"กำลังโหลด Survey...",optionsCaption:"เลือก...",value:"ข้อมูล",requiredError:"กรุณาตอบคำถาม",requiredErrorInPanel:"กรุณาตอบขั้นต่ำหนึ่งคำถาม",requiredInAllRowsError:"กรุณาตอบคำถามในทุกๆแถว",numericError:"ข้อมูลที่ใส่ต้องเป็นตัวเลข",textMinLength:"กรุณาใส่ขั้นต่ำจำนวน {0} ตัวอักษร",textMaxLength:"กรุณาใส่ไม่เกินจำนวน {0} ตัวอักษร",textMinMaxLength:"กรุณาใส่ขั้นต่ำจำนวน {0} และไม่เกินจำนวน {1} ตัวอักษร",minRowCountError:"กรุณาใส่ขั้นต่ำจำนวน {0} แถว",minSelectError:"กรุณาเลือกอย่างน้อย {0} รายการ",maxSelectError:"กรุณาเลือกไม่เกิน {0} รายการ",numericMinMax:"'{0}' ต้องมากกว่าหรือเท่ากับ {1} และน้อยกว่าหรือเท่ากับ {2}",numericMin:"'{0}' ต้องมากกว่าหรือเท่ากับ {1}",numericMax:"'{0}' น้อยกว่าหรือเท่ากับ {1}",invalidEmail:"กรุณาใส่อีเมล์แอดเดรสที่ถูกต้อง",invalidExpression:"The expression: {0} ต้องรีเทิร์น 'true'.",urlRequestError:"รีเควสรีเทิร์น error '{0}'. {1}",urlGetChoicesError:"รีเควสรีเทิร์นข้อมูลว่างเปล่า หรือ 'path' property ไม่ถูกต้อง",exceedMaxSize:"ขนาดไฟล์ต้องไม่เกิน {0}.",otherRequiredError:"กรุณาใส่ค่าอื่น",uploadingFile:"ไฟล์ของคุณกำลังอัพโหลดอยู่. กรุณารอสักครู่แล้วทำการลองอีกครั้ง",loadingFile:"กำลังโหลด...",chooseFile:"เลือกไฟล์...",noFileChosen:"ไม่ไฟล์ที่เลือก",confirmDelete:"คุณต้องการลบรายการนี้จริงหรือไม่?",keyDuplicationError:"ข้อมูลนี้ต้องเป็น unique.",addColumn:"เพิ่มคอลัมน์",addRow:"เพิ่มแถว",removeRow:"ลบ",addPanel:"เพิ่ม",removePanel:"ลบ",choices_Item:"ชิ้น",matrix_column:"คอลัมน์",matrix_row:"แถว",savingData:"ผลลัพท์กำลังบันทึกลงที่เซิร์ฟเวอร์...",savingDataError:"มีความผิดพลาดเกิดขึ้นส่งผลให้ไม่สามารถบันทึกผลได้",savingDataSuccess:"บันทึกสำเร็จแล้ว",saveAgainButton:"รบกวนลองอีกครั้ง",timerMin:"นาที",timerSec:"วินาที",timerSpentAll:"คุณใช้เวลา {0} บนหน้านี้และ {1} รวมทั้งหมด",timerSpentPage:"คุณใช้เวลา {0} บนหน้านี้",timerSpentSurvey:"คุณใช้เวลา {0} รวมทั้งหมด",timerLimitAll:"คุณใช้เวลา {0} ของ {1} บนหน้านี้และ {2} ของ {3} รวมทั้งหมด",timerLimitPage:"คุณใช้เวลา {0} ของ {1} บนหน้านี้",timerLimitSurvey:"คุณใช้เวลา {0} ของ {1} รวมทั้งหมด",cleanCaption:"คลีน",clearCaption:"เคลียร์",chooseFileCaption:"เลือกไฟล์",removeFileCaption:"นำไฟล์นี้ออก",booleanCheckedLabel:"ใช่",booleanUncheckedLabel:"ไม่ใช่",confirmRemoveFile:"คุณแน่ใจที่จะนำไฟล์นี้ออกใช่หรือไม่: {0}?",confirmRemoveAllFiles:"คุณแน่ใจที่จะนำไฟล์ทั้งหมดออกใช่หรือไม่",questionTitlePatternText:"ชื่อคำถาม"};r.a.locales.th=i,r.a.localeNames.th="ไทย"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"上一頁",pageNextText:"下一頁",completeText:"提交問卷",otherItemText:"填寫其他答案",progressText:"第 {0} 頁, 共 {1} 頁",emptySurvey:"問卷中沒有問題或頁面",completingSurvey:"感謝您的參與!",loadingSurvey:"問卷載入中...",optionsCaption:"請選擇...",requiredError:"請填寫此問題",requiredInAllRowsError:"請填寫所有行中問題",numericError:"答案必須是個數字",textMinLength:"答案長度至少 {0} 個字元",textMaxLength:"答案長度不能超過 {0} 個字元",textMinMaxLength:"答案長度必須在 {0} - {1} 個字元之間",minRowCountError:"最少需要填寫 {0} 行答案",minSelectError:"最少需要選擇 {0} 項答案",maxSelectError:"最多只能選擇 {0} 項答案",numericMinMax:"答案 '{0}' 必須大於等於 {1} 且小於等於 {2}",numericMin:"答案 '{0}' 必須大於等於 {1}",numericMax:"答案 '{0}' 必須小於等於 {1}",invalidEmail:"請輸入有效的 Email 地址",urlRequestError:"載入選項時發生錯誤 '{0}': {1}",urlGetChoicesError:"未能載入有效的選項或請求參數路徑有誤",exceedMaxSize:"文件大小不能超過 {0}",otherRequiredError:"請完成其他問題",uploadingFile:"文件上傳中... 請耐心等待幾秒後重試",addRow:"添加答案",removeRow:"刪除答案",choices_Item:"選項",matrix_column:"列",matrix_row:"行",savingData:"正在將結果保存到服務器...",savingDataError:"在保存結果過程中發生了錯誤，結果未能保存",savingDataSuccess:"結果保存成功!",saveAgainButton:"請重試"};r.a.locales["zh-tw"]=i,r.a.localeNames["zh-tw"]="繁體中文"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Geri",pageNextText:"İleri",completeText:"Anketi Tamamla",previewText:"Ön izleme",editText:"Düzenle",startSurveyText:"Başlat",otherItemText:"Diğer (açıklayınız)",noneItemText:"Yok",selectAllItemText:"Hepsini seç",progressText:"Sayfa {0} / {1}",panelDynamicProgressText:"Kayıt {0} / {1}",questionsProgressText:"Soruları cevapladı {0} / {1}",emptySurvey:"Ankette görüntülenecek sayfa ya da soru mevcut değil.",completingSurvey:"Anketimizi tamamladığınız için teşekkür ederiz.",completingSurveyBefore:"Kayıtlarımız, bu anketi zaten tamamladığınızı gösteriyor.",loadingSurvey:"Anket sunucudan yükleniyor ...",optionsCaption:"Seçiniz ...",value:"değer",requiredError:"Lütfen soruya cevap veriniz",requiredErrorInPanel:"Lütfen en az bir soruyu yanıtlayın.",requiredInAllRowsError:"Lütfen tüm satırlardaki soruları cevaplayınız.",numericError:"Girilen değer numerik olmalıdır",textMinLength:"En az {0} sembol giriniz.",textMaxLength:"Lütfen {0} karakterden az girin.",textMinMaxLength:"Lütfen {0} ’den fazla ve {1} ’den az karakter girin.",minRowCountError:"Lütfen en az {0} satırı doldurun.",minSelectError:"Lütfen en az {0} seçeneği seçiniz.",maxSelectError:"Lütfen {0} adetten fazla seçmeyiniz.",numericMinMax:"The '{0}' should be equal or more than {1} and equal or less than {2}",numericMin:"'{0}' değeri {1} değerine eşit veya büyük olmalıdır",numericMax:"'{0}' değeri {1} değerine eşit ya da küçük olmalıdır.",invalidEmail:"Lütfen geçerli bir eposta adresi giriniz.",invalidExpression:"İfade: {0} 'true' döndürmelidir.",urlRequestError:"Talebi şu hatayı döndü '{0}'. {1}",urlGetChoicesError:"Talep herhangi bir veri dönmedi ya da 'path' özelliği hatalı.",exceedMaxSize:"Dosya boyutu {0} değerini geçemez.",otherRequiredError:"Lütfen diğer değerleri giriniz.",uploadingFile:"Dosyanız yükleniyor. LÜtfen birkaç saniye bekleyin ve tekrar deneyin.",loadingFile:"Yükleniyor...",chooseFile:"Dosyaları seçin ...",noFileChosen:"Dosya seçili değil",confirmDelete:"Kaydı silmek istiyor musunuz?",keyDuplicationError:"Bu değer benzersiz olmalıdır.",addColumn:"Sütun ekleyin",addRow:"Satır Ekle",removeRow:"Kaldır",addPanel:"Yeni ekle",removePanel:"Kaldırmak",choices_Item:"eşya",matrix_column:"Sütun",matrix_row:"Kürek çekmek",savingData:"Sonuçlar sunucuya kaydediliyor ...",savingDataError:"Bir hata oluştu ve sonuçları kaydedemedik.",savingDataSuccess:"Sonuçlar başarıyla kaydedildi!",saveAgainButton:"Tekrar deneyin",timerMin:"min",timerSec:"saniye",timerSpentAll:"Bu sayfada {0} ve toplamda {1} harcadınız.",timerSpentPage:"Bu sayfaya {0} harcadınız.",timerSpentSurvey:"Toplamda {0} harcadınız.",timerLimitAll:"Bu sayfaya {0} / {1} ve toplamda {2} / {3} harcadınız.",timerLimitPage:"Bu sayfaya {0} / {1} harcadınız.",timerLimitSurvey:"Toplamda {0} / {1} harcadınız.",cleanCaption:"Temiz",clearCaption:"Açık",chooseFileCaption:"Dosya seçin",removeFileCaption:"Bu dosyayı kaldır",booleanCheckedLabel:"Evet",booleanUncheckedLabel:"Hayır",confirmRemoveFile:"Bu dosyayı kaldırmak istediğinizden emin misiniz: {0}?",confirmRemoveAllFiles:"Tüm dosyaları kaldırmak istediğinizden emin misiniz?",questionTitlePatternText:"Soru başlığı"};r.a.locales.tr=i,r.a.localeNames.tr="türkçe"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Назад",pageNextText:"Далі",completeText:"Завершити",previewText:"Попередній перегляд",editText:"Редагувати",startSurveyText:"Почати",otherItemText:"Інше (будь ласка, опишіть)",noneItemText:"Жоден",selectAllItemText:"Вибрати все",progressText:"Сторінка {0} з {1}",panelDynamicProgressText:"Запис {0} із {1}",questionsProgressText:"Відповіли на {0}/{1} питань",emptySurvey:"Немає жодного питання.",completingSurvey:"Дякуємо Вам за заповнення анкети!",completingSurveyBefore:"Ви вже проходили це опитування.",loadingSurvey:"Завантаження опитування...",optionsCaption:"Вибрати...",value:"значення",requiredError:"Будь ласка, дайте відповідь.",requiredErrorInPanel:"Будь ласка, дайте відповідь хоча б на одне питання.",requiredInAllRowsError:"Будь ласка, дайте відповідь на питання в кожному рядку.",numericError:"Відповідь повинна бути числом.",textMinLength:"Будь ласка введіть більше {0} символів.",textMaxLength:"Будь ласка введіть менше {0} символів.",textMinMaxLength:"Будь ласка введіть більше {0} и менше {1} символів.",minRowCountError:"Будь ласка, заповніть не менше {0} рядків.",minSelectError:"Будь ласка, виберіть хоча б {0} варіантів.",maxSelectError:"Будь ласка, виберіть не більше {0} варіантів.",numericMinMax:"'{0}' повинно бути не менше ніж {1}, і не більше ніж {2}",numericMin:"'{0}' повинно бути не менше ніж {1}",numericMax:"'{0}' повинно бути не більше ніж {1}",invalidEmail:"Будь ласка, введіть дійсну адресу електронної пошти.",invalidExpression:"Вираз {0} повинен повертати 'true'.",urlRequestError:"Запит повернув помилку '{0}'. {1}",urlGetChoicesError:"Відповідь на запит повернулась порожньою або властивіть 'path' вказано невірно",exceedMaxSize:"Розмір файлу не повинен перевищувати {0}.",otherRequiredError:"Будь ласка, введіть дані в поле 'Інше'",uploadingFile:"Ваш файл завантажується. Зачекайте декілька секунд і спробуйте знову.",loadingFile:"Завантаження...",chooseFile:"Виберіть файл(и)...",noFileChosen:"Файл не вибрано",confirmDelete:"Ви хочете видалити запис?",keyDuplicationError:"Це значення повинно бути унікальним.",addColumn:"Додати колонку",addRow:"Додати рядок",removeRow:"Видалити",addPanel:"Додати нову",removePanel:"Видалити",choices_Item:"Варіант",matrix_column:"Колонка",matrix_row:"Рядок",savingData:"Результати зберігаються на сервер...",savingDataError:"Відбулася помилка, результат не був збережений.",savingDataSuccess:"Резвультат успішно збережений!",saveAgainButton:"Спробувати знову",timerMin:"хв",timerSec:"сек",timerSpentAll:"Ви витратили {0} на цій сторінці і {1} загалом.",timerSpentPage:"Ви витратили {0} на цій сторінці.",timerSpentSurvey:"Ви витратили {0} протягом тесту.",timerLimitAll:"Ви витратили {0} з {1} на цій сторінці і {2} з {3} для всього тесту.",timerLimitPage:"Ви витратили {0} з {1} на цій сторінці.",timerLimitSurvey:"Ви витратили {0} з {1} для всього тесту.",cleanCaption:"Очистити",clearCaption:"Очистити",chooseFileCaption:"Виберіть файл",removeFileCaption:"Видалити файл",booleanCheckedLabel:"Так",booleanUncheckedLabel:"Ні",confirmRemoveFile:"Ви впевнені, що хочете видалити цей файл: {0}?",confirmRemoveAllFiles:"Ви впевнені, що хочете видалити всі файли?",questionTitlePatternText:"Назва запитання"};r.a.locales.ua=i,r.a.localeNames.ua="українська"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Blaenorol",pageNextText:"Nesaf",completeText:"Cwblhau",previewText:"Rhagolwg",editText:"Golygu",startSurveyText:"Dechrau",otherItemText:"Arall (disgrifiwch)",noneItemText:"Dim",selectAllItemText:"Dewis y Cyfan ",progressText:"Tudalen {0} o {1}",panelDynamicProgressText:"Cofnod {0} o {1}",questionsProgressText:"Wedi ateb {0}/{1} cwestiwn",emptySurvey:"Does dim modd gweld tudalen na chwestiwn yn yr arolwg.",completingSurvey:"Diolch am lenwi’r holiadur!",completingSurveyBefore:"Rydych chi wedi llenwi’r arolwg hwn yn barod yn ôl ein cofnodion.",loadingSurvey:"Wrthi’n Llwytho’r Arolwg...",optionsCaption:"Dewiswch...",value:"gwerth",requiredError:"Atebwch y cwestiwn.",requiredErrorInPanel:"Atebwch o leiaf un cwestiwn.",requiredInAllRowsError:"Atebwch y cwestiynau ym mhob rhes.",numericError:"Dylai’r gwerth fod yn rhif.",textMinLength:"Rhowch o leiaf {0} nod.",textMaxLength:"Rhowch lai na {0} nod.",textMinMaxLength:"Rhowch o leiaf {0} nod ond dim mwy na {1}.",minRowCountError:"Llenwch o leiaf {0} rhes.",minSelectError:"Dewiswch o leiaf {0} amrywiolyn.",maxSelectError:"Peidiwch â dewis mwy na {0} amrywiolyn.",numericMinMax:"Dylai’r '{0}' fod yr un fath â {1} neu’n fwy, a’r fath â {2} neu’n llai",numericMin:"Dylai’r '{0}' fod yr un fath â {1} neu’n fwy",numericMax:"Dylai’r '{0}' fod yr un fath â {1} neu’n llai",invalidEmail:"Rhowch gyfeiriad e-bost dilys.",invalidExpression:"Dylai’r mynegiad {0} arwain at 'true'.",urlRequestError:"Roedd y cais wedi arwain at y gwall '{0}'. {1}",urlGetChoicesError:"Roedd y cais wedi arwain at ddata gwag neu mae priodwedd y ‘path’ yn anghywir ",exceedMaxSize:"Ddylai’r ffeil ddim bod yn fwy na {0}.",otherRequiredError:"Rhowch y gwerth arall.",uploadingFile:"Mae eich ffeil wrthi’n llwytho i fyny. Arhoswch ychydig o eiliadau a rhoi cynnig arall arni.",loadingFile:"Wrthi’n llwytho...",chooseFile:"Dewiswch ffeil(iau)...",noFileChosen:"Heb ddewis ffeil ",confirmDelete:"Ydych chi am ddileu’r cofnod?",keyDuplicationError:"Dylai’r gwerth hwn fod yn unigryw.",addColumn:"Ychwanegu colofn ",addRow:"Ychwanegu rhes",removeRow:"Tynnu",addPanel:"Ychwanegu o’r newydd",removePanel:"Tynnu",choices_Item:"eitem",matrix_column:"Colofn",matrix_row:"Rhes",savingData:"Mae’r canlyniadau’n cael eu cadw ar y gweinydd...",savingDataError:"Roedd gwall a doedd dim modd cadw’r canlyniadau.",savingDataSuccess:"Wedi llwyddo i gadw’r canlyniadau!",saveAgainButton:"Rhowch gynnig arall arni",timerMin:"mun",timerSec:"eil",timerSpentAll:"Rydych chi wedi treulio {0} ar y dudalen hon a {1} gyda’i gilydd.",timerSpentPage:"Rydych chi wedi treulio {0} ar y dudalen hon.",timerSpentSurvey:"Rydych chi wedi treulio {0} gyda’i gilydd.",timerLimitAll:"Rydych chi wedi treulio {0} o {1} ar y dudalen hon a {2} o {3} gyda’i gilydd.",timerLimitPage:"Rydych chi wedi treulio {0} o {1} ar y dudalen hon.",timerLimitSurvey:"Rydych chi wedi treulio {0} o {1} gyda’i gilydd.",cleanCaption:"Glanhau",clearCaption:"Clirio",chooseFileCaption:"Dewiswch ffeil ",removeFileCaption:"Tynnu’r ffeil hon ",booleanCheckedLabel:"Iawn",booleanUncheckedLabel:"Na",confirmRemoveFile:"Ydych chi’n siŵr eich bod am dynnu’r ffeil hon: {0}?",confirmRemoveAllFiles:"Ydych chi’n siŵr eich bod am dynnu pob ffeil?",questionTitlePatternText:"Teitl y Cwestiwn "};r.a.locales.cy=i,r.a.localeNames.cy="cymraeg"},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(5),a=n(1),s=n(10),l=n(26),u=n(16),c=n(7);n.d(t,"g",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"d",function(){return h}),n.d(t,"b",function(){return f}),n.d(t,"c",function(){return g}),n.d(t,"f",function(){return y}),n.d(t,"e",function(){return v});var p=function(e){function t(){var t=e.call(this)||this;t.usedNames=[];var n=t;return t.registerFunctionOnPropertiesValueChanged(["operator","value","name"],function(){n.oldPropertiesChanged()}),t.registerFunctionOnPropertyValueChanged("expression",function(){n.onExpressionChanged()}),t}return n.i(r.b)(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue?t.operatorsValue:(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}},t.operatorsValue)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),t.prototype.checkExpression=function(e,t,n){void 0===n&&(n=null),this.isCheckRequired(e)&&this.conditionRunner&&this.perform(t,n)},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},t.prototype.perform=function(e,t){var n=this;this.conditionRunner.onRunComplete=function(r){n.triggerResult(r,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,n){e?this.onSuccess(t,n):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.usedNames=[],this.hasFunction=!1,this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?i.a.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+l.h.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=new u.a,n=0;n<this.usedNames.length;n++){var r=this.usedNames[n],o=t.getFirstName(r);if(e.hasOwnProperty(o)){if(r==o)return!0;var a=e[o];if(!a.hasOwnProperty("oldValue")||!a.hasOwnProperty("newValue"))return!0;var s={};s[o]=a.oldValue;var l=t.getValue(r,s);s[o]=a.newValue;var c=t.getValue(r,s);return!i.a.isTwoValueEquals(l,c)}}return!1},t.prototype.buildUsedNames=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new s.a(e),this.hasFunction=this.conditionRunner.hasFunction(),this.usedNames=this.conditionRunner.getVariables())}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!0,configurable:!0}),t.operatorsValue=null,t}(o.b),d=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!0,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!1},enumerable:!0,configurable:!0}),t}(p),h=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return n.i(r.b)(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),n=0;n<t.length;n++)e(t[n])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(d),f=function(e){function t(){return e.call(this)||this}return n.i(r.b)(t,e),t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!c.a.executeCompleteTriggerOnValueChanged},enumerable:!0,configurable:!0}),t.prototype.onSuccess=function(e,t){this.owner&&this.owner.setCompleted()},t}(d),g=function(e){function t(){return e.call(this)||this}return n.i(r.b)(t,e),t.prototype.getType=function(){return"setvaluetrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable",!1)},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!0,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(d),m=function(e){function t(){return e.call(this)||this}return n.i(r.b)(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!c.a.executeSkipTriggerOnValueChanged},enumerable:!0,configurable:!0}),t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(d),y=function(e){function t(){return e.call(this)||this}return n.i(r.b)(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!0,configurable:!0}),t.prototype.onSuccess=function(e,t){var n=this;if(this.owner&&this.runExpression){var r=new s.b(this.runExpression);r.canRun&&(r.onRunComplete=function(e){n.onCompleteRunExpression(e)},r.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0===e||this.owner.setTriggerValue(this.setToName,e,!1)},t}(d),v=function(e){function t(){return e.call(this)||this}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName)},t}(d);a.b.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),a.b.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),a.b.addClass("visibletrigger",["pages:pages","questions:questions"],function(){return new h},"surveytrigger"),a.b.addClass("completetrigger",[],function(){return new f},"surveytrigger"),a.b.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],function(){return new g},"surveytrigger"),a.b.addClass("copyvaluetrigger",[{name:"!setToName:questionvalue"},{name:"!fromName:questionvalue"}],function(){return new v},"surveytrigger"),a.b.addClass("skiptrigger",[{name:"!gotoName:question"}],function(){return new m},"surveytrigger"),a.b.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],function(){return new y},"surveytrigger")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=(n.n(r),n(72)),o=n.n(i),a=n(41);n.d(t,"Version",function(){return a.a}),n.d(t,"settings",function(){return a.b}),n.d(t,"Helpers",function(){return a.c}),n.d(t,"AnswerCountValidator",function(){return a.d}),n.d(t,"EmailValidator",function(){return a.e}),n.d(t,"NumericValidator",function(){return a.f}),n.d(t,"RegexValidator",function(){return a.g}),n.d(t,"SurveyValidator",function(){return a.h}),n.d(t,"TextValidator",function(){return a.i}),n.d(t,"ValidatorResult",function(){return a.j}),n.d(t,"ExpressionValidator",function(){return a.k}),n.d(t,"ValidatorRunner",function(){return a.l}),n.d(t,"ItemValue",function(){return a.m}),n.d(t,"Base",function(){return a.n}),n.d(t,"Event",function(){return a.o}),n.d(t,"SurveyError",function(){return a.p}),n.d(t,"SurveyElement",function(){return a.q}),n.d(t,"CalculatedValue",function(){return a.r}),n.d(t,"CustomError",function(){return a.s}),n.d(t,"AnswerRequiredError",function(){return a.t}),n.d(t,"OneAnswerRequiredError",function(){return a.u}),n.d(t,"RequreNumericError",function(){return a.v}),n.d(t,"ExceedSizeError",function(){return a.w}),n.d(t,"LocalizableString",function(){return a.x}),n.d(t,"HtmlConditionItem",function(){return a.y}),n.d(t,"UrlConditionItem",function(){return a.z}),n.d(t,"ChoicesRestfull",function(){return a.A}),n.d(t,"FunctionFactory",function(){return a.B}),n.d(t,"registerFunction",function(){return a.C}),n.d(t,"ConditionRunner",function(){return a.D}),n.d(t,"ExpressionRunner",function(){return a.E}),n.d(t,"Operand",function(){return a.F}),n.d(t,"Const",function(){return a.G}),n.d(t,"BinaryOperand",function(){return a.H}),n.d(t,"Variable",function(){return a.I}),n.d(t,"FunctionOperand",function(){return a.J}),n.d(t,"ArrayOperand",function(){return a.K}),n.d(t,"ConditionsParser",function(){return a.L}),n.d(t,"ProcessValue",function(){return a.M}),n.d(t,"JsonError",function(){return a.N}),n.d(t,"JsonIncorrectTypeError",function(){return a.O}),n.d(t,"JsonMetadata",function(){return a.P}),n.d(t,"JsonMetadataClass",function(){return a.Q}),n.d(t,"JsonMissingTypeError",function(){return a.R}),n.d(t,"JsonMissingTypeErrorBase",function(){return a.S}),n.d(t,"JsonObject",function(){return a.T}),n.d(t,"JsonObjectProperty",function(){return a.U}),n.d(t,"JsonRequiredPropertyError",function(){return a.V}),n.d(t,"JsonUnknownPropertyError",function(){return a.W}),n.d(t,"Serializer",function(){return a.X}),n.d(t,"MatrixDropdownCell",function(){return a.Y}),n.d(t,"MatrixDropdownColumn",function(){return a.Z}),n.d(t,"matrixDropdownColumnTypes",function(){return a._0}),n.d(t,"MatrixDropdownRowModelBase",function(){return a._1}),n.d(t,"QuestionMatrixDropdownModelBase",function(){return a._2}),n.d(t,"MatrixDropdownRowModel",function(){return a._3}),n.d(t,"QuestionMatrixDropdownModel",function(){return a._4}),n.d(t,"MatrixDynamicRowModel",function(){return a._5}),n.d(t,"QuestionMatrixDynamicModel",function(){return a._6}),n.d(t,"MatrixRowModel",function(){return a._7}),n.d(t,"MartrixCells",function(){return a._8}),n.d(t,"QuestionMatrixModel",function(){return a._9}),n.d(t,"MultipleTextItemModel",function(){return a._10}),n.d(t,"QuestionMultipleTextModel",function(){return a._11}),n.d(t,"PanelModel",function(){return a._12}),n.d(t,"PanelModelBase",function(){return a._13}),n.d(t,"QuestionRowModel",function(){return a._14}),n.d(t,"FlowPanelModel",function(){return a._15}),n.d(t,"PageModel",function(){return a._16}),n.d(t,"Question",function(){return a._17}),n.d(t,"QuestionNonValue",function(){return a._18}),n.d(t,"QuestionEmptyModel",function(){return a._19}),n.d(t,"QuestionCheckboxBase",function(){return a._20}),n.d(t,"QuestionSelectBase",function(){return a._21}),n.d(t,"QuestionCheckboxModel",function(){return a._22}),n.d(t,"QuestionCommentModel",function(){return a._23}),n.d(t,"QuestionDropdownModel",function(){return a._24}),n.d(t,"QuestionFactory",function(){return a._25}),n.d(t,"ElementFactory",function(){return a._26}),n.d(t,"QuestionFileModel",function(){return a._27}),n.d(t,"QuestionHtmlModel",function(){return a._28}),n.d(t,"QuestionRadiogroupModel",function(){return a._29}),n.d(t,"QuestionRatingModel",function(){return a._30}),n.d(t,"QuestionExpressionModel",function(){return a._31}),n.d(t,"QuestionTextModel",function(){return a._32}),n.d(t,"QuestionBooleanModel",function(){return a._33}),n.d(t,"QuestionImagePickerModel",function(){return a._34}),n.d(t,"QuestionImageModel",function(){return a._35}),n.d(t,"QuestionSignaturePadModel",function(){return a._36}),n.d(t,"QuestionPanelDynamicModel",function(){return a._37}),n.d(t,"QuestionPanelDynamicItem",function(){return a._38}),n.d(t,"SurveyTimer",function(){return a._39}),n.d(t,"SurveyProgressButtonsModel",function(){return a._40}),n.d(t,"SurveyModel",function(){return a._41}),n.d(t,"SurveyTrigger",function(){return a._42}),n.d(t,"SurveyTriggerComplete",function(){return a._43}),n.d(t,"SurveyTriggerSetValue",function(){return a._44}),n.d(t,"SurveyTriggerVisible",function(){return a._45}),n.d(t,"SurveyTriggerCopyValue",function(){return a._46}),n.d(t,"SurveyTriggerRunExpression",function(){return a._47}),n.d(t,"Trigger",function(){return a._48}),n.d(t,"SurveyWindowModel",function(){return a._49}),n.d(t,"TextPreProcessor",function(){return a._50}),n.d(t,"dxSurveyService",function(){return a._51}),n.d(t,"englishStrings",function(){return a._52}),n.d(t,"surveyLocalization",function(){return a._53}),n.d(t,"surveyStrings",function(){return a._54}),n.d(t,"QuestionCustomWidget",function(){return a._55}),n.d(t,"CustomWidgetCollection",function(){return a._56}),n.d(t,"QuestionCustomModel",function(){return a._57}),n.d(t,"QuestionCompositeModel",function(){return a._58}),n.d(t,"ComponentQuestionJSON",function(){return a._59}),n.d(t,"ComponentCollection",function(){return a._60}),n.d(t,"StylesManager",function(){return a._61});var s=(n(40),n(0));n.d(t,"__assign",function(){return s.a}),n.d(t,"__extends",function(){return s.b}),n.d(t,"__decorate",function(){return s.c}),n.d(t,"__spreadArrays",function(){return s.d});var l=n(13);n.d(t,"defaultStandardCss",function(){return l.a});var u=n(37);n.d(t,"defaultBootstrapCss",function(){return u.a});var c=n(38);n.d(t,"defaultBootstrapMaterialCss",function(){return c.a});var p=n(39);n.d(t,"modernCss",function(){return p.a});var d=n(71);n.d(t,"Model",function(){return d.a});var h=n(20),f=n(19);o.a.fn.extend({Survey:function(e){return this.each(function(){var t=e.model;t.updateSurvey(e),t.render(this)})},SurveyWindow:function(e){return this.each(function(){var t=e.model;t.updateSurvey(e);var n=new d.b(null,t);void 0!==e.expanded&&(n.isExpanded=e.expanded),void 0!==e.isExpanded&&(n.isExpanded=e.isExpanded),void 0!==e.closeOnCompleteTimeout&&(n.closeOnCompleteTimeout=e.closeOnCompleteTimeout),n.show()})}}),h.a.platform="jquery",n.i(f.a)(r,h.a.platform)}])});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

// This is CodeMirror (http://codemirror.net), a code editor
// implemented in JavaScript on top of the browser's DOM.
//
// You can find some technical background for some of the code below
// at http://marijnhaverbeke.nl/blog/#cm-internals .

(function (mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
        module.exports = mod();
    else if (typeof define == "function" && define.amd) // AMD
        return define([], mod);
    else // Plain browser env
        (this || window).CodeMirror = mod();
})(function () {
    "use strict";

    // BROWSER SNIFFING

    // Kludges for bugs and behavior differences that can't be feature
    // detected are enabled based on userAgent etc sniffing.
    var userAgent = navigator.userAgent;
    var platform = navigator.platform;

    var gecko = /gecko\/\d/i.test(userAgent);
    var ie_upto10 = /MSIE \d/.test(userAgent);
    var ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(userAgent);
    var ie = ie_upto10 || ie_11up;
    var ie_version = ie && (ie_upto10 ? document.documentMode || 6 : ie_11up[1]);
    var webkit = /WebKit\//.test(userAgent);
    var qtwebkit = webkit && /Qt\/\d+\.\d+/.test(userAgent);
    var chrome = /Chrome\//.test(userAgent);
    var presto = /Opera\//.test(userAgent);
    var safari = /Apple Computer/.test(navigator.vendor);
    var mac_geMountainLion = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(userAgent);
    var phantom = /PhantomJS/.test(userAgent);

    var ios = /AppleWebKit/.test(userAgent) && /Mobile\/\w+/.test(userAgent);
    // This is woefully incomplete. Suggestions for alternative methods welcome.
    var mobile = ios || /Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent);
    var mac = ios || /Mac/.test(platform);
    var chromeOS = /\bCrOS\b/.test(userAgent);
    var windows = /win/i.test(platform);

    var presto_version = presto && userAgent.match(/Version\/(\d*\.\d*)/);
    if (presto_version) presto_version = Number(presto_version[1]);
    if (presto_version && presto_version >= 15) { presto = false; webkit = true; }
    // Some browsers use the wrong event properties to signal cmd/ctrl on OS X
    var flipCtrlCmd = mac && (qtwebkit || presto && (presto_version == null || presto_version < 12.11));
    var captureRightClick = gecko || (ie && ie_version >= 9);

    // Optimize some code when these features are not used.
    var sawReadOnlySpans = false, sawCollapsedSpans = false;

    // EDITOR CONSTRUCTOR

    // A CodeMirror instance represents an editor. This is the object
    // that user code is usually dealing with.

    function CodeMirror(place, options) {
        if (!(this instanceof CodeMirror)) return new CodeMirror(place, options);

        this.options = options = options ? copyObj(options) : {};
        // Determine effective options based on given values and defaults.
        copyObj(defaults, options, false);
        setGuttersForLineNumbers(options);

        var doc = options.value;
        if (typeof doc == "string") doc = new Doc(doc, options.mode, null, options.lineSeparator);
        this.doc = doc;

        var input = new CodeMirror.inputStyles[options.inputStyle](this);
        var display = this.display = new Display(place, doc, input);
        display.wrapper.CodeMirror = this;
        updateGutters(this);
        themeChanged(this);
        if (options.lineWrapping)
            this.display.wrapper.className += " CodeMirror-wrap";
        if (options.autofocus && !mobile) display.input.focus();
        initScrollbars(this);

        this.state = {
            keyMaps: [],  // stores maps added by addKeyMap
            overlays: [], // highlighting overlays, as added by addOverlay
            modeGen: 0,   // bumped when mode/overlay changes, used to invalidate highlighting info
            overwrite: false,
            delayingBlurEvent: false,
            focused: false,
            suppressEdits: false, // used to disable editing during key handlers when in readOnly mode
            pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll
            selectingText: false,
            draggingText: false,
            highlight: new Delayed(), // stores highlight worker timeout
            keySeq: null,  // Unfinished key sequence
            specialChars: null
        };

        var cm = this;

        // Override magic textarea content restore that IE sometimes does
        // on our hidden textarea on reload
        if (ie && ie_version < 11) setTimeout(function () { cm.display.input.reset(true); }, 20);

        registerEventHandlers(this);
        ensureGlobalHandlers();

        startOperation(this);
        this.curOp.forceUpdate = true;
        attachDoc(this, doc);

        if ((options.autofocus && !mobile) || cm.hasFocus())
            setTimeout(bind(onFocus, this), 20);
        else
            onBlur(this);

        for (var opt in optionHandlers) if (optionHandlers.hasOwnProperty(opt))
            optionHandlers[opt](this, options[opt], Init);
        maybeUpdateLineNumberWidth(this);
        if (options.finishInit) options.finishInit(this);
        for (var i = 0; i < initHooks.length; ++i) initHooks[i](this);
        endOperation(this);
        // Suppress optimizelegibility in Webkit, since it breaks text
        // measuring on line wrapping boundaries.
        if (webkit && options.lineWrapping &&
            getComputedStyle(display.lineDiv).textRendering == "optimizelegibility")
            display.lineDiv.style.textRendering = "auto";
    }

    // DISPLAY CONSTRUCTOR

    // The display handles the DOM integration, both for input reading
    // and content drawing. It holds references to DOM nodes and
    // display-related state.

    function Display(place, doc, input) {
        var d = this;
        this.input = input;

        // Covers bottom-right square when both scrollbars are present.
        d.scrollbarFiller = elt("div", null, "CodeMirror-scrollbar-filler");
        d.scrollbarFiller.setAttribute("cm-not-content", "true");
        // Covers bottom of gutter when coverGutterNextToScrollbar is on
        // and h scrollbar is present.
        d.gutterFiller = elt("div", null, "CodeMirror-gutter-filler");
        d.gutterFiller.setAttribute("cm-not-content", "true");
        // Will contain the actual code, positioned to cover the viewport.
        d.lineDiv = elt("div", null, "CodeMirror-code");
        // Elements are added to these to represent selection and cursors.
        d.selectionDiv = elt("div", null, null, "position: relative; z-index: 1");
        d.cursorDiv = elt("div", null, "CodeMirror-cursors");
        // A visibility: hidden element used to find the size of things.
        d.measure = elt("div", null, "CodeMirror-measure");
        // When lines outside of the viewport are measured, they are drawn in this.
        d.lineMeasure = elt("div", null, "CodeMirror-measure");
        // Wraps everything that needs to exist inside the vertically-padded coordinate system
        d.lineSpace = elt("div", [d.measure, d.lineMeasure, d.selectionDiv, d.cursorDiv, d.lineDiv],
            null, "position: relative; outline: none");
        // Moved around its parent to cover visible view.
        d.mover = elt("div", [elt("div", [d.lineSpace], "CodeMirror-lines")], null, "position: relative");
        // Set to the height of the document, allowing scrolling.
        d.sizer = elt("div", [d.mover], "CodeMirror-sizer");
        d.sizerWidth = null;
        // Behavior of elts with overflow: auto and padding is
        // inconsistent across browsers. This is used to ensure the
        // scrollable area is big enough.
        d.heightForcer = elt("div", null, null, "position: absolute; height: " + scrollerGap + "px; width: 1px;");
        // Will contain the gutters, if any.
        d.gutters = elt("div", null, "CodeMirror-gutters");
        d.lineGutter = null;
        // Actual scrollable element.
        d.scroller = elt("div", [d.sizer, d.heightForcer, d.gutters], "CodeMirror-scroll");
        d.scroller.setAttribute("tabIndex", "-1");
        // The element in which the editor lives.
        d.wrapper = elt("div", [d.scrollbarFiller, d.gutterFiller, d.scroller], "CodeMirror");

        // Work around IE7 z-index bug (not perfect, hence IE7 not really being supported)
        if (ie && ie_version < 8) { d.gutters.style.zIndex = -1; d.scroller.style.paddingRight = 0; }
        if (!webkit && !(gecko && mobile)) d.scroller.draggable = true;

        if (place) {
            if (place.appendChild) place.appendChild(d.wrapper);
            else place(d.wrapper);
        }

        // Current rendered range (may be bigger than the view window).
        d.viewFrom = d.viewTo = doc.first;
        d.reportedViewFrom = d.reportedViewTo = doc.first;
        // Information about the rendered lines.
        d.view = [];
        d.renderedView = null;
        // Holds info about a single rendered line when it was rendered
        // for measurement, while not in view.
        d.externalMeasured = null;
        // Empty space (in pixels) above the view
        d.viewOffset = 0;
        d.lastWrapHeight = d.lastWrapWidth = 0;
        d.updateLineNumbers = null;

        d.nativeBarWidth = d.barHeight = d.barWidth = 0;
        d.scrollbarsClipped = false;

        // Used to only resize the line number gutter when necessary (when
        // the amount of lines crosses a boundary that makes its width change)
        d.lineNumWidth = d.lineNumInnerWidth = d.lineNumChars = null;
        // Set to true when a non-horizontal-scrolling line widget is
        // added. As an optimization, line widget aligning is skipped when
        // this is false.
        d.alignWidgets = false;

        d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;

        // Tracks the maximum line length so that the horizontal scrollbar
        // can be kept static when scrolling.
        d.maxLine = null;
        d.maxLineLength = 0;
        d.maxLineChanged = false;

        // Used for measuring wheel scrolling granularity
        d.wheelDX = d.wheelDY = d.wheelStartX = d.wheelStartY = null;

        // True when shift is held down.
        d.shift = false;

        // Used to track whether anything happened since the context menu
        // was opened.
        d.selForContextMenu = null;

        d.activeTouch = null;

        input.init(d);
    }

    // STATE UPDATES

    // Used to get the editor into a consistent state again when options change.

    function loadMode(cm) {
        cm.doc.mode = CodeMirror.getMode(cm.options, cm.doc.modeOption);
        resetModeState(cm);
    }

    function resetModeState(cm) {
        cm.doc.iter(function (line) {
            if (line.stateAfter) line.stateAfter = null;
            if (line.styles) line.styles = null;
        });
        cm.doc.frontier = cm.doc.first;
        startWorker(cm, 100);
        cm.state.modeGen++;
        if (cm.curOp) regChange(cm);
    }

    function wrappingChanged(cm) {
        if (cm.options.lineWrapping) {
            addClass(cm.display.wrapper, "CodeMirror-wrap");
            cm.display.sizer.style.minWidth = "";
            cm.display.sizerWidth = null;
        } else {
            rmClass(cm.display.wrapper, "CodeMirror-wrap");
            findMaxLine(cm);
        }
        estimateLineHeights(cm);
        regChange(cm);
        clearCaches(cm);
        setTimeout(function () { updateScrollbars(cm); }, 100);
    }

    // Returns a function that estimates the height of a line, to use as
    // first approximation until the line becomes visible (and is thus
    // properly measurable).
    function estimateHeight(cm) {
        var th = textHeight(cm.display), wrapping = cm.options.lineWrapping;
        var perLine = wrapping && Math.max(5, cm.display.scroller.clientWidth / charWidth(cm.display) - 3);
        return function (line) {
            if (lineIsHidden(cm.doc, line)) return 0;

            var widgetsHeight = 0;
            if (line.widgets) for (var i = 0; i < line.widgets.length; i++) {
                if (line.widgets[i].height) widgetsHeight += line.widgets[i].height;
            }

            if (wrapping)
                return widgetsHeight + (Math.ceil(line.text.length / perLine) || 1) * th;
            else
                return widgetsHeight + th;
        };
    }

    function estimateLineHeights(cm) {
        var doc = cm.doc, est = estimateHeight(cm);
        doc.iter(function (line) {
            var estHeight = est(line);
            if (estHeight != line.height) updateLineHeight(line, estHeight);
        });
    }

    function themeChanged(cm) {
        cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") +
            cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-");
        clearCaches(cm);
    }

    function guttersChanged(cm) {
        updateGutters(cm);
        regChange(cm);
        setTimeout(function () { alignHorizontally(cm); }, 20);
    }

    // Rebuild the gutter elements, ensure the margin to the left of the
    // code matches their width.
    function updateGutters(cm) {
        var gutters = cm.display.gutters, specs = cm.options.gutters;
        removeChildren(gutters);
        for (var i = 0; i < specs.length; ++i) {
            var gutterClass = specs[i];
            var gElt = gutters.appendChild(elt("div", null, "CodeMirror-gutter " + gutterClass));
            if (gutterClass == "CodeMirror-linenumbers") {
                cm.display.lineGutter = gElt;
                gElt.style.width = (cm.display.lineNumWidth || 1) + "px";
            }
        }
        gutters.style.display = i ? "" : "none";
        updateGutterSpace(cm);
    }

    function updateGutterSpace(cm) {
        var width = cm.display.gutters.offsetWidth;
        cm.display.sizer.style.marginLeft = width + "px";
    }

    // Compute the character length of a line, taking into account
    // collapsed ranges (see markText) that might hide parts, and join
    // other lines onto it.
    function lineLength(line) {
        if (line.height == 0) return 0;
        var len = line.text.length, merged, cur = line;
        while (merged = collapsedSpanAtStart(cur)) {
            var found = merged.find(0, true);
            cur = found.from.line;
            len += found.from.ch - found.to.ch;
        }
        cur = line;
        while (merged = collapsedSpanAtEnd(cur)) {
            var found = merged.find(0, true);
            len -= cur.text.length - found.from.ch;
            cur = found.to.line;
            len += cur.text.length - found.to.ch;
        }
        return len;
    }

    // Find the longest line in the document.
    function findMaxLine(cm) {
        var d = cm.display, doc = cm.doc;
        d.maxLine = getLine(doc, doc.first);
        d.maxLineLength = lineLength(d.maxLine);
        d.maxLineChanged = true;
        doc.iter(function (line) {
            var len = lineLength(line);
            if (len > d.maxLineLength) {
                d.maxLineLength = len;
                d.maxLine = line;
            }
        });
    }

    // Make sure the gutters options contains the element
    // "CodeMirror-linenumbers" when the lineNumbers option is true.
    function setGuttersForLineNumbers(options) {
        var found = indexOf(options.gutters, "CodeMirror-linenumbers");
        if (found == -1 && options.lineNumbers) {
            options.gutters = options.gutters.concat(["CodeMirror-linenumbers"]);
        } else if (found > -1 && !options.lineNumbers) {
            options.gutters = options.gutters.slice(0);
            options.gutters.splice(found, 1);
        }
    }

    // SCROLLBARS

    // Prepare DOM reads needed to update the scrollbars. Done in one
    // shot to minimize update/measure roundtrips.
    function measureForScrollbars(cm) {
        var d = cm.display, gutterW = d.gutters.offsetWidth;
        var docH = Math.round(cm.doc.height + paddingVert(cm.display));
        return {
            clientHeight: d.scroller.clientHeight,
            viewHeight: d.wrapper.clientHeight,
            scrollWidth: d.scroller.scrollWidth, clientWidth: d.scroller.clientWidth,
            viewWidth: d.wrapper.clientWidth,
            barLeft: cm.options.fixedGutter ? gutterW : 0,
            docHeight: docH,
            scrollHeight: docH + scrollGap(cm) + d.barHeight,
            nativeBarWidth: d.nativeBarWidth,
            gutterWidth: gutterW
        };
    }

    function NativeScrollbars(place, scroll, cm) {
        this.cm = cm;
        var vert = this.vert = elt("div", [elt("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar");
        var horiz = this.horiz = elt("div", [elt("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar");
        place(vert); place(horiz);

        on(vert, "scroll", function () {
            if (vert.clientHeight) scroll(vert.scrollTop, "vertical");
        });
        on(horiz, "scroll", function () {
            if (horiz.clientWidth) scroll(horiz.scrollLeft, "horizontal");
        });

        this.checkedZeroWidth = false;
        // Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8).
        if (ie && ie_version < 8) this.horiz.style.minHeight = this.vert.style.minWidth = "18px";
    }

    NativeScrollbars.prototype = copyObj({
        update: function (measure) {
            var needsH = measure.scrollWidth > measure.clientWidth + 1;
            var needsV = measure.scrollHeight > measure.clientHeight + 1;
            var sWidth = measure.nativeBarWidth;

            if (needsV) {
                this.vert.style.display = "block";
                this.vert.style.bottom = needsH ? sWidth + "px" : "0";
                var totalHeight = measure.viewHeight - (needsH ? sWidth : 0);
                // A bug in IE8 can cause this value to be negative, so guard it.
                this.vert.firstChild.style.height =
                    Math.max(0, measure.scrollHeight - measure.clientHeight + totalHeight) + "px";
            } else {
                this.vert.style.display = "";
                this.vert.firstChild.style.height = "0";
            }

            if (needsH) {
                this.horiz.style.display = "block";
                this.horiz.style.right = needsV ? sWidth + "px" : "0";
                this.horiz.style.left = measure.barLeft + "px";
                var totalWidth = measure.viewWidth - measure.barLeft - (needsV ? sWidth : 0);
                this.horiz.firstChild.style.width =
                    (measure.scrollWidth - measure.clientWidth + totalWidth) + "px";
            } else {
                this.horiz.style.display = "";
                this.horiz.firstChild.style.width = "0";
            }

            if (!this.checkedZeroWidth && measure.clientHeight > 0) {
                if (sWidth == 0) this.zeroWidthHack();
                this.checkedZeroWidth = true;
            }

            return { right: needsV ? sWidth : 0, bottom: needsH ? sWidth : 0 };
        },
        setScrollLeft: function (pos) {
            if (this.horiz.scrollLeft != pos) this.horiz.scrollLeft = pos;
            if (this.disableHoriz) this.enableZeroWidthBar(this.horiz, this.disableHoriz);
        },
        setScrollTop: function (pos) {
            if (this.vert.scrollTop != pos) this.vert.scrollTop = pos;
            if (this.disableVert) this.enableZeroWidthBar(this.vert, this.disableVert);
        },
        zeroWidthHack: function () {
            var w = mac && !mac_geMountainLion ? "12px" : "18px";
            this.horiz.style.height = this.vert.style.width = w;
            this.horiz.style.pointerEvents = this.vert.style.pointerEvents = "none";
            this.disableHoriz = new Delayed;
            this.disableVert = new Delayed;
        },
        enableZeroWidthBar: function (bar, delay) {
            bar.style.pointerEvents = "auto";
            function maybeDisable() {
                // To find out whether the scrollbar is still visible, we
                // check whether the element under the pixel in the bottom
                // left corner of the scrollbar box is the scrollbar box
                // itself (when the bar is still visible) or its filler child
                // (when the bar is hidden). If it is still visible, we keep
                // it enabled, if it's hidden, we disable pointer events.
                var box = bar.getBoundingClientRect();
                var elt = document.elementFromPoint(box.left + 1, box.bottom - 1);
                if (elt != bar) bar.style.pointerEvents = "none";
                else delay.set(1000, maybeDisable);
            }
            delay.set(1000, maybeDisable);
        },
        clear: function () {
            var parent = this.horiz.parentNode;
            parent.removeChild(this.horiz);
            parent.removeChild(this.vert);
        }
    }, NativeScrollbars.prototype);

    function NullScrollbars() { }

    NullScrollbars.prototype = copyObj({
        update: function () { return { bottom: 0, right: 0 }; },
        setScrollLeft: function () { },
        setScrollTop: function () { },
        clear: function () { }
    }, NullScrollbars.prototype);

    CodeMirror.scrollbarModel = { "native": NativeScrollbars, "null": NullScrollbars };

    function initScrollbars(cm) {
        if (cm.display.scrollbars) {
            cm.display.scrollbars.clear();
            if (cm.display.scrollbars.addClass)
                rmClass(cm.display.wrapper, cm.display.scrollbars.addClass);
        }

        cm.display.scrollbars = new CodeMirror.scrollbarModel[cm.options.scrollbarStyle](function (node) {
            cm.display.wrapper.insertBefore(node, cm.display.scrollbarFiller);
            // Prevent clicks in the scrollbars from killing focus
            on(node, "mousedown", function () {
                if (cm.state.focused) setTimeout(function () { cm.display.input.focus(); }, 0);
            });
            node.setAttribute("cm-not-content", "true");
        }, function (pos, axis) {
            if (axis == "horizontal") setScrollLeft(cm, pos);
            else setScrollTop(cm, pos);
        }, cm);
        if (cm.display.scrollbars.addClass)
            addClass(cm.display.wrapper, cm.display.scrollbars.addClass);
    }

    function updateScrollbars(cm, measure) {
        if (!measure) measure = measureForScrollbars(cm);
        var startWidth = cm.display.barWidth, startHeight = cm.display.barHeight;
        updateScrollbarsInner(cm, measure);
        for (var i = 0; i < 4 && startWidth != cm.display.barWidth || startHeight != cm.display.barHeight; i++) {
            if (startWidth != cm.display.barWidth && cm.options.lineWrapping)
                updateHeightsInViewport(cm);
            updateScrollbarsInner(cm, measureForScrollbars(cm));
            startWidth = cm.display.barWidth; startHeight = cm.display.barHeight;
        }
    }

    // Re-synchronize the fake scrollbars with the actual size of the
    // content.
    function updateScrollbarsInner(cm, measure) {
        var d = cm.display;
        var sizes = d.scrollbars.update(measure);

        d.sizer.style.paddingRight = (d.barWidth = sizes.right) + "px";
        d.sizer.style.paddingBottom = (d.barHeight = sizes.bottom) + "px";
        d.heightForcer.style.borderBottom = sizes.bottom + "px solid transparent"

        if (sizes.right && sizes.bottom) {
            d.scrollbarFiller.style.display = "block";
            d.scrollbarFiller.style.height = sizes.bottom + "px";
            d.scrollbarFiller.style.width = sizes.right + "px";
        } else d.scrollbarFiller.style.display = "";
        if (sizes.bottom && cm.options.coverGutterNextToScrollbar && cm.options.fixedGutter) {
            d.gutterFiller.style.display = "block";
            d.gutterFiller.style.height = sizes.bottom + "px";
            d.gutterFiller.style.width = measure.gutterWidth + "px";
        } else d.gutterFiller.style.display = "";
    }

    // Compute the lines that are visible in a given viewport (defaults
    // the the current scroll position). viewport may contain top,
    // height, and ensure (see op.scrollToPos) properties.
    function visibleLines(display, doc, viewport) {
        var top = viewport && viewport.top != null ? Math.max(0, viewport.top) : display.scroller.scrollTop;
        top = Math.floor(top - paddingTop(display));
        var bottom = viewport && viewport.bottom != null ? viewport.bottom : top + display.wrapper.clientHeight;

        var from = lineAtHeight(doc, top), to = lineAtHeight(doc, bottom);
        // Ensure is a {from: {line, ch}, to: {line, ch}} object, and
        // forces those lines into the viewport (if possible).
        if (viewport && viewport.ensure) {
            var ensureFrom = viewport.ensure.from.line, ensureTo = viewport.ensure.to.line;
            if (ensureFrom < from) {
                from = ensureFrom;
                to = lineAtHeight(doc, heightAtLine(getLine(doc, ensureFrom)) + display.wrapper.clientHeight);
            } else if (Math.min(ensureTo, doc.lastLine()) >= to) {
                from = lineAtHeight(doc, heightAtLine(getLine(doc, ensureTo)) - display.wrapper.clientHeight);
                to = ensureTo;
            }
        }
        return { from: from, to: Math.max(to, from + 1) };
    }

    // LINE NUMBERS

    // Re-align line numbers and gutter marks to compensate for
    // horizontal scrolling.
    function alignHorizontally(cm) {
        var display = cm.display, view = display.view;
        if (!display.alignWidgets && (!display.gutters.firstChild || !cm.options.fixedGutter)) return;
        var comp = compensateForHScroll(display) - display.scroller.scrollLeft + cm.doc.scrollLeft;
        var gutterW = display.gutters.offsetWidth, left = comp + "px";
        for (var i = 0; i < view.length; i++) if (!view[i].hidden) {
            if (cm.options.fixedGutter && view[i].gutter)
                view[i].gutter.style.left = left;
            var align = view[i].alignable;
            if (align) for (var j = 0; j < align.length; j++)
                align[j].style.left = left;
        }
        if (cm.options.fixedGutter)
            display.gutters.style.left = (comp + gutterW) + "px";
    }

    // Used to ensure that the line number gutter is still the right
    // size for the current document size. Returns true when an update
    // is needed.
    function maybeUpdateLineNumberWidth(cm) {
        if (!cm.options.lineNumbers) return false;
        var doc = cm.doc, last = lineNumberFor(cm.options, doc.first + doc.size - 1), display = cm.display;
        if (last.length != display.lineNumChars) {
            var test = display.measure.appendChild(elt("div", [elt("div", last)],
                "CodeMirror-linenumber CodeMirror-gutter-elt"));
            var innerW = test.firstChild.offsetWidth, padding = test.offsetWidth - innerW;
            display.lineGutter.style.width = "";
            display.lineNumInnerWidth = Math.max(innerW, display.lineGutter.offsetWidth - padding) + 1;
            display.lineNumWidth = display.lineNumInnerWidth + padding;
            display.lineNumChars = display.lineNumInnerWidth ? last.length : -1;
            display.lineGutter.style.width = display.lineNumWidth + "px";
            updateGutterSpace(cm);
            return true;
        }
        return false;
    }

    function lineNumberFor(options, i) {
        return String(options.lineNumberFormatter(i + options.firstLineNumber));
    }

    // Computes display.scroller.scrollLeft + display.gutters.offsetWidth,
    // but using getBoundingClientRect to get a sub-pixel-accurate
    // result.
    function compensateForHScroll(display) {
        return display.scroller.getBoundingClientRect().left - display.sizer.getBoundingClientRect().left;
    }

    // DISPLAY DRAWING

    function DisplayUpdate(cm, viewport, force) {
        var display = cm.display;

        this.viewport = viewport;
        // Store some values that we'll need later (but don't want to force a relayout for)
        this.visible = visibleLines(display, cm.doc, viewport);
        this.editorIsHidden = !display.wrapper.offsetWidth;
        this.wrapperHeight = display.wrapper.clientHeight;
        this.wrapperWidth = display.wrapper.clientWidth;
        this.oldDisplayWidth = displayWidth(cm);
        this.force = force;
        this.dims = getDimensions(cm);
        this.events = [];
    }

    DisplayUpdate.prototype.signal = function (emitter, type) {
        if (hasHandler(emitter, type))
            this.events.push(arguments);
    };
    DisplayUpdate.prototype.finish = function () {
        for (var i = 0; i < this.events.length; i++)
            signal.apply(null, this.events[i]);
    };

    function maybeClipScrollbars(cm) {
        var display = cm.display;
        if (!display.scrollbarsClipped && display.scroller.offsetWidth) {
            display.nativeBarWidth = display.scroller.offsetWidth - display.scroller.clientWidth;
            display.heightForcer.style.height = scrollGap(cm) + "px";
            display.sizer.style.marginBottom = -display.nativeBarWidth + "px";
            display.sizer.style.borderRightWidth = scrollGap(cm) + "px";
            display.scrollbarsClipped = true;
        }
    }

    // Does the actual updating of the line display. Bails out
    // (returning false) when there is nothing to be done and forced is
    // false.
    function updateDisplayIfNeeded(cm, update) {
        var display = cm.display, doc = cm.doc;

        if (update.editorIsHidden) {
            resetView(cm);
            return false;
        }

        // Bail out if the visible area is already rendered and nothing changed.
        if (!update.force &&
            update.visible.from >= display.viewFrom && update.visible.to <= display.viewTo &&
            (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo) &&
            display.renderedView == display.view && countDirtyView(cm) == 0)
            return false;

        if (maybeUpdateLineNumberWidth(cm)) {
            resetView(cm);
            update.dims = getDimensions(cm);
        }

        // Compute a suitable new viewport (from & to)
        var end = doc.first + doc.size;
        var from = Math.max(update.visible.from - cm.options.viewportMargin, doc.first);
        var to = Math.min(end, update.visible.to + cm.options.viewportMargin);
        if (display.viewFrom < from && from - display.viewFrom < 20) from = Math.max(doc.first, display.viewFrom);
        if (display.viewTo > to && display.viewTo - to < 20) to = Math.min(end, display.viewTo);
        if (sawCollapsedSpans) {
            from = visualLineNo(cm.doc, from);
            to = visualLineEndNo(cm.doc, to);
        }

        var different = from != display.viewFrom || to != display.viewTo ||
            display.lastWrapHeight != update.wrapperHeight || display.lastWrapWidth != update.wrapperWidth;
        adjustView(cm, from, to);

        display.viewOffset = heightAtLine(getLine(cm.doc, display.viewFrom));
        // Position the mover div to align with the current scroll position
        cm.display.mover.style.top = display.viewOffset + "px";

        var toUpdate = countDirtyView(cm);
        if (!different && toUpdate == 0 && !update.force && display.renderedView == display.view &&
            (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo))
            return false;

        // For big changes, we hide the enclosing element during the
        // update, since that speeds up the operations on most browsers.
        var focused = activeElt();
        if (toUpdate > 4) display.lineDiv.style.display = "none";
        patchDisplay(cm, display.updateLineNumbers, update.dims);
        if (toUpdate > 4) display.lineDiv.style.display = "";
        display.renderedView = display.view;
        // There might have been a widget with a focused element that got
        // hidden or updated, if so re-focus it.
        if (focused && activeElt() != focused && focused.offsetHeight) focused.focus();

        // Prevent selection and cursors from interfering with the scroll
        // width and height.
        removeChildren(display.cursorDiv);
        removeChildren(display.selectionDiv);
        display.gutters.style.height = display.sizer.style.minHeight = 0;

        if (different) {
            display.lastWrapHeight = update.wrapperHeight;
            display.lastWrapWidth = update.wrapperWidth;
            startWorker(cm, 400);
        }

        display.updateLineNumbers = null;

        return true;
    }

    function postUpdateDisplay(cm, update) {
        var viewport = update.viewport;

        for (var first = true; ; first = false) {
            if (!first || !cm.options.lineWrapping || update.oldDisplayWidth == displayWidth(cm)) {
                // Clip forced viewport to actual scrollable area.
                if (viewport && viewport.top != null)
                    viewport = { top: Math.min(cm.doc.height + paddingVert(cm.display) - displayHeight(cm), viewport.top) };
                // Updated line heights might result in the drawn area not
                // actually covering the viewport. Keep looping until it does.
                update.visible = visibleLines(cm.display, cm.doc, viewport);
                if (update.visible.from >= cm.display.viewFrom && update.visible.to <= cm.display.viewTo)
                    break;
            }
            if (!updateDisplayIfNeeded(cm, update)) break;
            updateHeightsInViewport(cm);
            var barMeasure = measureForScrollbars(cm);
            updateSelection(cm);
            updateScrollbars(cm, barMeasure);
            setDocumentHeight(cm, barMeasure);
        }

        update.signal(cm, "update", cm);
        if (cm.display.viewFrom != cm.display.reportedViewFrom || cm.display.viewTo != cm.display.reportedViewTo) {
            update.signal(cm, "viewportChange", cm, cm.display.viewFrom, cm.display.viewTo);
            cm.display.reportedViewFrom = cm.display.viewFrom; cm.display.reportedViewTo = cm.display.viewTo;
        }
    }

    function updateDisplaySimple(cm, viewport) {
        var update = new DisplayUpdate(cm, viewport);
        if (updateDisplayIfNeeded(cm, update)) {
            updateHeightsInViewport(cm);
            postUpdateDisplay(cm, update);
            var barMeasure = measureForScrollbars(cm);
            updateSelection(cm);
            updateScrollbars(cm, barMeasure);
            setDocumentHeight(cm, barMeasure);
            update.finish();
        }
    }

    function setDocumentHeight(cm, measure) {
        cm.display.sizer.style.minHeight = measure.docHeight + "px";
        cm.display.heightForcer.style.top = measure.docHeight + "px";
        cm.display.gutters.style.height = (measure.docHeight + cm.display.barHeight + scrollGap(cm)) + "px";
    }

    // Read the actual heights of the rendered lines, and update their
    // stored heights to match.
    function updateHeightsInViewport(cm) {
        var display = cm.display;
        var prevBottom = display.lineDiv.offsetTop;
        for (var i = 0; i < display.view.length; i++) {
            var cur = display.view[i], height;
            if (cur.hidden) continue;
            if (ie && ie_version < 8) {
                var bot = cur.node.offsetTop + cur.node.offsetHeight;
                height = bot - prevBottom;
                prevBottom = bot;
            } else {
                var box = cur.node.getBoundingClientRect();
                height = box.bottom - box.top;
            }
            var diff = cur.line.height - height;
            if (height < 2) height = textHeight(display);
            if (diff > .001 || diff < -.001) {
                updateLineHeight(cur.line, height);
                updateWidgetHeight(cur.line);
                if (cur.rest) for (var j = 0; j < cur.rest.length; j++)
                    updateWidgetHeight(cur.rest[j]);
            }
        }
    }

    // Read and store the height of line widgets associated with the
    // given line.
    function updateWidgetHeight(line) {
        if (line.widgets) for (var i = 0; i < line.widgets.length; ++i)
            line.widgets[i].height = line.widgets[i].node.parentNode.offsetHeight;
    }

    // Do a bulk-read of the DOM positions and sizes needed to draw the
    // view, so that we don't interleave reading and writing to the DOM.
    function getDimensions(cm) {
        var d = cm.display, left = {}, width = {};
        var gutterLeft = d.gutters.clientLeft;
        for (var n = d.gutters.firstChild, i = 0; n; n = n.nextSibling, ++i) {
            left[cm.options.gutters[i]] = n.offsetLeft + n.clientLeft + gutterLeft;
            width[cm.options.gutters[i]] = n.clientWidth;
        }
        return {
            fixedPos: compensateForHScroll(d),
            gutterTotalWidth: d.gutters.offsetWidth,
            gutterLeft: left,
            gutterWidth: width,
            wrapperWidth: d.wrapper.clientWidth
        };
    }

    // Sync the actual display DOM structure with display.view, removing
    // nodes for lines that are no longer in view, and creating the ones
    // that are not there yet, and updating the ones that are out of
    // date.
    function patchDisplay(cm, updateNumbersFrom, dims) {
        var display = cm.display, lineNumbers = cm.options.lineNumbers;
        var container = display.lineDiv, cur = container.firstChild;

        function rm(node) {
            var next = node.nextSibling;
            // Works around a throw-scroll bug in OS X Webkit
            if (webkit && mac && cm.display.currentWheelTarget == node)
                node.style.display = "none";
            else
                node.parentNode.removeChild(node);
            return next;
        }

        var view = display.view, lineN = display.viewFrom;
        // Loop over the elements in the view, syncing cur (the DOM nodes
        // in display.lineDiv) with the view as we go.
        for (var i = 0; i < view.length; i++) {
            var lineView = view[i];
            if (lineView.hidden) {
            } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet
                var node = buildLineElement(cm, lineView, lineN, dims);
                container.insertBefore(node, cur);
            } else { // Already drawn
                while (cur != lineView.node) cur = rm(cur);
                var updateNumber = lineNumbers && updateNumbersFrom != null &&
                    updateNumbersFrom <= lineN && lineView.lineNumber;
                if (lineView.changes) {
                    if (indexOf(lineView.changes, "gutter") > -1) updateNumber = false;
                    updateLineForChanges(cm, lineView, lineN, dims);
                }
                if (updateNumber) {
                    removeChildren(lineView.lineNumber);
                    lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));
                }
                cur = lineView.node.nextSibling;
            }
            lineN += lineView.size;
        }
        while (cur) cur = rm(cur);
    }

    // When an aspect of a line changes, a string is added to
    // lineView.changes. This updates the relevant part of the line's
    // DOM structure.
    function updateLineForChanges(cm, lineView, lineN, dims) {
        for (var j = 0; j < lineView.changes.length; j++) {
            var type = lineView.changes[j];
            if (type == "text") updateLineText(cm, lineView);
            else if (type == "gutter") updateLineGutter(cm, lineView, lineN, dims);
            else if (type == "class") updateLineClasses(lineView);
            else if (type == "widget") updateLineWidgets(cm, lineView, dims);
        }
        lineView.changes = null;
    }

    // Lines with gutter elements, widgets or a background class need to
    // be wrapped, and have the extra elements added to the wrapper div
    function ensureLineWrapped(lineView) {
        if (lineView.node == lineView.text) {
            lineView.node = elt("div", null, null, "position: relative");
            if (lineView.text.parentNode)
                lineView.text.parentNode.replaceChild(lineView.node, lineView.text);
            lineView.node.appendChild(lineView.text);
            if (ie && ie_version < 8) lineView.node.style.zIndex = 2;
        }
        return lineView.node;
    }

    function updateLineBackground(lineView) {
        var cls = lineView.bgClass ? lineView.bgClass + " " + (lineView.line.bgClass || "") : lineView.line.bgClass;
        if (cls) cls += " CodeMirror-linebackground";
        if (lineView.background) {
            if (cls) lineView.background.className = cls;
            else { lineView.background.parentNode.removeChild(lineView.background); lineView.background = null; }
        } else if (cls) {
            var wrap = ensureLineWrapped(lineView);
            lineView.background = wrap.insertBefore(elt("div", null, cls), wrap.firstChild);
        }
    }

    // Wrapper around buildLineContent which will reuse the structure
    // in display.externalMeasured when possible.
    function getLineContent(cm, lineView) {
        var ext = cm.display.externalMeasured;
        if (ext && ext.line == lineView.line) {
            cm.display.externalMeasured = null;
            lineView.measure = ext.measure;
            return ext.built;
        }
        return buildLineContent(cm, lineView);
    }

    // Redraw the line's text. Interacts with the background and text
    // classes because the mode may output tokens that influence these
    // classes.
    function updateLineText(cm, lineView) {
        var cls = lineView.text.className;
        var built = getLineContent(cm, lineView);
        if (lineView.text == lineView.node) lineView.node = built.pre;
        lineView.text.parentNode.replaceChild(built.pre, lineView.text);
        lineView.text = built.pre;
        if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {
            lineView.bgClass = built.bgClass;
            lineView.textClass = built.textClass;
            updateLineClasses(lineView);
        } else if (cls) {
            lineView.text.className = cls;
        }
    }

    function updateLineClasses(lineView) {
        updateLineBackground(lineView);
        if (lineView.line.wrapClass)
            ensureLineWrapped(lineView).className = lineView.line.wrapClass;
        else if (lineView.node != lineView.text)
            lineView.node.className = "";
        var textClass = lineView.textClass ? lineView.textClass + " " + (lineView.line.textClass || "") : lineView.line.textClass;
        lineView.text.className = textClass || "";
    }

    function updateLineGutter(cm, lineView, lineN, dims) {
        if (lineView.gutter) {
            lineView.node.removeChild(lineView.gutter);
            lineView.gutter = null;
        }
        if (lineView.gutterBackground) {
            lineView.node.removeChild(lineView.gutterBackground);
            lineView.gutterBackground = null;
        }
        if (lineView.line.gutterClass) {
            var wrap = ensureLineWrapped(lineView);
            lineView.gutterBackground = elt("div", null, "CodeMirror-gutter-background " + lineView.line.gutterClass,
                "left: " + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) +
                "px; width: " + dims.gutterTotalWidth + "px");
            wrap.insertBefore(lineView.gutterBackground, lineView.text);
        }
        var markers = lineView.line.gutterMarkers;
        if (cm.options.lineNumbers || markers) {
            var wrap = ensureLineWrapped(lineView);
            var gutterWrap = lineView.gutter = elt("div", null, "CodeMirror-gutter-wrapper", "left: " +
                (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + "px");
            cm.display.input.setUneditable(gutterWrap);
            wrap.insertBefore(gutterWrap, lineView.text);
            if (lineView.line.gutterClass)
                gutterWrap.className += " " + lineView.line.gutterClass;
            if (cm.options.lineNumbers && (!markers || !markers["CodeMirror-linenumbers"]))
                lineView.lineNumber = gutterWrap.appendChild(
                    elt("div", lineNumberFor(cm.options, lineN),
                        "CodeMirror-linenumber CodeMirror-gutter-elt",
                        "left: " + dims.gutterLeft["CodeMirror-linenumbers"] + "px; width: "
                        + cm.display.lineNumInnerWidth + "px"));
            if (markers) for (var k = 0; k < cm.options.gutters.length; ++k) {
                var id = cm.options.gutters[k], found = markers.hasOwnProperty(id) && markers[id];
                if (found)
                    gutterWrap.appendChild(elt("div", [found], "CodeMirror-gutter-elt", "left: " +
                        dims.gutterLeft[id] + "px; width: " + dims.gutterWidth[id] + "px"));
            }
        }
    }

    function updateLineWidgets(cm, lineView, dims) {
        if (lineView.alignable) lineView.alignable = null;
        for (var node = lineView.node.firstChild, next; node; node = next) {
            var next = node.nextSibling;
            if (node.className == "CodeMirror-linewidget")
                lineView.node.removeChild(node);
        }
        insertLineWidgets(cm, lineView, dims);
    }

    // Build a line's DOM representation from scratch
    function buildLineElement(cm, lineView, lineN, dims) {
        var built = getLineContent(cm, lineView);
        lineView.text = lineView.node = built.pre;
        if (built.bgClass) lineView.bgClass = built.bgClass;
        if (built.textClass) lineView.textClass = built.textClass;

        updateLineClasses(lineView);
        updateLineGutter(cm, lineView, lineN, dims);
        insertLineWidgets(cm, lineView, dims);
        return lineView.node;
    }

    // A lineView may contain multiple logical lines (when merged by
    // collapsed spans). The widgets for all of them need to be drawn.
    function insertLineWidgets(cm, lineView, dims) {
        insertLineWidgetsFor(cm, lineView.line, lineView, dims, true);
        if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++)
            insertLineWidgetsFor(cm, lineView.rest[i], lineView, dims, false);
    }

    function insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) {
        if (!line.widgets) return;
        var wrap = ensureLineWrapped(lineView);
        for (var i = 0, ws = line.widgets; i < ws.length; ++i) {
            var widget = ws[i], node = elt("div", [widget.node], "CodeMirror-linewidget");
            if (!widget.handleMouseEvents) node.setAttribute("cm-ignore-events", "true");
            positionLineWidget(widget, node, lineView, dims);
            cm.display.input.setUneditable(node);
            if (allowAbove && widget.above)
                wrap.insertBefore(node, lineView.gutter || lineView.text);
            else
                wrap.appendChild(node);
            signalLater(widget, "redraw");
        }
    }

    function positionLineWidget(widget, node, lineView, dims) {
        if (widget.noHScroll) {
            (lineView.alignable || (lineView.alignable = [])).push(node);
            var width = dims.wrapperWidth;
            node.style.left = dims.fixedPos + "px";
            if (!widget.coverGutter) {
                width -= dims.gutterTotalWidth;
                node.style.paddingLeft = dims.gutterTotalWidth + "px";
            }
            node.style.width = width + "px";
        }
        if (widget.coverGutter) {
            node.style.zIndex = 5;
            node.style.position = "relative";
            if (!widget.noHScroll) node.style.marginLeft = -dims.gutterTotalWidth + "px";
        }
    }

    // POSITION OBJECT

    // A Pos instance represents a position within the text.
    var Pos = CodeMirror.Pos = function (line, ch) {
        if (!(this instanceof Pos)) return new Pos(line, ch);
        this.line = line; this.ch = ch;
    };

    // Compare two positions, return 0 if they are the same, a negative
    // number when a is less, and a positive number otherwise.
    var cmp = CodeMirror.cmpPos = function (a, b) { return a.line - b.line || a.ch - b.ch; };

    function copyPos(x) { return Pos(x.line, x.ch); }
    function maxPos(a, b) { return cmp(a, b) < 0 ? b : a; }
    function minPos(a, b) { return cmp(a, b) < 0 ? a : b; }

    // INPUT HANDLING

    function ensureFocus(cm) {
        if (!cm.state.focused) { cm.display.input.focus(); onFocus(cm); }
    }

    // This will be set to a {lineWise: bool, text: [string]} object, so
    // that, when pasting, we know what kind of selections the copied
    // text was made out of.
    var lastCopied = null;

    function applyTextInput(cm, inserted, deleted, sel, origin) {
        var doc = cm.doc;
        cm.display.shift = false;
        if (!sel) sel = doc.sel;

        var paste = cm.state.pasteIncoming || origin == "paste";
        var textLines = doc.splitLines(inserted), multiPaste = null
        // When pasing N lines into N selections, insert one line per selection
        if (paste && sel.ranges.length > 1) {
            if (lastCopied && lastCopied.text.join("\n") == inserted) {
                if (sel.ranges.length % lastCopied.text.length == 0) {
                    multiPaste = [];
                    for (var i = 0; i < lastCopied.text.length; i++)
                        multiPaste.push(doc.splitLines(lastCopied.text[i]));
                }
            } else if (textLines.length == sel.ranges.length) {
                multiPaste = map(textLines, function (l) { return [l]; });
            }
        }

        // Normal behavior is to insert the new text into every selection
        for (var i = sel.ranges.length - 1; i >= 0; i--) {
            var range = sel.ranges[i];
            var from = range.from(), to = range.to();
            if (range.empty()) {
                if (deleted && deleted > 0) // Handle deletion
                    from = Pos(from.line, from.ch - deleted);
                else if (cm.state.overwrite && !paste) // Handle overwrite
                    to = Pos(to.line, Math.min(getLine(doc, to.line).text.length, to.ch + lst(textLines).length));
                else if (lastCopied && lastCopied.lineWise && lastCopied.text.join("\n") == inserted)
                    from = to = Pos(from.line, 0)
            }
            var updateInput = cm.curOp.updateInput;
            var changeEvent = {
                from: from, to: to, text: multiPaste ? multiPaste[i % multiPaste.length] : textLines,
                origin: origin || (paste ? "paste" : cm.state.cutIncoming ? "cut" : "+input")
            };
            makeChange(cm.doc, changeEvent);
            signalLater(cm, "inputRead", cm, changeEvent);
        }
        if (inserted && !paste)
            triggerElectric(cm, inserted);

        ensureCursorVisible(cm);
        cm.curOp.updateInput = updateInput;
        cm.curOp.typing = true;
        cm.state.pasteIncoming = cm.state.cutIncoming = false;
    }

    function handlePaste(e, cm) {
        var pasted = e.clipboardData && e.clipboardData.getData("text/plain");
        if (pasted) {
            e.preventDefault();
            if (!cm.isReadOnly() && !cm.options.disableInput)
                runInOp(cm, function () { applyTextInput(cm, pasted, 0, null, "paste"); });
            return true;
        }
    }

    function triggerElectric(cm, inserted) {
        // When an 'electric' character is inserted, immediately trigger a reindent
        if (!cm.options.electricChars || !cm.options.smartIndent) return;
        var sel = cm.doc.sel;

        for (var i = sel.ranges.length - 1; i >= 0; i--) {
            var range = sel.ranges[i];
            if (range.head.ch > 100 || (i && sel.ranges[i - 1].head.line == range.head.line)) continue;
            var mode = cm.getModeAt(range.head);
            var indented = false;
            if (mode.electricChars) {
                for (var j = 0; j < mode.electricChars.length; j++)
                    if (inserted.indexOf(mode.electricChars.charAt(j)) > -1) {
                        indented = indentLine(cm, range.head.line, "smart");
                        break;
                    }
            } else if (mode.electricInput) {
                if (mode.electricInput.test(getLine(cm.doc, range.head.line).text.slice(0, range.head.ch)))
                    indented = indentLine(cm, range.head.line, "smart");
            }
            if (indented) signalLater(cm, "electricInput", cm, range.head.line);
        }
    }

    function copyableRanges(cm) {
        var text = [], ranges = [];
        for (var i = 0; i < cm.doc.sel.ranges.length; i++) {
            var line = cm.doc.sel.ranges[i].head.line;
            var lineRange = { anchor: Pos(line, 0), head: Pos(line + 1, 0) };
            ranges.push(lineRange);
            text.push(cm.getRange(lineRange.anchor, lineRange.head));
        }
        return { text: text, ranges: ranges };
    }

    function disableBrowserMagic(field) {
        field.setAttribute("autocorrect", "off");
        field.setAttribute("autocapitalize", "off");
        field.setAttribute("spellcheck", "false");
    }

    // TEXTAREA INPUT STYLE

    function TextareaInput(cm) {
        this.cm = cm;
        // See input.poll and input.reset
        this.prevInput = "";

        // Flag that indicates whether we expect input to appear real soon
        // now (after some event like 'keypress' or 'input') and are
        // polling intensively.
        this.pollingFast = false;
        // Self-resetting timeout for the poller
        this.polling = new Delayed();
        // Tracks when input.reset has punted to just putting a short
        // string into the textarea instead of the full selection.
        this.inaccurateSelection = false;
        // Used to work around IE issue with selection being forgotten when focus moves away from textarea
        this.hasSelection = false;
        this.composing = null;
    };

    function hiddenTextarea() {
        var te = elt("textarea", null, null, "position: absolute; padding: 0; width: 1px; height: 1em; outline: none");
        var div = elt("div", [te], null, "overflow: hidden; position: relative; width: 3px; height: 0px;");
        // The textarea is kept positioned near the cursor to prevent the
        // fact that it'll be scrolled into view on input from scrolling
        // our fake cursor out of view. On webkit, when wrap=off, paste is
        // very slow. So make the area wide instead.
        if (webkit) te.style.width = "1000px";
        else te.setAttribute("wrap", "off");
        // If border: 0; -- iOS fails to open keyboard (issue #1287)
        if (ios) te.style.border = "1px solid black";
        disableBrowserMagic(te);
        return div;
    }

    TextareaInput.prototype = copyObj({
        init: function (display) {
            var input = this, cm = this.cm;

            // Wraps and hides input textarea
            var div = this.wrapper = hiddenTextarea();
            // The semihidden textarea that is focused when the editor is
            // focused, and receives input.
            var te = this.textarea = div.firstChild;
            display.wrapper.insertBefore(div, display.wrapper.firstChild);

            // Needed to hide big blue blinking cursor on Mobile Safari (doesn't seem to work in iOS 8 anymore)
            if (ios) te.style.width = "0px";

            on(te, "input", function () {
                if (ie && ie_version >= 9 && input.hasSelection) input.hasSelection = null;
                input.poll();
            });

            on(te, "paste", function (e) {
                if (signalDOMEvent(cm, e) || handlePaste(e, cm)) return

                cm.state.pasteIncoming = true;
                input.fastPoll();
            });

            function prepareCopyCut(e) {
                if (signalDOMEvent(cm, e)) return
                if (cm.somethingSelected()) {
                    lastCopied = { lineWise: false, text: cm.getSelections() };
                    if (input.inaccurateSelection) {
                        input.prevInput = "";
                        input.inaccurateSelection = false;
                        te.value = lastCopied.text.join("\n");
                        selectInput(te);
                    }
                } else if (!cm.options.lineWiseCopyCut) {
                    return;
                } else {
                    var ranges = copyableRanges(cm);
                    lastCopied = { lineWise: true, text: ranges.text };
                    if (e.type == "cut") {
                        cm.setSelections(ranges.ranges, null, sel_dontScroll);
                    } else {
                        input.prevInput = "";
                        te.value = ranges.text.join("\n");
                        selectInput(te);
                    }
                }
                if (e.type == "cut") cm.state.cutIncoming = true;
            }
            on(te, "cut", prepareCopyCut);
            on(te, "copy", prepareCopyCut);

            on(display.scroller, "paste", function (e) {
                if (eventInWidget(display, e) || signalDOMEvent(cm, e)) return;
                cm.state.pasteIncoming = true;
                input.focus();
            });

            // Prevent normal selection in the editor (we handle our own)
            on(display.lineSpace, "selectstart", function (e) {
                if (!eventInWidget(display, e)) e_preventDefault(e);
            });

            on(te, "compositionstart", function () {
                var start = cm.getCursor("from");
                if (input.composing) input.composing.range.clear()
                input.composing = {
                    start: start,
                    range: cm.markText(start, cm.getCursor("to"), { className: "CodeMirror-composing" })
                };
            });
            on(te, "compositionend", function () {
                if (input.composing) {
                    input.poll();
                    input.composing.range.clear();
                    input.composing = null;
                }
            });
        },

        prepareSelection: function () {
            // Redraw the selection and/or cursor
            var cm = this.cm, display = cm.display, doc = cm.doc;
            var result = prepareSelection(cm);

            // Move the hidden textarea near the cursor to prevent scrolling artifacts
            if (cm.options.moveInputWithCursor) {
                var headPos = cursorCoords(cm, doc.sel.primary().head, "div");
                var wrapOff = display.wrapper.getBoundingClientRect(), lineOff = display.lineDiv.getBoundingClientRect();
                result.teTop = Math.max(0, Math.min(display.wrapper.clientHeight - 10,
                    headPos.top + lineOff.top - wrapOff.top));
                result.teLeft = Math.max(0, Math.min(display.wrapper.clientWidth - 10,
                    headPos.left + lineOff.left - wrapOff.left));
            }

            return result;
        },

        showSelection: function (drawn) {
            var cm = this.cm, display = cm.display;
            removeChildrenAndAdd(display.cursorDiv, drawn.cursors);
            removeChildrenAndAdd(display.selectionDiv, drawn.selection);
            if (drawn.teTop != null) {
                this.wrapper.style.top = drawn.teTop + "px";
                this.wrapper.style.left = drawn.teLeft + "px";
            }
        },

        // Reset the input to correspond to the selection (or to be empty,
        // when not typing and nothing is selected)
        reset: function (typing) {
            if (this.contextMenuPending) return;
            var minimal, selected, cm = this.cm, doc = cm.doc;
            if (cm.somethingSelected()) {
                this.prevInput = "";
                var range = doc.sel.primary();
                minimal = hasCopyEvent &&
                    (range.to().line - range.from().line > 100 || (selected = cm.getSelection()).length > 1000);
                var content = minimal ? "-" : selected || cm.getSelection();
                this.textarea.value = content;
                if (cm.state.focused) selectInput(this.textarea);
                if (ie && ie_version >= 9) this.hasSelection = content;
            } else if (!typing) {
                this.prevInput = this.textarea.value = "";
                if (ie && ie_version >= 9) this.hasSelection = null;
            }
            this.inaccurateSelection = minimal;
        },

        getField: function () { return this.textarea; },

        supportsTouch: function () { return false; },

        focus: function () {
            if (this.cm.options.readOnly != "nocursor" && (!mobile || activeElt() != this.textarea)) {
                try { this.textarea.focus(); }
                catch (e) { } // IE8 will throw if the textarea is display: none or not in DOM
            }
        },

        blur: function () { this.textarea.blur(); },

        resetPosition: function () {
            this.wrapper.style.top = this.wrapper.style.left = 0;
        },

        receivedFocus: function () { this.slowPoll(); },

        // Poll for input changes, using the normal rate of polling. This
        // runs as long as the editor is focused.
        slowPoll: function () {
            var input = this;
            if (input.pollingFast) return;
            input.polling.set(this.cm.options.pollInterval, function () {
                input.poll();
                if (input.cm.state.focused) input.slowPoll();
            });
        },

        // When an event has just come in that is likely to add or change
        // something in the input textarea, we poll faster, to ensure that
        // the change appears on the screen quickly.
        fastPoll: function () {
            var missed = false, input = this;
            input.pollingFast = true;
            function p() {
                var changed = input.poll();
                if (!changed && !missed) { missed = true; input.polling.set(60, p); }
                else { input.pollingFast = false; input.slowPoll(); }
            }
            input.polling.set(20, p);
        },

        // Read input from the textarea, and update the document to match.
        // When something is selected, it is present in the textarea, and
        // selected (unless it is huge, in which case a placeholder is
        // used). When nothing is selected, the cursor sits after previously
        // seen text (can be empty), which is stored in prevInput (we must
        // not reset the textarea when typing, because that breaks IME).
        poll: function () {
            var cm = this.cm, input = this.textarea, prevInput = this.prevInput;
            // Since this is called a *lot*, try to bail out as cheaply as
            // possible when it is clear that nothing happened. hasSelection
            // will be the case when there is a lot of text in the textarea,
            // in which case reading its value would be expensive.
            if (this.contextMenuPending || !cm.state.focused ||
                (hasSelection(input) && !prevInput && !this.composing) ||
                cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq)
                return false;

            var text = input.value;
            // If nothing changed, bail.
            if (text == prevInput && !cm.somethingSelected()) return false;
            // Work around nonsensical selection resetting in IE9/10, and
            // inexplicable appearance of private area unicode characters on
            // some key combos in Mac (#2689).
            if (ie && ie_version >= 9 && this.hasSelection === text ||
                mac && /[\uf700-\uf7ff]/.test(text)) {
                cm.display.input.reset();
                return false;
            }

            if (cm.doc.sel == cm.display.selForContextMenu) {
                var first = text.charCodeAt(0);
                if (first == 0x200b && !prevInput) prevInput = "\u200b";
                if (first == 0x21da) { this.reset(); return this.cm.execCommand("undo"); }
            }
            // Find the part of the input that is actually new
            var same = 0, l = Math.min(prevInput.length, text.length);
            while (same < l && prevInput.charCodeAt(same) == text.charCodeAt(same))++same;

            var self = this;
            runInOp(cm, function () {
                applyTextInput(cm, text.slice(same), prevInput.length - same,
                    null, self.composing ? "*compose" : null);

                // Don't leave long text in the textarea, since it makes further polling slow
                if (text.length > 1000 || text.indexOf("\n") > -1) input.value = self.prevInput = "";
                else self.prevInput = text;

                if (self.composing) {
                    self.composing.range.clear();
                    self.composing.range = cm.markText(self.composing.start, cm.getCursor("to"),
                        { className: "CodeMirror-composing" });
                }
            });
            return true;
        },

        ensurePolled: function () {
            if (this.pollingFast && this.poll()) this.pollingFast = false;
        },

        onKeyPress: function () {
            if (ie && ie_version >= 9) this.hasSelection = null;
            this.fastPoll();
        },

        onContextMenu: function (e) {
            var input = this, cm = input.cm, display = cm.display, te = input.textarea;
            var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop;
            if (!pos || presto) return; // Opera is difficult.

            // Reset the current text selection only if the click is done outside of the selection
            // and 'resetSelectionOnContextMenu' option is true.
            var reset = cm.options.resetSelectionOnContextMenu;
            if (reset && cm.doc.sel.contains(pos) == -1)
                operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll);

            var oldCSS = te.style.cssText, oldWrapperCSS = input.wrapper.style.cssText;
            input.wrapper.style.cssText = "position: absolute"
            var wrapperBox = input.wrapper.getBoundingClientRect()
            te.style.cssText = "position: absolute; width: 30px; height: 30px; top: " + (e.clientY - wrapperBox.top - 5) +
                "px; left: " + (e.clientX - wrapperBox.left - 5) + "px; z-index: 1000; background: " +
                (ie ? "rgba(255, 255, 255, .05)" : "transparent") +
                "; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
            if (webkit) var oldScrollY = window.scrollY; // Work around Chrome issue (#2712)
            display.input.focus();
            if (webkit) window.scrollTo(null, oldScrollY);
            display.input.reset();
            // Adds "Select all" to context menu in FF
            if (!cm.somethingSelected()) te.value = input.prevInput = " ";
            input.contextMenuPending = true;
            display.selForContextMenu = cm.doc.sel;
            clearTimeout(display.detectingSelectAll);

            // Select-all will be greyed out if there's nothing to select, so
            // this adds a zero-width space so that we can later check whether
            // it got selected.
            function prepareSelectAllHack() {
                if (te.selectionStart != null) {
                    var selected = cm.somethingSelected();
                    var extval = "\u200b" + (selected ? te.value : "");
                    te.value = "\u21da"; // Used to catch context-menu undo
                    te.value = extval;
                    input.prevInput = selected ? "" : "\u200b";
                    te.selectionStart = 1; te.selectionEnd = extval.length;
                    // Re-set this, in case some other handler touched the
                    // selection in the meantime.
                    display.selForContextMenu = cm.doc.sel;
                }
            }
            function rehide() {
                input.contextMenuPending = false;
                input.wrapper.style.cssText = oldWrapperCSS
                te.style.cssText = oldCSS;
                if (ie && ie_version < 9) display.scrollbars.setScrollTop(display.scroller.scrollTop = scrollPos);

                // Try to detect the user choosing select-all
                if (te.selectionStart != null) {
                    if (!ie || (ie && ie_version < 9)) prepareSelectAllHack();
                    var i = 0, poll = function () {
                        if (display.selForContextMenu == cm.doc.sel && te.selectionStart == 0 &&
                            te.selectionEnd > 0 && input.prevInput == "\u200b")
                            operation(cm, commands.selectAll)(cm);
                        else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500);
                        else display.input.reset();
                    };
                    display.detectingSelectAll = setTimeout(poll, 200);
                }
            }

            if (ie && ie_version >= 9) prepareSelectAllHack();
            if (captureRightClick) {
                e_stop(e);
                var mouseup = function () {
                    off(window, "mouseup", mouseup);
                    setTimeout(rehide, 20);
                };
                on(window, "mouseup", mouseup);
            } else {
                setTimeout(rehide, 50);
            }
        },

        readOnlyChanged: function (val) {
            if (!val) this.reset();
        },

        setUneditable: nothing,

        needsContentAttribute: false
    }, TextareaInput.prototype);

    // CONTENTEDITABLE INPUT STYLE

    function ContentEditableInput(cm) {
        this.cm = cm;
        this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null;
        this.polling = new Delayed();
        this.gracePeriod = false;
    }

    ContentEditableInput.prototype = copyObj({
        init: function (display) {
            var input = this, cm = input.cm;
            var div = input.div = display.lineDiv;
            disableBrowserMagic(div);

            on(div, "paste", function (e) {
                if (!signalDOMEvent(cm, e)) handlePaste(e, cm);
            })

            on(div, "compositionstart", function (e) {
                var data = e.data;
                input.composing = { sel: cm.doc.sel, data: data, startData: data };
                if (!data) return;
                var prim = cm.doc.sel.primary();
                var line = cm.getLine(prim.head.line);
                var found = line.indexOf(data, Math.max(0, prim.head.ch - data.length));
                if (found > -1 && found <= prim.head.ch)
                    input.composing.sel = simpleSelection(Pos(prim.head.line, found),
                        Pos(prim.head.line, found + data.length));
            });
            on(div, "compositionupdate", function (e) {
                input.composing.data = e.data;
            });
            on(div, "compositionend", function (e) {
                var ours = input.composing;
                if (!ours) return;
                if (e.data != ours.startData && !/\u200b/.test(e.data))
                    ours.data = e.data;
                // Need a small delay to prevent other code (input event,
                // selection polling) from doing damage when fired right after
                // compositionend.
                setTimeout(function () {
                    if (!ours.handled)
                        input.applyComposition(ours);
                    if (input.composing == ours)
                        input.composing = null;
                }, 50);
            });

            on(div, "touchstart", function () {
                input.forceCompositionEnd();
            });

            on(div, "input", function () {
                if (input.composing) return;
                if (cm.isReadOnly() || !input.pollContent())
                    runInOp(input.cm, function () { regChange(cm); });
            });

            function onCopyCut(e) {
                if (signalDOMEvent(cm, e)) return
                if (cm.somethingSelected()) {
                    lastCopied = { lineWise: false, text: cm.getSelections() };
                    if (e.type == "cut") cm.replaceSelection("", null, "cut");
                } else if (!cm.options.lineWiseCopyCut) {
                    return;
                } else {
                    var ranges = copyableRanges(cm);
                    lastCopied = { lineWise: true, text: ranges.text };
                    if (e.type == "cut") {
                        cm.operation(function () {
                            cm.setSelections(ranges.ranges, 0, sel_dontScroll);
                            cm.replaceSelection("", null, "cut");
                        });
                    }
                }
                // iOS exposes the clipboard API, but seems to discard content inserted into it
                if (e.clipboardData && !ios) {
                    e.preventDefault();
                    e.clipboardData.clearData();
                    e.clipboardData.setData("text/plain", lastCopied.text.join("\n"));
                } else {
                    // Old-fashioned briefly-focus-a-textarea hack
                    var kludge = hiddenTextarea(), te = kludge.firstChild;
                    cm.display.lineSpace.insertBefore(kludge, cm.display.lineSpace.firstChild);
                    te.value = lastCopied.text.join("\n");
                    var hadFocus = document.activeElement;
                    selectInput(te);
                    setTimeout(function () {
                        cm.display.lineSpace.removeChild(kludge);
                        hadFocus.focus();
                    }, 50);
                }
            }
            on(div, "copy", onCopyCut);
            on(div, "cut", onCopyCut);
        },

        prepareSelection: function () {
            var result = prepareSelection(this.cm, false);
            result.focus = this.cm.state.focused;
            return result;
        },

        showSelection: function (info, takeFocus) {
            if (!info || !this.cm.display.view.length) return;
            if (info.focus || takeFocus) this.showPrimarySelection();
            this.showMultipleSelections(info);
        },

        showPrimarySelection: function () {
            var sel = window.getSelection(), prim = this.cm.doc.sel.primary();
            var curAnchor = domToPos(this.cm, sel.anchorNode, sel.anchorOffset);
            var curFocus = domToPos(this.cm, sel.focusNode, sel.focusOffset);
            if (curAnchor && !curAnchor.bad && curFocus && !curFocus.bad &&
                cmp(minPos(curAnchor, curFocus), prim.from()) == 0 &&
                cmp(maxPos(curAnchor, curFocus), prim.to()) == 0)
                return;

            var start = posToDOM(this.cm, prim.from());
            var end = posToDOM(this.cm, prim.to());
            if (!start && !end) return;

            var view = this.cm.display.view;
            var old = sel.rangeCount && sel.getRangeAt(0);
            if (!start) {
                start = { node: view[0].measure.map[2], offset: 0 };
            } else if (!end) { // FIXME dangerously hacky
                var measure = view[view.length - 1].measure;
                var map = measure.maps ? measure.maps[measure.maps.length - 1] : measure.map;
                end = { node: map[map.length - 1], offset: map[map.length - 2] - map[map.length - 3] };
            }

            try { var rng = range(start.node, start.offset, end.offset, end.node); }
            catch (e) { } // Our model of the DOM might be outdated, in which case the range we try to set can be impossible
            if (rng) {
                if (!gecko && this.cm.state.focused) {
                    sel.collapse(start.node, start.offset);
                    if (!rng.collapsed) sel.addRange(rng);
                } else {
                    sel.removeAllRanges();
                    sel.addRange(rng);
                }
                if (old && sel.anchorNode == null) sel.addRange(old);
                else if (gecko) this.startGracePeriod();
            }
            this.rememberSelection();
        },

        startGracePeriod: function () {
            var input = this;
            clearTimeout(this.gracePeriod);
            this.gracePeriod = setTimeout(function () {
                input.gracePeriod = false;
                if (input.selectionChanged())
                    input.cm.operation(function () { input.cm.curOp.selectionChanged = true; });
            }, 20);
        },

        showMultipleSelections: function (info) {
            removeChildrenAndAdd(this.cm.display.cursorDiv, info.cursors);
            removeChildrenAndAdd(this.cm.display.selectionDiv, info.selection);
        },

        rememberSelection: function () {
            var sel = window.getSelection();
            this.lastAnchorNode = sel.anchorNode; this.lastAnchorOffset = sel.anchorOffset;
            this.lastFocusNode = sel.focusNode; this.lastFocusOffset = sel.focusOffset;
        },

        selectionInEditor: function () {
            var sel = window.getSelection();
            if (!sel.rangeCount) return false;
            var node = sel.getRangeAt(0).commonAncestorContainer;
            return contains(this.div, node);
        },

        focus: function () {
            if (this.cm.options.readOnly != "nocursor") this.div.focus();
        },
        blur: function () { this.div.blur(); },
        getField: function () { return this.div; },

        supportsTouch: function () { return true; },

        receivedFocus: function () {
            var input = this;
            if (this.selectionInEditor())
                this.pollSelection();
            else
                runInOp(this.cm, function () { input.cm.curOp.selectionChanged = true; });

            function poll() {
                if (input.cm.state.focused) {
                    input.pollSelection();
                    input.polling.set(input.cm.options.pollInterval, poll);
                }
            }
            this.polling.set(this.cm.options.pollInterval, poll);
        },

        selectionChanged: function () {
            var sel = window.getSelection();
            return sel.anchorNode != this.lastAnchorNode || sel.anchorOffset != this.lastAnchorOffset ||
                sel.focusNode != this.lastFocusNode || sel.focusOffset != this.lastFocusOffset;
        },

        pollSelection: function () {
            if (!this.composing && !this.gracePeriod && this.selectionChanged()) {
                var sel = window.getSelection(), cm = this.cm;
                this.rememberSelection();
                var anchor = domToPos(cm, sel.anchorNode, sel.anchorOffset);
                var head = domToPos(cm, sel.focusNode, sel.focusOffset);
                if (anchor && head) runInOp(cm, function () {
                    setSelection(cm.doc, simpleSelection(anchor, head), sel_dontScroll);
                    if (anchor.bad || head.bad) cm.curOp.selectionChanged = true;
                });
            }
        },

        pollContent: function () {
            var cm = this.cm, display = cm.display, sel = cm.doc.sel.primary();
            var from = sel.from(), to = sel.to();
            if (from.line < display.viewFrom || to.line > display.viewTo - 1) return false;

            var fromIndex;
            if (from.line == display.viewFrom || (fromIndex = findViewIndex(cm, from.line)) == 0) {
                var fromLine = lineNo(display.view[0].line);
                var fromNode = display.view[0].node;
            } else {
                var fromLine = lineNo(display.view[fromIndex].line);
                var fromNode = display.view[fromIndex - 1].node.nextSibling;
            }
            var toIndex = findViewIndex(cm, to.line);
            if (toIndex == display.view.length - 1) {
                var toLine = display.viewTo - 1;
                var toNode = display.lineDiv.lastChild;
            } else {
                var toLine = lineNo(display.view[toIndex + 1].line) - 1;
                var toNode = display.view[toIndex + 1].node.previousSibling;
            }

            var newText = cm.doc.splitLines(domTextBetween(cm, fromNode, toNode, fromLine, toLine));
            var oldText = getBetween(cm.doc, Pos(fromLine, 0), Pos(toLine, getLine(cm.doc, toLine).text.length));
            while (newText.length > 1 && oldText.length > 1) {
                if (lst(newText) == lst(oldText)) { newText.pop(); oldText.pop(); toLine--; }
                else if (newText[0] == oldText[0]) { newText.shift(); oldText.shift(); fromLine++; }
                else break;
            }

            var cutFront = 0, cutEnd = 0;
            var newTop = newText[0], oldTop = oldText[0], maxCutFront = Math.min(newTop.length, oldTop.length);
            while (cutFront < maxCutFront && newTop.charCodeAt(cutFront) == oldTop.charCodeAt(cutFront))
                ++cutFront;
            var newBot = lst(newText), oldBot = lst(oldText);
            var maxCutEnd = Math.min(newBot.length - (newText.length == 1 ? cutFront : 0),
                oldBot.length - (oldText.length == 1 ? cutFront : 0));
            while (cutEnd < maxCutEnd &&
                newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1))
                ++cutEnd;

            newText[newText.length - 1] = newBot.slice(0, newBot.length - cutEnd);
            newText[0] = newText[0].slice(cutFront);

            var chFrom = Pos(fromLine, cutFront);
            var chTo = Pos(toLine, oldText.length ? lst(oldText).length - cutEnd : 0);
            if (newText.length > 1 || newText[0] || cmp(chFrom, chTo)) {
                replaceRange(cm.doc, newText, chFrom, chTo, "+input");
                return true;
            }
        },

        ensurePolled: function () {
            this.forceCompositionEnd();
        },
        reset: function () {
            this.forceCompositionEnd();
        },
        forceCompositionEnd: function () {
            if (!this.composing || this.composing.handled) return;
            this.applyComposition(this.composing);
            this.composing.handled = true;
            this.div.blur();
            this.div.focus();
        },
        applyComposition: function (composing) {
            if (this.cm.isReadOnly())
                operation(this.cm, regChange)(this.cm)
            else if (composing.data && composing.data != composing.startData)
                operation(this.cm, applyTextInput)(this.cm, composing.data, 0, composing.sel);
        },

        setUneditable: function (node) {
            node.contentEditable = "false"
        },

        onKeyPress: function (e) {
            e.preventDefault();
            if (!this.cm.isReadOnly())
                operation(this.cm, applyTextInput)(this.cm, String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode), 0);
        },

        readOnlyChanged: function (val) {
            this.div.contentEditable = String(val != "nocursor")
        },

        onContextMenu: nothing,
        resetPosition: nothing,

        needsContentAttribute: true
    }, ContentEditableInput.prototype);

    function posToDOM(cm, pos) {
        var view = findViewForLine(cm, pos.line);
        if (!view || view.hidden) return null;
        var line = getLine(cm.doc, pos.line);
        var info = mapFromLineView(view, line, pos.line);

        var order = getOrder(line), side = "left";
        if (order) {
            var partPos = getBidiPartAt(order, pos.ch);
            side = partPos % 2 ? "right" : "left";
        }
        var result = nodeAndOffsetInLineMap(info.map, pos.ch, side);
        result.offset = result.collapse == "right" ? result.end : result.start;
        return result;
    }

    function badPos(pos, bad) { if (bad) pos.bad = true; return pos; }

    function domToPos(cm, node, offset) {
        var lineNode;
        if (node == cm.display.lineDiv) {
            lineNode = cm.display.lineDiv.childNodes[offset];
            if (!lineNode) return badPos(cm.clipPos(Pos(cm.display.viewTo - 1)), true);
            node = null; offset = 0;
        } else {
            for (lineNode = node; ; lineNode = lineNode.parentNode) {
                if (!lineNode || lineNode == cm.display.lineDiv) return null;
                if (lineNode.parentNode && lineNode.parentNode == cm.display.lineDiv) break;
            }
        }
        for (var i = 0; i < cm.display.view.length; i++) {
            var lineView = cm.display.view[i];
            if (lineView.node == lineNode)
                return locateNodeInLineView(lineView, node, offset);
        }
    }

    function locateNodeInLineView(lineView, node, offset) {
        var wrapper = lineView.text.firstChild, bad = false;
        if (!node || !contains(wrapper, node)) return badPos(Pos(lineNo(lineView.line), 0), true);
        if (node == wrapper) {
            bad = true;
            node = wrapper.childNodes[offset];
            offset = 0;
            if (!node) {
                var line = lineView.rest ? lst(lineView.rest) : lineView.line;
                return badPos(Pos(lineNo(line), line.text.length), bad);
            }
        }

        var textNode = node.nodeType == 3 ? node : null, topNode = node;
        if (!textNode && node.childNodes.length == 1 && node.firstChild.nodeType == 3) {
            textNode = node.firstChild;
            if (offset) offset = textNode.nodeValue.length;
        }
        while (topNode.parentNode != wrapper) topNode = topNode.parentNode;
        var measure = lineView.measure, maps = measure.maps;

        function find(textNode, topNode, offset) {
            for (var i = -1; i < (maps ? maps.length : 0); i++) {
                var map = i < 0 ? measure.map : maps[i];
                for (var j = 0; j < map.length; j += 3) {
                    var curNode = map[j + 2];
                    if (curNode == textNode || curNode == topNode) {
                        var line = lineNo(i < 0 ? lineView.line : lineView.rest[i]);
                        var ch = map[j] + offset;
                        if (offset < 0 || curNode != textNode) ch = map[j + (offset ? 1 : 0)];
                        return Pos(line, ch);
                    }
                }
            }
        }
        var found = find(textNode, topNode, offset);
        if (found) return badPos(found, bad);

        // FIXME this is all really shaky. might handle the few cases it needs to handle, but likely to cause problems
        for (var after = topNode.nextSibling, dist = textNode ? textNode.nodeValue.length - offset : 0; after; after = after.nextSibling) {
            found = find(after, after.firstChild, 0);
            if (found)
                return badPos(Pos(found.line, found.ch - dist), bad);
            else
                dist += after.textContent.length;
        }
        for (var before = topNode.previousSibling, dist = offset; before; before = before.previousSibling) {
            found = find(before, before.firstChild, -1);
            if (found)
                return badPos(Pos(found.line, found.ch + dist), bad);
            else
                dist += after.textContent.length;
        }
    }

    function domTextBetween(cm, from, to, fromLine, toLine) {
        var text = "", closing = false, lineSep = cm.doc.lineSeparator();
        function recognizeMarker(id) { return function (marker) { return marker.id == id; }; }
        function walk(node) {
            if (node.nodeType == 1) {
                var cmText = node.getAttribute("cm-text");
                if (cmText != null) {
                    if (cmText == "") cmText = node.textContent.replace(/\u200b/g, "");
                    text += cmText;
                    return;
                }
                var markerID = node.getAttribute("cm-marker"), range;
                if (markerID) {
                    var found = cm.findMarks(Pos(fromLine, 0), Pos(toLine + 1, 0), recognizeMarker(+markerID));
                    if (found.length && (range = found[0].find()))
                        text += getBetween(cm.doc, range.from, range.to).join(lineSep);
                    return;
                }
                if (node.getAttribute("contenteditable") == "false") return;
                for (var i = 0; i < node.childNodes.length; i++)
                    walk(node.childNodes[i]);
                if (/^(pre|div|p)$/i.test(node.nodeName))
                    closing = true;
            } else if (node.nodeType == 3) {
                var val = node.nodeValue;
                if (!val) return;
                if (closing) {
                    text += lineSep;
                    closing = false;
                }
                text += val;
            }
        }
        for (; ;) {
            walk(from);
            if (from == to) break;
            from = from.nextSibling;
        }
        return text;
    }

    CodeMirror.inputStyles = { "textarea": TextareaInput, "contenteditable": ContentEditableInput };

    // SELECTION / CURSOR

    // Selection objects are immutable. A new one is created every time
    // the selection changes. A selection is one or more non-overlapping
    // (and non-touching) ranges, sorted, and an integer that indicates
    // which one is the primary selection (the one that's scrolled into
    // view, that getCursor returns, etc).
    function Selection(ranges, primIndex) {
        this.ranges = ranges;
        this.primIndex = primIndex;
    }

    Selection.prototype = {
        primary: function () { return this.ranges[this.primIndex]; },
        equals: function (other) {
            if (other == this) return true;
            if (other.primIndex != this.primIndex || other.ranges.length != this.ranges.length) return false;
            for (var i = 0; i < this.ranges.length; i++) {
                var here = this.ranges[i], there = other.ranges[i];
                if (cmp(here.anchor, there.anchor) != 0 || cmp(here.head, there.head) != 0) return false;
            }
            return true;
        },
        deepCopy: function () {
            for (var out = [], i = 0; i < this.ranges.length; i++)
                out[i] = new Range(copyPos(this.ranges[i].anchor), copyPos(this.ranges[i].head));
            return new Selection(out, this.primIndex);
        },
        somethingSelected: function () {
            for (var i = 0; i < this.ranges.length; i++)
                if (!this.ranges[i].empty()) return true;
            return false;
        },
        contains: function (pos, end) {
            if (!end) end = pos;
            for (var i = 0; i < this.ranges.length; i++) {
                var range = this.ranges[i];
                if (cmp(end, range.from()) >= 0 && cmp(pos, range.to()) <= 0)
                    return i;
            }
            return -1;
        }
    };

    function Range(anchor, head) {
        this.anchor = anchor; this.head = head;
    }

    Range.prototype = {
        from: function () { return minPos(this.anchor, this.head); },
        to: function () { return maxPos(this.anchor, this.head); },
        empty: function () {
            return this.head.line == this.anchor.line && this.head.ch == this.anchor.ch;
        }
    };

    // Take an unsorted, potentially overlapping set of ranges, and
    // build a selection out of it. 'Consumes' ranges array (modifying
    // it).
    function normalizeSelection(ranges, primIndex) {
        var prim = ranges[primIndex];
        ranges.sort(function (a, b) { return cmp(a.from(), b.from()); });
        primIndex = indexOf(ranges, prim);
        for (var i = 1; i < ranges.length; i++) {
            var cur = ranges[i], prev = ranges[i - 1];
            if (cmp(prev.to(), cur.from()) >= 0) {
                var from = minPos(prev.from(), cur.from()), to = maxPos(prev.to(), cur.to());
                var inv = prev.empty() ? cur.from() == cur.head : prev.from() == prev.head;
                if (i <= primIndex)--primIndex;
                ranges.splice(--i, 2, new Range(inv ? to : from, inv ? from : to));
            }
        }
        return new Selection(ranges, primIndex);
    }

    function simpleSelection(anchor, head) {
        return new Selection([new Range(anchor, head || anchor)], 0);
    }

    // Most of the external API clips given positions to make sure they
    // actually exist within the document.
    function clipLine(doc, n) { return Math.max(doc.first, Math.min(n, doc.first + doc.size - 1)); }
    function clipPos(doc, pos) {
        if (pos.line < doc.first) return Pos(doc.first, 0);
        var last = doc.first + doc.size - 1;
        if (pos.line > last) return Pos(last, getLine(doc, last).text.length);
        return clipToLen(pos, getLine(doc, pos.line).text.length);
    }
    function clipToLen(pos, linelen) {
        var ch = pos.ch;
        if (ch == null || ch > linelen) return Pos(pos.line, linelen);
        else if (ch < 0) return Pos(pos.line, 0);
        else return pos;
    }
    function isLine(doc, l) { return l >= doc.first && l < doc.first + doc.size; }
    function clipPosArray(doc, array) {
        for (var out = [], i = 0; i < array.length; i++) out[i] = clipPos(doc, array[i]);
        return out;
    }

    // SELECTION UPDATES

    // The 'scroll' parameter given to many of these indicated whether
    // the new cursor position should be scrolled into view after
    // modifying the selection.

    // If shift is held or the extend flag is set, extends a range to
    // include a given position (and optionally a second position).
    // Otherwise, simply returns the range between the given positions.
    // Used for cursor motion and such.
    function extendRange(doc, range, head, other) {
        if (doc.cm && doc.cm.display.shift || doc.extend) {
            var anchor = range.anchor;
            if (other) {
                var posBefore = cmp(head, anchor) < 0;
                if (posBefore != (cmp(other, anchor) < 0)) {
                    anchor = head;
                    head = other;
                } else if (posBefore != (cmp(head, other) < 0)) {
                    head = other;
                }
            }
            return new Range(anchor, head);
        } else {
            return new Range(other || head, head);
        }
    }

    // Extend the primary selection range, discard the rest.
    function extendSelection(doc, head, other, options) {
        setSelection(doc, new Selection([extendRange(doc, doc.sel.primary(), head, other)], 0), options);
    }

    // Extend all selections (pos is an array of selections with length
    // equal the number of selections)
    function extendSelections(doc, heads, options) {
        for (var out = [], i = 0; i < doc.sel.ranges.length; i++)
            out[i] = extendRange(doc, doc.sel.ranges[i], heads[i], null);
        var newSel = normalizeSelection(out, doc.sel.primIndex);
        setSelection(doc, newSel, options);
    }

    // Updates a single range in the selection.
    function replaceOneSelection(doc, i, range, options) {
        var ranges = doc.sel.ranges.slice(0);
        ranges[i] = range;
        setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);
    }

    // Reset the selection to a single range.
    function setSimpleSelection(doc, anchor, head, options) {
        setSelection(doc, simpleSelection(anchor, head), options);
    }

    // Give beforeSelectionChange handlers a change to influence a
    // selection update.
    function filterSelectionChange(doc, sel, options) {
        var obj = {
            ranges: sel.ranges,
            update: function (ranges) {
                this.ranges = [];
                for (var i = 0; i < ranges.length; i++)
                    this.ranges[i] = new Range(clipPos(doc, ranges[i].anchor),
                        clipPos(doc, ranges[i].head));
            },
            origin: options && options.origin
        };
        signal(doc, "beforeSelectionChange", doc, obj);
        if (doc.cm) signal(doc.cm, "beforeSelectionChange", doc.cm, obj);
        if (obj.ranges != sel.ranges) return normalizeSelection(obj.ranges, obj.ranges.length - 1);
        else return sel;
    }

    function setSelectionReplaceHistory(doc, sel, options) {
        var done = doc.history.done, last = lst(done);
        if (last && last.ranges) {
            done[done.length - 1] = sel;
            setSelectionNoUndo(doc, sel, options);
        } else {
            setSelection(doc, sel, options);
        }
    }

    // Set a new selection.
    function setSelection(doc, sel, options) {
        setSelectionNoUndo(doc, sel, options);
        addSelectionToHistory(doc, doc.sel, doc.cm ? doc.cm.curOp.id : NaN, options);
    }

    function setSelectionNoUndo(doc, sel, options) {
        if (hasHandler(doc, "beforeSelectionChange") || doc.cm && hasHandler(doc.cm, "beforeSelectionChange"))
            sel = filterSelectionChange(doc, sel, options);

        var bias = options && options.bias ||
            (cmp(sel.primary().head, doc.sel.primary().head) < 0 ? -1 : 1);
        setSelectionInner(doc, skipAtomicInSelection(doc, sel, bias, true));

        if (!(options && options.scroll === false) && doc.cm)
            ensureCursorVisible(doc.cm);
    }

    function setSelectionInner(doc, sel) {
        if (sel.equals(doc.sel)) return;

        doc.sel = sel;

        if (doc.cm) {
            doc.cm.curOp.updateInput = doc.cm.curOp.selectionChanged = true;
            signalCursorActivity(doc.cm);
        }
        signalLater(doc, "cursorActivity", doc);
    }

    // Verify that the selection does not partially select any atomic
    // marked ranges.
    function reCheckSelection(doc) {
        setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false), sel_dontScroll);
    }

    // Return a selection that does not partially select any atomic
    // ranges.
    function skipAtomicInSelection(doc, sel, bias, mayClear) {
        var out;
        for (var i = 0; i < sel.ranges.length; i++) {
            var range = sel.ranges[i];
            var old = sel.ranges.length == doc.sel.ranges.length && doc.sel.ranges[i];
            var newAnchor = skipAtomic(doc, range.anchor, old && old.anchor, bias, mayClear);
            var newHead = skipAtomic(doc, range.head, old && old.head, bias, mayClear);
            if (out || newAnchor != range.anchor || newHead != range.head) {
                if (!out) out = sel.ranges.slice(0, i);
                out[i] = new Range(newAnchor, newHead);
            }
        }
        return out ? normalizeSelection(out, sel.primIndex) : sel;
    }

    function skipAtomicInner(doc, pos, oldPos, dir, mayClear) {
        var line = getLine(doc, pos.line);
        if (line.markedSpans) for (var i = 0; i < line.markedSpans.length; ++i) {
            var sp = line.markedSpans[i], m = sp.marker;
            if ((sp.from == null || (m.inclusiveLeft ? sp.from <= pos.ch : sp.from < pos.ch)) &&
                (sp.to == null || (m.inclusiveRight ? sp.to >= pos.ch : sp.to > pos.ch))) {
                if (mayClear) {
                    signal(m, "beforeCursorEnter");
                    if (m.explicitlyCleared) {
                        if (!line.markedSpans) break;
                        else { --i; continue; }
                    }
                }
                if (!m.atomic) continue;

                if (oldPos) {
                    var near = m.find(dir < 0 ? 1 : -1), diff;
                    if (dir < 0 ? m.inclusiveRight : m.inclusiveLeft)
                        near = movePos(doc, near, -dir, near && near.line == pos.line ? line : null);
                    if (near && near.line == pos.line && (diff = cmp(near, oldPos)) && (dir < 0 ? diff < 0 : diff > 0))
                        return skipAtomicInner(doc, near, pos, dir, mayClear);
                }

                var far = m.find(dir < 0 ? -1 : 1);
                if (dir < 0 ? m.inclusiveLeft : m.inclusiveRight)
                    far = movePos(doc, far, dir, far.line == pos.line ? line : null);
                return far ? skipAtomicInner(doc, far, pos, dir, mayClear) : null;
            }
        }
        return pos;
    }

    // Ensure a given position is not inside an atomic range.
    function skipAtomic(doc, pos, oldPos, bias, mayClear) {
        var dir = bias || 1;
        var found = skipAtomicInner(doc, pos, oldPos, dir, mayClear) ||
            (!mayClear && skipAtomicInner(doc, pos, oldPos, dir, true)) ||
            skipAtomicInner(doc, pos, oldPos, -dir, mayClear) ||
            (!mayClear && skipAtomicInner(doc, pos, oldPos, -dir, true));
        if (!found) {
            doc.cantEdit = true;
            return Pos(doc.first, 0);
        }
        return found;
    }

    function movePos(doc, pos, dir, line) {
        if (dir < 0 && pos.ch == 0) {
            if (pos.line > doc.first) return clipPos(doc, Pos(pos.line - 1));
            else return null;
        } else if (dir > 0 && pos.ch == (line || getLine(doc, pos.line)).text.length) {
            if (pos.line < doc.first + doc.size - 1) return Pos(pos.line + 1, 0);
            else return null;
        } else {
            return new Pos(pos.line, pos.ch + dir);
        }
    }

    // SELECTION DRAWING

    function updateSelection(cm) {
        cm.display.input.showSelection(cm.display.input.prepareSelection());
    }

    function prepareSelection(cm, primary) {
        var doc = cm.doc, result = {};
        var curFragment = result.cursors = document.createDocumentFragment();
        var selFragment = result.selection = document.createDocumentFragment();

        for (var i = 0; i < doc.sel.ranges.length; i++) {
            if (primary === false && i == doc.sel.primIndex) continue;
            var range = doc.sel.ranges[i];
            if (range.from().line >= cm.display.viewTo || range.to().line < cm.display.viewFrom) continue;
            var collapsed = range.empty();
            if (collapsed || cm.options.showCursorWhenSelecting)
                drawSelectionCursor(cm, range.head, curFragment);
            if (!collapsed)
                drawSelectionRange(cm, range, selFragment);
        }
        return result;
    }

    // Draws a cursor for the given range
    function drawSelectionCursor(cm, head, output) {
        var pos = cursorCoords(cm, head, "div", null, null, !cm.options.singleCursorHeightPerLine);

        var cursor = output.appendChild(elt("div", "\u00a0", "CodeMirror-cursor"));
        cursor.style.left = pos.left + "px";
        cursor.style.top = pos.top + "px";
        cursor.style.height = Math.max(0, pos.bottom - pos.top) * cm.options.cursorHeight + "px";

        if (pos.other) {
            // Secondary cursor, shown when on a 'jump' in bi-directional text
            var otherCursor = output.appendChild(elt("div", "\u00a0", "CodeMirror-cursor CodeMirror-secondarycursor"));
            otherCursor.style.display = "";
            otherCursor.style.left = pos.other.left + "px";
            otherCursor.style.top = pos.other.top + "px";
            otherCursor.style.height = (pos.other.bottom - pos.other.top) * .85 + "px";
        }
    }

    // Draws the given range as a highlighted selection
    function drawSelectionRange(cm, range, output) {
        var display = cm.display, doc = cm.doc;
        var fragment = document.createDocumentFragment();
        var padding = paddingH(cm.display), leftSide = padding.left;
        var rightSide = Math.max(display.sizerWidth, displayWidth(cm) - display.sizer.offsetLeft) - padding.right;

        function add(left, top, width, bottom) {
            if (top < 0) top = 0;
            top = Math.round(top);
            bottom = Math.round(bottom);
            fragment.appendChild(elt("div", null, "CodeMirror-selected", "position: absolute; left: " + left +
                "px; top: " + top + "px; width: " + (width == null ? rightSide - left : width) +
                "px; height: " + (bottom - top) + "px"));
        }

        function drawForLine(line, fromArg, toArg) {
            var lineObj = getLine(doc, line);
            var lineLen = lineObj.text.length;
            var start, end;
            function coords(ch, bias) {
                return charCoords(cm, Pos(line, ch), "div", lineObj, bias);
            }

            iterateBidiSections(getOrder(lineObj), fromArg || 0, toArg == null ? lineLen : toArg, function (from, to, dir) {
                var leftPos = coords(from, "left"), rightPos, left, right;
                if (from == to) {
                    rightPos = leftPos;
                    left = right = leftPos.left;
                } else {
                    rightPos = coords(to - 1, "right");
                    if (dir == "rtl") { var tmp = leftPos; leftPos = rightPos; rightPos = tmp; }
                    left = leftPos.left;
                    right = rightPos.right;
                }
                if (fromArg == null && from == 0) left = leftSide;
                if (rightPos.top - leftPos.top > 3) { // Different lines, draw top part
                    add(left, leftPos.top, null, leftPos.bottom);
                    left = leftSide;
                    if (leftPos.bottom < rightPos.top) add(left, leftPos.bottom, null, rightPos.top);
                }
                if (toArg == null && to == lineLen) right = rightSide;
                if (!start || leftPos.top < start.top || leftPos.top == start.top && leftPos.left < start.left)
                    start = leftPos;
                if (!end || rightPos.bottom > end.bottom || rightPos.bottom == end.bottom && rightPos.right > end.right)
                    end = rightPos;
                if (left < leftSide + 1) left = leftSide;
                add(left, rightPos.top, right - left, rightPos.bottom);
            });
            return { start: start, end: end };
        }

        var sFrom = range.from(), sTo = range.to();
        if (sFrom.line == sTo.line) {
            drawForLine(sFrom.line, sFrom.ch, sTo.ch);
        } else {
            var fromLine = getLine(doc, sFrom.line), toLine = getLine(doc, sTo.line);
            var singleVLine = visualLine(fromLine) == visualLine(toLine);
            var leftEnd = drawForLine(sFrom.line, sFrom.ch, singleVLine ? fromLine.text.length + 1 : null).end;
            var rightStart = drawForLine(sTo.line, singleVLine ? 0 : null, sTo.ch).start;
            if (singleVLine) {
                if (leftEnd.top < rightStart.top - 2) {
                    add(leftEnd.right, leftEnd.top, null, leftEnd.bottom);
                    add(leftSide, rightStart.top, rightStart.left, rightStart.bottom);
                } else {
                    add(leftEnd.right, leftEnd.top, rightStart.left - leftEnd.right, leftEnd.bottom);
                }
            }
            if (leftEnd.bottom < rightStart.top)
                add(leftSide, leftEnd.bottom, null, rightStart.top);
        }

        output.appendChild(fragment);
    }

    // Cursor-blinking
    function restartBlink(cm) {
        if (!cm.state.focused) return;
        var display = cm.display;
        clearInterval(display.blinker);
        var on = true;
        display.cursorDiv.style.visibility = "";
        if (cm.options.cursorBlinkRate > 0)
            display.blinker = setInterval(function () {
                display.cursorDiv.style.visibility = (on = !on) ? "" : "hidden";
            }, cm.options.cursorBlinkRate);
        else if (cm.options.cursorBlinkRate < 0)
            display.cursorDiv.style.visibility = "hidden";
    }

    // HIGHLIGHT WORKER

    function startWorker(cm, time) {
        if (cm.doc.mode.startState && cm.doc.frontier < cm.display.viewTo)
            cm.state.highlight.set(time, bind(highlightWorker, cm));
    }

    function highlightWorker(cm) {
        var doc = cm.doc;
        if (doc.frontier < doc.first) doc.frontier = doc.first;
        if (doc.frontier >= cm.display.viewTo) return;
        var end = +new Date + cm.options.workTime;
        var state = copyState(doc.mode, getStateBefore(cm, doc.frontier));
        var changedLines = [];

        doc.iter(doc.frontier, Math.min(doc.first + doc.size, cm.display.viewTo + 500), function (line) {
            if (doc.frontier >= cm.display.viewFrom) { // Visible
                var oldStyles = line.styles, tooLong = line.text.length > cm.options.maxHighlightLength;
                var highlighted = highlightLine(cm, line, tooLong ? copyState(doc.mode, state) : state, true);
                line.styles = highlighted.styles;
                var oldCls = line.styleClasses, newCls = highlighted.classes;
                if (newCls) line.styleClasses = newCls;
                else if (oldCls) line.styleClasses = null;
                var ischange = !oldStyles || oldStyles.length != line.styles.length ||
                    oldCls != newCls && (!oldCls || !newCls || oldCls.bgClass != newCls.bgClass || oldCls.textClass != newCls.textClass);
                for (var i = 0; !ischange && i < oldStyles.length; ++i) ischange = oldStyles[i] != line.styles[i];
                if (ischange) changedLines.push(doc.frontier);
                line.stateAfter = tooLong ? state : copyState(doc.mode, state);
            } else {
                if (line.text.length <= cm.options.maxHighlightLength)
                    processLine(cm, line.text, state);
                line.stateAfter = doc.frontier % 5 == 0 ? copyState(doc.mode, state) : null;
            }
            ++doc.frontier;
            if (+new Date > end) {
                startWorker(cm, cm.options.workDelay);
                return true;
            }
        });
        if (changedLines.length) runInOp(cm, function () {
            for (var i = 0; i < changedLines.length; i++)
                regLineChange(cm, changedLines[i], "text");
        });
    }

    // Finds the line to start with when starting a parse. Tries to
    // find a line with a stateAfter, so that it can start with a
    // valid state. If that fails, it returns the line with the
    // smallest indentation, which tends to need the least context to
    // parse correctly.
    function findStartLine(cm, n, precise) {
        var minindent, minline, doc = cm.doc;
        var lim = precise ? -1 : n - (cm.doc.mode.innerMode ? 1000 : 100);
        for (var search = n; search > lim; --search) {
            if (search <= doc.first) return doc.first;
            var line = getLine(doc, search - 1);
            if (line.stateAfter && (!precise || search <= doc.frontier)) return search;
            var indented = countColumn(line.text, null, cm.options.tabSize);
            if (minline == null || minindent > indented) {
                minline = search - 1;
                minindent = indented;
            }
        }
        return minline;
    }

    function getStateBefore(cm, n, precise) {
        var doc = cm.doc, display = cm.display;
        if (!doc.mode.startState) return true;
        var pos = findStartLine(cm, n, precise), state = pos > doc.first && getLine(doc, pos - 1).stateAfter;
        if (!state) state = startState(doc.mode);
        else state = copyState(doc.mode, state);
        doc.iter(pos, n, function (line) {
            processLine(cm, line.text, state);
            var save = pos == n - 1 || pos % 5 == 0 || pos >= display.viewFrom && pos < display.viewTo;
            line.stateAfter = save ? copyState(doc.mode, state) : null;
            ++pos;
        });
        if (precise) doc.frontier = pos;
        return state;
    }

    // POSITION MEASUREMENT

    function paddingTop(display) { return display.lineSpace.offsetTop; }
    function paddingVert(display) { return display.mover.offsetHeight - display.lineSpace.offsetHeight; }
    function paddingH(display) {
        if (display.cachedPaddingH) return display.cachedPaddingH;
        var e = removeChildrenAndAdd(display.measure, elt("pre", "x"));
        var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle;
        var data = { left: parseInt(style.paddingLeft), right: parseInt(style.paddingRight) };
        if (!isNaN(data.left) && !isNaN(data.right)) display.cachedPaddingH = data;
        return data;
    }

    function scrollGap(cm) { return scrollerGap - cm.display.nativeBarWidth; }
    function displayWidth(cm) {
        return cm.display.scroller.clientWidth - scrollGap(cm) - cm.display.barWidth;
    }
    function displayHeight(cm) {
        return cm.display.scroller.clientHeight - scrollGap(cm) - cm.display.barHeight;
    }

    // Ensure the lineView.wrapping.heights array is populated. This is
    // an array of bottom offsets for the lines that make up a drawn
    // line. When lineWrapping is on, there might be more than one
    // height.
    function ensureLineHeights(cm, lineView, rect) {
        var wrapping = cm.options.lineWrapping;
        var curWidth = wrapping && displayWidth(cm);
        if (!lineView.measure.heights || wrapping && lineView.measure.width != curWidth) {
            var heights = lineView.measure.heights = [];
            if (wrapping) {
                lineView.measure.width = curWidth;
                var rects = lineView.text.firstChild.getClientRects();
                for (var i = 0; i < rects.length - 1; i++) {
                    var cur = rects[i], next = rects[i + 1];
                    if (Math.abs(cur.bottom - next.bottom) > 2)
                        heights.push((cur.bottom + next.top) / 2 - rect.top);
                }
            }
            heights.push(rect.bottom - rect.top);
        }
    }

    // Find a line map (mapping character offsets to text nodes) and a
    // measurement cache for the given line number. (A line view might
    // contain multiple lines when collapsed ranges are present.)
    function mapFromLineView(lineView, line, lineN) {
        if (lineView.line == line)
            return { map: lineView.measure.map, cache: lineView.measure.cache };
        for (var i = 0; i < lineView.rest.length; i++)
            if (lineView.rest[i] == line)
                return { map: lineView.measure.maps[i], cache: lineView.measure.caches[i] };
        for (var i = 0; i < lineView.rest.length; i++)
            if (lineNo(lineView.rest[i]) > lineN)
                return { map: lineView.measure.maps[i], cache: lineView.measure.caches[i], before: true };
    }

    // Render a line into the hidden node display.externalMeasured. Used
    // when measurement is needed for a line that's not in the viewport.
    function updateExternalMeasurement(cm, line) {
        line = visualLine(line);
        var lineN = lineNo(line);
        var view = cm.display.externalMeasured = new LineView(cm.doc, line, lineN);
        view.lineN = lineN;
        var built = view.built = buildLineContent(cm, view);
        view.text = built.pre;
        removeChildrenAndAdd(cm.display.lineMeasure, built.pre);
        return view;
    }

    // Get a {top, bottom, left, right} box (in line-local coordinates)
    // for a given character.
    function measureChar(cm, line, ch, bias) {
        return measureCharPrepared(cm, prepareMeasureForLine(cm, line), ch, bias);
    }

    // Find a line view that corresponds to the given line number.
    function findViewForLine(cm, lineN) {
        if (lineN >= cm.display.viewFrom && lineN < cm.display.viewTo)
            return cm.display.view[findViewIndex(cm, lineN)];
        var ext = cm.display.externalMeasured;
        if (ext && lineN >= ext.lineN && lineN < ext.lineN + ext.size)
            return ext;
    }

    // Measurement can be split in two steps, the set-up work that
    // applies to the whole line, and the measurement of the actual
    // character. Functions like coordsChar, that need to do a lot of
    // measurements in a row, can thus ensure that the set-up work is
    // only done once.
    function prepareMeasureForLine(cm, line) {
        var lineN = lineNo(line);
        var view = findViewForLine(cm, lineN);
        if (view && !view.text) {
            view = null;
        } else if (view && view.changes) {
            updateLineForChanges(cm, view, lineN, getDimensions(cm));
            cm.curOp.forceUpdate = true;
        }
        if (!view)
            view = updateExternalMeasurement(cm, line);

        var info = mapFromLineView(view, line, lineN);
        return {
            line: line, view: view, rect: null,
            map: info.map, cache: info.cache, before: info.before,
            hasHeights: false
        };
    }

    // Given a prepared measurement object, measures the position of an
    // actual character (or fetches it from the cache).
    function measureCharPrepared(cm, prepared, ch, bias, varHeight) {
        if (prepared.before) ch = -1;
        var key = ch + (bias || ""), found;
        if (prepared.cache.hasOwnProperty(key)) {
            found = prepared.cache[key];
        } else {
            if (!prepared.rect)
                prepared.rect = prepared.view.text.getBoundingClientRect();
            if (!prepared.hasHeights) {
                ensureLineHeights(cm, prepared.view, prepared.rect);
                prepared.hasHeights = true;
            }
            found = measureCharInner(cm, prepared, ch, bias);
            if (!found.bogus) prepared.cache[key] = found;
        }
        return {
            left: found.left, right: found.right,
            top: varHeight ? found.rtop : found.top,
            bottom: varHeight ? found.rbottom : found.bottom
        };
    }

    var nullRect = { left: 0, right: 0, top: 0, bottom: 0 };

    function nodeAndOffsetInLineMap(map, ch, bias) {
        var node, start, end, collapse;
        // First, search the line map for the text node corresponding to,
        // or closest to, the target character.
        for (var i = 0; i < map.length; i += 3) {
            var mStart = map[i], mEnd = map[i + 1];
            if (ch < mStart) {
                start = 0; end = 1;
                collapse = "left";
            } else if (ch < mEnd) {
                start = ch - mStart;
                end = start + 1;
            } else if (i == map.length - 3 || ch == mEnd && map[i + 3] > ch) {
                end = mEnd - mStart;
                start = end - 1;
                if (ch >= mEnd) collapse = "right";
            }
            if (start != null) {
                node = map[i + 2];
                if (mStart == mEnd && bias == (node.insertLeft ? "left" : "right"))
                    collapse = bias;
                if (bias == "left" && start == 0)
                    while (i && map[i - 2] == map[i - 3] && map[i - 1].insertLeft) {
                        node = map[(i -= 3) + 2];
                        collapse = "left";
                    }
                if (bias == "right" && start == mEnd - mStart)
                    while (i < map.length - 3 && map[i + 3] == map[i + 4] && !map[i + 5].insertLeft) {
                        node = map[(i += 3) + 2];
                        collapse = "right";
                    }
                break;
            }
        }
        return { node: node, start: start, end: end, collapse: collapse, coverStart: mStart, coverEnd: mEnd };
    }

    function measureCharInner(cm, prepared, ch, bias) {
        var place = nodeAndOffsetInLineMap(prepared.map, ch, bias);
        var node = place.node, start = place.start, end = place.end, collapse = place.collapse;

        var rect;
        if (node.nodeType == 3) { // If it is a text node, use a range to retrieve the coordinates.
            for (var i = 0; i < 4; i++) { // Retry a maximum of 4 times when nonsense rectangles are returned
                while (start && isExtendingChar(prepared.line.text.charAt(place.coverStart + start)))--start;
                while (place.coverStart + end < place.coverEnd && isExtendingChar(prepared.line.text.charAt(place.coverStart + end)))++end;
                if (ie && ie_version < 9 && start == 0 && end == place.coverEnd - place.coverStart) {
                    rect = node.parentNode.getBoundingClientRect();
                } else if (ie && cm.options.lineWrapping) {
                    var rects = range(node, start, end).getClientRects();
                    if (rects.length)
                        rect = rects[bias == "right" ? rects.length - 1 : 0];
                    else
                        rect = nullRect;
                } else {
                    rect = range(node, start, end).getBoundingClientRect() || nullRect;
                }
                if (rect.left || rect.right || start == 0) break;
                end = start;
                start = start - 1;
                collapse = "right";
            }
            if (ie && ie_version < 11) rect = maybeUpdateRectForZooming(cm.display.measure, rect);
        } else { // If it is a widget, simply get the box for the whole widget.
            if (start > 0) collapse = bias = "right";
            var rects;
            if (cm.options.lineWrapping && (rects = node.getClientRects()).length > 1)
                rect = rects[bias == "right" ? rects.length - 1 : 0];
            else
                rect = node.getBoundingClientRect();
        }
        if (ie && ie_version < 9 && !start && (!rect || !rect.left && !rect.right)) {
            var rSpan = node.parentNode.getClientRects()[0];
            if (rSpan)
                rect = { left: rSpan.left, right: rSpan.left + charWidth(cm.display), top: rSpan.top, bottom: rSpan.bottom };
            else
                rect = nullRect;
        }

        var rtop = rect.top - prepared.rect.top, rbot = rect.bottom - prepared.rect.top;
        var mid = (rtop + rbot) / 2;
        var heights = prepared.view.measure.heights;
        for (var i = 0; i < heights.length - 1; i++)
            if (mid < heights[i]) break;
        var top = i ? heights[i - 1] : 0, bot = heights[i];
        var result = {
            left: (collapse == "right" ? rect.right : rect.left) - prepared.rect.left,
            right: (collapse == "left" ? rect.left : rect.right) - prepared.rect.left,
            top: top, bottom: bot
        };
        if (!rect.left && !rect.right) result.bogus = true;
        if (!cm.options.singleCursorHeightPerLine) { result.rtop = rtop; result.rbottom = rbot; }

        return result;
    }

    // Work around problem with bounding client rects on ranges being
    // returned incorrectly when zoomed on IE10 and below.
    function maybeUpdateRectForZooming(measure, rect) {
        if (!window.screen || screen.logicalXDPI == null ||
            screen.logicalXDPI == screen.deviceXDPI || !hasBadZoomedRects(measure))
            return rect;
        var scaleX = screen.logicalXDPI / screen.deviceXDPI;
        var scaleY = screen.logicalYDPI / screen.deviceYDPI;
        return {
            left: rect.left * scaleX, right: rect.right * scaleX,
            top: rect.top * scaleY, bottom: rect.bottom * scaleY
        };
    }

    function clearLineMeasurementCacheFor(lineView) {
        if (lineView.measure) {
            lineView.measure.cache = {};
            lineView.measure.heights = null;
            if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++)
                lineView.measure.caches[i] = {};
        }
    }

    function clearLineMeasurementCache(cm) {
        cm.display.externalMeasure = null;
        removeChildren(cm.display.lineMeasure);
        for (var i = 0; i < cm.display.view.length; i++)
            clearLineMeasurementCacheFor(cm.display.view[i]);
    }

    function clearCaches(cm) {
        clearLineMeasurementCache(cm);
        cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null;
        if (!cm.options.lineWrapping) cm.display.maxLineChanged = true;
        cm.display.lineNumChars = null;
    }

    function pageScrollX() { return window.pageXOffset || (document.documentElement || document.body).scrollLeft; }
    function pageScrollY() { return window.pageYOffset || (document.documentElement || document.body).scrollTop; }

    // Converts a {top, bottom, left, right} box from line-local
    // coordinates into another coordinate system. Context may be one of
    // "line", "div" (display.lineDiv), "local"/null (editor), "window",
    // or "page".
    function intoCoordSystem(cm, lineObj, rect, context) {
        if (lineObj.widgets) for (var i = 0; i < lineObj.widgets.length; ++i) if (lineObj.widgets[i].above) {
            var size = widgetHeight(lineObj.widgets[i]);
            rect.top += size; rect.bottom += size;
        }
        if (context == "line") return rect;
        if (!context) context = "local";
        var yOff = heightAtLine(lineObj);
        if (context == "local") yOff += paddingTop(cm.display);
        else yOff -= cm.display.viewOffset;
        if (context == "page" || context == "window") {
            var lOff = cm.display.lineSpace.getBoundingClientRect();
            yOff += lOff.top + (context == "window" ? 0 : pageScrollY());
            var xOff = lOff.left + (context == "window" ? 0 : pageScrollX());
            rect.left += xOff; rect.right += xOff;
        }
        rect.top += yOff; rect.bottom += yOff;
        return rect;
    }

    // Coverts a box from "div" coords to another coordinate system.
    // Context may be "window", "page", "div", or "local"/null.
    function fromCoordSystem(cm, coords, context) {
        if (context == "div") return coords;
        var left = coords.left, top = coords.top;
        // First move into "page" coordinate system
        if (context == "page") {
            left -= pageScrollX();
            top -= pageScrollY();
        } else if (context == "local" || !context) {
            var localBox = cm.display.sizer.getBoundingClientRect();
            left += localBox.left;
            top += localBox.top;
        }

        var lineSpaceBox = cm.display.lineSpace.getBoundingClientRect();
        return { left: left - lineSpaceBox.left, top: top - lineSpaceBox.top };
    }

    function charCoords(cm, pos, context, lineObj, bias) {
        if (!lineObj) lineObj = getLine(cm.doc, pos.line);
        return intoCoordSystem(cm, lineObj, measureChar(cm, lineObj, pos.ch, bias), context);
    }

    // Returns a box for a given cursor position, which may have an
    // 'other' property containing the position of the secondary cursor
    // on a bidi boundary.
    function cursorCoords(cm, pos, context, lineObj, preparedMeasure, varHeight) {
        lineObj = lineObj || getLine(cm.doc, pos.line);
        if (!preparedMeasure) preparedMeasure = prepareMeasureForLine(cm, lineObj);
        function get(ch, right) {
            var m = measureCharPrepared(cm, preparedMeasure, ch, right ? "right" : "left", varHeight);
            if (right) m.left = m.right; else m.right = m.left;
            return intoCoordSystem(cm, lineObj, m, context);
        }
        function getBidi(ch, partPos) {
            var part = order[partPos], right = part.level % 2;
            if (ch == bidiLeft(part) && partPos && part.level < order[partPos - 1].level) {
                part = order[--partPos];
                ch = bidiRight(part) - (part.level % 2 ? 0 : 1);
                right = true;
            } else if (ch == bidiRight(part) && partPos < order.length - 1 && part.level < order[partPos + 1].level) {
                part = order[++partPos];
                ch = bidiLeft(part) - part.level % 2;
                right = false;
            }
            if (right && ch == part.to && ch > part.from) return get(ch - 1);
            return get(ch, right);
        }
        var order = getOrder(lineObj), ch = pos.ch;
        if (!order) return get(ch);
        var partPos = getBidiPartAt(order, ch);
        var val = getBidi(ch, partPos);
        if (bidiOther != null) val.other = getBidi(ch, bidiOther);
        return val;
    }

    // Used to cheaply estimate the coordinates for a position. Used for
    // intermediate scroll updates.
    function estimateCoords(cm, pos) {
        var left = 0, pos = clipPos(cm.doc, pos);
        if (!cm.options.lineWrapping) left = charWidth(cm.display) * pos.ch;
        var lineObj = getLine(cm.doc, pos.line);
        var top = heightAtLine(lineObj) + paddingTop(cm.display);
        return { left: left, right: left, top: top, bottom: top + lineObj.height };
    }

    // Positions returned by coordsChar contain some extra information.
    // xRel is the relative x position of the input coordinates compared
    // to the found position (so xRel > 0 means the coordinates are to
    // the right of the character position, for example). When outside
    // is true, that means the coordinates lie outside the line's
    // vertical range.
    function PosWithInfo(line, ch, outside, xRel) {
        var pos = Pos(line, ch);
        pos.xRel = xRel;
        if (outside) pos.outside = true;
        return pos;
    }

    // Compute the character position closest to the given coordinates.
    // Input must be lineSpace-local ("div" coordinate system).
    function coordsChar(cm, x, y) {
        var doc = cm.doc;
        y += cm.display.viewOffset;
        if (y < 0) return PosWithInfo(doc.first, 0, true, -1);
        var lineN = lineAtHeight(doc, y), last = doc.first + doc.size - 1;
        if (lineN > last)
            return PosWithInfo(doc.first + doc.size - 1, getLine(doc, last).text.length, true, 1);
        if (x < 0) x = 0;

        var lineObj = getLine(doc, lineN);
        for (; ;) {
            var found = coordsCharInner(cm, lineObj, lineN, x, y);
            var merged = collapsedSpanAtEnd(lineObj);
            var mergedPos = merged && merged.find(0, true);
            if (merged && (found.ch > mergedPos.from.ch || found.ch == mergedPos.from.ch && found.xRel > 0))
                lineN = lineNo(lineObj = mergedPos.to.line);
            else
                return found;
        }
    }

    function coordsCharInner(cm, lineObj, lineNo, x, y) {
        var innerOff = y - heightAtLine(lineObj);
        var wrongLine = false, adjust = 2 * cm.display.wrapper.clientWidth;
        var preparedMeasure = prepareMeasureForLine(cm, lineObj);

        function getX(ch) {
            var sp = cursorCoords(cm, Pos(lineNo, ch), "line", lineObj, preparedMeasure);
            wrongLine = true;
            if (innerOff > sp.bottom) return sp.left - adjust;
            else if (innerOff < sp.top) return sp.left + adjust;
            else wrongLine = false;
            return sp.left;
        }

        var bidi = getOrder(lineObj), dist = lineObj.text.length;
        var from = lineLeft(lineObj), to = lineRight(lineObj);
        var fromX = getX(from), fromOutside = wrongLine, toX = getX(to), toOutside = wrongLine;

        if (x > toX) return PosWithInfo(lineNo, to, toOutside, 1);
        // Do a binary search between these bounds.
        for (; ;) {
            if (bidi ? to == from || to == moveVisually(lineObj, from, 1) : to - from <= 1) {
                var ch = x < fromX || x - fromX <= toX - x ? from : to;
                var xDiff = x - (ch == from ? fromX : toX);
                while (isExtendingChar(lineObj.text.charAt(ch)))++ch;
                var pos = PosWithInfo(lineNo, ch, ch == from ? fromOutside : toOutside,
                    xDiff < -1 ? -1 : xDiff > 1 ? 1 : 0);
                return pos;
            }
            var step = Math.ceil(dist / 2), middle = from + step;
            if (bidi) {
                middle = from;
                for (var i = 0; i < step; ++i) middle = moveVisually(lineObj, middle, 1);
            }
            var middleX = getX(middle);
            if (middleX > x) { to = middle; toX = middleX; if (toOutside = wrongLine) toX += 1000; dist = step; }
            else { from = middle; fromX = middleX; fromOutside = wrongLine; dist -= step; }
        }
    }

    var measureText;
    // Compute the default text height.
    function textHeight(display) {
        if (display.cachedTextHeight != null) return display.cachedTextHeight;
        if (measureText == null) {
            measureText = elt("pre");
            // Measure a bunch of lines, for browsers that compute
            // fractional heights.
            for (var i = 0; i < 49; ++i) {
                measureText.appendChild(document.createTextNode("x"));
                measureText.appendChild(elt("br"));
            }
            measureText.appendChild(document.createTextNode("x"));
        }
        removeChildrenAndAdd(display.measure, measureText);
        var height = measureText.offsetHeight / 50;
        if (height > 3) display.cachedTextHeight = height;
        removeChildren(display.measure);
        return height || 1;
    }

    // Compute the default character width.
    function charWidth(display) {
        if (display.cachedCharWidth != null) return display.cachedCharWidth;
        var anchor = elt("span", "xxxxxxxxxx");
        var pre = elt("pre", [anchor]);
        removeChildrenAndAdd(display.measure, pre);
        var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;
        if (width > 2) display.cachedCharWidth = width;
        return width || 10;
    }

    // OPERATIONS

    // Operations are used to wrap a series of changes to the editor
    // state in such a way that each change won't have to update the
    // cursor and display (which would be awkward, slow, and
    // error-prone). Instead, display updates are batched and then all
    // combined and executed at once.

    var operationGroup = null;

    var nextOpId = 0;
    // Start a new operation.
    function startOperation(cm) {
        cm.curOp = {
            cm: cm,
            viewChanged: false,      // Flag that indicates that lines might need to be redrawn
            startHeight: cm.doc.height, // Used to detect need to update scrollbar
            forceUpdate: false,      // Used to force a redraw
            updateInput: null,       // Whether to reset the input textarea
            typing: false,           // Whether this reset should be careful to leave existing text (for compositing)
            changeObjs: null,        // Accumulated changes, for firing change events
            cursorActivityHandlers: null, // Set of handlers to fire cursorActivity on
            cursorActivityCalled: 0, // Tracks which cursorActivity handlers have been called already
            selectionChanged: false, // Whether the selection needs to be redrawn
            updateMaxLine: false,    // Set when the widest line needs to be determined anew
            scrollLeft: null, scrollTop: null, // Intermediate scroll position, not pushed to DOM yet
            scrollToPos: null,       // Used to scroll to a specific position
            focus: false,
            id: ++nextOpId           // Unique ID
        };
        if (operationGroup) {
            operationGroup.ops.push(cm.curOp);
        } else {
            cm.curOp.ownsGroup = operationGroup = {
                ops: [cm.curOp],
                delayedCallbacks: []
            };
        }
    }

    function fireCallbacksForOps(group) {
        // Calls delayed callbacks and cursorActivity handlers until no
        // new ones appear
        var callbacks = group.delayedCallbacks, i = 0;
        do {
            for (; i < callbacks.length; i++)
                callbacks[i].call(null);
            for (var j = 0; j < group.ops.length; j++) {
                var op = group.ops[j];
                if (op.cursorActivityHandlers)
                    while (op.cursorActivityCalled < op.cursorActivityHandlers.length)
                        op.cursorActivityHandlers[op.cursorActivityCalled++].call(null, op.cm);
            }
        } while (i < callbacks.length);
    }

    // Finish an operation, updating the display and signalling delayed events
    function endOperation(cm) {
        var op = cm.curOp, group = op.ownsGroup;
        if (!group) return;

        try { fireCallbacksForOps(group); }
        finally {
            operationGroup = null;
            for (var i = 0; i < group.ops.length; i++)
                group.ops[i].cm.curOp = null;
            endOperations(group);
        }
    }

    // The DOM updates done when an operation finishes are batched so
    // that the minimum number of relayouts are required.
    function endOperations(group) {
        var ops = group.ops;
        for (var i = 0; i < ops.length; i++) // Read DOM
            endOperation_R1(ops[i]);
        for (var i = 0; i < ops.length; i++) // Write DOM (maybe)
            endOperation_W1(ops[i]);
        for (var i = 0; i < ops.length; i++) // Read DOM
            endOperation_R2(ops[i]);
        for (var i = 0; i < ops.length; i++) // Write DOM (maybe)
            endOperation_W2(ops[i]);
        for (var i = 0; i < ops.length; i++) // Read DOM
            endOperation_finish(ops[i]);
    }

    function endOperation_R1(op) {
        var cm = op.cm, display = cm.display;
        maybeClipScrollbars(cm);
        if (op.updateMaxLine) findMaxLine(cm);

        op.mustUpdate = op.viewChanged || op.forceUpdate || op.scrollTop != null ||
            op.scrollToPos && (op.scrollToPos.from.line < display.viewFrom ||
                op.scrollToPos.to.line >= display.viewTo) ||
            display.maxLineChanged && cm.options.lineWrapping;
        op.update = op.mustUpdate &&
            new DisplayUpdate(cm, op.mustUpdate && { top: op.scrollTop, ensure: op.scrollToPos }, op.forceUpdate);
    }

    function endOperation_W1(op) {
        op.updatedDisplay = op.mustUpdate && updateDisplayIfNeeded(op.cm, op.update);
    }

    function endOperation_R2(op) {
        var cm = op.cm, display = cm.display;
        if (op.updatedDisplay) updateHeightsInViewport(cm);

        op.barMeasure = measureForScrollbars(cm);

        // If the max line changed since it was last measured, measure it,
        // and ensure the document's width matches it.
        // updateDisplay_W2 will use these properties to do the actual resizing
        if (display.maxLineChanged && !cm.options.lineWrapping) {
            op.adjustWidthTo = measureChar(cm, display.maxLine, display.maxLine.text.length).left + 3;
            cm.display.sizerWidth = op.adjustWidthTo;
            op.barMeasure.scrollWidth =
                Math.max(display.scroller.clientWidth, display.sizer.offsetLeft + op.adjustWidthTo + scrollGap(cm) + cm.display.barWidth);
            op.maxScrollLeft = Math.max(0, display.sizer.offsetLeft + op.adjustWidthTo - displayWidth(cm));
        }

        if (op.updatedDisplay || op.selectionChanged)
            op.preparedSelection = display.input.prepareSelection(op.focus);
    }

    function endOperation_W2(op) {
        var cm = op.cm;

        if (op.adjustWidthTo != null) {
            cm.display.sizer.style.minWidth = op.adjustWidthTo + "px";
            if (op.maxScrollLeft < cm.doc.scrollLeft)
                setScrollLeft(cm, Math.min(cm.display.scroller.scrollLeft, op.maxScrollLeft), true);
            cm.display.maxLineChanged = false;
        }

        var takeFocus = op.focus && op.focus == activeElt() && (!document.hasFocus || document.hasFocus())
        if (op.preparedSelection)
            cm.display.input.showSelection(op.preparedSelection, takeFocus);
        if (op.updatedDisplay || op.startHeight != cm.doc.height)
            updateScrollbars(cm, op.barMeasure);
        if (op.updatedDisplay)
            setDocumentHeight(cm, op.barMeasure);

        if (op.selectionChanged) restartBlink(cm);

        if (cm.state.focused && op.updateInput)
            cm.display.input.reset(op.typing);
        if (takeFocus) ensureFocus(op.cm);
    }

    function endOperation_finish(op) {
        var cm = op.cm, display = cm.display, doc = cm.doc;

        if (op.updatedDisplay) postUpdateDisplay(cm, op.update);

        // Abort mouse wheel delta measurement, when scrolling explicitly
        if (display.wheelStartX != null && (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos))
            display.wheelStartX = display.wheelStartY = null;

        // Propagate the scroll position to the actual DOM scroller
        if (op.scrollTop != null && (display.scroller.scrollTop != op.scrollTop || op.forceScroll)) {
            doc.scrollTop = Math.max(0, Math.min(display.scroller.scrollHeight - display.scroller.clientHeight, op.scrollTop));
            display.scrollbars.setScrollTop(doc.scrollTop);
            display.scroller.scrollTop = doc.scrollTop;
        }
        if (op.scrollLeft != null && (display.scroller.scrollLeft != op.scrollLeft || op.forceScroll)) {
            doc.scrollLeft = Math.max(0, Math.min(display.scroller.scrollWidth - display.scroller.clientWidth, op.scrollLeft));
            display.scrollbars.setScrollLeft(doc.scrollLeft);
            display.scroller.scrollLeft = doc.scrollLeft;
            alignHorizontally(cm);
        }
        // If we need to scroll a specific position into view, do so.
        if (op.scrollToPos) {
            var coords = scrollPosIntoView(cm, clipPos(doc, op.scrollToPos.from),
                clipPos(doc, op.scrollToPos.to), op.scrollToPos.margin);
            if (op.scrollToPos.isCursor && cm.state.focused) maybeScrollWindow(cm, coords);
        }

        // Fire events for markers that are hidden/unidden by editing or
        // undoing
        var hidden = op.maybeHiddenMarkers, unhidden = op.maybeUnhiddenMarkers;
        if (hidden) for (var i = 0; i < hidden.length; ++i)
            if (!hidden[i].lines.length) signal(hidden[i], "hide");
        if (unhidden) for (var i = 0; i < unhidden.length; ++i)
            if (unhidden[i].lines.length) signal(unhidden[i], "unhide");

        if (display.wrapper.offsetHeight)
            doc.scrollTop = cm.display.scroller.scrollTop;

        // Fire change events, and delayed event handlers
        if (op.changeObjs)
            signal(cm, "changes", cm, op.changeObjs);
        if (op.update)
            op.update.finish();
    }

    // Run the given function in an operation
    function runInOp(cm, f) {
        if (cm.curOp) return f();
        startOperation(cm);
        try { return f(); }
        finally { endOperation(cm); }
    }
    // Wraps a function in an operation. Returns the wrapped function.
    function operation(cm, f) {
        return function () {
            if (cm.curOp) return f.apply(cm, arguments);
            startOperation(cm);
            try { return f.apply(cm, arguments); }
            finally { endOperation(cm); }
        };
    }
    // Used to add methods to editor and doc instances, wrapping them in
    // operations.
    function methodOp(f) {
        return function () {
            if (this.curOp) return f.apply(this, arguments);
            startOperation(this);
            try { return f.apply(this, arguments); }
            finally { endOperation(this); }
        };
    }
    function docMethodOp(f) {
        return function () {
            var cm = this.cm;
            if (!cm || cm.curOp) return f.apply(this, arguments);
            startOperation(cm);
            try { return f.apply(this, arguments); }
            finally { endOperation(cm); }
        };
    }

    // VIEW TRACKING

    // These objects are used to represent the visible (currently drawn)
    // part of the document. A LineView may correspond to multiple
    // logical lines, if those are connected by collapsed ranges.
    function LineView(doc, line, lineN) {
        // The starting line
        this.line = line;
        // Continuing lines, if any
        this.rest = visualLineContinued(line);
        // Number of logical lines in this visual line
        this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;
        this.node = this.text = null;
        this.hidden = lineIsHidden(doc, line);
    }

    // Create a range of LineView objects for the given lines.
    function buildViewArray(cm, from, to) {
        var array = [], nextPos;
        for (var pos = from; pos < to; pos = nextPos) {
            var view = new LineView(cm.doc, getLine(cm.doc, pos), pos);
            nextPos = pos + view.size;
            array.push(view);
        }
        return array;
    }

    // Updates the display.view data structure for a given change to the
    // document. From and to are in pre-change coordinates. Lendiff is
    // the amount of lines added or subtracted by the change. This is
    // used for changes that span multiple lines, or change the way
    // lines are divided into visual lines. regLineChange (below)
    // registers single-line changes.
    function regChange(cm, from, to, lendiff) {
        if (from == null) from = cm.doc.first;
        if (to == null) to = cm.doc.first + cm.doc.size;
        if (!lendiff) lendiff = 0;

        var display = cm.display;
        if (lendiff && to < display.viewTo &&
            (display.updateLineNumbers == null || display.updateLineNumbers > from))
            display.updateLineNumbers = from;

        cm.curOp.viewChanged = true;

        if (from >= display.viewTo) { // Change after
            if (sawCollapsedSpans && visualLineNo(cm.doc, from) < display.viewTo)
                resetView(cm);
        } else if (to <= display.viewFrom) { // Change before
            if (sawCollapsedSpans && visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom) {
                resetView(cm);
            } else {
                display.viewFrom += lendiff;
                display.viewTo += lendiff;
            }
        } else if (from <= display.viewFrom && to >= display.viewTo) { // Full overlap
            resetView(cm);
        } else if (from <= display.viewFrom) { // Top overlap
            var cut = viewCuttingPoint(cm, to, to + lendiff, 1);
            if (cut) {
                display.view = display.view.slice(cut.index);
                display.viewFrom = cut.lineN;
                display.viewTo += lendiff;
            } else {
                resetView(cm);
            }
        } else if (to >= display.viewTo) { // Bottom overlap
            var cut = viewCuttingPoint(cm, from, from, -1);
            if (cut) {
                display.view = display.view.slice(0, cut.index);
                display.viewTo = cut.lineN;
            } else {
                resetView(cm);
            }
        } else { // Gap in the middle
            var cutTop = viewCuttingPoint(cm, from, from, -1);
            var cutBot = viewCuttingPoint(cm, to, to + lendiff, 1);
            if (cutTop && cutBot) {
                display.view = display.view.slice(0, cutTop.index)
                    .concat(buildViewArray(cm, cutTop.lineN, cutBot.lineN))
                    .concat(display.view.slice(cutBot.index));
                display.viewTo += lendiff;
            } else {
                resetView(cm);
            }
        }

        var ext = display.externalMeasured;
        if (ext) {
            if (to < ext.lineN)
                ext.lineN += lendiff;
            else if (from < ext.lineN + ext.size)
                display.externalMeasured = null;
        }
    }

    // Register a change to a single line. Type must be one of "text",
    // "gutter", "class", "widget"
    function regLineChange(cm, line, type) {
        cm.curOp.viewChanged = true;
        var display = cm.display, ext = cm.display.externalMeasured;
        if (ext && line >= ext.lineN && line < ext.lineN + ext.size)
            display.externalMeasured = null;

        if (line < display.viewFrom || line >= display.viewTo) return;
        var lineView = display.view[findViewIndex(cm, line)];
        if (lineView.node == null) return;
        var arr = lineView.changes || (lineView.changes = []);
        if (indexOf(arr, type) == -1) arr.push(type);
    }

    // Clear the view.
    function resetView(cm) {
        cm.display.viewFrom = cm.display.viewTo = cm.doc.first;
        cm.display.view = [];
        cm.display.viewOffset = 0;
    }

    // Find the view element corresponding to a given line. Return null
    // when the line isn't visible.
    function findViewIndex(cm, n) {
        if (n >= cm.display.viewTo) return null;
        n -= cm.display.viewFrom;
        if (n < 0) return null;
        var view = cm.display.view;
        for (var i = 0; i < view.length; i++) {
            n -= view[i].size;
            if (n < 0) return i;
        }
    }

    function viewCuttingPoint(cm, oldN, newN, dir) {
        var index = findViewIndex(cm, oldN), diff, view = cm.display.view;
        if (!sawCollapsedSpans || newN == cm.doc.first + cm.doc.size)
            return { index: index, lineN: newN };
        for (var i = 0, n = cm.display.viewFrom; i < index; i++)
            n += view[i].size;
        if (n != oldN) {
            if (dir > 0) {
                if (index == view.length - 1) return null;
                diff = (n + view[index].size) - oldN;
                index++;
            } else {
                diff = n - oldN;
            }
            oldN += diff; newN += diff;
        }
        while (visualLineNo(cm.doc, newN) != newN) {
            if (index == (dir < 0 ? 0 : view.length - 1)) return null;
            newN += dir * view[index - (dir < 0 ? 1 : 0)].size;
            index += dir;
        }
        return { index: index, lineN: newN };
    }

    // Force the view to cover a given range, adding empty view element
    // or clipping off existing ones as needed.
    function adjustView(cm, from, to) {
        var display = cm.display, view = display.view;
        if (view.length == 0 || from >= display.viewTo || to <= display.viewFrom) {
            display.view = buildViewArray(cm, from, to);
            display.viewFrom = from;
        } else {
            if (display.viewFrom > from)
                display.view = buildViewArray(cm, from, display.viewFrom).concat(display.view);
            else if (display.viewFrom < from)
                display.view = display.view.slice(findViewIndex(cm, from));
            display.viewFrom = from;
            if (display.viewTo < to)
                display.view = display.view.concat(buildViewArray(cm, display.viewTo, to));
            else if (display.viewTo > to)
                display.view = display.view.slice(0, findViewIndex(cm, to));
        }
        display.viewTo = to;
    }

    // Count the number of lines in the view whose DOM representation is
    // out of date (or nonexistent).
    function countDirtyView(cm) {
        var view = cm.display.view, dirty = 0;
        for (var i = 0; i < view.length; i++) {
            var lineView = view[i];
            if (!lineView.hidden && (!lineView.node || lineView.changes))++dirty;
        }
        return dirty;
    }

    // EVENT HANDLERS

    // Attach the necessary event handlers when initializing the editor
    function registerEventHandlers(cm) {
        var d = cm.display;
        on(d.scroller, "mousedown", operation(cm, onMouseDown));
        // Older IE's will not fire a second mousedown for a double click
        if (ie && ie_version < 11)
            on(d.scroller, "dblclick", operation(cm, function (e) {
                if (signalDOMEvent(cm, e)) return;
                var pos = posFromMouse(cm, e);
                if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) return;
                e_preventDefault(e);
                var word = cm.findWordAt(pos);
                extendSelection(cm.doc, word.anchor, word.head);
            }));
        else
            on(d.scroller, "dblclick", function (e) { signalDOMEvent(cm, e) || e_preventDefault(e); });
        // Some browsers fire contextmenu *after* opening the menu, at
        // which point we can't mess with it anymore. Context menu is
        // handled in onMouseDown for these browsers.
        if (!captureRightClick) on(d.scroller, "contextmenu", function (e) { onContextMenu(cm, e); });

        // Used to suppress mouse event handling when a touch happens
        var touchFinished, prevTouch = { end: 0 };
        function finishTouch() {
            if (d.activeTouch) {
                touchFinished = setTimeout(function () { d.activeTouch = null; }, 1000);
                prevTouch = d.activeTouch;
                prevTouch.end = +new Date;
            }
        };
        function isMouseLikeTouchEvent(e) {
            if (e.touches.length != 1) return false;
            var touch = e.touches[0];
            return touch.radiusX <= 1 && touch.radiusY <= 1;
        }
        function farAway(touch, other) {
            if (other.left == null) return true;
            var dx = other.left - touch.left, dy = other.top - touch.top;
            return dx * dx + dy * dy > 20 * 20;
        }
        on(d.scroller, "touchstart", function (e) {
            if (!signalDOMEvent(cm, e) && !isMouseLikeTouchEvent(e)) {
                clearTimeout(touchFinished);
                var now = +new Date;
                d.activeTouch = {
                    start: now, moved: false,
                    prev: now - prevTouch.end <= 300 ? prevTouch : null
                };
                if (e.touches.length == 1) {
                    d.activeTouch.left = e.touches[0].pageX;
                    d.activeTouch.top = e.touches[0].pageY;
                }
            }
        });
        on(d.scroller, "touchmove", function () {
            if (d.activeTouch) d.activeTouch.moved = true;
        });
        on(d.scroller, "touchend", function (e) {
            var touch = d.activeTouch;
            if (touch && !eventInWidget(d, e) && touch.left != null &&
                !touch.moved && new Date - touch.start < 300) {
                var pos = cm.coordsChar(d.activeTouch, "page"), range;
                if (!touch.prev || farAway(touch, touch.prev)) // Single tap
                    range = new Range(pos, pos);
                else if (!touch.prev.prev || farAway(touch, touch.prev.prev)) // Double tap
                    range = cm.findWordAt(pos);
                else // Triple tap
                    range = new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0)));
                cm.setSelection(range.anchor, range.head);
                cm.focus();
                e_preventDefault(e);
            }
            finishTouch();
        });
        on(d.scroller, "touchcancel", finishTouch);

        // Sync scrolling between fake scrollbars and real scrollable
        // area, ensure viewport is updated when scrolling.
        on(d.scroller, "scroll", function () {
            if (d.scroller.clientHeight) {
                setScrollTop(cm, d.scroller.scrollTop);
                setScrollLeft(cm, d.scroller.scrollLeft, true);
                signal(cm, "scroll", cm);
            }
        });

        // Listen to wheel events in order to try and update the viewport on time.
        on(d.scroller, "mousewheel", function (e) { onScrollWheel(cm, e); });
        on(d.scroller, "DOMMouseScroll", function (e) { onScrollWheel(cm, e); });

        // Prevent wrapper from ever scrolling
        on(d.wrapper, "scroll", function () { d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });

        d.dragFunctions = {
            enter: function (e) { if (!signalDOMEvent(cm, e)) e_stop(e); },
            over: function (e) { if (!signalDOMEvent(cm, e)) { onDragOver(cm, e); e_stop(e); } },
            start: function (e) { onDragStart(cm, e); },
            drop: operation(cm, onDrop),
            leave: function (e) { if (!signalDOMEvent(cm, e)) { clearDragCursor(cm); } }
        };

        var inp = d.input.getField();
        on(inp, "keyup", function (e) { onKeyUp.call(cm, e); });
        on(inp, "keydown", operation(cm, onKeyDown));
        on(inp, "keypress", operation(cm, onKeyPress));
        on(inp, "focus", bind(onFocus, cm));
        on(inp, "blur", bind(onBlur, cm));
    }

    function dragDropChanged(cm, value, old) {
        var wasOn = old && old != CodeMirror.Init;
        if (!value != !wasOn) {
            var funcs = cm.display.dragFunctions;
            var toggle = value ? on : off;
            toggle(cm.display.scroller, "dragstart", funcs.start);
            toggle(cm.display.scroller, "dragenter", funcs.enter);
            toggle(cm.display.scroller, "dragover", funcs.over);
            toggle(cm.display.scroller, "dragleave", funcs.leave);
            toggle(cm.display.scroller, "drop", funcs.drop);
        }
    }

    // Called when the window resizes
    function onResize(cm) {
        var d = cm.display;
        if (d.lastWrapHeight == d.wrapper.clientHeight && d.lastWrapWidth == d.wrapper.clientWidth)
            return;
        // Might be a text scaling operation, clear size caches.
        d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;
        d.scrollbarsClipped = false;
        cm.setSize();
    }

    // MOUSE EVENTS

    // Return true when the given mouse event happened in a widget
    function eventInWidget(display, e) {
        for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
            if (!n || (n.nodeType == 1 && n.getAttribute("cm-ignore-events") == "true") ||
                (n.parentNode == display.sizer && n != display.mover))
                return true;
        }
    }

    // Given a mouse event, find the corresponding position. If liberal
    // is false, it checks whether a gutter or scrollbar was clicked,
    // and returns null if it was. forRect is used by rectangular
    // selections, and tries to estimate a character position even for
    // coordinates beyond the right of the text.
    function posFromMouse(cm, e, liberal, forRect) {
        var display = cm.display;
        if (!liberal && e_target(e).getAttribute("cm-not-content") == "true") return null;

        var x, y, space = display.lineSpace.getBoundingClientRect();
        // Fails unpredictably on IE[67] when mouse is dragged around quickly.
        try { x = e.clientX - space.left; y = e.clientY - space.top; }
        catch (e) { return null; }
        var coords = coordsChar(cm, x, y), line;
        if (forRect && coords.xRel == 1 && (line = getLine(cm.doc, coords.line).text).length == coords.ch) {
            var colDiff = countColumn(line, line.length, cm.options.tabSize) - line.length;
            coords = Pos(coords.line, Math.max(0, Math.round((x - paddingH(cm.display).left) / charWidth(cm.display)) - colDiff));
        }
        return coords;
    }

    // A mouse down can be a single click, double click, triple click,
    // start of selection drag, start of text drag, new cursor
    // (ctrl-click), rectangle drag (alt-drag), or xwin
    // middle-click-paste. Or it might be a click on something we should
    // not interfere with, such as a scrollbar or widget.
    function onMouseDown(e) {
        var cm = this, display = cm.display;
        if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) return;
        display.shift = e.shiftKey;

        if (eventInWidget(display, e)) {
            if (!webkit) {
                // Briefly turn off draggability, to allow widgets to do
                // normal dragging things.
                display.scroller.draggable = false;
                setTimeout(function () { display.scroller.draggable = true; }, 100);
            }
            return;
        }
        if (clickInGutter(cm, e)) return;
        var start = posFromMouse(cm, e);
        window.focus();

        switch (e_button(e)) {
            case 1:
                // #3261: make sure, that we're not starting a second selection
                if (cm.state.selectingText)
                    cm.state.selectingText(e);
                else if (start)
                    leftButtonDown(cm, e, start);
                else if (e_target(e) == display.scroller)
                    e_preventDefault(e);
                break;
            case 2:
                if (webkit) cm.state.lastMiddleDown = +new Date;
                if (start) extendSelection(cm.doc, start);
                setTimeout(function () { display.input.focus(); }, 20);
                e_preventDefault(e);
                break;
            case 3:
                if (captureRightClick) onContextMenu(cm, e);
                else delayBlurEvent(cm);
                break;
        }
    }

    var lastClick, lastDoubleClick;
    function leftButtonDown(cm, e, start) {
        if (ie) setTimeout(bind(ensureFocus, cm), 0);
        else cm.curOp.focus = activeElt();

        var now = +new Date, type;
        if (lastDoubleClick && lastDoubleClick.time > now - 400 && cmp(lastDoubleClick.pos, start) == 0) {
            type = "triple";
        } else if (lastClick && lastClick.time > now - 400 && cmp(lastClick.pos, start) == 0) {
            type = "double";
            lastDoubleClick = { time: now, pos: start };
        } else {
            type = "single";
            lastClick = { time: now, pos: start };
        }

        var sel = cm.doc.sel, modifier = mac ? e.metaKey : e.ctrlKey, contained;
        if (cm.options.dragDrop && dragAndDrop && !cm.isReadOnly() &&
            type == "single" && (contained = sel.contains(start)) > -1 &&
            (cmp((contained = sel.ranges[contained]).from(), start) < 0 || start.xRel > 0) &&
            (cmp(contained.to(), start) > 0 || start.xRel < 0))
            leftButtonStartDrag(cm, e, start, modifier);
        else
            leftButtonSelect(cm, e, start, type, modifier);
    }

    // Start a text drag. When it ends, see if any dragging actually
    // happen, and treat as a click if it didn't.
    function leftButtonStartDrag(cm, e, start, modifier) {
        var display = cm.display, startTime = +new Date;
        var dragEnd = operation(cm, function (e2) {
            if (webkit) display.scroller.draggable = false;
            cm.state.draggingText = false;
            off(document, "mouseup", dragEnd);
            off(display.scroller, "drop", dragEnd);
            if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {
                e_preventDefault(e2);
                if (!modifier && +new Date - 200 < startTime)
                    extendSelection(cm.doc, start);
                // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)
                if (webkit || ie && ie_version == 9)
                    setTimeout(function () { document.body.focus(); display.input.focus(); }, 20);
                else
                    display.input.focus();
            }
        });
        // Let the drag handler handle this.
        if (webkit) display.scroller.draggable = true;
        cm.state.draggingText = dragEnd;
        // IE's approach to draggable
        if (display.scroller.dragDrop) display.scroller.dragDrop();
        on(document, "mouseup", dragEnd);
        on(display.scroller, "drop", dragEnd);
    }

    // Normal selection, as opposed to text dragging.
    function leftButtonSelect(cm, e, start, type, addNew) {
        var display = cm.display, doc = cm.doc;
        e_preventDefault(e);

        var ourRange, ourIndex, startSel = doc.sel, ranges = startSel.ranges;
        if (addNew && !e.shiftKey) {
            ourIndex = doc.sel.contains(start);
            if (ourIndex > -1)
                ourRange = ranges[ourIndex];
            else
                ourRange = new Range(start, start);
        } else {
            ourRange = doc.sel.primary();
            ourIndex = doc.sel.primIndex;
        }

        if (chromeOS ? e.shiftKey && e.metaKey : e.altKey) {
            type = "rect";
            if (!addNew) ourRange = new Range(start, start);
            start = posFromMouse(cm, e, true, true);
            ourIndex = -1;
        } else if (type == "double") {
            var word = cm.findWordAt(start);
            if (cm.display.shift || doc.extend)
                ourRange = extendRange(doc, ourRange, word.anchor, word.head);
            else
                ourRange = word;
        } else if (type == "triple") {
            var line = new Range(Pos(start.line, 0), clipPos(doc, Pos(start.line + 1, 0)));
            if (cm.display.shift || doc.extend)
                ourRange = extendRange(doc, ourRange, line.anchor, line.head);
            else
                ourRange = line;
        } else {
            ourRange = extendRange(doc, ourRange, start);
        }

        if (!addNew) {
            ourIndex = 0;
            setSelection(doc, new Selection([ourRange], 0), sel_mouse);
            startSel = doc.sel;
        } else if (ourIndex == -1) {
            ourIndex = ranges.length;
            setSelection(doc, normalizeSelection(ranges.concat([ourRange]), ourIndex),
                { scroll: false, origin: "*mouse" });
        } else if (ranges.length > 1 && ranges[ourIndex].empty() && type == "single" && !e.shiftKey) {
            setSelection(doc, normalizeSelection(ranges.slice(0, ourIndex).concat(ranges.slice(ourIndex + 1)), 0),
                { scroll: false, origin: "*mouse" });
            startSel = doc.sel;
        } else {
            replaceOneSelection(doc, ourIndex, ourRange, sel_mouse);
        }

        var lastPos = start;
        function extendTo(pos) {
            if (cmp(lastPos, pos) == 0) return;
            lastPos = pos;

            if (type == "rect") {
                var ranges = [], tabSize = cm.options.tabSize;
                var startCol = countColumn(getLine(doc, start.line).text, start.ch, tabSize);
                var posCol = countColumn(getLine(doc, pos.line).text, pos.ch, tabSize);
                var left = Math.min(startCol, posCol), right = Math.max(startCol, posCol);
                for (var line = Math.min(start.line, pos.line), end = Math.min(cm.lastLine(), Math.max(start.line, pos.line));
                    line <= end; line++) {
                    var text = getLine(doc, line).text, leftPos = findColumn(text, left, tabSize);
                    if (left == right)
                        ranges.push(new Range(Pos(line, leftPos), Pos(line, leftPos)));
                    else if (text.length > leftPos)
                        ranges.push(new Range(Pos(line, leftPos), Pos(line, findColumn(text, right, tabSize))));
                }
                if (!ranges.length) ranges.push(new Range(start, start));
                setSelection(doc, normalizeSelection(startSel.ranges.slice(0, ourIndex).concat(ranges), ourIndex),
                    { origin: "*mouse", scroll: false });
                cm.scrollIntoView(pos);
            } else {
                var oldRange = ourRange;
                var anchor = oldRange.anchor, head = pos;
                if (type != "single") {
                    if (type == "double")
                        var range = cm.findWordAt(pos);
                    else
                        var range = new Range(Pos(pos.line, 0), clipPos(doc, Pos(pos.line + 1, 0)));
                    if (cmp(range.anchor, anchor) > 0) {
                        head = range.head;
                        anchor = minPos(oldRange.from(), range.anchor);
                    } else {
                        head = range.anchor;
                        anchor = maxPos(oldRange.to(), range.head);
                    }
                }
                var ranges = startSel.ranges.slice(0);
                ranges[ourIndex] = new Range(clipPos(doc, anchor), head);
                setSelection(doc, normalizeSelection(ranges, ourIndex), sel_mouse);
            }
        }

        var editorSize = display.wrapper.getBoundingClientRect();
        // Used to ensure timeout re-tries don't fire when another extend
        // happened in the meantime (clearTimeout isn't reliable -- at
        // least on Chrome, the timeouts still happen even when cleared,
        // if the clear happens after their scheduled firing time).
        var counter = 0;

        function extend(e) {
            var curCount = ++counter;
            var cur = posFromMouse(cm, e, true, type == "rect");
            if (!cur) return;
            if (cmp(cur, lastPos) != 0) {
                cm.curOp.focus = activeElt();
                extendTo(cur);
                var visible = visibleLines(display, doc);
                if (cur.line >= visible.to || cur.line < visible.from)
                    setTimeout(operation(cm, function () { if (counter == curCount) extend(e); }), 150);
            } else {
                var outside = e.clientY < editorSize.top ? -20 : e.clientY > editorSize.bottom ? 20 : 0;
                if (outside) setTimeout(operation(cm, function () {
                    if (counter != curCount) return;
                    display.scroller.scrollTop += outside;
                    extend(e);
                }), 50);
            }
        }

        function done(e) {
            cm.state.selectingText = false;
            counter = Infinity;
            e_preventDefault(e);
            display.input.focus();
            off(document, "mousemove", move);
            off(document, "mouseup", up);
            doc.history.lastSelOrigin = null;
        }

        var move = operation(cm, function (e) {
            if (!e_button(e)) done(e);
            else extend(e);
        });
        var up = operation(cm, done);
        cm.state.selectingText = up;
        on(document, "mousemove", move);
        on(document, "mouseup", up);
    }

    // Determines whether an event happened in the gutter, and fires the
    // handlers for the corresponding event.
    function gutterEvent(cm, e, type, prevent) {
        try { var mX = e.clientX, mY = e.clientY; }
        catch (e) { return false; }
        if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) return false;
        if (prevent) e_preventDefault(e);

        var display = cm.display;
        var lineBox = display.lineDiv.getBoundingClientRect();

        if (mY > lineBox.bottom || !hasHandler(cm, type)) return e_defaultPrevented(e);
        mY -= lineBox.top - display.viewOffset;

        for (var i = 0; i < cm.options.gutters.length; ++i) {
            var g = display.gutters.childNodes[i];
            if (g && g.getBoundingClientRect().right >= mX) {
                var line = lineAtHeight(cm.doc, mY);
                var gutter = cm.options.gutters[i];
                signal(cm, type, cm, line, gutter, e);
                return e_defaultPrevented(e);
            }
        }
    }

    function clickInGutter(cm, e) {
        return gutterEvent(cm, e, "gutterClick", true);
    }

    // Kludge to work around strange IE behavior where it'll sometimes
    // re-fire a series of drag-related events right after the drop (#1551)
    var lastDrop = 0;

    function onDrop(e) {
        var cm = this;
        clearDragCursor(cm);
        if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e))
            return;
        e_preventDefault(e);
        if (ie) lastDrop = +new Date;
        var pos = posFromMouse(cm, e, true), files = e.dataTransfer.files;
        if (!pos || cm.isReadOnly()) return;
        // Might be a file drop, in which case we simply extract the text
        // and insert it.
        if (files && files.length && window.FileReader && window.File) {
            var n = files.length, text = Array(n), read = 0;
            var loadFile = function (file, i) {
                if (cm.options.allowDropFileTypes &&
                    indexOf(cm.options.allowDropFileTypes, file.type) == -1)
                    return;

                var reader = new FileReader;
                reader.onload = operation(cm, function () {
                    var content = reader.result;
                    if (/[\x00-\x08\x0e-\x1f]{2}/.test(content)) content = "";
                    text[i] = content;
                    if (++read == n) {
                        pos = clipPos(cm.doc, pos);
                        var change = {
                            from: pos, to: pos,
                            text: cm.doc.splitLines(text.join(cm.doc.lineSeparator())),
                            origin: "paste"
                        };
                        makeChange(cm.doc, change);
                        setSelectionReplaceHistory(cm.doc, simpleSelection(pos, changeEnd(change)));
                    }
                });
                reader.readAsText(file);
            };
            for (var i = 0; i < n; ++i) loadFile(files[i], i);
        } else { // Normal drop
            // Don't do a replace if the drop happened inside of the selected text.
            if (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) {
                cm.state.draggingText(e);
                // Ensure the editor is re-focused
                setTimeout(function () { cm.display.input.focus(); }, 20);
                return;
            }
            try {
                var text = e.dataTransfer.getData("Text");
                if (text) {
                    if (cm.state.draggingText && !(mac ? e.altKey : e.ctrlKey))
                        var selected = cm.listSelections();
                    setSelectionNoUndo(cm.doc, simpleSelection(pos, pos));
                    if (selected) for (var i = 0; i < selected.length; ++i)
                        replaceRange(cm.doc, "", selected[i].anchor, selected[i].head, "drag");
                    cm.replaceSelection(text, "around", "paste");
                    cm.display.input.focus();
                }
            }
            catch (e) { }
        }
    }

    function onDragStart(cm, e) {
        if (ie && (!cm.state.draggingText || +new Date - lastDrop < 100)) { e_stop(e); return; }
        if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) return;

        e.dataTransfer.setData("Text", cm.getSelection());
        e.dataTransfer.effectAllowed = "copyMove"

        // Use dummy image instead of default browsers image.
        // Recent Safari (~6.0.2) have a tendency to segfault when this happens, so we don't do it there.
        if (e.dataTransfer.setDragImage && !safari) {
            var img = elt("img", null, null, "position: fixed; left: 0; top: 0;");
            img.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";
            if (presto) {
                img.width = img.height = 1;
                cm.display.wrapper.appendChild(img);
                // Force a relayout, or Opera won't use our image for some obscure reason
                img._top = img.offsetTop;
            }
            e.dataTransfer.setDragImage(img, 0, 0);
            if (presto) img.parentNode.removeChild(img);
        }
    }

    function onDragOver(cm, e) {
        var pos = posFromMouse(cm, e);
        if (!pos) return;
        var frag = document.createDocumentFragment();
        drawSelectionCursor(cm, pos, frag);
        if (!cm.display.dragCursor) {
            cm.display.dragCursor = elt("div", null, "CodeMirror-cursors CodeMirror-dragcursors");
            cm.display.lineSpace.insertBefore(cm.display.dragCursor, cm.display.cursorDiv);
        }
        removeChildrenAndAdd(cm.display.dragCursor, frag);
    }

    function clearDragCursor(cm) {
        if (cm.display.dragCursor) {
            cm.display.lineSpace.removeChild(cm.display.dragCursor);
            cm.display.dragCursor = null;
        }
    }

    // SCROLL EVENTS

    // Sync the scrollable area and scrollbars, ensure the viewport
    // covers the visible area.
    function setScrollTop(cm, val) {
        if (Math.abs(cm.doc.scrollTop - val) < 2) return;
        cm.doc.scrollTop = val;
        if (!gecko) updateDisplaySimple(cm, { top: val });
        if (cm.display.scroller.scrollTop != val) cm.display.scroller.scrollTop = val;
        cm.display.scrollbars.setScrollTop(val);
        if (gecko) updateDisplaySimple(cm);
        startWorker(cm, 100);
    }
    // Sync scroller and scrollbar, ensure the gutter elements are
    // aligned.
    function setScrollLeft(cm, val, isScroller) {
        if (isScroller ? val == cm.doc.scrollLeft : Math.abs(cm.doc.scrollLeft - val) < 2) return;
        val = Math.min(val, cm.display.scroller.scrollWidth - cm.display.scroller.clientWidth);
        cm.doc.scrollLeft = val;
        alignHorizontally(cm);
        if (cm.display.scroller.scrollLeft != val) cm.display.scroller.scrollLeft = val;
        cm.display.scrollbars.setScrollLeft(val);
    }

    // Since the delta values reported on mouse wheel events are
    // unstandardized between browsers and even browser versions, and
    // generally horribly unpredictable, this code starts by measuring
    // the scroll effect that the first few mouse wheel events have,
    // and, from that, detects the way it can convert deltas to pixel
    // offsets afterwards.
    //
    // The reason we want to know the amount a wheel event will scroll
    // is that it gives us a chance to update the display before the
    // actual scrolling happens, reducing flickering.

    var wheelSamples = 0, wheelPixelsPerUnit = null;
    // Fill in a browser-detected starting value on browsers where we
    // know one. These don't have to be accurate -- the result of them
    // being wrong would just be a slight flicker on the first wheel
    // scroll (if it is large enough).
    if (ie) wheelPixelsPerUnit = -.53;
    else if (gecko) wheelPixelsPerUnit = 15;
    else if (chrome) wheelPixelsPerUnit = -.7;
    else if (safari) wheelPixelsPerUnit = -1 / 3;

    var wheelEventDelta = function (e) {
        var dx = e.wheelDeltaX, dy = e.wheelDeltaY;
        if (dx == null && e.detail && e.axis == e.HORIZONTAL_AXIS) dx = e.detail;
        if (dy == null && e.detail && e.axis == e.VERTICAL_AXIS) dy = e.detail;
        else if (dy == null) dy = e.wheelDelta;
        return { x: dx, y: dy };
    };
    CodeMirror.wheelEventPixels = function (e) {
        var delta = wheelEventDelta(e);
        delta.x *= wheelPixelsPerUnit;
        delta.y *= wheelPixelsPerUnit;
        return delta;
    };

    function onScrollWheel(cm, e) {
        var delta = wheelEventDelta(e), dx = delta.x, dy = delta.y;

        var display = cm.display, scroll = display.scroller;
        // Quit if there's nothing to scroll here
        var canScrollX = scroll.scrollWidth > scroll.clientWidth;
        var canScrollY = scroll.scrollHeight > scroll.clientHeight;
        if (!(dx && canScrollX || dy && canScrollY)) return;

        // Webkit browsers on OS X abort momentum scrolls when the target
        // of the scroll event is removed from the scrollable element.
        // This hack (see related code in patchDisplay) makes sure the
        // element is kept around.
        if (dy && mac && webkit) {
            outer: for (var cur = e.target, view = display.view; cur != scroll; cur = cur.parentNode) {
                for (var i = 0; i < view.length; i++) {
                    if (view[i].node == cur) {
                        cm.display.currentWheelTarget = cur;
                        break outer;
                    }
                }
            }
        }

        // On some browsers, horizontal scrolling will cause redraws to
        // happen before the gutter has been realigned, causing it to
        // wriggle around in a most unseemly way. When we have an
        // estimated pixels/delta value, we just handle horizontal
        // scrolling entirely here. It'll be slightly off from native, but
        // better than glitching out.
        if (dx && !gecko && !presto && wheelPixelsPerUnit != null) {
            if (dy && canScrollY)
                setScrollTop(cm, Math.max(0, Math.min(scroll.scrollTop + dy * wheelPixelsPerUnit, scroll.scrollHeight - scroll.clientHeight)));
            setScrollLeft(cm, Math.max(0, Math.min(scroll.scrollLeft + dx * wheelPixelsPerUnit, scroll.scrollWidth - scroll.clientWidth)));
            // Only prevent default scrolling if vertical scrolling is
            // actually possible. Otherwise, it causes vertical scroll
            // jitter on OSX trackpads when deltaX is small and deltaY
            // is large (issue #3579)
            if (!dy || (dy && canScrollY))
                e_preventDefault(e);
            display.wheelStartX = null; // Abort measurement, if in progress
            return;
        }

        // 'Project' the visible viewport to cover the area that is being
        // scrolled into view (if we know enough to estimate it).
        if (dy && wheelPixelsPerUnit != null) {
            var pixels = dy * wheelPixelsPerUnit;
            var top = cm.doc.scrollTop, bot = top + display.wrapper.clientHeight;
            if (pixels < 0) top = Math.max(0, top + pixels - 50);
            else bot = Math.min(cm.doc.height, bot + pixels + 50);
            updateDisplaySimple(cm, { top: top, bottom: bot });
        }

        if (wheelSamples < 20) {
            if (display.wheelStartX == null) {
                display.wheelStartX = scroll.scrollLeft; display.wheelStartY = scroll.scrollTop;
                display.wheelDX = dx; display.wheelDY = dy;
                setTimeout(function () {
                    if (display.wheelStartX == null) return;
                    var movedX = scroll.scrollLeft - display.wheelStartX;
                    var movedY = scroll.scrollTop - display.wheelStartY;
                    var sample = (movedY && display.wheelDY && movedY / display.wheelDY) ||
                        (movedX && display.wheelDX && movedX / display.wheelDX);
                    display.wheelStartX = display.wheelStartY = null;
                    if (!sample) return;
                    wheelPixelsPerUnit = (wheelPixelsPerUnit * wheelSamples + sample) / (wheelSamples + 1);
                    ++wheelSamples;
                }, 200);
            } else {
                display.wheelDX += dx; display.wheelDY += dy;
            }
        }
    }

    // KEY EVENTS

    // Run a handler that was bound to a key.
    function doHandleBinding(cm, bound, dropShift) {
        if (typeof bound == "string") {
            bound = commands[bound];
            if (!bound) return false;
        }
        // Ensure previous input has been read, so that the handler sees a
        // consistent view of the document
        cm.display.input.ensurePolled();
        var prevShift = cm.display.shift, done = false;
        try {
            if (cm.isReadOnly()) cm.state.suppressEdits = true;
            if (dropShift) cm.display.shift = false;
            done = bound(cm) != Pass;
        } finally {
            cm.display.shift = prevShift;
            cm.state.suppressEdits = false;
        }
        return done;
    }

    function lookupKeyForEditor(cm, name, handle) {
        for (var i = 0; i < cm.state.keyMaps.length; i++) {
            var result = lookupKey(name, cm.state.keyMaps[i], handle, cm);
            if (result) return result;
        }
        return (cm.options.extraKeys && lookupKey(name, cm.options.extraKeys, handle, cm))
            || lookupKey(name, cm.options.keyMap, handle, cm);
    }

    var stopSeq = new Delayed;
    function dispatchKey(cm, name, e, handle) {
        var seq = cm.state.keySeq;
        if (seq) {
            if (isModifierKey(name)) return "handled";
            stopSeq.set(50, function () {
                if (cm.state.keySeq == seq) {
                    cm.state.keySeq = null;
                    cm.display.input.reset();
                }
            });
            name = seq + " " + name;
        }
        var result = lookupKeyForEditor(cm, name, handle);

        if (result == "multi")
            cm.state.keySeq = name;
        if (result == "handled")
            signalLater(cm, "keyHandled", cm, name, e);

        if (result == "handled" || result == "multi") {
            e_preventDefault(e);
            restartBlink(cm);
        }

        if (seq && !result && /\'$/.test(name)) {
            e_preventDefault(e);
            return true;
        }
        return !!result;
    }

    // Handle a key from the keydown event.
    function handleKeyBinding(cm, e) {
        var name = keyName(e, true);
        if (!name) return false;

        if (e.shiftKey && !cm.state.keySeq) {
            // First try to resolve full name (including 'Shift-'). Failing
            // that, see if there is a cursor-motion command (starting with
            // 'go') bound to the keyname without 'Shift-'.
            return dispatchKey(cm, "Shift-" + name, e, function (b) { return doHandleBinding(cm, b, true); })
                || dispatchKey(cm, name, e, function (b) {
                    if (typeof b == "string" ? /^go[A-Z]/.test(b) : b.motion)
                        return doHandleBinding(cm, b);
                });
        } else {
            return dispatchKey(cm, name, e, function (b) { return doHandleBinding(cm, b); });
        }
    }

    // Handle a key from the keypress event
    function handleCharBinding(cm, e, ch) {
        return dispatchKey(cm, "'" + ch + "'", e,
            function (b) { return doHandleBinding(cm, b, true); });
    }

    var lastStoppedKey = null;
    function onKeyDown(e) {
        var cm = this;
        cm.curOp.focus = activeElt();
        if (signalDOMEvent(cm, e)) return;
        // IE does strange things with escape.
        if (ie && ie_version < 11 && e.keyCode == 27) e.returnValue = false;
        var code = e.keyCode;
        cm.display.shift = code == 16 || e.shiftKey;
        var handled = handleKeyBinding(cm, e);
        if (presto) {
            lastStoppedKey = handled ? code : null;
            // Opera has no cut event... we try to at least catch the key combo
            if (!handled && code == 88 && !hasCopyEvent && (mac ? e.metaKey : e.ctrlKey))
                cm.replaceSelection("", null, "cut");
        }

        // Turn mouse into crosshair when Alt is held on Mac.
        if (code == 18 && !/\bCodeMirror-crosshair\b/.test(cm.display.lineDiv.className))
            showCrossHair(cm);
    }

    function showCrossHair(cm) {
        var lineDiv = cm.display.lineDiv;
        addClass(lineDiv, "CodeMirror-crosshair");

        function up(e) {
            if (e.keyCode == 18 || !e.altKey) {
                rmClass(lineDiv, "CodeMirror-crosshair");
                off(document, "keyup", up);
                off(document, "mouseover", up);
            }
        }
        on(document, "keyup", up);
        on(document, "mouseover", up);
    }

    function onKeyUp(e) {
        if (e.keyCode == 16) this.doc.sel.shift = false;
        signalDOMEvent(this, e);
    }

    function onKeyPress(e) {
        var cm = this;
        if (eventInWidget(cm.display, e) || signalDOMEvent(cm, e) || e.ctrlKey && !e.altKey || mac && e.metaKey) return;
        var keyCode = e.keyCode, charCode = e.charCode;
        if (presto && keyCode == lastStoppedKey) { lastStoppedKey = null; e_preventDefault(e); return; }
        if ((presto && (!e.which || e.which < 10)) && handleKeyBinding(cm, e)) return;
        var ch = String.fromCharCode(charCode == null ? keyCode : charCode);
        if (handleCharBinding(cm, e, ch)) return;
        cm.display.input.onKeyPress(e);
    }

    // FOCUS/BLUR EVENTS

    function delayBlurEvent(cm) {
        cm.state.delayingBlurEvent = true;
        setTimeout(function () {
            if (cm.state.delayingBlurEvent) {
                cm.state.delayingBlurEvent = false;
                onBlur(cm);
            }
        }, 100);
    }

    function onFocus(cm) {
        if (cm.state.delayingBlurEvent) cm.state.delayingBlurEvent = false;

        if (cm.options.readOnly == "nocursor") return;
        if (!cm.state.focused) {
            signal(cm, "focus", cm);
            cm.state.focused = true;
            addClass(cm.display.wrapper, "CodeMirror-focused");
            // This test prevents this from firing when a context
            // menu is closed (since the input reset would kill the
            // select-all detection hack)
            if (!cm.curOp && cm.display.selForContextMenu != cm.doc.sel) {
                cm.display.input.reset();
                if (webkit) setTimeout(function () { cm.display.input.reset(true); }, 20); // Issue #1730
            }
            cm.display.input.receivedFocus();
        }
        restartBlink(cm);
    }
    function onBlur(cm) {
        if (cm.state.delayingBlurEvent) return;

        if (cm.state.focused) {
            signal(cm, "blur", cm);
            cm.state.focused = false;
            rmClass(cm.display.wrapper, "CodeMirror-focused");
        }
        clearInterval(cm.display.blinker);
        setTimeout(function () { if (!cm.state.focused) cm.display.shift = false; }, 150);
    }

    // CONTEXT MENU HANDLING

    // To make the context menu work, we need to briefly unhide the
    // textarea (making it as unobtrusive as possible) to let the
    // right-click take effect on it.
    function onContextMenu(cm, e) {
        if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) return;
        if (signalDOMEvent(cm, e, "contextmenu")) return;
        cm.display.input.onContextMenu(e);
    }

    function contextMenuInGutter(cm, e) {
        if (!hasHandler(cm, "gutterContextMenu")) return false;
        return gutterEvent(cm, e, "gutterContextMenu", false);
    }

    // UPDATING

    // Compute the position of the end of a change (its 'to' property
    // refers to the pre-change end).
    var changeEnd = CodeMirror.changeEnd = function (change) {
        if (!change.text) return change.to;
        return Pos(change.from.line + change.text.length - 1,
            lst(change.text).length + (change.text.length == 1 ? change.from.ch : 0));
    };

    // Adjust a position to refer to the post-change position of the
    // same text, or the end of the change if the change covers it.
    function adjustForChange(pos, change) {
        if (cmp(pos, change.from) < 0) return pos;
        if (cmp(pos, change.to) <= 0) return changeEnd(change);

        var line = pos.line + change.text.length - (change.to.line - change.from.line) - 1, ch = pos.ch;
        if (pos.line == change.to.line) ch += changeEnd(change).ch - change.to.ch;
        return Pos(line, ch);
    }

    function computeSelAfterChange(doc, change) {
        var out = [];
        for (var i = 0; i < doc.sel.ranges.length; i++) {
            var range = doc.sel.ranges[i];
            out.push(new Range(adjustForChange(range.anchor, change),
                adjustForChange(range.head, change)));
        }
        return normalizeSelection(out, doc.sel.primIndex);
    }

    function offsetPos(pos, old, nw) {
        if (pos.line == old.line)
            return Pos(nw.line, pos.ch - old.ch + nw.ch);
        else
            return Pos(nw.line + (pos.line - old.line), pos.ch);
    }

    // Used by replaceSelections to allow moving the selection to the
    // start or around the replaced test. Hint may be "start" or "around".
    function computeReplacedSel(doc, changes, hint) {
        var out = [];
        var oldPrev = Pos(doc.first, 0), newPrev = oldPrev;
        for (var i = 0; i < changes.length; i++) {
            var change = changes[i];
            var from = offsetPos(change.from, oldPrev, newPrev);
            var to = offsetPos(changeEnd(change), oldPrev, newPrev);
            oldPrev = change.to;
            newPrev = to;
            if (hint == "around") {
                var range = doc.sel.ranges[i], inv = cmp(range.head, range.anchor) < 0;
                out[i] = new Range(inv ? to : from, inv ? from : to);
            } else {
                out[i] = new Range(from, from);
            }
        }
        return new Selection(out, doc.sel.primIndex);
    }

    // Allow "beforeChange" event handlers to influence a change
    function filterChange(doc, change, update) {
        var obj = {
            canceled: false,
            from: change.from,
            to: change.to,
            text: change.text,
            origin: change.origin,
            cancel: function () { this.canceled = true; }
        };
        if (update) obj.update = function (from, to, text, origin) {
            if (from) this.from = clipPos(doc, from);
            if (to) this.to = clipPos(doc, to);
            if (text) this.text = text;
            if (origin !== undefined) this.origin = origin;
        };
        signal(doc, "beforeChange", doc, obj);
        if (doc.cm) signal(doc.cm, "beforeChange", doc.cm, obj);

        if (obj.canceled) return null;
        return { from: obj.from, to: obj.to, text: obj.text, origin: obj.origin };
    }

    // Apply a change to a document, and add it to the document's
    // history, and propagating it to all linked documents.
    function makeChange(doc, change, ignoreReadOnly) {
        if (doc.cm) {
            if (!doc.cm.curOp) return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly);
            if (doc.cm.state.suppressEdits) return;
        }

        if (hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange")) {
            change = filterChange(doc, change, true);
            if (!change) return;
        }

        // Possibly split or suppress the update based on the presence
        // of read-only spans in its range.
        var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);
        if (split) {
            for (var i = split.length - 1; i >= 0; --i)
                makeChangeInner(doc, { from: split[i].from, to: split[i].to, text: i ? [""] : change.text });
        } else {
            makeChangeInner(doc, change);
        }
    }

    function makeChangeInner(doc, change) {
        if (change.text.length == 1 && change.text[0] == "" && cmp(change.from, change.to) == 0) return;
        var selAfter = computeSelAfterChange(doc, change);
        addChangeToHistory(doc, change, selAfter, doc.cm ? doc.cm.curOp.id : NaN);

        makeChangeSingleDoc(doc, change, selAfter, stretchSpansOverChange(doc, change));
        var rebased = [];

        linkedDocs(doc, function (doc, sharedHist) {
            if (!sharedHist && indexOf(rebased, doc.history) == -1) {
                rebaseHist(doc.history, change);
                rebased.push(doc.history);
            }
            makeChangeSingleDoc(doc, change, null, stretchSpansOverChange(doc, change));
        });
    }

    // Revert a change stored in a document's history.
    function makeChangeFromHistory(doc, type, allowSelectionOnly) {
        if (doc.cm && doc.cm.state.suppressEdits) return;

        var hist = doc.history, event, selAfter = doc.sel;
        var source = type == "undo" ? hist.done : hist.undone, dest = type == "undo" ? hist.undone : hist.done;

        // Verify that there is a useable event (so that ctrl-z won't
        // needlessly clear selection events)
        for (var i = 0; i < source.length; i++) {
            event = source[i];
            if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)
                break;
        }
        if (i == source.length) return;
        hist.lastOrigin = hist.lastSelOrigin = null;

        for (; ;) {
            event = source.pop();
            if (event.ranges) {
                pushSelectionToHistory(event, dest);
                if (allowSelectionOnly && !event.equals(doc.sel)) {
                    setSelection(doc, event, { clearRedo: false });
                    return;
                }
                selAfter = event;
            }
            else break;
        }

        // Build up a reverse change object to add to the opposite history
        // stack (redo when undoing, and vice versa).
        var antiChanges = [];
        pushSelectionToHistory(selAfter, dest);
        dest.push({ changes: antiChanges, generation: hist.generation });
        hist.generation = event.generation || ++hist.maxGeneration;

        var filter = hasHandler(doc, "beforeChange") || doc.cm && hasHandler(doc.cm, "beforeChange");

        for (var i = event.changes.length - 1; i >= 0; --i) {
            var change = event.changes[i];
            change.origin = type;
            if (filter && !filterChange(doc, change, false)) {
                source.length = 0;
                return;
            }

            antiChanges.push(historyChangeFromChange(doc, change));

            var after = i ? computeSelAfterChange(doc, change) : lst(source);
            makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));
            if (!i && doc.cm) doc.cm.scrollIntoView({ from: change.from, to: changeEnd(change) });
            var rebased = [];

            // Propagate to the linked documents
            linkedDocs(doc, function (doc, sharedHist) {
                if (!sharedHist && indexOf(rebased, doc.history) == -1) {
                    rebaseHist(doc.history, change);
                    rebased.push(doc.history);
                }
                makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));
            });
        }
    }

    // Sub-views need their line numbers shifted when text is added
    // above or below them in the parent document.
    function shiftDoc(doc, distance) {
        if (distance == 0) return;
        doc.first += distance;
        doc.sel = new Selection(map(doc.sel.ranges, function (range) {
            return new Range(Pos(range.anchor.line + distance, range.anchor.ch),
                Pos(range.head.line + distance, range.head.ch));
        }), doc.sel.primIndex);
        if (doc.cm) {
            regChange(doc.cm, doc.first, doc.first - distance, distance);
            for (var d = doc.cm.display, l = d.viewFrom; l < d.viewTo; l++)
                regLineChange(doc.cm, l, "gutter");
        }
    }

    // More lower-level change function, handling only a single document
    // (not linked ones).
    function makeChangeSingleDoc(doc, change, selAfter, spans) {
        if (doc.cm && !doc.cm.curOp)
            return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);

        if (change.to.line < doc.first) {
            shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));
            return;
        }
        if (change.from.line > doc.lastLine()) return;

        // Clip the change to the size of this doc
        if (change.from.line < doc.first) {
            var shift = change.text.length - 1 - (doc.first - change.from.line);
            shiftDoc(doc, shift);
            change = {
                from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),
                text: [lst(change.text)], origin: change.origin
            };
        }
        var last = doc.lastLine();
        if (change.to.line > last) {
            change = {
                from: change.from, to: Pos(last, getLine(doc, last).text.length),
                text: [change.text[0]], origin: change.origin
            };
        }

        change.removed = getBetween(doc, change.from, change.to);

        if (!selAfter) selAfter = computeSelAfterChange(doc, change);
        if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);
        else updateDoc(doc, change, spans);
        setSelectionNoUndo(doc, selAfter, sel_dontScroll);
    }

    // Handle the interaction of a change to a document with the editor
    // that this document is part of.
    function makeChangeSingleDocInEditor(cm, change, spans) {
        var doc = cm.doc, display = cm.display, from = change.from, to = change.to;

        var recomputeMaxLength = false, checkWidthStart = from.line;
        if (!cm.options.lineWrapping) {
            checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));
            doc.iter(checkWidthStart, to.line + 1, function (line) {
                if (line == display.maxLine) {
                    recomputeMaxLength = true;
                    return true;
                }
            });
        }

        if (doc.sel.contains(change.from, change.to) > -1)
            signalCursorActivity(cm);

        updateDoc(doc, change, spans, estimateHeight(cm));

        if (!cm.options.lineWrapping) {
            doc.iter(checkWidthStart, from.line + change.text.length, function (line) {
                var len = lineLength(line);
                if (len > display.maxLineLength) {
                    display.maxLine = line;
                    display.maxLineLength = len;
                    display.maxLineChanged = true;
                    recomputeMaxLength = false;
                }
            });
            if (recomputeMaxLength) cm.curOp.updateMaxLine = true;
        }

        // Adjust frontier, schedule worker
        doc.frontier = Math.min(doc.frontier, from.line);
        startWorker(cm, 400);

        var lendiff = change.text.length - (to.line - from.line) - 1;
        // Remember that these lines changed, for updating the display
        if (change.full)
            regChange(cm);
        else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))
            regLineChange(cm, from.line, "text");
        else
            regChange(cm, from.line, to.line + 1, lendiff);

        var changesHandler = hasHandler(cm, "changes"), changeHandler = hasHandler(cm, "change");
        if (changeHandler || changesHandler) {
            var obj = {
                from: from, to: to,
                text: change.text,
                removed: change.removed,
                origin: change.origin
            };
            if (changeHandler) signalLater(cm, "change", cm, obj);
            if (changesHandler) (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj);
        }
        cm.display.selForContextMenu = null;
    }

    function replaceRange(doc, code, from, to, origin) {
        if (!to) to = from;
        if (cmp(to, from) < 0) { var tmp = to; to = from; from = tmp; }
        if (typeof code == "string") code = doc.splitLines(code);
        makeChange(doc, { from: from, to: to, text: code, origin: origin });
    }

    // SCROLLING THINGS INTO VIEW

    // If an editor sits on the top or bottom of the window, partially
    // scrolled out of view, this ensures that the cursor is visible.
    function maybeScrollWindow(cm, coords) {
        if (signalDOMEvent(cm, "scrollCursorIntoView")) return;

        var display = cm.display, box = display.sizer.getBoundingClientRect(), doScroll = null;
        if (coords.top + box.top < 0) doScroll = true;
        else if (coords.bottom + box.top > (window.innerHeight || document.documentElement.clientHeight)) doScroll = false;
        if (doScroll != null && !phantom) {
            var scrollNode = elt("div", "\u200b", null, "position: absolute; top: " +
                (coords.top - display.viewOffset - paddingTop(cm.display)) + "px; height: " +
                (coords.bottom - coords.top + scrollGap(cm) + display.barHeight) + "px; left: " +
                coords.left + "px; width: 2px;");
            cm.display.lineSpace.appendChild(scrollNode);
            scrollNode.scrollIntoView(doScroll);
            cm.display.lineSpace.removeChild(scrollNode);
        }
    }

    // Scroll a given position into view (immediately), verifying that
    // it actually became visible (as line heights are accurately
    // measured, the position of something may 'drift' during drawing).
    function scrollPosIntoView(cm, pos, end, margin) {
        if (margin == null) margin = 0;
        for (var limit = 0; limit < 5; limit++) {
            var changed = false, coords = cursorCoords(cm, pos);
            var endCoords = !end || end == pos ? coords : cursorCoords(cm, end);
            var scrollPos = calculateScrollPos(cm, Math.min(coords.left, endCoords.left),
                Math.min(coords.top, endCoords.top) - margin,
                Math.max(coords.left, endCoords.left),
                Math.max(coords.bottom, endCoords.bottom) + margin);
            var startTop = cm.doc.scrollTop, startLeft = cm.doc.scrollLeft;
            if (scrollPos.scrollTop != null) {
                setScrollTop(cm, scrollPos.scrollTop);
                if (Math.abs(cm.doc.scrollTop - startTop) > 1) changed = true;
            }
            if (scrollPos.scrollLeft != null) {
                setScrollLeft(cm, scrollPos.scrollLeft);
                if (Math.abs(cm.doc.scrollLeft - startLeft) > 1) changed = true;
            }
            if (!changed) break;
        }
        return coords;
    }

    // Scroll a given set of coordinates into view (immediately).
    function scrollIntoView(cm, x1, y1, x2, y2) {
        var scrollPos = calculateScrollPos(cm, x1, y1, x2, y2);
        if (scrollPos.scrollTop != null) setScrollTop(cm, scrollPos.scrollTop);
        if (scrollPos.scrollLeft != null) setScrollLeft(cm, scrollPos.scrollLeft);
    }

    // Calculate a new scroll position needed to scroll the given
    // rectangle into view. Returns an object with scrollTop and
    // scrollLeft properties. When these are undefined, the
    // vertical/horizontal position does not need to be adjusted.
    function calculateScrollPos(cm, x1, y1, x2, y2) {
        var display = cm.display, snapMargin = textHeight(cm.display);
        if (y1 < 0) y1 = 0;
        var screentop = cm.curOp && cm.curOp.scrollTop != null ? cm.curOp.scrollTop : display.scroller.scrollTop;
        var screen = displayHeight(cm), result = {};
        if (y2 - y1 > screen) y2 = y1 + screen;
        var docBottom = cm.doc.height + paddingVert(display);
        var atTop = y1 < snapMargin, atBottom = y2 > docBottom - snapMargin;
        if (y1 < screentop) {
            result.scrollTop = atTop ? 0 : y1;
        } else if (y2 > screentop + screen) {
            var newTop = Math.min(y1, (atBottom ? docBottom : y2) - screen);
            if (newTop != screentop) result.scrollTop = newTop;
        }

        var screenleft = cm.curOp && cm.curOp.scrollLeft != null ? cm.curOp.scrollLeft : display.scroller.scrollLeft;
        var screenw = displayWidth(cm) - (cm.options.fixedGutter ? display.gutters.offsetWidth : 0);
        var tooWide = x2 - x1 > screenw;
        if (tooWide) x2 = x1 + screenw;
        if (x1 < 10)
            result.scrollLeft = 0;
        else if (x1 < screenleft)
            result.scrollLeft = Math.max(0, x1 - (tooWide ? 0 : 10));
        else if (x2 > screenw + screenleft - 3)
            result.scrollLeft = x2 + (tooWide ? 0 : 10) - screenw;
        return result;
    }

    // Store a relative adjustment to the scroll position in the current
    // operation (to be applied when the operation finishes).
    function addToScrollPos(cm, left, top) {
        if (left != null || top != null) resolveScrollToPos(cm);
        if (left != null)
            cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;
        if (top != null)
            cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;
    }

    // Make sure that at the end of the operation the current cursor is
    // shown.
    function ensureCursorVisible(cm) {
        resolveScrollToPos(cm);
        var cur = cm.getCursor(), from = cur, to = cur;
        if (!cm.options.lineWrapping) {
            from = cur.ch ? Pos(cur.line, cur.ch - 1) : cur;
            to = Pos(cur.line, cur.ch + 1);
        }
        cm.curOp.scrollToPos = { from: from, to: to, margin: cm.options.cursorScrollMargin, isCursor: true };
    }

    // When an operation has its scrollToPos property set, and another
    // scroll action is applied before the end of the operation, this
    // 'simulates' scrolling that position into view in a cheap way, so
    // that the effect of intermediate scroll commands is not ignored.
    function resolveScrollToPos(cm) {
        var range = cm.curOp.scrollToPos;
        if (range) {
            cm.curOp.scrollToPos = null;
            var from = estimateCoords(cm, range.from), to = estimateCoords(cm, range.to);
            var sPos = calculateScrollPos(cm, Math.min(from.left, to.left),
                Math.min(from.top, to.top) - range.margin,
                Math.max(from.right, to.right),
                Math.max(from.bottom, to.bottom) + range.margin);
            cm.scrollTo(sPos.scrollLeft, sPos.scrollTop);
        }
    }

    // API UTILITIES

    // Indent the given line. The how parameter can be "smart",
    // "add"/null, "subtract", or "prev". When aggressive is false
    // (typically set to true for forced single-line indents), empty
    // lines are not indented, and places where the mode returns Pass
    // are left alone.
    function indentLine(cm, n, how, aggressive) {
        var doc = cm.doc, state;
        if (how == null) how = "add";
        if (how == "smart") {
            // Fall back to "prev" when the mode doesn't have an indentation
            // method.
            if (!doc.mode.indent) how = "prev";
            else state = getStateBefore(cm, n);
        }

        var tabSize = cm.options.tabSize;
        var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);
        if (line.stateAfter) line.stateAfter = null;
        var curSpaceString = line.text.match(/^\s*/)[0], indentation;
        if (!aggressive && !/\S/.test(line.text)) {
            indentation = 0;
            how = "not";
        } else if (how == "smart") {
            indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);
            if (indentation == Pass || indentation > 150) {
                if (!aggressive) return;
                how = "prev";
            }
        }
        if (how == "prev") {
            if (n > doc.first) indentation = countColumn(getLine(doc, n - 1).text, null, tabSize);
            else indentation = 0;
        } else if (how == "add") {
            indentation = curSpace + cm.options.indentUnit;
        } else if (how == "subtract") {
            indentation = curSpace - cm.options.indentUnit;
        } else if (typeof how == "number") {
            indentation = curSpace + how;
        }
        indentation = Math.max(0, indentation);

        var indentString = "", pos = 0;
        if (cm.options.indentWithTabs)
            for (var i = Math.floor(indentation / tabSize); i; --i) { pos += tabSize; indentString += "\t"; }
        if (pos < indentation) indentString += spaceStr(indentation - pos);

        if (indentString != curSpaceString) {
            replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), "+input");
            line.stateAfter = null;
            return true;
        } else {
            // Ensure that, if the cursor was in the whitespace at the start
            // of the line, it is moved to the end of that space.
            for (var i = 0; i < doc.sel.ranges.length; i++) {
                var range = doc.sel.ranges[i];
                if (range.head.line == n && range.head.ch < curSpaceString.length) {
                    var pos = Pos(n, curSpaceString.length);
                    replaceOneSelection(doc, i, new Range(pos, pos));
                    break;
                }
            }
        }
    }

    // Utility for applying a change to a line by handle or number,
    // returning the number and optionally registering the line as
    // changed.
    function changeLine(doc, handle, changeType, op) {
        var no = handle, line = handle;
        if (typeof handle == "number") line = getLine(doc, clipLine(doc, handle));
        else no = lineNo(handle);
        if (no == null) return null;
        if (op(line, no) && doc.cm) regLineChange(doc.cm, no, changeType);
        return line;
    }

    // Helper for deleting text near the selection(s), used to implement
    // backspace, delete, and similar functionality.
    function deleteNearSelection(cm, compute) {
        var ranges = cm.doc.sel.ranges, kill = [];
        // Build up a set of ranges to kill first, merging overlapping
        // ranges.
        for (var i = 0; i < ranges.length; i++) {
            var toKill = compute(ranges[i]);
            while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {
                var replaced = kill.pop();
                if (cmp(replaced.from, toKill.from) < 0) {
                    toKill.from = replaced.from;
                    break;
                }
            }
            kill.push(toKill);
        }
        // Next, remove those actual ranges.
        runInOp(cm, function () {
            for (var i = kill.length - 1; i >= 0; i--)
                replaceRange(cm.doc, "", kill[i].from, kill[i].to, "+delete");
            ensureCursorVisible(cm);
        });
    }

    // Used for horizontal relative motion. Dir is -1 or 1 (left or
    // right), unit can be "char", "column" (like char, but doesn't
    // cross line boundaries), "word" (across next word), or "group" (to
    // the start of next group of word or non-word-non-whitespace
    // chars). The visually param controls whether, in right-to-left
    // text, direction 1 means to move towards the next index in the
    // string, or towards the character to the right of the current
    // position. The resulting position will have a hitSide=true
    // property if it reached the end of the document.
    function findPosH(doc, pos, dir, unit, visually) {
        var line = pos.line, ch = pos.ch, origDir = dir;
        var lineObj = getLine(doc, line);
        function findNextLine() {
            var l = line + dir;
            if (l < doc.first || l >= doc.first + doc.size) return false
            line = l;
            return lineObj = getLine(doc, l);
        }
        function moveOnce(boundToLine) {
            var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true);
            if (next == null) {
                if (!boundToLine && findNextLine()) {
                    if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj);
                    else ch = dir < 0 ? lineObj.text.length : 0;
                } else return false
            } else ch = next;
            return true;
        }

        if (unit == "char") {
            moveOnce()
        } else if (unit == "column") {
            moveOnce(true)
        } else if (unit == "word" || unit == "group") {
            var sawType = null, group = unit == "group";
            var helper = doc.cm && doc.cm.getHelper(pos, "wordChars");
            for (var first = true; ; first = false) {
                if (dir < 0 && !moveOnce(!first)) break;
                var cur = lineObj.text.charAt(ch) || "\n";
                var type = isWordChar(cur, helper) ? "w"
                    : group && cur == "\n" ? "n"
                        : !group || /\s/.test(cur) ? null
                            : "p";
                if (group && !first && !type) type = "s";
                if (sawType && sawType != type) {
                    if (dir < 0) { dir = 1; moveOnce(); }
                    break;
                }

                if (type) sawType = type;
                if (dir > 0 && !moveOnce(!first)) break;
            }
        }
        var result = skipAtomic(doc, Pos(line, ch), pos, origDir, true);
        if (!cmp(pos, result)) result.hitSide = true;
        return result;
    }

    // For relative vertical movement. Dir may be -1 or 1. Unit can be
    // "page" or "line". The resulting position will have a hitSide=true
    // property if it reached the end of the document.
    function findPosV(cm, pos, dir, unit) {
        var doc = cm.doc, x = pos.left, y;
        if (unit == "page") {
            var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);
            y = pos.top + dir * (pageSize - (dir < 0 ? 1.5 : .5) * textHeight(cm.display));
        } else if (unit == "line") {
            y = dir > 0 ? pos.bottom + 3 : pos.top - 3;
        }
        for (; ;) {
            var target = coordsChar(cm, x, y);
            if (!target.outside) break;
            if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break; }
            y += dir * 5;
        }
        return target;
    }

    // EDITOR METHODS

    // The publicly visible API. Note that methodOp(f) means
    // 'wrap f in an operation, performed on its `this` parameter'.

    // This is not the complete set of editor methods. Most of the
    // methods defined on the Doc type are also injected into
    // CodeMirror.prototype, for backwards compatibility and
    // convenience.

    CodeMirror.prototype = {
        constructor: CodeMirror,
        focus: function () { window.focus(); this.display.input.focus(); },

        setOption: function (option, value) {
            var options = this.options, old = options[option];
            if (options[option] == value && option != "mode") return;
            options[option] = value;
            if (optionHandlers.hasOwnProperty(option))
                operation(this, optionHandlers[option])(this, value, old);
        },

        getOption: function (option) { return this.options[option]; },
        getDoc: function () { return this.doc; },

        addKeyMap: function (map, bottom) {
            this.state.keyMaps[bottom ? "push" : "unshift"](getKeyMap(map));
        },
        removeKeyMap: function (map) {
            var maps = this.state.keyMaps;
            for (var i = 0; i < maps.length; ++i)
                if (maps[i] == map || maps[i].name == map) {
                    maps.splice(i, 1);
                    return true;
                }
        },

        addOverlay: methodOp(function (spec, options) {
            var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);
            if (mode.startState) throw new Error("Overlays may not be stateful.");
            this.state.overlays.push({ mode: mode, modeSpec: spec, opaque: options && options.opaque });
            this.state.modeGen++;
            regChange(this);
        }),
        removeOverlay: methodOp(function (spec) {
            var overlays = this.state.overlays;
            for (var i = 0; i < overlays.length; ++i) {
                var cur = overlays[i].modeSpec;
                if (cur == spec || typeof spec == "string" && cur.name == spec) {
                    overlays.splice(i, 1);
                    this.state.modeGen++;
                    regChange(this);
                    return;
                }
            }
        }),

        indentLine: methodOp(function (n, dir, aggressive) {
            if (typeof dir != "string" && typeof dir != "number") {
                if (dir == null) dir = this.options.smartIndent ? "smart" : "prev";
                else dir = dir ? "add" : "subtract";
            }
            if (isLine(this.doc, n)) indentLine(this, n, dir, aggressive);
        }),
        indentSelection: methodOp(function (how) {
            var ranges = this.doc.sel.ranges, end = -1;
            for (var i = 0; i < ranges.length; i++) {
                var range = ranges[i];
                if (!range.empty()) {
                    var from = range.from(), to = range.to();
                    var start = Math.max(end, from.line);
                    end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;
                    for (var j = start; j < end; ++j)
                        indentLine(this, j, how);
                    var newRanges = this.doc.sel.ranges;
                    if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)
                        replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll);
                } else if (range.head.line > end) {
                    indentLine(this, range.head.line, how, true);
                    end = range.head.line;
                    if (i == this.doc.sel.primIndex) ensureCursorVisible(this);
                }
            }
        }),

        // Fetch the parser token for a given character. Useful for hacks
        // that want to inspect the mode state (say, for completion).
        getTokenAt: function (pos, precise) {
            return takeToken(this, pos, precise);
        },

        getLineTokens: function (line, precise) {
            return takeToken(this, Pos(line), precise, true);
        },

        getTokenTypeAt: function (pos) {
            pos = clipPos(this.doc, pos);
            var styles = getLineStyles(this, getLine(this.doc, pos.line));
            var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;
            var type;
            if (ch == 0) type = styles[2];
            else for (; ;) {
                var mid = (before + after) >> 1;
                if ((mid ? styles[mid * 2 - 1] : 0) >= ch) after = mid;
                else if (styles[mid * 2 + 1] < ch) before = mid + 1;
                else { type = styles[mid * 2 + 2]; break; }
            }
            var cut = type ? type.indexOf("cm-overlay ") : -1;
            return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1);
        },

        getModeAt: function (pos) {
            var mode = this.doc.mode;
            if (!mode.innerMode) return mode;
            return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode;
        },

        getHelper: function (pos, type) {
            return this.getHelpers(pos, type)[0];
        },

        getHelpers: function (pos, type) {
            var found = [];
            if (!helpers.hasOwnProperty(type)) return found;
            var help = helpers[type], mode = this.getModeAt(pos);
            if (typeof mode[type] == "string") {
                if (help[mode[type]]) found.push(help[mode[type]]);
            } else if (mode[type]) {
                for (var i = 0; i < mode[type].length; i++) {
                    var val = help[mode[type][i]];
                    if (val) found.push(val);
                }
            } else if (mode.helperType && help[mode.helperType]) {
                found.push(help[mode.helperType]);
            } else if (help[mode.name]) {
                found.push(help[mode.name]);
            }
            for (var i = 0; i < help._global.length; i++) {
                var cur = help._global[i];
                if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)
                    found.push(cur.val);
            }
            return found;
        },

        getStateAfter: function (line, precise) {
            var doc = this.doc;
            line = clipLine(doc, line == null ? doc.first + doc.size - 1 : line);
            return getStateBefore(this, line + 1, precise);
        },

        cursorCoords: function (start, mode) {
            var pos, range = this.doc.sel.primary();
            if (start == null) pos = range.head;
            else if (typeof start == "object") pos = clipPos(this.doc, start);
            else pos = start ? range.from() : range.to();
            return cursorCoords(this, pos, mode || "page");
        },

        charCoords: function (pos, mode) {
            return charCoords(this, clipPos(this.doc, pos), mode || "page");
        },

        coordsChar: function (coords, mode) {
            coords = fromCoordSystem(this, coords, mode || "page");
            return coordsChar(this, coords.left, coords.top);
        },

        lineAtHeight: function (height, mode) {
            height = fromCoordSystem(this, { top: height, left: 0 }, mode || "page").top;
            return lineAtHeight(this.doc, height + this.display.viewOffset);
        },
        heightAtLine: function (line, mode) {
            var end = false, lineObj;
            if (typeof line == "number") {
                var last = this.doc.first + this.doc.size - 1;
                if (line < this.doc.first) line = this.doc.first;
                else if (line > last) { line = last; end = true; }
                lineObj = getLine(this.doc, line);
            } else {
                lineObj = line;
            }
            return intoCoordSystem(this, lineObj, { top: 0, left: 0 }, mode || "page").top +
                (end ? this.doc.height - heightAtLine(lineObj) : 0);
        },

        defaultTextHeight: function () { return textHeight(this.display); },
        defaultCharWidth: function () { return charWidth(this.display); },

        setGutterMarker: methodOp(function (line, gutterID, value) {
            return changeLine(this.doc, line, "gutter", function (line) {
                var markers = line.gutterMarkers || (line.gutterMarkers = {});
                markers[gutterID] = value;
                if (!value && isEmpty(markers)) line.gutterMarkers = null;
                return true;
            });
        }),

        clearGutter: methodOp(function (gutterID) {
            var cm = this, doc = cm.doc, i = doc.first;
            doc.iter(function (line) {
                if (line.gutterMarkers && line.gutterMarkers[gutterID]) {
                    line.gutterMarkers[gutterID] = null;
                    regLineChange(cm, i, "gutter");
                    if (isEmpty(line.gutterMarkers)) line.gutterMarkers = null;
                }
                ++i;
            });
        }),

        lineInfo: function (line) {
            if (typeof line == "number") {
                if (!isLine(this.doc, line)) return null;
                var n = line;
                line = getLine(this.doc, line);
                if (!line) return null;
            } else {
                var n = lineNo(line);
                if (n == null) return null;
            }
            return {
                line: n, handle: line, text: line.text, gutterMarkers: line.gutterMarkers,
                textClass: line.textClass, bgClass: line.bgClass, wrapClass: line.wrapClass,
                widgets: line.widgets
            };
        },

        getViewport: function () { return { from: this.display.viewFrom, to: this.display.viewTo }; },

        addWidget: function (pos, node, scroll, vert, horiz) {
            var display = this.display;
            pos = cursorCoords(this, clipPos(this.doc, pos));
            var top = pos.bottom, left = pos.left;
            node.style.position = "absolute";
            node.setAttribute("cm-ignore-events", "true");
            this.display.input.setUneditable(node);
            display.sizer.appendChild(node);
            if (vert == "over") {
                top = pos.top;
            } else if (vert == "above" || vert == "near") {
                var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),
                    hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);
                // Default to positioning above (if specified and possible); otherwise default to positioning below
                if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)
                    top = pos.top - node.offsetHeight;
                else if (pos.bottom + node.offsetHeight <= vspace)
                    top = pos.bottom;
                if (left + node.offsetWidth > hspace)
                    left = hspace - node.offsetWidth;
            }
            node.style.top = top + "px";
            node.style.left = node.style.right = "";
            if (horiz == "right") {
                left = display.sizer.clientWidth - node.offsetWidth;
                node.style.right = "0px";
            } else {
                if (horiz == "left") left = 0;
                else if (horiz == "middle") left = (display.sizer.clientWidth - node.offsetWidth) / 2;
                node.style.left = left + "px";
            }
            if (scroll)
                scrollIntoView(this, left, top, left + node.offsetWidth, top + node.offsetHeight);
        },

        triggerOnKeyDown: methodOp(onKeyDown),
        triggerOnKeyPress: methodOp(onKeyPress),
        triggerOnKeyUp: onKeyUp,

        execCommand: function (cmd) {
            if (commands.hasOwnProperty(cmd))
                return commands[cmd].call(null, this);
        },

        triggerElectric: methodOp(function (text) { triggerElectric(this, text); }),

        findPosH: function (from, amount, unit, visually) {
            var dir = 1;
            if (amount < 0) { dir = -1; amount = -amount; }
            for (var i = 0, cur = clipPos(this.doc, from); i < amount; ++i) {
                cur = findPosH(this.doc, cur, dir, unit, visually);
                if (cur.hitSide) break;
            }
            return cur;
        },

        moveH: methodOp(function (dir, unit) {
            var cm = this;
            cm.extendSelectionsBy(function (range) {
                if (cm.display.shift || cm.doc.extend || range.empty())
                    return findPosH(cm.doc, range.head, dir, unit, cm.options.rtlMoveVisually);
                else
                    return dir < 0 ? range.from() : range.to();
            }, sel_move);
        }),

        deleteH: methodOp(function (dir, unit) {
            var sel = this.doc.sel, doc = this.doc;
            if (sel.somethingSelected())
                doc.replaceSelection("", null, "+delete");
            else
                deleteNearSelection(this, function (range) {
                    var other = findPosH(doc, range.head, dir, unit, false);
                    return dir < 0 ? { from: other, to: range.head } : { from: range.head, to: other };
                });
        }),

        findPosV: function (from, amount, unit, goalColumn) {
            var dir = 1, x = goalColumn;
            if (amount < 0) { dir = -1; amount = -amount; }
            for (var i = 0, cur = clipPos(this.doc, from); i < amount; ++i) {
                var coords = cursorCoords(this, cur, "div");
                if (x == null) x = coords.left;
                else coords.left = x;
                cur = findPosV(this, coords, dir, unit);
                if (cur.hitSide) break;
            }
            return cur;
        },

        moveV: methodOp(function (dir, unit) {
            var cm = this, doc = this.doc, goals = [];
            var collapse = !cm.display.shift && !doc.extend && doc.sel.somethingSelected();
            doc.extendSelectionsBy(function (range) {
                if (collapse)
                    return dir < 0 ? range.from() : range.to();
                var headPos = cursorCoords(cm, range.head, "div");
                if (range.goalColumn != null) headPos.left = range.goalColumn;
                goals.push(headPos.left);
                var pos = findPosV(cm, headPos, dir, unit);
                if (unit == "page" && range == doc.sel.primary())
                    addToScrollPos(cm, null, charCoords(cm, pos, "div").top - headPos.top);
                return pos;
            }, sel_move);
            if (goals.length) for (var i = 0; i < doc.sel.ranges.length; i++)
                doc.sel.ranges[i].goalColumn = goals[i];
        }),

        // Find the word at the given position (as returned by coordsChar).
        findWordAt: function (pos) {
            var doc = this.doc, line = getLine(doc, pos.line).text;
            var start = pos.ch, end = pos.ch;
            if (line) {
                var helper = this.getHelper(pos, "wordChars");
                if ((pos.xRel < 0 || end == line.length) && start)--start; else ++end;
                var startChar = line.charAt(start);
                var check = isWordChar(startChar, helper)
                    ? function (ch) { return isWordChar(ch, helper); }
                    : /\s/.test(startChar) ? function (ch) { return /\s/.test(ch); }
                        : function (ch) { return !/\s/.test(ch) && !isWordChar(ch); };
                while (start > 0 && check(line.charAt(start - 1)))--start;
                while (end < line.length && check(line.charAt(end)))++end;
            }
            return new Range(Pos(pos.line, start), Pos(pos.line, end));
        },

        toggleOverwrite: function (value) {
            if (value != null && value == this.state.overwrite) return;
            if (this.state.overwrite = !this.state.overwrite)
                addClass(this.display.cursorDiv, "CodeMirror-overwrite");
            else
                rmClass(this.display.cursorDiv, "CodeMirror-overwrite");

            signal(this, "overwriteToggle", this, this.state.overwrite);
        },
        hasFocus: function () { return this.display.input.getField() == activeElt(); },
        isReadOnly: function () { return !!(this.options.readOnly || this.doc.cantEdit); },

        scrollTo: methodOp(function (x, y) {
            if (x != null || y != null) resolveScrollToPos(this);
            if (x != null) this.curOp.scrollLeft = x;
            if (y != null) this.curOp.scrollTop = y;
        }),
        getScrollInfo: function () {
            var scroller = this.display.scroller;
            return {
                left: scroller.scrollLeft, top: scroller.scrollTop,
                height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,
                width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,
                clientHeight: displayHeight(this), clientWidth: displayWidth(this)
            };
        },

        scrollIntoView: methodOp(function (range, margin) {
            if (range == null) {
                range = { from: this.doc.sel.primary().head, to: null };
                if (margin == null) margin = this.options.cursorScrollMargin;
            } else if (typeof range == "number") {
                range = { from: Pos(range, 0), to: null };
            } else if (range.from == null) {
                range = { from: range, to: null };
            }
            if (!range.to) range.to = range.from;
            range.margin = margin || 0;

            if (range.from.line != null) {
                resolveScrollToPos(this);
                this.curOp.scrollToPos = range;
            } else {
                var sPos = calculateScrollPos(this, Math.min(range.from.left, range.to.left),
                    Math.min(range.from.top, range.to.top) - range.margin,
                    Math.max(range.from.right, range.to.right),
                    Math.max(range.from.bottom, range.to.bottom) + range.margin);
                this.scrollTo(sPos.scrollLeft, sPos.scrollTop);
            }
        }),

        setSize: methodOp(function (width, height) {
            var cm = this;
            function interpret(val) {
                return typeof val == "number" || /^\d+$/.test(String(val)) ? val + "px" : val;
            }
            if (width != null) cm.display.wrapper.style.width = interpret(width);
            if (height != null) cm.display.wrapper.style.height = interpret(height);
            if (cm.options.lineWrapping) clearLineMeasurementCache(this);
            var lineNo = cm.display.viewFrom;
            cm.doc.iter(lineNo, cm.display.viewTo, function (line) {
                if (line.widgets) for (var i = 0; i < line.widgets.length; i++)
                    if (line.widgets[i].noHScroll) { regLineChange(cm, lineNo, "widget"); break; }
                ++lineNo;
            });
            cm.curOp.forceUpdate = true;
            signal(cm, "refresh", this);
        }),

        operation: function (f) { return runInOp(this, f); },

        refresh: methodOp(function () {
            var oldHeight = this.display.cachedTextHeight;
            regChange(this);
            this.curOp.forceUpdate = true;
            clearCaches(this);
            this.scrollTo(this.doc.scrollLeft, this.doc.scrollTop);
            updateGutterSpace(this);
            if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)
                estimateLineHeights(this);
            signal(this, "refresh", this);
        }),

        swapDoc: methodOp(function (doc) {
            var old = this.doc;
            old.cm = null;
            attachDoc(this, doc);
            clearCaches(this);
            this.display.input.reset();
            this.scrollTo(doc.scrollLeft, doc.scrollTop);
            this.curOp.forceScroll = true;
            signalLater(this, "swapDoc", this, old);
            return old;
        }),

        getInputField: function () { return this.display.input.getField(); },
        getWrapperElement: function () { return this.display.wrapper; },
        getScrollerElement: function () { return this.display.scroller; },
        getGutterElement: function () { return this.display.gutters; }
    };
    eventMixin(CodeMirror);

    // OPTION DEFAULTS

    // The default configuration options.
    var defaults = CodeMirror.defaults = {};
    // Functions to run when options are changed.
    var optionHandlers = CodeMirror.optionHandlers = {};

    function option(name, deflt, handle, notOnInit) {
        CodeMirror.defaults[name] = deflt;
        if (handle) optionHandlers[name] =
            notOnInit ? function (cm, val, old) { if (old != Init) handle(cm, val, old); } : handle;
    }

    // Passed to option handlers when there is no old value.
    var Init = CodeMirror.Init = { toString: function () { return "CodeMirror.Init"; } };

    // These two are, on init, called from the constructor because they
    // have to be initialized before the editor can start at all.
    option("value", "", function (cm, val) {
        cm.setValue(val);
    }, true);
    option("mode", null, function (cm, val) {
        cm.doc.modeOption = val;
        loadMode(cm);
    }, true);

    option("indentUnit", 2, loadMode, true);
    option("indentWithTabs", false);
    option("smartIndent", true);
    option("tabSize", 4, function (cm) {
        resetModeState(cm);
        clearCaches(cm);
        regChange(cm);
    }, true);
    option("lineSeparator", null, function (cm, val) {
        cm.doc.lineSep = val;
        if (!val) return;
        var newBreaks = [], lineNo = cm.doc.first;
        cm.doc.iter(function (line) {
            for (var pos = 0; ;) {
                var found = line.text.indexOf(val, pos);
                if (found == -1) break;
                pos = found + val.length;
                newBreaks.push(Pos(lineNo, found));
            }
            lineNo++;
        });
        for (var i = newBreaks.length - 1; i >= 0; i--)
            replaceRange(cm.doc, val, newBreaks[i], Pos(newBreaks[i].line, newBreaks[i].ch + val.length))
    });
    option("specialChars", /[\u0000-\u001f\u007f\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g, function (cm, val, old) {
        cm.state.specialChars = new RegExp(val.source + (val.test("\t") ? "" : "|\t"), "g");
        if (old != CodeMirror.Init) cm.refresh();
    });
    option("specialCharPlaceholder", defaultSpecialCharPlaceholder, function (cm) { cm.refresh(); }, true);
    option("electricChars", true);
    option("inputStyle", mobile ? "contenteditable" : "textarea", function () {
        throw new Error("inputStyle can not (yet) be changed in a running editor"); // FIXME
    }, true);
    option("rtlMoveVisually", !windows);
    option("wholeLineUpdateBefore", true);

    option("theme", "default", function (cm) {
        themeChanged(cm);
        guttersChanged(cm);
    }, true);
    option("keyMap", "default", function (cm, val, old) {
        var next = getKeyMap(val);
        var prev = old != CodeMirror.Init && getKeyMap(old);
        if (prev && prev.detach) prev.detach(cm, next);
        if (next.attach) next.attach(cm, prev || null);
    });
    option("extraKeys", null);

    option("lineWrapping", false, wrappingChanged, true);
    option("gutters", [], function (cm) {
        setGuttersForLineNumbers(cm.options);
        guttersChanged(cm);
    }, true);
    option("fixedGutter", true, function (cm, val) {
        cm.display.gutters.style.left = val ? compensateForHScroll(cm.display) + "px" : "0";
        cm.refresh();
    }, true);
    option("coverGutterNextToScrollbar", false, function (cm) { updateScrollbars(cm); }, true);
    option("scrollbarStyle", "native", function (cm) {
        initScrollbars(cm);
        updateScrollbars(cm);
        cm.display.scrollbars.setScrollTop(cm.doc.scrollTop);
        cm.display.scrollbars.setScrollLeft(cm.doc.scrollLeft);
    }, true);
    option("lineNumbers", false, function (cm) {
        setGuttersForLineNumbers(cm.options);
        guttersChanged(cm);
    }, true);
    option("firstLineNumber", 1, guttersChanged, true);
    option("lineNumberFormatter", function (integer) { return integer; }, guttersChanged, true);
    option("showCursorWhenSelecting", false, updateSelection, true);

    option("resetSelectionOnContextMenu", true);
    option("lineWiseCopyCut", true);

    option("readOnly", false, function (cm, val) {
        if (val == "nocursor") {
            onBlur(cm);
            cm.display.input.blur();
            cm.display.disabled = true;
        } else {
            cm.display.disabled = false;
        }
        cm.display.input.readOnlyChanged(val)
    });
    option("disableInput", false, function (cm, val) { if (!val) cm.display.input.reset(); }, true);
    option("dragDrop", true, dragDropChanged);
    option("allowDropFileTypes", null);

    option("cursorBlinkRate", 530);
    option("cursorScrollMargin", 0);
    option("cursorHeight", 1, updateSelection, true);
    option("singleCursorHeightPerLine", true, updateSelection, true);
    option("workTime", 100);
    option("workDelay", 100);
    option("flattenSpans", true, resetModeState, true);
    option("addModeClass", false, resetModeState, true);
    option("pollInterval", 100);
    option("undoDepth", 200, function (cm, val) { cm.doc.history.undoDepth = val; });
    option("historyEventDelay", 1250);
    option("viewportMargin", 10, function (cm) { cm.refresh(); }, true);
    option("maxHighlightLength", 10000, resetModeState, true);
    option("moveInputWithCursor", true, function (cm, val) {
        if (!val) cm.display.input.resetPosition();
    });

    option("tabindex", null, function (cm, val) {
        cm.display.input.getField().tabIndex = val || "";
    });
    option("autofocus", null);

    // MODE DEFINITION AND QUERYING

    // Known modes, by name and by MIME
    var modes = CodeMirror.modes = {}, mimeModes = CodeMirror.mimeModes = {};

    // Extra arguments are stored as the mode's dependencies, which is
    // used by (legacy) mechanisms like loadmode.js to automatically
    // load a mode. (Preferred mechanism is the require/define calls.)
    CodeMirror.defineMode = function (name, mode) {
        if (!CodeMirror.defaults.mode && name != "null") CodeMirror.defaults.mode = name;
        if (arguments.length > 2)
            mode.dependencies = Array.prototype.slice.call(arguments, 2);
        modes[name] = mode;
    };

    CodeMirror.defineMIME = function (mime, spec) {
        mimeModes[mime] = spec;
    };

    // Given a MIME type, a {name, ...options} config object, or a name
    // string, return a mode config object.
    CodeMirror.resolveMode = function (spec) {
        if (typeof spec == "string" && mimeModes.hasOwnProperty(spec)) {
            spec = mimeModes[spec];
        } else if (spec && typeof spec.name == "string" && mimeModes.hasOwnProperty(spec.name)) {
            var found = mimeModes[spec.name];
            if (typeof found == "string") found = { name: found };
            spec = createObj(found, spec);
            spec.name = found.name;
        } else if (typeof spec == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(spec)) {
            return CodeMirror.resolveMode("application/xml");
        }
        if (typeof spec == "string") return { name: spec };
        else return spec || { name: "null" };
    };

    // Given a mode spec (anything that resolveMode accepts), find and
    // initialize an actual mode object.
    CodeMirror.getMode = function (options, spec) {
        var spec = CodeMirror.resolveMode(spec);
        var mfactory = modes[spec.name];
        if (!mfactory) return CodeMirror.getMode(options, "text/plain");
        var modeObj = mfactory(options, spec);
        if (modeExtensions.hasOwnProperty(spec.name)) {
            var exts = modeExtensions[spec.name];
            for (var prop in exts) {
                if (!exts.hasOwnProperty(prop)) continue;
                if (modeObj.hasOwnProperty(prop)) modeObj["_" + prop] = modeObj[prop];
                modeObj[prop] = exts[prop];
            }
        }
        modeObj.name = spec.name;
        if (spec.helperType) modeObj.helperType = spec.helperType;
        if (spec.modeProps) for (var prop in spec.modeProps)
            modeObj[prop] = spec.modeProps[prop];

        return modeObj;
    };

    // Minimal default mode.
    CodeMirror.defineMode("null", function () {
        return { token: function (stream) { stream.skipToEnd(); } };
    });
    CodeMirror.defineMIME("text/plain", "null");

    // This can be used to attach properties to mode objects from
    // outside the actual mode definition.
    var modeExtensions = CodeMirror.modeExtensions = {};
    CodeMirror.extendMode = function (mode, properties) {
        var exts = modeExtensions.hasOwnProperty(mode) ? modeExtensions[mode] : (modeExtensions[mode] = {});
        copyObj(properties, exts);
    };

    // EXTENSIONS

    CodeMirror.defineExtension = function (name, func) {
        CodeMirror.prototype[name] = func;
    };
    CodeMirror.defineDocExtension = function (name, func) {
        Doc.prototype[name] = func;
    };
    CodeMirror.defineOption = option;

    var initHooks = [];
    CodeMirror.defineInitHook = function (f) { initHooks.push(f); };

    var helpers = CodeMirror.helpers = {};
    CodeMirror.registerHelper = function (type, name, value) {
        if (!helpers.hasOwnProperty(type)) helpers[type] = CodeMirror[type] = { _global: [] };
        helpers[type][name] = value;
    };
    CodeMirror.registerGlobalHelper = function (type, name, predicate, value) {
        CodeMirror.registerHelper(type, name, value);
        helpers[type]._global.push({ pred: predicate, val: value });
    };

    // MODE STATE HANDLING

    // Utility functions for working with state. Exported because nested
    // modes need to do this for their inner modes.

    var copyState = CodeMirror.copyState = function (mode, state) {
        if (state === true) return state;
        if (mode.copyState) return mode.copyState(state);
        var nstate = {};
        for (var n in state) {
            var val = state[n];
            if (val instanceof Array) val = val.concat([]);
            nstate[n] = val;
        }
        return nstate;
    };

    var startState = CodeMirror.startState = function (mode, a1, a2) {
        return mode.startState ? mode.startState(a1, a2) : true;
    };

    // Given a mode and a state (for that mode), find the inner mode and
    // state at the position that the state refers to.
    CodeMirror.innerMode = function (mode, state) {
        while (mode.innerMode) {
            var info = mode.innerMode(state);
            if (!info || info.mode == mode) break;
            state = info.state;
            mode = info.mode;
        }
        return info || { mode: mode, state: state };
    };

    // STANDARD COMMANDS

    // Commands are parameter-less actions that can be performed on an
    // editor, mostly used for keybindings.
    var commands = CodeMirror.commands = {
        selectAll: function (cm) { cm.setSelection(Pos(cm.firstLine(), 0), Pos(cm.lastLine()), sel_dontScroll); },
        singleSelection: function (cm) {
            cm.setSelection(cm.getCursor("anchor"), cm.getCursor("head"), sel_dontScroll);
        },
        killLine: function (cm) {
            deleteNearSelection(cm, function (range) {
                if (range.empty()) {
                    var len = getLine(cm.doc, range.head.line).text.length;
                    if (range.head.ch == len && range.head.line < cm.lastLine())
                        return { from: range.head, to: Pos(range.head.line + 1, 0) };
                    else
                        return { from: range.head, to: Pos(range.head.line, len) };
                } else {
                    return { from: range.from(), to: range.to() };
                }
            });
        },
        deleteLine: function (cm) {
            deleteNearSelection(cm, function (range) {
                return {
                    from: Pos(range.from().line, 0),
                    to: clipPos(cm.doc, Pos(range.to().line + 1, 0))
                };
            });
        },
        delLineLeft: function (cm) {
            deleteNearSelection(cm, function (range) {
                return { from: Pos(range.from().line, 0), to: range.from() };
            });
        },
        delWrappedLineLeft: function (cm) {
            deleteNearSelection(cm, function (range) {
                var top = cm.charCoords(range.head, "div").top + 5;
                var leftPos = cm.coordsChar({ left: 0, top: top }, "div");
                return { from: leftPos, to: range.from() };
            });
        },
        delWrappedLineRight: function (cm) {
            deleteNearSelection(cm, function (range) {
                var top = cm.charCoords(range.head, "div").top + 5;
                var rightPos = cm.coordsChar({ left: cm.display.lineDiv.offsetWidth + 100, top: top }, "div");
                return { from: range.from(), to: rightPos };
            });
        },
        undo: function (cm) { cm.undo(); },
        redo: function (cm) { cm.redo(); },
        undoSelection: function (cm) { cm.undoSelection(); },
        redoSelection: function (cm) { cm.redoSelection(); },
        goDocStart: function (cm) { cm.extendSelection(Pos(cm.firstLine(), 0)); },
        goDocEnd: function (cm) { cm.extendSelection(Pos(cm.lastLine())); },
        goLineStart: function (cm) {
            cm.extendSelectionsBy(function (range) { return lineStart(cm, range.head.line); },
                { origin: "+move", bias: 1 });
        },
        goLineStartSmart: function (cm) {
            cm.extendSelectionsBy(function (range) {
                return lineStartSmart(cm, range.head);
            }, { origin: "+move", bias: 1 });
        },
        goLineEnd: function (cm) {
            cm.extendSelectionsBy(function (range) { return lineEnd(cm, range.head.line); },
                { origin: "+move", bias: -1 });
        },
        goLineRight: function (cm) {
            cm.extendSelectionsBy(function (range) {
                var top = cm.charCoords(range.head, "div").top + 5;
                return cm.coordsChar({ left: cm.display.lineDiv.offsetWidth + 100, top: top }, "div");
            }, sel_move);
        },
        goLineLeft: function (cm) {
            cm.extendSelectionsBy(function (range) {
                var top = cm.charCoords(range.head, "div").top + 5;
                return cm.coordsChar({ left: 0, top: top }, "div");
            }, sel_move);
        },
        goLineLeftSmart: function (cm) {
            cm.extendSelectionsBy(function (range) {
                var top = cm.charCoords(range.head, "div").top + 5;
                var pos = cm.coordsChar({ left: 0, top: top }, "div");
                if (pos.ch < cm.getLine(pos.line).search(/\S/)) return lineStartSmart(cm, range.head);
                return pos;
            }, sel_move);
        },
        goLineUp: function (cm) { cm.moveV(-1, "line"); },
        goLineDown: function (cm) { cm.moveV(1, "line"); },
        goPageUp: function (cm) { cm.moveV(-1, "page"); },
        goPageDown: function (cm) { cm.moveV(1, "page"); },
        goCharLeft: function (cm) { cm.moveH(-1, "char"); },
        goCharRight: function (cm) { cm.moveH(1, "char"); },
        goColumnLeft: function (cm) { cm.moveH(-1, "column"); },
        goColumnRight: function (cm) { cm.moveH(1, "column"); },
        goWordLeft: function (cm) { cm.moveH(-1, "word"); },
        goGroupRight: function (cm) { cm.moveH(1, "group"); },
        goGroupLeft: function (cm) { cm.moveH(-1, "group"); },
        goWordRight: function (cm) { cm.moveH(1, "word"); },
        delCharBefore: function (cm) { cm.deleteH(-1, "char"); },
        delCharAfter: function (cm) { cm.deleteH(1, "char"); },
        delWordBefore: function (cm) { cm.deleteH(-1, "word"); },
        delWordAfter: function (cm) { cm.deleteH(1, "word"); },
        delGroupBefore: function (cm) { cm.deleteH(-1, "group"); },
        delGroupAfter: function (cm) { cm.deleteH(1, "group"); },
        indentAuto: function (cm) { cm.indentSelection("smart"); },
        indentMore: function (cm) { cm.indentSelection("add"); },
        indentLess: function (cm) { cm.indentSelection("subtract"); },
        insertTab: function (cm) { cm.replaceSelection("\t"); },
        insertSoftTab: function (cm) {
            var spaces = [], ranges = cm.listSelections(), tabSize = cm.options.tabSize;
            for (var i = 0; i < ranges.length; i++) {
                var pos = ranges[i].from();
                var col = countColumn(cm.getLine(pos.line), pos.ch, tabSize);
                spaces.push(spaceStr(tabSize - col % tabSize));
            }
            cm.replaceSelections(spaces);
        },
        defaultTab: function (cm) {
            if (cm.somethingSelected()) cm.indentSelection("add");
            else cm.execCommand("insertTab");
        },
        transposeChars: function (cm) {
            runInOp(cm, function () {
                var ranges = cm.listSelections(), newSel = [];
                for (var i = 0; i < ranges.length; i++) {
                    var cur = ranges[i].head, line = getLine(cm.doc, cur.line).text;
                    if (line) {
                        if (cur.ch == line.length) cur = new Pos(cur.line, cur.ch - 1);
                        if (cur.ch > 0) {
                            cur = new Pos(cur.line, cur.ch + 1);
                            cm.replaceRange(line.charAt(cur.ch - 1) + line.charAt(cur.ch - 2),
                                Pos(cur.line, cur.ch - 2), cur, "+transpose");
                        } else if (cur.line > cm.doc.first) {
                            var prev = getLine(cm.doc, cur.line - 1).text;
                            if (prev)
                                cm.replaceRange(line.charAt(0) + cm.doc.lineSeparator() +
                                    prev.charAt(prev.length - 1),
                                    Pos(cur.line - 1, prev.length - 1), Pos(cur.line, 1), "+transpose");
                        }
                    }
                    newSel.push(new Range(cur, cur));
                }
                cm.setSelections(newSel);
            });
        },
        newlineAndIndent: function (cm) {
            runInOp(cm, function () {
                var len = cm.listSelections().length;
                for (var i = 0; i < len; i++) {
                    var range = cm.listSelections()[i];
                    cm.replaceRange(cm.doc.lineSeparator(), range.anchor, range.head, "+input");
                    cm.indentLine(range.from().line + 1, null, true);
                }
                ensureCursorVisible(cm);
            });
        },
        openLine: function (cm) { cm.replaceSelection("\n", "start") },
        toggleOverwrite: function (cm) { cm.toggleOverwrite(); }
    };


    // STANDARD KEYMAPS

    var keyMap = CodeMirror.keyMap = {};

    keyMap.basic = {
        "Left": "goCharLeft", "Right": "goCharRight", "Up": "goLineUp", "Down": "goLineDown",
        "End": "goLineEnd", "Home": "goLineStartSmart", "PageUp": "goPageUp", "PageDown": "goPageDown",
        "Delete": "delCharAfter", "Backspace": "delCharBefore", "Shift-Backspace": "delCharBefore",
        "Tab": "defaultTab", "Shift-Tab": "indentAuto",
        "Enter": "newlineAndIndent", "Insert": "toggleOverwrite",
        "Esc": "singleSelection"
    };
    // Note that the save and find-related commands aren't defined by
    // default. User code or addons can define them. Unknown commands
    // are simply ignored.
    keyMap.pcDefault = {
        "Ctrl-A": "selectAll", "Ctrl-D": "deleteLine", "Ctrl-Z": "undo", "Shift-Ctrl-Z": "redo", "Ctrl-Y": "redo",
        "Ctrl-Home": "goDocStart", "Ctrl-End": "goDocEnd", "Ctrl-Up": "goLineUp", "Ctrl-Down": "goLineDown",
        "Ctrl-Left": "goGroupLeft", "Ctrl-Right": "goGroupRight", "Alt-Left": "goLineStart", "Alt-Right": "goLineEnd",
        "Ctrl-Backspace": "delGroupBefore", "Ctrl-Delete": "delGroupAfter", "Ctrl-S": "save", "Ctrl-F": "find",
        "Ctrl-G": "findNext", "Shift-Ctrl-G": "findPrev", "Shift-Ctrl-F": "replace", "Shift-Ctrl-R": "replaceAll",
        "Ctrl-[": "indentLess", "Ctrl-]": "indentMore",
        "Ctrl-U": "undoSelection", "Shift-Ctrl-U": "redoSelection", "Alt-U": "redoSelection",
        fallthrough: "basic"
    };
    // Very basic readline/emacs-style bindings, which are standard on Mac.
    keyMap.emacsy = {
        "Ctrl-F": "goCharRight", "Ctrl-B": "goCharLeft", "Ctrl-P": "goLineUp", "Ctrl-N": "goLineDown",
        "Alt-F": "goWordRight", "Alt-B": "goWordLeft", "Ctrl-A": "goLineStart", "Ctrl-E": "goLineEnd",
        "Ctrl-V": "goPageDown", "Shift-Ctrl-V": "goPageUp", "Ctrl-D": "delCharAfter", "Ctrl-H": "delCharBefore",
        "Alt-D": "delWordAfter", "Alt-Backspace": "delWordBefore", "Ctrl-K": "killLine", "Ctrl-T": "transposeChars",
        "Ctrl-O": "openLine"
    };
    keyMap.macDefault = {
        "Cmd-A": "selectAll", "Cmd-D": "deleteLine", "Cmd-Z": "undo", "Shift-Cmd-Z": "redo", "Cmd-Y": "redo",
        "Cmd-Home": "goDocStart", "Cmd-Up": "goDocStart", "Cmd-End": "goDocEnd", "Cmd-Down": "goDocEnd", "Alt-Left": "goGroupLeft",
        "Alt-Right": "goGroupRight", "Cmd-Left": "goLineLeft", "Cmd-Right": "goLineRight", "Alt-Backspace": "delGroupBefore",
        "Ctrl-Alt-Backspace": "delGroupAfter", "Alt-Delete": "delGroupAfter", "Cmd-S": "save", "Cmd-F": "find",
        "Cmd-G": "findNext", "Shift-Cmd-G": "findPrev", "Cmd-Alt-F": "replace", "Shift-Cmd-Alt-F": "replaceAll",
        "Cmd-[": "indentLess", "Cmd-]": "indentMore", "Cmd-Backspace": "delWrappedLineLeft", "Cmd-Delete": "delWrappedLineRight",
        "Cmd-U": "undoSelection", "Shift-Cmd-U": "redoSelection", "Ctrl-Up": "goDocStart", "Ctrl-Down": "goDocEnd",
        fallthrough: ["basic", "emacsy"]
    };
    keyMap["default"] = mac ? keyMap.macDefault : keyMap.pcDefault;

    // KEYMAP DISPATCH

    function normalizeKeyName(name) {
        var parts = name.split(/-(?!$)/), name = parts[parts.length - 1];
        var alt, ctrl, shift, cmd;
        for (var i = 0; i < parts.length - 1; i++) {
            var mod = parts[i];
            if (/^(cmd|meta|m)$/i.test(mod)) cmd = true;
            else if (/^a(lt)?$/i.test(mod)) alt = true;
            else if (/^(c|ctrl|control)$/i.test(mod)) ctrl = true;
            else if (/^s(hift)$/i.test(mod)) shift = true;
            else throw new Error("Unrecognized modifier name: " + mod);
        }
        if (alt) name = "Alt-" + name;
        if (ctrl) name = "Ctrl-" + name;
        if (cmd) name = "Cmd-" + name;
        if (shift) name = "Shift-" + name;
        return name;
    }

    // This is a kludge to keep keymaps mostly working as raw objects
    // (backwards compatibility) while at the same time support features
    // like normalization and multi-stroke key bindings. It compiles a
    // new normalized keymap, and then updates the old object to reflect
    // this.
    CodeMirror.normalizeKeyMap = function (keymap) {
        var copy = {};
        for (var keyname in keymap) if (keymap.hasOwnProperty(keyname)) {
            var value = keymap[keyname];
            if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) continue;
            if (value == "...") { delete keymap[keyname]; continue; }

            var keys = map(keyname.split(" "), normalizeKeyName);
            for (var i = 0; i < keys.length; i++) {
                var val, name;
                if (i == keys.length - 1) {
                    name = keys.join(" ");
                    val = value;
                } else {
                    name = keys.slice(0, i + 1).join(" ");
                    val = "...";
                }
                var prev = copy[name];
                if (!prev) copy[name] = val;
                else if (prev != val) throw new Error("Inconsistent bindings for " + name);
            }
            delete keymap[keyname];
        }
        for (var prop in copy) keymap[prop] = copy[prop];
        return keymap;
    };

    var lookupKey = CodeMirror.lookupKey = function (key, map, handle, context) {
        map = getKeyMap(map);
        var found = map.call ? map.call(key, context) : map[key];
        if (found === false) return "nothing";
        if (found === "...") return "multi";
        if (found != null && handle(found)) return "handled";

        if (map.fallthrough) {
            if (Object.prototype.toString.call(map.fallthrough) != "[object Array]")
                return lookupKey(key, map.fallthrough, handle, context);
            for (var i = 0; i < map.fallthrough.length; i++) {
                var result = lookupKey(key, map.fallthrough[i], handle, context);
                if (result) return result;
            }
        }
    };

    // Modifier key presses don't count as 'real' key presses for the
    // purpose of keymap fallthrough.
    var isModifierKey = CodeMirror.isModifierKey = function (value) {
        var name = typeof value == "string" ? value : keyNames[value.keyCode];
        return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod";
    };

    // Look up the name of a key as indicated by an event object.
    var keyName = CodeMirror.keyName = function (event, noShift) {
        if (presto && event.keyCode == 34 && event["char"]) return false;
        var base = keyNames[event.keyCode], name = base;
        if (name == null || event.altGraphKey) return false;
        if (event.altKey && base != "Alt") name = "Alt-" + name;
        if ((flipCtrlCmd ? event.metaKey : event.ctrlKey) && base != "Ctrl") name = "Ctrl-" + name;
        if ((flipCtrlCmd ? event.ctrlKey : event.metaKey) && base != "Cmd") name = "Cmd-" + name;
        if (!noShift && event.shiftKey && base != "Shift") name = "Shift-" + name;
        return name;
    };

    function getKeyMap(val) {
        return typeof val == "string" ? keyMap[val] : val;
    }

    // FROMTEXTAREA

    CodeMirror.fromTextArea = function (textarea, options) {
        options = options ? copyObj(options) : {};
        options.value = textarea.value;
        if (!options.tabindex && textarea.tabIndex)
            options.tabindex = textarea.tabIndex;
        if (!options.placeholder && textarea.placeholder)
            options.placeholder = textarea.placeholder;
        // Set autofocus to true if this textarea is focused, or if it has
        // autofocus and no other element is focused.
        if (options.autofocus == null) {
            var hasFocus = activeElt();
            options.autofocus = hasFocus == textarea ||
                textarea.getAttribute("autofocus") != null && hasFocus == document.body;
        }

        function save() { textarea.value = cm.getValue(); }
        if (textarea.form) {
            on(textarea.form, "submit", save);
            // Deplorable hack to make the submit method do the right thing.
            if (!options.leaveSubmitMethodAlone) {
                var form = textarea.form, realSubmit = form.submit;
                try {
                    var wrappedSubmit = form.submit = function () {
                        save();
                        form.submit = realSubmit;
                        form.submit();
                        form.submit = wrappedSubmit;
                    };
                } catch (e) { }
            }
        }

        options.finishInit = function (cm) {
            cm.save = save;
            cm.getTextArea = function () { return textarea; };
            cm.toTextArea = function () {
                cm.toTextArea = isNaN; // Prevent this from being ran twice
                save();
                textarea.parentNode.removeChild(cm.getWrapperElement());
                textarea.style.display = "";
                if (textarea.form) {
                    off(textarea.form, "submit", save);
                    if (typeof textarea.form.submit == "function")
                        textarea.form.submit = realSubmit;
                }
            };
        };

        textarea.style.display = "none";
        var cm = CodeMirror(function (node) {
            textarea.parentNode.insertBefore(node, textarea.nextSibling);
        }, options);
        return cm;
    };

    // STRING STREAM

    // Fed to the mode parsers, provides helper functions to make
    // parsers more succinct.

    var StringStream = CodeMirror.StringStream = function (string, tabSize) {
        this.pos = this.start = 0;
        this.string = string;
        this.tabSize = tabSize || 8;
        this.lastColumnPos = this.lastColumnValue = 0;
        this.lineStart = 0;
    };

    StringStream.prototype = {
        eol: function () { return this.pos >= this.string.length; },
        sol: function () { return this.pos == this.lineStart; },
        peek: function () { return this.string.charAt(this.pos) || undefined; },
        next: function () {
            if (this.pos < this.string.length)
                return this.string.charAt(this.pos++);
        },
        eat: function (match) {
            var ch = this.string.charAt(this.pos);
            if (typeof match == "string") var ok = ch == match;
            else var ok = ch && (match.test ? match.test(ch) : match(ch));
            if (ok) { ++this.pos; return ch; }
        },
        eatWhile: function (match) {
            var start = this.pos;
            while (this.eat(match)) { }
            return this.pos > start;
        },
        eatSpace: function () {
            var start = this.pos;
            while (/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;
            return this.pos > start;
        },
        skipToEnd: function () { this.pos = this.string.length; },
        skipTo: function (ch) {
            var found = this.string.indexOf(ch, this.pos);
            if (found > -1) { this.pos = found; return true; }
        },
        backUp: function (n) { this.pos -= n; },
        column: function () {
            if (this.lastColumnPos < this.start) {
                this.lastColumnValue = countColumn(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue);
                this.lastColumnPos = this.start;
            }
            return this.lastColumnValue - (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0);
        },
        indentation: function () {
            return countColumn(this.string, null, this.tabSize) -
                (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0);
        },
        match: function (pattern, consume, caseInsensitive) {
            if (typeof pattern == "string") {
                var cased = function (str) { return caseInsensitive ? str.toLowerCase() : str; };
                var substr = this.string.substr(this.pos, pattern.length);
                if (cased(substr) == cased(pattern)) {
                    if (consume !== false) this.pos += pattern.length;
                    return true;
                }
            } else {
                var match = this.string.slice(this.pos).match(pattern);
                if (match && match.index > 0) return null;
                if (match && consume !== false) this.pos += match[0].length;
                return match;
            }
        },
        current: function () { return this.string.slice(this.start, this.pos); },
        hideFirstChars: function (n, inner) {
            this.lineStart += n;
            try { return inner(); }
            finally { this.lineStart -= n; }
        }
    };

    // TEXTMARKERS

    // Created with markText and setBookmark methods. A TextMarker is a
    // handle that can be used to clear or find a marked position in the
    // document. Line objects hold arrays (markedSpans) containing
    // {from, to, marker} object pointing to such marker objects, and
    // indicating that such a marker is present on that line. Multiple
    // lines may point to the same marker when it spans across lines.
    // The spans will have null for their from/to properties when the
    // marker continues beyond the start/end of the line. Markers have
    // links back to the lines they currently touch.

    var nextMarkerId = 0;

    var TextMarker = CodeMirror.TextMarker = function (doc, type) {
        this.lines = [];
        this.type = type;
        this.doc = doc;
        this.id = ++nextMarkerId;
    };
    eventMixin(TextMarker);

    // Clear the marker.
    TextMarker.prototype.clear = function () {
        if (this.explicitlyCleared) return;
        var cm = this.doc.cm, withOp = cm && !cm.curOp;
        if (withOp) startOperation(cm);
        if (hasHandler(this, "clear")) {
            var found = this.find();
            if (found) signalLater(this, "clear", found.from, found.to);
        }
        var min = null, max = null;
        for (var i = 0; i < this.lines.length; ++i) {
            var line = this.lines[i];
            var span = getMarkedSpanFor(line.markedSpans, this);
            if (cm && !this.collapsed) regLineChange(cm, lineNo(line), "text");
            else if (cm) {
                if (span.to != null) max = lineNo(line);
                if (span.from != null) min = lineNo(line);
            }
            line.markedSpans = removeMarkedSpan(line.markedSpans, span);
            if (span.from == null && this.collapsed && !lineIsHidden(this.doc, line) && cm)
                updateLineHeight(line, textHeight(cm.display));
        }
        if (cm && this.collapsed && !cm.options.lineWrapping) for (var i = 0; i < this.lines.length; ++i) {
            var visual = visualLine(this.lines[i]), len = lineLength(visual);
            if (len > cm.display.maxLineLength) {
                cm.display.maxLine = visual;
                cm.display.maxLineLength = len;
                cm.display.maxLineChanged = true;
            }
        }

        if (min != null && cm && this.collapsed) regChange(cm, min, max + 1);
        this.lines.length = 0;
        this.explicitlyCleared = true;
        if (this.atomic && this.doc.cantEdit) {
            this.doc.cantEdit = false;
            if (cm) reCheckSelection(cm.doc);
        }
        if (cm) signalLater(cm, "markerCleared", cm, this);
        if (withOp) endOperation(cm);
        if (this.parent) this.parent.clear();
    };

    // Find the position of the marker in the document. Returns a {from,
    // to} object by default. Side can be passed to get a specific side
    // -- 0 (both), -1 (left), or 1 (right). When lineObj is true, the
    // Pos objects returned contain a line object, rather than a line
    // number (used to prevent looking up the same line twice).
    TextMarker.prototype.find = function (side, lineObj) {
        if (side == null && this.type == "bookmark") side = 1;
        var from, to;
        for (var i = 0; i < this.lines.length; ++i) {
            var line = this.lines[i];
            var span = getMarkedSpanFor(line.markedSpans, this);
            if (span.from != null) {
                from = Pos(lineObj ? line : lineNo(line), span.from);
                if (side == -1) return from;
            }
            if (span.to != null) {
                to = Pos(lineObj ? line : lineNo(line), span.to);
                if (side == 1) return to;
            }
        }
        return from && { from: from, to: to };
    };

    // Signals that the marker's widget changed, and surrounding layout
    // should be recomputed.
    TextMarker.prototype.changed = function () {
        var pos = this.find(-1, true), widget = this, cm = this.doc.cm;
        if (!pos || !cm) return;
        runInOp(cm, function () {
            var line = pos.line, lineN = lineNo(pos.line);
            var view = findViewForLine(cm, lineN);
            if (view) {
                clearLineMeasurementCacheFor(view);
                cm.curOp.selectionChanged = cm.curOp.forceUpdate = true;
            }
            cm.curOp.updateMaxLine = true;
            if (!lineIsHidden(widget.doc, line) && widget.height != null) {
                var oldHeight = widget.height;
                widget.height = null;
                var dHeight = widgetHeight(widget) - oldHeight;
                if (dHeight)
                    updateLineHeight(line, line.height + dHeight);
            }
        });
    };

    TextMarker.prototype.attachLine = function (line) {
        if (!this.lines.length && this.doc.cm) {
            var op = this.doc.cm.curOp;
            if (!op.maybeHiddenMarkers || indexOf(op.maybeHiddenMarkers, this) == -1)
                (op.maybeUnhiddenMarkers || (op.maybeUnhiddenMarkers = [])).push(this);
        }
        this.lines.push(line);
    };
    TextMarker.prototype.detachLine = function (line) {
        this.lines.splice(indexOf(this.lines, line), 1);
        if (!this.lines.length && this.doc.cm) {
            var op = this.doc.cm.curOp;
            (op.maybeHiddenMarkers || (op.maybeHiddenMarkers = [])).push(this);
        }
    };

    // Collapsed markers have unique ids, in order to be able to order
    // them, which is needed for uniquely determining an outer marker
    // when they overlap (they may nest, but not partially overlap).
    var nextMarkerId = 0;

    // Create a marker, wire it up to the right lines, and
    function markText(doc, from, to, options, type) {
        // Shared markers (across linked documents) are handled separately
        // (markTextShared will call out to this again, once per
        // document).
        if (options && options.shared) return markTextShared(doc, from, to, options, type);
        // Ensure we are in an operation.
        if (doc.cm && !doc.cm.curOp) return operation(doc.cm, markText)(doc, from, to, options, type);

        var marker = new TextMarker(doc, type), diff = cmp(from, to);
        if (options) copyObj(options, marker, false);
        // Don't connect empty markers unless clearWhenEmpty is false
        if (diff > 0 || diff == 0 && marker.clearWhenEmpty !== false)
            return marker;
        if (marker.replacedWith) {
            // Showing up as a widget implies collapsed (widget replaces text)
            marker.collapsed = true;
            marker.widgetNode = elt("span", [marker.replacedWith], "CodeMirror-widget");
            if (!options.handleMouseEvents) marker.widgetNode.setAttribute("cm-ignore-events", "true");
            if (options.insertLeft) marker.widgetNode.insertLeft = true;
        }
        if (marker.collapsed) {
            if (conflictingCollapsedRange(doc, from.line, from, to, marker) ||
                from.line != to.line && conflictingCollapsedRange(doc, to.line, from, to, marker))
                throw new Error("Inserting collapsed marker partially overlapping an existing one");
            sawCollapsedSpans = true;
        }

        if (marker.addToHistory)
            addChangeToHistory(doc, { from: from, to: to, origin: "markText" }, doc.sel, NaN);

        var curLine = from.line, cm = doc.cm, updateMaxLine;
        doc.iter(curLine, to.line + 1, function (line) {
            if (cm && marker.collapsed && !cm.options.lineWrapping && visualLine(line) == cm.display.maxLine)
                updateMaxLine = true;
            if (marker.collapsed && curLine != from.line) updateLineHeight(line, 0);
            addMarkedSpan(line, new MarkedSpan(marker,
                curLine == from.line ? from.ch : null,
                curLine == to.line ? to.ch : null));
            ++curLine;
        });
        // lineIsHidden depends on the presence of the spans, so needs a second pass
        if (marker.collapsed) doc.iter(from.line, to.line + 1, function (line) {
            if (lineIsHidden(doc, line)) updateLineHeight(line, 0);
        });

        if (marker.clearOnEnter) on(marker, "beforeCursorEnter", function () { marker.clear(); });

        if (marker.readOnly) {
            sawReadOnlySpans = true;
            if (doc.history.done.length || doc.history.undone.length)
                doc.clearHistory();
        }
        if (marker.collapsed) {
            marker.id = ++nextMarkerId;
            marker.atomic = true;
        }
        if (cm) {
            // Sync editor state
            if (updateMaxLine) cm.curOp.updateMaxLine = true;
            if (marker.collapsed)
                regChange(cm, from.line, to.line + 1);
            else if (marker.className || marker.title || marker.startStyle || marker.endStyle || marker.css)
                for (var i = from.line; i <= to.line; i++) regLineChange(cm, i, "text");
            if (marker.atomic) reCheckSelection(cm.doc);
            signalLater(cm, "markerAdded", cm, marker);
        }
        return marker;
    }

    // SHARED TEXTMARKERS

    // A shared marker spans multiple linked documents. It is
    // implemented as a meta-marker-object controlling multiple normal
    // markers.
    var SharedTextMarker = CodeMirror.SharedTextMarker = function (markers, primary) {
        this.markers = markers;
        this.primary = primary;
        for (var i = 0; i < markers.length; ++i)
            markers[i].parent = this;
    };
    eventMixin(SharedTextMarker);

    SharedTextMarker.prototype.clear = function () {
        if (this.explicitlyCleared) return;
        this.explicitlyCleared = true;
        for (var i = 0; i < this.markers.length; ++i)
            this.markers[i].clear();
        signalLater(this, "clear");
    };
    SharedTextMarker.prototype.find = function (side, lineObj) {
        return this.primary.find(side, lineObj);
    };

    function markTextShared(doc, from, to, options, type) {
        options = copyObj(options);
        options.shared = false;
        var markers = [markText(doc, from, to, options, type)], primary = markers[0];
        var widget = options.widgetNode;
        linkedDocs(doc, function (doc) {
            if (widget) options.widgetNode = widget.cloneNode(true);
            markers.push(markText(doc, clipPos(doc, from), clipPos(doc, to), options, type));
            for (var i = 0; i < doc.linked.length; ++i)
                if (doc.linked[i].isParent) return;
            primary = lst(markers);
        });
        return new SharedTextMarker(markers, primary);
    }

    function findSharedMarkers(doc) {
        return doc.findMarks(Pos(doc.first, 0), doc.clipPos(Pos(doc.lastLine())),
            function (m) { return m.parent; });
    }

    function copySharedMarkers(doc, markers) {
        for (var i = 0; i < markers.length; i++) {
            var marker = markers[i], pos = marker.find();
            var mFrom = doc.clipPos(pos.from), mTo = doc.clipPos(pos.to);
            if (cmp(mFrom, mTo)) {
                var subMark = markText(doc, mFrom, mTo, marker.primary, marker.primary.type);
                marker.markers.push(subMark);
                subMark.parent = marker;
            }
        }
    }

    function detachSharedMarkers(markers) {
        for (var i = 0; i < markers.length; i++) {
            var marker = markers[i], linked = [marker.primary.doc];;
            linkedDocs(marker.primary.doc, function (d) { linked.push(d); });
            for (var j = 0; j < marker.markers.length; j++) {
                var subMarker = marker.markers[j];
                if (indexOf(linked, subMarker.doc) == -1) {
                    subMarker.parent = null;
                    marker.markers.splice(j--, 1);
                }
            }
        }
    }

    // TEXTMARKER SPANS

    function MarkedSpan(marker, from, to) {
        this.marker = marker;
        this.from = from; this.to = to;
    }

    // Search an array of spans for a span matching the given marker.
    function getMarkedSpanFor(spans, marker) {
        if (spans) for (var i = 0; i < spans.length; ++i) {
            var span = spans[i];
            if (span.marker == marker) return span;
        }
    }
    // Remove a span from an array, returning undefined if no spans are
    // left (we don't store arrays for lines without spans).
    function removeMarkedSpan(spans, span) {
        for (var r, i = 0; i < spans.length; ++i)
            if (spans[i] != span) (r || (r = [])).push(spans[i]);
        return r;
    }
    // Add a span to a line.
    function addMarkedSpan(line, span) {
        line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];
        span.marker.attachLine(line);
    }

    // Used for the algorithm that adjusts markers for a change in the
    // document. These functions cut an array of spans at a given
    // character position, returning an array of remaining chunks (or
    // undefined if nothing remains).
    function markedSpansBefore(old, startCh, isInsert) {
        if (old) for (var i = 0, nw; i < old.length; ++i) {
            var span = old[i], marker = span.marker;
            var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= startCh : span.from < startCh);
            if (startsBefore || span.from == startCh && marker.type == "bookmark" && (!isInsert || !span.marker.insertLeft)) {
                var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= startCh : span.to > startCh);
                (nw || (nw = [])).push(new MarkedSpan(marker, span.from, endsAfter ? null : span.to));
            }
        }
        return nw;
    }
    function markedSpansAfter(old, endCh, isInsert) {
        if (old) for (var i = 0, nw; i < old.length; ++i) {
            var span = old[i], marker = span.marker;
            var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= endCh : span.to > endCh);
            if (endsAfter || span.from == endCh && marker.type == "bookmark" && (!isInsert || span.marker.insertLeft)) {
                var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh);
                (nw || (nw = [])).push(new MarkedSpan(marker, startsBefore ? null : span.from - endCh,
                    span.to == null ? null : span.to - endCh));
            }
        }
        return nw;
    }

    // Given a change object, compute the new set of marker spans that
    // cover the line in which the change took place. Removes spans
    // entirely within the change, reconnects spans belonging to the
    // same marker that appear on both sides of the change, and cuts off
    // spans partially within the change. Returns an array of span
    // arrays with one element for each line in (after) the change.
    function stretchSpansOverChange(doc, change) {
        if (change.full) return null;
        var oldFirst = isLine(doc, change.from.line) && getLine(doc, change.from.line).markedSpans;
        var oldLast = isLine(doc, change.to.line) && getLine(doc, change.to.line).markedSpans;
        if (!oldFirst && !oldLast) return null;

        var startCh = change.from.ch, endCh = change.to.ch, isInsert = cmp(change.from, change.to) == 0;
        // Get the spans that 'stick out' on both sides
        var first = markedSpansBefore(oldFirst, startCh, isInsert);
        var last = markedSpansAfter(oldLast, endCh, isInsert);

        // Next, merge those two ends
        var sameLine = change.text.length == 1, offset = lst(change.text).length + (sameLine ? startCh : 0);
        if (first) {
            // Fix up .to properties of first
            for (var i = 0; i < first.length; ++i) {
                var span = first[i];
                if (span.to == null) {
                    var found = getMarkedSpanFor(last, span.marker);
                    if (!found) span.to = startCh;
                    else if (sameLine) span.to = found.to == null ? null : found.to + offset;
                }
            }
        }
        if (last) {
            // Fix up .from in last (or move them into first in case of sameLine)
            for (var i = 0; i < last.length; ++i) {
                var span = last[i];
                if (span.to != null) span.to += offset;
                if (span.from == null) {
                    var found = getMarkedSpanFor(first, span.marker);
                    if (!found) {
                        span.from = offset;
                        if (sameLine) (first || (first = [])).push(span);
                    }
                } else {
                    span.from += offset;
                    if (sameLine) (first || (first = [])).push(span);
                }
            }
        }
        // Make sure we didn't create any zero-length spans
        if (first) first = clearEmptySpans(first);
        if (last && last != first) last = clearEmptySpans(last);

        var newMarkers = [first];
        if (!sameLine) {
            // Fill gap with whole-line-spans
            var gap = change.text.length - 2, gapMarkers;
            if (gap > 0 && first)
                for (var i = 0; i < first.length; ++i)
                    if (first[i].to == null)
                        (gapMarkers || (gapMarkers = [])).push(new MarkedSpan(first[i].marker, null, null));
            for (var i = 0; i < gap; ++i)
                newMarkers.push(gapMarkers);
            newMarkers.push(last);
        }
        return newMarkers;
    }

    // Remove spans that are empty and don't have a clearWhenEmpty
    // option of false.
    function clearEmptySpans(spans) {
        for (var i = 0; i < spans.length; ++i) {
            var span = spans[i];
            if (span.from != null && span.from == span.to && span.marker.clearWhenEmpty !== false)
                spans.splice(i--, 1);
        }
        if (!spans.length) return null;
        return spans;
    }

    // Used for un/re-doing changes from the history. Combines the
    // result of computing the existing spans with the set of spans that
    // existed in the history (so that deleting around a span and then
    // undoing brings back the span).
    function mergeOldSpans(doc, change) {
        var old = getOldSpans(doc, change);
        var stretched = stretchSpansOverChange(doc, change);
        if (!old) return stretched;
        if (!stretched) return old;

        for (var i = 0; i < old.length; ++i) {
            var oldCur = old[i], stretchCur = stretched[i];
            if (oldCur && stretchCur) {
                spans: for (var j = 0; j < stretchCur.length; ++j) {
                    var span = stretchCur[j];
                    for (var k = 0; k < oldCur.length; ++k)
                        if (oldCur[k].marker == span.marker) continue spans;
                    oldCur.push(span);
                }
            } else if (stretchCur) {
                old[i] = stretchCur;
            }
        }
        return old;
    }

    // Used to 'clip' out readOnly ranges when making a change.
    function removeReadOnlyRanges(doc, from, to) {
        var markers = null;
        doc.iter(from.line, to.line + 1, function (line) {
            if (line.markedSpans) for (var i = 0; i < line.markedSpans.length; ++i) {
                var mark = line.markedSpans[i].marker;
                if (mark.readOnly && (!markers || indexOf(markers, mark) == -1))
                    (markers || (markers = [])).push(mark);
            }
        });
        if (!markers) return null;
        var parts = [{ from: from, to: to }];
        for (var i = 0; i < markers.length; ++i) {
            var mk = markers[i], m = mk.find(0);
            for (var j = 0; j < parts.length; ++j) {
                var p = parts[j];
                if (cmp(p.to, m.from) < 0 || cmp(p.from, m.to) > 0) continue;
                var newParts = [j, 1], dfrom = cmp(p.from, m.from), dto = cmp(p.to, m.to);
                if (dfrom < 0 || !mk.inclusiveLeft && !dfrom)
                    newParts.push({ from: p.from, to: m.from });
                if (dto > 0 || !mk.inclusiveRight && !dto)
                    newParts.push({ from: m.to, to: p.to });
                parts.splice.apply(parts, newParts);
                j += newParts.length - 1;
            }
        }
        return parts;
    }

    // Connect or disconnect spans from a line.
    function detachMarkedSpans(line) {
        var spans = line.markedSpans;
        if (!spans) return;
        for (var i = 0; i < spans.length; ++i)
            spans[i].marker.detachLine(line);
        line.markedSpans = null;
    }
    function attachMarkedSpans(line, spans) {
        if (!spans) return;
        for (var i = 0; i < spans.length; ++i)
            spans[i].marker.attachLine(line);
        line.markedSpans = spans;
    }

    // Helpers used when computing which overlapping collapsed span
    // counts as the larger one.
    function extraLeft(marker) { return marker.inclusiveLeft ? -1 : 0; }
    function extraRight(marker) { return marker.inclusiveRight ? 1 : 0; }

    // Returns a number indicating which of two overlapping collapsed
    // spans is larger (and thus includes the other). Falls back to
    // comparing ids when the spans cover exactly the same range.
    function compareCollapsedMarkers(a, b) {
        var lenDiff = a.lines.length - b.lines.length;
        if (lenDiff != 0) return lenDiff;
        var aPos = a.find(), bPos = b.find();
        var fromCmp = cmp(aPos.from, bPos.from) || extraLeft(a) - extraLeft(b);
        if (fromCmp) return -fromCmp;
        var toCmp = cmp(aPos.to, bPos.to) || extraRight(a) - extraRight(b);
        if (toCmp) return toCmp;
        return b.id - a.id;
    }

    // Find out whether a line ends or starts in a collapsed span. If
    // so, return the marker for that span.
    function collapsedSpanAtSide(line, start) {
        var sps = sawCollapsedSpans && line.markedSpans, found;
        if (sps) for (var sp, i = 0; i < sps.length; ++i) {
            sp = sps[i];
            if (sp.marker.collapsed && (start ? sp.from : sp.to) == null &&
                (!found || compareCollapsedMarkers(found, sp.marker) < 0))
                found = sp.marker;
        }
        return found;
    }
    function collapsedSpanAtStart(line) { return collapsedSpanAtSide(line, true); }
    function collapsedSpanAtEnd(line) { return collapsedSpanAtSide(line, false); }

    // Test whether there exists a collapsed span that partially
    // overlaps (covers the start or end, but not both) of a new span.
    // Such overlap is not allowed.
    function conflictingCollapsedRange(doc, lineNo, from, to, marker) {
        var line = getLine(doc, lineNo);
        var sps = sawCollapsedSpans && line.markedSpans;
        if (sps) for (var i = 0; i < sps.length; ++i) {
            var sp = sps[i];
            if (!sp.marker.collapsed) continue;
            var found = sp.marker.find(0);
            var fromCmp = cmp(found.from, from) || extraLeft(sp.marker) - extraLeft(marker);
            var toCmp = cmp(found.to, to) || extraRight(sp.marker) - extraRight(marker);
            if (fromCmp >= 0 && toCmp <= 0 || fromCmp <= 0 && toCmp >= 0) continue;
            if (fromCmp <= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.to, from) >= 0 : cmp(found.to, from) > 0) ||
                fromCmp >= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.from, to) <= 0 : cmp(found.from, to) < 0))
                return true;
        }
    }

    // A visual line is a line as drawn on the screen. Folding, for
    // example, can cause multiple logical lines to appear on the same
    // visual line. This finds the start of the visual line that the
    // given line is part of (usually that is the line itself).
    function visualLine(line) {
        var merged;
        while (merged = collapsedSpanAtStart(line))
            line = merged.find(-1, true).line;
        return line;
    }

    // Returns an array of logical lines that continue the visual line
    // started by the argument, or undefined if there are no such lines.
    function visualLineContinued(line) {
        var merged, lines;
        while (merged = collapsedSpanAtEnd(line)) {
            line = merged.find(1, true).line;
            (lines || (lines = [])).push(line);
        }
        return lines;
    }

    // Get the line number of the start of the visual line that the
    // given line number is part of.
    function visualLineNo(doc, lineN) {
        var line = getLine(doc, lineN), vis = visualLine(line);
        if (line == vis) return lineN;
        return lineNo(vis);
    }
    // Get the line number of the start of the next visual line after
    // the given line.
    function visualLineEndNo(doc, lineN) {
        if (lineN > doc.lastLine()) return lineN;
        var line = getLine(doc, lineN), merged;
        if (!lineIsHidden(doc, line)) return lineN;
        while (merged = collapsedSpanAtEnd(line))
            line = merged.find(1, true).line;
        return lineNo(line) + 1;
    }

    // Compute whether a line is hidden. Lines count as hidden when they
    // are part of a visual line that starts with another line, or when
    // they are entirely covered by collapsed, non-widget span.
    function lineIsHidden(doc, line) {
        var sps = sawCollapsedSpans && line.markedSpans;
        if (sps) for (var sp, i = 0; i < sps.length; ++i) {
            sp = sps[i];
            if (!sp.marker.collapsed) continue;
            if (sp.from == null) return true;
            if (sp.marker.widgetNode) continue;
            if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp))
                return true;
        }
    }
    function lineIsHiddenInner(doc, line, span) {
        if (span.to == null) {
            var end = span.marker.find(1, true);
            return lineIsHiddenInner(doc, end.line, getMarkedSpanFor(end.line.markedSpans, span.marker));
        }
        if (span.marker.inclusiveRight && span.to == line.text.length)
            return true;
        for (var sp, i = 0; i < line.markedSpans.length; ++i) {
            sp = line.markedSpans[i];
            if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to &&
                (sp.to == null || sp.to != span.from) &&
                (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
                lineIsHiddenInner(doc, line, sp)) return true;
        }
    }

    // LINE WIDGETS

    // Line widgets are block elements displayed above or below a line.

    var LineWidget = CodeMirror.LineWidget = function (doc, node, options) {
        if (options) for (var opt in options) if (options.hasOwnProperty(opt))
            this[opt] = options[opt];
        this.doc = doc;
        this.node = node;
    };
    eventMixin(LineWidget);

    function adjustScrollWhenAboveVisible(cm, line, diff) {
        if (heightAtLine(line) < ((cm.curOp && cm.curOp.scrollTop) || cm.doc.scrollTop))
            addToScrollPos(cm, null, diff);
    }

    LineWidget.prototype.clear = function () {
        var cm = this.doc.cm, ws = this.line.widgets, line = this.line, no = lineNo(line);
        if (no == null || !ws) return;
        for (var i = 0; i < ws.length; ++i) if (ws[i] == this) ws.splice(i--, 1);
        if (!ws.length) line.widgets = null;
        var height = widgetHeight(this);
        updateLineHeight(line, Math.max(0, line.height - height));
        if (cm) runInOp(cm, function () {
            adjustScrollWhenAboveVisible(cm, line, -height);
            regLineChange(cm, no, "widget");
        });
    };
    LineWidget.prototype.changed = function () {
        var oldH = this.height, cm = this.doc.cm, line = this.line;
        this.height = null;
        var diff = widgetHeight(this) - oldH;
        if (!diff) return;
        updateLineHeight(line, line.height + diff);
        if (cm) runInOp(cm, function () {
            cm.curOp.forceUpdate = true;
            adjustScrollWhenAboveVisible(cm, line, diff);
        });
    };

    function widgetHeight(widget) {
        if (widget.height != null) return widget.height;
        var cm = widget.doc.cm;
        if (!cm) return 0;
        if (!contains(document.body, widget.node)) {
            var parentStyle = "position: relative;";
            if (widget.coverGutter)
                parentStyle += "margin-left: -" + cm.display.gutters.offsetWidth + "px;";
            if (widget.noHScroll)
                parentStyle += "width: " + cm.display.wrapper.clientWidth + "px;";
            removeChildrenAndAdd(cm.display.measure, elt("div", [widget.node], null, parentStyle));
        }
        return widget.height = widget.node.parentNode.offsetHeight;
    }

    function addLineWidget(doc, handle, node, options) {
        var widget = new LineWidget(doc, node, options);
        var cm = doc.cm;
        if (cm && widget.noHScroll) cm.display.alignWidgets = true;
        changeLine(doc, handle, "widget", function (line) {
            var widgets = line.widgets || (line.widgets = []);
            if (widget.insertAt == null) widgets.push(widget);
            else widgets.splice(Math.min(widgets.length - 1, Math.max(0, widget.insertAt)), 0, widget);
            widget.line = line;
            if (cm && !lineIsHidden(doc, line)) {
                var aboveVisible = heightAtLine(line) < doc.scrollTop;
                updateLineHeight(line, line.height + widgetHeight(widget));
                if (aboveVisible) addToScrollPos(cm, null, widget.height);
                cm.curOp.forceUpdate = true;
            }
            return true;
        });
        return widget;
    }

    // LINE DATA STRUCTURE

    // Line objects. These hold state related to a line, including
    // highlighting info (the styles array).
    var Line = CodeMirror.Line = function (text, markedSpans, estimateHeight) {
        this.text = text;
        attachMarkedSpans(this, markedSpans);
        this.height = estimateHeight ? estimateHeight(this) : 1;
    };
    eventMixin(Line);
    Line.prototype.lineNo = function () { return lineNo(this); };

    // Change the content (text, markers) of a line. Automatically
    // invalidates cached information and tries to re-estimate the
    // line's height.
    function updateLine(line, text, markedSpans, estimateHeight) {
        line.text = text;
        if (line.stateAfter) line.stateAfter = null;
        if (line.styles) line.styles = null;
        if (line.order != null) line.order = null;
        detachMarkedSpans(line);
        attachMarkedSpans(line, markedSpans);
        var estHeight = estimateHeight ? estimateHeight(line) : 1;
        if (estHeight != line.height) updateLineHeight(line, estHeight);
    }

    // Detach a line from the document tree and its markers.
    function cleanUpLine(line) {
        line.parent = null;
        detachMarkedSpans(line);
    }

    function extractLineClasses(type, output) {
        if (type) for (; ;) {
            var lineClass = type.match(/(?:^|\s+)line-(background-)?(\S+)/);
            if (!lineClass) break;
            type = type.slice(0, lineClass.index) + type.slice(lineClass.index + lineClass[0].length);
            var prop = lineClass[1] ? "bgClass" : "textClass";
            if (output[prop] == null)
                output[prop] = lineClass[2];
            else if (!(new RegExp("(?:^|\s)" + lineClass[2] + "(?:$|\s)")).test(output[prop]))
                output[prop] += " " + lineClass[2];
        }
        return type;
    }

    function callBlankLine(mode, state) {
        if (mode.blankLine) return mode.blankLine(state);
        if (!mode.innerMode) return;
        var inner = CodeMirror.innerMode(mode, state);
        if (inner.mode.blankLine) return inner.mode.blankLine(inner.state);
    }

    function readToken(mode, stream, state, inner) {
        for (var i = 0; i < 10; i++) {
            if (inner) inner[0] = CodeMirror.innerMode(mode, state).mode;
            var style = mode.token(stream, state);
            if (stream.pos > stream.start) return style;
        }
        throw new Error("Mode " + mode.name + " failed to advance stream.");
    }

    // Utility for getTokenAt and getLineTokens
    function takeToken(cm, pos, precise, asArray) {
        function getObj(copy) {
            return {
                start: stream.start, end: stream.pos,
                string: stream.current(),
                type: style || null,
                state: copy ? copyState(doc.mode, state) : state
            };
        }

        var doc = cm.doc, mode = doc.mode, style;
        pos = clipPos(doc, pos);
        var line = getLine(doc, pos.line), state = getStateBefore(cm, pos.line, precise);
        var stream = new StringStream(line.text, cm.options.tabSize), tokens;
        if (asArray) tokens = [];
        while ((asArray || stream.pos < pos.ch) && !stream.eol()) {
            stream.start = stream.pos;
            style = readToken(mode, stream, state);
            if (asArray) tokens.push(getObj(true));
        }
        return asArray ? tokens : getObj();
    }

    // Run the given mode's parser over a line, calling f for each token.
    function runMode(cm, text, mode, state, f, lineClasses, forceToEnd) {
        var flattenSpans = mode.flattenSpans;
        if (flattenSpans == null) flattenSpans = cm.options.flattenSpans;
        var curStart = 0, curStyle = null;
        var stream = new StringStream(text, cm.options.tabSize), style;
        var inner = cm.options.addModeClass && [null];
        if (text == "") extractLineClasses(callBlankLine(mode, state), lineClasses);
        while (!stream.eol()) {
            if (stream.pos > cm.options.maxHighlightLength) {
                flattenSpans = false;
                if (forceToEnd) processLine(cm, text, state, stream.pos);
                stream.pos = text.length;
                style = null;
            } else {
                style = extractLineClasses(readToken(mode, stream, state, inner), lineClasses);
            }
            if (inner) {
                var mName = inner[0].name;
                if (mName) style = "m-" + (style ? mName + " " + style : mName);
            }
            if (!flattenSpans || curStyle != style) {
                while (curStart < stream.start) {
                    curStart = Math.min(stream.start, curStart + 50000);
                    f(curStart, curStyle);
                }
                curStyle = style;
            }
            stream.start = stream.pos;
        }
        while (curStart < stream.pos) {
            // Webkit seems to refuse to render text nodes longer than 57444 characters
            var pos = Math.min(stream.pos, curStart + 50000);
            f(pos, curStyle);
            curStart = pos;
        }
    }

    // Compute a style array (an array starting with a mode generation
    // -- for invalidation -- followed by pairs of end positions and
    // style strings), which is used to highlight the tokens on the
    // line.
    function highlightLine(cm, line, state, forceToEnd) {
        // A styles array always starts with a number identifying the
        // mode/overlays that it is based on (for easy invalidation).
        var st = [cm.state.modeGen], lineClasses = {};
        // Compute the base array of styles
        runMode(cm, line.text, cm.doc.mode, state, function (end, style) {
            st.push(end, style);
        }, lineClasses, forceToEnd);

        // Run overlays, adjust style array.
        for (var o = 0; o < cm.state.overlays.length; ++o) {
            var overlay = cm.state.overlays[o], i = 1, at = 0;
            runMode(cm, line.text, overlay.mode, true, function (end, style) {
                var start = i;
                // Ensure there's a token end at the current position, and that i points at it
                while (at < end) {
                    var i_end = st[i];
                    if (i_end > end)
                        st.splice(i, 1, end, st[i + 1], i_end);
                    i += 2;
                    at = Math.min(end, i_end);
                }
                if (!style) return;
                if (overlay.opaque) {
                    st.splice(start, i - start, end, "cm-overlay " + style);
                    i = start + 2;
                } else {
                    for (; start < i; start += 2) {
                        var cur = st[start + 1];
                        st[start + 1] = (cur ? cur + " " : "") + "cm-overlay " + style;
                    }
                }
            }, lineClasses);
        }

        return { styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null };
    }

    function getLineStyles(cm, line, updateFrontier) {
        if (!line.styles || line.styles[0] != cm.state.modeGen) {
            var state = getStateBefore(cm, lineNo(line));
            var result = highlightLine(cm, line, line.text.length > cm.options.maxHighlightLength ? copyState(cm.doc.mode, state) : state);
            line.stateAfter = state;
            line.styles = result.styles;
            if (result.classes) line.styleClasses = result.classes;
            else if (line.styleClasses) line.styleClasses = null;
            if (updateFrontier === cm.doc.frontier) cm.doc.frontier++;
        }
        return line.styles;
    }

    // Lightweight form of highlight -- proceed over this line and
    // update state, but don't save a style array. Used for lines that
    // aren't currently visible.
    function processLine(cm, text, state, startAt) {
        var mode = cm.doc.mode;
        var stream = new StringStream(text, cm.options.tabSize);
        stream.start = stream.pos = startAt || 0;
        if (text == "") callBlankLine(mode, state);
        while (!stream.eol()) {
            readToken(mode, stream, state);
            stream.start = stream.pos;
        }
    }

    // Convert a style as returned by a mode (either null, or a string
    // containing one or more styles) to a CSS style. This is cached,
    // and also looks for line-wide styles.
    var styleToClassCache = {}, styleToClassCacheWithMode = {};
    function interpretTokenStyle(style, options) {
        if (!style || /^\s*$/.test(style)) return null;
        var cache = options.addModeClass ? styleToClassCacheWithMode : styleToClassCache;
        return cache[style] ||
            (cache[style] = style.replace(/\S+/g, "cm-$&"));
    }

    // Render the DOM representation of the text of a line. Also builds
    // up a 'line map', which points at the DOM nodes that represent
    // specific stretches of text, and is used by the measuring code.
    // The returned object contains the DOM node, this map, and
    // information about line-wide styles that were set by the mode.
    function buildLineContent(cm, lineView) {
        // The padding-right forces the element to have a 'border', which
        // is needed on Webkit to be able to get line-level bounding
        // rectangles for it (in measureChar).
        var content = elt("span", null, null, webkit ? "padding-right: .1px" : null);
        var builder = {
            pre: elt("pre", [content], "CodeMirror-line"), content: content,
            col: 0, pos: 0, cm: cm,
            splitSpaces: (ie || webkit) && cm.getOption("lineWrapping")
        };
        lineView.measure = {};

        // Iterate over the logical lines that make up this visual line.
        for (var i = 0; i <= (lineView.rest ? lineView.rest.length : 0); i++) {
            var line = i ? lineView.rest[i - 1] : lineView.line, order;
            builder.pos = 0;
            builder.addToken = buildToken;
            // Optionally wire in some hacks into the token-rendering
            // algorithm, to deal with browser quirks.
            if (hasBadBidiRects(cm.display.measure) && (order = getOrder(line)))
                builder.addToken = buildTokenBadBidi(builder.addToken, order);
            builder.map = [];
            var allowFrontierUpdate = lineView != cm.display.externalMeasured && lineNo(line);
            insertLineContent(line, builder, getLineStyles(cm, line, allowFrontierUpdate));
            if (line.styleClasses) {
                if (line.styleClasses.bgClass)
                    builder.bgClass = joinClasses(line.styleClasses.bgClass, builder.bgClass || "");
                if (line.styleClasses.textClass)
                    builder.textClass = joinClasses(line.styleClasses.textClass, builder.textClass || "");
            }

            // Ensure at least a single node is present, for measuring.
            if (builder.map.length == 0)
                builder.map.push(0, 0, builder.content.appendChild(zeroWidthElement(cm.display.measure)));

            // Store the map and a cache object for the current logical line
            if (i == 0) {
                lineView.measure.map = builder.map;
                lineView.measure.cache = {};
            } else {
                (lineView.measure.maps || (lineView.measure.maps = [])).push(builder.map);
                (lineView.measure.caches || (lineView.measure.caches = [])).push({});
            }
        }

        // See issue #2901
        if (webkit) {
            var last = builder.content.lastChild
            if (/\bcm-tab\b/.test(last.className) || (last.querySelector && last.querySelector(".cm-tab")))
                builder.content.className = "cm-tab-wrap-hack";
        }

        signal(cm, "renderLine", cm, lineView.line, builder.pre);
        if (builder.pre.className)
            builder.textClass = joinClasses(builder.pre.className, builder.textClass || "");

        return builder;
    }

    function defaultSpecialCharPlaceholder(ch) {
        var token = elt("span", "\u2022", "cm-invalidchar");
        token.title = "\\u" + ch.charCodeAt(0).toString(16);
        token.setAttribute("aria-label", token.title);
        return token;
    }

    // Build up the DOM representation for a single token, and add it to
    // the line map. Takes care to render special characters separately.
    function buildToken(builder, text, style, startStyle, endStyle, title, css) {
        if (!text) return;
        var displayText = builder.splitSpaces ? text.replace(/ {3,}/g, splitSpaces) : text;
        var special = builder.cm.state.specialChars, mustWrap = false;
        if (!special.test(text)) {
            builder.col += text.length;
            var content = document.createTextNode(displayText);
            builder.map.push(builder.pos, builder.pos + text.length, content);
            if (ie && ie_version < 9) mustWrap = true;
            builder.pos += text.length;
        } else {
            var content = document.createDocumentFragment(), pos = 0;
            while (true) {
                special.lastIndex = pos;
                var m = special.exec(text);
                var skipped = m ? m.index - pos : text.length - pos;
                if (skipped) {
                    var txt = document.createTextNode(displayText.slice(pos, pos + skipped));
                    if (ie && ie_version < 9) content.appendChild(elt("span", [txt]));
                    else content.appendChild(txt);
                    builder.map.push(builder.pos, builder.pos + skipped, txt);
                    builder.col += skipped;
                    builder.pos += skipped;
                }
                if (!m) break;
                pos += skipped + 1;
                if (m[0] == "\t") {
                    var tabSize = builder.cm.options.tabSize, tabWidth = tabSize - builder.col % tabSize;
                    var txt = content.appendChild(elt("span", spaceStr(tabWidth), "cm-tab"));
                    txt.setAttribute("role", "presentation");
                    txt.setAttribute("cm-text", "\t");
                    builder.col += tabWidth;
                } else if (m[0] == "\r" || m[0] == "\n") {
                    var txt = content.appendChild(elt("span", m[0] == "\r" ? "\u240d" : "\u2424", "cm-invalidchar"));
                    txt.setAttribute("cm-text", m[0]);
                    builder.col += 1;
                } else {
                    var txt = builder.cm.options.specialCharPlaceholder(m[0]);
                    txt.setAttribute("cm-text", m[0]);
                    if (ie && ie_version < 9) content.appendChild(elt("span", [txt]));
                    else content.appendChild(txt);
                    builder.col += 1;
                }
                builder.map.push(builder.pos, builder.pos + 1, txt);
                builder.pos++;
            }
        }
        if (style || startStyle || endStyle || mustWrap || css) {
            var fullStyle = style || "";
            if (startStyle) fullStyle += startStyle;
            if (endStyle) fullStyle += endStyle;
            var token = elt("span", [content], fullStyle, css);
            if (title) token.title = title;
            return builder.content.appendChild(token);
        }
        builder.content.appendChild(content);
    }

    function splitSpaces(old) {
        var out = " ";
        for (var i = 0; i < old.length - 2; ++i) out += i % 2 ? " " : "\u00a0";
        out += " ";
        return out;
    }

    // Work around nonsense dimensions being reported for stretches of
    // right-to-left text.
    function buildTokenBadBidi(inner, order) {
        return function (builder, text, style, startStyle, endStyle, title, css) {
            style = style ? style + " cm-force-border" : "cm-force-border";
            var start = builder.pos, end = start + text.length;
            for (; ;) {
                // Find the part that overlaps with the start of this text
                for (var i = 0; i < order.length; i++) {
                    var part = order[i];
                    if (part.to > start && part.from <= start) break;
                }
                if (part.to >= end) return inner(builder, text, style, startStyle, endStyle, title, css);
                inner(builder, text.slice(0, part.to - start), style, startStyle, null, title, css);
                startStyle = null;
                text = text.slice(part.to - start);
                start = part.to;
            }
        };
    }

    function buildCollapsedSpan(builder, size, marker, ignoreWidget) {
        var widget = !ignoreWidget && marker.widgetNode;
        if (widget) builder.map.push(builder.pos, builder.pos + size, widget);
        if (!ignoreWidget && builder.cm.display.input.needsContentAttribute) {
            if (!widget)
                widget = builder.content.appendChild(document.createElement("span"));
            widget.setAttribute("cm-marker", marker.id);
        }
        if (widget) {
            builder.cm.display.input.setUneditable(widget);
            builder.content.appendChild(widget);
        }
        builder.pos += size;
    }

    // Outputs a number of spans to make up a line, taking highlighting
    // and marked text into account.
    function insertLineContent(line, builder, styles) {
        var spans = line.markedSpans, allText = line.text, at = 0;
        if (!spans) {
            for (var i = 1; i < styles.length; i += 2)
                builder.addToken(builder, allText.slice(at, at = styles[i]), interpretTokenStyle(styles[i + 1], builder.cm.options));
            return;
        }

        var len = allText.length, pos = 0, i = 1, text = "", style, css;
        var nextChange = 0, spanStyle, spanEndStyle, spanStartStyle, title, collapsed;
        for (; ;) {
            if (nextChange == pos) { // Update current marker set
                spanStyle = spanEndStyle = spanStartStyle = title = css = "";
                collapsed = null; nextChange = Infinity;
                var foundBookmarks = [], endStyles
                for (var j = 0; j < spans.length; ++j) {
                    var sp = spans[j], m = sp.marker;
                    if (m.type == "bookmark" && sp.from == pos && m.widgetNode) {
                        foundBookmarks.push(m);
                    } else if (sp.from <= pos && (sp.to == null || sp.to > pos || m.collapsed && sp.to == pos && sp.from == pos)) {
                        if (sp.to != null && sp.to != pos && nextChange > sp.to) {
                            nextChange = sp.to;
                            spanEndStyle = "";
                        }
                        if (m.className) spanStyle += " " + m.className;
                        if (m.css) css = (css ? css + ";" : "") + m.css;
                        if (m.startStyle && sp.from == pos) spanStartStyle += " " + m.startStyle;
                        if (m.endStyle && sp.to == nextChange) (endStyles || (endStyles = [])).push(m.endStyle, sp.to)
                        if (m.title && !title) title = m.title;
                        if (m.collapsed && (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0))
                            collapsed = sp;
                    } else if (sp.from > pos && nextChange > sp.from) {
                        nextChange = sp.from;
                    }
                }
                if (endStyles) for (var j = 0; j < endStyles.length; j += 2)
                    if (endStyles[j + 1] == nextChange) spanEndStyle += " " + endStyles[j]

                if (!collapsed || collapsed.from == pos) for (var j = 0; j < foundBookmarks.length; ++j)
                    buildCollapsedSpan(builder, 0, foundBookmarks[j]);
                if (collapsed && (collapsed.from || 0) == pos) {
                    buildCollapsedSpan(builder, (collapsed.to == null ? len + 1 : collapsed.to) - pos,
                        collapsed.marker, collapsed.from == null);
                    if (collapsed.to == null) return;
                    if (collapsed.to == pos) collapsed = false;
                }
            }
            if (pos >= len) break;

            var upto = Math.min(len, nextChange);
            while (true) {
                if (text) {
                    var end = pos + text.length;
                    if (!collapsed) {
                        var tokenText = end > upto ? text.slice(0, upto - pos) : text;
                        builder.addToken(builder, tokenText, style ? style + spanStyle : spanStyle,
                            spanStartStyle, pos + tokenText.length == nextChange ? spanEndStyle : "", title, css);
                    }
                    if (end >= upto) { text = text.slice(upto - pos); pos = upto; break; }
                    pos = end;
                    spanStartStyle = "";
                }
                text = allText.slice(at, at = styles[i++]);
                style = interpretTokenStyle(styles[i++], builder.cm.options);
            }
        }
    }

    // DOCUMENT DATA STRUCTURE

    // By default, updates that start and end at the beginning of a line
    // are treated specially, in order to make the association of line
    // widgets and marker elements with the text behave more intuitive.
    function isWholeLineUpdate(doc, change) {
        return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == "" &&
            (!doc.cm || doc.cm.options.wholeLineUpdateBefore);
    }

    // Perform a change on the document data structure.
    function updateDoc(doc, change, markedSpans, estimateHeight) {
        function spansFor(n) { return markedSpans ? markedSpans[n] : null; }
        function update(line, text, spans) {
            updateLine(line, text, spans, estimateHeight);
            signalLater(line, "change", line, change);
        }
        function linesFor(start, end) {
            for (var i = start, result = []; i < end; ++i)
                result.push(new Line(text[i], spansFor(i), estimateHeight));
            return result;
        }

        var from = change.from, to = change.to, text = change.text;
        var firstLine = getLine(doc, from.line), lastLine = getLine(doc, to.line);
        var lastText = lst(text), lastSpans = spansFor(text.length - 1), nlines = to.line - from.line;

        // Adjust the line structure
        if (change.full) {
            doc.insert(0, linesFor(0, text.length));
            doc.remove(text.length, doc.size - text.length);
        } else if (isWholeLineUpdate(doc, change)) {
            // This is a whole-line replace. Treated specially to make
            // sure line objects move the way they are supposed to.
            var added = linesFor(0, text.length - 1);
            update(lastLine, lastLine.text, lastSpans);
            if (nlines) doc.remove(from.line, nlines);
            if (added.length) doc.insert(from.line, added);
        } else if (firstLine == lastLine) {
            if (text.length == 1) {
                update(firstLine, firstLine.text.slice(0, from.ch) + lastText + firstLine.text.slice(to.ch), lastSpans);
            } else {
                var added = linesFor(1, text.length - 1);
                added.push(new Line(lastText + firstLine.text.slice(to.ch), lastSpans, estimateHeight));
                update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));
                doc.insert(from.line + 1, added);
            }
        } else if (text.length == 1) {
            update(firstLine, firstLine.text.slice(0, from.ch) + text[0] + lastLine.text.slice(to.ch), spansFor(0));
            doc.remove(from.line + 1, nlines);
        } else {
            update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));
            update(lastLine, lastText + lastLine.text.slice(to.ch), lastSpans);
            var added = linesFor(1, text.length - 1);
            if (nlines > 1) doc.remove(from.line + 1, nlines - 1);
            doc.insert(from.line + 1, added);
        }

        signalLater(doc, "change", doc, change);
    }

    // The document is represented as a BTree consisting of leaves, with
    // chunk of lines in them, and branches, with up to ten leaves or
    // other branch nodes below them. The top node is always a branch
    // node, and is the document object itself (meaning it has
    // additional methods and properties).
    //
    // All nodes have parent links. The tree is used both to go from
    // line numbers to line objects, and to go from objects to numbers.
    // It also indexes by height, and is used to convert between height
    // and line object, and to find the total height of the document.
    //
    // See also http://marijnhaverbeke.nl/blog/codemirror-line-tree.html

    function LeafChunk(lines) {
        this.lines = lines;
        this.parent = null;
        for (var i = 0, height = 0; i < lines.length; ++i) {
            lines[i].parent = this;
            height += lines[i].height;
        }
        this.height = height;
    }

    LeafChunk.prototype = {
        chunkSize: function () { return this.lines.length; },
        // Remove the n lines at offset 'at'.
        removeInner: function (at, n) {
            for (var i = at, e = at + n; i < e; ++i) {
                var line = this.lines[i];
                this.height -= line.height;
                cleanUpLine(line);
                signalLater(line, "delete");
            }
            this.lines.splice(at, n);
        },
        // Helper used to collapse a small branch into a single leaf.
        collapse: function (lines) {
            lines.push.apply(lines, this.lines);
        },
        // Insert the given array of lines at offset 'at', count them as
        // having the given height.
        insertInner: function (at, lines, height) {
            this.height += height;
            this.lines = this.lines.slice(0, at).concat(lines).concat(this.lines.slice(at));
            for (var i = 0; i < lines.length; ++i) lines[i].parent = this;
        },
        // Used to iterate over a part of the tree.
        iterN: function (at, n, op) {
            for (var e = at + n; at < e; ++at)
                if (op(this.lines[at])) return true;
        }
    };

    function BranchChunk(children) {
        this.children = children;
        var size = 0, height = 0;
        for (var i = 0; i < children.length; ++i) {
            var ch = children[i];
            size += ch.chunkSize(); height += ch.height;
            ch.parent = this;
        }
        this.size = size;
        this.height = height;
        this.parent = null;
    }

    BranchChunk.prototype = {
        chunkSize: function () { return this.size; },
        removeInner: function (at, n) {
            this.size -= n;
            for (var i = 0; i < this.children.length; ++i) {
                var child = this.children[i], sz = child.chunkSize();
                if (at < sz) {
                    var rm = Math.min(n, sz - at), oldHeight = child.height;
                    child.removeInner(at, rm);
                    this.height -= oldHeight - child.height;
                    if (sz == rm) { this.children.splice(i--, 1); child.parent = null; }
                    if ((n -= rm) == 0) break;
                    at = 0;
                } else at -= sz;
            }
            // If the result is smaller than 25 lines, ensure that it is a
            // single leaf node.
            if (this.size - n < 25 &&
                (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))) {
                var lines = [];
                this.collapse(lines);
                this.children = [new LeafChunk(lines)];
                this.children[0].parent = this;
            }
        },
        collapse: function (lines) {
            for (var i = 0; i < this.children.length; ++i) this.children[i].collapse(lines);
        },
        insertInner: function (at, lines, height) {
            this.size += lines.length;
            this.height += height;
            for (var i = 0; i < this.children.length; ++i) {
                var child = this.children[i], sz = child.chunkSize();
                if (at <= sz) {
                    child.insertInner(at, lines, height);
                    if (child.lines && child.lines.length > 50) {
                        // To avoid memory thrashing when child.lines is huge (e.g. first view of a large file), it's never spliced.
                        // Instead, small slices are taken. They're taken in order because sequential memory accesses are fastest.
                        var remaining = child.lines.length % 25 + 25
                        for (var pos = remaining; pos < child.lines.length;) {
                            var leaf = new LeafChunk(child.lines.slice(pos, pos += 25));
                            child.height -= leaf.height;
                            this.children.splice(++i, 0, leaf);
                            leaf.parent = this;
                        }
                        child.lines = child.lines.slice(0, remaining);
                        this.maybeSpill();
                    }
                    break;
                }
                at -= sz;
            }
        },
        // When a node has grown, check whether it should be split.
        maybeSpill: function () {
            var me = this;
            var children = me.children;
            var numChildren = children.length;
            if (numChildren <= 10) return;
            // To avoid memory thrashing when the children array is huge (e.g. first view of a large file), it's never spliced.
            // Instead, small slices are taken. They're taken in order because sequential memory accesses are fastest.
            var parent = me.parent || me;
            var numMoreBranches = Math.ceil((numChildren - 10) / 5);
            var firstBranchNumChildren = numChildren - numMoreBranches * 5;
            var firstBranch = new BranchChunk(children.slice(0, firstBranchNumChildren));
            var branches = [firstBranch];
            firstBranch.parent = parent;
            for (var i = 0; i < numMoreBranches; i++) {
                var branchStart = firstBranchNumChildren + i * 5;
                var branch = new BranchChunk(children.slice(branchStart, branchStart + 5));
                branches.push(branch);
                branch.parent = parent;
            }
            if (parent === me) {
                parent.children = branches;
            } else {
                var myIndex = indexOf(parent.children, me);
                parent.children.splice(myIndex, 1, branches);
            }
            parent.maybeSpill();
        },
        iterN: function (at, n, op) {
            for (var i = 0; i < this.children.length; ++i) {
                var child = this.children[i], sz = child.chunkSize();
                if (at < sz) {
                    var used = Math.min(n, sz - at);
                    if (child.iterN(at, used, op)) return true;
                    if ((n -= used) == 0) break;
                    at = 0;
                } else at -= sz;
            }
        }
    };

    var nextDocId = 0;
    var Doc = CodeMirror.Doc = function (text, mode, firstLine, lineSep) {
        if (!(this instanceof Doc)) return new Doc(text, mode, firstLine, lineSep);
        if (firstLine == null) firstLine = 0;

        BranchChunk.call(this, [new LeafChunk([new Line("", null)])]);
        this.first = firstLine;
        this.scrollTop = this.scrollLeft = 0;
        this.cantEdit = false;
        this.cleanGeneration = 1;
        this.frontier = firstLine;
        var start = Pos(firstLine, 0);
        this.sel = simpleSelection(start);
        this.history = new History(null);
        this.id = ++nextDocId;
        this.modeOption = mode;
        this.lineSep = lineSep;
        this.extend = false;

        if (typeof text == "string") text = this.splitLines(text);
        updateDoc(this, { from: start, to: start, text: text });
        setSelection(this, simpleSelection(start), sel_dontScroll);
    };

    Doc.prototype = createObj(BranchChunk.prototype, {
        constructor: Doc,
        // Iterate over the document. Supports two forms -- with only one
        // argument, it calls that for each line in the document. With
        // three, it iterates over the range given by the first two (with
        // the second being non-inclusive).
        iter: function (from, to, op) {
            if (op) this.iterN(from - this.first, to - from, op);
            else this.iterN(this.first, this.first + this.size, from);
        },

        // Non-public interface for adding and removing lines.
        insert: function (at, lines) {
            var height = 0;
            for (var i = 0; i < lines.length; ++i) height += lines[i].height;
            this.insertInner(at - this.first, lines, height);
        },
        remove: function (at, n) { this.removeInner(at - this.first, n); },

        // From here, the methods are part of the public interface. Most
        // are also available from CodeMirror (editor) instances.

        getValue: function (lineSep) {
            var lines = getLines(this, this.first, this.first + this.size);
            if (lineSep === false) return lines;
            return lines.join(lineSep || this.lineSeparator());
        },
        setValue: docMethodOp(function (code) {
            var top = Pos(this.first, 0), last = this.first + this.size - 1;
            makeChange(this, {
                from: top, to: Pos(last, getLine(this, last).text.length),
                text: this.splitLines(code), origin: "setValue", full: true
            }, true);
            setSelection(this, simpleSelection(top));
        }),
        replaceRange: function (code, from, to, origin) {
            from = clipPos(this, from);
            to = to ? clipPos(this, to) : from;
            replaceRange(this, code, from, to, origin);
        },
        getRange: function (from, to, lineSep) {
            var lines = getBetween(this, clipPos(this, from), clipPos(this, to));
            if (lineSep === false) return lines;
            return lines.join(lineSep || this.lineSeparator());
        },

        getLine: function (line) { var l = this.getLineHandle(line); return l && l.text; },

        getLineHandle: function (line) { if (isLine(this, line)) return getLine(this, line); },
        getLineNumber: function (line) { return lineNo(line); },

        getLineHandleVisualStart: function (line) {
            if (typeof line == "number") line = getLine(this, line);
            return visualLine(line);
        },

        lineCount: function () { return this.size; },
        firstLine: function () { return this.first; },
        lastLine: function () { return this.first + this.size - 1; },

        clipPos: function (pos) { return clipPos(this, pos); },

        getCursor: function (start) {
            var range = this.sel.primary(), pos;
            if (start == null || start == "head") pos = range.head;
            else if (start == "anchor") pos = range.anchor;
            else if (start == "end" || start == "to" || start === false) pos = range.to();
            else pos = range.from();
            return pos;
        },
        listSelections: function () { return this.sel.ranges; },
        somethingSelected: function () { return this.sel.somethingSelected(); },

        setCursor: docMethodOp(function (line, ch, options) {
            setSimpleSelection(this, clipPos(this, typeof line == "number" ? Pos(line, ch || 0) : line), null, options);
        }),
        setSelection: docMethodOp(function (anchor, head, options) {
            setSimpleSelection(this, clipPos(this, anchor), clipPos(this, head || anchor), options);
        }),
        extendSelection: docMethodOp(function (head, other, options) {
            extendSelection(this, clipPos(this, head), other && clipPos(this, other), options);
        }),
        extendSelections: docMethodOp(function (heads, options) {
            extendSelections(this, clipPosArray(this, heads), options);
        }),
        extendSelectionsBy: docMethodOp(function (f, options) {
            var heads = map(this.sel.ranges, f);
            extendSelections(this, clipPosArray(this, heads), options);
        }),
        setSelections: docMethodOp(function (ranges, primary, options) {
            if (!ranges.length) return;
            for (var i = 0, out = []; i < ranges.length; i++)
                out[i] = new Range(clipPos(this, ranges[i].anchor),
                    clipPos(this, ranges[i].head));
            if (primary == null) primary = Math.min(ranges.length - 1, this.sel.primIndex);
            setSelection(this, normalizeSelection(out, primary), options);
        }),
        addSelection: docMethodOp(function (anchor, head, options) {
            var ranges = this.sel.ranges.slice(0);
            ranges.push(new Range(clipPos(this, anchor), clipPos(this, head || anchor)));
            setSelection(this, normalizeSelection(ranges, ranges.length - 1), options);
        }),

        getSelection: function (lineSep) {
            var ranges = this.sel.ranges, lines;
            for (var i = 0; i < ranges.length; i++) {
                var sel = getBetween(this, ranges[i].from(), ranges[i].to());
                lines = lines ? lines.concat(sel) : sel;
            }
            if (lineSep === false) return lines;
            else return lines.join(lineSep || this.lineSeparator());
        },
        getSelections: function (lineSep) {
            var parts = [], ranges = this.sel.ranges;
            for (var i = 0; i < ranges.length; i++) {
                var sel = getBetween(this, ranges[i].from(), ranges[i].to());
                if (lineSep !== false) sel = sel.join(lineSep || this.lineSeparator());
                parts[i] = sel;
            }
            return parts;
        },
        replaceSelection: function (code, collapse, origin) {
            var dup = [];
            for (var i = 0; i < this.sel.ranges.length; i++)
                dup[i] = code;
            this.replaceSelections(dup, collapse, origin || "+input");
        },
        replaceSelections: docMethodOp(function (code, collapse, origin) {
            var changes = [], sel = this.sel;
            for (var i = 0; i < sel.ranges.length; i++) {
                var range = sel.ranges[i];
                changes[i] = { from: range.from(), to: range.to(), text: this.splitLines(code[i]), origin: origin };
            }
            var newSel = collapse && collapse != "end" && computeReplacedSel(this, changes, collapse);
            for (var i = changes.length - 1; i >= 0; i--)
                makeChange(this, changes[i]);
            if (newSel) setSelectionReplaceHistory(this, newSel);
            else if (this.cm) ensureCursorVisible(this.cm);
        }),
        undo: docMethodOp(function () { makeChangeFromHistory(this, "undo"); }),
        redo: docMethodOp(function () { makeChangeFromHistory(this, "redo"); }),
        undoSelection: docMethodOp(function () { makeChangeFromHistory(this, "undo", true); }),
        redoSelection: docMethodOp(function () { makeChangeFromHistory(this, "redo", true); }),

        setExtending: function (val) { this.extend = val; },
        getExtending: function () { return this.extend; },

        historySize: function () {
            var hist = this.history, done = 0, undone = 0;
            for (var i = 0; i < hist.done.length; i++) if (!hist.done[i].ranges)++done;
            for (var i = 0; i < hist.undone.length; i++) if (!hist.undone[i].ranges)++undone;
            return { undo: done, redo: undone };
        },
        clearHistory: function () { this.history = new History(this.history.maxGeneration); },

        markClean: function () {
            this.cleanGeneration = this.changeGeneration(true);
        },
        changeGeneration: function (forceSplit) {
            if (forceSplit)
                this.history.lastOp = this.history.lastSelOp = this.history.lastOrigin = null;
            return this.history.generation;
        },
        isClean: function (gen) {
            return this.history.generation == (gen || this.cleanGeneration);
        },

        getHistory: function () {
            return {
                done: copyHistoryArray(this.history.done),
                undone: copyHistoryArray(this.history.undone)
            };
        },
        setHistory: function (histData) {
            var hist = this.history = new History(this.history.maxGeneration);
            hist.done = copyHistoryArray(histData.done.slice(0), null, true);
            hist.undone = copyHistoryArray(histData.undone.slice(0), null, true);
        },

        addLineClass: docMethodOp(function (handle, where, cls) {
            return changeLine(this, handle, where == "gutter" ? "gutter" : "class", function (line) {
                var prop = where == "text" ? "textClass"
                    : where == "background" ? "bgClass"
                        : where == "gutter" ? "gutterClass" : "wrapClass";
                if (!line[prop]) line[prop] = cls;
                else if (classTest(cls).test(line[prop])) return false;
                else line[prop] += " " + cls;
                return true;
            });
        }),
        removeLineClass: docMethodOp(function (handle, where, cls) {
            return changeLine(this, handle, where == "gutter" ? "gutter" : "class", function (line) {
                var prop = where == "text" ? "textClass"
                    : where == "background" ? "bgClass"
                        : where == "gutter" ? "gutterClass" : "wrapClass";
                var cur = line[prop];
                if (!cur) return false;
                else if (cls == null) line[prop] = null;
                else {
                    var found = cur.match(classTest(cls));
                    if (!found) return false;
                    var end = found.index + found[0].length;
                    line[prop] = cur.slice(0, found.index) + (!found.index || end == cur.length ? "" : " ") + cur.slice(end) || null;
                }
                return true;
            });
        }),

        addLineWidget: docMethodOp(function (handle, node, options) {
            return addLineWidget(this, handle, node, options);
        }),
        removeLineWidget: function (widget) { widget.clear(); },

        markText: function (from, to, options) {
            return markText(this, clipPos(this, from), clipPos(this, to), options, options && options.type || "range");
        },
        setBookmark: function (pos, options) {
            var realOpts = {
                replacedWith: options && (options.nodeType == null ? options.widget : options),
                insertLeft: options && options.insertLeft,
                clearWhenEmpty: false, shared: options && options.shared,
                handleMouseEvents: options && options.handleMouseEvents
            };
            pos = clipPos(this, pos);
            return markText(this, pos, pos, realOpts, "bookmark");
        },
        findMarksAt: function (pos) {
            pos = clipPos(this, pos);
            var markers = [], spans = getLine(this, pos.line).markedSpans;
            if (spans) for (var i = 0; i < spans.length; ++i) {
                var span = spans[i];
                if ((span.from == null || span.from <= pos.ch) &&
                    (span.to == null || span.to >= pos.ch))
                    markers.push(span.marker.parent || span.marker);
            }
            return markers;
        },
        findMarks: function (from, to, filter) {
            from = clipPos(this, from); to = clipPos(this, to);
            var found = [], lineNo = from.line;
            this.iter(from.line, to.line + 1, function (line) {
                var spans = line.markedSpans;
                if (spans) for (var i = 0; i < spans.length; i++) {
                    var span = spans[i];
                    if (!(span.to != null && lineNo == from.line && from.ch >= span.to ||
                        span.from == null && lineNo != from.line ||
                        span.from != null && lineNo == to.line && span.from >= to.ch) &&
                        (!filter || filter(span.marker)))
                        found.push(span.marker.parent || span.marker);
                }
                ++lineNo;
            });
            return found;
        },
        getAllMarks: function () {
            var markers = [];
            this.iter(function (line) {
                var sps = line.markedSpans;
                if (sps) for (var i = 0; i < sps.length; ++i)
                    if (sps[i].from != null) markers.push(sps[i].marker);
            });
            return markers;
        },

        posFromIndex: function (off) {
            var ch, lineNo = this.first, sepSize = this.lineSeparator().length;
            this.iter(function (line) {
                var sz = line.text.length + sepSize;
                if (sz > off) { ch = off; return true; }
                off -= sz;
                ++lineNo;
            });
            return clipPos(this, Pos(lineNo, ch));
        },
        indexFromPos: function (coords) {
            coords = clipPos(this, coords);
            var index = coords.ch;
            if (coords.line < this.first || coords.ch < 0) return 0;
            var sepSize = this.lineSeparator().length;
            this.iter(this.first, coords.line, function (line) {
                index += line.text.length + sepSize;
            });
            return index;
        },

        copy: function (copyHistory) {
            var doc = new Doc(getLines(this, this.first, this.first + this.size),
                this.modeOption, this.first, this.lineSep);
            doc.scrollTop = this.scrollTop; doc.scrollLeft = this.scrollLeft;
            doc.sel = this.sel;
            doc.extend = false;
            if (copyHistory) {
                doc.history.undoDepth = this.history.undoDepth;
                doc.setHistory(this.getHistory());
            }
            return doc;
        },

        linkedDoc: function (options) {
            if (!options) options = {};
            var from = this.first, to = this.first + this.size;
            if (options.from != null && options.from > from) from = options.from;
            if (options.to != null && options.to < to) to = options.to;
            var copy = new Doc(getLines(this, from, to), options.mode || this.modeOption, from, this.lineSep);
            if (options.sharedHist) copy.history = this.history;
            (this.linked || (this.linked = [])).push({ doc: copy, sharedHist: options.sharedHist });
            copy.linked = [{ doc: this, isParent: true, sharedHist: options.sharedHist }];
            copySharedMarkers(copy, findSharedMarkers(this));
            return copy;
        },
        unlinkDoc: function (other) {
            if (other instanceof CodeMirror) other = other.doc;
            if (this.linked) for (var i = 0; i < this.linked.length; ++i) {
                var link = this.linked[i];
                if (link.doc != other) continue;
                this.linked.splice(i, 1);
                other.unlinkDoc(this);
                detachSharedMarkers(findSharedMarkers(this));
                break;
            }
            // If the histories were shared, split them again
            if (other.history == this.history) {
                var splitIds = [other.id];
                linkedDocs(other, function (doc) { splitIds.push(doc.id); }, true);
                other.history = new History(null);
                other.history.done = copyHistoryArray(this.history.done, splitIds);
                other.history.undone = copyHistoryArray(this.history.undone, splitIds);
            }
        },
        iterLinkedDocs: function (f) { linkedDocs(this, f); },

        getMode: function () { return this.mode; },
        getEditor: function () { return this.cm; },

        splitLines: function (str) {
            if (this.lineSep) return str.split(this.lineSep);
            return splitLinesAuto(str);
        },
        lineSeparator: function () { return this.lineSep || "\n"; }
    });

    // Public alias.
    Doc.prototype.eachLine = Doc.prototype.iter;

    // Set up methods on CodeMirror's prototype to redirect to the editor's document.
    var dontDelegate = "iter insert remove copy getEditor constructor".split(" ");
    for (var prop in Doc.prototype) if (Doc.prototype.hasOwnProperty(prop) && indexOf(dontDelegate, prop) < 0)
        CodeMirror.prototype[prop] = (function (method) {
            return function () { return method.apply(this.doc, arguments); };
        })(Doc.prototype[prop]);

    eventMixin(Doc);

    // Call f for all linked documents.
    function linkedDocs(doc, f, sharedHistOnly) {
        function propagate(doc, skip, sharedHist) {
            if (doc.linked) for (var i = 0; i < doc.linked.length; ++i) {
                var rel = doc.linked[i];
                if (rel.doc == skip) continue;
                var shared = sharedHist && rel.sharedHist;
                if (sharedHistOnly && !shared) continue;
                f(rel.doc, shared);
                propagate(rel.doc, doc, shared);
            }
        }
        propagate(doc, null, true);
    }

    // Attach a document to an editor.
    function attachDoc(cm, doc) {
        if (doc.cm) throw new Error("This document is already in use.");
        cm.doc = doc;
        doc.cm = cm;
        estimateLineHeights(cm);
        loadMode(cm);
        if (!cm.options.lineWrapping) findMaxLine(cm);
        cm.options.mode = doc.modeOption;
        regChange(cm);
    }

    // LINE UTILITIES

    // Find the line object corresponding to the given line number.
    function getLine(doc, n) {
        n -= doc.first;
        if (n < 0 || n >= doc.size) throw new Error("There is no line " + (n + doc.first) + " in the document.");
        for (var chunk = doc; !chunk.lines;) {
            for (var i = 0; ; ++i) {
                var child = chunk.children[i], sz = child.chunkSize();
                if (n < sz) { chunk = child; break; }
                n -= sz;
            }
        }
        return chunk.lines[n];
    }

    // Get the part of a document between two positions, as an array of
    // strings.
    function getBetween(doc, start, end) {
        var out = [], n = start.line;
        doc.iter(start.line, end.line + 1, function (line) {
            var text = line.text;
            if (n == end.line) text = text.slice(0, end.ch);
            if (n == start.line) text = text.slice(start.ch);
            out.push(text);
            ++n;
        });
        return out;
    }
    // Get the lines between from and to, as array of strings.
    function getLines(doc, from, to) {
        var out = [];
        doc.iter(from, to, function (line) { out.push(line.text); });
        return out;
    }

    // Update the height of a line, propagating the height change
    // upwards to parent nodes.
    function updateLineHeight(line, height) {
        var diff = height - line.height;
        if (diff) for (var n = line; n; n = n.parent) n.height += diff;
    }

    // Given a line object, find its line number by walking up through
    // its parent links.
    function lineNo(line) {
        if (line.parent == null) return null;
        var cur = line.parent, no = indexOf(cur.lines, line);
        for (var chunk = cur.parent; chunk; cur = chunk, chunk = chunk.parent) {
            for (var i = 0; ; ++i) {
                if (chunk.children[i] == cur) break;
                no += chunk.children[i].chunkSize();
            }
        }
        return no + cur.first;
    }

    // Find the line at the given vertical position, using the height
    // information in the document tree.
    function lineAtHeight(chunk, h) {
        var n = chunk.first;
        outer: do {
            for (var i = 0; i < chunk.children.length; ++i) {
                var child = chunk.children[i], ch = child.height;
                if (h < ch) { chunk = child; continue outer; }
                h -= ch;
                n += child.chunkSize();
            }
            return n;
        } while (!chunk.lines);
        for (var i = 0; i < chunk.lines.length; ++i) {
            var line = chunk.lines[i], lh = line.height;
            if (h < lh) break;
            h -= lh;
        }
        return n + i;
    }


    // Find the height above the given line.
    function heightAtLine(lineObj) {
        lineObj = visualLine(lineObj);

        var h = 0, chunk = lineObj.parent;
        for (var i = 0; i < chunk.lines.length; ++i) {
            var line = chunk.lines[i];
            if (line == lineObj) break;
            else h += line.height;
        }
        for (var p = chunk.parent; p; chunk = p, p = chunk.parent) {
            for (var i = 0; i < p.children.length; ++i) {
                var cur = p.children[i];
                if (cur == chunk) break;
                else h += cur.height;
            }
        }
        return h;
    }

    // Get the bidi ordering for the given line (and cache it). Returns
    // false for lines that are fully left-to-right, and an array of
    // BidiSpan objects otherwise.
    function getOrder(line) {
        var order = line.order;
        if (order == null) order = line.order = bidiOrdering(line.text);
        return order;
    }

    // HISTORY

    function History(startGen) {
        // Arrays of change events and selections. Doing something adds an
        // event to done and clears undo. Undoing moves events from done
        // to undone, redoing moves them in the other direction.
        this.done = []; this.undone = [];
        this.undoDepth = Infinity;
        // Used to track when changes can be merged into a single undo
        // event
        this.lastModTime = this.lastSelTime = 0;
        this.lastOp = this.lastSelOp = null;
        this.lastOrigin = this.lastSelOrigin = null;
        // Used by the isClean() method
        this.generation = this.maxGeneration = startGen || 1;
    }

    // Create a history change event from an updateDoc-style change
    // object.
    function historyChangeFromChange(doc, change) {
        var histChange = { from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to) };
        attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);
        linkedDocs(doc, function (doc) { attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);
        return histChange;
    }

    // Pop all selection events off the end of a history array. Stop at
    // a change event.
    function clearSelectionEvents(array) {
        while (array.length) {
            var last = lst(array);
            if (last.ranges) array.pop();
            else break;
        }
    }

    // Find the top change event in the history. Pop off selection
    // events that are in the way.
    function lastChangeEvent(hist, force) {
        if (force) {
            clearSelectionEvents(hist.done);
            return lst(hist.done);
        } else if (hist.done.length && !lst(hist.done).ranges) {
            return lst(hist.done);
        } else if (hist.done.length > 1 && !hist.done[hist.done.length - 2].ranges) {
            hist.done.pop();
            return lst(hist.done);
        }
    }

    // Register a change in the history. Merges changes that are within
    // a single operation, ore are close together with an origin that
    // allows merging (starting with "+") into a single event.
    function addChangeToHistory(doc, change, selAfter, opId) {
        var hist = doc.history;
        hist.undone.length = 0;
        var time = +new Date, cur;

        if ((hist.lastOp == opId ||
            hist.lastOrigin == change.origin && change.origin &&
            ((change.origin.charAt(0) == "+" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||
                change.origin.charAt(0) == "*")) &&
            (cur = lastChangeEvent(hist, hist.lastOp == opId))) {
            // Merge this change into the last event
            var last = lst(cur.changes);
            if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {
                // Optimized case for simple insertion -- don't want to add
                // new changesets for every character typed
                last.to = changeEnd(change);
            } else {
                // Add new sub-event
                cur.changes.push(historyChangeFromChange(doc, change));
            }
        } else {
            // Can not be merged, start a new event.
            var before = lst(hist.done);
            if (!before || !before.ranges)
                pushSelectionToHistory(doc.sel, hist.done);
            cur = {
                changes: [historyChangeFromChange(doc, change)],
                generation: hist.generation
            };
            hist.done.push(cur);
            while (hist.done.length > hist.undoDepth) {
                hist.done.shift();
                if (!hist.done[0].ranges) hist.done.shift();
            }
        }
        hist.done.push(selAfter);
        hist.generation = ++hist.maxGeneration;
        hist.lastModTime = hist.lastSelTime = time;
        hist.lastOp = hist.lastSelOp = opId;
        hist.lastOrigin = hist.lastSelOrigin = change.origin;

        if (!last) signal(doc, "historyAdded");
    }

    function selectionEventCanBeMerged(doc, origin, prev, sel) {
        var ch = origin.charAt(0);
        return ch == "*" ||
            ch == "+" &&
            prev.ranges.length == sel.ranges.length &&
            prev.somethingSelected() == sel.somethingSelected() &&
            new Date - doc.history.lastSelTime <= (doc.cm ? doc.cm.options.historyEventDelay : 500);
    }

    // Called whenever the selection changes, sets the new selection as
    // the pending selection in the history, and pushes the old pending
    // selection into the 'done' array when it was significantly
    // different (in number of selected ranges, emptiness, or time).
    function addSelectionToHistory(doc, sel, opId, options) {
        var hist = doc.history, origin = options && options.origin;

        // A new event is started when the previous origin does not match
        // the current, or the origins don't allow matching. Origins
        // starting with * are always merged, those starting with + are
        // merged when similar and close together in time.
        if (opId == hist.lastSelOp ||
            (origin && hist.lastSelOrigin == origin &&
                (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||
                    selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))))
            hist.done[hist.done.length - 1] = sel;
        else
            pushSelectionToHistory(sel, hist.done);

        hist.lastSelTime = +new Date;
        hist.lastSelOrigin = origin;
        hist.lastSelOp = opId;
        if (options && options.clearRedo !== false)
            clearSelectionEvents(hist.undone);
    }

    function pushSelectionToHistory(sel, dest) {
        var top = lst(dest);
        if (!(top && top.ranges && top.equals(sel)))
            dest.push(sel);
    }

    // Used to store marked span information in the history.
    function attachLocalSpans(doc, change, from, to) {
        var existing = change["spans_" + doc.id], n = 0;
        doc.iter(Math.max(doc.first, from), Math.min(doc.first + doc.size, to), function (line) {
            if (line.markedSpans)
                (existing || (existing = change["spans_" + doc.id] = {}))[n] = line.markedSpans;
            ++n;
        });
    }

    // When un/re-doing restores text containing marked spans, those
    // that have been explicitly cleared should not be restored.
    function removeClearedSpans(spans) {
        if (!spans) return null;
        for (var i = 0, out; i < spans.length; ++i) {
            if (spans[i].marker.explicitlyCleared) { if (!out) out = spans.slice(0, i); }
            else if (out) out.push(spans[i]);
        }
        return !out ? spans : out.length ? out : null;
    }

    // Retrieve and filter the old marked spans stored in a change event.
    function getOldSpans(doc, change) {
        var found = change["spans_" + doc.id];
        if (!found) return null;
        for (var i = 0, nw = []; i < change.text.length; ++i)
            nw.push(removeClearedSpans(found[i]));
        return nw;
    }

    // Used both to provide a JSON-safe object in .getHistory, and, when
    // detaching a document, to split the history in two
    function copyHistoryArray(events, newGroup, instantiateSel) {
        for (var i = 0, copy = []; i < events.length; ++i) {
            var event = events[i];
            if (event.ranges) {
                copy.push(instantiateSel ? Selection.prototype.deepCopy.call(event) : event);
                continue;
            }
            var changes = event.changes, newChanges = [];
            copy.push({ changes: newChanges });
            for (var j = 0; j < changes.length; ++j) {
                var change = changes[j], m;
                newChanges.push({ from: change.from, to: change.to, text: change.text });
                if (newGroup) for (var prop in change) if (m = prop.match(/^spans_(\d+)$/)) {
                    if (indexOf(newGroup, Number(m[1])) > -1) {
                        lst(newChanges)[prop] = change[prop];
                        delete change[prop];
                    }
                }
            }
        }
        return copy;
    }

    // Rebasing/resetting history to deal with externally-sourced changes

    function rebaseHistSelSingle(pos, from, to, diff) {
        if (to < pos.line) {
            pos.line += diff;
        } else if (from < pos.line) {
            pos.line = from;
            pos.ch = 0;
        }
    }

    // Tries to rebase an array of history events given a change in the
    // document. If the change touches the same lines as the event, the
    // event, and everything 'behind' it, is discarded. If the change is
    // before the event, the event's positions are updated. Uses a
    // copy-on-write scheme for the positions, to avoid having to
    // reallocate them all on every rebase, but also avoid problems with
    // shared position objects being unsafely updated.
    function rebaseHistArray(array, from, to, diff) {
        for (var i = 0; i < array.length; ++i) {
            var sub = array[i], ok = true;
            if (sub.ranges) {
                if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }
                for (var j = 0; j < sub.ranges.length; j++) {
                    rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);
                    rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);
                }
                continue;
            }
            for (var j = 0; j < sub.changes.length; ++j) {
                var cur = sub.changes[j];
                if (to < cur.from.line) {
                    cur.from = Pos(cur.from.line + diff, cur.from.ch);
                    cur.to = Pos(cur.to.line + diff, cur.to.ch);
                } else if (from <= cur.to.line) {
                    ok = false;
                    break;
                }
            }
            if (!ok) {
                array.splice(0, i + 1);
                i = 0;
            }
        }
    }

    function rebaseHist(hist, change) {
        var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1;
        rebaseHistArray(hist.done, from, to, diff);
        rebaseHistArray(hist.undone, from, to, diff);
    }

    // EVENT UTILITIES

    // Due to the fact that we still support jurassic IE versions, some
    // compatibility wrappers are needed.

    var e_preventDefault = CodeMirror.e_preventDefault = function (e) {
        if (e.preventDefault) e.preventDefault();
        else e.returnValue = false;
    };
    var e_stopPropagation = CodeMirror.e_stopPropagation = function (e) {
        if (e.stopPropagation) e.stopPropagation();
        else e.cancelBubble = true;
    };
    function e_defaultPrevented(e) {
        return e.defaultPrevented != null ? e.defaultPrevented : e.returnValue == false;
    }
    var e_stop = CodeMirror.e_stop = function (e) { e_preventDefault(e); e_stopPropagation(e); };

    function e_target(e) { return e.target || e.srcElement; }
    function e_button(e) {
        var b = e.which;
        if (b == null) {
            if (e.button & 1) b = 1;
            else if (e.button & 2) b = 3;
            else if (e.button & 4) b = 2;
        }
        if (mac && e.ctrlKey && b == 1) b = 3;
        return b;
    }

    // EVENT HANDLING

    // Lightweight event framework. on/off also work on DOM nodes,
    // registering native DOM handlers.

    var on = CodeMirror.on = function (emitter, type, f) {
        if (emitter.addEventListener)
            emitter.addEventListener(type, f, false);
        else if (emitter.attachEvent)
            emitter.attachEvent("on" + type, f);
        else {
            var map = emitter._handlers || (emitter._handlers = {});
            var arr = map[type] || (map[type] = []);
            arr.push(f);
        }
    };

    var noHandlers = []
    function getHandlers(emitter, type, copy) {
        var arr = emitter._handlers && emitter._handlers[type]
        if (copy) return arr && arr.length > 0 ? arr.slice() : noHandlers
        else return arr || noHandlers
    }

    var off = CodeMirror.off = function (emitter, type, f) {
        if (emitter.removeEventListener)
            emitter.removeEventListener(type, f, false);
        else if (emitter.detachEvent)
            emitter.detachEvent("on" + type, f);
        else {
            var handlers = getHandlers(emitter, type, false)
            for (var i = 0; i < handlers.length; ++i)
                if (handlers[i] == f) { handlers.splice(i, 1); break; }
        }
    };

    var signal = CodeMirror.signal = function (emitter, type /*, values...*/) {
        var handlers = getHandlers(emitter, type, true)
        if (!handlers.length) return;
        var args = Array.prototype.slice.call(arguments, 2);
        for (var i = 0; i < handlers.length; ++i) handlers[i].apply(null, args);
    };

    var orphanDelayedCallbacks = null;

    // Often, we want to signal events at a point where we are in the
    // middle of some work, but don't want the handler to start calling
    // other methods on the editor, which might be in an inconsistent
    // state or simply not expect any other events to happen.
    // signalLater looks whether there are any handlers, and schedules
    // them to be executed when the last operation ends, or, if no
    // operation is active, when a timeout fires.
    function signalLater(emitter, type /*, values...*/) {
        var arr = getHandlers(emitter, type, false)
        if (!arr.length) return;
        var args = Array.prototype.slice.call(arguments, 2), list;
        if (operationGroup) {
            list = operationGroup.delayedCallbacks;
        } else if (orphanDelayedCallbacks) {
            list = orphanDelayedCallbacks;
        } else {
            list = orphanDelayedCallbacks = [];
            setTimeout(fireOrphanDelayed, 0);
        }
        function bnd(f) { return function () { f.apply(null, args); }; };
        for (var i = 0; i < arr.length; ++i)
            list.push(bnd(arr[i]));
    }

    function fireOrphanDelayed() {
        var delayed = orphanDelayedCallbacks;
        orphanDelayedCallbacks = null;
        for (var i = 0; i < delayed.length; ++i) delayed[i]();
    }

    // The DOM events that CodeMirror handles can be overridden by
    // registering a (non-DOM) handler on the editor for the event name,
    // and preventDefault-ing the event in that handler.
    function signalDOMEvent(cm, e, override) {
        if (typeof e == "string")
            e = { type: e, preventDefault: function () { this.defaultPrevented = true; } };
        signal(cm, override || e.type, cm, e);
        return e_defaultPrevented(e) || e.codemirrorIgnore;
    }

    function signalCursorActivity(cm) {
        var arr = cm._handlers && cm._handlers.cursorActivity;
        if (!arr) return;
        var set = cm.curOp.cursorActivityHandlers || (cm.curOp.cursorActivityHandlers = []);
        for (var i = 0; i < arr.length; ++i) if (indexOf(set, arr[i]) == -1)
            set.push(arr[i]);
    }

    function hasHandler(emitter, type) {
        return getHandlers(emitter, type).length > 0
    }

    // Add on and off methods to a constructor's prototype, to make
    // registering events on such objects more convenient.
    function eventMixin(ctor) {
        ctor.prototype.on = function (type, f) { on(this, type, f); };
        ctor.prototype.off = function (type, f) { off(this, type, f); };
    }

    // MISC UTILITIES

    // Number of pixels added to scroller and sizer to hide scrollbar
    var scrollerGap = 30;

    // Returned or thrown by various protocols to signal 'I'm not
    // handling this'.
    var Pass = CodeMirror.Pass = { toString: function () { return "CodeMirror.Pass"; } };

    // Reused option objects for setSelection & friends
    var sel_dontScroll = { scroll: false }, sel_mouse = { origin: "*mouse" }, sel_move = { origin: "+move" };

    function Delayed() { this.id = null; }
    Delayed.prototype.set = function (ms, f) {
        clearTimeout(this.id);
        this.id = setTimeout(f, ms);
    };

    // Counts the column offset in a string, taking tabs into account.
    // Used mostly to find indentation.
    var countColumn = CodeMirror.countColumn = function (string, end, tabSize, startIndex, startValue) {
        if (end == null) {
            end = string.search(/[^\s\u00a0]/);
            if (end == -1) end = string.length;
        }
        for (var i = startIndex || 0, n = startValue || 0; ;) {
            var nextTab = string.indexOf("\t", i);
            if (nextTab < 0 || nextTab >= end)
                return n + (end - i);
            n += nextTab - i;
            n += tabSize - (n % tabSize);
            i = nextTab + 1;
        }
    };

    // The inverse of countColumn -- find the offset that corresponds to
    // a particular column.
    var findColumn = CodeMirror.findColumn = function (string, goal, tabSize) {
        for (var pos = 0, col = 0; ;) {
            var nextTab = string.indexOf("\t", pos);
            if (nextTab == -1) nextTab = string.length;
            var skipped = nextTab - pos;
            if (nextTab == string.length || col + skipped >= goal)
                return pos + Math.min(skipped, goal - col);
            col += nextTab - pos;
            col += tabSize - (col % tabSize);
            pos = nextTab + 1;
            if (col >= goal) return pos;
        }
    }

    var spaceStrs = [""];
    function spaceStr(n) {
        while (spaceStrs.length <= n)
            spaceStrs.push(lst(spaceStrs) + " ");
        return spaceStrs[n];
    }

    function lst(arr) { return arr[arr.length - 1]; }

    var selectInput = function (node) { node.select(); };
    if (ios) // Mobile Safari apparently has a bug where select() is broken.
        selectInput = function (node) { node.selectionStart = 0; node.selectionEnd = node.value.length; };
    else if (ie) // Suppress mysterious IE10 errors
        selectInput = function (node) { try { node.select(); } catch (_e) { } };

    function indexOf(array, elt) {
        for (var i = 0; i < array.length; ++i)
            if (array[i] == elt) return i;
        return -1;
    }
    function map(array, f) {
        var out = [];
        for (var i = 0; i < array.length; i++) out[i] = f(array[i], i);
        return out;
    }

    function nothing() { }

    function createObj(base, props) {
        var inst;
        if (Object.create) {
            inst = Object.create(base);
        } else {
            nothing.prototype = base;
            inst = new nothing();
        }
        if (props) copyObj(props, inst);
        return inst;
    };

    function copyObj(obj, target, overwrite) {
        if (!target) target = {};
        for (var prop in obj)
            if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)))
                target[prop] = obj[prop];
        return target;
    }

    function bind(f) {
        var args = Array.prototype.slice.call(arguments, 1);
        return function () { return f.apply(null, args); };
    }

    var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
    var isWordCharBasic = CodeMirror.isWordChar = function (ch) {
        return /\w/.test(ch) || ch > "\x80" &&
            (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch));
    };
    function isWordChar(ch, helper) {
        if (!helper) return isWordCharBasic(ch);
        if (helper.source.indexOf("\\w") > -1 && isWordCharBasic(ch)) return true;
        return helper.test(ch);
    }

    function isEmpty(obj) {
        for (var n in obj) if (obj.hasOwnProperty(n) && obj[n]) return false;
        return true;
    }

    // Extending unicode characters. A series of a non-extending char +
    // any number of extending chars is treated as a single unit as far
    // as editing and measuring is concerned. This is not fully correct,
    // since some scripts/fonts/browsers also treat other configurations
    // of code points as a group.
    var extendingChars = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;
    function isExtendingChar(ch) { return ch.charCodeAt(0) >= 768 && extendingChars.test(ch); }

    // DOM UTILITIES

    function elt(tag, content, className, style) {
        var e = document.createElement(tag);
        if (className) e.className = className;
        if (style) e.style.cssText = style;
        if (typeof content == "string") e.appendChild(document.createTextNode(content));
        else if (content) for (var i = 0; i < content.length; ++i) e.appendChild(content[i]);
        return e;
    }

    var range;
    if (document.createRange) range = function (node, start, end, endNode) {
        var r = document.createRange();
        r.setEnd(endNode || node, end);
        r.setStart(node, start);
        return r;
    };
    else range = function (node, start, end) {
        var r = document.body.createTextRange();
        try { r.moveToElementText(node.parentNode); }
        catch (e) { return r; }
        r.collapse(true);
        r.moveEnd("character", end);
        r.moveStart("character", start);
        return r;
    };

    function removeChildren(e) {
        for (var count = e.childNodes.length; count > 0; --count)
            e.removeChild(e.firstChild);
        return e;
    }

    function removeChildrenAndAdd(parent, e) {
        return removeChildren(parent).appendChild(e);
    }

    var contains = CodeMirror.contains = function (parent, child) {
        if (child.nodeType == 3) // Android browser always returns false when child is a textnode
            child = child.parentNode;
        if (parent.contains)
            return parent.contains(child);
        do {
            if (child.nodeType == 11) child = child.host;
            if (child == parent) return true;
        } while (child = child.parentNode);
    };

    function activeElt() {
        var activeElement = document.activeElement;
        while (activeElement && activeElement.root && activeElement.root.activeElement)
            activeElement = activeElement.root.activeElement;
        return activeElement;
    }
    // Older versions of IE throws unspecified error when touching
    // document.activeElement in some cases (during loading, in iframe)
    if (ie && ie_version < 11) activeElt = function () {
        try { return document.activeElement; }
        catch (e) { return document.body; }
    };

    function classTest(cls) { return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*"); }
    var rmClass = CodeMirror.rmClass = function (node, cls) {
        var current = node.className;
        var match = classTest(cls).exec(current);
        if (match) {
            var after = current.slice(match.index + match[0].length);
            node.className = current.slice(0, match.index) + (after ? match[1] + after : "");
        }
    };
    var addClass = CodeMirror.addClass = function (node, cls) {
        var current = node.className;
        if (!classTest(cls).test(current)) node.className += (current ? " " : "") + cls;
    };
    function joinClasses(a, b) {
        var as = a.split(" ");
        for (var i = 0; i < as.length; i++)
            if (as[i] && !classTest(as[i]).test(b)) b += " " + as[i];
        return b;
    }

    // WINDOW-WIDE EVENTS

    // These must be handled carefully, because naively registering a
    // handler for each editor will cause the editors to never be
    // garbage collected.

    function forEachCodeMirror(f) {
        if (!document.body.getElementsByClassName) return;
        var byClass = document.body.getElementsByClassName("CodeMirror");
        for (var i = 0; i < byClass.length; i++) {
            var cm = byClass[i].CodeMirror;
            if (cm) f(cm);
        }
    }

    var globalsRegistered = false;
    function ensureGlobalHandlers() {
        if (globalsRegistered) return;
        registerGlobalHandlers();
        globalsRegistered = true;
    }
    function registerGlobalHandlers() {
        // When the window resizes, we need to refresh active editors.
        var resizeTimer;
        on(window, "resize", function () {
            if (resizeTimer == null) resizeTimer = setTimeout(function () {
                resizeTimer = null;
                forEachCodeMirror(onResize);
            }, 100);
        });
        // When the window loses focus, we want to show the editor as blurred
        on(window, "blur", function () {
            forEachCodeMirror(onBlur);
        });
    }

    // FEATURE DETECTION

    // Detect drag-and-drop
    var dragAndDrop = function () {
        // There is *some* kind of drag-and-drop support in IE6-8, but I
        // couldn't get it to work yet.
        if (ie && ie_version < 9) return false;
        var div = elt('div');
        return "draggable" in div || "dragDrop" in div;
    }();

    var zwspSupported;
    function zeroWidthElement(measure) {
        if (zwspSupported == null) {
            var test = elt("span", "\u200b");
            removeChildrenAndAdd(measure, elt("span", [test, document.createTextNode("x")]));
            if (measure.firstChild.offsetHeight != 0)
                zwspSupported = test.offsetWidth <= 1 && test.offsetHeight > 2 && !(ie && ie_version < 8);
        }
        var node = zwspSupported ? elt("span", "\u200b") :
            elt("span", "\u00a0", null, "display: inline-block; width: 1px; margin-right: -1px");
        node.setAttribute("cm-text", "");
        return node;
    }

    // Feature-detect IE's crummy client rect reporting for bidi text
    var badBidiRects;
    function hasBadBidiRects(measure) {
        if (badBidiRects != null) return badBidiRects;
        var txt = removeChildrenAndAdd(measure, document.createTextNode("A\u062eA"));
        var r0 = range(txt, 0, 1).getBoundingClientRect();
        if (!r0 || r0.left == r0.right) return false; // Safari returns null in some cases (#2780)
        var r1 = range(txt, 1, 2).getBoundingClientRect();
        return badBidiRects = (r1.right - r0.right < 3);
    }

    // See if "".split is the broken IE version, if so, provide an
    // alternative way to split lines.
    var splitLinesAuto = CodeMirror.splitLines = "\n\nb".split(/\n/).length != 3 ? function (string) {
        var pos = 0, result = [], l = string.length;
        while (pos <= l) {
            var nl = string.indexOf("\n", pos);
            if (nl == -1) nl = string.length;
            var line = string.slice(pos, string.charAt(nl - 1) == "\r" ? nl - 1 : nl);
            var rt = line.indexOf("\r");
            if (rt != -1) {
                result.push(line.slice(0, rt));
                pos += rt + 1;
            } else {
                result.push(line);
                pos = nl + 1;
            }
        }
        return result;
    } : function (string) { return string.split(/\r\n?|\n/); };

    var hasSelection = window.getSelection ? function (te) {
        try { return te.selectionStart != te.selectionEnd; }
        catch (e) { return false; }
    } : function (te) {
        try { var range = te.ownerDocument.selection.createRange(); }
        catch (e) { }
        if (!range || range.parentElement() != te) return false;
        return range.compareEndPoints("StartToEnd", range) != 0;
    };

    var hasCopyEvent = (function () {
        var e = elt("div");
        if ("oncopy" in e) return true;
        e.setAttribute("oncopy", "return;");
        return typeof e.oncopy == "function";
    })();

    var badZoomedRects = null;
    function hasBadZoomedRects(measure) {
        if (badZoomedRects != null) return badZoomedRects;
        var node = removeChildrenAndAdd(measure, elt("span", "x"));
        var normal = node.getBoundingClientRect();
        var fromRange = range(node, 0, 1).getBoundingClientRect();
        return badZoomedRects = Math.abs(normal.left - fromRange.left) > 1;
    }

    // KEY NAMES

    var keyNames = CodeMirror.keyNames = {
        3: "Enter", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt",
        19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End",
        36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "PrintScrn", 45: "Insert",
        46: "Delete", 59: ";", 61: "=", 91: "Mod", 92: "Mod", 93: "Mod",
        106: "*", 107: "=", 109: "-", 110: ".", 111: "/", 127: "Delete",
        173: "-", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\",
        221: "]", 222: "'", 63232: "Up", 63233: "Down", 63234: "Left", 63235: "Right", 63272: "Delete",
        63273: "Home", 63275: "End", 63276: "PageUp", 63277: "PageDown", 63302: "Insert"
    };
    (function () {
        // Number keys
        for (var i = 0; i < 10; i++) keyNames[i + 48] = keyNames[i + 96] = String(i);
        // Alphabetic keys
        for (var i = 65; i <= 90; i++) keyNames[i] = String.fromCharCode(i);
        // Function keys
        for (var i = 1; i <= 12; i++) keyNames[i + 111] = keyNames[i + 63235] = "F" + i;
    })();

    // BIDI HELPERS

    function iterateBidiSections(order, from, to, f) {
        if (!order) return f(from, to, "ltr");
        var found = false;
        for (var i = 0; i < order.length; ++i) {
            var part = order[i];
            if (part.from < to && part.to > from || from == to && part.to == from) {
                f(Math.max(part.from, from), Math.min(part.to, to), part.level == 1 ? "rtl" : "ltr");
                found = true;
            }
        }
        if (!found) f(from, to, "ltr");
    }

    function bidiLeft(part) { return part.level % 2 ? part.to : part.from; }
    function bidiRight(part) { return part.level % 2 ? part.from : part.to; }

    function lineLeft(line) { var order = getOrder(line); return order ? bidiLeft(order[0]) : 0; }
    function lineRight(line) {
        var order = getOrder(line);
        if (!order) return line.text.length;
        return bidiRight(lst(order));
    }

    function lineStart(cm, lineN) {
        var line = getLine(cm.doc, lineN);
        var visual = visualLine(line);
        if (visual != line) lineN = lineNo(visual);
        var order = getOrder(visual);
        var ch = !order ? 0 : order[0].level % 2 ? lineRight(visual) : lineLeft(visual);
        return Pos(lineN, ch);
    }
    function lineEnd(cm, lineN) {
        var merged, line = getLine(cm.doc, lineN);
        while (merged = collapsedSpanAtEnd(line)) {
            line = merged.find(1, true).line;
            lineN = null;
        }
        var order = getOrder(line);
        var ch = !order ? line.text.length : order[0].level % 2 ? lineLeft(line) : lineRight(line);
        return Pos(lineN == null ? lineNo(line) : lineN, ch);
    }
    function lineStartSmart(cm, pos) {
        var start = lineStart(cm, pos.line);
        var line = getLine(cm.doc, start.line);
        var order = getOrder(line);
        if (!order || order[0].level == 0) {
            var firstNonWS = Math.max(0, line.text.search(/\S/));
            var inWS = pos.line == start.line && pos.ch <= firstNonWS && pos.ch;
            return Pos(start.line, inWS ? 0 : firstNonWS);
        }
        return start;
    }

    function compareBidiLevel(order, a, b) {
        var linedir = order[0].level;
        if (a == linedir) return true;
        if (b == linedir) return false;
        return a < b;
    }
    var bidiOther;
    function getBidiPartAt(order, pos) {
        bidiOther = null;
        for (var i = 0, found; i < order.length; ++i) {
            var cur = order[i];
            if (cur.from < pos && cur.to > pos) return i;
            if ((cur.from == pos || cur.to == pos)) {
                if (found == null) {
                    found = i;
                } else if (compareBidiLevel(order, cur.level, order[found].level)) {
                    if (cur.from != cur.to) bidiOther = found;
                    return i;
                } else {
                    if (cur.from != cur.to) bidiOther = i;
                    return found;
                }
            }
        }
        return found;
    }

    function moveInLine(line, pos, dir, byUnit) {
        if (!byUnit) return pos + dir;
        do pos += dir;
        while (pos > 0 && isExtendingChar(line.text.charAt(pos)));
        return pos;
    }

    // This is needed in order to move 'visually' through bi-directional
    // text -- i.e., pressing left should make the cursor go left, even
    // when in RTL text. The tricky part is the 'jumps', where RTL and
    // LTR text touch each other. This often requires the cursor offset
    // to move more than one unit, in order to visually move one unit.
    function moveVisually(line, start, dir, byUnit) {
        var bidi = getOrder(line);
        if (!bidi) return moveLogically(line, start, dir, byUnit);
        var pos = getBidiPartAt(bidi, start), part = bidi[pos];
        var target = moveInLine(line, start, part.level % 2 ? -dir : dir, byUnit);

        for (; ;) {
            if (target > part.from && target < part.to) return target;
            if (target == part.from || target == part.to) {
                if (getBidiPartAt(bidi, target) == pos) return target;
                part = bidi[pos += dir];
                return (dir > 0) == part.level % 2 ? part.to : part.from;
            } else {
                part = bidi[pos += dir];
                if (!part) return null;
                if ((dir > 0) == part.level % 2)
                    target = moveInLine(line, part.to, -1, byUnit);
                else
                    target = moveInLine(line, part.from, 1, byUnit);
            }
        }
    }

    function moveLogically(line, start, dir, byUnit) {
        var target = start + dir;
        if (byUnit) while (target > 0 && isExtendingChar(line.text.charAt(target))) target += dir;
        return target < 0 || target > line.text.length ? null : target;
    }

    // Bidirectional ordering algorithm
    // See http://unicode.org/reports/tr9/tr9-13.html for the algorithm
    // that this (partially) implements.

    // One-char codes used for character types:
    // L (L):   Left-to-Right
    // R (R):   Right-to-Left
    // r (AL):  Right-to-Left Arabic
    // 1 (EN):  European Number
    // + (ES):  European Number Separator
    // % (ET):  European Number Terminator
    // n (AN):  Arabic Number
    // , (CS):  Common Number Separator
    // m (NSM): Non-Spacing Mark
    // b (BN):  Boundary Neutral
    // s (B):   Paragraph Separator
    // t (S):   Segment Separator
    // w (WS):  Whitespace
    // N (ON):  Other Neutrals

    // Returns null if characters are ordered as they appear
    // (left-to-right), or an array of sections ({from, to, level}
    // objects) in the order in which they occur visually.
    var bidiOrdering = (function () {
        // Character types for codepoints 0 to 0xff
        var lowTypes = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN";
        // Character types for codepoints 0x600 to 0x6ff
        var arabicTypes = "rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm";
        function charType(code) {
            if (code <= 0xf7) return lowTypes.charAt(code);
            else if (0x590 <= code && code <= 0x5f4) return "R";
            else if (0x600 <= code && code <= 0x6ed) return arabicTypes.charAt(code - 0x600);
            else if (0x6ee <= code && code <= 0x8ac) return "r";
            else if (0x2000 <= code && code <= 0x200b) return "w";
            else if (code == 0x200c) return "b";
            else return "L";
        }

        var bidiRE = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
        var isNeutral = /[stwN]/, isStrong = /[LRr]/, countsAsLeft = /[Lb1n]/, countsAsNum = /[1n]/;
        // Browsers seem to always treat the boundaries of block elements as being L.
        var outerType = "L";

        function BidiSpan(level, from, to) {
            this.level = level;
            this.from = from; this.to = to;
        }

        return function (str) {
            if (!bidiRE.test(str)) return false;
            var len = str.length, types = [];
            for (var i = 0, type; i < len; ++i)
                types.push(type = charType(str.charCodeAt(i)));

            // W1. Examine each non-spacing mark (NSM) in the level run, and
            // change the type of the NSM to the type of the previous
            // character. If the NSM is at the start of the level run, it will
            // get the type of sor.
            for (var i = 0, prev = outerType; i < len; ++i) {
                var type = types[i];
                if (type == "m") types[i] = prev;
                else prev = type;
            }

            // W2. Search backwards from each instance of a European number
            // until the first strong type (R, L, AL, or sor) is found. If an
            // AL is found, change the type of the European number to Arabic
            // number.
            // W3. Change all ALs to R.
            for (var i = 0, cur = outerType; i < len; ++i) {
                var type = types[i];
                if (type == "1" && cur == "r") types[i] = "n";
                else if (isStrong.test(type)) { cur = type; if (type == "r") types[i] = "R"; }
            }

            // W4. A single European separator between two European numbers
            // changes to a European number. A single common separator between
            // two numbers of the same type changes to that type.
            for (var i = 1, prev = types[0]; i < len - 1; ++i) {
                var type = types[i];
                if (type == "+" && prev == "1" && types[i + 1] == "1") types[i] = "1";
                else if (type == "," && prev == types[i + 1] &&
                    (prev == "1" || prev == "n")) types[i] = prev;
                prev = type;
            }

            // W5. A sequence of European terminators adjacent to European
            // numbers changes to all European numbers.
            // W6. Otherwise, separators and terminators change to Other
            // Neutral.
            for (var i = 0; i < len; ++i) {
                var type = types[i];
                if (type == ",") types[i] = "N";
                else if (type == "%") {
                    for (var end = i + 1; end < len && types[end] == "%"; ++end) { }
                    var replace = (i && types[i - 1] == "!") || (end < len && types[end] == "1") ? "1" : "N";
                    for (var j = i; j < end; ++j) types[j] = replace;
                    i = end - 1;
                }
            }

            // W7. Search backwards from each instance of a European number
            // until the first strong type (R, L, or sor) is found. If an L is
            // found, then change the type of the European number to L.
            for (var i = 0, cur = outerType; i < len; ++i) {
                var type = types[i];
                if (cur == "L" && type == "1") types[i] = "L";
                else if (isStrong.test(type)) cur = type;
            }

            // N1. A sequence of neutrals takes the direction of the
            // surrounding strong text if the text on both sides has the same
            // direction. European and Arabic numbers act as if they were R in
            // terms of their influence on neutrals. Start-of-level-run (sor)
            // and end-of-level-run (eor) are used at level run boundaries.
            // N2. Any remaining neutrals take the embedding direction.
            for (var i = 0; i < len; ++i) {
                if (isNeutral.test(types[i])) {
                    for (var end = i + 1; end < len && isNeutral.test(types[end]); ++end) { }
                    var before = (i ? types[i - 1] : outerType) == "L";
                    var after = (end < len ? types[end] : outerType) == "L";
                    var replace = before || after ? "L" : "R";
                    for (var j = i; j < end; ++j) types[j] = replace;
                    i = end - 1;
                }
            }

            // Here we depart from the documented algorithm, in order to avoid
            // building up an actual levels array. Since there are only three
            // levels (0, 1, 2) in an implementation that doesn't take
            // explicit embedding into account, we can build up the order on
            // the fly, without following the level-based algorithm.
            var order = [], m;
            for (var i = 0; i < len;) {
                if (countsAsLeft.test(types[i])) {
                    var start = i;
                    for (++i; i < len && countsAsLeft.test(types[i]); ++i) { }
                    order.push(new BidiSpan(0, start, i));
                } else {
                    var pos = i, at = order.length;
                    for (++i; i < len && types[i] != "L"; ++i) { }
                    for (var j = pos; j < i;) {
                        if (countsAsNum.test(types[j])) {
                            if (pos < j) order.splice(at, 0, new BidiSpan(1, pos, j));
                            var nstart = j;
                            for (++j; j < i && countsAsNum.test(types[j]); ++j) { }
                            order.splice(at, 0, new BidiSpan(2, nstart, j));
                            pos = j;
                        } else ++j;
                    }
                    if (pos < i) order.splice(at, 0, new BidiSpan(1, pos, i));
                }
            }
            if (order[0].level == 1 && (m = str.match(/^\s+/))) {
                order[0].from = m[0].length;
                order.unshift(new BidiSpan(0, 0, m[0].length));
            }
            if (lst(order).level == 1 && (m = str.match(/\s+$/))) {
                lst(order).to -= m[0].length;
                order.push(new BidiSpan(0, len - m[0].length, len));
            }
            if (order[0].level == 2)
                order.unshift(new BidiSpan(1, order[0].to, order[0].to));
            if (order[0].level != lst(order).level)
                order.push(new BidiSpan(order[0].level, len, len));

            return order;
        };
    })();

    // THE END

    CodeMirror.version = "5.15.0";

    return CodeMirror;
});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function (mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
        mod(require("../../lib/codemirror"));
    else if (typeof define == "function" && define.amd) // AMD
        define(["../../lib/codemirror"], mod);
    else // Plain browser env
        mod(CodeMirror);
})(function (CodeMirror) {
    "use strict";

    CodeMirror.defineMode("css", function (config, parserConfig) {
        var inline = parserConfig.inline
        if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css");

        var indentUnit = config.indentUnit,
            tokenHooks = parserConfig.tokenHooks,
            documentTypes = parserConfig.documentTypes || {},
            mediaTypes = parserConfig.mediaTypes || {},
            mediaFeatures = parserConfig.mediaFeatures || {},
            mediaValueKeywords = parserConfig.mediaValueKeywords || {},
            propertyKeywords = parserConfig.propertyKeywords || {},
            nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
            fontProperties = parserConfig.fontProperties || {},
            counterDescriptors = parserConfig.counterDescriptors || {},
            colorKeywords = parserConfig.colorKeywords || {},
            valueKeywords = parserConfig.valueKeywords || {},
            allowNested = parserConfig.allowNested,
            supportsAtComponent = parserConfig.supportsAtComponent === true;

        var type, override;
        function ret(style, tp) { type = tp; return style; }

        // Tokenizers

        function tokenBase(stream, state) {
            var ch = stream.next();
            if (tokenHooks[ch]) {
                var result = tokenHooks[ch](stream, state);
                if (result !== false) return result;
            }
            if (ch == "@") {
                stream.eatWhile(/[\w\\\-]/);
                return ret("def", stream.current());
            } else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
                return ret(null, "compare");
            } else if (ch == "\"" || ch == "'") {
                state.tokenize = tokenString(ch);
                return state.tokenize(stream, state);
            } else if (ch == "#") {
                stream.eatWhile(/[\w\\\-]/);
                return ret("atom", "hash");
            } else if (ch == "!") {
                stream.match(/^\s*\w*/);
                return ret("keyword", "important");
            } else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
                stream.eatWhile(/[\w.%]/);
                return ret("number", "unit");
            } else if (ch === "-") {
                if (/[\d.]/.test(stream.peek())) {
                    stream.eatWhile(/[\w.%]/);
                    return ret("number", "unit");
                } else if (stream.match(/^-[\w\\\-]+/)) {
                    stream.eatWhile(/[\w\\\-]/);
                    if (stream.match(/^\s*:/, false))
                        return ret("variable-2", "variable-definition");
                    return ret("variable-2", "variable");
                } else if (stream.match(/^\w+-/)) {
                    return ret("meta", "meta");
                }
            } else if (/[,+>*\/]/.test(ch)) {
                return ret(null, "select-op");
            } else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
                return ret("qualifier", "qualifier");
            } else if (/[:;{}\[\]\(\)]/.test(ch)) {
                return ret(null, ch);
            } else if ((ch == "u" && stream.match(/rl(-prefix)?\(/)) ||
                (ch == "d" && stream.match("omain(")) ||
                (ch == "r" && stream.match("egexp("))) {
                stream.backUp(1);
                state.tokenize = tokenParenthesized;
                return ret("property", "word");
            } else if (/[\w\\\-]/.test(ch)) {
                stream.eatWhile(/[\w\\\-]/);
                return ret("property", "word");
            } else {
                return ret(null, null);
            }
        }

        function tokenString(quote) {
            return function (stream, state) {
                var escaped = false, ch;
                while ((ch = stream.next()) != null) {
                    if (ch == quote && !escaped) {
                        if (quote == ")") stream.backUp(1);
                        break;
                    }
                    escaped = !escaped && ch == "\\";
                }
                if (ch == quote || !escaped && quote != ")") state.tokenize = null;
                return ret("string", "string");
            };
        }

        function tokenParenthesized(stream, state) {
            stream.next(); // Must be '('
            if (!stream.match(/\s*[\"\')]/, false))
                state.tokenize = tokenString(")");
            else
                state.tokenize = null;
            return ret(null, "(");
        }

        // Context management

        function Context(type, indent, prev) {
            this.type = type;
            this.indent = indent;
            this.prev = prev;
        }

        function pushContext(state, stream, type, indent) {
            state.context = new Context(type, stream.indentation() + (indent === false ? 0 : indentUnit), state.context);
            return type;
        }

        function popContext(state) {
            if (state.context.prev)
                state.context = state.context.prev;
            return state.context.type;
        }

        function pass(type, stream, state) {
            return states[state.context.type](type, stream, state);
        }
        function popAndPass(type, stream, state, n) {
            for (var i = n || 1; i > 0; i--)
                state.context = state.context.prev;
            return pass(type, stream, state);
        }

        // Parser

        function wordAsValue(stream) {
            var word = stream.current().toLowerCase();
            if (valueKeywords.hasOwnProperty(word))
                override = "atom";
            else if (colorKeywords.hasOwnProperty(word))
                override = "keyword";
            else
                override = "variable";
        }

        var states = {};

        states.top = function (type, stream, state) {
            if (type == "{") {
                return pushContext(state, stream, "block");
            } else if (type == "}" && state.context.prev) {
                return popContext(state);
            } else if (supportsAtComponent && /@component/.test(type)) {
                return pushContext(state, stream, "atComponentBlock");
            } else if (/^@(-moz-)?document$/.test(type)) {
                return pushContext(state, stream, "documentTypes");
            } else if (/^@(media|supports|(-moz-)?document|import)$/.test(type)) {
                return pushContext(state, stream, "atBlock");
            } else if (/^@(font-face|counter-style)/.test(type)) {
                state.stateArg = type;
                return "restricted_atBlock_before";
            } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(type)) {
                return "keyframes";
            } else if (type && type.charAt(0) == "@") {
                return pushContext(state, stream, "at");
            } else if (type == "hash") {
                override = "builtin";
            } else if (type == "word") {
                override = "tag";
            } else if (type == "variable-definition") {
                return "maybeprop";
            } else if (type == "interpolation") {
                return pushContext(state, stream, "interpolation");
            } else if (type == ":") {
                return "pseudo";
            } else if (allowNested && type == "(") {
                return pushContext(state, stream, "parens");
            }
            return state.context.type;
        };

        states.block = function (type, stream, state) {
            if (type == "word") {
                var word = stream.current().toLowerCase();
                if (propertyKeywords.hasOwnProperty(word)) {
                    override = "property";
                    return "maybeprop";
                } else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
                    override = "string-2";
                    return "maybeprop";
                } else if (allowNested) {
                    override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
                    return "block";
                } else {
                    override += " error";
                    return "maybeprop";
                }
            } else if (type == "meta") {
                return "block";
            } else if (!allowNested && (type == "hash" || type == "qualifier")) {
                override = "error";
                return "block";
            } else {
                return states.top(type, stream, state);
            }
        };

        states.maybeprop = function (type, stream, state) {
            if (type == ":") return pushContext(state, stream, "prop");
            return pass(type, stream, state);
        };

        states.prop = function (type, stream, state) {
            if (type == ";") return popContext(state);
            if (type == "{" && allowNested) return pushContext(state, stream, "propBlock");
            if (type == "}" || type == "{") return popAndPass(type, stream, state);
            if (type == "(") return pushContext(state, stream, "parens");

            if (type == "hash" && !/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(stream.current())) {
                override += " error";
            } else if (type == "word") {
                wordAsValue(stream);
            } else if (type == "interpolation") {
                return pushContext(state, stream, "interpolation");
            }
            return "prop";
        };

        states.propBlock = function (type, _stream, state) {
            if (type == "}") return popContext(state);
            if (type == "word") { override = "property"; return "maybeprop"; }
            return state.context.type;
        };

        states.parens = function (type, stream, state) {
            if (type == "{" || type == "}") return popAndPass(type, stream, state);
            if (type == ")") return popContext(state);
            if (type == "(") return pushContext(state, stream, "parens");
            if (type == "interpolation") return pushContext(state, stream, "interpolation");
            if (type == "word") wordAsValue(stream);
            return "parens";
        };

        states.pseudo = function (type, stream, state) {
            if (type == "word") {
                override = "variable-3";
                return state.context.type;
            }
            return pass(type, stream, state);
        };

        states.documentTypes = function (type, stream, state) {
            if (type == "word" && documentTypes.hasOwnProperty(stream.current())) {
                override = "tag";
                return state.context.type;
            } else {
                return states.atBlock(type, stream, state);
            }
        };

        states.atBlock = function (type, stream, state) {
            if (type == "(") return pushContext(state, stream, "atBlock_parens");
            if (type == "}" || type == ";") return popAndPass(type, stream, state);
            if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");

            if (type == "interpolation") return pushContext(state, stream, "interpolation");

            if (type == "word") {
                var word = stream.current().toLowerCase();
                if (word == "only" || word == "not" || word == "and" || word == "or")
                    override = "keyword";
                else if (mediaTypes.hasOwnProperty(word))
                    override = "attribute";
                else if (mediaFeatures.hasOwnProperty(word))
                    override = "property";
                else if (mediaValueKeywords.hasOwnProperty(word))
                    override = "keyword";
                else if (propertyKeywords.hasOwnProperty(word))
                    override = "property";
                else if (nonStandardPropertyKeywords.hasOwnProperty(word))
                    override = "string-2";
                else if (valueKeywords.hasOwnProperty(word))
                    override = "atom";
                else if (colorKeywords.hasOwnProperty(word))
                    override = "keyword";
                else
                    override = "error";
            }
            return state.context.type;
        };

        states.atComponentBlock = function (type, stream, state) {
            if (type == "}")
                return popAndPass(type, stream, state);
            if (type == "{")
                return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false);
            if (type == "word")
                override = "error";
            return state.context.type;
        };

        states.atBlock_parens = function (type, stream, state) {
            if (type == ")") return popContext(state);
            if (type == "{" || type == "}") return popAndPass(type, stream, state, 2);
            return states.atBlock(type, stream, state);
        };

        states.restricted_atBlock_before = function (type, stream, state) {
            if (type == "{")
                return pushContext(state, stream, "restricted_atBlock");
            if (type == "word" && state.stateArg == "@counter-style") {
                override = "variable";
                return "restricted_atBlock_before";
            }
            return pass(type, stream, state);
        };

        states.restricted_atBlock = function (type, stream, state) {
            if (type == "}") {
                state.stateArg = null;
                return popContext(state);
            }
            if (type == "word") {
                if ((state.stateArg == "@font-face" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) ||
                    (state.stateArg == "@counter-style" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase())))
                    override = "error";
                else
                    override = "property";
                return "maybeprop";
            }
            return "restricted_atBlock";
        };

        states.keyframes = function (type, stream, state) {
            if (type == "word") { override = "variable"; return "keyframes"; }
            if (type == "{") return pushContext(state, stream, "top");
            return pass(type, stream, state);
        };

        states.at = function (type, stream, state) {
            if (type == ";") return popContext(state);
            if (type == "{" || type == "}") return popAndPass(type, stream, state);
            if (type == "word") override = "tag";
            else if (type == "hash") override = "builtin";
            return "at";
        };

        states.interpolation = function (type, stream, state) {
            if (type == "}") return popContext(state);
            if (type == "{" || type == ";") return popAndPass(type, stream, state);
            if (type == "word") override = "variable";
            else if (type != "variable" && type != "(" && type != ")") override = "error";
            return "interpolation";
        };

        return {
            startState: function (base) {
                return {
                    tokenize: null,
                    state: inline ? "block" : "top",
                    stateArg: null,
                    context: new Context(inline ? "block" : "top", base || 0, null)
                };
            },

            token: function (stream, state) {
                if (!state.tokenize && stream.eatSpace()) return null;
                var style = (state.tokenize || tokenBase)(stream, state);
                if (style && typeof style == "object") {
                    type = style[1];
                    style = style[0];
                }
                override = style;
                state.state = states[state.state](type, stream, state);
                return override;
            },

            indent: function (state, textAfter) {
                var cx = state.context, ch = textAfter && textAfter.charAt(0);
                var indent = cx.indent;
                if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;
                if (cx.prev) {
                    if (ch == "}" && (cx.type == "block" || cx.type == "top" ||
                        cx.type == "interpolation" || cx.type == "restricted_atBlock")) {
                        // Resume indentation from parent context.
                        cx = cx.prev;
                        indent = cx.indent;
                    } else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
                        ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
                        // Dedent relative to current context.
                        indent = Math.max(0, cx.indent - indentUnit);
                        cx = cx.prev;
                    }
                }
                return indent;
            },

            electricChars: "}",
            blockCommentStart: "/*",
            blockCommentEnd: "*/",
            fold: "brace"
        };
    });

    function keySet(array) {
        var keys = {};
        for (var i = 0; i < array.length; ++i) {
            keys[array[i]] = true;
        }
        return keys;
    }

    var documentTypes_ = [
        "domain", "regexp", "url", "url-prefix"
    ], documentTypes = keySet(documentTypes_);

    var mediaTypes_ = [
        "all", "aural", "braille", "handheld", "print", "projection", "screen",
        "tty", "tv", "embossed"
    ], mediaTypes = keySet(mediaTypes_);

    var mediaFeatures_ = [
        "width", "min-width", "max-width", "height", "min-height", "max-height",
        "device-width", "min-device-width", "max-device-width", "device-height",
        "min-device-height", "max-device-height", "aspect-ratio",
        "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
        "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
        "max-color", "color-index", "min-color-index", "max-color-index",
        "monochrome", "min-monochrome", "max-monochrome", "resolution",
        "min-resolution", "max-resolution", "scan", "grid", "orientation",
        "device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio",
        "pointer", "any-pointer", "hover", "any-hover"
    ], mediaFeatures = keySet(mediaFeatures_);

    var mediaValueKeywords_ = [
        "landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover",
        "interlace", "progressive"
    ], mediaValueKeywords = keySet(mediaValueKeywords_);

    var propertyKeywords_ = [
        "align-content", "align-items", "align-self", "alignment-adjust",
        "alignment-baseline", "anchor-point", "animation", "animation-delay",
        "animation-direction", "animation-duration", "animation-fill-mode",
        "animation-iteration-count", "animation-name", "animation-play-state",
        "animation-timing-function", "appearance", "azimuth", "backface-visibility",
        "background", "background-attachment", "background-blend-mode", "background-clip",
        "background-color", "background-image", "background-origin", "background-position",
        "background-repeat", "background-size", "baseline-shift", "binding",
        "bleed", "bookmark-label", "bookmark-level", "bookmark-state",
        "bookmark-target", "border", "border-bottom", "border-bottom-color",
        "border-bottom-left-radius", "border-bottom-right-radius",
        "border-bottom-style", "border-bottom-width", "border-collapse",
        "border-color", "border-image", "border-image-outset",
        "border-image-repeat", "border-image-slice", "border-image-source",
        "border-image-width", "border-left", "border-left-color",
        "border-left-style", "border-left-width", "border-radius", "border-right",
        "border-right-color", "border-right-style", "border-right-width",
        "border-spacing", "border-style", "border-top", "border-top-color",
        "border-top-left-radius", "border-top-right-radius", "border-top-style",
        "border-top-width", "border-width", "bottom", "box-decoration-break",
        "box-shadow", "box-sizing", "break-after", "break-before", "break-inside",
        "caption-side", "clear", "clip", "color", "color-profile", "column-count",
        "column-fill", "column-gap", "column-rule", "column-rule-color",
        "column-rule-style", "column-rule-width", "column-span", "column-width",
        "columns", "content", "counter-increment", "counter-reset", "crop", "cue",
        "cue-after", "cue-before", "cursor", "direction", "display",
        "dominant-baseline", "drop-initial-after-adjust",
        "drop-initial-after-align", "drop-initial-before-adjust",
        "drop-initial-before-align", "drop-initial-size", "drop-initial-value",
        "elevation", "empty-cells", "fit", "fit-position", "flex", "flex-basis",
        "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap",
        "float", "float-offset", "flow-from", "flow-into", "font", "font-feature-settings",
        "font-family", "font-kerning", "font-language-override", "font-size", "font-size-adjust",
        "font-stretch", "font-style", "font-synthesis", "font-variant",
        "font-variant-alternates", "font-variant-caps", "font-variant-east-asian",
        "font-variant-ligatures", "font-variant-numeric", "font-variant-position",
        "font-weight", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow",
        "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-gap",
        "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-gap",
        "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns",
        "grid-template-rows", "hanging-punctuation", "height", "hyphens",
        "icon", "image-orientation", "image-rendering", "image-resolution",
        "inline-box-align", "justify-content", "left", "letter-spacing",
        "line-break", "line-height", "line-stacking", "line-stacking-ruby",
        "line-stacking-shift", "line-stacking-strategy", "list-style",
        "list-style-image", "list-style-position", "list-style-type", "margin",
        "margin-bottom", "margin-left", "margin-right", "margin-top",
        "marker-offset", "marks", "marquee-direction", "marquee-loop",
        "marquee-play-count", "marquee-speed", "marquee-style", "max-height",
        "max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index",
        "nav-left", "nav-right", "nav-up", "object-fit", "object-position",
        "opacity", "order", "orphans", "outline",
        "outline-color", "outline-offset", "outline-style", "outline-width",
        "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y",
        "padding", "padding-bottom", "padding-left", "padding-right", "padding-top",
        "page", "page-break-after", "page-break-before", "page-break-inside",
        "page-policy", "pause", "pause-after", "pause-before", "perspective",
        "perspective-origin", "pitch", "pitch-range", "play-during", "position",
        "presentation-level", "punctuation-trim", "quotes", "region-break-after",
        "region-break-before", "region-break-inside", "region-fragment",
        "rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness",
        "right", "rotation", "rotation-point", "ruby-align", "ruby-overhang",
        "ruby-position", "ruby-span", "shape-image-threshold", "shape-inside", "shape-margin",
        "shape-outside", "size", "speak", "speak-as", "speak-header",
        "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set",
        "tab-size", "table-layout", "target", "target-name", "target-new",
        "target-position", "text-align", "text-align-last", "text-decoration",
        "text-decoration-color", "text-decoration-line", "text-decoration-skip",
        "text-decoration-style", "text-emphasis", "text-emphasis-color",
        "text-emphasis-position", "text-emphasis-style", "text-height",
        "text-indent", "text-justify", "text-outline", "text-overflow", "text-shadow",
        "text-size-adjust", "text-space-collapse", "text-transform", "text-underline-position",
        "text-wrap", "top", "transform", "transform-origin", "transform-style",
        "transition", "transition-delay", "transition-duration",
        "transition-property", "transition-timing-function", "unicode-bidi",
        "vertical-align", "visibility", "voice-balance", "voice-duration",
        "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress",
        "voice-volume", "volume", "white-space", "widows", "width", "word-break",
        "word-spacing", "word-wrap", "z-index",
        // SVG-specific
        "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",
        "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events",
        "color-interpolation", "color-interpolation-filters",
        "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
        "marker", "marker-end", "marker-mid", "marker-start", "shape-rendering", "stroke",
        "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin",
        "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
        "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
        "glyph-orientation-vertical", "text-anchor", "writing-mode"
    ], propertyKeywords = keySet(propertyKeywords_);

    var nonStandardPropertyKeywords_ = [
        "scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color",
        "scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color",
        "scrollbar-3d-light-color", "scrollbar-track-color", "shape-inside",
        "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button",
        "searchfield-results-decoration", "zoom"
    ], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);

    var fontProperties_ = [
        "font-family", "src", "unicode-range", "font-variant", "font-feature-settings",
        "font-stretch", "font-weight", "font-style"
    ], fontProperties = keySet(fontProperties_);

    var counterDescriptors_ = [
        "additive-symbols", "fallback", "negative", "pad", "prefix", "range",
        "speak-as", "suffix", "symbols", "system"
    ], counterDescriptors = keySet(counterDescriptors_);

    var colorKeywords_ = [
        "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
        "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
        "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
        "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
        "darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen",
        "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
        "darkslateblue", "darkslategray", "darkturquoise", "darkviolet",
        "deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick",
        "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
        "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
        "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
        "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
        "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightpink",
        "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray",
        "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
        "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
        "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
        "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
        "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
        "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
        "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
        "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
        "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
        "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan",
        "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
        "whitesmoke", "yellow", "yellowgreen"
    ], colorKeywords = keySet(colorKeywords_);

    var valueKeywords_ = [
        "above", "absolute", "activeborder", "additive", "activecaption", "afar",
        "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate",
        "always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
        "arabic-indic", "armenian", "asterisks", "attr", "auto", "avoid", "avoid-column", "avoid-page",
        "avoid-region", "background", "backwards", "baseline", "below", "bidi-override", "binary",
        "bengali", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box",
        "both", "bottom", "break", "break-all", "break-word", "bullets", "button", "button-bevel",
        "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",
        "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
        "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
        "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
        "col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse",
        "compact", "condensed", "contain", "content",
        "content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover", "crop",
        "cross", "crosshair", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal",
        "decimal-leading-zero", "default", "default-button", "dense", "destination-atop",
        "destination-in", "destination-out", "destination-over", "devanagari", "difference",
        "disc", "discard", "disclosure-closed", "disclosure-open", "document",
        "dot-dash", "dot-dot-dash",
        "dotted", "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",
        "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
        "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
        "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
        "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
        "ethiopic-halehame-gez", "ethiopic-halehame-om-et",
        "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",
        "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig",
        "ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed",
        "extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes",
        "forwards", "from", "geometricPrecision", "georgian", "graytext", "grid", "groove",
        "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew",
        "help", "hidden", "hide", "higher", "highlight", "highlighttext",
        "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "icon", "ignore",
        "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
        "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",
        "inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert",
        "italic", "japanese-formal", "japanese-informal", "justify", "kannada",
        "katakana", "katakana-iroha", "keep-all", "khmer",
        "korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal",
        "landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten",
        "line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem",
        "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
        "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
        "lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "match", "matrix", "matrix3d",
        "media-controls-background", "media-current-time-display",
        "media-fullscreen-button", "media-mute-button", "media-play-button",
        "media-return-to-realtime-button", "media-rewind-button",
        "media-seek-back-button", "media-seek-forward-button", "media-slider",
        "media-sliderthumb", "media-time-remaining-display", "media-volume-slider",
        "media-volume-slider-container", "media-volume-sliderthumb", "medium",
        "menu", "menulist", "menulist-button", "menulist-text",
        "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",
        "mix", "mongolian", "monospace", "move", "multiple", "multiply", "myanmar", "n-resize",
        "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
        "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
        "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "open-quote",
        "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
        "outside", "outside-shape", "overlay", "overline", "padding", "padding-box",
        "painted", "page", "paused", "persian", "perspective", "plus-darker", "plus-lighter",
        "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d",
        "progress", "push-button", "radial-gradient", "radio", "read-only",
        "read-write", "read-write-plaintext-only", "rectangle", "region",
        "relative", "repeat", "repeating-linear-gradient",
        "repeating-radial-gradient", "repeat-x", "repeat-y", "reset", "reverse",
        "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY",
        "rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running",
        "s-resize", "sans-serif", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen",
        "scroll", "scrollbar", "se-resize", "searchfield",
        "searchfield-cancel-button", "searchfield-decoration",
        "searchfield-results-button", "searchfield-results-decoration",
        "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama",
        "simp-chinese-formal", "simp-chinese-informal", "single",
        "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
        "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
        "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali",
        "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "spell-out", "square",
        "square-button", "start", "static", "status-bar", "stretch", "stroke", "sub",
        "subpixel-antialiased", "super", "sw-resize", "symbolic", "symbols", "table",
        "table-caption", "table-cell", "table-column", "table-column-group",
        "table-footer-group", "table-header-group", "table-row", "table-row-group",
        "tamil",
        "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
        "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
        "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
        "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
        "trad-chinese-formal", "trad-chinese-informal",
        "translate", "translate3d", "translateX", "translateY", "translateZ",
        "transparent", "ultra-condensed", "ultra-expanded", "underline", "up",
        "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
        "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
        "var", "vertical", "vertical-text", "visible", "visibleFill", "visiblePainted",
        "visibleStroke", "visual", "w-resize", "wait", "wave", "wider",
        "window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor",
        "xx-large", "xx-small"
    ], valueKeywords = keySet(valueKeywords_);

    var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_)
        .concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_)
        .concat(valueKeywords_);
    CodeMirror.registerHelper("hintWords", "css", allWords);

    function tokenCComment(stream, state) {
        var maybeEnd = false, ch;
        while ((ch = stream.next()) != null) {
            if (maybeEnd && ch == "/") {
                state.tokenize = null;
                break;
            }
            maybeEnd = (ch == "*");
        }
        return ["comment", "comment"];
    }

    CodeMirror.defineMIME("text/css", {
        documentTypes: documentTypes,
        mediaTypes: mediaTypes,
        mediaFeatures: mediaFeatures,
        mediaValueKeywords: mediaValueKeywords,
        propertyKeywords: propertyKeywords,
        nonStandardPropertyKeywords: nonStandardPropertyKeywords,
        fontProperties: fontProperties,
        counterDescriptors: counterDescriptors,
        colorKeywords: colorKeywords,
        valueKeywords: valueKeywords,
        tokenHooks: {
            "/": function (stream, state) {
                if (!stream.eat("*")) return false;
                state.tokenize = tokenCComment;
                return tokenCComment(stream, state);
            }
        },
        name: "css"
    });

    CodeMirror.defineMIME("text/x-scss", {
        mediaTypes: mediaTypes,
        mediaFeatures: mediaFeatures,
        mediaValueKeywords: mediaValueKeywords,
        propertyKeywords: propertyKeywords,
        nonStandardPropertyKeywords: nonStandardPropertyKeywords,
        colorKeywords: colorKeywords,
        valueKeywords: valueKeywords,
        fontProperties: fontProperties,
        allowNested: true,
        tokenHooks: {
            "/": function (stream, state) {
                if (stream.eat("/")) {
                    stream.skipToEnd();
                    return ["comment", "comment"];
                } else if (stream.eat("*")) {
                    state.tokenize = tokenCComment;
                    return tokenCComment(stream, state);
                } else {
                    return ["operator", "operator"];
                }
            },
            ":": function (stream) {
                if (stream.match(/\s*\{/))
                    return [null, "{"];
                return false;
            },
            "$": function (stream) {
                stream.match(/^[\w-]+/);
                if (stream.match(/^\s*:/, false))
                    return ["variable-2", "variable-definition"];
                return ["variable-2", "variable"];
            },
            "#": function (stream) {
                if (!stream.eat("{")) return false;
                return [null, "interpolation"];
            }
        },
        name: "css",
        helperType: "scss"
    });

    CodeMirror.defineMIME("text/x-less", {
        mediaTypes: mediaTypes,
        mediaFeatures: mediaFeatures,
        mediaValueKeywords: mediaValueKeywords,
        propertyKeywords: propertyKeywords,
        nonStandardPropertyKeywords: nonStandardPropertyKeywords,
        colorKeywords: colorKeywords,
        valueKeywords: valueKeywords,
        fontProperties: fontProperties,
        allowNested: true,
        tokenHooks: {
            "/": function (stream, state) {
                if (stream.eat("/")) {
                    stream.skipToEnd();
                    return ["comment", "comment"];
                } else if (stream.eat("*")) {
                    state.tokenize = tokenCComment;
                    return tokenCComment(stream, state);
                } else {
                    return ["operator", "operator"];
                }
            },
            "@": function (stream) {
                if (stream.eat("{")) return [null, "interpolation"];
                if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/, false)) return false;
                stream.eatWhile(/[\w\\\-]/);
                if (stream.match(/^\s*:/, false))
                    return ["variable-2", "variable-definition"];
                return ["variable-2", "variable"];
            },
            "&": function () {
                return ["atom", "atom"];
            }
        },
        name: "css",
        helperType: "less"
    });

    CodeMirror.defineMIME("text/x-gss", {
        documentTypes: documentTypes,
        mediaTypes: mediaTypes,
        mediaFeatures: mediaFeatures,
        propertyKeywords: propertyKeywords,
        nonStandardPropertyKeywords: nonStandardPropertyKeywords,
        fontProperties: fontProperties,
        counterDescriptors: counterDescriptors,
        colorKeywords: colorKeywords,
        valueKeywords: valueKeywords,
        supportsAtComponent: true,
        tokenHooks: {
            "/": function (stream, state) {
                if (!stream.eat("*")) return false;
                state.tokenize = tokenCComment;
                return tokenCComment(stream, state);
            }
        },
        name: "css",
        helperType: "gss"
    });

});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript"), require("../css/css"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript", "../css/css"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  var defaultTags = {
    script: [
      ["lang", /(javascript|babel)/i, "javascript"],
      ["type", /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i, "javascript"],
      ["type", /./, "text/plain"],
      [null, null, "javascript"]
    ],
    style:  [
      ["lang", /^css$/i, "css"],
      ["type", /^(text\/)?(x-)?(stylesheet|css)$/i, "css"],
      ["type", /./, "text/plain"],
      [null, null, "css"]
    ]
  };

  function maybeBackup(stream, pat, style) {
    var cur = stream.current(), close = cur.search(pat);
    if (close > -1) {
      stream.backUp(cur.length - close);
    } else if (cur.match(/<\/?$/)) {
      stream.backUp(cur.length);
      if (!stream.match(pat, false)) stream.match(cur);
    }
    return style;
  }

  var attrRegexpCache = {};
  function getAttrRegexp(attr) {
    var regexp = attrRegexpCache[attr];
    if (regexp) return regexp;
    return attrRegexpCache[attr] = new RegExp("\\s+" + attr + "\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*");
  }

  function getAttrValue(text, attr) {
    var match = text.match(getAttrRegexp(attr))
    return match ? match[2] : ""
  }

  function getTagRegexp(tagName, anchored) {
    return new RegExp((anchored ? "^" : "") + "<\/\s*" + tagName + "\s*>", "i");
  }

  function addTags(from, to) {
    for (var tag in from) {
      var dest = to[tag] || (to[tag] = []);
      var source = from[tag];
      for (var i = source.length - 1; i >= 0; i--)
        dest.unshift(source[i])
    }
  }

  function findMatchingMode(tagInfo, tagText) {
    for (var i = 0; i < tagInfo.length; i++) {
      var spec = tagInfo[i];
      if (!spec[0] || spec[1].test(getAttrValue(tagText, spec[0]))) return spec[2];
    }
  }

  CodeMirror.defineMode("htmlmixed", function (config, parserConfig) {
    var htmlMode = CodeMirror.getMode(config, {
      name: "xml",
      htmlMode: true,
      multilineTagIndentFactor: parserConfig.multilineTagIndentFactor,
      multilineTagIndentPastTag: parserConfig.multilineTagIndentPastTag
    });

    var tags = {};
    var configTags = parserConfig && parserConfig.tags, configScript = parserConfig && parserConfig.scriptTypes;
    addTags(defaultTags, tags);
    if (configTags) addTags(configTags, tags);
    if (configScript) for (var i = configScript.length - 1; i >= 0; i--)
      tags.script.unshift(["type", configScript[i].matches, configScript[i].mode])

    function html(stream, state) {
      var style = htmlMode.token(stream, state.htmlState), tag = /\btag\b/.test(style), tagName
      if (tag && !/[<>\s\/]/.test(stream.current()) &&
          (tagName = state.htmlState.tagName && state.htmlState.tagName.toLowerCase()) &&
          tags.hasOwnProperty(tagName)) {
        state.inTag = tagName + " "
      } else if (state.inTag && tag && />$/.test(stream.current())) {
        var inTag = /^([\S]+) (.*)/.exec(state.inTag)
        state.inTag = null
        var modeSpec = stream.current() == ">" && findMatchingMode(tags[inTag[1]], inTag[2])
        var mode = CodeMirror.getMode(config, modeSpec)
        var endTagA = getTagRegexp(inTag[1], true), endTag = getTagRegexp(inTag[1], false);
        state.token = function (stream, state) {
          if (stream.match(endTagA, false)) {
            state.token = html;
            state.localState = state.localMode = null;
            return null;
          }
          return maybeBackup(stream, endTag, state.localMode.token(stream, state.localState));
        };
        state.localMode = mode;
        state.localState = CodeMirror.startState(mode, htmlMode.indent(state.htmlState, ""));
      } else if (state.inTag) {
        state.inTag += stream.current()
        if (stream.eol()) state.inTag += " "
      }
      return style;
    };

    return {
      startState: function () {
        var state = CodeMirror.startState(htmlMode);
        return {token: html, inTag: null, localMode: null, localState: null, htmlState: state};
      },

      copyState: function (state) {
        var local;
        if (state.localState) {
          local = CodeMirror.copyState(state.localMode, state.localState);
        }
        return {token: state.token, inTag: state.inTag,
                localMode: state.localMode, localState: local,
                htmlState: CodeMirror.copyState(htmlMode, state.htmlState)};
      },

      token: function (stream, state) {
        return state.token(stream, state);
      },

      indent: function (state, textAfter) {
        if (!state.localMode || /^\s*<\//.test(textAfter))
          return htmlMode.indent(state.htmlState, textAfter);
        else if (state.localMode.indent)
          return state.localMode.indent(state.localState, textAfter);
        else
          return CodeMirror.Pass;
      },

      innerMode: function (state) {
        return {state: state.localState || state.htmlState, mode: state.localMode || htmlMode};
      }
    };
  }, "xml", "javascript", "css");

  CodeMirror.defineMIME("text/html", "htmlmixed");
});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

// TODO actually recognize syntax of TypeScript constructs

(function (mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
        mod(require("../../lib/codemirror"));
    else if (typeof define == "function" && define.amd) // AMD
        define(["../../lib/codemirror"], mod);
    else // Plain browser env
        mod(CodeMirror);
})(function (CodeMirror) {
    "use strict";

    function expressionAllowed(stream, state, backUp) {
        return /^(?:operator|sof|keyword c|case|new|[\[{}\(,;:]|=>)$/.test(state.lastType) ||
            (state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0))))
    }

    CodeMirror.defineMode("javascript", function (config, parserConfig) {
        var indentUnit = config.indentUnit;
        var statementIndent = parserConfig.statementIndent;
        var jsonldMode = parserConfig.jsonld;
        var jsonMode = parserConfig.json || jsonldMode;
        var isTS = parserConfig.typescript;
        var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;

        // Tokenizer

        var keywords = function () {
            function kw(type) { return { type: type, style: "keyword" }; }
            var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c");
            var operator = kw("operator"), atom = { type: "atom", style: "atom" };

            var jsKeywords = {
                "if": kw("if"), "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B,
                "return": C, "break": C, "continue": C, "new": kw("new"), "delete": C, "throw": C, "debugger": C,
                "var": kw("var"), "const": kw("var"), "let": kw("var"),
                "function": kw("function"), "catch": kw("catch"),
                "for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"),
                "in": operator, "typeof": operator, "instanceof": operator,
                "true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom,
                "this": kw("this"), "class": kw("class"), "super": kw("atom"),
                "yield": C, "export": kw("export"), "import": kw("import"), "extends": C,
                "await": C, "async": kw("async")
            };

            // Extend the 'normal' keywords with the TypeScript language extensions
            if (isTS) {
                var type = { type: "variable", style: "variable-3" };
                var tsKeywords = {
                    // object-like things
                    "interface": kw("class"),
                    "implements": C,
                    "namespace": C,
                    "module": kw("module"),
                    "enum": kw("module"),

                    // scope modifiers
                    "public": kw("modifier"),
                    "private": kw("modifier"),
                    "protected": kw("modifier"),
                    "abstract": kw("modifier"),

                    // operators
                    "as": operator,

                    // types
                    "string": type, "number": type, "boolean": type, "any": type
                };

                for (var attr in tsKeywords) {
                    jsKeywords[attr] = tsKeywords[attr];
                }
            }

            return jsKeywords;
        }();

        var isOperatorChar = /[+\-*&%=<>!?|~^]/;
        var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;

        function readRegexp(stream) {
            var escaped = false, next, inSet = false;
            while ((next = stream.next()) != null) {
                if (!escaped) {
                    if (next == "/" && !inSet) return;
                    if (next == "[") inSet = true;
                    else if (inSet && next == "]") inSet = false;
                }
                escaped = !escaped && next == "\\";
            }
        }

        // Used as scratch variables to communicate multiple values without
        // consing up tons of objects.
        var type, content;
        function ret(tp, style, cont) {
            type = tp; content = cont;
            return style;
        }
        function tokenBase(stream, state) {
            var ch = stream.next();
            if (ch == '"' || ch == "'") {
                state.tokenize = tokenString(ch);
                return state.tokenize(stream, state);
            } else if (ch == "." && stream.match(/^\d+(?:[eE][+\-]?\d+)?/)) {
                return ret("number", "number");
            } else if (ch == "." && stream.match("..")) {
                return ret("spread", "meta");
            } else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
                return ret(ch);
            } else if (ch == "=" && stream.eat(">")) {
                return ret("=>", "operator");
            } else if (ch == "0" && stream.eat(/x/i)) {
                stream.eatWhile(/[\da-f]/i);
                return ret("number", "number");
            } else if (ch == "0" && stream.eat(/o/i)) {
                stream.eatWhile(/[0-7]/i);
                return ret("number", "number");
            } else if (ch == "0" && stream.eat(/b/i)) {
                stream.eatWhile(/[01]/i);
                return ret("number", "number");
            } else if (/\d/.test(ch)) {
                stream.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);
                return ret("number", "number");
            } else if (ch == "/") {
                if (stream.eat("*")) {
                    state.tokenize = tokenComment;
                    return tokenComment(stream, state);
                } else if (stream.eat("/")) {
                    stream.skipToEnd();
                    return ret("comment", "comment");
                } else if (expressionAllowed(stream, state, 1)) {
                    readRegexp(stream);
                    stream.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);
                    return ret("regexp", "string-2");
                } else {
                    stream.eatWhile(isOperatorChar);
                    return ret("operator", "operator", stream.current());
                }
            } else if (ch == "`") {
                state.tokenize = tokenQuasi;
                return tokenQuasi(stream, state);
            } else if (ch == "#") {
                stream.skipToEnd();
                return ret("error", "error");
            } else if (isOperatorChar.test(ch)) {
                stream.eatWhile(isOperatorChar);
                return ret("operator", "operator", stream.current());
            } else if (wordRE.test(ch)) {
                stream.eatWhile(wordRE);
                var word = stream.current(), known = keywords.propertyIsEnumerable(word) && keywords[word];
                return (known && state.lastType != ".") ? ret(known.type, known.style, word) :
                    ret("variable", "variable", word);
            }
        }

        function tokenString(quote) {
            return function (stream, state) {
                var escaped = false, next;
                if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)) {
                    state.tokenize = tokenBase;
                    return ret("jsonld-keyword", "meta");
                }
                while ((next = stream.next()) != null) {
                    if (next == quote && !escaped) break;
                    escaped = !escaped && next == "\\";
                }
                if (!escaped) state.tokenize = tokenBase;
                return ret("string", "string");
            };
        }

        function tokenComment(stream, state) {
            var maybeEnd = false, ch;
            while (ch = stream.next()) {
                if (ch == "/" && maybeEnd) {
                    state.tokenize = tokenBase;
                    break;
                }
                maybeEnd = (ch == "*");
            }
            return ret("comment", "comment");
        }

        function tokenQuasi(stream, state) {
            var escaped = false, next;
            while ((next = stream.next()) != null) {
                if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
                    state.tokenize = tokenBase;
                    break;
                }
                escaped = !escaped && next == "\\";
            }
            return ret("quasi", "string-2", stream.current());
        }

        var brackets = "([{}])";
        // This is a crude lookahead trick to try and notice that we're
        // parsing the argument patterns for a fat-arrow function before we
        // actually hit the arrow token. It only works if the arrow is on
        // the same line as the arguments and there's no strange noise
        // (comments) in between. Fallback is to only notice when we hit the
        // arrow, and not declare the arguments as locals for the arrow
        // body.
        function findFatArrow(stream, state) {
            if (state.fatArrowAt) state.fatArrowAt = null;
            var arrow = stream.string.indexOf("=>", stream.start);
            if (arrow < 0) return;

            var depth = 0, sawSomething = false;
            for (var pos = arrow - 1; pos >= 0; --pos) {
                var ch = stream.string.charAt(pos);
                var bracket = brackets.indexOf(ch);
                if (bracket >= 0 && bracket < 3) {
                    if (!depth) { ++pos; break; }
                    if (--depth == 0) break;
                } else if (bracket >= 3 && bracket < 6) {
                    ++depth;
                } else if (wordRE.test(ch)) {
                    sawSomething = true;
                } else if (/["'\/]/.test(ch)) {
                    return;
                } else if (sawSomething && !depth) {
                    ++pos;
                    break;
                }
            }
            if (sawSomething && !depth) state.fatArrowAt = pos;
        }

        // Parser

        var atomicTypes = { "atom": true, "number": true, "variable": true, "string": true, "regexp": true, "this": true, "jsonld-keyword": true };

        function JSLexical(indented, column, type, align, prev, info) {
            this.indented = indented;
            this.column = column;
            this.type = type;
            this.prev = prev;
            this.info = info;
            if (align != null) this.align = align;
        }

        function inScope(state, varname) {
            for (var v = state.localVars; v; v = v.next)
                if (v.name == varname) return true;
            for (var cx = state.context; cx; cx = cx.prev) {
                for (var v = cx.vars; v; v = v.next)
                    if (v.name == varname) return true;
            }
        }

        function parseJS(state, style, type, content, stream) {
            var cc = state.cc;
            // Communicate our context to the combinators.
            // (Less wasteful than consing up a hundred closures on every call.)
            cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc; cx.style = style;

            if (!state.lexical.hasOwnProperty("align"))
                state.lexical.align = true;

            while (true) {
                var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
                if (combinator(type, content)) {
                    while (cc.length && cc[cc.length - 1].lex)
                        cc.pop()();
                    if (cx.marked) return cx.marked;
                    if (type == "variable" && inScope(state, content)) return "variable-2";
                    return style;
                }
            }
        }

        // Combinator utils

        var cx = { state: null, column: null, marked: null, cc: null };
        function pass() {
            for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
        }
        function cont() {
            pass.apply(null, arguments);
            return true;
        }
        function register(varname) {
            function inList(list) {
                for (var v = list; v; v = v.next)
                    if (v.name == varname) return true;
                return false;
            }
            var state = cx.state;
            cx.marked = "def";
            if (state.context) {
                if (inList(state.localVars)) return;
                state.localVars = { name: varname, next: state.localVars };
            } else {
                if (inList(state.globalVars)) return;
                if (parserConfig.globalVars)
                    state.globalVars = { name: varname, next: state.globalVars };
            }
        }

        // Combinators

        var defaultVars = { name: "this", next: { name: "arguments" } };
        function pushcontext() {
            cx.state.context = { prev: cx.state.context, vars: cx.state.localVars };
            cx.state.localVars = defaultVars;
        }
        function popcontext() {
            cx.state.localVars = cx.state.context.vars;
            cx.state.context = cx.state.context.prev;
        }
        function pushlex(type, info) {
            var result = function () {
                var state = cx.state, indent = state.indented;
                if (state.lexical.type == "stat") indent = state.lexical.indented;
                else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
                    indent = outer.indented;
                state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
            };
            result.lex = true;
            return result;
        }
        function poplex() {
            var state = cx.state;
            if (state.lexical.prev) {
                if (state.lexical.type == ")")
                    state.indented = state.lexical.indented;
                state.lexical = state.lexical.prev;
            }
        }
        poplex.lex = true;

        function expect(wanted) {
            function exp(type) {
                if (type == wanted) return cont();
                else if (wanted == ";") return pass();
                else return cont(exp);
            };
            return exp;
        }

        function statement(type, value) {
            if (type == "var") return cont(pushlex("vardef", value.length), vardef, expect(";"), poplex);
            if (type == "keyword a") return cont(pushlex("form"), expression, statement, poplex);
            if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
            if (type == "{") return cont(pushlex("}"), block, poplex);
            if (type == ";") return cont();
            if (type == "if") {
                if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex)
                    cx.state.cc.pop()();
                return cont(pushlex("form"), expression, statement, poplex, maybeelse);
            }
            if (type == "function") return cont(functiondef);
            if (type == "for") return cont(pushlex("form"), forspec, statement, poplex);
            if (type == "variable") return cont(pushlex("stat"), maybelabel);
            if (type == "switch") return cont(pushlex("form"), expression, pushlex("}", "switch"), expect("{"),
                block, poplex, poplex);
            if (type == "case") return cont(expression, expect(":"));
            if (type == "default") return cont(expect(":"));
            if (type == "catch") return cont(pushlex("form"), pushcontext, expect("("), funarg, expect(")"),
                statement, poplex, popcontext);
            if (type == "class") return cont(pushlex("form"), className, poplex);
            if (type == "export") return cont(pushlex("stat"), afterExport, poplex);
            if (type == "import") return cont(pushlex("stat"), afterImport, poplex);
            if (type == "module") return cont(pushlex("form"), pattern, pushlex("}"), expect("{"), block, poplex, poplex)
            if (type == "async") return cont(statement)
            return pass(pushlex("stat"), expression, expect(";"), poplex);
        }
        function expression(type) {
            return expressionInner(type, false);
        }
        function expressionNoComma(type) {
            return expressionInner(type, true);
        }
        function expressionInner(type, noComma) {
            if (cx.state.fatArrowAt == cx.stream.start) {
                var body = noComma ? arrowBodyNoComma : arrowBody;
                if (type == "(") return cont(pushcontext, pushlex(")"), commasep(pattern, ")"), poplex, expect("=>"), body, popcontext);
                else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
            }

            var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
            if (atomicTypes.hasOwnProperty(type)) return cont(maybeop);
            if (type == "function") return cont(functiondef, maybeop);
            if (type == "keyword c") return cont(noComma ? maybeexpressionNoComma : maybeexpression);
            if (type == "(") return cont(pushlex(")"), maybeexpression, comprehension, expect(")"), poplex, maybeop);
            if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression);
            if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
            if (type == "{") return contCommasep(objprop, "}", null, maybeop);
            if (type == "quasi") return pass(quasi, maybeop);
            if (type == "new") return cont(maybeTarget(noComma));
            return cont();
        }
        function maybeexpression(type) {
            if (type.match(/[;\}\)\],]/)) return pass();
            return pass(expression);
        }
        function maybeexpressionNoComma(type) {
            if (type.match(/[;\}\)\],]/)) return pass();
            return pass(expressionNoComma);
        }

        function maybeoperatorComma(type, value) {
            if (type == ",") return cont(expression);
            return maybeoperatorNoComma(type, value, false);
        }
        function maybeoperatorNoComma(type, value, noComma) {
            var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
            var expr = noComma == false ? expression : expressionNoComma;
            if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
            if (type == "operator") {
                if (/\+\+|--/.test(value)) return cont(me);
                if (value == "?") return cont(expression, expect(":"), expr);
                return cont(expr);
            }
            if (type == "quasi") { return pass(quasi, me); }
            if (type == ";") return;
            if (type == "(") return contCommasep(expressionNoComma, ")", "call", me);
            if (type == ".") return cont(property, me);
            if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
        }
        function quasi(type, value) {
            if (type != "quasi") return pass();
            if (value.slice(value.length - 2) != "${") return cont(quasi);
            return cont(expression, continueQuasi);
        }
        function continueQuasi(type) {
            if (type == "}") {
                cx.marked = "string-2";
                cx.state.tokenize = tokenQuasi;
                return cont(quasi);
            }
        }
        function arrowBody(type) {
            findFatArrow(cx.stream, cx.state);
            return pass(type == "{" ? statement : expression);
        }
        function arrowBodyNoComma(type) {
            findFatArrow(cx.stream, cx.state);
            return pass(type == "{" ? statement : expressionNoComma);
        }
        function maybeTarget(noComma) {
            return function (type) {
                if (type == ".") return cont(noComma ? targetNoComma : target);
                else return pass(noComma ? expressionNoComma : expression);
            };
        }
        function target(_, value) {
            if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); }
        }
        function targetNoComma(_, value) {
            if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorNoComma); }
        }
        function maybelabel(type) {
            if (type == ":") return cont(poplex, statement);
            return pass(maybeoperatorComma, expect(";"), poplex);
        }
        function property(type) {
            if (type == "variable") { cx.marked = "property"; return cont(); }
        }
        function objprop(type, value) {
            if (type == "variable" || cx.style == "keyword") {
                cx.marked = "property";
                if (value == "get" || value == "set") return cont(getterSetter);
                return cont(afterprop);
            } else if (type == "number" || type == "string") {
                cx.marked = jsonldMode ? "property" : (cx.style + " property");
                return cont(afterprop);
            } else if (type == "jsonld-keyword") {
                return cont(afterprop);
            } else if (type == "modifier") {
                return cont(objprop)
            } else if (type == "[") {
                return cont(expression, expect("]"), afterprop);
            } else if (type == "spread") {
                return cont(expression);
            }
        }
        function getterSetter(type) {
            if (type != "variable") return pass(afterprop);
            cx.marked = "property";
            return cont(functiondef);
        }
        function afterprop(type) {
            if (type == ":") return cont(expressionNoComma);
            if (type == "(") return pass(functiondef);
        }
        function commasep(what, end) {
            function proceed(type, value) {
                if (type == ",") {
                    var lex = cx.state.lexical;
                    if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
                    return cont(what, proceed);
                }
                if (type == end || value == end) return cont();
                return cont(expect(end));
            }
            return function (type, value) {
                if (type == end || value == end) return cont();
                return pass(what, proceed);
            };
        }
        function contCommasep(what, end, info) {
            for (var i = 3; i < arguments.length; i++)
                cx.cc.push(arguments[i]);
            return cont(pushlex(end, info), commasep(what, end), poplex);
        }
        function block(type) {
            if (type == "}") return cont();
            return pass(statement, block);
        }
        function maybetype(type) {
            if (isTS && type == ":") return cont(typeexpr);
        }
        function maybedefault(_, value) {
            if (value == "=") return cont(expressionNoComma);
        }
        function typeexpr(type) {
            if (type == "variable") { cx.marked = "variable-3"; return cont(afterType); }
        }
        function afterType(type, value) {
            if (value == "<") return cont(commasep(typeexpr, ">"), afterType)
            if (type == "[") return cont(expect("]"), afterType)
        }
        function vardef() {
            return pass(pattern, maybetype, maybeAssign, vardefCont);
        }
        function pattern(type, value) {
            if (type == "modifier") return cont(pattern)
            if (type == "variable") { register(value); return cont(); }
            if (type == "spread") return cont(pattern);
            if (type == "[") return contCommasep(pattern, "]");
            if (type == "{") return contCommasep(proppattern, "}");
        }
        function proppattern(type, value) {
            if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
                register(value);
                return cont(maybeAssign);
            }
            if (type == "variable") cx.marked = "property";
            if (type == "spread") return cont(pattern);
            if (type == "}") return pass();
            return cont(expect(":"), pattern, maybeAssign);
        }
        function maybeAssign(_type, value) {
            if (value == "=") return cont(expressionNoComma);
        }
        function vardefCont(type) {
            if (type == ",") return cont(vardef);
        }
        function maybeelse(type, value) {
            if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
        }
        function forspec(type) {
            if (type == "(") return cont(pushlex(")"), forspec1, expect(")"), poplex);
        }
        function forspec1(type) {
            if (type == "var") return cont(vardef, expect(";"), forspec2);
            if (type == ";") return cont(forspec2);
            if (type == "variable") return cont(formaybeinof);
            return pass(expression, expect(";"), forspec2);
        }
        function formaybeinof(_type, value) {
            if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression); }
            return cont(maybeoperatorComma, forspec2);
        }
        function forspec2(type, value) {
            if (type == ";") return cont(forspec3);
            if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression); }
            return pass(expression, expect(";"), forspec3);
        }
        function forspec3(type) {
            if (type != ")") cont(expression);
        }
        function functiondef(type, value) {
            if (value == "*") { cx.marked = "keyword"; return cont(functiondef); }
            if (type == "variable") { register(value); return cont(functiondef); }
            if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, maybetype, statement, popcontext);
        }
        function funarg(type) {
            if (type == "spread") return cont(funarg);
            return pass(pattern, maybetype, maybedefault);
        }
        function className(type, value) {
            if (type == "variable") { register(value); return cont(classNameAfter); }
        }
        function classNameAfter(type, value) {
            if (value == "extends") return cont(expression, classNameAfter);
            if (type == "{") return cont(pushlex("}"), classBody, poplex);
        }
        function classBody(type, value) {
            if (type == "variable" || cx.style == "keyword") {
                if (value == "static") {
                    cx.marked = "keyword";
                    return cont(classBody);
                }
                cx.marked = "property";
                if (value == "get" || value == "set") return cont(classGetterSetter, functiondef, classBody);
                return cont(functiondef, classBody);
            }
            if (value == "*") {
                cx.marked = "keyword";
                return cont(classBody);
            }
            if (type == ";") return cont(classBody);
            if (type == "}") return cont();
        }
        function classGetterSetter(type) {
            if (type != "variable") return pass();
            cx.marked = "property";
            return cont();
        }
        function afterExport(_type, value) {
            if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); }
            if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); }
            return pass(statement);
        }
        function afterImport(type) {
            if (type == "string") return cont();
            return pass(importSpec, maybeFrom);
        }
        function importSpec(type, value) {
            if (type == "{") return contCommasep(importSpec, "}");
            if (type == "variable") register(value);
            if (value == "*") cx.marked = "keyword";
            return cont(maybeAs);
        }
        function maybeAs(_type, value) {
            if (value == "as") { cx.marked = "keyword"; return cont(importSpec); }
        }
        function maybeFrom(_type, value) {
            if (value == "from") { cx.marked = "keyword"; return cont(expression); }
        }
        function arrayLiteral(type) {
            if (type == "]") return cont();
            return pass(expressionNoComma, maybeArrayComprehension);
        }
        function maybeArrayComprehension(type) {
            if (type == "for") return pass(comprehension, expect("]"));
            if (type == ",") return cont(commasep(maybeexpressionNoComma, "]"));
            return pass(commasep(expressionNoComma, "]"));
        }
        function comprehension(type) {
            if (type == "for") return cont(forspec, comprehension);
            if (type == "if") return cont(expression, comprehension);
        }

        function isContinuedStatement(state, textAfter) {
            return state.lastType == "operator" || state.lastType == "," ||
                isOperatorChar.test(textAfter.charAt(0)) ||
                /[,.]/.test(textAfter.charAt(0));
        }

        // Interface

        return {
            startState: function (basecolumn) {
                var state = {
                    tokenize: tokenBase,
                    lastType: "sof",
                    cc: [],
                    lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false),
                    localVars: parserConfig.localVars,
                    context: parserConfig.localVars && { vars: parserConfig.localVars },
                    indented: basecolumn || 0
                };
                if (parserConfig.globalVars && typeof parserConfig.globalVars == "object")
                    state.globalVars = parserConfig.globalVars;
                return state;
            },

            token: function (stream, state) {
                if (stream.sol()) {
                    if (!state.lexical.hasOwnProperty("align"))
                        state.lexical.align = false;
                    state.indented = stream.indentation();
                    findFatArrow(stream, state);
                }
                if (state.tokenize != tokenComment && stream.eatSpace()) return null;
                var style = state.tokenize(stream, state);
                if (type == "comment") return style;
                state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
                return parseJS(state, style, type, content, stream);
            },

            indent: function (state, textAfter) {
                if (state.tokenize == tokenComment) return CodeMirror.Pass;
                if (state.tokenize != tokenBase) return 0;
                var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical;
                // Kludge to prevent 'maybelse' from blocking lexical scope pops
                if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
                    var c = state.cc[i];
                    if (c == poplex) lexical = lexical.prev;
                    else if (c != maybeelse) break;
                }
                if (lexical.type == "stat" && firstChar == "}") lexical = lexical.prev;
                if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat")
                    lexical = lexical.prev;
                var type = lexical.type, closing = firstChar == type;

                if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info + 1 : 0);
                else if (type == "form" && firstChar == "{") return lexical.indented;
                else if (type == "form") return lexical.indented + indentUnit;
                else if (type == "stat")
                    return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || indentUnit : 0);
                else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false)
                    return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit);
                else if (lexical.align) return lexical.column + (closing ? 0 : 1);
                else return lexical.indented + (closing ? 0 : indentUnit);
            },

            electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
            blockCommentStart: jsonMode ? null : "/*",
            blockCommentEnd: jsonMode ? null : "*/",
            lineComment: jsonMode ? null : "//",
            fold: "brace",
            closeBrackets: "()[]{}''\"\"``",

            helperType: jsonMode ? "json" : "javascript",
            jsonldMode: jsonldMode,
            jsonMode: jsonMode,

            expressionAllowed: expressionAllowed,
            skipExpression: function (state) {
                var top = state.cc[state.cc.length - 1]
                if (top == expression || top == expressionNoComma) state.cc.pop()
            }
        };
    });

    CodeMirror.registerHelper("wordChars", "javascript", /[\w$]/);

    CodeMirror.defineMIME("text/javascript", "javascript");
    CodeMirror.defineMIME("text/ecmascript", "javascript");
    CodeMirror.defineMIME("application/javascript", "javascript");
    CodeMirror.defineMIME("application/x-javascript", "javascript");
    CodeMirror.defineMIME("application/ecmascript", "javascript");
    CodeMirror.defineMIME("application/json", { name: "javascript", json: true });
    CodeMirror.defineMIME("application/x-json", { name: "javascript", json: true });
    CodeMirror.defineMIME("application/ld+json", { name: "javascript", jsonld: true });
    CodeMirror.defineMIME("text/typescript", { name: "javascript", typescript: true });
    CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true });

});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function (mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
        mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript"))
    else if (typeof define == "function" && define.amd) // AMD
        define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript"], mod)
    else // Plain browser env
        mod(CodeMirror)
})(function (CodeMirror) {
    "use strict"

    // Depth means the amount of open braces in JS context, in XML
    // context 0 means not in tag, 1 means in tag, and 2 means in tag
    // and js block comment.
    function Context(state, mode, depth, prev) {
        this.state = state; this.mode = mode; this.depth = depth; this.prev = prev
    }

    function copyContext(context) {
        return new Context(CodeMirror.copyState(context.mode, context.state),
            context.mode,
            context.depth,
            context.prev && copyContext(context.prev))
    }

    CodeMirror.defineMode("jsx", function (config, modeConfig) {
        var xmlMode = CodeMirror.getMode(config, { name: "xml", allowMissing: true, multilineTagIndentPastTag: false })
        var jsMode = CodeMirror.getMode(config, modeConfig && modeConfig.base || "javascript")

        function flatXMLIndent(state) {
            var tagName = state.tagName
            state.tagName = null
            var result = xmlMode.indent(state, "")
            state.tagName = tagName
            return result
        }

        function token(stream, state) {
            if (state.context.mode == xmlMode)
                return xmlToken(stream, state, state.context)
            else
                return jsToken(stream, state, state.context)
        }

        function xmlToken(stream, state, cx) {
            if (cx.depth == 2) { // Inside a JS /* */ comment
                if (stream.match(/^.*?\*\//)) cx.depth = 1
                else stream.skipToEnd()
                return "comment"
            }

            if (stream.peek() == "{") {
                xmlMode.skipAttribute(cx.state)

                var indent = flatXMLIndent(cx.state), xmlContext = cx.state.context
                // If JS starts on same line as tag
                if (xmlContext && stream.match(/^[^>]*>\s*$/, false)) {
                    while (xmlContext.prev && !xmlContext.startOfLine)
                        xmlContext = xmlContext.prev
                    // If tag starts the line, use XML indentation level
                    if (xmlContext.startOfLine) indent -= config.indentUnit
                    // Else use JS indentation level
                    else if (cx.prev.state.lexical) indent = cx.prev.state.lexical.indented
                    // Else if inside of tag
                } else if (cx.depth == 1) {
                    indent += config.indentUnit
                }

                state.context = new Context(CodeMirror.startState(jsMode, indent),
                    jsMode, 0, state.context)
                return null
            }

            if (cx.depth == 1) { // Inside of tag
                if (stream.peek() == "<") { // Tag inside of tag
                    xmlMode.skipAttribute(cx.state)
                    state.context = new Context(CodeMirror.startState(xmlMode, flatXMLIndent(cx.state)),
                        xmlMode, 0, state.context)
                    return null
                } else if (stream.match("//")) {
                    stream.skipToEnd()
                    return "comment"
                } else if (stream.match("/*")) {
                    cx.depth = 2
                    return token(stream, state)
                }
            }

            var style = xmlMode.token(stream, cx.state), cur = stream.current(), stop
            if (/\btag\b/.test(style)) {
                if (/>$/.test(cur)) {
                    if (cx.state.context) cx.depth = 0
                    else state.context = state.context.prev
                } else if (/^</.test(cur)) {
                    cx.depth = 1
                }
            } else if (!style && (stop = cur.indexOf("{")) > -1) {
                stream.backUp(cur.length - stop)
            }
            return style
        }

        function jsToken(stream, state, cx) {
            if (stream.peek() == "<" && jsMode.expressionAllowed(stream, cx.state)) {
                jsMode.skipExpression(cx.state)
                state.context = new Context(CodeMirror.startState(xmlMode, jsMode.indent(cx.state, "")),
                    xmlMode, 0, state.context)
                return null
            }

            var style = jsMode.token(stream, cx.state)
            if (!style && cx.depth != null) {
                var cur = stream.current()
                if (cur == "{") {
                    cx.depth++
                } else if (cur == "}") {
                    if (--cx.depth == 0) state.context = state.context.prev
                }
            }
            return style
        }

        return {
            startState: function () {
                return { context: new Context(CodeMirror.startState(jsMode), jsMode) }
            },

            copyState: function (state) {
                return { context: copyContext(state.context) }
            },

            token: token,

            indent: function (state, textAfter, fullLine) {
                return state.context.mode.indent(state.context.state, textAfter, fullLine)
            },

            innerMode: function (state) {
                return state.context
            }
        }
    }, "xml", "javascript")

    CodeMirror.defineMIME("text/jsx", "jsx")
});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function (mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
        mod(require("../../lib/codemirror"));
    else if (typeof define == "function" && define.amd) // AMD
        define(["../../lib/codemirror"], mod);
    else // Plain browser env
        mod(CodeMirror);
})(function (CodeMirror) {
    "use strict";

    var htmlConfig = {
        autoSelfClosers: {
            'area': true, 'base': true, 'br': true, 'col': true, 'command': true,
            'embed': true, 'frame': true, 'hr': true, 'img': true, 'input': true,
            'keygen': true, 'link': true, 'meta': true, 'param': true, 'source': true,
            'track': true, 'wbr': true, 'menuitem': true
        },
        implicitlyClosed: {
            'dd': true, 'li': true, 'optgroup': true, 'option': true, 'p': true,
            'rp': true, 'rt': true, 'tbody': true, 'td': true, 'tfoot': true,
            'th': true, 'tr': true
        },
        contextGrabbers: {
            'dd': { 'dd': true, 'dt': true },
            'dt': { 'dd': true, 'dt': true },
            'li': { 'li': true },
            'option': { 'option': true, 'optgroup': true },
            'optgroup': { 'optgroup': true },
            'p': {
                'address': true, 'article': true, 'aside': true, 'blockquote': true, 'dir': true,
                'div': true, 'dl': true, 'fieldset': true, 'footer': true, 'form': true,
                'h1': true, 'h2': true, 'h3': true, 'h4': true, 'h5': true, 'h6': true,
                'header': true, 'hgroup': true, 'hr': true, 'menu': true, 'nav': true, 'ol': true,
                'p': true, 'pre': true, 'section': true, 'table': true, 'ul': true
            },
            'rp': { 'rp': true, 'rt': true },
            'rt': { 'rp': true, 'rt': true },
            'tbody': { 'tbody': true, 'tfoot': true },
            'td': { 'td': true, 'th': true },
            'tfoot': { 'tbody': true },
            'th': { 'td': true, 'th': true },
            'thead': { 'tbody': true, 'tfoot': true },
            'tr': { 'tr': true }
        },
        doNotIndent: { "pre": true },
        allowUnquoted: true,
        allowMissing: true,
        caseFold: true
    }

    var xmlConfig = {
        autoSelfClosers: {},
        implicitlyClosed: {},
        contextGrabbers: {},
        doNotIndent: {},
        allowUnquoted: false,
        allowMissing: false,
        caseFold: false
    }

    CodeMirror.defineMode("xml", function (editorConf, config_) {
        var indentUnit = editorConf.indentUnit
        var config = {}
        var defaults = config_.htmlMode ? htmlConfig : xmlConfig
        for (var prop in defaults) config[prop] = defaults[prop]
        for (var prop in config_) config[prop] = config_[prop]

        // Return variables for tokenizers
        var type, setStyle;

        function inText(stream, state) {
            function chain(parser) {
                state.tokenize = parser;
                return parser(stream, state);
            }

            var ch = stream.next();
            if (ch == "<") {
                if (stream.eat("!")) {
                    if (stream.eat("[")) {
                        if (stream.match("CDATA[")) return chain(inBlock("atom", "]]>"));
                        else return null;
                    } else if (stream.match("--")) {
                        return chain(inBlock("comment", "-->"));
                    } else if (stream.match("DOCTYPE", true, true)) {
                        stream.eatWhile(/[\w\._\-]/);
                        return chain(doctype(1));
                    } else {
                        return null;
                    }
                } else if (stream.eat("?")) {
                    stream.eatWhile(/[\w\._\-]/);
                    state.tokenize = inBlock("meta", "?>");
                    return "meta";
                } else {
                    type = stream.eat("/") ? "closeTag" : "openTag";
                    state.tokenize = inTag;
                    return "tag bracket";
                }
            } else if (ch == "&") {
                var ok;
                if (stream.eat("#")) {
                    if (stream.eat("x")) {
                        ok = stream.eatWhile(/[a-fA-F\d]/) && stream.eat(";");
                    } else {
                        ok = stream.eatWhile(/[\d]/) && stream.eat(";");
                    }
                } else {
                    ok = stream.eatWhile(/[\w\.\-:]/) && stream.eat(";");
                }
                return ok ? "atom" : "error";
            } else {
                stream.eatWhile(/[^&<]/);
                return null;
            }
        }
        inText.isInText = true;

        function inTag(stream, state) {
            var ch = stream.next();
            if (ch == ">" || (ch == "/" && stream.eat(">"))) {
                state.tokenize = inText;
                type = ch == ">" ? "endTag" : "selfcloseTag";
                return "tag bracket";
            } else if (ch == "=") {
                type = "equals";
                return null;
            } else if (ch == "<") {
                state.tokenize = inText;
                state.state = baseState;
                state.tagName = state.tagStart = null;
                var next = state.tokenize(stream, state);
                return next ? next + " tag error" : "tag error";
            } else if (/[\'\"]/.test(ch)) {
                state.tokenize = inAttribute(ch);
                state.stringStartCol = stream.column();
                return state.tokenize(stream, state);
            } else {
                stream.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);
                return "word";
            }
        }

        function inAttribute(quote) {
            var closure = function (stream, state) {
                while (!stream.eol()) {
                    if (stream.next() == quote) {
                        state.tokenize = inTag;
                        break;
                    }
                }
                return "string";
            };
            closure.isInAttribute = true;
            return closure;
        }

        function inBlock(style, terminator) {
            return function (stream, state) {
                while (!stream.eol()) {
                    if (stream.match(terminator)) {
                        state.tokenize = inText;
                        break;
                    }
                    stream.next();
                }
                return style;
            };
        }
        function doctype(depth) {
            return function (stream, state) {
                var ch;
                while ((ch = stream.next()) != null) {
                    if (ch == "<") {
                        state.tokenize = doctype(depth + 1);
                        return state.tokenize(stream, state);
                    } else if (ch == ">") {
                        if (depth == 1) {
                            state.tokenize = inText;
                            break;
                        } else {
                            state.tokenize = doctype(depth - 1);
                            return state.tokenize(stream, state);
                        }
                    }
                }
                return "meta";
            };
        }

        function Context(state, tagName, startOfLine) {
            this.prev = state.context;
            this.tagName = tagName;
            this.indent = state.indented;
            this.startOfLine = startOfLine;
            if (config.doNotIndent.hasOwnProperty(tagName) || (state.context && state.context.noIndent))
                this.noIndent = true;
        }
        function popContext(state) {
            if (state.context) state.context = state.context.prev;
        }
        function maybePopContext(state, nextTagName) {
            var parentTagName;
            while (true) {
                if (!state.context) {
                    return;
                }
                parentTagName = state.context.tagName;
                if (!config.contextGrabbers.hasOwnProperty(parentTagName) ||
                    !config.contextGrabbers[parentTagName].hasOwnProperty(nextTagName)) {
                    return;
                }
                popContext(state);
            }
        }

        function baseState(type, stream, state) {
            if (type == "openTag") {
                state.tagStart = stream.column();
                return tagNameState;
            } else if (type == "closeTag") {
                return closeTagNameState;
            } else {
                return baseState;
            }
        }
        function tagNameState(type, stream, state) {
            if (type == "word") {
                state.tagName = stream.current();
                setStyle = "tag";
                return attrState;
            } else {
                setStyle = "error";
                return tagNameState;
            }
        }
        function closeTagNameState(type, stream, state) {
            if (type == "word") {
                var tagName = stream.current();
                if (state.context && state.context.tagName != tagName &&
                    config.implicitlyClosed.hasOwnProperty(state.context.tagName))
                    popContext(state);
                if ((state.context && state.context.tagName == tagName) || config.matchClosing === false) {
                    setStyle = "tag";
                    return closeState;
                } else {
                    setStyle = "tag error";
                    return closeStateErr;
                }
            } else {
                setStyle = "error";
                return closeStateErr;
            }
        }

        function closeState(type, _stream, state) {
            if (type != "endTag") {
                setStyle = "error";
                return closeState;
            }
            popContext(state);
            return baseState;
        }
        function closeStateErr(type, stream, state) {
            setStyle = "error";
            return closeState(type, stream, state);
        }

        function attrState(type, _stream, state) {
            if (type == "word") {
                setStyle = "attribute";
                return attrEqState;
            } else if (type == "endTag" || type == "selfcloseTag") {
                var tagName = state.tagName, tagStart = state.tagStart;
                state.tagName = state.tagStart = null;
                if (type == "selfcloseTag" ||
                    config.autoSelfClosers.hasOwnProperty(tagName)) {
                    maybePopContext(state, tagName);
                } else {
                    maybePopContext(state, tagName);
                    state.context = new Context(state, tagName, tagStart == state.indented);
                }
                return baseState;
            }
            setStyle = "error";
            return attrState;
        }
        function attrEqState(type, stream, state) {
            if (type == "equals") return attrValueState;
            if (!config.allowMissing) setStyle = "error";
            return attrState(type, stream, state);
        }
        function attrValueState(type, stream, state) {
            if (type == "string") return attrContinuedState;
            if (type == "word" && config.allowUnquoted) { setStyle = "string"; return attrState; }
            setStyle = "error";
            return attrState(type, stream, state);
        }
        function attrContinuedState(type, stream, state) {
            if (type == "string") return attrContinuedState;
            return attrState(type, stream, state);
        }

        return {
            startState: function (baseIndent) {
                var state = {
                    tokenize: inText,
                    state: baseState,
                    indented: baseIndent || 0,
                    tagName: null, tagStart: null,
                    context: null
                }
                if (baseIndent != null) state.baseIndent = baseIndent
                return state
            },

            token: function (stream, state) {
                if (!state.tagName && stream.sol())
                    state.indented = stream.indentation();

                if (stream.eatSpace()) return null;
                type = null;
                var style = state.tokenize(stream, state);
                if ((style || type) && style != "comment") {
                    setStyle = null;
                    state.state = state.state(type || style, stream, state);
                    if (setStyle)
                        style = setStyle == "error" ? style + " error" : setStyle;
                }
                return style;
            },

            indent: function (state, textAfter, fullLine) {
                var context = state.context;
                // Indent multi-line strings (e.g. css).
                if (state.tokenize.isInAttribute) {
                    if (state.tagStart == state.indented)
                        return state.stringStartCol + 1;
                    else
                        return state.indented + indentUnit;
                }
                if (context && context.noIndent) return CodeMirror.Pass;
                if (state.tokenize != inTag && state.tokenize != inText)
                    return fullLine ? fullLine.match(/^(\s*)/)[0].length : 0;
                // Indent the starts of attribute names.
                if (state.tagName) {
                    if (config.multilineTagIndentPastTag !== false)
                        return state.tagStart + state.tagName.length + 2;
                    else
                        return state.tagStart + indentUnit * (config.multilineTagIndentFactor || 1);
                }
                if (config.alignCDATA && /<!\[CDATA\[/.test(textAfter)) return 0;
                var tagAfter = textAfter && /^<(\/)?([\w_:\.-]*)/.exec(textAfter);
                if (tagAfter && tagAfter[1]) { // Closing tag spotted
                    while (context) {
                        if (context.tagName == tagAfter[2]) {
                            context = context.prev;
                            break;
                        } else if (config.implicitlyClosed.hasOwnProperty(context.tagName)) {
                            context = context.prev;
                        } else {
                            break;
                        }
                    }
                } else if (tagAfter) { // Opening tag spotted
                    while (context) {
                        var grabbers = config.contextGrabbers[context.tagName];
                        if (grabbers && grabbers.hasOwnProperty(tagAfter[2]))
                            context = context.prev;
                        else
                            break;
                    }
                }
                while (context && context.prev && !context.startOfLine)
                    context = context.prev;
                if (context) return context.indent + indentUnit;
                else return state.baseIndent || 0;
            },

            electricInput: /<\/[\s\w:]+>$/,
            blockCommentStart: "<!--",
            blockCommentEnd: "-->",

            configuration: config.htmlMode ? "html" : "xml",
            helperType: config.htmlMode ? "html" : "xml",

            skipAttribute: function (state) {
                if (state.state == attrValueState)
                    state.state = attrState
            }
        };
    });

    CodeMirror.defineMIME("text/xml", "xml");
    CodeMirror.defineMIME("application/xml", "xml");
    if (!CodeMirror.mimeModes.hasOwnProperty("text/html"))
        CodeMirror.defineMIME("text/html", { name: "xml", htmlMode: true });

});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function (mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
        mod(require("../../lib/codemirror"));
    else if (typeof define == "function" && define.amd) // AMD
        define(["../../lib/codemirror"], mod);
    else // Plain browser env
        mod(CodeMirror);
})(function (CodeMirror) {
    "use strict";

    function Context(indented, column, type, info, align, prev) {
        this.indented = indented;
        this.column = column;
        this.type = type;
        this.info = info;
        this.align = align;
        this.prev = prev;
    }
    function pushContext(state, col, type, info) {
        var indent = state.indented;
        if (state.context && state.context.type != "statement" && type != "statement")
            indent = state.context.indented;
        return state.context = new Context(indent, col, type, info, null, state.context);
    }
    function popContext(state) {
        var t = state.context.type;
        if (t == ")" || t == "]" || t == "}")
            state.indented = state.context.indented;
        return state.context = state.context.prev;
    }

    function typeBefore(stream, state, pos) {
        if (state.prevToken == "variable" || state.prevToken == "variable-3") return true;
        if (/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(stream.string.slice(0, pos))) return true;
        if (state.typeAtEndOfLine && stream.column() == stream.indentation()) return true;
    }

    function isTopScope(context) {
        for (; ;) {
            if (!context || context.type == "top") return true;
            if (context.type == "}" && context.prev.info != "namespace") return false;
            context = context.prev;
        }
    }

    CodeMirror.defineMode("clike", function (config, parserConfig) {
        var indentUnit = config.indentUnit,
            statementIndentUnit = parserConfig.statementIndentUnit || indentUnit,
            dontAlignCalls = parserConfig.dontAlignCalls,
            keywords = parserConfig.keywords || {},
            types = parserConfig.types || {},
            builtin = parserConfig.builtin || {},
            blockKeywords = parserConfig.blockKeywords || {},
            defKeywords = parserConfig.defKeywords || {},
            atoms = parserConfig.atoms || {},
            hooks = parserConfig.hooks || {},
            multiLineStrings = parserConfig.multiLineStrings,
            indentStatements = parserConfig.indentStatements !== false,
            indentSwitch = parserConfig.indentSwitch !== false,
            namespaceSeparator = parserConfig.namespaceSeparator,
            isPunctuationChar = parserConfig.isPunctuationChar || /[\[\]{}\(\),;\:\.]/,
            numberStart = parserConfig.numberStart || /[\d\.]/,
            number = parserConfig.number || /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,
            isOperatorChar = parserConfig.isOperatorChar || /[+\-*&%=<>!?|\/]/,
            endStatement = parserConfig.endStatement || /^[;:,]$/;

        var curPunc, isDefKeyword;

        function tokenBase(stream, state) {
            var ch = stream.next();
            if (hooks[ch]) {
                var result = hooks[ch](stream, state);
                if (result !== false) return result;
            }
            if (ch == '"' || ch == "'") {
                state.tokenize = tokenString(ch);
                return state.tokenize(stream, state);
            }
            if (isPunctuationChar.test(ch)) {
                curPunc = ch;
                return null;
            }
            if (numberStart.test(ch)) {
                stream.backUp(1)
                if (stream.match(number)) return "number"
                stream.next()
            }
            if (ch == "/") {
                if (stream.eat("*")) {
                    state.tokenize = tokenComment;
                    return tokenComment(stream, state);
                }
                if (stream.eat("/")) {
                    stream.skipToEnd();
                    return "comment";
                }
            }
            if (isOperatorChar.test(ch)) {
                while (!stream.match(/^\/[\/*]/, false) && stream.eat(isOperatorChar)) { }
                return "operator";
            }
            stream.eatWhile(/[\w\$_\xa1-\uffff]/);
            if (namespaceSeparator) while (stream.match(namespaceSeparator))
                stream.eatWhile(/[\w\$_\xa1-\uffff]/);

            var cur = stream.current();
            if (contains(keywords, cur)) {
                if (contains(blockKeywords, cur)) curPunc = "newstatement";
                if (contains(defKeywords, cur)) isDefKeyword = true;
                return "keyword";
            }
            if (contains(types, cur)) return "variable-3";
            if (contains(builtin, cur)) {
                if (contains(blockKeywords, cur)) curPunc = "newstatement";
                return "builtin";
            }
            if (contains(atoms, cur)) return "atom";
            return "variable";
        }

        function tokenString(quote) {
            return function (stream, state) {
                var escaped = false, next, end = false;
                while ((next = stream.next()) != null) {
                    if (next == quote && !escaped) { end = true; break; }
                    escaped = !escaped && next == "\\";
                }
                if (end || !(escaped || multiLineStrings))
                    state.tokenize = null;
                return "string";
            };
        }

        function tokenComment(stream, state) {
            var maybeEnd = false, ch;
            while (ch = stream.next()) {
                if (ch == "/" && maybeEnd) {
                    state.tokenize = null;
                    break;
                }
                maybeEnd = (ch == "*");
            }
            return "comment";
        }

        function maybeEOL(stream, state) {
            if (parserConfig.typeFirstDefinitions && stream.eol() && isTopScope(state.context))
                state.typeAtEndOfLine = typeBefore(stream, state, stream.pos)
        }

        // Interface

        return {
            startState: function (basecolumn) {
                return {
                    tokenize: null,
                    context: new Context((basecolumn || 0) - indentUnit, 0, "top", null, false),
                    indented: 0,
                    startOfLine: true,
                    prevToken: null
                };
            },

            token: function (stream, state) {
                var ctx = state.context;
                if (stream.sol()) {
                    if (ctx.align == null) ctx.align = false;
                    state.indented = stream.indentation();
                    state.startOfLine = true;
                }
                if (stream.eatSpace()) { maybeEOL(stream, state); return null; }
                curPunc = isDefKeyword = null;
                var style = (state.tokenize || tokenBase)(stream, state);
                if (style == "comment" || style == "meta") return style;
                if (ctx.align == null) ctx.align = true;

                if (endStatement.test(curPunc)) while (state.context.type == "statement") popContext(state);
                else if (curPunc == "{") pushContext(state, stream.column(), "}");
                else if (curPunc == "[") pushContext(state, stream.column(), "]");
                else if (curPunc == "(") pushContext(state, stream.column(), ")");
                else if (curPunc == "}") {
                    while (ctx.type == "statement") ctx = popContext(state);
                    if (ctx.type == "}") ctx = popContext(state);
                    while (ctx.type == "statement") ctx = popContext(state);
                }
                else if (curPunc == ctx.type) popContext(state);
                else if (indentStatements &&
                    (((ctx.type == "}" || ctx.type == "top") && curPunc != ";") ||
                        (ctx.type == "statement" && curPunc == "newstatement"))) {
                    pushContext(state, stream.column(), "statement", stream.current());
                }

                if (style == "variable" &&
                    ((state.prevToken == "def" ||
                        (parserConfig.typeFirstDefinitions && typeBefore(stream, state, stream.start) &&
                            isTopScope(state.context) && stream.match(/^\s*\(/, false)))))
                    style = "def";

                if (hooks.token) {
                    var result = hooks.token(stream, state, style);
                    if (result !== undefined) style = result;
                }

                if (style == "def" && parserConfig.styleDefs === false) style = "variable";

                state.startOfLine = false;
                state.prevToken = isDefKeyword ? "def" : style || curPunc;
                maybeEOL(stream, state);
                return style;
            },

            indent: function (state, textAfter) {
                if (state.tokenize != tokenBase && state.tokenize != null || state.typeAtEndOfLine) return CodeMirror.Pass;
                var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
                if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
                if (parserConfig.dontIndentStatements)
                    while (ctx.type == "statement" && parserConfig.dontIndentStatements.test(ctx.info))
                        ctx = ctx.prev
                if (hooks.indent) {
                    var hook = hooks.indent(state, ctx, textAfter);
                    if (typeof hook == "number") return hook
                }
                var closing = firstChar == ctx.type;
                var switchBlock = ctx.prev && ctx.prev.info == "switch";
                if (parserConfig.allmanIndentation && /[{(]/.test(firstChar)) {
                    while (ctx.type != "top" && ctx.type != "}") ctx = ctx.prev
                    return ctx.indented
                }
                if (ctx.type == "statement")
                    return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit);
                if (ctx.align && (!dontAlignCalls || ctx.type != ")"))
                    return ctx.column + (closing ? 0 : 1);
                if (ctx.type == ")" && !closing)
                    return ctx.indented + statementIndentUnit;

                return ctx.indented + (closing ? 0 : indentUnit) +
                    (!closing && switchBlock && !/^(?:case|default)\b/.test(textAfter) ? indentUnit : 0);
            },

            electricInput: indentSwitch ? /^\s*(?:case .*?:|default:|\{\}?|\})$/ : /^\s*[{}]$/,
            blockCommentStart: "/*",
            blockCommentEnd: "*/",
            lineComment: "//",
            fold: "brace"
        };
    });

    function words(str) {
        var obj = {}, words = str.split(" ");
        for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
        return obj;
    }
    function contains(words, word) {
        if (typeof words === "function") {
            return words(word);
        } else {
            return words.propertyIsEnumerable(word);
        }
    }
    var cKeywords = "auto if break case register continue return default do sizeof " +
        "static else struct switch extern typedef union for goto while enum const volatile";
    var cTypes = "int long char short double float unsigned signed void size_t ptrdiff_t";

    function cppHook(stream, state) {
        if (!state.startOfLine) return false
        for (var ch, next = null; ch = stream.peek();) {
            if (ch == "\\" && stream.match(/^.$/)) {
                next = cppHook
                break
            } else if (ch == "/" && stream.match(/^\/[\/\*]/, false)) {
                break
            }
            stream.next()
        }
        state.tokenize = next
        return "meta"
    }

    function pointerHook(_stream, state) {
        if (state.prevToken == "variable-3") return "variable-3";
        return false;
    }

    function cpp14Literal(stream) {
        stream.eatWhile(/[\w\.']/);
        return "number";
    }

    function cpp11StringHook(stream, state) {
        stream.backUp(1);
        // Raw strings.
        if (stream.match(/(R|u8R|uR|UR|LR)/)) {
            var match = stream.match(/"([^\s\\()]{0,16})\(/);
            if (!match) {
                return false;
            }
            state.cpp11RawStringDelim = match[1];
            state.tokenize = tokenRawString;
            return tokenRawString(stream, state);
        }
        // Unicode strings/chars.
        if (stream.match(/(u8|u|U|L)/)) {
            if (stream.match(/["']/, /* eat */ false)) {
                return "string";
            }
            return false;
        }
        // Ignore this hook.
        stream.next();
        return false;
    }

    function cppLooksLikeConstructor(word) {
        var lastTwo = /(\w+)::(\w+)$/.exec(word);
        return lastTwo && lastTwo[1] == lastTwo[2];
    }

    // C#-style strings where "" escapes a quote.
    function tokenAtString(stream, state) {
        var next;
        while ((next = stream.next()) != null) {
            if (next == '"' && !stream.eat('"')) {
                state.tokenize = null;
                break;
            }
        }
        return "string";
    }

    // C++11 raw string literal is <prefix>"<delim>( anything )<delim>", where
    // <delim> can be a string up to 16 characters long.
    function tokenRawString(stream, state) {
        // Escape characters that have special regex meanings.
        var delim = state.cpp11RawStringDelim.replace(/[^\w\s]/g, '\\$&');
        var match = stream.match(new RegExp(".*?\\)" + delim + '"'));
        if (match)
            state.tokenize = null;
        else
            stream.skipToEnd();
        return "string";
    }

    function def(mimes, mode) {
        if (typeof mimes == "string") mimes = [mimes];
        var words = [];
        function add(obj) {
            if (obj) for (var prop in obj) if (obj.hasOwnProperty(prop))
                words.push(prop);
        }
        add(mode.keywords);
        add(mode.types);
        add(mode.builtin);
        add(mode.atoms);
        if (words.length) {
            mode.helperType = mimes[0];
            CodeMirror.registerHelper("hintWords", mimes[0], words);
        }

        for (var i = 0; i < mimes.length; ++i)
            CodeMirror.defineMIME(mimes[i], mode);
    }

    def(["text/x-csrc", "text/x-c", "text/x-chdr"], {
        name: "clike",
        keywords: words(cKeywords),
        types: words(cTypes + " bool _Complex _Bool float_t double_t intptr_t intmax_t " +
            "int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t " +
            "uint32_t uint64_t"),
        blockKeywords: words("case do else for if switch while struct"),
        defKeywords: words("struct"),
        typeFirstDefinitions: true,
        atoms: words("null true false"),
        hooks: { "#": cppHook, "*": pointerHook },
        modeProps: { fold: ["brace", "include"] }
    });

    def(["text/x-c++src", "text/x-c++hdr"], {
        name: "clike",
        keywords: words(cKeywords + " asm dynamic_cast namespace reinterpret_cast try explicit new " +
            "static_cast typeid catch operator template typename class friend private " +
            "this using const_cast inline public throw virtual delete mutable protected " +
            "alignas alignof constexpr decltype nullptr noexcept thread_local final " +
            "static_assert override"),
        types: words(cTypes + " bool wchar_t"),
        blockKeywords: words("catch class do else finally for if struct switch try while"),
        defKeywords: words("class namespace struct enum union"),
        typeFirstDefinitions: true,
        atoms: words("true false null"),
        dontIndentStatements: /^template$/,
        hooks: {
            "#": cppHook,
            "*": pointerHook,
            "u": cpp11StringHook,
            "U": cpp11StringHook,
            "L": cpp11StringHook,
            "R": cpp11StringHook,
            "0": cpp14Literal,
            "1": cpp14Literal,
            "2": cpp14Literal,
            "3": cpp14Literal,
            "4": cpp14Literal,
            "5": cpp14Literal,
            "6": cpp14Literal,
            "7": cpp14Literal,
            "8": cpp14Literal,
            "9": cpp14Literal,
            token: function (stream, state, style) {
                if (style == "variable" && stream.peek() == "(" &&
                    (state.prevToken == ";" || state.prevToken == null ||
                        state.prevToken == "}") &&
                    cppLooksLikeConstructor(stream.current()))
                    return "def";
            }
        },
        namespaceSeparator: "::",
        modeProps: { fold: ["brace", "include"] }
    });

    def("text/x-java", {
        name: "clike",
        keywords: words("abstract assert break case catch class const continue default " +
            "do else enum extends final finally float for goto if implements import " +
            "instanceof interface native new package private protected public " +
            "return static strictfp super switch synchronized this throw throws transient " +
            "try volatile while"),
        types: words("byte short int long float double boolean char void Boolean Byte Character Double Float " +
            "Integer Long Number Object Short String StringBuffer StringBuilder Void"),
        blockKeywords: words("catch class do else finally for if switch try while"),
        defKeywords: words("class interface package enum"),
        typeFirstDefinitions: true,
        atoms: words("true false null"),
        endStatement: /^[;:]$/,
        number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,
        hooks: {
            "@": function (stream) {
                stream.eatWhile(/[\w\$_]/);
                return "meta";
            }
        },
        modeProps: { fold: ["brace", "import"] }
    });

    def("text/x-csharp", {
        name: "clike",
        keywords: words("abstract as async await base break case catch checked class const continue" +
            " default delegate do else enum event explicit extern finally fixed for" +
            " foreach goto if implicit in interface internal is lock namespace new" +
            " operator out override params private protected public readonly ref return sealed" +
            " sizeof stackalloc static struct switch this throw try typeof unchecked" +
            " unsafe using virtual void volatile while add alias ascending descending dynamic from get" +
            " global group into join let orderby partial remove select set value var yield"),
        types: words("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func" +
            " Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32" +
            " UInt64 bool byte char decimal double short int long object" +
            " sbyte float string ushort uint ulong"),
        blockKeywords: words("catch class do else finally for foreach if struct switch try while"),
        defKeywords: words("class interface namespace struct var"),
        typeFirstDefinitions: true,
        atoms: words("true false null"),
        hooks: {
            "@": function (stream, state) {
                if (stream.eat('"')) {
                    state.tokenize = tokenAtString;
                    return tokenAtString(stream, state);
                }
                stream.eatWhile(/[\w\$_]/);
                return "meta";
            }
        }
    });

    function tokenTripleString(stream, state) {
        var escaped = false;
        while (!stream.eol()) {
            if (!escaped && stream.match('"""')) {
                state.tokenize = null;
                break;
            }
            escaped = stream.next() == "\\" && !escaped;
        }
        return "string";
    }

    def("text/x-scala", {
        name: "clike",
        keywords: words(

            /* scala */
            "abstract case catch class def do else extends final finally for forSome if " +
            "implicit import lazy match new null object override package private protected return " +
            "sealed super this throw trait try type val var while with yield _ : = => <- <: " +
            "<% >: # @ " +

            /* package scala */
            "assert assume require print println printf readLine readBoolean readByte readShort " +
            "readChar readInt readLong readFloat readDouble " +

            ":: #:: "
        ),
        types: words(
            "AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either " +
            "Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable " +
            "Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering " +
            "Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder " +
            "StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector " +

            /* package java.lang */
            "Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " +
            "Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " +
            "Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " +
            "StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"
        ),
        multiLineStrings: true,
        blockKeywords: words("catch class do else finally for forSome if match switch try while"),
        defKeywords: words("class def object package trait type val var"),
        atoms: words("true false null"),
        indentStatements: false,
        indentSwitch: false,
        hooks: {
            "@": function (stream) {
                stream.eatWhile(/[\w\$_]/);
                return "meta";
            },
            '"': function (stream, state) {
                if (!stream.match('""')) return false;
                state.tokenize = tokenTripleString;
                return state.tokenize(stream, state);
            },
            "'": function (stream) {
                stream.eatWhile(/[\w\$_\xa1-\uffff]/);
                return "atom";
            },
            "=": function (stream, state) {
                var cx = state.context
                if (cx.type == "}" && cx.align && stream.eat(">")) {
                    state.context = new Context(cx.indented, cx.column, cx.type, cx.info, null, cx.prev)
                    return "operator"
                } else {
                    return false
                }
            }
        },
        modeProps: { closeBrackets: { triples: '"' } }
    });

    function tokenKotlinString(tripleString) {
        return function (stream, state) {
            var escaped = false, next, end = false;
            while (!stream.eol()) {
                if (!tripleString && !escaped && stream.match('"')) { end = true; break; }
                if (tripleString && stream.match('"""')) { end = true; break; }
                next = stream.next();
                if (!escaped && next == "$" && stream.match('{'))
                    stream.skipTo("}");
                escaped = !escaped && next == "\\" && !tripleString;
            }
            if (end || !tripleString)
                state.tokenize = null;
            return "string";
        }
    }

    def("text/x-kotlin", {
        name: "clike",
        keywords: words(
            /*keywords*/
            "package as typealias class interface this super val " +
            "var fun for is in This throw return " +
            "break continue object if else while do try when !in !is as? " +

            /*soft keywords*/
            "file import where by get set abstract enum open inner override private public internal " +
            "protected catch finally out final vararg reified dynamic companion constructor init " +
            "sealed field property receiver param sparam lateinit data inline noinline tailrec " +
            "external annotation crossinline const operator infix"
        ),
        types: words(
            /* package java.lang */
            "Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " +
            "Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " +
            "Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " +
            "StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"
        ),
        intendSwitch: false,
        indentStatements: false,
        multiLineStrings: true,
        blockKeywords: words("catch class do else finally for if where try while enum"),
        defKeywords: words("class val var object package interface fun"),
        atoms: words("true false null this"),
        hooks: {
            '"': function (stream, state) {
                state.tokenize = tokenKotlinString(stream.match('""'));
                return state.tokenize(stream, state);
            }
        },
        modeProps: { closeBrackets: { triples: '"' } }
    });

    def(["x-shader/x-vertex", "x-shader/x-fragment"], {
        name: "clike",
        keywords: words("sampler1D sampler2D sampler3D samplerCube " +
            "sampler1DShadow sampler2DShadow " +
            "const attribute uniform varying " +
            "break continue discard return " +
            "for while do if else struct " +
            "in out inout"),
        types: words("float int bool void " +
            "vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 " +
            "mat2 mat3 mat4"),
        blockKeywords: words("for while do if else struct"),
        builtin: words("radians degrees sin cos tan asin acos atan " +
            "pow exp log exp2 sqrt inversesqrt " +
            "abs sign floor ceil fract mod min max clamp mix step smoothstep " +
            "length distance dot cross normalize ftransform faceforward " +
            "reflect refract matrixCompMult " +
            "lessThan lessThanEqual greaterThan greaterThanEqual " +
            "equal notEqual any all not " +
            "texture1D texture1DProj texture1DLod texture1DProjLod " +
            "texture2D texture2DProj texture2DLod texture2DProjLod " +
            "texture3D texture3DProj texture3DLod texture3DProjLod " +
            "textureCube textureCubeLod " +
            "shadow1D shadow2D shadow1DProj shadow2DProj " +
            "shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod " +
            "dFdx dFdy fwidth " +
            "noise1 noise2 noise3 noise4"),
        atoms: words("true false " +
            "gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex " +
            "gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 " +
            "gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 " +
            "gl_FogCoord gl_PointCoord " +
            "gl_Position gl_PointSize gl_ClipVertex " +
            "gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor " +
            "gl_TexCoord gl_FogFragCoord " +
            "gl_FragCoord gl_FrontFacing " +
            "gl_FragData gl_FragDepth " +
            "gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix " +
            "gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse " +
            "gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse " +
            "gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose " +
            "gl_ProjectionMatrixInverseTranspose " +
            "gl_ModelViewProjectionMatrixInverseTranspose " +
            "gl_TextureMatrixInverseTranspose " +
            "gl_NormalScale gl_DepthRange gl_ClipPlane " +
            "gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel " +
            "gl_FrontLightModelProduct gl_BackLightModelProduct " +
            "gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ " +
            "gl_FogParameters " +
            "gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords " +
            "gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats " +
            "gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits " +
            "gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits " +
            "gl_MaxDrawBuffers"),
        indentSwitch: false,
        hooks: { "#": cppHook },
        modeProps: { fold: ["brace", "include"] }
    });

    def("text/x-nesc", {
        name: "clike",
        keywords: words(cKeywords + "as atomic async call command component components configuration event generic " +
            "implementation includes interface module new norace nx_struct nx_union post provides " +
            "signal task uses abstract extends"),
        types: words(cTypes),
        blockKeywords: words("case do else for if switch while struct"),
        atoms: words("null true false"),
        hooks: { "#": cppHook },
        modeProps: { fold: ["brace", "include"] }
    });

    def("text/x-objectivec", {
        name: "clike",
        keywords: words(cKeywords + "inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in " +
            "inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),
        types: words(cTypes),
        atoms: words("YES NO NULL NILL ON OFF true false"),
        hooks: {
            "@": function (stream) {
                stream.eatWhile(/[\w\$]/);
                return "keyword";
            },
            "#": cppHook,
            indent: function (_state, ctx, textAfter) {
                if (ctx.type == "statement" && /^@\w/.test(textAfter)) return ctx.indented
            }
        },
        modeProps: { fold: "brace" }
    });

    def("text/x-squirrel", {
        name: "clike",
        keywords: words("base break clone continue const default delete enum extends function in class" +
            " foreach local resume return this throw typeof yield constructor instanceof static"),
        types: words(cTypes),
        blockKeywords: words("case catch class else for foreach if switch try while"),
        defKeywords: words("function local class"),
        typeFirstDefinitions: true,
        atoms: words("true false null"),
        hooks: { "#": cppHook },
        modeProps: { fold: ["brace", "include"] }
    });

    // Ceylon Strings need to deal with interpolation
    var stringTokenizer = null;
    function tokenCeylonString(type) {
        return function (stream, state) {
            var escaped = false, next, end = false;
            while (!stream.eol()) {
                if (!escaped && stream.match('"') &&
                    (type == "single" || stream.match('""'))) {
                    end = true;
                    break;
                }
                if (!escaped && stream.match('``')) {
                    stringTokenizer = tokenCeylonString(type);
                    end = true;
                    break;
                }
                next = stream.next();
                escaped = type == "single" && !escaped && next == "\\";
            }
            if (end)
                state.tokenize = null;
            return "string";
        }
    }

    def("text/x-ceylon", {
        name: "clike",
        keywords: words("abstracts alias assembly assert assign break case catch class continue dynamic else" +
            " exists extends finally for function given if import in interface is let module new" +
            " nonempty object of out outer package return satisfies super switch then this throw" +
            " try value void while"),
        types: function (word) {
            // In Ceylon all identifiers that start with an uppercase are types
            var first = word.charAt(0);
            return (first === first.toUpperCase() && first !== first.toLowerCase());
        },
        blockKeywords: words("case catch class dynamic else finally for function if interface module new object switch try while"),
        defKeywords: words("class dynamic function interface module object package value"),
        builtin: words("abstract actual aliased annotation by default deprecated doc final formal late license" +
            " native optional sealed see serializable shared suppressWarnings tagged throws variable"),
        isPunctuationChar: /[\[\]{}\(\),;\:\.`]/,
        isOperatorChar: /[+\-*&%=<>!?|^~:\/]/,
        numberStart: /[\d#$]/,
        number: /^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,
        multiLineStrings: true,
        typeFirstDefinitions: true,
        atoms: words("true false null larger smaller equal empty finished"),
        indentSwitch: false,
        styleDefs: false,
        hooks: {
            "@": function (stream) {
                stream.eatWhile(/[\w\$_]/);
                return "meta";
            },
            '"': function (stream, state) {
                state.tokenize = tokenCeylonString(stream.match('""') ? "triple" : "single");
                return state.tokenize(stream, state);
            },
            '`': function (stream, state) {
                if (!stringTokenizer || !stream.match('`')) return false;
                state.tokenize = stringTokenizer;
                stringTokenizer = null;
                return state.tokenize(stream, state);
            },
            "'": function (stream) {
                stream.eatWhile(/[\w\$_\xa1-\uffff]/);
                return "atom";
            },
            token: function (_stream, state, style) {
                if ((style == "variable" || style == "variable-3") &&
                    state.prevToken == ".") {
                    return "variable-2";
                }
            }
        },
        modeProps: {
            fold: ["brace", "import"],
            closeBrackets: { triples: '"' }
        }
    });

});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function (mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
        mod(require("../../lib/codemirror"));
    else if (typeof define == "function" && define.amd) // AMD
        define(["../../lib/codemirror"], mod);
    else // Plain browser env
        mod(CodeMirror);
})(function (CodeMirror) {
    var ie_lt8 = /MSIE \d/.test(navigator.userAgent) &&
        (document.documentMode == null || document.documentMode < 8);

    var Pos = CodeMirror.Pos;

    var matching = { "(": ")>", ")": "(<", "[": "]>", "]": "[<", "{": "}>", "}": "{<" };

    function findMatchingBracket(cm, where, config) {
        var line = cm.getLineHandle(where.line), pos = where.ch - 1;
        var afterCursor = config && config.afterCursor
        if (afterCursor == null)
            afterCursor = /(^| )cm-fat-cursor($| )/.test(cm.getWrapperElement().className)

        // A cursor is defined as between two characters, but in in vim command mode
        // (i.e. not insert mode), the cursor is visually represented as a
        // highlighted box on top of the 2nd character. Otherwise, we allow matches
        // from before or after the cursor.
        var match = (!afterCursor && pos >= 0 && matching[line.text.charAt(pos)]) ||
            matching[line.text.charAt(++pos)];
        if (!match) return null;
        var dir = match.charAt(1) == ">" ? 1 : -1;
        if (config && config.strict && (dir > 0) != (pos == where.ch)) return null;
        var style = cm.getTokenTypeAt(Pos(where.line, pos + 1));

        var found = scanForBracket(cm, Pos(where.line, pos + (dir > 0 ? 1 : 0)), dir, style || null, config);
        if (found == null) return null;
        return {
            from: Pos(where.line, pos), to: found && found.pos,
            match: found && found.ch == match.charAt(0), forward: dir > 0
        };
    }

    // bracketRegex is used to specify which type of bracket to scan
    // should be a regexp, e.g. /[[\]]/
    //
    // Note: If "where" is on an open bracket, then this bracket is ignored.
    //
    // Returns false when no bracket was found, null when it reached
    // maxScanLines and gave up
    function scanForBracket(cm, where, dir, style, config) {
        var maxScanLen = (config && config.maxScanLineLength) || 10000;
        var maxScanLines = (config && config.maxScanLines) || 1000;

        var stack = [];
        var re = config && config.bracketRegex ? config.bracketRegex : /[(){}[\]]/;
        var lineEnd = dir > 0 ? Math.min(where.line + maxScanLines, cm.lastLine() + 1)
            : Math.max(cm.firstLine() - 1, where.line - maxScanLines);
        for (var lineNo = where.line; lineNo != lineEnd; lineNo += dir) {
            var line = cm.getLine(lineNo);
            if (!line) continue;
            var pos = dir > 0 ? 0 : line.length - 1, end = dir > 0 ? line.length : -1;
            if (line.length > maxScanLen) continue;
            if (lineNo == where.line) pos = where.ch - (dir < 0 ? 1 : 0);
            for (; pos != end; pos += dir) {
                var ch = line.charAt(pos);
                if (re.test(ch) && (style === undefined || cm.getTokenTypeAt(Pos(lineNo, pos + 1)) == style)) {
                    var match = matching[ch];
                    if ((match.charAt(1) == ">") == (dir > 0)) stack.push(ch);
                    else if (!stack.length) return { pos: Pos(lineNo, pos), ch: ch };
                    else stack.pop();
                }
            }
        }
        return lineNo - dir == (dir > 0 ? cm.lastLine() : cm.firstLine()) ? false : null;
    }

    function matchBrackets(cm, autoclear, config) {
        // Disable brace matching in long lines, since it'll cause hugely slow updates
        var maxHighlightLen = cm.state.matchBrackets.maxHighlightLineLength || 1000;
        var marks = [], ranges = cm.listSelections();
        for (var i = 0; i < ranges.length; i++) {
            var match = ranges[i].empty() && findMatchingBracket(cm, ranges[i].head, config);
            if (match && cm.getLine(match.from.line).length <= maxHighlightLen) {
                var style = match.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket";
                marks.push(cm.markText(match.from, Pos(match.from.line, match.from.ch + 1), { className: style }));
                if (match.to && cm.getLine(match.to.line).length <= maxHighlightLen)
                    marks.push(cm.markText(match.to, Pos(match.to.line, match.to.ch + 1), { className: style }));
            }
        }

        if (marks.length) {
            // Kludge to work around the IE bug from issue #1193, where text
            // input stops going to the textare whever this fires.
            if (ie_lt8 && cm.state.focused) cm.focus();

            var clear = function () {
                cm.operation(function () {
                    for (var i = 0; i < marks.length; i++) marks[i].clear();
                });
            };
            if (autoclear) setTimeout(clear, 800);
            else return clear;
        }
    }

    function doMatchBrackets(cm) {
        cm.operation(function () {
            if (cm.state.matchBrackets.currentlyHighlighted) {
                cm.state.matchBrackets.currentlyHighlighted();
                cm.state.matchBrackets.currentlyHighlighted = null;
            }
            cm.state.matchBrackets.currentlyHighlighted = matchBrackets(cm, false, cm.state.matchBrackets);
        });
    }

    CodeMirror.defineOption("matchBrackets", false, function (cm, val, old) {
        if (old && old != CodeMirror.Init) {
            cm.off("cursorActivity", doMatchBrackets);
            if (cm.state.matchBrackets && cm.state.matchBrackets.currentlyHighlighted) {
                cm.state.matchBrackets.currentlyHighlighted();
                cm.state.matchBrackets.currentlyHighlighted = null;
            }
        }
        if (val) {
            cm.state.matchBrackets = typeof val == "object" ? val : {};
            cm.on("cursorActivity", doMatchBrackets);
        }
    });

    CodeMirror.defineExtension("matchBrackets", function () { matchBrackets(this, true); });
    CodeMirror.defineExtension("findMatchingBracket", function (pos, config, oldConfig) {
        // Backwards-compatibility kludge
        if (oldConfig || typeof config == "boolean") {
            if (!oldConfig) {
                config = config ? { strict: true } : null
            } else {
                oldConfig.strict = config
                config = oldConfig
            }
        }
        return findMatchingBracket(this, pos, config)
    });
    CodeMirror.defineExtension("scanForBracket", function (pos, dir, style, config) {
        return scanForBracket(this, pos, dir, style, config);
    });
});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function (mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
        mod(require("../../lib/codemirror"));
    else if (typeof define == "function" && define.amd) // AMD
        define(["../../lib/codemirror"], mod);
    else // Plain browser env
        mod(CodeMirror);
})(function (CodeMirror) {
    var defaults = {
        pairs: "()[]{}''\"\"",
        triples: "",
        explode: "[]{}"
    };

    var Pos = CodeMirror.Pos;

    CodeMirror.defineOption("autoCloseBrackets", false, function (cm, val, old) {
        if (old && old != CodeMirror.Init) {
            cm.removeKeyMap(keyMap);
            cm.state.closeBrackets = null;
        }
        if (val) {
            ensureBound(getOption(val, "pairs"))
            cm.state.closeBrackets = val;
            cm.addKeyMap(keyMap);
        }
    });

    function getOption(conf, name) {
        if (name == "pairs" && typeof conf == "string") return conf;
        if (typeof conf == "object" && conf[name] != null) return conf[name];
        return defaults[name];
    }

    var keyMap = { Backspace: handleBackspace, Enter: handleEnter };
    function ensureBound(chars) {
        for (var i = 0; i < chars.length; i++) {
            var ch = chars.charAt(i), key = "'" + ch + "'"
            if (!keyMap[key]) keyMap[key] = handler(ch)
        }
    }
    ensureBound(defaults.pairs + "`")

    function handler(ch) {
        return function (cm) { return handleChar(cm, ch); };
    }

    function getConfig(cm) {
        var deflt = cm.state.closeBrackets;
        if (!deflt || deflt.override) return deflt;
        var mode = cm.getModeAt(cm.getCursor());
        return mode.closeBrackets || deflt;
    }

    function handleBackspace(cm) {
        var conf = getConfig(cm);
        if (!conf || cm.getOption("disableInput")) return CodeMirror.Pass;

        var pairs = getOption(conf, "pairs");
        var ranges = cm.listSelections();
        for (var i = 0; i < ranges.length; i++) {
            if (!ranges[i].empty()) return CodeMirror.Pass;
            var around = charsAround(cm, ranges[i].head);
            if (!around || pairs.indexOf(around) % 2 != 0) return CodeMirror.Pass;
        }
        for (var i = ranges.length - 1; i >= 0; i--) {
            var cur = ranges[i].head;
            cm.replaceRange("", Pos(cur.line, cur.ch - 1), Pos(cur.line, cur.ch + 1), "+delete");
        }
    }

    function handleEnter(cm) {
        var conf = getConfig(cm);
        var explode = conf && getOption(conf, "explode");
        if (!explode || cm.getOption("disableInput")) return CodeMirror.Pass;

        var ranges = cm.listSelections();
        for (var i = 0; i < ranges.length; i++) {
            if (!ranges[i].empty()) return CodeMirror.Pass;
            var around = charsAround(cm, ranges[i].head);
            if (!around || explode.indexOf(around) % 2 != 0) return CodeMirror.Pass;
        }
        cm.operation(function () {
            var linesep = cm.lineSeparator() || "\n";
            cm.replaceSelection(linesep + linesep, null);
            cm.execCommand("goCharLeft");
            ranges = cm.listSelections();
            for (var i = 0; i < ranges.length; i++) {
                var line = ranges[i].head.line;
                cm.indentLine(line, null, true);
                cm.indentLine(line + 1, null, true);
            }
        });
    }

    function contractSelection(sel) {
        var inverted = CodeMirror.cmpPos(sel.anchor, sel.head) > 0;
        return {
            anchor: new Pos(sel.anchor.line, sel.anchor.ch + (inverted ? -1 : 1)),
            head: new Pos(sel.head.line, sel.head.ch + (inverted ? 1 : -1))
        };
    }

    function handleChar(cm, ch) {
        var conf = getConfig(cm);
        if (!conf || cm.getOption("disableInput")) return CodeMirror.Pass;

        var pairs = getOption(conf, "pairs");
        var pos = pairs.indexOf(ch);
        if (pos == -1) return CodeMirror.Pass;
        var triples = getOption(conf, "triples");

        var identical = pairs.charAt(pos + 1) == ch;
        var ranges = cm.listSelections();
        var opening = pos % 2 == 0;

        var type;
        for (var i = 0; i < ranges.length; i++) {
            var range = ranges[i], cur = range.head, curType;
            var next = cm.getRange(cur, Pos(cur.line, cur.ch + 1));
            if (opening && !range.empty()) {
                curType = "surround";
            } else if ((identical || !opening) && next == ch) {
                if (identical && stringStartsAfter(cm, cur))
                    curType = "both";
                else if (triples.indexOf(ch) >= 0 && cm.getRange(cur, Pos(cur.line, cur.ch + 3)) == ch + ch + ch)
                    curType = "skipThree";
                else
                    curType = "skip";
            } else if (identical && cur.ch > 1 && triples.indexOf(ch) >= 0 &&
                cm.getRange(Pos(cur.line, cur.ch - 2), cur) == ch + ch) {
                if (cur.ch > 2 && /\bstring/.test(cm.getTokenTypeAt(Pos(cur.line, cur.ch - 2)))) return CodeMirror.Pass;
                curType = "addFour";
            } else if (identical) {
                var prev = cur.ch == 0 ? " " : cm.getRange(Pos(cur.line, cur.ch - 1), cur)
                if (!CodeMirror.isWordChar(next) && prev != ch && !CodeMirror.isWordChar(prev)) curType = "both";
                else return CodeMirror.Pass;
            } else if (opening && (cm.getLine(cur.line).length == cur.ch ||
                isClosingBracket(next, pairs) ||
                /\s/.test(next))) {
                curType = "both";
            } else {
                return CodeMirror.Pass;
            }
            if (!type) type = curType;
            else if (type != curType) return CodeMirror.Pass;
        }

        var left = pos % 2 ? pairs.charAt(pos - 1) : ch;
        var right = pos % 2 ? ch : pairs.charAt(pos + 1);
        cm.operation(function () {
            if (type == "skip") {
                cm.execCommand("goCharRight");
            } else if (type == "skipThree") {
                for (var i = 0; i < 3; i++)
                    cm.execCommand("goCharRight");
            } else if (type == "surround") {
                var sels = cm.getSelections();
                for (var i = 0; i < sels.length; i++)
                    sels[i] = left + sels[i] + right;
                cm.replaceSelections(sels, "around");
                sels = cm.listSelections().slice();
                for (var i = 0; i < sels.length; i++)
                    sels[i] = contractSelection(sels[i]);
                cm.setSelections(sels);
            } else if (type == "both") {
                cm.replaceSelection(left + right, null);
                cm.triggerElectric(left + right);
                cm.execCommand("goCharLeft");
            } else if (type == "addFour") {
                cm.replaceSelection(left + left + left + left, "before");
                cm.execCommand("goCharRight");
            }
        });
    }

    function isClosingBracket(ch, pairs) {
        var pos = pairs.lastIndexOf(ch);
        return pos > -1 && pos % 2 == 1;
    }

    function charsAround(cm, pos) {
        var str = cm.getRange(Pos(pos.line, pos.ch - 1),
            Pos(pos.line, pos.ch + 1));
        return str.length == 2 ? str : null;
    }

    function stringStartsAfter(cm, pos) {
        var token = cm.getTokenAt(Pos(pos.line, pos.ch + 1))
        return /\bstring/.test(token.type) && token.start == pos.ch &&
            (pos.ch == 0 || !/\bstring/.test(cm.getTokenTypeAt(pos)))
    }
});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function (mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
        mod(require("../../lib/codemirror"), require("../fold/xml-fold"));
    else if (typeof define == "function" && define.amd) // AMD
        define(["../../lib/codemirror", "../fold/xml-fold"], mod);
    else // Plain browser env
        mod(CodeMirror);
})(function (CodeMirror) {
    "use strict";

    CodeMirror.defineOption("matchTags", false, function (cm, val, old) {
        if (old && old != CodeMirror.Init) {
            cm.off("cursorActivity", doMatchTags);
            cm.off("viewportChange", maybeUpdateMatch);
            clear(cm);
        }
        if (val) {
            cm.state.matchBothTags = typeof val == "object" && val.bothTags;
            cm.on("cursorActivity", doMatchTags);
            cm.on("viewportChange", maybeUpdateMatch);
            doMatchTags(cm);
        }
    });

    function clear(cm) {
        if (cm.state.tagHit) cm.state.tagHit.clear();
        if (cm.state.tagOther) cm.state.tagOther.clear();
        cm.state.tagHit = cm.state.tagOther = null;
    }

    function doMatchTags(cm) {
        cm.state.failedTagMatch = false;
        cm.operation(function () {
            clear(cm);
            if (cm.somethingSelected()) return;
            var cur = cm.getCursor(), range = cm.getViewport();
            range.from = Math.min(range.from, cur.line); range.to = Math.max(cur.line + 1, range.to);
            var match = CodeMirror.findMatchingTag(cm, cur, range);
            if (!match) return;
            if (cm.state.matchBothTags) {
                var hit = match.at == "open" ? match.open : match.close;
                if (hit) cm.state.tagHit = cm.markText(hit.from, hit.to, { className: "CodeMirror-matchingtag" });
            }
            var other = match.at == "close" ? match.open : match.close;
            if (other)
                cm.state.tagOther = cm.markText(other.from, other.to, { className: "CodeMirror-matchingtag" });
            else
                cm.state.failedTagMatch = true;
        });
    }

    function maybeUpdateMatch(cm) {
        if (cm.state.failedTagMatch) doMatchTags(cm);
    }

    CodeMirror.commands.toMatchingTag = function (cm) {
        var found = CodeMirror.findMatchingTag(cm, cm.getCursor());
        if (found) {
            var other = found.at == "close" ? found.open : found.close;
            if (other) cm.extendSelection(other.to, other.from);
        }
    };
});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

/**
 * Tag-closer extension for CodeMirror.
 *
 * This extension adds an "autoCloseTags" option that can be set to
 * either true to get the default behavior, or an object to further
 * configure its behavior.
 *
 * These are supported options:
 *
 * `whenClosing` (default true)
 *   Whether to autoclose when the '/' of a closing tag is typed.
 * `whenOpening` (default true)
 *   Whether to autoclose the tag when the final '>' of an opening
 *   tag is typed.
 * `dontCloseTags` (default is empty tags for HTML, none for XML)
 *   An array of tag names that should not be autoclosed.
 * `indentTags` (default is block tags for HTML, none for XML)
 *   An array of tag names that should, when opened, cause a
 *   blank line to be added inside the tag, and the blank line and
 *   closing line to be indented.
 *
 * See demos/closetag.html for a usage example.
 */

(function (mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
        mod(require("../../lib/codemirror"), require("../fold/xml-fold"));
    else if (typeof define == "function" && define.amd) // AMD
        define(["../../lib/codemirror", "../fold/xml-fold"], mod);
    else // Plain browser env
        mod(CodeMirror);
})(function (CodeMirror) {
    CodeMirror.defineOption("autoCloseTags", false, function (cm, val, old) {
        if (old != CodeMirror.Init && old)
            cm.removeKeyMap("autoCloseTags");
        if (!val) return;
        var map = { name: "autoCloseTags" };
        if (typeof val != "object" || val.whenClosing)
            map["'/'"] = function (cm) { return autoCloseSlash(cm); };
        if (typeof val != "object" || val.whenOpening)
            map["'>'"] = function (cm) { return autoCloseGT(cm); };
        cm.addKeyMap(map);
    });

    var htmlDontClose = ["area", "base", "br", "col", "command", "embed", "hr", "img", "input", "keygen", "link", "meta", "param",
        "source", "track", "wbr"];
    var htmlIndent = ["applet", "blockquote", "body", "button", "div", "dl", "fieldset", "form", "frameset", "h1", "h2", "h3", "h4",
        "h5", "h6", "head", "html", "iframe", "layer", "legend", "object", "ol", "p", "select", "table", "ul"];

    function autoCloseGT(cm) {
        if (cm.getOption("disableInput")) return CodeMirror.Pass;
        var ranges = cm.listSelections(), replacements = [];
        var opt = cm.getOption("autoCloseTags");
        for (var i = 0; i < ranges.length; i++) {
            if (!ranges[i].empty()) return CodeMirror.Pass;
            var pos = ranges[i].head, tok = cm.getTokenAt(pos);
            var inner = CodeMirror.innerMode(cm.getMode(), tok.state), state = inner.state;
            if (inner.mode.name != "xml" || !state.tagName) return CodeMirror.Pass;

            var html = inner.mode.configuration == "html";
            var dontCloseTags = (typeof opt == "object" && opt.dontCloseTags) || (html && htmlDontClose);
            var indentTags = (typeof opt == "object" && opt.indentTags) || (html && htmlIndent);

            var tagName = state.tagName;
            if (tok.end > pos.ch) tagName = tagName.slice(0, tagName.length - tok.end + pos.ch);
            var lowerTagName = tagName.toLowerCase();
            // Don't process the '>' at the end of an end-tag or self-closing tag
            if (!tagName ||
                tok.type == "string" && (tok.end != pos.ch || !/[\"\']/.test(tok.string.charAt(tok.string.length - 1)) || tok.string.length == 1) ||
                tok.type == "tag" && state.type == "closeTag" ||
                tok.string.indexOf("/") == (tok.string.length - 1) || // match something like <someTagName />
                dontCloseTags && indexOf(dontCloseTags, lowerTagName) > -1 ||
                closingTagExists(cm, tagName, pos, state, true))
                return CodeMirror.Pass;

            var indent = indentTags && indexOf(indentTags, lowerTagName) > -1;
            replacements[i] = {
                indent: indent,
                text: ">" + (indent ? "\n\n" : "") + "</" + tagName + ">",
                newPos: indent ? CodeMirror.Pos(pos.line + 1, 0) : CodeMirror.Pos(pos.line, pos.ch + 1)
            };
        }

        var dontIndentOnAutoClose = (typeof opt == "object" && opt.dontIndentOnAutoClose);
        for (var i = ranges.length - 1; i >= 0; i--) {
            var info = replacements[i];
            cm.replaceRange(info.text, ranges[i].head, ranges[i].anchor, "+insert");
            var sel = cm.listSelections().slice(0);
            sel[i] = { head: info.newPos, anchor: info.newPos };
            cm.setSelections(sel);
            if (!dontIndentOnAutoClose && info.indent) {
                cm.indentLine(info.newPos.line, null, true);
                cm.indentLine(info.newPos.line + 1, null, true);
            }
        }
    }

    function autoCloseCurrent(cm, typingSlash) {
        var ranges = cm.listSelections(), replacements = [];
        var head = typingSlash ? "/" : "</";
        var opt = cm.getOption("autoCloseTags");
        var dontIndentOnAutoClose = (typeof opt == "object" && opt.dontIndentOnSlash);
        for (var i = 0; i < ranges.length; i++) {
            if (!ranges[i].empty()) return CodeMirror.Pass;
            var pos = ranges[i].head, tok = cm.getTokenAt(pos);
            var inner = CodeMirror.innerMode(cm.getMode(), tok.state), state = inner.state;
            if (typingSlash && (tok.type == "string" || tok.string.charAt(0) != "<" ||
                tok.start != pos.ch - 1))
                return CodeMirror.Pass;
            // Kludge to get around the fact that we are not in XML mode
            // when completing in JS/CSS snippet in htmlmixed mode. Does not
            // work for other XML embedded languages (there is no general
            // way to go from a mixed mode to its current XML state).
            var replacement;
            if (inner.mode.name != "xml") {
                if (cm.getMode().name == "htmlmixed" && inner.mode.name == "javascript")
                    replacement = head + "script";
                else if (cm.getMode().name == "htmlmixed" && inner.mode.name == "css")
                    replacement = head + "style";
                else
                    return CodeMirror.Pass;
            } else {
                if (!state.context || !state.context.tagName ||
                    closingTagExists(cm, state.context.tagName, pos, state))
                    return CodeMirror.Pass;
                replacement = head + state.context.tagName;
            }
            if (cm.getLine(pos.line).charAt(tok.end) != ">") replacement += ">";
            replacements[i] = replacement;
        }
        cm.replaceSelections(replacements);
        ranges = cm.listSelections();
        if (!dontIndentOnAutoClose) {
            for (var i = 0; i < ranges.length; i++)
                if (i == ranges.length - 1 || ranges[i].head.line < ranges[i + 1].head.line)
                    cm.indentLine(ranges[i].head.line);
        }
    }

    function autoCloseSlash(cm) {
        if (cm.getOption("disableInput")) return CodeMirror.Pass;
        return autoCloseCurrent(cm, true);
    }

    CodeMirror.commands.closeTag = function (cm) { return autoCloseCurrent(cm); };

    function indexOf(collection, elt) {
        if (collection.indexOf) return collection.indexOf(elt);
        for (var i = 0, e = collection.length; i < e; ++i)
            if (collection[i] == elt) return i;
        return -1;
    }

    // If xml-fold is loaded, we use its functionality to try and verify
    // whether a given tag is actually unclosed.
    function closingTagExists(cm, tagName, pos, state, newTag) {
        if (!CodeMirror.scanForClosingTag) return false;
        var end = Math.min(cm.lastLine() + 1, pos.line + 500);
        var nextClose = CodeMirror.scanForClosingTag(cm, pos, null, end);
        if (!nextClose || nextClose.tag != tagName) return false;
        var cx = state.context;
        // If the immediate wrapping context contains onCx instances of
        // the same tag, a closing tag only exists if there are at least
        // that many closing tags of that type following.
        for (var onCx = newTag ? 1 : 0; cx && cx.tagName == tagName; cx = cx.prev)++onCx;
        pos = nextClose.to;
        for (var i = 1; i < onCx; i++) {
            var next = CodeMirror.scanForClosingTag(cm, pos, null, end);
            if (!next || next.tag != tagName) return false;
            pos = next.to;
        }
        return true;
    }
});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function (mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
        mod(require("../../lib/codemirror"));
    else if (typeof define == "function" && define.amd) // AMD
        define(["../../lib/codemirror"], mod);
    else // Plain browser env
        mod(CodeMirror);
})(function (CodeMirror) {
    "use strict";
    var WRAP_CLASS = "CodeMirror-activeline";
    var BACK_CLASS = "CodeMirror-activeline-background";
    var GUTT_CLASS = "CodeMirror-activeline-gutter";

    CodeMirror.defineOption("styleActiveLine", false, function (cm, val, old) {
        var prev = old == CodeMirror.Init ? false : old;
        if (val == prev) return
        if (prev) {
            cm.off("beforeSelectionChange", selectionChange);
            clearActiveLines(cm);
            delete cm.state.activeLines;
        }
        if (val) {
            cm.state.activeLines = [];
            updateActiveLines(cm, cm.listSelections());
            cm.on("beforeSelectionChange", selectionChange);
        }
    });

    function clearActiveLines(cm) {
        for (var i = 0; i < cm.state.activeLines.length; i++) {
            cm.removeLineClass(cm.state.activeLines[i], "wrap", WRAP_CLASS);
            cm.removeLineClass(cm.state.activeLines[i], "background", BACK_CLASS);
            cm.removeLineClass(cm.state.activeLines[i], "gutter", GUTT_CLASS);
        }
    }

    function sameArray(a, b) {
        if (a.length != b.length) return false;
        for (var i = 0; i < a.length; i++)
            if (a[i] != b[i]) return false;
        return true;
    }

    function updateActiveLines(cm, ranges) {
        var active = [];
        for (var i = 0; i < ranges.length; i++) {
            var range = ranges[i];
            var option = cm.getOption("styleActiveLine");
            if (typeof option == "object" && option.nonEmpty ? range.anchor.line != range.head.line : !range.empty())
                continue
            var line = cm.getLineHandleVisualStart(range.head.line);
            if (active[active.length - 1] != line) active.push(line);
        }
        if (sameArray(cm.state.activeLines, active)) return;
        cm.operation(function () {
            clearActiveLines(cm);
            for (var i = 0; i < active.length; i++) {
                cm.addLineClass(active[i], "wrap", WRAP_CLASS);
                cm.addLineClass(active[i], "background", BACK_CLASS);
                cm.addLineClass(active[i], "gutter", GUTT_CLASS);
            }
            cm.state.activeLines = active;
        });
    }

    function selectionChange(cm, sel) {
        updateActiveLines(cm, sel.ranges);
    }
});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  function doFold(cm, pos, options, force) {
    if (options && options.call) {
      var finder = options;
      options = null;
    } else {
      var finder = getOption(cm, options, "rangeFinder");
    }
    if (typeof pos == "number") pos = CodeMirror.Pos(pos, 0);
    var minSize = getOption(cm, options, "minFoldSize");

    function getRange(allowFolded) {
      var range = finder(cm, pos);
      if (!range || range.to.line - range.from.line < minSize) return null;
      var marks = cm.findMarksAt(range.from);
      for (var i = 0; i < marks.length; ++i) {
        if (marks[i].__isFold && force !== "fold") {
          if (!allowFolded) return null;
          range.cleared = true;
          marks[i].clear();
        }
      }
      return range;
    }

    var range = getRange(true);
    if (getOption(cm, options, "scanUp")) while (!range && pos.line > cm.firstLine()) {
      pos = CodeMirror.Pos(pos.line - 1, 0);
      range = getRange(false);
    }
    if (!range || range.cleared || force === "unfold") return;

    var myWidget = makeWidget(cm, options);
    CodeMirror.on(myWidget, "mousedown", function(e) {
      myRange.clear();
      CodeMirror.e_preventDefault(e);
    });
    var myRange = cm.markText(range.from, range.to, {
      replacedWith: myWidget,
      clearOnEnter: true,
      __isFold: true
    });
    myRange.on("clear", function(from, to) {
      CodeMirror.signal(cm, "unfold", cm, from, to);
    });
    CodeMirror.signal(cm, "fold", cm, range.from, range.to);
  }

  function makeWidget(cm, options) {
    var widget = getOption(cm, options, "widget");
    if (typeof widget == "string") {
      var text = document.createTextNode(widget);
      widget = document.createElement("span");
      widget.appendChild(text);
      widget.className = "CodeMirror-foldmarker";
    }
    return widget;
  }

  // Clumsy backwards-compatible interface
  CodeMirror.newFoldFunction = function(rangeFinder, widget) {
    return function(cm, pos) { doFold(cm, pos, {rangeFinder: rangeFinder, widget: widget}); };
  };

  // New-style interface
  CodeMirror.defineExtension("foldCode", function(pos, options, force) {
    doFold(this, pos, options, force);
  });

  CodeMirror.defineExtension("isFolded", function(pos) {
    var marks = this.findMarksAt(pos);
    for (var i = 0; i < marks.length; ++i)
      if (marks[i].__isFold) return true;
  });

  CodeMirror.commands.toggleFold = function(cm) {
    cm.foldCode(cm.getCursor());
  };
  CodeMirror.commands.fold = function(cm) {
    cm.foldCode(cm.getCursor(), null, "fold");
  };
  CodeMirror.commands.unfold = function(cm) {
    cm.foldCode(cm.getCursor(), null, "unfold");
  };
  CodeMirror.commands.foldAll = function(cm) {
    cm.operation(function() {
      for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++)
        cm.foldCode(CodeMirror.Pos(i, 0), null, "fold");
    });
  };
  CodeMirror.commands.unfoldAll = function(cm) {
    cm.operation(function() {
      for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++)
        cm.foldCode(CodeMirror.Pos(i, 0), null, "unfold");
    });
  };

  CodeMirror.registerHelper("fold", "combine", function() {
    var funcs = Array.prototype.slice.call(arguments, 0);
    return function(cm, start) {
      for (var i = 0; i < funcs.length; ++i) {
        var found = funcs[i](cm, start);
        if (found) return found;
      }
    };
  });

  CodeMirror.registerHelper("fold", "auto", function(cm, start) {
    var helpers = cm.getHelpers(start, "fold");
    for (var i = 0; i < helpers.length; i++) {
      var cur = helpers[i](cm, start);
      if (cur) return cur;
    }
  });

  var defaultOptions = {
    rangeFinder: CodeMirror.fold.auto,
    widget: "\u2194",
    minFoldSize: 0,
    scanUp: false
  };

  CodeMirror.defineOption("foldOptions", null);

  function getOption(cm, options, name) {
    if (options && options[name] !== undefined)
      return options[name];
    var editorOptions = cm.options.foldOptions;
    if (editorOptions && editorOptions[name] !== undefined)
      return editorOptions[name];
    return defaultOptions[name];
  }

  CodeMirror.defineExtension("foldOption", function(options, name) {
    return getOption(this, options, name);
  });
});;
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  var Pos = CodeMirror.Pos;
  function cmp(a, b) { return a.line - b.line || a.ch - b.ch; }

  var nameStartChar = "A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
  var nameChar = nameStartChar + "\-\:\.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
  var xmlTagStart = new RegExp("<(/?)([" + nameStartChar + "][" + nameChar + "]*)", "g");

  function Iter(cm, line, ch, range) {
    this.line = line; this.ch = ch;
    this.cm = cm; this.text = cm.getLine(line);
    this.min = range ? range.from : cm.firstLine();
    this.max = range ? range.to - 1 : cm.lastLine();
  }

  function tagAt(iter, ch) {
    var type = iter.cm.getTokenTypeAt(Pos(iter.line, ch));
    return type && /\btag\b/.test(type);
  }

  function nextLine(iter) {
    if (iter.line >= iter.max) return;
    iter.ch = 0;
    iter.text = iter.cm.getLine(++iter.line);
    return true;
  }
  function prevLine(iter) {
    if (iter.line <= iter.min) return;
    iter.text = iter.cm.getLine(--iter.line);
    iter.ch = iter.text.length;
    return true;
  }

  function toTagEnd(iter) {
    for (;;) {
      var gt = iter.text.indexOf(">", iter.ch);
      if (gt == -1) { if (nextLine(iter)) continue; else return; }
      if (!tagAt(iter, gt + 1)) { iter.ch = gt + 1; continue; }
      var lastSlash = iter.text.lastIndexOf("/", gt);
      var selfClose = lastSlash > -1 && !/\S/.test(iter.text.slice(lastSlash + 1, gt));
      iter.ch = gt + 1;
      return selfClose ? "selfClose" : "regular";
    }
  }
  function toTagStart(iter) {
    for (;;) {
      var lt = iter.ch ? iter.text.lastIndexOf("<", iter.ch - 1) : -1;
      if (lt == -1) { if (prevLine(iter)) continue; else return; }
      if (!tagAt(iter, lt + 1)) { iter.ch = lt; continue; }
      xmlTagStart.lastIndex = lt;
      iter.ch = lt;
      var match = xmlTagStart.exec(iter.text);
      if (match && match.index == lt) return match;
    }
  }

  function toNextTag(iter) {
    for (;;) {
      xmlTagStart.lastIndex = iter.ch;
      var found = xmlTagStart.exec(iter.text);
      if (!found) { if (nextLine(iter)) continue; else return; }
      if (!tagAt(iter, found.index + 1)) { iter.ch = found.index + 1; continue; }
      iter.ch = found.index + found[0].length;
      return found;
    }
  }
  function toPrevTag(iter) {
    for (;;) {
      var gt = iter.ch ? iter.text.lastIndexOf(">", iter.ch - 1) : -1;
      if (gt == -1) { if (prevLine(iter)) continue; else return; }
      if (!tagAt(iter, gt + 1)) { iter.ch = gt; continue; }
      var lastSlash = iter.text.lastIndexOf("/", gt);
      var selfClose = lastSlash > -1 && !/\S/.test(iter.text.slice(lastSlash + 1, gt));
      iter.ch = gt + 1;
      return selfClose ? "selfClose" : "regular";
    }
  }

  function findMatchingClose(iter, tag) {
    var stack = [];
    for (;;) {
      var next = toNextTag(iter), end, startLine = iter.line, startCh = iter.ch - (next ? next[0].length : 0);
      if (!next || !(end = toTagEnd(iter))) return;
      if (end == "selfClose") continue;
      if (next[1]) { // closing tag
        for (var i = stack.length - 1; i >= 0; --i) if (stack[i] == next[2]) {
          stack.length = i;
          break;
        }
        if (i < 0 && (!tag || tag == next[2])) return {
          tag: next[2],
          from: Pos(startLine, startCh),
          to: Pos(iter.line, iter.ch)
        };
      } else { // opening tag
        stack.push(next[2]);
      }
    }
  }
  function findMatchingOpen(iter, tag) {
    var stack = [];
    for (;;) {
      var prev = toPrevTag(iter);
      if (!prev) return;
      if (prev == "selfClose") { toTagStart(iter); continue; }
      var endLine = iter.line, endCh = iter.ch;
      var start = toTagStart(iter);
      if (!start) return;
      if (start[1]) { // closing tag
        stack.push(start[2]);
      } else { // opening tag
        for (var i = stack.length - 1; i >= 0; --i) if (stack[i] == start[2]) {
          stack.length = i;
          break;
        }
        if (i < 0 && (!tag || tag == start[2])) return {
          tag: start[2],
          from: Pos(iter.line, iter.ch),
          to: Pos(endLine, endCh)
        };
      }
    }
  }

  CodeMirror.registerHelper("fold", "xml", function(cm, start) {
    var iter = new Iter(cm, start.line, 0);
    for (;;) {
      var openTag = toNextTag(iter), end;
      if (!openTag || iter.line != start.line || !(end = toTagEnd(iter))) return;
      if (!openTag[1] && end != "selfClose") {
        var startPos = Pos(iter.line, iter.ch);
        var endPos = findMatchingClose(iter, openTag[2]);
        return endPos && {from: startPos, to: endPos.from};
      }
    }
  });
  CodeMirror.findMatchingTag = function(cm, pos, range) {
    var iter = new Iter(cm, pos.line, pos.ch, range);
    if (iter.text.indexOf(">") == -1 && iter.text.indexOf("<") == -1) return;
    var end = toTagEnd(iter), to = end && Pos(iter.line, iter.ch);
    var start = end && toTagStart(iter);
    if (!end || !start || cmp(iter, pos) > 0) return;
    var here = {from: Pos(iter.line, iter.ch), to: to, tag: start[2]};
    if (end == "selfClose") return {open: here, close: null, at: "open"};

    if (start[1]) { // closing tag
      return {open: findMatchingOpen(iter, start[2]), close: here, at: "close"};
    } else { // opening tag
      iter = new Iter(cm, to.line, to.ch, range);
      return {open: here, close: findMatchingClose(iter, start[2]), at: "open"};
    }
  };

  CodeMirror.findEnclosingTag = function(cm, pos, range) {
    var iter = new Iter(cm, pos.line, pos.ch, range);
    for (;;) {
      var open = findMatchingOpen(iter);
      if (!open) break;
      var forward = new Iter(cm, pos.line, pos.ch, range);
      var close = findMatchingClose(forward, open.tag);
      if (close) return {open: open, close: close};
    }
  };

  // Used by addon/edit/closetag.js
  CodeMirror.scanForClosingTag = function(cm, pos, name, end) {
    var iter = new Iter(cm, pos.line, pos.ch, end ? {from: 0, to: end} : null);
    return findMatchingClose(iter, name);
  };
});;
var Site = Site || {};

Site.DemoTemplateHelper = function() {
    var MAIN_THEMES = '<link rel="dx-theme" data-theme="generic.light" href="$1css/dx.light.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="generic.dark" href="$1css/dx.dark.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="generic.carmine" href="$1css/dx.carmine.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="generic.darkmoon" href="$1css/dx.darkmoon.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="generic.softblue" href="$1css/dx.softblue.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="generic.darkviolet" href="$1css/dx.darkviolet.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="generic.greenmist" href="$1css/dx.greenmist.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="generic.contrast" href="$1css/dx.contrast.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.blue.light" href="$1css/dx.material.blue.light.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.orange.light" href="$1css/dx.material.orange.light.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.lime.light" href="$1css/dx.material.lime.light.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.purple.light" href="$1css/dx.material.purple.light.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.teal.light" href="$1css/dx.material.teal.light.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.blue.dark" href="$1css/dx.material.blue.dark.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.orange.dark" href="$1css/dx.material.orange.dark.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.lime.dark" href="$1css/dx.material.lime.dark.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.purple.dark" href="$1css/dx.material.purple.dark.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.teal.dark" href="$1css/dx.material.teal.dark.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="fluent.blue.light" href="$1css/dx.fluent.blue.light.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="fluent.blue.dark" href="$1css/dx.fluent.blue.dark.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="fluent.saas.light" href="$1css/dx.fluent.saas.light.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="fluent.saas.dark" href="$1css/dx.fluent.saas.dark.css" />\r\n';

    var COMPACT_THEMES = '    <link rel="dx-theme" data-theme="generic.light.compact" href="$1css/dx.light.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="generic.dark.compact" href="$1css/dx.dark.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="generic.contrast.compact" href="$1css/dx.contrast.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.blue.light.compact" href="$1css/dx.material.blue.light.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.orange.light.compact" href="$1css/dx.material.orange.light.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.lime.light.compact" href="$1css/dx.material.lime.light.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.purple.light.compact" href="$1css/dx.material.purple.light.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.teal.light.compact" href="$1css/dx.material.teal.light.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.blue.dark.compact" href="$1css/dx.material.blue.dark.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.orange.dark.compact" href="$1css/dx.material.orange.dark.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.lime.dark.compact" href="$1css/dx.material.lime.dark.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.purple.dark.compact" href="$1css/dx.material.purple.dark.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="material.teal.dark.compact" href="$1css/dx.material.teal.dark.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="fluent.blue.light.compact" href="$1css/dx.fluent.blue.light.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="fluent.blue.dark.compact" href="$1css/dx.fluent.blue.dark.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="fluent.saas.light.compact" href="$1css/dx.fluent.saas.light.compact.css" />\r\n'
        + '    <link rel="dx-theme" data-theme="fluent.saas.dark.compact" href="$1css/dx.fluent.saas.dark.compact.css" />\r\n';

    var getActualThemesLinks = function(currentDemo, simulator) {
        var result;
        var currentTheme = simulator.getCurrentTheme();
        var themes = "";
        themes = MAIN_THEMES;
        if (currentDemo.type != "Viz" && currentDemo.type != "AdaptivityViz") {
            themes += COMPACT_THEMES;
        }
        themes = themes.replace(currentTheme + '.css"', currentTheme + '.css" data-active="true"');
        result = Site.editor.items["index-html"].doc.getValue()
            .replace(new RegExp("<link.*['\"](.*)?css\/dx\." + currentTheme + "\.css.*?\/>.*?\n"),
                themes
            );
        return result;
    };


    this.prepareMarkupForRun = function(currentDemo, simulator) {
        var result = getActualThemesLinks(currentDemo, simulator);
        var additionalScripts = "";
        var currentDemoPath = currentDemo.url.replace(currentDemo.approach + '/index.html', '');
        if (currentDemo.approach == "Angular" || currentDemo.approach == "Vue" || currentDemo.approach == "React") {
            additionalScripts += '    <script src="https://unpkg.com/typescript@3.9.10/lib/typescript.js"></script>\r\n';
            if (result.indexOf("/jquery") === -1) {
                additionalScripts += '    <script src="https://unpkg.com/jquery@3.5.1/dist/jquery.min.js"></script>\r\n';
            }
        }

        if (currentDemo.approach == "Vue") {
            additionalScripts += '    <script src="https://unpkg.com/dx-systemjs-vue-browser@latest/index.js"></script>\r\n';
        }
        result = result
            .replace(/"(js|css)\//g, '"../JSDemos/$1/')
            .replace(/node_modules\//g, "../node_modules/")
            .replace(/images\//g, "../JSDemos/images/")
            .replace(/external\/(.+\.js)/, '..' + currentDemoPath + currentDemo.approach + '/external/$1')
            .replace(/"(\.\.\/)([^\/]*.js)"/, '"..' + currentDemoPath + '$2"')
            .replace(/.+index\.js.+\n/, "")
            .replace(/.+styles\.css.+\n/, "")
            .replace(/.+[^\.]data\.js.+\n/, "")
            .replace(/.+config\.js.+\n/, "")
            .replace(/<script>\s+System.import\(['"]app["']\).catch\(console.error.bind\(console\)\);\s+<\/script>/, "")
            .replace(/\s+System.import\(\"\.\/index\.tsx?\"\);/, "")
            .replace(/.+[a-zA-Z]+\/[a-zA-Z]+\.service\.ts.+\n/, "")
            .replace("</head>", additionalScripts + "</head>");

        return result;
    };

    this.prepareConfig = function (code) {
        return code.replace(/main: '.\/[a-zA-Z]+.component.ts',/, "")
            .replace('System.config(window.config);', '')
            .replace(/node_modules\//g, '../node_modules/')
            .replace(/'js\/vectormap-data'/, "'../JSDemos/js/vectormap-data'");
    }

    this.getHead = function(markup) {
        var startIndex = markup.indexOf("<head>") + 6,
            endIndex = markup.indexOf("</head>");

        return markup.substring(startIndex, endIndex);
    };

    this.getBody = function(markup) {
        var startBodyIndex = markup.indexOf("<body"),
            bodyLength = markup.substring(startBodyIndex).indexOf(">") + 1,
            endIndex = markup.indexOf("</body>");

        return markup.substring(startBodyIndex + bodyLength, endIndex);
    };

};;
var Site = Site || {};

function SwitchBase(rootSelector, actionFunction) {
    var rootId = rootSelector;
    var onClickAction = actionFunction;

    var tooltipInstance = null;

    var _getContainer = () => document.querySelector(rootId);
    //fix selector
    var _getSliderElement = () => _getContainer().querySelector('label > span');
    var _getInputElement = () => _getContainer().querySelector('input');
    var _getTooltipElement = () => _getContainer().querySelector(rootSelector + "-tooltip");

    var _onClick = () => {
        onClickAction();
    }

    this.getValue = () => _getInputElement().checked;
    this.setValue = (value) => _getInputElement().checked = value;

    this.hide = () => _getContainer().style.display = 'none';

    this.disable = () => _getSliderElement().classList.add('disabled');
    this.enable = () => _getSliderElement().classList.remove('disabled');

    this.init = (content, value = false) => {
        if (!content) {
            return;
        }

        content.querySelector(`${rootId} input`).onclick = _onClick;
        content.querySelector(`${rootId} input`).checked = value;
    }

    this.addTooltip = (text) => {
        if (tooltipInstance) {
            return;
        }
        const tooltipElement = document.createElement('div');
        tooltipElement.id = rootId.replace("#", "") + "-tooltip";
        tooltipElement.innerHTML = text;
        tooltipElement.style.display = 'none';

        _getContainer().appendChild(tooltipElement);

        tooltipInstance = new DevExpress.ui.dxTooltip(tooltipElement, {
            target: _getSliderElement(),
            position: "top",
            showEvent: "mouseenter",
            hideEvent: "mouseleave",
            wrapperAttr: {
                class: "theme-popup-tooltip"
            }
        });
    }

    this.hideTooltip = () => {
        if (!tooltipInstance)
            return;
        tooltipInstance.hide();
    }

    this.removeTooltip = () => {
        tooltipInstance = null;
        var container = _getContainer();
        var tooltip = _getTooltipElement();

        if (tooltip) {
            container.removeChild(tooltip);
        }
    }
}

Site.ThemesMenu = function () {

    var availableThemes;

    var switchThemeSize;
    var switchThemeMode;

    var dropDownInstance = null;

    var geThemeSwitcherContainer = function (content) {
        return content.querySelector('#dropdown-themes');
    }

    var _setSelectedThemeItem = () => {
        var selectedThemeItem = document.querySelector('.theme-item.selected');
        if (selectedThemeItem) {
            selectedThemeItem.classList.toggle('selected', false);
        }

        var currentTheme = Site.simulator.getCurrentTheme();
        var currentThemeItem = document.querySelector(`.theme-item[data-value='${currentTheme}']`);
        if (currentThemeItem) {
            currentThemeItem.classList.toggle('selected', true)
        }
    };

    var createThemeWarningTooltips = () => {
        Array.from(document.querySelectorAll('.theme-trademark-warning')).forEach((elem) => {
            const tooltipElement = document.createElement('div');
            tooltipElement.innerHTML = 'All trademarks or registered trademarks are property of their respective owners.';
            tooltipElement.style.display = 'none';

            elem.appendChild(tooltipElement);

            new DevExpress.ui.dxTooltip(tooltipElement, {
                target: elem,
                width: "276px",
                position: "top",
                showEvent: "mouseenter",
                hideEvent: "mouseleave",
                wrapperAttr: {
                    class: "theme-warning-tooltip"
                }
            });
        });
    }

    var getThemeSizeAndMode = function(theme) {
        var themeItem = document.querySelector(`.theme-item[data-value='${theme}']`);
        return { mode: themeItem.dataset.mode, size: themeItem.dataset.size };
    }

    var restorePreviousState = function () {
        var currentThemeName = Site.simulator.getCurrentTheme();

        var { size, mode } = getThemeSizeAndMode(currentThemeName);

        var isCompact = size === 'compact';
        var isDark = mode === 'dark';

        switchThemeMode.setValue(isDark);
        switchThemeSize.setValue(isCompact);

        Site.themesMenu.toggleSwitchActivation(currentThemeName);
    }

    this.initThemeSwitcher = function (themes) {
        availableThemes = themes;

        switchThemeSize = new SwitchBase('#switch-editor', this.changeThemeBySwitch.bind(this));
        switchThemeMode = new SwitchBase('#switch-theme-mode', this.changeThemeBySwitch.bind(this));

        var isPreviousStateRestored = false;
        var themeWarningTooltipsCreated = false;

        dropDownInstance = new DevExpress.ui.dxDropDownBox(geThemeSwitcherContainer(document), {
            showDropDownButton: false,
            onOpened: function () {
                if (!isPreviousStateRestored) {
                    restorePreviousState();
                    isPreviousStateRestored = true;
                }
                if (!themeWarningTooltipsCreated) {
                    createThemeWarningTooltips();
                    themeWarningTooltipsCreated = true;
                }

                Site.themesMenu.toggleThemeGroups();
                
                _setSelectedThemeItem();

                Site.themesMenu.arrowRevert();
            },
            onClosed: function () {
                switchThemeSize.hideTooltip();
                switchThemeMode.hideTooltip();

                Site.themesMenu.arrowRevert();
            },
            fieldTemplate: () => {
                const fieldContent = document.createElement('div');
                fieldContent.innerHTML = document.getElementById('fieldThemeButton').innerHTML.trim();

                new DevExpress.ui.dxTextBox(fieldContent.querySelector('#theme-textbox'), {
                    visible: false
                });

                return fieldContent.lastChild;
            },
            contentTemplate: () => {
                const isTemplateDemo = location.pathname.toLocaleLowerCase().includes('templates');

                const content = document.createElement('div');
                content.innerHTML = document.getElementById('contentThemeChooser').innerHTML.trim();

                switchThemeSize.init(content, isTemplateDemo);
                switchThemeMode.init(content);

                new DevExpress.ui.dxScrollView(content.querySelector('#popupWindow'), {
                    height: '100%',
                    width: '100%'
                });

                return content.lastChild;
            },
            dropDownOptions: {
                width: 420,
                maxHeight: 670
            }
        });
    };

    this.closeDropDown = function () {
        if (switchThemeMode && switchThemeSize) {
            switchThemeMode.hideTooltip();
            switchThemeSize.hideTooltip();
        }
        if (dropDownInstance) {
            dropDownInstance.close();
        }
    }

    this.arrowRevert = function () {
        const arrowButton = document.documentElement.querySelector('#arrow-selector');
        arrowButton.classList.toggle('opened-dropdown');
    }

    this.toggleThemeGroups = function () {
        var isHiddenSize = (isCompact, groupSize) => isCompact ? groupSize === '' : groupSize === 'compact';
        var isHiddenMode = (isDark, groupMode) => isDark ? groupMode === 'light' : groupMode === 'dark';

        var isCompact = switchThemeSize.getValue();
        var isDark = switchThemeMode.getValue();

        const themeGroups = [...document.querySelectorAll('.theme-popup-group')];
        themeGroups.forEach((themeGroup) => {
            var groupMode = themeGroup.dataset.themeMode;
            var groupSize = themeGroup.dataset.themeSize;

            var isHiddenGroup = isHiddenSize(isCompact, groupSize) || isHiddenMode(isDark, groupMode);
            themeGroup.setAttribute('aria-hidden', `${isHiddenGroup}`);
        });
    }

    this.modifyThemeName = function (themeName, isCompact, isDark) {
        var themeNameParts = themeName.split(".");
        var newThemeNameParts = themeNameParts.map((namePart) => {
            if (isDark && namePart === 'light')
                return 'dark';
            if (!isDark && namePart === 'dark')
                return 'light';
            return namePart;
        })
        if (isCompact && !newThemeNameParts.includes('compact')) {
            newThemeNameParts.push('compact');
        }
        if (!isCompact && newThemeNameParts.includes('compact')) {
            newThemeNameParts.splice(newThemeNameParts.findIndex((part) => part === 'compact'), 1);
        }
        var newThemeName = newThemeNameParts.join('.');
        var newTheme = getThemeByName(newThemeName);
        if (newTheme && newThemeName !== themeName) {
            return newThemeName;
        }
        return null;
    }

    this.changeThemeBySwitch = function () {
        var isCompact = switchThemeSize.getValue();
        var isDark = switchThemeMode.getValue();
        const newThemeName = this.modifyThemeName(Site.simulator.getCurrentTheme(), isCompact, isDark);
        this.toggleThemeGroups();
        if (newThemeName) {
            this.themeChanged({ dataset: { value: newThemeName } });
        }
    }

    this.toggleSwitchActivation = function (currentThemeName) {
        var isCompact = switchThemeSize.getValue();
        var isDark = switchThemeMode.getValue();
        const colorThemeName = this.modifyThemeName(currentThemeName, isCompact, !isDark);
        if (!colorThemeName) {
            switchThemeMode.disable();
            switchThemeMode.addTooltip(`No ${isDark ? 'light': 'dark'} color scheme`);
        } else {
            switchThemeMode.enable();
            switchThemeMode.removeTooltip();
        }
        const sizeThemeName = this.modifyThemeName(currentThemeName, !isCompact, isDark);
        if (!sizeThemeName) {
            switchThemeSize.disable();
            switchThemeSize.addTooltip("No compact scheme");
        } else {
            switchThemeSize.enable();
            switchThemeSize.removeTooltip();
        }
    }

    this.themeChanged = function (eventArgs) {
        var selectedTheme = getThemeByName(eventArgs.dataset.value),
            previousThemeName = Site.simulator.getCurrentTheme();

        _setSelectedThemeItem();

        if(history.pushState)
            history.pushState({ href: selectedTheme.targetUrl }, "", selectedTheme.targetUrl);

        if(!Site.likeServerSideApproach(Site.currentDemo)) {
            var isPreviousThemeCompact = previousThemeName.indexOf("compact") > 0,
                isPreviousThemeMaterial = previousThemeName.indexOf("material") == 0,
                isCurrentThemeCompact,
                isCurrentThemeMaterial;

            Site.simulator.updateSimulatorAndTheme(
                selectedTheme.simulator,
                selectedTheme.name,
                selectedTheme.class
            );

            isCurrentThemeCompact = selectedTheme.name.indexOf("compact") > 0;
            isCurrentThemeMaterial = selectedTheme.name.indexOf("material") == 0;

            if(isPreviousThemeCompact == isCurrentThemeCompact && isPreviousThemeMaterial == isCurrentThemeMaterial) {
                Site.simulator.showLoading();
                Site.simulator.updateThemeInFrame();

                Site.simulator.getThemes().current({
                    loadCallback: function () {
                        Site.simulator.hideLoadingWithTimeout();
                    }
                });
            } else {
                Site.simulator.refreshDemoFrame();
            }
        } else {
            Site.ajax.load(selectedTheme.targetUrl);
        }

        Site.widgetsMenu.update(selectedTheme.themeUrl);
        updateLinksWithTheme($(".demo-nav-links a[href]"), selectedTheme.themeUrl);

        if (Site.header) {
            Site.header.updateState();
        }

        Site.editor.updateTheme(selectedTheme.simulator, selectedTheme.name, previousThemeName);
        setAnalyticsVariable('demo-theme', selectedTheme.name);

        switchThemeMode.removeTooltip();
        switchThemeSize.removeTooltip();

        this.toggleSwitchActivation(selectedTheme.name);

        if (dropDownInstance) {
            setTimeout(() => {
                dropDownInstance.close();
            }, 500);
        }
    };

    var getThemeByName = function (name) {
        for (var i = 0; i < availableThemes.length; i++) {
            if (availableThemes[i].name === name) {
                return availableThemes[i];
            }
        }
    };

    var updateLinksWithTheme = function (links, themeUrl) {
        $.each(links, function (_, item) {
            var link = $(item),
                newHref = Site.urlHelper.updateTheme(link.attr("href"), themeUrl);
            link.attr("href", newHref);
        });
    };

    this.updateThemesSimulator = function (simulator) {
        for (var i = 0; i < availableThemes.length; i++) {
            availableThemes[i].simulator = simulator;
        }
    };
};
;
var Site = Site || {};

Site.AdaptivitySwitcher = function() {
    var clickSwitcherItem = function(orientation, container) {
        $(".adaptivity-switcher .switcher-item").removeClass("active");

        Site.cookies.set("adaptivity-simulator", orientation);
        anlyticsEvent("Adaptivity Switcher", orientation);

        if(Site.likeServerSideApproach(Site.currentDemo)) {
            location.reload();
        } else {
            Site.simulator.updateAdaptabilityOrientation(orientation);
            Site.simulator.refreshDemoFrame();
            Site.themesMenu.updateThemesSimulator(orientation);
        }

        $(".switcher-item", container).addClass("active");
    };

    this.initialize = function(fileName) {
        $(".adaptivity-switcher .switcher-item-wrapper.portrait").click(function(e) {
            clickSwitcherItem("TabletPortrait", $(this));
        });

        $(".adaptivity-switcher .switcher-item-wrapper.landscape").click(function(e) {
            clickSwitcherItem("TabletLandscape", $(this));
        });
    };

};;
var Site = Site || {};

Site.Highlighter = function() {

    this.highlight = function(fileName) {
        var fileId = fileName.replace(".", "-");

        var fileSourceContainer = $("#" + fileId);
        var fileContent = fileSourceContainer.text();
        fileSourceContainer.text("");

        var mode = fileName.indexOf(".css") > 0 ? "text/css" : "text/x-csharp";

        CodeMirror(fileSourceContainer.get(0), {
            value: fileContent,
            mode: mode,
            lineNumbers: false,
            matchBrackets: true,
            lineWrapping: true,
            indentUnit: 4,
            cursorHeight: 0,
            readOnly: true,
        });

    };

};;
var Site = Site || {};

Site.Editor = function () {
    var dx_cdn = "https://cdn3.devexpress.com/jslib";
    var dx_all_js = "dx.all.js";

    var readOnlyStringsContent = [
      "DOCTYPE html",
      "<html",
      "<head",
      "<title>",
      "X-UA-Compatible",
      "Content-Type",
      "width=device-width",
      "js/knockout",
      "js/jquery",
      "js/angular",
      "js/angular-sanitize",
      "data-theme",
      "data.js",
      "<link rel=\"stylesheet\"",
      "index.js",
      "<body",
      "</body>",
      "</head>",
      "</html>"
    ];

    const ANGULAR_PACKAGES = [
        "@angular/core",
        "@angular/common",
        "@angular/compiler",
        "@angular/platform-browser",
        "@angular/platform-browser-dynamic",
        "@angular/router",
        "@angular/forms",
        "@angular/common"
    ];

    const ANGULAR_VERSION = "8.0.0";

    var getCdnDxAllLink = function () {
        return `${dx_cdn}/${Site.appVersion}/js/${dx_all_js}`
    }

    var getCssFileName = function(themeName) {
        return "css/dx." + themeName.toLowerCase() + ".css";
    };

    var getCssThemeName = function(themeName) {
        var result = themeName.toLowerCase();
        var genericThemes = ["light", "dark", "contrast", "carmine", "greenmist", "darkmoon", "darkviolet", "softblue"];
        for(theme in genericThemes) {
            if(themeName.indexOf(genericThemes[theme]) === 0) {
                result = "generic." + result;
                break;
            }
        }

        return result;
    };

    var getFileTypeByName = function(name, approach) {
        var result;

        if(name.substr(-5) === ".html") {
            result = { name: "xml", htmlMode: true };
        } else if (name.substr(-3) === ".js" || name.substr(-3) === ".ts" || name.substr(-4) === '.tsx') {
            result = (approach === "React" && name !== "config.js") ? "jsx": "javascript";
        } else if(name.substr(-4) === ".css") {
            result = "css";
        } else if (name.substr(-5) === ".json") {
            result = "javascript";
        } else if(name.substr(-3) === ".cs") {
            result = "text/x-csharp";
        } else {
            result = "htmlmixed";
        }

        return result;
    };

    var findLineNumbersByContent = function(source, content) {
        var result = [];
        var sourceLines = source.split(/\r\n|\r|\n/);

        $.each(content, function (index, contentString) {
            $.each(sourceLines, function (lineIndex, line) {
                if (line.indexOf(contentString) >= 0) {
                    result.push(lineIndex);
                }
            });
        });

        return result;
    };

    var foldHeadTag = function(editor) {
        var lines = findLineNumbersByContent(editor.doc.getValue(), ["<head>"]);
        if(lines.length === 1)
            editor.foldCode(lines[0]);
    };

    var processReadOnly = function(editor, readOnlySelectors) {
        if(readOnlySelectors) {
            var lines = findLineNumbersByContent(editor.doc.getValue(), readOnlySelectors);
            if(lines.length > 0) {
                $.each(lines, function(index, item) {
                    editor.markText({ line: item, ch: 0 }, { line: item + 1, ch: 0 }, { readOnly: true, className: "read-only-line" });
                });
            }
        } else {
            editor.setOption("readOnly", true);
            editor.markText({ line: 0, ch: 0 }, { line: editor.lineCount() + 1, ch: 0 }, { className: "read-only-line" });
        }
    };

    var prepareMarkupForUsers = function (markup, currentThemeName, previousThemeName) {
        return markup.replace(new RegExp("css\/dx\." + (previousThemeName || "light") + "\.css"), getCssFileName(currentThemeName).replace("generic.", ""));
    };

    this.items = {};
    this.itemsUndo = {};

    this.defaultDemoSources = {};

    this.initialize = function() {
        this.items = {};
        this.defaultDemoSources = {};
    };

    this.modifyContent = function(fileName, themeName, fileSourceContainer) {
        var fileContent = fileSourceContainer.text();

        fileSourceContainer.text("");

        if(fileName == "index.html") {
            fileContent = prepareMarkupForUsers(fileContent, themeName);
        }
        fileContent = fileContent.replace(/(?:\.\.\/){4,5}/g, "");
        fileContent = fileContent.replace(/^ *\/\/\seslint.*\r?\n/gm, "");

        return fileContent;
    };

    this.build = function (fileName, themeName, approach) {
        var fileId = fileName.replace(/\./g, "-"),
            fileType = getFileTypeByName(fileName, approach),
            fileSourceContainer = $("#" + fileId),
            fileContent = this.modifyContent(fileName, themeName, fileSourceContainer);

        this.items[fileId] = CodeMirror(fileSourceContainer.get(0), {
            value: fileContent,
            mode: fileType,
            lineNumbers: false,
            matchBrackets: true,
            matchTags: { bothTags: true },
            lineWrapping: true,
            indentUnit: 2,
            cursorHeight: 1,
            readOnly: false,
            autoCloseTags: true,
            autoCloseBrackets: true,
            tabSize: 2,
            styleActiveLine: true
        });

        this.itemsUndo[fileId] = this.items[fileId].changeGeneration(true);
    };

    this.updateTheme = function (simulator, currentThemeName, previousThemeName) {
        var editor = this.items["index-html"];
        if(editor) {
            var markup = prepareMarkupForUsers(editor.doc.getValue(), currentThemeName, previousThemeName);
            var defaultSource = this.defaultDemoSources["index.html"];
            this.defaultDemoSources["index.html"] = prepareMarkupForUsers(defaultSource, currentThemeName, previousThemeName);
            editor.doc.setValue(markup);
            processReadOnly(editor, readOnlyStringsContent);
        }
    };

    this.prepareTexts = function() {
        if(this.items["index-html"]) {
            foldHeadTag(this.items["index-html"]);
            processReadOnly(this.items["index-html"], readOnlyStringsContent);
        }
        if(this.items["app-component-ts"]) {
            processReadOnly(this.items["app-component-ts"], ["templateUrl", "styleUrls"]);
        }
        if(this.items["config-js"]) {
            processReadOnly(this.items["config-js"]);
        }
    };

    this.saveDefaultSources = function() {
        this.defaultDemoSources = this.getSources();
    };

    this.getSources = function() {
        var sources = {};
        for(var fileName in this.items) {
            sources[fileName.replace(/-/g, ".")] = this.items[fileName].doc.getValue();
        }
        return sources;
    }

    function patchContent(content, startSymbols, textMarker, insertText) {
        for (var index in startSymbols) {
            content = content.replace(new RegExp('\\' + startSymbols[index] + textMarker, 'g'), startSymbols[index] + insertText + textMarker);
        }
        return content;
    }

    function prepareContent(fileText, baseUrl) {
        fileText = patchContent(fileText, ['"', "'", "`"], "data/", baseUrl);
        fileText = patchContent(fileText, ['(', '"', "'", "`"], "images/", baseUrl);
        fileText = fileText
            .replace(/(parent\.)?document\.location\.reload\(\);/, "window.location.href = window.location.href;")
            .replace(/import\s([^\s]*)\sfrom\s['"](?:npm:)?(.*?)!json['"]/g, "import * as $1 from '$2'");
        return fileText;
    }

    function prepareStyles(fileText, baseUrl, theme) {
        if (!fileText) {
            return fileText;
        }
        fileText = patchContent(fileText, ['(', '"', "'"], "images/", baseUrl);
        if (theme.indexOf("dark") != -1 || theme.indexOf("contrast") != -1) {
            fileText = fileText.replace("#f5f5f5", "#363636");
            fileText = fileText.replace("#dddddd", "#4d4d4d");
        }
        return fileText;
    }

    function getBaseUrl() {
        var baseUrl = $("#demoFrame").get(0).contentWindow.location.href;
        baseUrl = baseUrl.substring(0, baseUrl.indexOf("demo-template.html")).replace("build", "JSDemos");
        return baseUrl;
    }

    this.copyToCodepen = function() {
        var demoTitle = document.title.substr(0, document.title.indexOf(":")),
            sources = this.getSources(),
            demoHtml,
            demoCss,
            demoJS,
            demoDataJS,
            currentTheme = getCssThemeName(Site.simulator.getCurrentTheme()),
            demoContainerHtml,
            isDataJS,
            styleHtmlLinks = [],
            scriptHtmlLinks = [],
            scriptLinks = [],
            styleLinks = [],
            $codepenForm = $("#codepen"),
            codePenData = {},
            codePenJSON,
            baseUrl = getBaseUrl();

        function fillResources(matches, array, attr) {
            $.each(matches, function (i, link) {
                var linkHref = $(link).attr(attr);

                if (linkHref.includes(dx_all_js)) {
                    linkHref = getCdnDxAllLink();
                }

                if(linkHref.substr(0, 4) != "http")
                    linkHref = baseUrl + linkHref.replace(/(..\/signalr-.*\.js)/, '..' + Site.currentDemo.url.replace('index.html', '') + '$1');
                array.push(linkHref);
            });
        }

        isDataJS = !!sources["data.js"];
        demoHtml = sources["index.html"];
        styleHtmlLinks = demoHtml.match(/<link[^>]*href=((?!styles).)*>/g);
        scriptHtmlLinks = demoHtml.match(/<script[^>]*src=((?!index\.js|[^\.]data\.js).)*>/g);

        fillResources(styleHtmlLinks, styleLinks, "href");
        fillResources(scriptHtmlLinks, scriptLinks, "src");

        demoDataJS = sources["data.js"];
        demoJS = sources["index.js"];
        demoCss = prepareStyles(sources["styles.css"], baseUrl, currentTheme);

        demoContainerHtml = demoHtml.match(/<body[^>]*>((.|[\n\r])*)<\/body>/i)[1];
        demoContainerHtml = demoContainerHtml.replace(/demo-container/g, "dx-viewport demo-container");
        demoContainerHtml = prepareContent(demoContainerHtml, baseUrl);

        if(isDataJS)
            demoDataJS = prepareContent(demoDataJS, baseUrl);

        demoJS = prepareContent(demoJS, baseUrl);

        codePenData = {
            title: demoTitle,
            html: demoContainerHtml,
            css: demoCss,
            js: demoJS + (isDataJS ? '\r\n\r\n' + demoDataJS : ""),
            css_external: styleLinks.join(";"),
            js_external: scriptLinks.join(";")
        };

        codePenJSON = JSON.stringify(codePenData);

        $codepenForm.find("input").val(codePenJSON);
        $codepenForm.submit();

        anlyticsEvent("Copy to Codepen", Site.currentDemo.url);
    };

    this.copyToCodeSandBox = function () {
        var isDisabled = document.querySelector('#copy-to-code-sandbox').classList.contains('disabled');
        if (isDisabled) {
            return;
        }

        var demoTitle = document.title.substr(0, document.title.indexOf(":")),
            demoDescr = $(".description-text").text().replace(/\n\s+Documentation\n\s+/, ""),
            currentTheme = getCssThemeName(Site.simulator.getCurrentTheme()),
            $codeSandBoxForm = $("#codesandbox"),
            sources = this.getSources(),
            demoParameters = {files: {}},
            baseUrl = getBaseUrl(),
            approach = "";

        if (!!sources["app.component.html"]) {
            approach = "Angular";
        }
        else if (!!sources["App.vue"]) {
            approach = "Vue";
        }
        else {
            approach = "React";
        }

        function prepareIndex(fileText) {
            fileText = fileText.replace(/rel="dx-theme" data-theme="[^"]+"/g, 'rel="stylesheet" type="text/css"')
            fileText = fileText.replace(/node_modules\//g, "https://unpkg.com/");
            return fileText;
        }

        function parseConfigJS(fileText) {
            var deps = {},
                depRegex = /[\'\"]\s*:\s*[\'\"]npm:(@)?([^\/|\s|\'\"]+)(\/)?(([^\/|\s]*)@([\d\.]+[-\w]*))?/g;

            var depMatches = fileText.match(depRegex);

            for(var i = 0; i < depMatches.length; i++) {
                var depValues = depMatches[i].replace(/[\'\"]\s*:\s*[\'\"]npm:/, '').split("@");
                if (depValues[0] === "" && depValues[1] === "angular") {
                    ANGULAR_PACKAGES.forEach(function(package) {
                        deps[package] = ANGULAR_VERSION;
                    });
                    continue;
                }
                var depName = depValues.length > 2 ? "@" + depValues[1] : depValues[0].replace(/\//, "");
                var depVersion = (depValues.length > 2 ? depValues[2] : (depValues[1] ? depValues[1].replace(/\//, "") : "latest"));
                if(!(/systemjs-plugin-babel|typescript/.test(depName))) {
                    deps[depName] = depVersion;
                }
            }
            return deps;
        }

        var frontToggleChecked = Site.currentDemo.frontToggleChecked;

        sources = Object.keys(sources)
            .filter(key => !key.endsWith('.cs'))
            .filter(key => {
                if (!frontToggleChecked && approach === "React") {
                    if (!key.endsWith('.js') || key === 'config.js') {
                        return true;
                    }
                    return false;
                };
                if (frontToggleChecked && approach === "React") {
                    if (!(key.endsWith('.ts') || key.endsWith('.tsx'))) {
                        return true;
                    }
                    return false;
                }
                return true;
            })
            .reduce((obj, key) => {
                obj[key] = sources[key];
                return obj;
            }, {});

        if(approach === "Angular") {
            demoParameters.files["package.json"] = {
                content: {
                    dependencies: $.extend({}, parseConfigJS(sources["config.js"]), { "zone.js": "0.10.3", "core-js": "2.4.1" }),
                    main: 'src/app/app.component.ts',
                    name: demoTitle,
                    description: demoDescr
                }
            };

            demoParameters["files"]["src/polyfills.ts"] = {
                content: 'import "core-js/es7/reflect";\nimport "zone.js/dist/zone";'
            }
            
            for(var source in sources) {
                if(source === "index.html" || source === "config.js") continue;

                var isServiceSource = source.indexOf("service") !== -1;
                var sourceNameArray = source.split(".");
                var componentNameArray = sourceNameArray.slice(0, (isServiceSource ? sourceNameArray.indexOf("service") : sourceNameArray.indexOf("component")));
                var componentName = componentNameArray.join("-");
                var isAppComponent = componentName === "app";
                var fileSource = (isAppComponent ? "" : componentName + "/") + source.replace(componentName.replace(/-/, "."), componentName);

                var fileContent = prepareContent(sources[source], baseUrl) 
                        .replace(new RegExp("'(app\/)?" + componentName + "\/", "g"), "'./")
                        .replace(/if\s*\(\!\/localhost\/\.test\(document\.location\.host\)\)\s{\n.*\n}\n/, "");

                demoParameters["files"]["src/app/" + fileSource] = {
                    content: fileContent
                };


                if(source.indexOf(".css") !== -1) {
                    demoParameters["files"]["src/app/" + fileSource] = {
                         content: prepareStyles(sources[source], baseUrl, currentTheme)
                    };
                }
            }

        } else {
            var configName = "config.js";
            demoParameters.files["package.json"] = {
                content: {
                    dependencies: parseConfigJS(sources[configName]),
                    name: demoTitle,
                    description: demoDescr
                }
            };

            for(var sourceName in sources) {
                if (sourceName.endsWith(".tsx") || sourceName.endsWith(".ts") || (sourceName.endsWith(".js") && sourceName !== configName)) {
                    var source = sources[sourceName];
                    if (sourceName === "index.js") {
                        source = source
                            .replace(/import React/, "import './styles.css';\n\rimport React")
                            .replace(/(ReactDOM\.render\([\s\S]*\));/, "import themes from 'devextreme/ui/themes';\n\
themes.initialized(() => $1);");
                    };

                    demoParameters.files[sourceName] = {
                        content: prepareContent(source, baseUrl)
                    }
                }

                if(sourceName.endsWith(".vue")) {
                    demoParameters.files[sourceName] = {
                        content: prepareContent(sources[sourceName], baseUrl)
                    }
                    if (sourceName === "App.vue" && /<\s?script.+setup/.test(sources[sourceName])) {
                        demoParameters.files["package.json"].content.dependencies["typescript"] = "3.9.10";
                    }
                }
            }

            demoParameters.files["styles.css"] = {
                content: prepareStyles(sources["styles.css"], baseUrl, currentTheme)
            };
        } 

        demoParameters.files[(approach === "Angular" ? "src/" : "") + "index.html"] = {
            content: prepareIndex(sources["index.html"]
                .replace(/.+styles\.css.+\n/, "")
                .replace(/<script[^>]*>\s+.*\s+<\/script>\s+/g, "")
                .replace(/<script[^>]*><\/script>\s+/g, ""))
        };

        demoParameters.files["sandbox.config.json"] = {
            content: '{\n  "infiniteLoopProtection": false\n}'
        };

        if(approach === "Vue" || approach === "React") demoParameters.files[".babelrc"] = {
            content: '{\n  "plugins": ["transform-object-rest-spread"]\n}'
        };

        $codeSandBoxForm.find("input[name=parameters]").val(LZString.compressToBase64(JSON.stringify(demoParameters)));
        $codeSandBoxForm.submit();

        anlyticsEvent("Copy to CodeSandBox", Site.currentDemo.url);
    };

    this.applyCode = function() {
        Site.simulator.refreshDemoFrame();
        anlyticsEvent("Run Code", Site.currentDemo.url);
    };

    this.resetCode = function () {
        var sources = this.defaultDemoSources;
        for(var fileName in sources) {
            var cmName = fileName.replace(/\./g, "-"),
                cmInstance = this.items[cmName];

            if(cmName !== "index-html" && cmName !== "app-component-ts") {
                while(!cmInstance.isClean(this.itemsUndo[cmName]) && cmInstance.historySize().undo > 0) {
                    cmInstance.undo()
                }
            }
            else 
                cmInstance.setValue(sources[fileName]);
            
            Site.simulator.refreshDemoFrame();
            this.prepareTexts();
            anlyticsEvent("Reset Code", Site.currentDemo.url);
        }
    };

};;
var Site = Site || {};

Site.Simulator = function () {
    var that = this;

    var themes = null,
        viz = null,
        devices = null,
        currentTheme = null,
        currentThemeCssClass = '',
        currentSimulator = null,
        loadingTimeout = null,
        loadPanel = null,
        $loadPanelContainer = null,
        resizeObserver = null;

    window.addEventListener("CodeTabsSwitcherEvent", function (e) {
        Site.currentDemo.frontToggleChecked = e.checked;
        that.refreshDemoFrame();
    });

    this.showLoading = function(simulator, approach) {
        if(!currentSimulator)
            currentSimulator = simulator;

        var loadPanelMessage = '',
            loadPanelWidth = (currentSimulator == 'TabletPortrait' ? 400 : (this.hasWebOrTablet() ? 520 : 300));

        if(approach == 'Angular' || approach == 'Vue' || approach == 'React') {
            loadPanelMessage = 'To give you the ability to edit code on the fly, the demo uses SystemJS' +
                (approach == 'Angular' ? ' and transpiles TypeScript code inside a browser' : '' ) +
                '. For this reason, launching the demo takes some time. We strongly recommend that you do not use this approach in real projects.'
        }

        clearTimeout(loadingTimeout);

        $loadPanelContainer = $('.simulators .load-panel')
            .html('')
            .show();

        loadPanel = new DevExpress.ui.dxLoadPanel($loadPanelContainer.get(0), {
            visible: true,
            showPane: false,
            shading: false,
            message: loadPanelMessage,
            width: loadPanelWidth,
            height: 'auto',
            container: $loadPanelContainer,
            position: {
                of: $loadPanelContainer
            }
        });
    };

    this.hideLoading = function () {
        loadPanel.dispose();
        $loadPanelContainer.hide();
    };

    this.hideLoadingWithTimeout = function() {
        var hideLoading = this.hideLoading;
        loadingTimeout = setTimeout(function() {
             hideLoading();
        }, 200);
    };

    this.setVizThemesAndDevices = function(vizValue, themesValue, devicesValue) {
        viz = vizValue;
        themes = themesValue;
        devices = devicesValue;
    };

    this.updateSimulatorAndTheme = function(simulatorValue, themeName, themeCssClass) {
        currentSimulator = simulatorValue;
        currentTheme = themeName;
        currentThemeCssClass = themeCssClass;
        updateSimulatorCssClass();
    };

    this.updateAdaptabilityOrientation = function(simulatorValue) {
        currentSimulator = simulatorValue;
        updateSimulatorCssClass();
    };

    function updateSimulatorCssClass() {
        var simulator = document.querySelector('.simulators');
        var newClasses = ['simulators', currentSimulator, currentThemeCssClass];

        if (simulator.classList.contains('simulators-no-border')) {
            newClasses.push('simulators-no-border');
        }

        if (simulator.classList.contains('templates')) {
            newClasses.push('templates');
        }

        simulator.classList = newClasses.join(' ');
    }

    function mouseEventsProxy() {
        if($('#demoFrame').length === 0) return;
        try {
            $('#demoFrame')[0].contentWindow.$('body').trigger('dxpointerup');
        } catch {}
    }

    this.getCurrentTheme = function() {
        return currentTheme;
    };

    this.getThemes = function() {
        return themes;
    };

    this.getCurrentSimulator = function() {
        return currentSimulator;
    };

    this.hasWebOrTablet = function() {
        return (currentSimulator == 'Web')
            || (currentSimulator.indexOf('Tablet') >= 0);
    };

    this.refreshDemoFrame = function() {
        var iframe = document.createElement('iframe'),
            iframeContainer = $('.demo-frame-container');
        iframe.setAttribute('name', 'demo-frame');
        iframe.setAttribute('id', 'demoFrame');
        iframe.setAttribute('class', 'demo-frame');
        iframe.setAttribute('allowfullscreen', '');

        var demoTemplateUrl = 'build/demo-template.html?version=' + Site.appVersion;

        iframe.setAttribute('src', Site.urlHelper.getAppPath() + demoTemplateUrl);
        iframeContainer.empty();
        iframeContainer.append(iframe);
        this.showLoading(currentSimulator, Site.currentDemo.approach);

        $(window)
            .off('mouseup', mouseEventsProxy)
            .on('mouseup', mouseEventsProxy);

        this.subscribeContainerSize();
    };

    this.refreshViz = function() {
        if(viz) {
            viz.currentTheme('generic.' + currentTheme.replace('.compact', ''));
            viz.refreshTheme();
        }
    };

    this.addCurrentSimulatorClassToFrameBody = function() {
        try {
            var frameBody = $('#demoFrame').contents().find('body');
            frameBody.addClass(currentSimulator);
            //change mechanism to event propagation + try to reduce number of subscriptions
            frameBody.bind('click', Site.themesMenu.closeDropDown);
        } catch(e) {
            console.log(e);
        }
    };

    this.updateThemeInFrame = function() {
        if(currentSimulator == 'Mobile') {
            devices.current('iPhone');
        }

        const themeName = Site.isMaterialTheme(currentTheme) || Site.isFluentTheme(currentTheme) ? currentTheme : 'generic.' + currentTheme;
        themes.current(themeName);
        this.addCurrentSimulatorClassToFrameBody();
        if(this.hasWebOrTablet()) {
            this.refreshViz();
        } else {
            devices.forceSimulator();
        }
    };

    this.isFixedSizes = function() {
        return currentSimulator !== 'Web';
    };

    this.setFrameHeight = function(height) {
        var minHeight = 440;

        var extraHeight = 0;
        if (Site.currentDemo.type != 'Rwa') {
            extraHeight = 40;
        }

        // we need Math.floor for hdpi and scale
        var newHeight = ((height >= minHeight) ? Math.floor(height) : minHeight) + extraHeight;
        $('#demoFrame').height(newHeight);

        if(this.isFixedSizes()) {
            const container = $('.demo-frame-container');
            const containerHeight = container.height();
            container.css('overflowY', containerHeight < newHeight ? 'auto': 'hidden');
        }

        DevExpress.utils.requestAnimationFrame(function () {
            Site.widgetsMenu.updateScrollView();
        });
    };

    this.sendWidthToFrame = function(width) {
        const frame = document.getElementById('demoFrame');
        if(frame === null) return;

        frame
            .contentWindow
            .postMessage({
                type: 'container-width',
                width: width
            }, '*')
    };

    this.listenContainerSize = function() {
        resizeObserver = new ResizeObserver(entries => {
            for(let entry of entries) {
                if(entry.contentRect && entry.contentRect.width) {
                    this.sendWidthToFrame(entry.contentRect.width);
                }
            }
        });
    };

    this.subscribeContainerSize = function() {
        const node = document.getElementsByClassName('demo-frame-container').item(0);
        if(resizeObserver === null || node === null) return;
        resizeObserver.unobserve(node);
        resizeObserver.observe(node);
    }

    this.receiveMessage = function(event) {
        if(event.data && event.data.type && event.data.type === 'frame-height') {
            this.setFrameHeight(event.data.height);
        }
    }.bind(this);

    this.listenFrameForHeight = function() {
        window.removeEventListener("message", this.receiveMessage, false);
        window.addEventListener("message", this.receiveMessage, false);
    };

    this.listenFrameForHeight();
    this.listenContainerSize();
};;
var Site = Site || {};

Site.initializeFixedCodeButtonsPanel = function () {
    var scrollPosition = 0,
        isCodeButtonsFixed;

    document.addEventListener("scroll", function (e) {
        Site.processScroll();
    });

    var unfixCodeButtons = function(buttonsElement) {
        buttonsElement.className = "buttons";
        buttonsElement.removeAttribute("style");
    };

    window.addEventListener("resize", function () {
        var buttonsElement = document.getElementById("code-buttons");
        if (buttonsElement) {
            unfixCodeButtons(buttonsElement);
        }
    });

    var getCodeButtonsTop = function () {
        const headerHeight = document.getElementsByClassName("header")[0].offsetHeight;
        const toolsHeader = document.getElementsByClassName("tools-panel")[0].offsetHeight;

        const surveyContainer = document.getElementsByClassName("survey")[0];
        let surveyHeight = 0;
        if (surveyContainer) {
            surveyHeight = surveyContainer.offsetHeight;
        }

        return headerHeight + toolsHeader + surveyHeight;
    };

    Site.processScroll = function () {
        var buttonsElement = document.getElementById("code-buttons"),
            buttonsElementContainer = document.getElementsByClassName("buttons-container")[0];

        if (buttonsElement) {
            var currentScrollTop = (window.pageYOffset || document.documentElement.scrollTop),
                codeBlockHeight = document.getElementsByClassName("source-block active")[0].offsetHeight;

            // Check if the code block's height is greater than 100 pixels
            const isCodeBlockTallEnough = codeBlockHeight > 100;

            // Calculate the current position of the buttons block relative to the viewport top
            const currentButtonsPositionFromTop = currentScrollTop + getCodeButtonsTop();

            // Check whether the buttons block has passed its initial sticky point
            const hasButtonsPassedStickyPoint = currentButtonsPositionFromTop > buttonsElementContainer.offsetTop;

            // Check the current position has passed its bottom buttons block
            const isScrollInCodeBlock = buttonsElementContainer.offsetTop < currentScrollTop;

            // Final condition: Determine if the position of the buttons block should be "sticky"
            const isCodeButtonsFixed = isCodeBlockTallEnough && hasButtonsPassedStickyPoint && isScrollInCodeBlock;


            if (window.innerWidth > 1024 && isCodeButtonsFixed) {
                buttonsElement.setAttribute("class", "buttons fixed");
                buttonsElement.setAttribute("style", "top:" + getCodeButtonsTop() + "px; width: " + buttonsElementContainer.offsetWidth + "px;");
            }

            if (!isCodeButtonsFixed) {
                unfixCodeButtons(buttonsElement);
            }

            scrollPosition = currentScrollTop;
        }
    };
};;
var Site = Site || {};

Site.Feedback = function () {
    var _serviceUrl = "https://js.devexpress.com/Feedback/Save/";

    var _sendData = (data) => {
        data.title = document.title;
        data.document = window.location.pathname;
        data.host = window.location.host;

        $.post(_serviceUrl, data);
    }

    var _getRootContainer = () => document.getElementById('feedback');

    var _getVoteRate = () => _getRootContainer().querySelector('.feedback-vote-item.active')
        .dataset.value === 'approve' ? '+1' : '-1';

    var _sendFeedback = () => {
        var textarea = _getRootContainer().querySelector('textarea');
        if (textarea.value === '') {
            return;
        }

        _sendData({
            value: _getVoteRate(),
            message: textarea.value,
        });

        setTimeout(() => {
            _setDefaultState();
        }, 5000);

        _getRootContainer().classList.toggle('thanks', true);
        textarea.value = '';
    }

    var _setDefaultState = () => {
        var rootNode = _getRootContainer();
        rootNode.classList.toggle('message', false);
        rootNode.classList.toggle('rate', false);
        rootNode.classList.toggle('thanks', false);

        var votesNode = rootNode.querySelector('.feedback-votes')
        votesNode.classList.toggle('active', false);
        votesNode.classList.toggle('approve', false);
        votesNode.classList.toggle('disagree', false);

        _getRootContainer().querySelector('.feedback-vote-item.active').classList.toggle('active', false);

        _getRootContainer().querySelector('textarea').value = '';
    }

    var _setVotesClass = (voteType) => {
        var votesNode = _getRootContainer().querySelector('.feedback-votes');

        _getRootContainer().classList.toggle('rate', true);
        votesNode.classList.toggle('active', true);
        votesNode.classList.toggle(voteType, true);
    }

    var _sendRate = (value) => {
        _sendData({
            "value": value
        });
    };

    var _voteClick = (e) => {
        e.currentTarget.classList.toggle('active', true);

        var voteType = e.currentTarget.dataset.value;

        _sendRate(_getVoteRate());
        _setVotesClass(voteType)

        setTimeout(() => {
            _getRootContainer().classList.toggle('message', true);
        }, 1500);
    };

    this.init = function () {
        [..._getRootContainer().querySelectorAll('.feedback-vote-item')].forEach((voteButton) => {
            voteButton.onclick = _voteClick;
        });

        _getRootContainer().querySelector('.feedback-close svg').onclick = _setDefaultState;
        _getRootContainer().querySelector('.feedback-content button').onclick = _sendFeedback;
    };
}
;
var Site = Site || {};

Site.Description = function() {

    var DESCRIPTION_HEIGHT = 145;

    function formatCodeSnippets() {
        $("pre code").each(function() {
            var $this = $(this),
                $code = $this.html().trim(),
                mode = "javascript";

            if($code.indexOf("<") === 0)
                mode = "htmlmixed";

            $this.empty();

            CodeMirror(this, {
                value: $code,
                scrollbarStyle: "null",
                mode: mode,
                lineNumbers: false,
                readOnly: "nocursor"
            })
        });
    }

    const toggleSvg = () => {
        const svgExpand = document.querySelector('.top-content__expand__svg-visible');
        const svgHide = document.querySelector('.top-content__expand__svg-hide');

        svgExpand.classList.remove('top-content__expand__svg-visible');
        svgExpand.classList.add('top-content__expand__svg-hide');

        svgHide.classList.remove('top-content__expand__svg-hide');
        svgHide.classList.add('top-content__expand__svg-visible');
    }

    const toggleSpan = () => {
        const svgExpand = document.querySelector('.top-content__expand__span-visible');
        const svgHide = document.querySelector('.top-content__expand__span-hide');

        svgExpand.classList.remove('top-content__expand__span-visible');
        svgExpand.classList.add('top-content__expand__span-hide');

        svgHide.classList.remove('top-content__expand__span-hide');
        svgHide.classList.add('top-content__expand__span-visible');
    }

    function collapseDescription(e) {
        var description = document.querySelector('.description');
        var isOpenDescription = description.classList.contains('description-expand');

        description.style['height'] = isOpenDescription ? '0' : description.scrollHeight + 'px';
        toggleSvg();
        toggleSpan();

        description.classList.toggle('description-expand', !isOpenDescription);

        anlyticsEvent("Open Description", isOpenDescription ? "open" : "close");
    }

    this.init = function() {
        formatCodeSnippets();

        var expandButton = document.querySelector('.top-content__expand');
        expandButton.addEventListener('click', collapseDescription);
    };
};
;
var Site = Site || {};

Site.Breadcrumbs = function () {
    this.recalculate = function () {
        var breadcrumbsContainer = $(".breadcrumbs"),
            timeoutId = null,
            DELAY = 400;

        $(".hint", breadcrumbsContainer).remove();
        $(".crumb.hidden", breadcrumbsContainer).removeClass("hidden");

        var breadcrumbsWrapper = $(".breadcrumbs-wrapper"),
            breadcrumbsDropDownWrapper = $(".breadcrumbs-dropdown"),
            hintItem = $("<li class='hint'><a>...</a></li>");

        var showBreadcrumbsDropDown = function () {
            hintItem.addClass("active");
            breadcrumbsDropDownWrapper.addClass("active");
        };

        var hideBreadcrumbsDropDown = function () {
            hintItem.removeClass("active");
            breadcrumbsDropDownWrapper.removeClass("active");
        };

        hintItem.hover(function () {
            clearTimeout(timeoutId);
            showBreadcrumbsDropDown();
        }, function () {
            clearTimeout(timeoutId);
            timeoutId = setTimeout(hideBreadcrumbsDropDown, DELAY);
        })

        breadcrumbsDropDownWrapper.hover(function () {
            clearTimeout(timeoutId);
            showBreadcrumbsDropDown();
        }, function () {
            clearTimeout(timeoutId);
            timeoutId = setTimeout(hideBreadcrumbsDropDown, DELAY);
        });

        var containerWidth = breadcrumbsContainer.width(),
            wrapperWidth = breadcrumbsWrapper.width(),
            deletedItemsWidth = 0;

        if (containerWidth < wrapperWidth) {
            $("li.crumb:first", breadcrumbsWrapper).after(hintItem);
            wrapperWidth = wrapperWidth + 40;//width of ellipsis

            var index = 1;

            while (containerWidth < wrapperWidth - deletedItemsWidth) {
                var deletedItem = $("li.crumb", breadcrumbsWrapper).eq(index++);
                deletedItemsWidth += deletedItem.width();
                deletedItem.addClass("hidden");
            }
        }

        $(".crumb").addClass("no-hide");

    };

    const resizeObserver = new ResizeObserver(this.recalculate);
    resizeObserver.observe(document.getElementsByClassName('breadcrumbs')[0]);
};
;
var Site = Site || {};

Site.CodeTabs = function () {
    this.rootId = '';
    this.items = [];
    this.secondaryItems = [];
    this.backendItems = [];
    this.switcherEvent = null;
    this.frontSwitch = null;
    this.backendSwitch = null;
    this.activeTabIndex = 0;

    var _getRootElement = () => document.querySelector('#' + this.rootId);

    var _getTabsContainer = () => _getRootElement().querySelector('.tbs-children');

    var _getTabsChildrenContainer = () => _getRootElement().querySelector('.tbs-children-container');

    var _getTabs = () => [..._getTabsChildrenContainer().children];

    var _getActiveTab = () => _getTabs().filter((tab) => tab.classList.contains('active'))[0];

    var _setScrollLeft = (scrollLeft) => {
        _getTabsContainer().scrollBy({
            left: scrollLeft
        });
    }

    var _selectCodeTab = (tabId) => {
        var fileId = tabId.replace(/\./g, "-");

        var activeSourceBlock = document.querySelector('.source-block.active');
        if (activeSourceBlock) {
            activeSourceBlock.classList.remove('active');

            var selectedSourceBlock = document.querySelector('.source-block#' + fileId);

            selectedSourceBlock.classList.toggle('active', true);

            var codeMirror = selectedSourceBlock.querySelector('.CodeMirror');
            if (codeMirror && codeMirror.CodeMirror) {
                codeMirror.CodeMirror.refresh();
            }
        }
    }

    var _setActiveTab = (activeTabIndex) => {
        activeTabIndex = activeTabIndex - 0;
        this.activeTabIndex = activeTabIndex;

        _getTabs().forEach((item, itemIndex) => {
            var isActiveTab = activeTabIndex === itemIndex;
            item.classList.toggle('active', isActiveTab);
        });
    }

    var _scrollToTab = (tabElement) => {
        var containerElement = _getTabsContainer();

        var containerClientSize = containerElement.clientWidth;
        var containerScrollOffset = containerElement.scrollLeft;
        var targetElementRect = tabElement.getBoundingClientRect();
        var relativeElementOffsetLeft = targetElementRect.left - tabElement.parentElement.getBoundingClientRect().left;
        var relativeStartOffset = containerScrollOffset - relativeElementOffsetLeft;
        var relativeEndOffset = containerScrollOffset - relativeElementOffsetLeft - targetElementRect.width + containerClientSize;

        if (relativeStartOffset <= 0 && relativeEndOffset >= 0) {
            containerElement.scrollTo({ left: containerScrollOffset });
            return;
        }

        var scrollLeft = containerScrollOffset -
            (Math.abs(relativeStartOffset) > Math.abs(relativeEndOffset)
                ? relativeEndOffset
                : relativeStartOffset);

        containerElement.scrollTo({ left: scrollLeft });
    }

    var _tabClick = (e) => {
        var target = e.currentTarget;

        _setActiveTab(target.dataset.index);
        _scrollToTab(target);
        _selectCodeTab(target.dataset.id);
    }


    var _createTabs = (tabs) => {
        var tabsContainer = _getTabsChildrenContainer();
        tabsContainer.innerHTML = '';

        tabs.forEach((tabItem, tabIndex) => {
            var tabElementContainer = document.createElement('div');
            tabElementContainer.classList.add('tbs-item-container');

            var tabElement = document.createElement('button');

            tabElement.classList.add('tbs-item');

            tabElementContainer.dataset.index = tabIndex;
            tabElementContainer.dataset.id = tabItem;
            tabElement.innerText = tabItem;

            tabElementContainer.addEventListener('click', _tabClick);

            tabElementContainer.appendChild(tabElement);
            tabsContainer.appendChild(tabElementContainer);

            if (tabIndex === this.activeTabIndex) {
                tabElement.click();
            }
        });

        _toogleDisplayArrow();
    }

    var _arrowClick = (position) => {
        if (position === 'prev') {
            _setScrollLeft(-100);
        } else if (position === 'next') {
            _setScrollLeft(100);
        }
    }

    var _initArrow = () => {
        _getRootElement().querySelector('button.tbs-arrow-prev').onclick = () => _arrowClick('prev');
        _getRootElement().querySelector('button.tbs-arrow-next').onclick = () => _arrowClick('next');

        _toogleDisplayArrow();
    }

    var _toogleDisplayArrow = () => {
        const HAS_ARROW = 'has-arrow';

        var rootElement = _getRootElement();
        var hasArrowClass = rootElement.classList.contains(HAS_ARROW);


        var frontSwitchWidth = this.frontSwitch && this.frontSwitch.offsetWidth;
        var backendSwitchWidth = this.backendSwitch.offsetWidth;

        var tabsContainerWidth = rootElement.offsetWidth - frontSwitchWidth - backendSwitchWidth;

        var tabsWidth = _getTabs().reduce((sum, tab) => sum += tab.offsetWidth, 0);

        if (tabsContainerWidth < tabsWidth && !hasArrowClass) {
            rootElement.classList.toggle(HAS_ARROW, true);
        } else if (tabsContainerWidth >= tabsWidth && hasArrowClass) {
            rootElement.classList.toggle(HAS_ARROW, false);

            _getTabsContainer().scrollTo({
                top: 0,
                left: 0
            });
        }
    }

    var _createToogleBackendApi = () => {
        _getRootElement().querySelector('.switch-toogle input').onclick = _toogleBackend;
    }

    var _toogleBackend = () => {
        const HAS_BACKEND = 'has-backend';
        const BACKEND_TAB = 'backend-tab';

        var rootElement = _getRootElement();
        if (!rootElement.classList.contains(HAS_BACKEND)) {
            return;
        }

        var tabsContainer = _getTabsContainer();
        var isBackend = tabsContainer.classList.contains(BACKEND_TAB);

        if (isBackend) {
            tabsContainer.classList.toggle(BACKEND_TAB, false);
            _createTabs(this.items);
        } else {
            tabsContainer.classList.toggle(BACKEND_TAB, true);
            _createTabs(this.backendItems);
        }
    }

    var resizeHandler = () => {
        if (!_getRootElement()) {
            return;
        }

        _toogleDisplayArrow();
        _scrollToTab(_getActiveTab());
    }

    var _initFrontSwitch = () => {
        this.frontSwitch = _getRootElement().querySelector('.front-toggle-container');
        this.switcherEvent = new Event("CodeTabsSwitcherEvent");

        var inputElem = document.getElementById('front-toggle');

        var handleValueChange = () => {
            if (inputElem.checked) {
                _createTabs(this.secondaryItems);
                this.switcherEvent.checked = true;
            } else {
                _createTabs(this.items);
                this.switcherEvent.checked = false;
            }

            window.dispatchEvent(this.switcherEvent);
        };

        inputElem.addEventListener('change', handleValueChange);
    }

    this.init = (id, items, secondaryItems, backendItems) => {
        this.rootId = id;
        if (!_getRootElement()) {
            throw new Error('Not get instance code tabs');
        }
        this.backendSwitch = document.getElementById('backend-switch');

        this.items = items;
        this.secondaryItems = secondaryItems;
        this.backendItems = backendItems;

        if (this.secondaryItems.length > 0) {
            _initFrontSwitch();
        }

        _initArrow();

        _createTabs(this.items);
        _createToogleBackendApi();

        const resizeObserver = new ResizeObserver(resizeHandler);
        resizeObserver.observe(_getRootElement());
    }
};

Site.codeTabs = Site.codeTabs || new Site.CodeTabs();
;
var Site = Site || {};

Site.MenuSearch = function() {
    var model = [],
        $menuContainer = $(".widgets-menu"),
        $menuList = $(".widgets-menu-list"),
        $menu = $(".widgets-menu-list > ul").first(),
        $equivalentsHeader = $(".equivalents-header"),
        menuItemSelector = ".link-text",
        equivalentsClass = "equivalents";

    function cloneItemElement(item) {
        var element = item.element.clone(true);
        element.find("> ul").remove();
        element.find(menuItemSelector).eq(0).html(item.text);
        if(!element.hasClass("case"))
            element.removeClass("active");
        element.removeClass("hidden");
        return element;
    }

    function compressText(text) {
        return text.replace(/\s|-/g, "").toLowerCase();
    }

    function generateRegex(text, canIncludeDx) {
        var result = "",
            parts = text.split(/\s|-/);

        for(var i = 0; i < parts.length; i++) {
            var word = parts[i],
                wordPrefix = i > 0 ? "|" : "";
            if(canIncludeDx && word.indexOf("dx") === 0) {
                if(word.length < 3) continue;
                word = word.substring(2);
                wordPrefix += "^"
            }
            result += wordPrefix + word[0];
            for(var j = 1; j < word.length; j++) {
                result += "[\\s|-]*" + word[j];
            }
        }
        return new RegExp("(" + result + ")", "gi");
    }

    function isMatch(text, filterValue) {
        var parts = filterValue.split(/[\s,-]+/),
            compressedText = compressText(text);
        for(var i = 0; i < parts.length; i++) {
            if(compressedText.toLowerCase().indexOf(parts[i]) < 0) {
                return false;
            }
        }
        return true;
    }

    function renderMainTreeItems(items, substitutionRegex, noDxRegex) {
        var renderParent = false;
        for(var i = 0; i < items.length; i++) {
            var $itemElement = $(items[i].element),
                linkText = $itemElement.find(menuItemSelector).eq(0),
                needRender = items[i].match;
            if(items[i].items) {
                if(renderMainTreeItems(items[i].items, substitutionRegex, noDxRegex)) {
                    needRender = true;
                }
            }
            if(needRender) {
                var regex = noDxRegex && items[i].canIncludeDx ? noDxRegex : substitutionRegex;
                linkText.html(items[i].text.replace(regex, "<span class=\"search\">$1<\/span>"));
                renderParent = true;
            }
            $itemElement.toggleClass("hidden", !needRender).toggleClass("opened", needRender);
        }
        return renderParent;
    }

    function renderEquivalentItems(items, equivalentGroup) {
        if(!items)
            return;
        var $list;
        for(var i = 0; i < items.length; i++) {
            var childList = renderEquivalentItems(items[i].items, equivalentGroup);
            if(items[i].equivalentGroup !== equivalentGroup && !childList) {
                continue;
            }
            var itemElement = cloneItemElement(items[i]);
            if(childList) {
                itemElement.append(childList);
            }
            $list = $list || $("<ul>");
            $list.append(itemElement)
        }
        return $list;
    }

    function getItemEquivalentGroup(item, equivalentsText, filterValue) {
        if(isMatch(equivalentsText, filterValue)) return item.text;
        return null;
    }

    function clearItemFilterState(item) {
        item.element.removeClass("hidden").removeClass("opened");
        item.element.find(menuItemSelector).eq(0).html(item.text);
        item.matchRegex = null;
        item.equivalentGroup = null;
        if(item.items) {
            for(var i = 0; i < item.items.length; i++) {
                clearItemFilterState(item.items[i]);
            }
        }
    }

    function clearEquivalents() {
        var activeHref = $menuList.find(".equivalents li.case a.active").attr("href");
        $menuList.find("." + equivalentsClass).remove();
        $equivalentsHeader.addClass("hidden");
        if(activeHref) {
            $menuList.find(".case a[href='" + activeHref + "']").addClass("active");
        }
    }

    function buildItems($element, parent) {
        var items = [];
        $element.find("> ul > li").each(function() {
            var $childElement = $(this),
                linkTextElement = $childElement.find(menuItemSelector).eq(0),
                equivalents = compressText(linkTextElement.attr("data-equivalents")),
                item = {},
                children;

            if(equivalents.indexOf("dx") === 0 || equivalents.indexOf(",dx") >= 0) {
                item.canIncludeDx = true;
            }

            if(parent && parent.equivalents) {
                equivalents += "," + parent.equivalents;
            }

            item.text = linkTextElement.text();
            item.element = $childElement;
            item.parent = parent;
            item.equivalents = equivalents;
            children = buildItems($childElement, item);
            if(children.length) {
                item.items = children;
            }
            items.push(item);
        })
        return items;
    }

    function render(substitutionRegex, equivalentGroups, noDxRegex) {
        var isRendered = renderMainTreeItems(model, substitutionRegex, noDxRegex);
        $menu.toggleClass("hidden", !isRendered);
        clearEquivalents();
        if(equivalentGroups.length) {
            $equivalentsHeader.toggleClass("second", isRendered)
            $equivalentsHeader.removeClass("hidden");
            isRendered = true;
            for(var i = 0; i < equivalentGroups.length; i++) {
                var $list = renderEquivalentItems(model, equivalentGroups[i]).addClass(equivalentsClass),
                    $equivalentHeader = $("<div>").addClass(equivalentsClass).text(equivalentGroups[i]);
                $menuList.append($equivalentHeader);
                $menuList.append($list);
            }
            var $equivalentElements = $("." + equivalentsClass);
            $equivalentElements.find(".category, .api-section").addClass("opened");
            $equivalentElements.find(".Updated, .New").removeClass("Updated New");
        }
        $menuContainer.toggleClass("filter-empty", !isRendered);
    }

    function getEquivalentsText(item, parentText) {
        var result = item.text;
        if(item.equivalents) result += "," + item.equivalents;
        if(parentText) result += "," + parentText;
        return result;
    }

    function filterItems(items, filterValue, equivalentGroups, isParentMatch, parentEquivalentGroup, parentText) {
        for(var i = 0; i < items.length; i++) {
            var searchAs = items[i].canIncludeDx ? "dx" + items[i].text : items[i].text,
                itemText = !parentText ? searchAs : parentText + "," + searchAs,
                equivalentsText = getEquivalentsText(items[i], parentText),
                match = isParentMatch || isMatch(itemText, filterValue),
                equivalentGroup = !match && (parentEquivalentGroup || getItemEquivalentGroup(items[i], equivalentsText, filterValue));
            if(!items[i].items) {
                items[i].match = match;
                items[i].equivalentGroup = equivalentGroup;
                if(equivalentGroup && equivalentGroups.indexOf(equivalentGroup) < 0) {
                    equivalentGroups.push(equivalentGroup);
                }
            } else {
                filterItems(items[i].items, filterValue, equivalentGroups, match, equivalentGroup, itemText);
            }
        }
    }

    this.buildModel = function() {
        model = buildItems($menuList);
    }

    this.filter = function(value) {
        var filterValue = value.replace(",", " ").trim().toLowerCase(),
            substitutionRegex = generateRegex(filterValue),
            equivalentGroups = [],
            noDxRegex;
        if(filterValue.match(/^dx|\sdx/)) {
            noDxRegex = generateRegex(filterValue, true);
        }
        filterItems(model, filterValue, equivalentGroups);
        render(substitutionRegex, equivalentGroups, noDxRegex);
    }

    this.resetFilter = function() {
        for(var i = 0; i < model.length; i++) {
            clearItemFilterState(model[i]);
        }
        clearEquivalents();
        filterValue = null;
        $menuContainer.removeClass("filter-empty");
        $menu.removeClass("hidden");
    };
};;
var Site = Site || {};

Site.WidgetsMenu = function () {
    var $widgetsMenu,
        $searchBox,
        menuSearch,
        scrollViewInstance;

    var updateActive = function () {
        $(".case:not(.hidden) a.active").parents(".api-section, .category").addClass("active opened");
        $(".case.hidden a.active").parents(".api-section, .category").removeClass("active");
    };

    var clickInit = function () {
        var clickHandler = function (e) {
            $(this).parent().toggleClass("opened");
            e.stopPropagation();
            scrollViewInstance.update();
        };

        $(".group-name").on("click", clickHandler);
        $(".first-level").on("click", clickHandler);
        $(".case a").on("click", function(e) {
            if(e.ctrlKey) {
                e.stopPropagation();
            } else {
                $(".widgets-menu .active").removeClass("active");
                $(this).addClass("active");
                updateActive();
                scrollViewInstance.update();
            }
        });
    };

    var scrollToActive = function () {
        var caseLink = $(".case a.active");
        if (caseLink.length > 0) {
            scrollViewInstance.scrollToElement(caseLink);
        }
    };

    var filterTimeout;

    var filterMenu = function(searchValue) {
        if(filterTimeout) {
            window.clearTimeout(filterTimeout);
        }
        filterTimeout = setTimeout(function () {
            if (searchValue.length >= 3) {
                analyticsSearch(searchValue);
                menuSearch.filter(searchValue);
                updateActive();
            } else {
                menuSearch.resetFilter();
                updateActive();
            }
            scrollViewInstance.update();
        }, 200);
    };

    this.startQueryFilter = function() {
        var queryString = document.location.search,
            startSearchValue = "";

        var regex = new RegExp("[?&]text(=([^&#]*)|&|#|$)"),
            results = regex.exec(queryString);

        if(results && results[2]) {
            startSearchValue = results[2].replace(/[\+]/g, " ");
            $searchBox.option("value", startSearchValue);
            filterMenu(startSearchValue);
        }
    };

    var initSearch = function () {

        var textBoxOptions = {
            placeholder: "Search by name...",
            valueChangeEvent: "keyup",
            showClearButton: true,
            onValueChanged: function(e) {
                filterMenu(e.value);
            }
        };

        $searchBox = new DevExpress.ui.dxTextBox(document.documentElement.querySelector(".search .left-menu-filter"), textBoxOptions);
    };

    this.refresh = function() {
        $(".widgets-menu li").removeClass("active");
        updateActive();
        scrollToActive();
    };

    var isBottomReached = function() {
        var padding,
            $window = $(window),
            BODY_MIN_WIDTH = 1025,
            $document = $(document),
            $container = $(".left-menu"),
            footerHeight = $("footer").outerHeight();

        if(window.innerWidth <= BODY_MIN_WIDTH) {
            padding = footerHeight;
        } else {
            padding = footerHeight + window.scrollY + $window.height() - $document.height();
        }
        if(padding > 0) {
            DevExpress.utils.requestAnimationFrame(function() {
                $container.css("padding-bottom", padding + "px");
                scrollViewInstance.update();
            });
        } else {
            DevExpress.utils.requestAnimationFrame(function() {
                $container.css("padding-bottom", "");
                scrollViewInstance.update();
            });
        }
    };

    var initScrollEvents = function() {
        var scrollTimeout = null;
        $(window).on("scroll resize", function() {
            clearTimeout(scrollTimeout);
            scrollTimeout = setTimeout(function() {
                isBottomReached();
            }, 100);
        });

        isBottomReached();
    };
    
    this.init = function () {
        var $container = $(".left-menu");
        $widgetsMenu = $(".widgets-menu");
        scrollViewInstance = new DevExpress.ui.dxScrollView($widgetsMenu.get(0), {
            direction: "vertical"
        });
        scrollViewInstance._strategy._validateWheel = function() { return true; };

        menuSearch = new Site.MenuSearch();
        menuSearch.buildModel();

        updateActive();
        clickInit();
        scrollToActive();
        initSearch();


        if ($(".category.opened", $container).length === 0) {
            $(".category:first-child", $container).addClass("opened");
        }

        $(initScrollEvents);
    };

    this.update = function(theme, url) {
        $.each($(".widgets-menu .case"), function (_, item) {
            var $item = $(item);
            var link = $("a", $item);

            var availableThemes = $item.attr("data-available-themes");
            var linkTheme = theme;
            if(availableThemes.indexOf(theme) < 0) {
                linkTheme = availableThemes.split(",")[0];
            }

            const component = $item.attr("data-demo-component");
            const demoName = $item.attr("data-demo-name");
            const newHref = Site.urlHelper.createDemoLink(component, demoName, linkTheme);

            link.attr("href", newHref);

            if(link.attr("href") == url) {
                $(".widgets-menu .active").removeClass("active");
                link.addClass("active");
                updateActive();
                scrollToActive();
            }
        });

        isBottomReached();
    };

    this.updateScrollView = function() {
        isBottomReached();
    };
};;
var Site = Site || {};

Site.ThemeSwitcher = function () {
    const THEME_KEY = 'dx-documentation-theme';
    const DARK_THEME_CLASS = 'dx-swatch-dark';

    const setVariable = () => {
        const themeMode = this.IsDarkMode() ? 'dark' : 'light';

        window.localStorage.setItem(THEME_KEY, themeMode);
        setAnalyticsVariable('theme', themeMode);
    }

    this.IsDarkMode = function () {
        const bodyClass = document.body.classList;
        const isDarkMode = bodyClass.contains(DARK_THEME_CLASS);
        return isDarkMode;
    }

    this.switchTheme = function () {
        const bodyClass = document.body.classList;

        bodyClass.toggle(DARK_THEME_CLASS, !this.IsDarkMode());

        setVariable();

        document.querySelectorAll('iframe').forEach(function (frame) {
            if (!['chat-widget', 'demoFrame'].includes(frame.id)) {
                frame.src = frame.src;
            }
        });
    };

    this.initTheme = function () {
        const indicators = document.querySelectorAll('#theme-switch');
        if (indicators.length === 0) {
            return;
        }

        indicators.forEach((indicator) => {
            indicator.addEventListener('click', () => {
                this.switchTheme();
            });
        });

        setVariable();
    }
};;
var Site = Site || {};

Site.FullScreenDemo = function () {
    this.showDemoInFullScreen = function() {
        document.body.classList.toggle("full-screen-demo");
        let image = document.getElementById('fullScreenImg');

        if (!document.body.classList.contains("full-screen-demo")) {
            Site.description.init();

            const tabsElement = document.getElementById('tabs');
            if (tabsElement) {
                const tabs = DevExpress.ui.dxTabs.getInstance(tabsElement);
                tabs.option('selectedIndex', 1);
                tabs.option('selectedIndex', 0);

                Site.simulator.refreshDemoFrame();
            }
        }
    };
}
;
var Site = Site || {};

Site.cookies = new Site.Cookies();
Site.urlHelper = new Site.UrlHelper();
Site.widgetsMenu = new Site.WidgetsMenu();
Site.themesMenu = new Site.ThemesMenu();
Site.adaptivitySwitcher = new Site.AdaptivitySwitcher();
Site.editor = new Site.Editor();
Site.highlighter = new Site.Highlighter();
Site.simulator = new Site.Simulator();
Site.demoTemplateHelper = new Site.DemoTemplateHelper();
Site.description = new Site.Description();
Site.themeSwitcher = new Site.ThemeSwitcher();
Site.fullScreenDemo = new Site.FullScreenDemo();

var HIDE_WIDGETS_MENU_CLASS = "hidden-menu";

$(function () {
    $(".space-for-hide-menu").click(function () {
        Site.changeMenuHiddenState(true);
    });

    $(".menu-state-button").click(function() {
        var isHideWidgetsMenu = !$("body").hasClass(HIDE_WIDGETS_MENU_CLASS),
            gaEventLabel = (isHideWidgetsMenu ? "hide menu" : "open menu") + " " + (Site.isSmallResolution() ? "small screen" : "big screen");

        Site.changeMenuHiddenState(isHideWidgetsMenu);
    });

    Site.initializeFixedCodeButtonsPanel();
});

Site.changeMenuHiddenState = function(needToHide) {
    if(needToHide === undefined) {
        if(Site.isSmallResolution()) {
            needToHide = true;
        } else {
            needToHide = (localStorage.getItem(HIDE_WIDGETS_MENU_CLASS) == "true");
        }
    }

    if(!Site.isSmallResolution()) {
        localStorage.setItem(HIDE_WIDGETS_MENU_CLASS, needToHide.toString());
    }

    if(needToHide) {
        $("body").addClass(HIDE_WIDGETS_MENU_CLASS);
    } else {
        $("body").removeClass(HIDE_WIDGETS_MENU_CLASS);
    }
};

Site.isSmallResolution = function() {
    return (window.innerWidth <= 1270);
};

Site.likeServerSideApproach = function(demo) {
    return demo.approach === "Mvc" ||
        demo.approach === "NetCore" ||
        demo.type === "Rwa";
};

Site.processSmallScreen = function() {
    if(Site.isSmallResolution()) {
        Site.changeMenuHiddenState(true);
    }
};

Site.initializeBreadcrumbs = function (approach, widget, demoTitle, controllerOverride) {
    var breadcrumbsContainer = $(".breadcrumbs ul");
    breadcrumbsContainer.html("");
    breadcrumbsContainer.append('<li class="crumb no-hide"><a href="' + Site.urlHelper.getAppPath() + '">' + approach + ' Demos & Examples</a></li>');

    if (!widget) {
        return;
    }

    var controller = controllerOverride || widget.replace(/[\s-]/g, "");
    var url = Site.urlHelper.getAppPath() + 'Demo/' + controller + '/';

    breadcrumbsContainer.append('<li class="crumb no-hide"><a href="' + url +'">' + approach + " " + widget + '</a></li>');
    breadcrumbsContainer.append('<li class="crumb no-hide"><a>' + demoTitle + '<a></li>');

    var breadcrumbsDropDownContainer = $('.breadcrumbs-dropdown ul');
    breadcrumbsDropDownContainer.html("");
    breadcrumbsDropDownContainer.append('<li><a href="' + Site.urlHelper.getAppPath() + '">' + approach + ' Demos & Examples</a></li>');
    breadcrumbsDropDownContainer.append('<li><a href="' + url + '">' + approach + " " + widget + '</a></li>');
    breadcrumbsDropDownContainer.append('<li><a>' + demoTitle + '<a></li>');
};

Site.returnToMobileVersion = function() {
    Site.cookies.delete("DesktopMode");
    Site.cookies.delete("HideMobileMessage");
    location.href = Site.urlHelper.getAppPath();
};

Site.isMaterialTheme = function(theme) {
    return /material/.test(theme);
}

Site.isFluentTheme = function (theme) {
    return /fluent/.test(theme);
}

Site.isCompactTheme = function (theme) {
    return /compact/.test(theme);
}

Site.updateCanonicalLink = (canonicalLink, toggleCanonicalLink) => {
    const canonicalElement = document.head.querySelector('link[rel=canonical]');

    if (toggleCanonicalLink === 'False' && canonicalElement) {
        canonicalElement.remove();
    } else if (canonicalElement && canonicalElement.href !== canonicalLink) {
        canonicalElement.setAttribute('href', canonicalLink);
    } else if (!canonicalElement && canonicalLink) {
        const element = document.createElement('link');
        element.setAttribute('rel', 'canonical');
        element.setAttribute('href', canonicalLink);

        document.head.appendChild(element);
    }
}
;
class SurveyBanner {
    _component;

    _isHidden;

    _id = 'survey-banner';

    _bannerKey = 'devextreme-survey-23.2';

    constructor() {
        this._component = document.getElementById(this._id);
        this._isHidden = window.localStorage.getItem(this._bannerKey) === 'true';
        if (!this._component) {
            this._isHidden = true;
            return;
        }

        this._createEvents();
    }

    _remove = () => {
        if (!this._component) {
            return;
        }

        this._component.remove();
        this._component = null;
    }

    _createEvents = () => {
        this._component.querySelectorAll('.survey--button-close, a').forEach(node => {
            node.addEventListener('click', this._setDismissed);
        });
    }

    _setDismissed = () => {
        window.localStorage.setItem(this._bannerKey, 'true');

        this._remove();
    }

    render = () => {
        if (this._isHidden) {
            this._remove();
        } else {
            this._component.classList.remove('survey-hidden');
            this._component.classList.add('survey--indent');
        }
    }
}

document.addEventListener('DOMContentLoaded', () => {
    const banner = new SurveyBanner();
    banner.render();
});
;
// For Report Designer button

Site.addButtonToNavLinksArea = function (text, hint, url) {
    var navLinks = document.querySelector(".top-content #report-design-btn");

    navLinks.textContent = text;
    navLinks.title = hint;

    navLinks.classList.remove('btn-hidden');

    navLinks.onclick = (e) => {
        e.currentTarget.classList.add('btn-hidden');
        document.querySelector('.demo-frame').contentWindow.location = url;
    };
};
;
